/*! kitenzo.css — HelpScout Docs theme for kitenzo | build 2026-07-05 */
/* Kitenzo — warm paper, warm ink, sage-green accent, monospace chrome.
   Standard (non-floating) nav on paper; the white logo is inverted to dark.
   Modelled on kitenzo.com. */
:root {
  /* Surfaces & ink */
  --bg: #faf9f4;
  --surface: #ffffff;
  --surface-2: #f2efe6;
  --border: #e7e2d6;
  --border-strong: #d8d2c4;

  --text: #2c2a22;
  --text-muted: #6b6656;
  --text-subtle: #a49d8a;
  --heading: #23211a;

  /* Accent — sage / olive green */
  --accent: #77864e;
  --accent-strong: #5f6c3c;
  --accent-contrast: #ffffff;
  --accent-tint: #eef1e6;

  --link: #2c2a22;
  --link-hover: #5f6c3c;

  /* Header — standard paper bar with hairline; logo inverted white->dark */
  --nav-outer-pad: 0;
  --nav-outer-bg: var(--bg);
  --nav-bg: transparent;
  --nav-menu-bg: #faf9f4;
  --nav-border: none;
  --nav-radius: 0;
  --nav-shadow: none;
  --nav-underline: 1px solid #e7e2d6;
  --nav-fg: #2c2a22;
  --nav-fg-muted: #6b6656;
  --nav-border-color: rgba(0, 0, 0, .14);
  --brand-logo-filter: brightness(0);
  --brand-logo-height: 18px;

  /* Primary action — dark warm pill, sage on hover */
  --btn-bg: #2c2a22;
  --btn-fg: #faf9f4;
  --btn-bg-hover: #5f6c3c;

  /* Hero — seamless warm paper */
  --hero-bg: var(--bg);
  --hero-fg: #23211a;

  /* Search field */
  --search-bg: #ffffff;
  --search-fg: #2c2a22;
  --search-border: #e2ddd0;
  --search-placeholder: #a49d8a;
  --search-icon: #a49d8a;
  --search-focus-ring: rgba(139, 154, 107, .22);
  --search-radius: 10px;
  --search-shadow: 0 1px 2px rgba(60, 50, 30, .04);

  /* Radius & elevation */
  --radius: 14px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(60, 50, 30, .05);
  --shadow: 0 8px 28px rgba(60, 50, 30, .07);
  --shadow-lg: 0 16px 44px rgba(60, 50, 30, .10);

  /* Code */
  --code-bg: #f0ede3;
  --code-fg: #4a4636;
  --code-border: #e5e0d4;
  --pre-bg: #2a2820;
  --pre-fg: #efece2;
  --pre-border: #2a2820;

  /* Callouts (warm-tuned) */
  --callout-warn-bg: #fbf4e4;  --callout-warn-border: #ecdcb0;  --callout-warn-fg: #7a5a17;  --callout-warn-icon: #cf9a1f;
  --callout-note-bg: #f3f0e8;  --callout-note-border: #e0dac9;  --callout-note-fg: #5c5647;  --callout-note-icon: #8a836d;
  --callout-tip-bg: #edf3ea;   --callout-tip-border: #cfe0c6;   --callout-tip-fg: #3f6b3c;   --callout-tip-icon: #6f9a4f;
}

/* ==========================================================================
   HelpScout Docs — shared theme core
   --------------------------------------------------------------------------
   The legacy stylesheet (launch-*.css) is disabled at runtime, so this styles
   raw HelpScout markup from scratch. Brand values live in CSS custom properties
   (src/tokens/*.css); this core never hardcodes a brand colour.

   Design language (from eightthemes.com / kitenzo.com): near-monochrome, a
   single restrained accent that only appears on interaction, MONOSPACE chrome
   (nav / labels / buttons / counts, uppercase + tracked), a readable sans for
   body copy, soft diffuse shadows, minimal radii, and slight, smooth motion.
   Render target: evergreen browsers (uses :has(), clamp, mask).
   ========================================================================== */

