/* KFDPro user manual. Loads after site.css and uses its tokens.
   The manual is the printed equipment manual kept in the lid of the case: each topic is a
   white sheet resting on the foam, the table of contents is a well cut beside it. Things
   printed on the sheet (step numerals, routes, rules) are ink, not moulded objects. */

.help { --sheet-rule: #d7dde2; --label: #46545f; }

/* ---------- Layout: well | sheet | rail ---------- */

.help-layout {
  max-width: 1440px; margin-inline: auto;
  padding: 16px 16px 72px;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start;
}
@media (min-width: 768px) { .help-layout { padding: 28px 32px 104px; gap: 24px; } }
@media (min-width: 1040px) { .help-layout { grid-template-columns: 280px minmax(0, 1fr); gap: 32px; } }
@media (min-width: 1380px) {
  .help-layout { grid-template-columns: 280px minmax(0, 1fr) 208px; gap: 36px; }
  .help-layout.no-rail { grid-template-columns: 280px minmax(0, 1fr); }
}

.help-main { min-width: 0; }

/* ---------- The table-of-contents well ---------- */

.help-side { padding: 12px 12px 14px; }
@media (min-width: 1040px) {
  /* the well holds still; only the topic list scrolls, so search results can spill over the sheet */
  .help-side {
    position: sticky; top: calc(var(--nav-h) + 20px); z-index: 5;
    max-height: calc(100vh - var(--nav-h) - 40px);
    display: flex; flex-direction: column;
    padding: 18px 14px 22px;
  }
  .help-side .toc {
    flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
    margin-right: -8px; padding-right: 8px;
    scrollbar-width: thin; scrollbar-color: #9aa5ad transparent;
  }
}
.side-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-inline: 4px; }
.side-title {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-family: var(--font-display); font-weight: 800; font-stretch: 112%; font-size: 1.2rem;
  color: var(--text); text-decoration: none;
}
.side-title .icon { color: var(--shell); stroke-width: 2.2; }
.side-title:hover { color: var(--shell); }
.toc-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  background: transparent; color: var(--text); cursor: pointer;
  border: 1px solid var(--foam-rim); border-radius: var(--radius-ctl);
  font-family: var(--font-display); font-weight: 700; font-size: 0.975rem;
}
.toc-toggle:hover { border-color: var(--shell); color: var(--shell); }
.toc-toggle[aria-expanded="true"] { background: var(--tape); border-color: var(--shell); }
@media (min-width: 1040px) { .toc-toggle { display: none; } }

