/* CHEERCAST · HELP SCOUT DOCS THEME · built 2026-09-26T10:37Z
   Generated by bin/build-helpscout-css.sh — edit helpscout-docs.src.css,
   longform.css or cheercast-tokens.css, not this file. */

/* ═══ 1 · tokens (cheercast-tokens.css, @font-face stripped) ═══ */
/* ============================================================================
   CHEERCAST DESIGN TOKENS · v4 (unified) — global :root sheet
   ----------------------------------------------------------------------------
   The one token sheet for every surface: marketing (Breakdance), apps
   (routine list / judging / account), forms (Gravity Forms Orbital,
   MemberPress) and any future chrome. Source design: the Cheercast Design
   System v4 (Claude Design handoff, "Clarity" direction — airy warm-neutral
   surfaces, two action colours, sharp 6px controls).

   Relationship to tokens.css (the routine-list sheet): that sheet re-declares
   the same grammar scoped to .cc-routine-list/.cc-theme with values tuned for
   the app surfaces (notably its dark palette + status colours). Scoped values
   win inside those components by inheritance proximity; this sheet provides
   the page-level defaults everything else (Customizer CSS, GF Orbital
   mappings, MemberPress) resolves against.

   Brand colour arrives via --pagetheme. It is deliberately NOT defined here:
     · CCAU pages       fall back to Cheercast Blue (#3169F7) below
     · EP judging posts get it injected from jcp_event_theme (wp_head,
                        inject_page_theme in class-mv-crm-frontend.php)
     · Breakdance       can set it per page/section for event pages
     · CCRW site-wide   brand purple #4E00FF (logo deep #271073) — set with the Customizer rewrite
   Every accent tint derives from --accent via color-mix, so one --pagetheme
   re-skins buttons, links, chips and focus rings with no per-brand overrides
   (same derivation as the scoped routine-list sheet).
   ========================================================================== */

/* — Geist (UI) + Geist Mono — self-hosted variable fonts (SIL OFL; see
   ../fonts/GEIST-LICENSE.txt). The display faces (area-extended, politica)
   come from the Adobe Fonts kit the sites already load — only Geist is ours
   to ship. */