:root {
  --i-search: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>");
  --i-print: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 6 2 18 2 18 9'/><path d='M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2'/><rect x='6' y='14' width='12' height='8' rx='1'/></svg>");
  --i-mail: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='2' y='4' width='20' height='16' rx='2'/><path d='m22 7-10 6L2 7'/></svg>");
  --i-chevron: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><polyline points='9 6 15 12 9 18'/></svg>");
  --i-arrow: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><line x1='5' y1='12' x2='19' y2='12'/><polyline points='12 5 19 12 12 19'/></svg>");
  --i-lock: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='11' width='18' height='11' rx='2'/><path d='M7 11V7a5 5 0 0 1 10 0v4'/></svg>");

  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "Source Code Pro", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --mono-tracking: 0.07em;
  --maxw: 1140px;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --dur: .2s;
}

/* ---- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }
button { font-family: inherit; }

a { color: var(--link); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--link-hover); }

::selection { background: var(--accent); color: var(--accent-contrast); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--heading);
  margin: 0;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- Monospace chrome ---------------------------------------------------
   The signature move: UI chrome is uppercase, tracked monospace. Reading text
   (article body, card descriptions, article titles) stays in the sans. */
.brand,
ul.nav > li > a,
#contact > a.contactUs, li#contactMobile > a.contactUs,
#docsSearch form#searchBar button,
a.category h3,
a.category p.article-count,
.contentWrapper > .sort,
#sidebar h3,
ul.nav-list li a,
.pagination li a, .pagination li span,
.articleFoot .help, .articleFoot time.lu,
#fullArticle .printArticle,
footer.center {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: var(--mono-tracking);
  font-weight: 500;
}

/* ---- Icon glyphs (mask-tinted with currentColor) ------------------------ */
i[class^="icon-"], i[class*=" icon-"] {
  display: inline-block; width: 1em; height: 1em;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
  vertical-align: -0.14em; flex: none;
}
.icon-search  { -webkit-mask-image: var(--i-search);  mask-image: var(--i-search); }
.icon-print   { -webkit-mask-image: var(--i-print);   mask-image: var(--i-print); }
.icon-contact { -webkit-mask-image: var(--i-mail);    mask-image: var(--i-mail); }
.icon-arrow   { -webkit-mask-image: var(--i-chevron); mask-image: var(--i-chevron); }
.icon-private-w { -webkit-mask-image: var(--i-lock);  mask-image: var(--i-lock); }
/* Text-forward like the brand sites: drop decorative doc glyphs entirely. */
.icon-article-doc, .icon-precomposed, .caret { display: none !important; }

/* Hide private / internal collections from the public nav (they only render
   for signed-in staff). Explicit id + a lock-icon safety net. */
#ai-support-knowledge-internal,
ul.nav > li:has(.icon-private-w),
ul.nav-list li:has(.icon-private-w) { display: none !important; }

/* ==========================================================================
   Header / navigation  (float vs standard driven by tokens)
   ========================================================================== */
#mainNav {
  position: sticky; top: 0; z-index: 100;
  padding: var(--nav-outer-pad, 0);
  background: var(--nav-outer-bg, var(--bg));
  border-bottom: var(--nav-underline, none);
}
#mainNav .navbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  background: var(--nav-bg);
  border: var(--nav-border, none);
  border-radius: var(--nav-radius, 0);
  box-shadow: var(--nav-shadow, none);
  backdrop-filter: var(--nav-blur, none);
}
#mainNav .container-fluid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(16px, 3.5vw, 26px);
  height: 60px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex; align-items: center; gap: 8px;
  margin-right: auto; flex: none;
  color: var(--nav-fg);
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.1em;
}
.brand:hover { color: var(--nav-fg); }
.brand span { color: var(--brand-logo-color, var(--nav-fg)); }
.brand img {
  height: var(--brand-logo-height, 26px); width: auto; display: block;
  filter: var(--brand-logo-filter, none);
}