.toc > ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 18px; }
.toc-label {
  display: block; padding: 0 10px 6px;
  font-family: var(--font-display); font-stretch: 75%; font-weight: 800; font-size: 0.78rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--label);
}
.toc-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a {
  position: relative; display: flex; align-items: center; min-height: 44px; padding: 8px 10px 8px 24px;
  border-radius: var(--radius-ctl); color: var(--body); text-decoration: none; font-size: 0.975rem; line-height: 1.3;
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease;
}
.toc a:hover { background: #d4d8db; color: var(--text); }
@media (pointer: fine) and (min-width: 1040px) {
  .toc > ul { gap: 12px; margin-top: 14px; }
  .toc a { min-height: 34px; padding-block: 5px; font-size: 0.95rem; }
}
/* the page you are on: a strip of label tape laid on the well floor, with the app-blue mark */
.toc a[aria-current="page"] {
  background: var(--tape); color: var(--link); font-weight: 700;
  box-shadow: 0 1px 2px rgba(0, 21, 38, 0.3), 0 0 0 1px rgba(0, 21, 38, 0.06);
}
.toc a[aria-current="page"]::before {
  content: ""; position: absolute; left: 10px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px;
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px rgba(54, 174, 228, 0.25);
}
/* phones: the list folds away behind the Topics button (only once the script is there to open it) */
@media (max-width: 1039px) {
  .js .toc { display: none; }
  .js .toc.is-open { display: block; }
}

/* ---------- Search ---------- */

.help-search { position: relative; display: flex; align-items: center; margin-top: 12px; }
.help-search > .icon { position: absolute; left: 14px; color: #5b6a75; pointer-events: none; }
.help-search input {
  width: 100%; min-height: 48px; padding: 0 44px 0 42px;
  font-family: var(--font-body); font-size: 1rem; color: var(--tape-ink);
  background: var(--tape); border: 1px solid var(--foam-rim); border-radius: var(--radius-ctl);
  box-shadow: inset 0 1px 2px rgba(0, 21, 38, 0.12);
  -webkit-appearance: none; appearance: none;
  transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease;
}
.help-search input::placeholder { color: #66747f; }
.help-search input::-webkit-search-decoration { -webkit-appearance: none; }
.help-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(54, 174, 228, 0.35); }
.help-search kbd {
  position: absolute; right: 10px; padding: 1px 8px 2px; pointer-events: none;
  font-family: var(--font-id); font-size: 0.8rem; font-weight: 500; color: var(--label);
  background: var(--foam-well); border: 1px solid #c6ced4; border-radius: var(--radius-tape);
}
.help-search input:focus ~ kbd, .help-search input:not(:placeholder-shown) ~ kbd { display: none; }
@media (hover: none) { .help-search kbd { display: none; } }

/* results: a slip of paper laid over the page */
.search-results {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 60;
  width: 100%; max-height: min(68vh, 540px); overflow-y: auto; overscroll-behavior: contain;
  padding: 6px; background: var(--tape); color: var(--tape-ink); border-radius: 6px;
  box-shadow: 0 22px 44px -16px rgba(0, 21, 38, 0.45), 0 2px 5px rgba(0, 21, 38, 0.16), 0 0 0 1px rgba(0, 21, 38, 0.08);
}
@media (min-width: 1040px) { .help-side .search-results { width: min(580px, calc(100vw - 120px)); } }
.search-results[hidden] { display: none; }
.sr {
  display: grid; gap: 3px; padding: 11px 12px 12px; border-radius: 4px;
  color: var(--text); text-decoration: none; scroll-margin: 6px;
}
.sr + .sr { box-shadow: 0 -1px 0 var(--sheet-rule); }
.sr:hover, .sr.is-active { background: var(--foam-well); box-shadow: none; color: var(--text); }
.sr.is-active + .sr, .sr:hover + .sr { box-shadow: none; }
.sr-page {
  font-family: var(--font-display); font-stretch: 75%; font-weight: 800; font-size: 0.75rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--label);
}
.sr-head { font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; line-height: 1.25; }
.sr-snip { font-size: 0.9rem; line-height: 1.45; color: var(--muted); }
.sr mark, .prose mark { background: rgba(54, 174, 228, 0.3); color: inherit; border-radius: 2px; padding: 0 1px; }
.sr-empty { padding: 14px 12px 16px; font-size: 0.95rem; color: var(--muted); }
.sr-empty b { color: var(--text); }
.sr-foot {
  display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 9px 12px 6px; margin-top: 4px;
  border-top: 1px solid var(--sheet-rule); font-size: 0.8rem; color: var(--label);
}
.sr-foot kbd { font-family: var(--font-id); font-size: 0.78rem; padding: 0 5px; border: 1px solid #c6ced4; border-radius: 3px; background: var(--foam-well); }
@media (hover: none) { .sr-foot { display: none; } }

/* ---------- The sheet ---------- */

.help-sheet {
  position: relative;
  background: var(--tape); color: var(--tape-ink);
  border-radius: 4px;
  padding: 26px 18px 30px;
  box-shadow: 0 18px 40px -18px rgba(0, 21, 38, 0.35), 0 2px 4px rgba(0, 21, 38, 0.12);
}
@media (min-width: 768px) {
  .help-sheet { padding: 46px 52px 44px; }
  .help-sheet::before, .help-sheet::after {
    /* strips of clear tape holding the sheet in the lid */
    content: ""; position: absolute; top: -12px; width: 96px; height: 26px;
    background: rgba(214, 228, 238, 0.7); box-shadow: 0 1px 2px rgba(0, 21, 38, 0.15);
  }
  .help-sheet::before { left: 9%; transform: rotate(-3deg); }
  .help-sheet::after { right: 9%; transform: rotate(2.5deg); }
}
@media (min-width: 1200px) { .help-sheet { padding: 52px 64px 48px; } }

.sheet-head { padding-bottom: 20px; border-bottom: 3px solid var(--tape-ink); }
.sheet-head h1, .home-head h1 {
  font-family: var(--font-display); font-weight: 900; font-stretch: 112%;
  font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.02; letter-spacing: -0.015em;
  text-wrap: balance; max-width: 22ch;
}
.summary { margin-top: 14px; max-width: 62ch; font-size: 1.1875rem; line-height: 1.5; color: var(--muted); text-wrap: pretty; }

.crumbs ol {
  list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px;
  font-size: 0.9rem; color: var(--muted);
}
.crumbs li + li::before { content: "›"; margin-right: 8px; color: var(--foam-rim); }
.crumbs a { color: var(--link); }
.crumbs a:hover { color: var(--shell); text-decoration: underline; }

/* ---------- Running text ---------- */

.prose { margin-top: 28px; color: var(--body); }
.help-home .prose { margin-top: 0; }
.prose > * + * { margin-top: 16px; }
.prose > p, .prose > ul:not(.tasks), .prose > ol:not(.route), .prose li > p, .prose .with-shot > div > p { max-width: 70ch; }
.prose h2 {
  margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--sheet-rule);
  font-size: clamp(1.55rem, 2.3vw, 1.95rem); font-weight: 800; font-stretch: 112%; color: var(--text);
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.prose > h2:first-child, .prose > .needs:first-child + h2 { margin-top: 36px; }
.prose > h2:first-child { margin-top: 8px; border-top: 0; padding-top: 0; }
.prose > .home-head + h2 { margin-top: 40px; border-top: 0; padding-top: 0; }
.prose h3 {
  margin-top: 34px; font-size: 1.25rem; font-weight: 700; font-stretch: 105%; color: var(--text);
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.prose h2 + *, .prose h3 + * { margin-top: 14px; }
.prose ul, .prose ol:not(.proc):not(.route) { padding-left: 1.25em; }
.prose li + li { margin-top: 7px; }
.prose ul li::marker { color: #8795a0; }
.prose li > ul { margin-top: 8px; }
.prose b, .prose strong { font-weight: 700; color: var(--text); }
.prose a { color: var(--link); }
.prose a:hover { color: var(--shell); }
.prose code {
  font-family: var(--font-id); font-size: 0.9em; font-weight: 500; white-space: nowrap;
  padding: 1px 6px; border-radius: var(--radius-tape);
  background: #eef1f3; color: var(--tape-ink); box-shadow: 0 0 0 1px #d3dae0;
}
/* the app's own words, quoted as it shows them */
.prose q.msg { quotes: "\201C" "\201D"; color: var(--text); }
.path { white-space: normal; }
.path b { white-space: nowrap; }

/* ---------- Procedures: numbered steps joined by a printed rule ---------- */

.proc { list-style: none; margin: 22px 0 0; padding: 0; counter-reset: step; display: grid; gap: 20px; }
.proc > li { counter-increment: step; position: relative; padding-left: 52px; min-height: 36px; }
.proc > li::before {
  content: counter(step); position: absolute; left: 0; top: -4px;
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
  font-family: var(--font-display); font-weight: 900; font-stretch: 100%; font-size: 1rem;
  color: var(--on-shell); background: var(--tex-shell) var(--shell);
}
.proc > li:not(:last-child)::after {
  content: ""; position: absolute; left: 17px; top: 38px; bottom: -18px; width: 2px;
  background: var(--sheet-rule);
}
.proc > li > p + p, .proc > li > p + ul { margin-top: 8px; }
.proc > li > ul { padding-left: 1.2em; }
.proc-compact { gap: 14px; }
.proc-compact > li { padding-left: 44px; min-height: 30px; }
.proc-compact > li::before { width: 30px; height: 30px; font-size: 0.9rem; top: -2px; }
.proc-compact > li:not(:last-child)::after { left: 14px; top: 32px; bottom: -12px; }

/* ---------- Boxes printed on the sheet ---------- */

/* what you need: a moulded navy strip, the case shell carried onto the page */
.needs { padding: 18px 22px 20px; border-radius: var(--radius-cut); max-width: 70ch; background: var(--tex-shell) var(--shell); color: var(--on-shell-2); }
.needs a { color: var(--accent-2); }
.needs a:hover { color: var(--on-shell); }
.needs b { color: var(--on-shell); }
.needs ul li::marker { color: var(--accent); }
.needs .needs-h { display: inline-flex; padding: 4px 9px 3px; border-radius: var(--radius-tape); background: var(--accent); color: var(--accent-ink); }
.needs-h, .callout-h {
  font-family: var(--font-display); font-stretch: 75%; font-weight: 800; font-size: 0.8125rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--tape-ink);
}
.needs ul { margin: 8px 0 0; padding-left: 1.2em; }
.needs li + li { margin-top: 5px; }

.callout { padding: 18px 20px 20px; border-radius: 6px; background: #eef1f3; max-width: 70ch; }
.callout > p + p { margin-top: 8px; }
.callout-h .tape { font-size: 0.8125rem; }
.callout-caution .callout-h { margin-bottom: 12px; }
.callout-caution { background: #f3f3ee; }

/* ---------- Reference tables ---------- */

.ref { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 0.98rem; line-height: 1.5; }
.ref thead th {
  padding: 0 16px 9px 0; text-align: left; vertical-align: bottom;
  font-family: var(--font-display); font-stretch: 75%; font-weight: 800; font-size: 0.78rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--label);
  border-bottom: 2px solid var(--tape-ink);
}
.ref tbody th, .ref tbody td { padding: 12px 16px 12px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--sheet-rule); }
.ref tbody th {
  width: 32%; font-family: var(--font-display); font-weight: 700; font-stretch: 100%; font-size: 1rem;
  color: var(--text); line-height: 1.35;
}
.ref tbody th q.msg { font-family: var(--font-body); font-weight: 700; }
.ref td { color: var(--body); }
.ref td:last-child, .ref th:last-child { padding-right: 0; }
.ref-tight tbody th, .ref-tight tbody td { padding-block: 9px; }
.ref tbody th a { text-decoration-thickness: 1px; }
.port { display: inline-flex; align-items: center; gap: 10px; }
.port .icon { width: 24px; height: 24px; color: var(--shell); }
@media (max-width: 640px) {
  .ref thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .ref tbody tr { display: grid; gap: 4px; padding: 13px 0; border-bottom: 1px solid var(--sheet-rule); }
  .ref tbody th, .ref tbody td { width: auto; padding: 0; border: 0; }
  .ref td[data-label]::before {
    content: attr(data-label) " · "; font-family: var(--font-display); font-stretch: 75%; font-weight: 800;
    font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--label);
  }
  .ref-tight td[data-label]::before { content: none; }
}

/* ---------- Screenshots: prints of the screen, taped onto the page ---------- */

.with-shot { display: grid; gap: 26px; }
@media (min-width: 720px) and (max-width: 1039px), (min-width: 1200px) {
  .with-shot { grid-template-columns: minmax(0, 1fr) 236px; gap: 40px; align-items: start; }
  .with-shot > .snap { position: sticky; top: calc(var(--nav-h) + 32px); }
}
.with-shot > ol.proc, .with-shot > div > :first-child { margin-top: 0; }
.with-shot > div > * + * { margin-top: 16px; }
.with-shot > div > h2:first-child { margin-top: 36px; }

.snap { margin: 0; justify-self: center; width: 100%; max-width: 250px; }
.snap-frame {
  position: relative; display: block; width: 100%; padding: 0; border: 0; background: none;
  border-radius: 16px; cursor: zoom-in;
}
.snap img {
  width: 100%; height: auto; border-radius: 16px; background: var(--foam-well);
  box-shadow: 0 0 0 1px rgba(0, 21, 38, 0.16), 0 14px 26px -14px rgba(0, 21, 38, 0.5);
}
.snap-frame::before {
  content: ""; position: absolute; z-index: 1; top: -9px; left: 50%; width: 74px; height: 20px; margin-left: -37px;
  background: rgba(214, 228, 238, 0.72); box-shadow: 0 1px 2px rgba(0, 21, 38, 0.15); transform: rotate(-2deg);
}
.snap-frame .icon {
  position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; padding: 7px;
  border-radius: 50%; color: var(--on-shell); background: rgba(0, 21, 38, 0.72); opacity: 0;
  transition: opacity var(--t-fast) ease;
}
.snap-frame:hover .icon, .snap-frame:focus-visible .icon { opacity: 1; }
.snap-frame:focus-visible { outline: 2px solid var(--shell); outline-offset: 4px; }
.snap figcaption { margin-top: 14px; display: grid; gap: 6px; justify-items: start; font-size: 0.875rem; line-height: 1.4; color: var(--muted); }

/* ---------- Routes, printed: ink pucks and ink lines ---------- */

.help-sheet .route { margin: 26px 0 6px; }
.help-sheet .puck { box-shadow: none; }
.help-sheet .hop::before { background: var(--tape-ink); box-shadow: none; width: 3px; left: 3.5px; border-radius: 2px; }
.help-sheet .hop-air::before { background-color: transparent; width: 12px; left: -1px; }
.help-sheet .node .tape { box-shadow: 0 0 0 1px rgba(0, 21, 38, 0.35); }
@media (min-width: 860px) {
  .help-sheet .route { margin: 30px 0 34px; }
  .help-sheet .hop::before { height: 3px; width: auto; left: 8px; top: 26.5px; }
  .help-sheet .hop-air::before { height: 12px; top: 22px; }
}

/* ---------- Definition lists (parts, glossary) ---------- */

.parts, .glossary { margin: 18px 0 0; display: grid; }
.parts > div, .glossary > div { display: grid; gap: 6px 24px; padding: 14px 0; border-bottom: 1px solid var(--sheet-rule); }
.parts > div:first-child, .glossary > div:first-child { border-top: 2px solid var(--tape-ink); }
.parts dt .tape { box-shadow: 0 0 0 1px rgba(0, 21, 38, 0.35); }
.parts dd, .glossary dd { margin: 0; max-width: 68ch; }
.glossary dt { font-family: var(--font-display); font-weight: 800; font-stretch: 105%; font-size: 1.125rem; color: var(--text); }
.glossary > div { scroll-margin-top: calc(var(--nav-h) + 24px); }
.glossary > div:target { background: linear-gradient(90deg, rgba(54, 174, 228, 0.14), transparent 70%); }
@media (min-width: 700px) {
  .parts > div, .glossary > div { grid-template-columns: 190px minmax(0, 1fr); align-items: baseline; }
}

/* ---------- Manual home ---------- */

.home-head { padding-bottom: 30px; border-bottom: 3px solid var(--tape-ink); }
.home-head h1 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); font-stretch: 118%; max-width: none; }
.home-head .summary { max-width: 60ch; }
.help-search-lg { margin-top: 26px; max-width: 640px; }
.help-search-lg > .icon { left: 18px; width: 22px; height: 22px; }
.help-search-lg input { min-height: 60px; padding-left: 52px; padding-right: 18px; font-size: 1.125rem; border-color: #7d8891; }

.tasks { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); border-top: 2px solid var(--tape-ink); }
@media (min-width: 720px) { .tasks { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; } }
.tasks li { border-bottom: 1px solid var(--sheet-rule); }
.tasks a {
  display: flex; align-items: center; gap: 16px; min-height: 80px; padding: 12px 8px 12px 2px;
  color: var(--text); text-decoration: none; border-radius: 6px;
  transition: background-color var(--t-fast) ease;
}
.tasks a:hover { background: #f1f3f5; color: var(--text); }
.tasks a:hover b { color: var(--link); }
.tasks .puck { width: 48px; height: 48px; box-shadow: none; }
.tasks .puck .icon { width: 26px; height: 26px; }
.tasks b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; line-height: 1.25; transition: color var(--t-fast) ease; }
.tasks small { display: block; margin-top: 3px; font-size: 0.9rem; line-height: 1.4; color: var(--muted); }