:root,
[data-theme="light"] {
  /* — brand (fixed references, never overridden) — */
  --brand-blue:       #3169F7;          /* Cheercast Blue — CCAU default      */
  --brand-ccrw:       #4E00FF;          /* CCRW accent (brand purple)         */
  --brand-ccrw-deep:  #271073;          /* CCRW deep purple — logo / dark      */
  --black:            #0C0C0E;          /* "Arena black" — footer, 2nd action */

  /* — surfaces (Clarity: warm-neutral, gradient-free) — */
  --bg:               #f7f7f5;
  --panel:            #ffffff;
  --surface:          #f4f4f3;
  --surface-2:        #ebebe9;
  --surface-3:        #e0e0dd;
  --hover:            #efefed;

  /* — borders — */
  --border:           #e9e9e6;
  --border-2:         #d9d9d5;
  --border-3:         #b8b8b3;
  --border-strong:    #b8b8b3;

  /* — text — */
  --fg:               #17181a;
  --fg-2:             #52555c;
  --fg-3:             #797d84;
  --fg-4:             #9a9da4;

  /* — accent (derives from --pagetheme; tints derive from --accent) — */
  --accent:           var(--pagetheme, #3169F7);
  --accent-hi:        color-mix(in oklab, var(--accent) 80%, black 20%);
  --accent-fg:        #ffffff;
  --accent-soft:      color-mix(in srgb, var(--accent) 8%, transparent);
  --accent-soft-2:    color-mix(in srgb, var(--accent) 14%, transparent);
  --accent-border:    color-mix(in srgb, var(--accent) 26%, transparent);

  /* — semantic (status & feedback only, never decoration) — */
  --good:             #0a7d3b;
  --good-soft:        rgba(10, 125, 59, 0.10);
  --warn:             #b45309;
  --warn-soft:        rgba(180, 83, 9, 0.10);
  --danger:           #c2151f;
  --danger-soft:      rgba(194, 21, 31, 0.10);
  --info:             #155bd5;
  --info-soft:        rgba(21, 91, 213, 0.10);

  /* — radii (controls 6 · cards 8 · panels 12 · pill 999) — */
  --radius-sm:        6px;
  --radius:           8px;
  --radius-lg:        12px;
  --radius-pill:      999px;

  /* — elevation — */
  --shadow-sm:        0 1px 2px rgba(20, 18, 12, 0.05);
  --shadow-card:      0 1px 3px rgba(20, 18, 12, 0.06), 0 6px 18px rgba(20, 18, 12, 0.05);
  --shadow-pop:       0 10px 30px rgba(20, 14, 0, 0.10), 0 2px 6px rgba(20, 14, 0, 0.05);

  /* — type (display = Adobe kit, Black 900 only; UI/body = Geist) — */
  --font-display:     "area-extended", "Outfit", ui-sans-serif, system-ui, sans-serif;
  --font-ui:          "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono:        "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* — spacing scale (4-based) — */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px;

  /* — controls — */
  --control-sm: 36px;
  --control-md: 44px;
  --control-lg: 52px;

  /* — layout — */
  --container:        1200px;
  --container-text:   720px;
}

/* CCRW sub-brand: accent = the brand purple #4E00FF, but as a FALLBACK so the
   per-event --pagetheme channel still wins. Do NOT hard-set --pagetheme here —
   that defeats the per-event ACF theme the routine-manager injects as
   :root{--pagetheme:<event>} (a property set directly on this container beats an
   inherited one, forcing every judging-app event to the purple default). Instead
   mirror the base :root pattern: derive --accent from --pagetheme with purple as
   the fallback, so an injected event theme inherits in and wins, and a CCRW page
   with no event theme falls back to brand purple.
   #271073 is the deep logo purple, exposed as --accent-deep for logo / dark
   chrome use (not the interactive accent). */
[data-brand="ccrw"] {
  --accent:           var(--pagetheme, #4E00FF);
  --accent-deep:      #271073;
}

/* ── Dark mode ─────────────────────────────────────────────────────────── */
[data-theme="dark"] {
  --bg:               #0f0f10;
  --panel:            #17181b;
  --surface:          #1c1d20;
  --surface-2:        #232427;
  --surface-3:        #2a2c30;
  --hover:            #1f2024;

  --border:           #232427;
  --border-2:         #2a2c30;
  --border-3:         #3a3d42;
  --border-strong:    #4a4e55;

  --fg:               #f4f5f7;
  --fg-2:             #c8ccd2;
  --fg-3:             #9aa0a8;
  --fg-4:             #6c727b;

  /* Accent used as TEXT on dark surfaces lightens toward white (the
     light-mode darken-toward-black would vanish); tints bump their mix so
     overlays still register against dark surfaces. */
  --accent-hi:        color-mix(in oklab, var(--accent) 58%, white 42%);
  --accent-soft:      color-mix(in srgb, var(--accent) 18%, transparent);
  --accent-soft-2:    color-mix(in srgb, var(--accent) 30%, transparent);
  --accent-border:    color-mix(in srgb, var(--accent) 46%, transparent);

  /* Semantic colours brighten to read as text on dark. */
  --good:             #2bbf86;
  --good-soft:        rgba(43, 191, 134, 0.18);
  --warn:             #f5a524;
  --warn-soft:        rgba(245, 165, 36, 0.14);
  --danger:           #f43f5e;
  --danger-soft:      rgba(244, 63, 94, 0.16);
  --info:             #6aa9ff;
  --info-soft:        rgba(106, 169, 255, 0.18);

  --shadow-sm:        0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-card:      0 1px 3px rgba(0, 0, 0, 0.4), 0 6px 18px rgba(0, 0, 0, 0.35);
  --shadow-pop:       0 10px 30px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* ── Shared helpers (cc- prefixed — a bare .mono would collide with other
   plugins/themes; see the same note in tokens.css) ──────────────────────── */
.cc-mono {
  font-family: var(--font-mono);
  font-feature-settings: "ss01";
  font-variant-numeric: tabular-nums;
}
.cc-tabular {
  font-variant-numeric: tabular-nums;
}

/* ═══ 2 · long-form content (longform.css, .lf → article#fullArticle) ═══ */
/* longform.css — Cheercast reading pattern for article and legal pages.
   One source for both the Design System specimen and the Help Scout Docs theme.
   On support.cheercast.com.au the scope is #fullArticle; here it is article#fullArticle.
   Callout and label class names are Help Scout's own, so authors keep using
   the editor's built-in styles and this sheet restyles them.
   Canon: Claude Design project → longform.css (verbatim copy; do not edit
   here without syncing back). */

article#fullArticle{max-width:var(--container-text);font-family:var(--font-ui);font-size:15px;line-height:1.6;color:var(--fg-2)}
article#fullArticle>*:first-child{margin-top:0}
article#fullArticle>*:last-child{margin-bottom:0}

/* body */
article#fullArticle p{margin:0 0 16px}
article#fullArticle p.lead,article#fullArticle .lead{font-size:17px;line-height:1.55;color:var(--fg);margin-bottom:20px}
article#fullArticle strong,article#fullArticle b{font-weight:600;color:var(--fg)}

/* headings — Geist, not Area Extended: the display face is the article title's
   alone, so a policy with thirteen sections doesn't shout thirteen times */
article#fullArticle h2{font-size:19px;line-height:1.3;font-weight:700;color:var(--fg);margin:40px 0 12px;letter-spacing:-.005em}
article#fullArticle h3{font-size:16px;line-height:1.35;font-weight:700;color:var(--fg);margin:32px 0 8px}
article#fullArticle h4{font-size:14px;line-height:1.4;font-weight:600;color:var(--fg);margin:24px 0 8px}
article#fullArticle h5,article#fullArticle h6{font-size:14px;font-weight:600;color:var(--fg);margin:24px 0 8px}

/* links — always underlined. Colour alone can't mark a link inside running
   text (WCAG 1.4.1), and prose is the one place links sit mid-sentence. */
article#fullArticle a{color:var(--accent);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;text-decoration-color:color-mix(in oklab,var(--accent) 45%,transparent)}
article#fullArticle a:hover{color:var(--accent-hi);text-decoration-thickness:2px;text-decoration-color:currentColor}

/* lists */
article#fullArticle ul,article#fullArticle ol{margin:0 0 16px;padding-left:22px}
article#fullArticle li{margin:0;padding-left:4px}
article#fullArticle li+li{margin-top:6px}
article#fullArticle li>ul,article#fullArticle li>ol{margin:6px 0 0}
article#fullArticle ul{list-style:disc}
article#fullArticle ul ul{list-style:circle}
article#fullArticle ol{list-style:decimal}
article#fullArticle ol ol{list-style:lower-alpha}
article#fullArticle li::marker{color:var(--fg-4)}
article#fullArticle ol>li::marker{font-family:var(--font-mono);font-size:12.5px}

/* legal clause list — Help Scout markup: <ol><li><strong class="cc-legallist-header">
   Numbered 1 · 1.1 · (a); the clause heading carries the top-level number. */
article#fullArticle ol:has(>li>strong.cc-legallist-header){counter-reset:clause;list-style:none;padding-left:0;margin-bottom:24px}
article#fullArticle ol:has(>li>strong.cc-legallist-header)>li{counter-increment:clause;position:relative;padding-left:36px;margin:0}
article#fullArticle ol:has(>li>strong.cc-legallist-header)>li+li{margin-top:28px}
article#fullArticle ol:has(>li>strong.cc-legallist-header)>li::before{content:counter(clause);position:absolute;left:0;top:0;font-family:var(--font-mono);font-size:13px;font-weight:600;line-height:24px;color:var(--fg-3)}
article#fullArticle strong.cc-legallist-header{display:block;font-size:16px;line-height:24px;font-weight:700;color:var(--fg);margin-bottom:10px}
article#fullArticle ol:has(>li>strong.cc-legallist-header)>li>ol{counter-reset:sub;list-style:none;padding-left:0;margin:0}
article#fullArticle ol:has(>li>strong.cc-legallist-header)>li>ol>li{counter-increment:sub;position:relative;padding-left:44px}
article#fullArticle ol:has(>li>strong.cc-legallist-header)>li>ol>li+li{margin-top:10px}
article#fullArticle ol:has(>li>strong.cc-legallist-header)>li>ol>li::before{content:counter(clause) "." counter(sub);position:absolute;left:-36px;width:72px;top:1px;font-family:var(--font-mono);font-size:12px;color:var(--fg-4)}
article#fullArticle ol:has(>li>strong.cc-legallist-header)>li>ol>li>ol{list-style:lower-alpha;padding-left:22px;margin-top:8px}
article#fullArticle ol:has(>li>strong.cc-legallist-header)>li>ol>li>ol>li+li{margin-top:4px}

/* quote, code, rule */
article#fullArticle blockquote{margin:24px 0;padding:2px 0 2px 18px;border-left:2px solid var(--border-3);color:var(--fg);font-size:16px;line-height:1.55}
article#fullArticle blockquote p:last-child{margin:0}
article#fullArticle code{font-family:var(--font-mono);font-size:.87em;background:var(--surface-2);color:var(--fg);padding:2px 6px;border-radius:4px}
article#fullArticle pre{margin:20px 0;padding:14px 16px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow-x:auto;font-family:var(--font-mono);font-size:13px;line-height:1.6;color:var(--fg)}
article#fullArticle pre code{background:none;padding:0;font-size:inherit}
article#fullArticle hr{border:none;border-top:1px solid var(--border);margin:36px 0}

/* media */
article#fullArticle img{max-width:100%;height:auto;border-radius:var(--radius);display:block}
article#fullArticle figure{margin:24px 0}
article#fullArticle figcaption{font-size:12.5px;line-height:1.5;color:var(--fg-3);margin-top:8px}
article#fullArticle .video,article#fullArticle .embed-responsive{position:relative;aspect-ratio:16/9;margin:24px 0;border-radius:var(--radius);overflow:hidden;background:var(--black)}
article#fullArticle .video iframe,article#fullArticle .embed-responsive iframe{position:absolute;inset:0;width:100%;height:100%;border:0}

/* table — hairlines, mono column labels, no zebra (same as the system table) */
article#fullArticle table{width:100%;border-collapse:collapse;margin:20px 0;font-size:14px}
article#fullArticle th{text-align:left;font-family:var(--font-mono);font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;font-weight:600;color:var(--fg-4);padding:0 12px 9px 0;border-bottom:1px solid var(--border-2)}
article#fullArticle td{padding:10px 12px 10px 0;border-bottom:1px solid var(--border);color:var(--fg-2);vertical-align:top}
article#fullArticle tr:last-child td{border-bottom:none}

/* callouts — Help Scout's classes, drawn as the system banner */
article#fullArticle .callout,article#fullArticle .callout-yellow,article#fullArticle .callout-blue,article#fullArticle .callout-green,article#fullArticle .callout-red,article#fullArticle .private-note{margin:20px 0;padding:13px 15px;border-radius:var(--radius);border:1px solid var(--border);background:var(--surface);color:var(--fg);font-size:14px;line-height:1.55}
article#fullArticle .callout-yellow{background:var(--warn-soft);border-color:color-mix(in oklab,var(--warn) 30%,transparent);color:color-mix(in oklab,var(--warn) 55%,var(--fg))}
article#fullArticle .callout-blue{background:var(--accent-soft);border-color:var(--accent-border);color:var(--accent-hi)}
article#fullArticle .callout-green{background:var(--good-soft);border-color:color-mix(in oklab,var(--good) 22%,transparent);color:color-mix(in oklab,var(--good) 58%,var(--fg))}
article#fullArticle .callout-red{background:var(--danger-soft);border-color:color-mix(in oklab,var(--danger) 26%,transparent);color:color-mix(in oklab,var(--danger) 58%,var(--fg))}
article#fullArticle .private-note{border-style:dashed;border-color:var(--border-3)}
article#fullArticle .private-note::before{content:"Private note";display:block;font-family:var(--font-mono);font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--fg-4);margin-bottom:4px}
article#fullArticle [class^="callout"] p:last-child,article#fullArticle .private-note p:last-child{margin:0}
article#fullArticle [class^="callout"] strong{color:inherit;font-weight:700}
article#fullArticle [class^="callout"] a{color:inherit}

/* badges — Help Scout labels as soft pills */
article#fullArticle .label-info,article#fullArticle .label-success,article#fullArticle .label-warning,article#fullArticle .label-error,article#fullArticle .label-danger{display:inline-flex;align-items:center;height:21px;padding:0 8px;border-radius:var(--radius-pill);font-size:11.5px;font-weight:600;line-height:1;vertical-align:1px;border:1px solid transparent}
article#fullArticle .label-info{background:var(--accent-soft);color:var(--accent-hi);border-color:var(--accent-border)}
article#fullArticle .label-success{background:var(--good-soft);color:var(--good);border-color:color-mix(in oklab,var(--good) 22%,transparent)}
article#fullArticle .label-warning{background:var(--warn-soft);color:color-mix(in oklab,var(--warn) 58%,var(--fg));border-color:color-mix(in oklab,var(--warn) 30%,transparent)}
article#fullArticle .label-error,article#fullArticle .label-danger{background:var(--danger-soft);color:var(--danger);border-color:color-mix(in oklab,var(--danger) 26%,transparent)}

/* ═══ 3 · Help Scout DOM overrides (helpscout-docs.src.css) ═══ */
/* ============================================================================
   CHEERCAST · HELP SCOUT DOCS THEME  (source)
   ----------------------------------------------------------------------------
   Restyles support.cheercast.com.au onto the v4 design system. Help Scout owns
   the markup (Bootstrap-2 era: #mainNav / #docsSearch / .threeCol .collection /
   #main-content.span9 + #sidebar.span3 / #fullArticle / footer), so this is
   CSS only: fonts, colour, spacing and swapped icons. Every selector below
   maps to an element Help Scout renders; nothing is added.

   Canon: Claude Design → "Cheercast Support Centre.html" (+ longform.css).
   Build: bin/build-helpscout-css.sh → assets/css/helpscout-docs.css, which is
   what Help Scout loads (Docs → Custom Code → Custom Stylesheet URL). The
   build prepends the :root tokens (minus the self-hosted @font-face — fonts
   arrive via Google Fonts / Adobe in the head code) and longform.css rescoped
   from .lf to article#fullArticle. Do not edit the built file.

   Specificity: Help Scout's colour-picker rules live in an inline <style>
   (#fullArticle p {…}, .navbar .nav li a {…}) whose position relative to the
   custom sheet is not documented, so load-bearing rules here carry one extra
   element/class of weight (article#fullArticle, header#mainNav) rather than
   relying on source order.
   ========================================================================== */

/* ── icons (mask-image, so they take currentColor) ─────────────────────── */
:root {
  --hs-i-doc:    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 3h8l5 5v13H6z' stroke='%23000' stroke-width='1.6' stroke-linejoin='round'/%3E%3Cpath d='M14 3v5h5M9 13h6M9 17h4' stroke='%23000' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  --hs-i-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='11' cy='11' r='6.5' stroke='%23000' stroke-width='1.7'/%3E%3Cpath d='m16 16 4 4' stroke='%23000' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E");
  --hs-i-chev:   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='m9 6 6 6-6 6' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --hs-i-chevd:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='m6 9 6 6 6-6' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --hs-i-arrow:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 12h14m-6-6 6 6-6 6' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --hs-i-print:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M7 9V4h10v5M7 17H5a1 1 0 01-1-1v-5a2 2 0 012-2h12a2 2 0 012 2v5a1 1 0 01-1 1h-2' stroke='%23000' stroke-width='1.6' stroke-linejoin='round'/%3E%3Cpath d='M7 14h10v6H7z' stroke='%23000' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E");
  --hs-i-tick:   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --hs-i-cross:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='m6 6 12 12M18 6 6 18' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  /* page gutter: never under 20px, and never past the 1200px container */
  --hs-gutter: max(clamp(20px, 5vw, 56px), calc((100% - var(--container)) / 2));
}
.hs-ico, .icon-article-doc, .icon-arrow, #searchBar .icon-search, .icon-print, .rating-face {
  display: inline-block; flex-shrink: 0; background-color: currentColor;
  -webkit-mask: var(--hs-m) center / contain no-repeat; mask: var(--hs-m) center / contain no-repeat;
}
.icon-article-doc::before, .icon-arrow::before, .icon-search::before, .icon-print::before { content: none; }

/* ── base ──────────────────────────────────────────────────────────────── */
html { font-size: 100%; height: 100%; }
/* sticky footer: the page is a column that fills the viewport; #contentArea
   grows and, since Help Scout renders <footer> inside it, pushes the footer to
   the bottom on short pages (an empty category, a two-line article) */
body {
  margin: 0; padding: 0; background: var(--bg); color: var(--fg); min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  font-family: var(--font-ui); font-size: 15px; line-height: 1.5;
  font-feature-settings: "ss01", "cv11"; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { color: var(--accent-hi); text-decoration: none; }
button, input, select { font-family: inherit; }
.container-fluid { padding: 0; }
.row-fluid::before, .row-fluid::after, .navbar-inner::before, .navbar-inner::after,
.container-fluid::before, .container-fluid::after { display: none; } /* Bootstrap clearfix pseudo-elements would become flex/grid items */
/* display face: title-only, Black 900 (the kit ships Thin 100 + Black 900) */
.hs-disp, #docsSearch h1, .threeCol h2, .twoCol h2, .contentWrapper h1, article#fullArticle h1.title {
  font-family: var(--font-display); font-weight: 900; font-synthesis: none; font-feature-settings: normal; letter-spacing: -.01em;
}

/* ── 1 · header — Navigation component, no ribbon ──────────────────────── */
header#mainNav.navbar { margin: 0; position: sticky; top: 0; z-index: 30; overflow: visible; }
header#mainNav .navbar-inner {
  min-height: 0; padding: 0; border: 0; border-bottom: 1px solid var(--border); border-radius: 0;
  background: var(--panel); background-image: none; box-shadow: none; filter: none;
}
header#mainNav .navbar-inner .container-fluid {
  max-width: none; margin: 0; position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 56px; padding: 0 var(--hs-gutter);
}
header#mainNav .brand { float: none; display: block; padding: 0; margin: 0; line-height: 0; text-shadow: none; flex-shrink: 0; }
header#mainNav .brand img { height: 33px; width: auto; max-height: none; display: block; }
header#mainNav .nav-collapse { position: static; height: auto; overflow: visible; clear: none; }
header#mainNav .nav { position: static; float: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
header#mainNav .nav li { display: block; float: none; margin: 0; }
/* Help Scout renders Contact twice (desktop + mobile item); show one at a time */
header#mainNav .nav li#contactMobile { display: none; }
header#mainNav .nav li a {
  display: inline-flex; align-items: center; height: 32px; padding: 0 10px; border-radius: 8px;
  font-size: 13px; font-weight: 500; line-height: 1; letter-spacing: -.003em; color: var(--fg-3);
  background: none; box-shadow: none; text-shadow: none; position: relative; white-space: nowrap;
  transition: background .12s, color .12s;
}
header#mainNav .nav li a:hover, header#mainNav .nav li a:focus { background: var(--surface); color: var(--fg); }
header#mainNav .nav .active a, header#mainNav .nav .active a:hover, header#mainNav .nav .active a:focus { color: var(--fg); background: none; box-shadow: none; }
header#mainNav .nav .active a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -12px; height: 2px; border-radius: 2px; background: var(--accent); }
header#mainNav .nav .caret, header#mainNav .nav .active .caret { display: none; }
header#mainNav .btn-navbar { display: none; }