.nav-collapse nav { display: contents; }
ul.nav { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
ul.nav > li { margin: 0; }
ul.nav > li > a {
  position: relative;
  display: inline-flex; align-items: center;
  padding: 9px 12px;
  color: var(--nav-fg-muted);
  font-size: 0.72rem; line-height: 1;
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}
ul.nav > li > a::after {
  content: ""; position: absolute;
  left: 12px; right: 12px; bottom: 4px;
  height: 1.5px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
ul.nav > li > a:hover { color: var(--nav-fg); }
ul.nav > li > a:hover::after { transform: scaleX(1); }
ul.nav > li.active > a { color: var(--nav-fg); }
ul.nav > li.active > a::after { transform: scaleX(1); }

/* Contact = primary action (solid ink pill, brand-tokenised) */
#contact > a.contactUs, li#contactMobile > a.contactUs {
  background: var(--btn-bg);
  color: var(--btn-fg);
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem; font-weight: 600;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
#contact > a.contactUs:hover, li#contactMobile > a.contactUs:hover {
  background: var(--btn-bg-hover); color: var(--btn-fg);
}
li#contactMobile { display: none; }

.btn-navbar {
  display: none; margin-left: auto;
  width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--nav-border-color, rgba(0,0,0,.12));
  border-radius: 8px; background: transparent; cursor: pointer; position: relative;
}
.btn-navbar .icon-bar {
  display: block; position: absolute; left: 50%; top: 50%;
  width: 17px; height: 1.5px; margin-left: -8.5px;
  background: var(--nav-fg);
  transition: transform .25s var(--ease), opacity var(--dur) var(--ease);
}
.btn-navbar .icon-bar:nth-child(2) { transform: translateY(-5px); }
.btn-navbar .icon-bar:nth-child(4) { transform: translateY(5px); }
.btn-navbar.kaizen-open .icon-bar:nth-child(2) { transform: rotate(45deg); }
.btn-navbar.kaizen-open .icon-bar:nth-child(3) { opacity: 0; }
.btn-navbar.kaizen-open .icon-bar:nth-child(4) { transform: rotate(-45deg); }

/* ==========================================================================
   Layout containers
   ========================================================================== */
#contentArea {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(32px, 5vw, 64px) clamp(16px, 4vw, 32px) 80px;
}
.row-fluid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: clamp(36px, 5vw, 68px);
  align-items: start;
}
#main-content { min-width: 0; }

/* ==========================================================================
   Hero + search (homepage)
   ========================================================================== */
#docsSearch {
  background: var(--hero-bg, var(--bg));
  color: var(--hero-fg);
  padding: clamp(52px, 9vw, 104px) clamp(16px, 4vw, 32px) clamp(40px, 6vw, 72px);
  text-align: center;
}
#docsSearch::before {
  content: var(--hero-eyebrow, "KNOWLEDGE BASE");
  display: block;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 18px;
}
#docsSearch h1 {
  color: var(--hero-fg);
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  letter-spacing: -0.035em;
  max-width: 16ch;
  margin: 0 auto 32px;
  text-wrap: balance;
}

form#searchBar { position: relative; }
#docsSearch form#searchBar { max-width: 560px; margin: 0 auto; display: flex; align-items: center; }
form#searchBar::before {
  content: ""; position: absolute; left: 18px; top: 50%;
  width: 18px; height: 18px; transform: translateY(-50%);
  background: var(--search-icon);
  -webkit-mask: var(--i-search) center / contain no-repeat;
  mask: var(--i-search) center / contain no-repeat;
  pointer-events: none; z-index: 1;
}
input.search-query {
  width: 100%; height: 54px;
  padding: 0 18px 0 46px;
  font-family: var(--font-sans); font-size: 1rem;
  color: var(--search-fg);
  background: var(--search-bg);
  border: 1px solid var(--search-border);
  border-radius: var(--search-radius, 10px);
  box-shadow: var(--search-shadow, none);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  outline: none;
}
input.search-query::placeholder { color: var(--search-placeholder); }
input.search-query:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--search-focus-ring); }
#docsSearch input.search-query { padding-right: 108px; }
#docsSearch form#searchBar button {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  height: 42px; padding: 0 20px;
  border: 0; border-radius: var(--radius-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: 0.72rem; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
  transition: background-color var(--dur) var(--ease), transform .1s var(--ease);
}
#docsSearch form#searchBar button:hover { background: var(--btn-bg-hover); }
#docsSearch form#searchBar button:active { transform: translateY(-50%) scale(.97); }
#docsSearch form#searchBar button .icon-search { display: none; }