.topic-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 30px 32px; margin-top: 20px; }
.topic-groups h3 { margin: 0; padding-bottom: 10px; border-bottom: 1px solid var(--sheet-rule); font-size: 1rem; }
.topic-groups h3 .tape { box-shadow: 0 1px 2px rgba(0, 21, 38, 0.3), 0 0 0 1px rgba(0, 21, 38, 0.22); }
.topic-groups ul { list-style: none; margin: 6px 0 0; padding: 0; }
.topic-groups li + li { margin-top: 0; }
.topic-groups a { display: flex; align-items: center; min-height: 44px; padding: 6px 0; line-height: 1.3; }

/* ---------- Previous / next ---------- */

.pager {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
  margin-top: 56px; padding-top: 18px; border-top: 3px solid var(--tape-ink);
}
.pager a {
  display: flex; flex-direction: column; gap: 4px; min-height: 64px; padding: 10px 12px;
  color: var(--text); text-decoration: none; border-radius: 6px;
  transition: background-color var(--t-fast) ease;
}
.pager a:hover { background: #f1f3f5; }
.pager a:hover span { color: var(--link); }
.pager small {
  font-family: var(--font-display); font-stretch: 75%; font-weight: 800; font-size: 0.75rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--label);
}
.pager span { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; line-height: 1.25; transition: color var(--t-fast) ease; }
.pager .icon { flex: none; }
.pager-prev { padding-left: 2px; }
.pager-next { grid-column: 2; align-items: flex-end; text-align: right; }