/* ── 2 · search band — the support site's hero; the input is its one action ─ */
#docsSearch { margin: 0; padding: 56px var(--hs-gutter) 60px; background: var(--panel); border-bottom: 1px solid var(--border); }
#docsSearch h1 { margin: 0 0 22px; text-align: left; font-size: clamp(28px, 4vw, 40px); line-height: 1.05; color: var(--fg); max-width: 18ch; }
#searchBar { width: 100%; max-width: 620px; margin: 0; padding: 0; text-align: left; position: relative; }
#searchBar::before {
  content: ""; position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px; z-index: 1;
  background: var(--fg-4); -webkit-mask: var(--hs-i-search) center / contain no-repeat; mask: var(--hs-i-search) center / contain no-repeat; pointer-events: none;
}
#searchBar .search-query {
  display: block; width: 100%; height: var(--control-lg); margin: 0; padding: 0 118px 0 44px; box-sizing: border-box;
  background: var(--panel); border: 1.5px solid var(--border-2); border-radius: var(--radius-sm); box-shadow: none;
  font-size: 15px; line-height: normal; color: var(--fg); transition: border-color .12s, box-shadow .12s;
}
#searchBar .search-query::placeholder { color: var(--fg-4); }
#searchBar .search-query:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
#searchBar button {
  position: absolute; top: 6px; right: 6px; bottom: auto; height: 40px; padding: 0 16px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 5px; background: var(--accent); color: var(--accent-fg);
  font-size: 14px; font-weight: 600; line-height: 1; text-shadow: none; cursor: pointer; transition: filter .12s;
}
#searchBar button:hover { background: var(--accent); filter: brightness(.94); }
#searchBar button .icon-search { display: none; }
#searchBar button span { display: inline; }