#serp-dd {
  position: absolute; left: 0; right: 0; top: calc(100% + 10px); z-index: 40;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow-lg);
  overflow: hidden; text-align: left;
}
#serp-dd .result { list-style: none; margin: 0; padding: 6px; }
#serp-dd .result li a { display: block; padding: 10px 14px; border-radius: 8px; color: var(--text); font-weight: 500; }
#serp-dd .result li a:hover { background: var(--accent-tint); color: var(--link-hover); }
#serp-dd .result li em { color: var(--text-muted); font-style: normal; font-size: .875rem; }

/* ==========================================================================
   Homepage — category cards (text-forward, no icon tiles)
   ========================================================================== */
#contentArea:has(> .collection-category) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
  align-items: start;
}
.collection-category, .category-list { display: contents; }
.collection-category > h2 { display: none; }

a.category {
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
  height: 100%;
  padding: 26px 24px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
a.category::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--accent);
  transform: scaleY(0); transform-origin: top;
  transition: transform .28s var(--ease);
}
a.category h3 {
  font-size: 0.9rem; font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--heading);
  padding-right: 22px;
}
a.category p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem; line-height: 1.55;
}
a.category p.article-count {
  margin-top: auto; padding-top: 8px;
  color: var(--text-subtle);
  font-size: 0.68rem; font-weight: 500;
}
a.category p.article-count .notranslate { color: var(--text-muted); }
a.category::after {
  content: ""; position: absolute; top: 26px; right: 22px;
  width: 16px; height: 16px;
  background: var(--text-subtle);
  -webkit-mask: var(--i-arrow) center / contain no-repeat;
  mask: var(--i-arrow) center / contain no-repeat;
  opacity: 0; transform: translateX(-4px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
a.category:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong, var(--border));
}
a.category:hover::before { transform: scaleY(1); }
a.category:hover::after { opacity: 1; transform: translateX(0); background: var(--accent); }
a.category:hover h3 { color: var(--heading); }

/* ==========================================================================
   Category & search — article lists
   ========================================================================== */
.contentWrapper > h1, #serp > h1 {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.contentWrapper > .sort {
  margin: 4px 0 20px;
  display: flex; align-items: center; gap: 10px;
  font-size: 0.7rem; color: var(--text-subtle);
}
.sort form { margin: 0; }
.sort select {
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: var(--mono-tracking);
  font-size: .68rem; color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 7px 28px 7px 12px; cursor: pointer; appearance: none;
  background-image: var(--i-chevron);
  background-repeat: no-repeat; background-position: right 9px center; background-size: 13px;
}

ul.articleList { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
ul.articleList > li { margin: 0; border-bottom: 1px solid var(--border); }
ul.articleList > li > a {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 16px 26px 16px 2px;
  color: var(--heading); font-weight: 600; font-size: 1.02rem;
  transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}
ul.articleList > li > a::after {
  content: ""; position: absolute; right: 4px; top: 50%; margin-top: -8px;
  width: 16px; height: 16px; flex: none;
  background: var(--accent);
  -webkit-mask: var(--i-arrow) center / contain no-repeat;
  mask: var(--i-arrow) center / contain no-repeat;
  opacity: 0; transform: translateX(-5px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
ul.articleList > li > a:hover { color: var(--link-hover); padding-left: 8px; }
ul.articleList > li > a:hover::after { opacity: 1; transform: translateX(0); }
ul.articleList > li:has(> p) > a { padding-bottom: 3px; }
ul.articleList > li > p {
  margin: 0 26px 15px 2px;
  color: var(--text-muted); font-weight: 400; font-size: .92rem; line-height: 1.5;
}

.pagination { margin-top: 28px; }
.pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; justify-content: center; }
.pagination li a, .pagination li span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); font-size: .72rem; background: var(--surface);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.pagination li a:hover { border-color: var(--accent); color: var(--link-hover); }
.pagination li.active a, .pagination li.active span {
  background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-fg);
}
.pagination li.disabled a, .pagination li.disabled span { opacity: .4; pointer-events: none; }

