/* ============================================================================
   NorthGrid Help Center - assets/help.css
   AUDIT 2026-10-04 BW: New file. Built to the 2026 NorthGrid Brand Guidelines
   (ARM Creative), sharing tokens, fonts and accessibility rules with the
   marketing site's css/ng-brand.css so both sites read as one brand.

   Palette   Pine #273B1A, Sage #859E85, Amber #FFB83B, Copper #AB4F1C,
             Chalk #EAE6DD, Onyx #221F20. Chalk is the page; Pine carries the
             video walkthrough panel; Amber marks the active step and the
             bracket motif. Onyx is ink and footer.
   Type      Headlines Rockwell Nova (local() only - ARM's TTF is the Microsoft
             Office build with no web license; see ng-brand.css), fallback slab
             stack. Body Host Grotesk (OFL, self-hosted woff2 in /fonts/).
   Contrast  Body text only in pairs that pass WCAG AA (ratios from ng-brand.css):
             Onyx/Chalk 13.1, Onyx/white 16.3, Chalk/Pine 9.8, Amber/Pine 7.1,
             Onyx/Amber 9.5. Amber and Sage are never text on light surfaces.
             Focus rings are Onyx on light and Amber on dark (both >= 3:1).
   ========================================================================== */

/* ── Fonts ─────────────────────────────────────────────────────────────── */
@font-face {
  font-family: 'Host Grotesk';
  src: url('/fonts/HostGrotesk-Variable-latin.woff2') format('woff2');
  font-weight: 300 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Host Grotesk';
  src: url('/fonts/HostGrotesk-Italic-Variable-latin.woff2') format('woff2');
  font-weight: 300 800; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'NG Display';
  src: local('Rockwell Nova'), local('RockwellNova'), local('Rockwell Nova Regular'),
       local('RockwellNova-Regular'), local('Rockwell'), local('Rockwell-Regular');
  font-weight: 400; font-style: normal; font-display: swap;
}

/* ── Tokens ────────────────────────────────────────────────────────────── */
:root {
  --pine: #273B1A; --sage: #859E85; --amber: #FFB83B; --copper: #AB4F1C;
  --chalk: #EAE6DD; --chalk-50: #F5F3EE; --onyx: #221F20; --white: #FFFFFF;
  --ink: var(--onyx); --ink-2: #5C5856; --line: #D6D1C5; --line-ui: #7A756E;
  --on-pine-2: #D8D3C8; --danger: #DA2C38;

  --f-display: 'NG Display', 'Rockwell Nova', Rockwell, 'Roboto Slab', 'Zilla Slab', Georgia, serif;
  --f-body: 'Host Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --track-display: -0.02em; --track-caps: 0.05em;

  --hdr-h: 72px;
  --tile: 12px 3px 12px 12px;           /* brand tile: square top-right corner */
  --tile-sm: 6px 1.5px 6px 6px;

  --bracket-l: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 600'%3E%3Cg fill='%23FFB83B'%3E%3Cpath d='M231.53,61.41H61.54v172.1L0,239.65V92.12C0,42.04,40.05,1.29,89.93.03l2.38-.03h145.38l-6.16,61.41Z'/%3E%3Cpath d='M61.54,368.95v169.64h172.45l6.15,61.41H92.31C42.13,600,1.29,560.03.03,510.26l-.03-2.38v-145.08l61.54,6.14Z'/%3E%3C/g%3E%3C/svg%3E");
  --bracket-r: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='360 0 240 600'%3E%3Cg fill='%23FFB83B'%3E%3Cpath d='M368.47,538.59h169.99v-172.1l61.54-6.14v147.53c0,50.08-40.05,90.83-89.93,92.09l-2.38.03h-145.38l6.16-61.41Z'/%3E%3Cpolygon points='362.31 0 368.47 61.42 538.46 61.42 538.46 233.51 600 239.65 600 0 362.31 0'/%3E%3C/g%3E%3C/svg%3E");
  --tile-pine: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M17.0,6.0 H58.0 V47.0 Q58.0,58.0 47.0,58.0 H17.0 Q6.0,58.0 6.0,47.0 V17.0 Q6.0,6.0 17.0,6.0 Z' fill='rgba%28255,255,255,0.075%29'/%3E%3C/svg%3E");
  --tile-chalk: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M17.0,6.0 H58.0 V47.0 Q58.0,58.0 47.0,58.0 H17.0 Q6.0,58.0 6.0,47.0 V17.0 Q6.0,6.0 17.0,6.0 Z' fill='%23F5F3EE'/%3E%3C/svg%3E");
}