/* live results — the searchable-select popover */
#serp-dd, #serp-dd.sb {
  top: calc(100% + 6px); left: 0; width: 100%; padding: 6px; box-sizing: border-box;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-pop); z-index: 20;
}
#serp-dd .result { margin: 0; padding: 0; list-style: none; max-height: 360px; }
#serp-dd .result > li { margin: 0; text-align: left; }
#serp-dd .result > li:first-child, #serp-dd .result > li:last-child { margin: 0; }
#serp-dd .result a { display: block; padding: 9px 10px; border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 500; line-height: 1.4; color: var(--fg-2); }
#serp-dd .result a:hover { background: var(--surface); color: var(--fg); }
#serp-dd .result > li.active { background: none; }
#serp-dd .result > li.active a { background: var(--accent-soft); color: var(--accent-hi); font-weight: 600; }
#serp-dd .result > li.private a { color: var(--fg-3); }
#serp-dd .noResults { padding: 10px; font-size: 13px; color: var(--fg-4); }

/* ── 3 · collections (home) — works for two or three ───────────────────── */
/* Help Scout renders <footer> INSIDE #contentArea, so the gutter goes on the
   section's children rather than the section, and the footer can run edge to edge */
#contentArea { max-width: none; margin: 0; padding: 36px 0 0; flex: 1 0 auto; display: flex; flex-direction: column; }
#contentArea > footer { margin-top: auto; }
header#mainNav, #docsSearch { flex-shrink: 0; }
#contentArea > .row-fluid, #contentArea > #noResults, #contentArea > .appMessage { margin-left: var(--hs-gutter); margin-right: var(--hs-gutter); }
#contentArea > .row-fluid { margin-bottom: 56px; }
#contentArea > .appMessage, #noResults { font-size: 14px; color: var(--fg-2); }
.threeCol, .twoCol {
  text-align: left; padding: 0; width: auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px;
}
.threeCol .collection, .twoCol .collection {
  width: auto; min-height: 0; margin: 0; display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: 24px 26px 20px; text-align: left;
}
.threeCol .collection .collection-head, .twoCol .collection .collection-head { padding: 0; margin: 0; border: 0; }
.threeCol .collection .collection-body, .twoCol .collection .collection-body { padding: 0; display: flex; flex-direction: column; flex: 1; }
.threeCol h2, .twoCol h2 { margin: 0; font-size: 22px; line-height: 1.15; text-align: left; }
.threeCol h2 a, .twoCol h2 a { color: var(--fg); border: 0; display: inline; }
.threeCol h2 a:hover, .twoCol h2 a:hover { color: var(--accent); border: 0; }
.threeCol p, .twoCol p { margin: 6px 0 16px; font-size: 13.5px; line-height: 1.5; color: var(--fg-3); }
.threeCol .popArticles, .twoCol .popArticles { list-style: none; margin: 0 0 14px; padding: 0; font-size: 15px; text-align: left; border-top: 1px solid var(--border); }
.threeCol .popArticles li, .twoCol .popArticles li { margin: 0; padding: 0; border-bottom: 1px solid var(--border); }
.threeCol .popArticles a, .twoCol .popArticles a,
.articleList a {
  display: flex; align-items: flex-start; gap: 11px; margin: 0; padding: 11px 0;
  font-size: 15px; line-height: 1.4; color: var(--fg-2); text-decoration: none;
}
.threeCol .popArticles a:hover, .twoCol .popArticles a:hover, .articleList a:hover { color: var(--accent); }
.threeCol .popArticles a:hover span, .twoCol .popArticles a:hover span, .articleList a:hover span { text-decoration: none; }
.icon-article-doc { --hs-m: var(--hs-i-doc); width: 16px; height: 16px; margin: 2px 0 0; color: var(--fg-4); }
a:hover .icon-article-doc { color: var(--accent); }
.threeCol .browse, .twoCol .browse {
  margin: auto 0 0 -10px; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 10px; border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 600; color: var(--accent);
}
.threeCol .browse::after, .twoCol .browse::after { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: var(--hs-i-arrow) center / contain no-repeat; mask: var(--hs-i-arrow) center / contain no-repeat; }
.threeCol .browse:hover, .twoCol .browse:hover { background: var(--accent-soft); color: var(--accent-hi); }