#noResults { padding: 28px; text-align: center; color: var(--text-muted); }

/* ==========================================================================
   Sidebar & listing-page layout
   --------------------------------------------------------------------------
   The single-category "Categories" list only ever shows the collection you're
   already in, so it's dropped. On listing pages (collection / category / search)
   the search moves to the top and the article list runs full-width; the article
   page keeps a slim search rail beside the reading column.
   ========================================================================== */
#sidebar { position: sticky; top: 92px; align-self: start; display: flex; flex-direction: column; gap: 24px; }
#sidebar h3, #sidebar ul.nav-list { display: none; }

/* Compact search — article-page sidebar rail */
#sidebar form#searchBar.sm input.search-query { height: 44px; font-size: .92rem; padding: 0 14px 0 40px; border-radius: var(--search-radius, 8px); }
#sidebar form#searchBar.sm::before { left: 13px; width: 16px; height: 16px; }
#sidebar form#searchBar.sm button {
  position: absolute; right: 0; top: 0; height: 44px; width: 44px;
  border: 0; background: transparent; color: var(--text-subtle); cursor: pointer;
  display: grid; place-items: center;
}
#sidebar form#searchBar.sm button span { display: none; }
#sidebar form#searchBar.sm button .icon-search { display: block; width: 16px; height: 16px; }
#sidebar form#searchBar.sm button:hover { color: var(--accent); }

/* Listing pages: search on top (full width), article list below, no rail */
.row-fluid:has(ul.articleList) { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
.row-fluid:has(ul.articleList) #main-content { order: 1; width: 100%; }
.row-fluid:has(ul.articleList) #sidebar { order: 0; position: static; width: 100%; margin: 0 0 30px; gap: 0; }
.row-fluid:has(ul.articleList) #sidebar form#searchBar.sm input.search-query {
  height: 54px; font-size: 1rem; padding: 0 118px 0 46px; border-radius: var(--search-radius, 10px);
}
.row-fluid:has(ul.articleList) #sidebar form#searchBar.sm::before { left: 18px; width: 18px; height: 18px; }
.row-fluid:has(ul.articleList) #sidebar form#searchBar.sm button {
  position: absolute; right: 6px; top: 50%; left: auto; bottom: auto;
  transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: auto; height: 42px; padding: 0 22px;
  background: var(--btn-bg); color: var(--btn-fg); border-radius: var(--radius-pill);
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: var(--mono-tracking);
  font-size: .72rem; font-weight: 600;
}
.row-fluid:has(ul.articleList) #sidebar form#searchBar.sm button:hover { background: var(--btn-bg-hover); color: var(--btn-fg); }
/* The .sm button only ships an sr-only span + icon; supply a real label. */
.row-fluid:has(ul.articleList) #sidebar form#searchBar.sm button .icon-search { display: none; }
.row-fluid:has(ul.articleList) #sidebar form#searchBar.sm button::after { content: "Search"; }

/* Drop the generic "Most Popular Articles" heading on collection pages.
   (Category pages carry a .sort control + a meaningful title, so theirs stays.) */
#main-content .contentWrapper:not(:has(> .sort)) > h1 { display: none; }