/* ── Base ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.65;
  color: var(--ink); background: var(--chalk);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
button, input { font: inherit; color: inherit; }
a { color: var(--pine); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
strong, b { font-weight: 600; }
:focus-visible { outline: 2px solid var(--onyx); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--onyx); color: var(--chalk); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }
.wrap { width: min(1200px, 100% - 2 * max(4vw, 20px)); margin-inline: auto; }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1.5px solid transparent;
  font-size: 0.875rem; letter-spacing: var(--track-caps); text-transform: uppercase;
  cursor: pointer; text-decoration: none; background: none; white-space: nowrap;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-pine { background: var(--pine); color: var(--chalk); }
.btn-pine:hover:not(:disabled) { background: #1d2c13; }
.btn-outline { border-color: var(--onyx); color: var(--onyx); }
.btn-outline:hover:not(:disabled) { background: var(--onyx); color: var(--chalk); }
.btn-link { color: var(--pine); text-decoration: underline; text-transform: none; letter-spacing: 0; padding: 0 6px; }

/* ── Header ────────────────────────────────────────────────────────────── */
.hdr { position: sticky; top: 0; z-index: 20; background: var(--chalk); border-bottom: 1px solid var(--line); }
.hdr-in { display: flex; align-items: center; gap: 24px; min-height: var(--hdr-h); width: min(1320px, 100% - 2 * max(3vw, 16px)); margin-inline: auto; }
.hdr-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--onyx); flex: none; }
.hdr-brand img { height: 36px; width: auto; }
.hdr-name { font-family: var(--f-display); font-size: 1.2rem; letter-spacing: var(--track-display); padding-left: 14px; border-left: 1px solid var(--line-ui); line-height: 1.2; }
.hdr-search { margin-left: auto; display: flex; width: min(420px, 100%); }
.hdr-search input {
  flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 1.5px solid var(--line-ui); border-right: 0;
  border-radius: 10px 0 0 10px; background: var(--white);
}
.hdr-search button {
  height: 44px; padding: 0 16px; border: 1.5px solid var(--onyx); border-radius: 0 10px 10px 0;
  background: var(--onyx); color: var(--chalk); font-size: 0.8125rem; letter-spacing: var(--track-caps); text-transform: uppercase; cursor: pointer;
}
.is-home .hdr-search { display: none; }               /* the home hero has the big one */
@media (max-width: 720px) {
  .hdr-in { flex-wrap: wrap; gap: 10px; padding-block: 12px; }
  .hdr-search { width: 100%; margin-left: 0; }
  .hdr-name { font-size: 1.05rem; }
  html { scroll-padding-top: 140px; }
}