/* categories grid (the alternative home layout) — feature tiles */
.category-list { margin: 0; text-align: left; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.category-list .category, .category-list.two-col .category {
  width: auto; margin: 0; padding: 22px; text-align: left; box-sizing: border-box;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.category-list .category:hover { background: var(--panel); border-color: var(--border-2); }
.category-list h3 { margin: 0 0 6px; font-size: 17px; font-weight: 700; line-height: 1.25; color: var(--fg); }
.category-list p, .category-list .category p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--fg-3); }
.category-list .category .article-count, .category-list .category:hover .article-count { margin-top: 12px; font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-3); }

/* ── two-column body — main 75, sidebar 25, sidebar on the right ───────── */
#contentArea > .row-fluid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 28px; align-items: start; width: auto; }
/* the home grid is also `#contentArea > .row-fluid` — keep its own tracks and let the cards stretch */
#contentArea > .threeCol, #contentArea > .twoCol { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: stretch; }
#contentArea > .row-fluid > [class*="span"] { float: none; width: auto; min-height: 0; margin: 0; }
#main-content { padding: 0; margin: 0; background: none; float: none; }
.contentWrapper {
  min-height: 0; padding: 32px 36px; color: var(--fg);
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); position: relative;
}
.contentWrapper h1 { margin: 0 0 6px; font-size: 28px; line-height: 1.15; color: var(--fg); }
.contentWrapper p { margin: 0 0 16px; color: var(--fg-2); word-wrap: break-word; }
.contentWrapper p.descrip { margin: 0 0 18px; font-size: 14px; color: var(--fg-3); }
.contentWrapper p.descrip:empty { display: none; }
#categoryHead { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; margin: 0 0 18px; }
#categoryHead h1 { grid-column: 1; margin: 0; }
#categoryHead .descrip { grid-column: 1 / -1; margin: 0; }
#categoryHead .sort { grid-column: 2; grid-row: 1; margin: 0; }
#categoryHead .sort select, .sort select {
  height: var(--control-sm); box-sizing: border-box; line-height: normal; margin: 0; padding: 0 32px 0 12px; border: 1.5px solid var(--border-2); border-radius: var(--radius-sm);
  background: var(--panel) var(--hs-i-chevd) right 8px center / 16px no-repeat; appearance: none; -webkit-appearance: none;
  font-size: 13.5px; font-weight: 500; color: var(--fg-2); cursor: pointer; width: auto; line-height: normal;
}
#categoryHead .sort select:focus, .sort select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.contentWrapper p.no-articles {
  margin: 0; padding: 36px 12px 20px; text-align: center; font-style: normal; font-size: 14px; color: var(--fg-2);
  display: flex; flex-direction: column; align-items: center; gap: 14px; position: relative;
}
.contentWrapper p.no-articles::before { content: ""; width: 48px; height: 48px; border-radius: 12px; background: var(--surface-2); }
.contentWrapper p.no-articles::after {
  content: ""; position: absolute; top: 48px; left: 50%; width: 24px; height: 24px; margin-left: -12px;
  background: var(--fg-3); -webkit-mask: var(--hs-i-doc) center / contain no-repeat; mask: var(--hs-i-doc) center / contain no-repeat;
}
.articleList { list-style: none; margin: 0; padding: 0; font-size: 15px; border-top: 1px solid var(--border); }
.articleList li { margin: 0; padding: 0; border-bottom: 1px solid var(--border); }
.articleList li:last-child { border-bottom: none; }
/* search results: count line, then rows with an excerpt under each */
#serp h1 { font-size: 22px; margin: 0 0 6px; }
#serp h1 strong { color: var(--accent); font-weight: inherit; }
#serp .articlesFound, #serp .nada { margin: 0 0 16px; font-size: 14px; color: var(--fg-2); }
#serp .articlesFound strong { color: var(--fg); font-weight: 600; }
#serp .articleList > li { padding: 4px 0 12px; }
#serp .articleList > li a { display: flex; font-size: 15px; font-weight: 600; margin: 0; padding: 11px 0 2px; color: var(--fg); }
#serp .articleList > li a:hover { color: var(--accent); }
#serp .articleList > li a .icon-private-w { color: var(--fg-4); }
#serp p { margin: 0 0 0 27px; font-size: 13.5px; line-height: 1.55; color: var(--fg-3); }
#serp .nada { padding: 36px 12px 20px; text-align: center; }