/* Article page: no sidebar/search — one centred reading column. */
.row-fluid:has(#fullArticle) { display: block; }
.row-fluid:has(#fullArticle) #sidebar { display: none; }
.row-fluid:has(#fullArticle) #main-content { max-width: 860px; margin: 0 auto; width: 100%; }

/* ==========================================================================
   Article
   ========================================================================== */
#fullArticle { position: relative; }
#fullArticle h1.title {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  letter-spacing: -0.035em; line-height: 1.12;
  margin-bottom: 22px;
  text-wrap: balance;
}
/* Print button hidden — not part of the reading experience. */
.printArticle { display: none; }

#fullArticle p { margin: 0 0 1.15em; }
#fullArticle p.no-margin { margin: 0 0 1.15em; }
#fullArticle > *:last-child { margin-bottom: 0; }

#fullArticle h1:not(.title), #fullArticle h2 {
  font-size: 1.45rem; letter-spacing: -0.02em;
  margin: 2em 0 .7em; padding-bottom: .35em;
  border-bottom: 1px solid var(--border); scroll-margin-top: 100px;
}
#fullArticle h3 { font-size: 1.18rem; margin: 1.7em 0 .6em; scroll-margin-top: 100px; }
#fullArticle h4 { font-size: 1.02rem; margin: 1.5em 0 .5em; scroll-margin-top: 100px; }

#fullArticle a {
  color: var(--link); text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1.5px; text-underline-offset: 2px;
  font-weight: 500;
}
#fullArticle a:hover { color: var(--link-hover); text-decoration-color: var(--accent); }

#fullArticle ul, #fullArticle ol { margin: 0 0 1.15em; padding-left: 1.4em; }
#fullArticle li { margin: .3em 0; }
#fullArticle li p.no-margin { margin: 0; }
#fullArticle li::marker { color: var(--accent); }

#fullArticle img { display: block; margin: 1.6em 0; border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-sm); }
#fullArticle hr { border: 0; height: 1px; background: var(--border); margin: 2.2em 0; }
#fullArticle blockquote { margin: 1.5em 0; padding: .3em 0 .3em 1.2em; border-left: 2px solid var(--accent); color: var(--text-muted); font-style: italic; }

#fullArticle code {
  font-family: var(--font-mono); font-size: .86em;
  background: var(--code-bg); color: var(--code-fg);
  padding: .14em .4em; border-radius: 5px; border: 1px solid var(--code-border);
}
#fullArticle pre {
  margin: 1.5em 0; padding: 18px 20px;
  background: var(--pre-bg); color: var(--pre-fg); border: 1px solid var(--pre-border);
  border-radius: 10px; overflow-x: auto;
  font-family: var(--font-mono); font-size: .86rem; line-height: 1.6;
}
#fullArticle pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }

#fullArticle table {
  width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: .94rem;
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
}
#fullArticle th, #fullArticle td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); }
#fullArticle thead th {
  background: var(--surface-2); color: var(--heading);
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: var(--mono-tracking);
  font-size: .68rem; font-weight: 600;
}
#fullArticle tbody tr:last-child td { border-bottom: 0; }
#fullArticle tbody tr:nth-child(even) { background: var(--surface-2); }