/* ---------- On this page ---------- */

.help-rail { display: none; }
@media (min-width: 1380px) { .help-rail { display: block; } }
.rail-inner { position: sticky; top: calc(var(--nav-h) + 28px); padding-top: 18px; }
.rail-h {
  font-family: var(--font-display); font-stretch: 75%; font-weight: 800; font-size: 0.78rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--label);
}
.help-rail ol { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 2px; }
.help-rail a {
  position: relative; display: block; padding: 7px 0 7px 16px; font-size: 0.9rem; line-height: 1.35;
  color: var(--muted); text-decoration: none; transition: color var(--t-fast) ease;
}
.help-rail a::before {
  content: ""; position: absolute; left: 0; top: 13px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--foam-rim); transition: background-color var(--t-fast) ease, transform var(--t-fast) ease;
}
.help-rail a:hover { color: var(--text); }
.help-rail a.is-current { color: var(--text); font-weight: 700; }
.help-rail a.is-current::before { background: var(--accent); transform: scale(1.3); }

/* ---------- Enlarged screenshot ---------- */

.viewer {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px;
  background: rgba(0, 21, 38, 0.84); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.viewer[hidden] { display: none; }
.viewer figure { margin: 0; display: grid; justify-items: center; gap: 14px; }
.viewer img { max-height: calc(100vh - 110px); width: auto; max-width: min(92vw, 540px); border-radius: 18px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45); }
.viewer figcaption { color: var(--on-shell-2); font-size: 0.95rem; text-align: center; max-width: 52ch; }
.viewer-close {
  position: absolute; top: 14px; right: 14px; width: 48px; height: 48px; display: grid; place-items: center;
  color: var(--on-shell); background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-ctl); cursor: pointer;
}
.viewer-close:hover { background: rgba(255, 255, 255, 0.16); }
.viewer :focus-visible { outline-color: var(--accent-2); }

/* ---------- Print: just the sheet ---------- */

@media print {
  .nav, .help-side, .help-rail, .footer, .pager, .skip-link, .help-search, .viewer { display: none !important; }
  body { background: #fff; }
  .help-layout { display: block; padding: 0; }
  .help-sheet { box-shadow: none; padding: 0; }
  .help-sheet::before, .help-sheet::after, .snap-frame::before { display: none; }
  .with-shot > .snap { position: static; }
  .snap { max-width: 200px; }
  .prose h2 { break-after: avoid; }
  .proc > li, .ref tr, .callout, .needs { break-inside: avoid; }
}