/* ── sidebar — the account-page sidebar ────────────────────────────────── */
#sidebar { margin: 0; padding: 0; }
#sidebar form { position: relative; margin: 0 0 24px; }
#sidebar form#searchBar { max-width: none; }
#sidebar form#searchBar::before { display: none; }
#sidebar form .search-query {
  height: var(--control-sm); padding: 0 40px 0 11px; font-size: 13.5px; line-height: normal;
  border: 1.5px solid var(--border-2); border-radius: var(--radius-sm); box-shadow: none; color: var(--fg);
}
#sidebar form .search-query:focus, #sidebar form .search-query:focus:invalid { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
#sidebar form button, #searchBar.sm button {
  top: 3px; right: 3px; height: 28px; width: 30px; padding: 0; margin: 0; line-height: 1;
  border: 0; border-radius: 4px; background: none; color: var(--fg-3); filter: none;
}
#sidebar form button:hover, #searchBar.sm button:hover { background: var(--surface); color: var(--fg); filter: none; }
#searchBar.sm button .icon-search { --hs-m: var(--hs-i-search); display: inline-block; width: 15px; height: 15px; }
#searchBar.sm button span { display: none; }
#sidebar h3 { margin: 24px 0 8px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; font-weight: 600; color: var(--fg-4); }
#sidebar .nav-list { margin: 0; padding: 0; list-style: none; }
#sidebar .nav-list li { margin: 0; }
#sidebar .nav-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: auto;
  padding: 8px 10px; margin: 0 -10px; border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 500; line-height: 1.35; color: var(--fg-2); text-shadow: none;
}
#sidebar .nav-list a:hover, #sidebar .nav-list a:focus { background: var(--surface); color: var(--fg); }
#sidebar .nav-list .active a, #sidebar .nav-list .active a:hover, #sidebar .nav-list .active a:focus { background: var(--accent-soft); color: var(--fg); font-weight: 600; }
#sidebar .nav-list a .icon-arrow { --hs-m: var(--hs-i-chev); display: inline-block; width: 14px; height: 14px; color: var(--fg-4); opacity: 0; }
#sidebar .nav-list .active a .icon-arrow, #sidebar .nav-list .active a:hover .icon-arrow, #sidebar .nav-list .active a:focus .icon-arrow { display: inline-block; opacity: 1; color: var(--accent); }
#sidebar .contactUs { color: var(--fg-3); }