/* ── Article shell ─────────────────────────────────────────────────────── */
.shell {
  width: min(1320px, 100% - 2 * max(3vw, 16px)); margin-inline: auto;
  display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; padding-block: 40px 80px;
}
.side { position: sticky; top: calc(var(--hdr-h) + 24px); align-self: start; max-height: calc(100vh - var(--hdr-h) - 48px); overflow-y: auto; padding-right: 6px; }
.side-toggle > summary { display: none; }
.side-group + .side-group { margin-top: 24px; }
.side-h { font-family: var(--f-body); font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.side ul { list-style: none; padding: 0; }
.side a {
  display: flex; align-items: center; gap: 8px; padding: 6px 10px; margin-left: -10px; border-radius: var(--tile-sm);
  color: var(--onyx); text-decoration: none; font-size: 0.9375rem; line-height: 1.35;
}
.side a:hover { background: var(--chalk-50); }
.side a[aria-current="page"] { background: var(--white); font-weight: 600; box-shadow: inset 3px 0 0 var(--amber); }
.has-video { flex: none; display: inline-block; width: 9px; height: 9px; margin-left: auto; border-radius: 3px 1px 3px 3px; background: var(--copper); }
li > .has-video { margin-left: 8px; }
/* AUDIT 2026-10-05 BW: legend explaining the video marker */
.legend { display: flex; align-items: center; gap: 8px; margin: 0 0 24px; font-size: 0.875rem; color: var(--ink-2); }
.legend .has-video { margin-left: 0; }
.side-legend { margin: 24px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.8125rem; }
@media (max-width: 960px) { .side-toggle .side-legend { margin: 8px 16px 16px; } }

@media (max-width: 960px) {
  .shell { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 20px; }
  .side { position: static; max-height: none; overflow: visible; padding: 0; }
  .side-toggle { background: var(--white); border-radius: var(--tile); border: 1px solid var(--line); }
  .side-toggle > summary { display: block; cursor: pointer; padding: 12px 16px; font-weight: 600; list-style: none; }
  .side-toggle > summary::-webkit-details-marker { display: none; }
  .side-toggle > summary::after { content: '+'; float: right; font-weight: 400; }
  .side-toggle[open] > summary::after { content: '\2013'; }
  .side-toggle .side-group { padding: 0 16px; }
  .side-toggle .side-group:last-child { padding-bottom: 16px; }
}

/* ── Page head ─────────────────────────────────────────────────────────── */
.doc-head { margin-bottom: 28px; max-width: 46rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
  font-size: 0.8125rem; letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--ink-2);
}
.eyebrow::before, .eyebrow::after { content: ''; width: 8px; height: 20px; background: var(--bracket-l) no-repeat left center / contain; }
.eyebrow::after { background-image: var(--bracket-r); background-position: right center; }
h1 { font-family: var(--f-display); font-weight: 400; letter-spacing: var(--track-display); line-height: 1.08; font-size: clamp(2.1rem, 1.5rem + 2vw, 3rem); }
.lead { margin-top: 14px; font-size: 1.1875rem; line-height: 1.55; color: var(--ink); max-width: 40rem; }
.notice {
  max-width: 46rem; margin-bottom: 24px; padding: 14px 18px; border-radius: var(--tile);
  background: var(--white); border: 1px solid var(--line); box-shadow: inset 4px 0 0 var(--copper); font-size: 0.975rem;
}

/* ── Article body + TOC ────────────────────────────────────────────────── */
.doc-body { display: grid; grid-template-columns: minmax(0, 46rem) 200px; gap: 48px; align-items: start; margin-top: 8px; }
.doc-body .prose { grid-column: 1; grid-row: 1; }
.toc { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--hdr-h) + 24px); font-size: 0.875rem; }
.toc h2 { font-family: var(--f-body); font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.toc ol { list-style: none; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 4px 0 4px 12px; color: var(--onyx); text-decoration: none; line-height: 1.35; }
.toc a:hover { text-decoration: underline; }
@media (max-width: 1240px) { .doc-body { grid-template-columns: minmax(0, 46rem); } .toc { display: none; } }

/* ── Prose ─────────────────────────────────────────────────────────────── */
.prose > * + * { margin-top: 1em; }
.prose h2 { font-family: var(--f-display); font-weight: 400; letter-spacing: var(--track-display); font-size: 1.75rem; line-height: 1.2; margin-top: 2.2em; }
.prose h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; margin-top: 1.8em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose .anchor { margin-left: 8px; opacity: 0; text-decoration: none; }
.prose .anchor::before { content: '#'; color: var(--ink-2); font-family: var(--f-body); font-size: 0.8em; }
.prose h2:hover .anchor, .prose h3:hover .anchor, .prose .anchor:focus { opacity: 1; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.35em; }
.prose li > ul, .prose li > ol, .prose li > p + * { margin-top: 0.5em; }
.prose ol > li::marker { font-weight: 600; }
.prose code { font-family: ui-monospace, 'SF Mono', Consolas, monospace; font-size: 0.88em; background: var(--chalk-50); border: 1px solid var(--line); padding: 0.05em 0.35em; border-radius: 4px; }
.prose pre { background: var(--onyx); color: var(--chalk); padding: 16px; border-radius: var(--tile); overflow-x: auto; }
.prose pre code { background: none; border: 0; color: inherit; padding: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2em; }
.prose dt { font-weight: 600; margin-top: 1.1em; }
.prose dd { margin: 0.25em 0 0 1.2em; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--tile); background: var(--white); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 600; background: var(--chalk-50); }
.prose tr:last-child td { border-bottom: 0; }
.prose .doc-updated { margin-top: 3em; font-size: 0.875rem; color: var(--ink-2); }