/* Callouts */
#fullArticle .callout-yellow, #fullArticle .callout-blue, #fullArticle .callout-green {
  position: relative; margin: 1.5em 0; padding: 16px 18px 16px 50px;
  border-radius: 10px; border: 1px solid; border-left-width: 3px; font-size: .96rem;
}
#fullArticle .callout-yellow > *:last-child,
#fullArticle .callout-blue > *:last-child,
#fullArticle .callout-green > *:last-child { margin-bottom: 0; }
#fullArticle .callout-yellow p, #fullArticle .callout-blue p, #fullArticle .callout-green p { margin: 0 0 .5em; }
#fullArticle [class^="callout-"]::before {
  content: ""; position: absolute; left: 16px; top: 17px; width: 20px; height: 20px;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
}
#fullArticle .callout-yellow { background: var(--callout-warn-bg); border-color: var(--callout-warn-border); color: var(--callout-warn-fg); }
#fullArticle .callout-yellow::before {
  background: var(--callout-warn-icon);
  -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'/><line x1='12' y1='9' x2='12' y2='13'/><line x1='12' y1='17' x2='12.01' y2='17'/></svg>");
  mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'/><line x1='12' y1='9' x2='12' y2='13'/><line x1='12' y1='17' x2='12.01' y2='17'/></svg>");
}
#fullArticle .callout-blue { background: var(--callout-note-bg); border-color: var(--callout-note-border); color: var(--callout-note-fg); }
#fullArticle .callout-blue::before {
  background: var(--callout-note-icon);
  -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><line x1='12' y1='16' x2='12' y2='12'/><line x1='12' y1='8' x2='12.01' y2='8'/></svg>");
  mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><line x1='12' y1='16' x2='12' y2='12'/><line x1='12' y1='8' x2='12.01' y2='8'/></svg>");
}
#fullArticle .callout-green { background: var(--callout-tip-bg); border-color: var(--callout-tip-border); color: var(--callout-tip-fg); }
#fullArticle .callout-green::before {
  background: var(--callout-tip-icon);
  -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M9 18h6'/><path d='M10 22h4'/><path d='M12 2a7 7 0 0 0-4 12.7c.5.4.8 1 .9 1.6l.1.7h6l.1-.7c.1-.6.4-1.2.9-1.6A7 7 0 0 0 12 2z'/></svg>");
  mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M9 18h6'/><path d='M10 22h4'/><path d='M12 2a7 7 0 0 0-4 12.7c.5.4.8 1 .9 1.6l.1.7h6l.1-.7c.1-.6.4-1.2.9-1.6A7 7 0 0 0 12 2z'/></svg>");
}
#fullArticle .callout-yellow a { color: var(--callout-warn-fg); }
#fullArticle .callout-blue a { color: var(--callout-note-fg); }
#fullArticle .callout-green a { color: var(--callout-tip-fg); }

/* Article footer */
.articleFoot {
  margin-top: 44px; padding: 22px 24px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px;
}
.articleFoot .icon-contact { width: 20px; height: 20px; color: var(--accent); flex: none; }
.articleFoot .help { margin: 0; font-size: .72rem; color: var(--heading); }
.articleFoot .help a.contactUs { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.articleFoot #sbContactMobile { display: none; }
.articleFoot time.lu { margin-left: auto; color: var(--text-subtle); font-size: .64rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
#contentArea > footer, footer.center {
  grid-column: 1 / -1;
  margin-top: 60px; padding-top: 28px;
  border-top: 1px solid var(--border);
  text-align: center; color: var(--text-subtle);
  font-size: .64rem;
}
footer.center a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px; }
footer.center a:hover { color: var(--accent); }
/* Hide the "Powered by Help Scout" attribution; keep the © line.
   (Inner-page footers are plain <footer>; only the home footer has .center.) */
#contentArea footer p span, footer.center p span { display: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 880px) {
  .row-fluid { grid-template-columns: 1fr; gap: 40px; }
  #sidebar { position: static; order: 2; }
  #main-content { order: 1; }
}

@media (max-width: 760px) {
  .btn-navbar { display: block; }
  .nav-collapse {
    display: none; position: absolute; left: var(--nav-outer-pad, 0); right: var(--nav-outer-pad, 0);
    top: calc(60px + var(--nav-outer-pad, 0px));
    background: var(--nav-menu-bg, var(--nav-bg));
    border: var(--nav-border, none);
    border-radius: var(--nav-radius, 0);
    box-shadow: var(--shadow-lg);
    padding: 10px clamp(16px, 4vw, 26px) 16px;
    margin-top: 6px;
  }
  .nav-collapse.in { display: block; }
  ul.nav { flex-direction: column; align-items: stretch; gap: 0; }
  ul.nav > li > a { padding: 13px 4px; font-size: .78rem; border-bottom: 1px solid var(--border); }
  ul.nav > li > a::after { content: none; }
  ul.nav > li:last-child > a { border-bottom: 0; }
  #contact { display: none; }
  li#contactMobile { display: block; margin-top: 10px; }
  li#contactMobile > a.contactUs { justify-content: center; padding: 13px; }
  .articleFoot time.lu { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