/* ── article ───────────────────────────────────────────────────────────── */
article#fullArticle { position: relative; max-width: none; }
article#fullArticle h1.title { margin: 0 0 24px; padding-right: 50px; font-size: 40px; line-height: 1.05; color: var(--fg); }
article#fullArticle .printArticle, #fullArticle.withPreview .printArticle {
  position: absolute; top: 2px; right: 0; width: 34px; height: 34px; border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; justify-content: center; color: var(--fg-4);
}
article#fullArticle .printArticle:hover { background: var(--surface); color: var(--fg); }
article#fullArticle .printArticle .icon-print, article#fullArticle .printArticle:hover .icon-print { --hs-m: var(--hs-i-print); width: 18px; height: 18px; color: inherit; }
/* "View in Help Scout" (logged-in Help Scout users only) — a small ghost button,
   in flow wherever Help Scout puts it, with Bootstrap's .btn gradient stripped */
article#fullArticle .admin-edit, article#fullArticle .admin-edit.btn {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; margin: 0 0 16px;
  border: 1.5px solid var(--border-2); border-radius: var(--radius-sm); background: var(--panel); background-image: none;
  color: var(--fg-2); font-family: var(--font-ui); font-size: 13px; font-weight: 600; line-height: 1;
  text-shadow: none; box-shadow: none; text-decoration: none; vertical-align: middle; transition: background .12s, color .12s;
}
article#fullArticle .admin-edit::after {
  content: ""; width: 13px; height: 13px; background: currentColor; opacity: .7;
  -webkit-mask: var(--hs-i-arrow) center / contain no-repeat; mask: var(--hs-i-arrow) center / contain no-repeat; transform: rotate(-45deg);
}
article#fullArticle .admin-edit:hover, article#fullArticle .admin-edit:focus, article#fullArticle .admin-edit.btn:hover, article#fullArticle .admin-edit.btn:focus {
  background: var(--surface); background-position: 0 0; color: var(--fg); text-decoration: none; box-shadow: none;
}
/* prose measure: the title, rating card and foot stay full width */
article#fullArticle > :where(p, h2, h3, h4, h5, h6, ul, ol, dl, blockquote, pre, table, figure, hr, img, .callout, .callout-blue, .callout-green, .callout-yellow, .callout-red, .private-note, .video) { max-width: var(--container-text); }
/* Help Scout's colour picker writes `#fullArticle p, li, div, … { color }` into an
   inline <style>; longform colours the container and lets prose inherit, so
   re-assert inheritance at one element of extra weight. */
article#fullArticle p, article#fullArticle ul, article#fullArticle ol, article#fullArticle li, article#fullArticle dd, article#fullArticle table { color: inherit; font-size: 15px; line-height: 1.6; margin-bottom: 0; }
article#fullArticle p { margin-bottom: 16px; }
article#fullArticle ul, article#fullArticle ol { margin-bottom: 16px; }
article#fullArticle blockquote { color: var(--fg); }
article#fullArticle div:not(.articleRatings):not([class*="articleRatings"]) { color: inherit; }

/* rating — quiet card, two ghost buttons; the sr-only text becomes the label */
article#fullArticle .articleRatings, .articleRatings {
  margin: 36px 0 0; min-height: 0; padding: 16px 18px; box-shadow: none;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; color: var(--fg);
}
.articleRatings-question { margin: 0; font-weight: 600; color: var(--fg); }
.articleRatings-actions { width: auto; display: flex; gap: 8px; flex-shrink: 0; }
.rateAction, .rateAction--positive {
  position: static; width: auto; height: 36px; margin: 0; padding: 0 14px; border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; gap: 7px; background: var(--panel); border: 1.5px solid var(--border-2); box-shadow: none;
  font-family: var(--font-ui); font-size: 13px; font-weight: 600; color: var(--fg-2); cursor: pointer; transition: background .12s, color .12s; transform: none;
}
.rateAction:not([disabled=disabled]):hover, .rateAction:not([disabled=disabled]):focus { background: var(--surface); color: var(--fg); box-shadow: none; transform: none; outline: none; }
.rateAction.selected { background: var(--accent-soft); border-color: var(--accent-border); color: var(--accent-hi); box-shadow: none; transform: none; z-index: auto; }
.rateAction.selected::after { display: none; animation: none; }
.rateAction[disabled=disabled]:not(.selected) { opacity: .5; }
.rateAction .sr-only { position: static; width: auto; height: auto; margin: 0; padding: 0; overflow: visible; clip: auto; border: 0; order: 2; }
.rateAction .rating-face { --hs-m: var(--hs-i-tick); position: static; width: 15px; height: 15px; order: 1; color: var(--fg-4); transition: none; animation: none !important; }
.rateAction--negative .rating-face { --hs-m: var(--hs-i-cross); }
.rateAction:hover .rating-face, .rateAction.selected .rating-face { color: currentColor; animation: none !important; }
.rateAction .rating-face svg { display: none; }
.articleRatings-feedback { align-items: center; gap: 8px; font-size: 14px; color: var(--fg-2); }
.articleRatings-feedback-tick { width: 20px; height: 20px; }
.articleRatings-failure { font-size: 13.5px; color: var(--danger); }

/* article foot */
article#fullArticle .articleFoot, .articleFoot {
  clear: both; margin: 20px 0 0; padding: 18px 0 0; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--fg-3);
}
.articleFoot .icon-contact { display: none; }
.articleFoot p, .articleFoot p.help { margin: 0; display: inline; font-family: var(--font-ui); font-style: normal; font-size: 12.5px; line-height: 1.5; color: var(--fg-3); max-width: none; }
#sbContact, #sbContactMobile { color: var(--accent); font-weight: 600; border: 0; }
#sbContact:hover, #sbContactMobile:hover { color: var(--accent-hi); border: 0; }
.articleFoot time, .articleFoot time.lu, .articleFoot p.lu { float: none; margin: 0; display: inline; font-family: var(--font-mono); font-style: normal; font-size: 11.5px; color: var(--fg-3); }