/* Access strip ("Who can do this / Where") at the top of task articles */
.ng-access {
  background: var(--white); border-radius: var(--tile); border: 1px solid var(--line);
  padding: 12px 16px; font-size: 0.9375rem; line-height: 1.6;
}
.doc > .ng-access-wrap { max-width: 46rem; }
/* Role badges, recolored to the 2026 palette (all pass AA for their text) */
.ng-badge { display: inline-block; padding: 0.05em 0.6em; border-radius: 5px 1px 5px 5px; font-size: 0.78em; font-weight: 600; vertical-align: 0.08em; }
.ng-badge--superuser { background: var(--onyx); color: var(--chalk); }
.ng-badge--admin     { background: var(--pine); color: var(--chalk); }
.ng-badge--fieldtech { background: var(--copper); color: var(--white); }
.ng-badge--viewer    { background: var(--sage); color: var(--onyx); }

/* Callouts (the !!! note / tip / warning blocks) */
.callout { padding: 14px 18px; border-radius: var(--tile); background: var(--white); border: 1px solid var(--line); box-shadow: inset 4px 0 0 var(--pine); }
.callout > * + * { margin-top: 0.5em; }
.callout-title { font-weight: 600; }
.callout-tip { box-shadow: inset 4px 0 0 var(--sage); }
.callout-warning { background: #FFF4DF; border-color: #F1D9A6; box-shadow: inset 4px 0 0 var(--copper); }
.callout-danger { background: #FCECEC; border-color: #F0C4C7; box-shadow: inset 4px 0 0 var(--danger); }
li .callout { margin-top: 0.75em; }

/* ── Video walkthrough ─────────────────────────────────────────────────────
   The one bold element: a Pine panel whose step timeline is a strip of brand
   tiles (ARM's tile shape, square top-right corner). Each tile is as wide as its step is long; the step playing now gets
   an Amber frame and fills as it plays. */
.wt {
  margin-bottom: 40px; padding: 22px clamp(16px, 2.4vw, 28px) 26px; border-radius: 18px 4px 18px 18px;
  color: var(--chalk); background: var(--pine);
}
.wt :focus-visible { outline-color: var(--amber); }
.wt-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 14px; }
.wt-heading { font-family: var(--f-display); font-weight: 400; letter-spacing: var(--track-display); font-size: 1.5rem; line-height: 1.2; margin-right: auto; }
.wt-roles, .wt-modes { display: inline-flex; padding: 3px; border-radius: 10px; background: rgba(0, 0, 0, 0.25); }
.wt-roles button, .wt-modes button {
  min-height: 38px; padding: 0 14px; border: 0; border-radius: 8px; background: none; color: var(--on-pine-2);
  cursor: pointer; font-size: 0.9375rem;
}
.wt-roles button[aria-selected="true"], .wt-modes button[aria-pressed="true"] { background: var(--chalk); color: var(--onyx); font-weight: 600; }
.wt-modes { display: none; }                        /* shown once JS is running */
.js .wt-modes { display: inline-flex; }
.wt-meta { font-size: 0.875rem; color: var(--on-pine-2); }

.wt-panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px 22px; }
@media (min-width: 1180px) {
  .wt-panel { grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); }
  .wt-meta { grid-column: 1 / -1; }
  .wt-stage { grid-column: 1; grid-row: 2; }
  .wt-steps { grid-column: 2; grid-row: 2; max-height: 600px; align-self: start; }
}
.wt-screen { position: relative; aspect-ratio: 16 / 9; background: #111; border-radius: 10px; overflow: hidden; }
.wt-player, .wt-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wt-error { position: absolute; inset: auto 12px 12px 12px; padding: 12px 14px; border-radius: 8px; background: var(--chalk); color: var(--onyx); font-size: 0.9375rem; }

/* Step-by-step card (replaces the video in "Step by step" mode) */
.wt-card { background: var(--chalk); color: var(--onyx); border-radius: var(--tile); padding: clamp(18px, 3vw, 32px); min-height: 300px; display: flex; flex-direction: column; }
.wt-card-count { font-size: 0.875rem; color: var(--ink-2); }
.wt-card-title { font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; letter-spacing: var(--track-display); line-height: 1.2; margin-top: 6px; }
.wt-card-text { margin-top: 12px; font-size: 1.125rem; line-height: 1.65; max-width: 44rem; flex: 1; }
.wt-card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* Timeline strip of tiles */
.wt-rail { list-style: none; padding: 0; display: flex; gap: 4px; margin-top: 12px; }
.wt-tile { flex-basis: 0; min-width: 14px; }
.wt-tile button {
  position: relative; display: block; width: 100%; height: 26px; padding: 0; border: 0; cursor: pointer;
  border-radius: 6px 1.5px 6px 6px; background: rgba(234, 230, 221, 0.18); overflow: hidden;
}
.wt-tile button:hover { background: rgba(234, 230, 221, 0.32); }
.wt-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--amber); }
.wt-tile.is-done .wt-fill { width: 100%; background: rgba(255, 184, 59, 0.42); }
.wt-tile.is-active button { box-shadow: 0 0 0 2px var(--amber); }

.wt-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 14px; }
.wt-controls .btn { min-height: 40px; padding: 0 14px; font-size: 0.8125rem; }
.wt-controls .btn-pine { background: var(--amber); color: var(--onyx); }
.wt-controls .btn-pine:hover:not(:disabled) { background: #f5aa22; }
.wt-controls .btn-outline { border-color: var(--on-pine-2); color: var(--chalk); }
.wt-controls .btn-outline:hover:not(:disabled) { background: var(--chalk); color: var(--onyx); }
.wt-card :focus-visible { outline-color: var(--onyx); }
.wt-switch { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9375rem; cursor: pointer; margin-left: 4px; }
.wt-switch input { width: 18px; height: 18px; accent-color: var(--amber); }
.wt-clock { margin-left: auto; font-variant-numeric: tabular-nums; font-size: 0.9375rem; color: var(--on-pine-2); }
.wt-keys { margin-top: 8px; font-size: 0.8125rem; color: var(--on-pine-2); }

/* Step list */
.wt-steps { list-style: none; padding: 0; border-radius: var(--tile); background: rgba(0, 0, 0, 0.2); overflow-y: auto; }
.wt-step + .wt-step { border-top: 1px solid rgba(234, 230, 221, 0.12); }
.wt-step-head {
  display: grid; grid-template-columns: 30px 1fr auto; align-items: baseline; gap: 10px; width: 100%;
  padding: 12px 16px 6px; border: 0; background: none; color: var(--chalk); text-align: left; cursor: pointer;
}
.wt-step-head:focus-visible { outline-offset: -3px; }
.wt-step-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 6px 1.5px 6px 6px; background: rgba(234, 230, 221, 0.16); font-size: 0.8125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.wt-step-label { font-weight: 600; line-height: 1.35; }
.wt-step-time { font-size: 0.8125rem; color: var(--on-pine-2); font-variant-numeric: tabular-nums; }
.wt-step-text { padding: 0 16px 14px 56px; font-size: 0.9375rem; line-height: 1.6; color: var(--on-pine-2); }
.wt-step:hover { background: rgba(234, 230, 221, 0.05); }
.wt-step.is-active { background: rgba(234, 230, 221, 0.1); box-shadow: inset 3px 0 0 var(--amber); }
.wt-step.is-active .wt-step-n { background: var(--amber); color: var(--onyx); }
.wt-step.is-active .wt-step-text { color: var(--chalk); }
.js .wt-step-text { display: none; }                 /* narration shows for the active step only */
.js .wt-step.is-active .wt-step-text { display: block; }
.wt.is-steps .wt-screen, .wt.is-steps .wt-controls, .wt.is-steps .wt-keys { display: none; }
.js .wt.is-steps .wt-step.is-active .wt-step-text { display: none; }   /* the card already shows it */

/* ── Home ──────────────────────────────────────────────────────────────── */
.home-hero { position: relative; padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); overflow: hidden; }
.home-hero::before {
  content: ''; position: absolute; inset: 0 0 0 48%; pointer-events: none;
  background: var(--tile-chalk) repeat top left / 72px 72px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 60%); mask-image: linear-gradient(to right, transparent, #000 60%);
}
.home-hero .wrap { position: relative; }
.home-hero h1 { font-size: clamp(2.6rem, 1.6rem + 3.6vw, 4.4rem); max-width: 14ch; }
.home-hero .lead { font-size: 1.25rem; max-width: 36rem; }
.home-search { display: flex; gap: 10px; margin-top: 28px; max-width: 640px; }
.home-search input { flex: 1; min-width: 0; height: 56px; padding: 0 18px; border: 1.5px solid var(--line-ui); border-radius: 12px; background: var(--white); font-size: 1.0625rem; }
.home-search .btn { min-height: 56px; padding: 0 24px; }
@media (max-width: 560px) { .home-search { flex-direction: column; } }