/* ── 4 · footer — one paragraph, the black device ──────────────────────── */
footer, footer.center {
  margin: 0; padding: 0; text-align: left; background: var(--black); border: 0; border-radius: 0; box-shadow: none;
}
footer p, footer.center p { margin: 0; padding: 22px var(--hs-gutter); text-align: left; font-family: var(--font-mono); font-size: 11px; line-height: 1.5; color: rgba(255, 255, 255, .5); }
footer p a { color: rgba(255, 255, 255, .7); }
footer p a:hover { color: #fff; }

/* ── ≤768px — Help Scout's own breakpoint ──────────────────────────────── */
@media (max-width: 768px) {
  body { padding: 0; }
  header#mainNav.navbar { margin: 0; }
  header#mainNav .navbar-inner .container-fluid { padding: 0 20px; }
  header#mainNav .brand { padding: 0; margin: 0; max-width: none; }
  header#mainNav .btn-navbar {
    display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px;
    position: static; float: none; width: 36px; height: 36px; margin: 0; padding: 0;
    border: 1.5px solid var(--border-2); border-radius: var(--radius-sm); background: var(--panel); box-shadow: none; text-shadow: none; cursor: pointer;
  }
  header#mainNav .btn-navbar .icon-bar, header#mainNav .btn-navbar:hover .icon-bar { width: 18px; height: 2px; margin: 0; border-radius: 1px; background: var(--fg-2); box-shadow: none; }
  header#mainNav .btn-navbar .icon-bar + .icon-bar { margin-top: 0; }
  header#mainNav .btn-navbar:hover, header#mainNav .btn-navbar:focus, header#mainNav .btn-navbar:active { background: var(--surface); }
  /* the collapsed sheet: Bootstrap's JS drives height; we place and skin it */
  header#mainNav .nav-collapse {
    position: absolute; left: 0; right: 0; top: 56px; overflow: hidden; clear: none; z-index: 29;
    background: var(--panel); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-card);
  }
  header#mainNav .nav-collapse.collapse { height: 0; }
  header#mainNav .nav-collapse.in { height: auto; }
  header#mainNav .nav { display: block; float: none; margin: 0; padding: 8px 12px 12px; text-align: left; }
  header#mainNav .nav li, header#mainNav .nav li#contactMobile { display: block; }
  header#mainNav .nav li#contact { display: none; }
  header#mainNav .nav li a { display: flex; height: 42px; width: 100%; box-sizing: border-box; margin: 0; font-size: 14px; font-weight: 500; line-height: 1; }
  header#mainNav .nav .active a, header#mainNav .nav .active a:hover, header#mainNav .nav .active a:focus { background: var(--accent-soft); color: var(--accent-hi); font-weight: 600; }
  header#mainNav .nav .active a::after { display: none; }

  #docsSearch { margin: 0; padding: 36px 20px 40px; }
  #searchBar { width: 100%; padding: 0; }
  /* base hides the label on mobile (font-size 0, text-indent) and swaps in the icon font; keep the labelled button */
  #docsSearch #searchBar button { top: 6px; padding: 0 16px; border: 0; background: var(--accent); }
  #docsSearch #searchBar button span { display: inline; font-size: 14px; text-indent: 0; width: auto; }
  #docsSearch #searchBar button .icon-search { display: none; }
  #searchBar .serp-dd, #serp-dd, #serp-dd.sb { top: calc(100% + 6px); width: 100%; border-radius: var(--radius); }

  #contentArea { padding: 18px 0 0; }
  #contentArea > .row-fluid, #contentArea > #noResults, #contentArea > .appMessage { margin-left: 20px; margin-right: 20px; }
  #contentArea > .row-fluid { margin-bottom: 36px; }
  .threeCol, .twoCol { padding: 0; gap: 14px; }
  .threeCol .collection, .twoCol .collection, .threeCol .collection:first-child, .threeCol .collection:last-child, .twoCol .collection:first-child, .twoCol .collection:last-child {
    width: auto; margin: 0; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); min-height: 0;
  }
  .threeCol .collection .collection-head, .threeCol .collection .collection-body, .twoCol .collection .collection-head, .twoCol .collection .collection-body,
  .threeCol .collection:first-child .collection-head, .twoCol .collection:first-child .collection-head { padding: 0; margin: 0; border: 0; }
  .threeCol .popArticles, .twoCol .popArticles { padding: 0; margin: 0 0 14px; }

  #contentArea > .row-fluid { grid-template-columns: 1fr; gap: 18px; }
  #contentArea > .threeCol, #contentArea > .twoCol { grid-template-columns: 1fr; gap: 14px; }
  #main-content { margin: 0; padding: 0; width: auto; }
  .contentWrapper { padding: 22px 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); min-height: 0; }
  .contentWrapper h1 { font-size: 24px; }
  article#fullArticle h1.title { font-size: 28px; padding-right: 44px; }
  article#fullArticle .printArticle, #fullArticle.withPreview .printArticle { top: 0; right: 0; }
  #sidebar { margin: 0; padding: 0; }
  #sidebar form { margin: 0 0 15px; }
  #sidebar h3 { margin: 18px 0 8px; }
  .articleRatings { flex-direction: column; align-items: flex-start; }
  #categoryHead { grid-template-columns: 1fr; }
  #categoryHead .sort { grid-column: 1; grid-row: auto; }
  footer p, footer.center p { text-align: left; padding: 22px 20px; }
}

/* ── print ─────────────────────────────────────────────────────────────── */
@media print {
  header#mainNav, #sidebar, .printArticle, .sort, .articleRatings, footer { display: none; }
  #contentArea > .row-fluid { display: block; }
  .contentWrapper { border: 0; box-shadow: none; padding: 0; }
}