.home-guides { padding-block: 16px 72px; }
.home-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 40px 48px; }
.home-sec { border-top: 1px solid var(--onyx); padding-top: 16px; }
.home-sec h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.4rem; letter-spacing: var(--track-display); margin-bottom: 10px; }
.home-sec ul { list-style: none; padding: 0; }
.home-sec li { padding: 5px 0; display: flex; align-items: center; }
.home-sec a { color: var(--onyx); text-decoration: none; }
.home-sec a:hover { text-decoration: underline; }

.home-videos { color: var(--chalk); padding: 92px 0 72px; background: var(--tile-pine) repeat-x left 32px top 28px / 56px 56px, var(--pine); }
.home-videos h2 { font-family: var(--f-display); font-weight: 400; letter-spacing: var(--track-display); font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); }
.lead-dark { margin-top: 12px; max-width: 40rem; color: var(--on-pine-2); font-size: 1.0625rem; }
.vid-list { list-style: none; padding: 0; margin-top: 32px; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 40px; }
.vid-list a { display: flex; flex-direction: column; padding: 14px 0; border-top: 1px solid rgba(234, 230, 221, 0.2); color: var(--chalk); text-decoration: none; }
.vid-list a:hover .vid-title { text-decoration: underline; }
.vid-title { font-weight: 600; font-size: 1.0625rem; }
.vid-meta { font-size: 0.875rem; color: var(--on-pine-2); }
.home-videos :focus-visible { outline-color: var(--amber); }

/* ── Search results ────────────────────────────────────────────────────── */
.results { list-style: none; padding: 0; max-width: 46rem; }
.results li { padding: 18px 0; border-top: 1px solid var(--line); }
.res-title { font-weight: 600; font-size: 1.125rem; }
.res-sec { margin-left: 10px; font-size: 0.8125rem; color: var(--ink-2); }
.res-snip { margin-top: 6px; font-size: 0.975rem; }
.res-step { margin-top: 6px; font-size: 0.9375rem; color: var(--ink-2); }
mark { background: #FFE2A8; color: var(--onyx); padding: 0 2px; border-radius: 2px; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.ftr { background: var(--onyx); color: var(--chalk); padding: 48px 0; }
.ftr-in { width: min(1320px, 100% - 2 * max(3vw, 16px)); margin-inline: auto; display: grid; gap: 12px; }
.ftr img { height: 34px; width: auto; margin-bottom: 8px; }
.ftr a { color: var(--chalk); }
.ftr :focus-visible { outline-color: var(--amber); }
.ftr-small { font-size: 0.875rem; color: #B7B2A6; }
.ftr-small a { color: #B7B2A6; margin-left: 8px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media print {
  .hdr, .side, .toc, .wt-screen, .wt-rail, .wt-controls, .wt-keys, .wt-modes, .wt-card, .ftr, .skip { display: none !important; }
  .shell { display: block; } body { background: #fff; }
  .wt { background: #fff; color: #000; border: 1px solid #999; }
  .wt-steps { max-height: none !important; background: none; }
  .wt-step-text, .js .wt-step-text { display: block !important; color: #000 !important; }
  .wt-step-head, .wt-step-time { color: #000; }
}
