/* 247 Help Center — matches 247 OS: Suisse Intl Medium titles, Neue Montreal text, light rail, hairline rules (no soft cards), lime for the primary action only. */
@font-face { font-family: "Suisse Intl"; src: url("/help-assets/fonts/suisse-intl-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Neue Montreal"; src: url("/help-assets/fonts/neue-montreal-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --ink: #141414; --text: #171817; --body: #2b2b29; --muted: #71766d; --faint: #9b9a95;
  --line: #ecebe8; --line-strong: #e1e0dc; --ctl: #dedfda; --rail: #f8f8f6; --hover: #f0efec; --soft: #f5f5f2;
  --lime: #e4f222; --lime-hover: #dce923; --lime-line: #d5e222; --lime-soft: #f7fac9; --focus: #65852e;
  --green-bg: #eaf4f0; --green: #317d62; --amber-bg: #faf3de; --amber: #8f762d; --blue-bg: #eef3fc; --blue: #5f82b4;
  --title: "Suisse Intl", "Neue Montreal", Arial, sans-serif; --sans: "Neue Montreal", Arial, sans-serif;
  --rail-w: 244px; --r: 8px; --r-ctl: 2px; --shadow: 0 1px 2px rgba(20, 20, 20, .05);
  --pop: 0 18px 50px -12px rgba(20, 20, 20, .22), 0 0 0 1px rgba(20, 20, 20, .06);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: #fff; color: var(--text); font: 400 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, h5, strong, b, th { font-family: var(--title); font-weight: 500; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
svg { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
img { max-width: 100%; height: auto; }
::selection { background: #eef589; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
kbd { font: 500 11px/1 var(--sans); color: var(--muted); border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 4px; padding: 3px 5px; background: #fff; }
mark { background: var(--lime-soft); color: inherit; border-radius: 2px; box-shadow: 0 0 0 1px var(--lime-soft); }
.muted { color: var(--muted); }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: var(--r-ctl); }
.skip-link:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- rail ---------- */
.rail { position: fixed; inset: 0 auto 0 0; width: var(--rail-w); background: var(--rail); border-right: 1px solid var(--line); padding: 18px 12px 16px; display: flex; flex-direction: column; gap: 14px; z-index: 40; }
.rail-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 10px 6px; }
.brand, .topbar-brand { display: inline-flex; align-items: center; gap: 9px; }
.brand img { height: 28px; width: auto; }
.brand span, .topbar-brand span { font: 500 19px/1 var(--title); color: var(--ink); letter-spacing: -.4px; }
.icon-btn.rail-close { display: none; }
.rail-search { display: flex; align-items: center; gap: 9px; height: 36px; padding: 0 10px; border: 1px solid var(--ctl); border-radius: var(--r-ctl); background: #fff; color: var(--muted); box-shadow: var(--shadow); font-size: 13.5px; text-align: left; transition: border-color .15s; }
.rail-search span { flex: 1; }
.rail-search:hover { border-color: #c6c8c0; }
.rail-nav { display: grid; gap: 1px; overflow-y: auto; flex: 1; align-content: start; scrollbar-width: thin; margin: 0 -2px; padding: 0 2px; }
.nav-label { font-size: 12px; color: var(--faint); padding: 16px 10px 6px; }
.nav-link { display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 6px 10px; border-radius: var(--r); color: #3d3d3a; font-size: 13.5px; letter-spacing: -.07px; transition: background .12s, color .12s; }
.nav-link svg { color: #85887f; }
.nav-link span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-link em { font-style: normal; font-size: 11.5px; color: var(--faint); }
.nav-link .ext { width: 13px; height: 13px; color: var(--faint); }
.nav-link:hover { background: var(--hover); color: var(--ink); }
.nav-link.is-active { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--line-strong), var(--shadow); }
.nav-link.is-active svg { color: var(--ink); }
.rail-foot { display: grid; gap: 1px; border-top: 1px solid var(--line); padding-top: 12px; }

/* ---------- shell ---------- */
.shell { margin-left: var(--rail-w); min-height: 100vh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px; height: 60px; padding: 0 40px; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar-brand, .topbar .menu-btn { display: none; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); min-width: 0; flex: 1; overflow: hidden; white-space: nowrap; }
.crumbs i { font-style: normal; color: #c9cac4; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.topbar-search { display: flex; align-items: center; gap: 8px; height: 36px; width: 240px; padding: 0 8px 0 11px; border: 1px solid var(--ctl); border-radius: var(--r-ctl); color: var(--muted); background: #fff; font-size: 13px; box-shadow: var(--shadow); }
.topbar-search span { flex: 1; text-align: left; }
.topbar-search:hover { border-color: #c6c8c0; }
.page-home .topbar-search { display: none; }
main { flex: 1; width: 100%; max-width: 1180px; padding: 28px 40px 64px; outline: none; }
.footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
.footer-links { display: flex; gap: 18px; }
.footer a:hover { color: var(--ink); }

/* ---------- controls ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 7px 12px; border: 1px solid var(--ctl); border-radius: var(--r-ctl); background: #fff; color: var(--text); font-size: 14px; white-space: nowrap; box-shadow: var(--shadow); transition: background .12s, border-color .12s; }
.button:hover { background: var(--soft); border-color: #c6c8c0; }
.button.primary { background: var(--lime); border-color: var(--lime-line); color: var(--text); }
.button.primary:hover { background: var(--lime-hover); }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-ctl); color: var(--text); }
.icon-btn:hover { background: var(--hover); }
.icon-btn svg { width: 18px; height: 18px; }
.tag { display: inline-flex; align-items: center; gap: 5px; border-radius: var(--r-ctl); font-size: 12px; line-height: 1; padding: 5px 7px; background: #f1f2ee; color: #737770; white-space: nowrap; }
.tag svg { width: 12px; height: 12px; }
.tag-video { background: var(--blue-bg); color: var(--blue); }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.text-link:hover { color: var(--ink); }
.text-link svg { width: 14px; height: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.center { justify-content: center; }
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 6px 11px; border: 1px solid var(--ctl); border-radius: var(--r-ctl); background: #fff; font-size: 13.5px; color: var(--text); transition: border-color .12s, background .12s; }
.chip svg { width: 15px; height: 15px; color: #85887f; }
.chip em { font-style: normal; font-size: 12px; color: var(--faint); }
.chip:hover { border-color: #c6c8c0; background: var(--soft); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.is-on svg { color: #fff; }

/* ---------- headings ---------- */
.eyebrow { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.eyebrow-link { display: inline-flex; align-items: center; gap: 7px; }
.eyebrow-link svg { width: 15px; height: 15px; }
.eyebrow-link:hover { color: var(--ink); }
h1 { font-size: 36px; line-height: 1.12; letter-spacing: -1.2px; color: var(--ink); margin: 0; }
.lead { font-size: 16px; line-height: 1.55; color: var(--muted); margin: 12px 0 0; max-width: 640px; }
.section { margin-top: 56px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-head h2 { font-size: 18px; line-height: 27px; letter-spacing: -.5px; margin: 0; color: var(--ink); }
.section-head .muted { font-size: 13px; }

/* ---------- home ---------- */
.hero { padding: 36px 0 8px; }
.hero h1 { font-size: 52px; letter-spacing: -2px; line-height: 1.04; }
.hero .lead { font-size: 17px; }
.hero-search { position: relative; display: flex; align-items: center; gap: 10px; margin-top: 28px; max-width: 760px; height: 60px; padding: 0 8px 0 18px; border: 1px solid var(--ctl); border-radius: var(--r-ctl); background: #fff; box-shadow: 0 1px 2px rgba(20, 20, 20, .04), 0 8px 24px -16px rgba(20, 20, 20, .18); transition: border-color .15s, box-shadow .15s; }
.hero-search:focus-within { border-color: #a9ad9f; box-shadow: 0 0 0 4px rgba(228, 242, 34, .35), 0 8px 24px -16px rgba(20, 20, 20, .2); }
.hero-search > svg { width: 20px; height: 20px; color: var(--muted); }
.hero-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font-size: 17px; color: var(--ink); }
.hero-search input::placeholder { color: #9a9d95; }
.hero-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.hero-search .button { height: 44px; padding: 0 18px; }
.popular { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 16px; font-size: 13.5px; }
.popular span { color: var(--faint); }
.popular a { color: var(--body); border-bottom: 1px solid var(--line-strong); padding-bottom: 1px; }
.popular a:hover { color: var(--ink); border-color: var(--ink); }

.essentials { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.essential { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; border-left: 1px solid var(--line); min-width: 0; transition: background .15s; }
.essential:first-child { border-left: 0; padding-left: 0; }
.essential-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.essential .label { font-size: 13.5px; color: var(--muted); }
.icon-sq { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 4px; color: var(--muted); transition: background .15s, color .15s; }
.icon-sq svg { width: 15px; height: 15px; }
.essential strong { font-size: 19px; line-height: 1.25; letter-spacing: -.5px; color: var(--ink); }
.essential small { font-size: 13px; line-height: 1.45; color: var(--muted); }
.essential:hover .icon-sq { background: var(--lime); color: var(--ink); }
.essential:hover strong { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }

.topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.topic { display: flex; flex-direction: column; padding: 22px 24px 20px; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); min-width: 0; }
.topic:nth-child(3n + 1) { border-left: 0; padding-left: 0; }
.topic-head { display: flex; gap: 12px; align-items: flex-start; }
.topic-head strong { display: block; font-size: 16px; letter-spacing: -.3px; color: var(--ink); }
.topic-head small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.topic-head:hover strong { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.topic-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 6px; background: var(--soft); color: #4d514a; flex-shrink: 0; transition: background .15s; }
.topic-icon svg { width: 17px; height: 17px; }
.topic-icon.lg { width: 48px; height: 48px; border-radius: 8px; }
.topic-icon.lg svg { width: 24px; height: 24px; }
.topic:hover .topic-icon { background: var(--lime); }
.topic ul { list-style: none; margin: 16px 0 14px 44px; padding: 0; display: grid; gap: 8px; flex: 1; align-content: start; }
.topic li a { font-size: 13.5px; line-height: 1.4; color: var(--body); }
.topic li a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.topic-all { display: inline-flex; align-items: center; gap: 6px; margin-left: 44px; font-size: 13px; color: var(--muted); }
.topic-all svg { width: 14px; height: 14px; transition: transform .15s; }
.topic-all:hover { color: var(--ink); }
.topic-all:hover svg { transform: translateX(2px); }

.support-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 64px; padding: 28px 0; border-top: 1px solid var(--ink); }
.support-band h2 { font-size: 22px; letter-spacing: -.6px; margin: 0; color: var(--ink); }
.support-band p { margin: 6px 0 0; color: var(--muted); }
.support-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- rows ---------- */
.rows { border-top: 1px solid var(--line); }
.row { display: flex; align-items: center; gap: 20px; padding: 16px 4px 16px 0; border-bottom: 1px solid var(--line); transition: background .12s, padding .15s; }
.row-main { flex: 1; min-width: 0; }
.row h3 { margin: 0; font-size: 15.5px; line-height: 1.35; letter-spacing: -.25px; color: var(--ink); }
.row p { margin: 3px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.row-meta { display: flex; align-items: center; gap: 10px; font-size: 12.5px; flex-shrink: 0; }
.row-arrow { color: var(--faint); transition: transform .15s, color .15s; }
.row:hover { background: linear-gradient(90deg, transparent, var(--rail) 30%); }
.row:hover h3 { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.row:hover .row-arrow { color: var(--ink); transform: translateX(2px); }
.rows.numbered { counter-reset: n; }
.rows.numbered .row::before { counter-increment: n; content: counter(n, decimal-leading-zero); font: 500 12px/1 var(--title); color: var(--faint); width: 22px; flex-shrink: 0; align-self: flex-start; padding-top: 5px; }

/* ---------- topic page ---------- */
.page-head { margin: 8px 0 32px; }
.topic-page-head { display: flex; gap: 20px; align-items: flex-start; }
.page-head .meta { margin: 14px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- article ---------- */
.article-grid { display: grid; grid-template-columns: minmax(0, 720px) 220px; gap: 64px; justify-content: space-between; }
.article-grid.no-toc { grid-template-columns: minmax(0, 720px); }
.article-head { padding: 8px 0 26px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.article-head h1 { font-size: 40px; letter-spacing: -1.4px; line-height: 1.1; }
.article-head .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; font-size: 13px; color: var(--muted); }
.article-head .meta i { font-style: normal; color: #c9cac4; }
.meta-copy { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--muted); font-size: 13px; padding: 4px 6px; border-radius: var(--r-ctl); }
.meta-copy:hover { background: var(--hover); color: var(--ink); }
.meta-copy svg { width: 14px; height: 14px; }
.toc-rail { position: relative; }
.toc-rail .toc { position: sticky; top: 92px; max-height: calc(100vh - 120px); overflow-y: auto; scrollbar-width: thin; }
.toc p { margin: 0 0 10px; font: 500 13px/1 var(--title); color: var(--ink); }
.toc a { display: block; padding: 6px 0 6px 13px; border-left: 1px solid var(--line); font-size: 13px; line-height: 1.4; color: var(--muted); transition: color .12s, border-color .12s; }
.toc a.lvl-3 { padding-left: 25px; font-size: 12.5px; }
.toc a:hover { color: var(--ink); }
.toc a.is-current { color: var(--ink); border-left: 2px solid var(--ink); padding-left: 12px; }
.toc a.lvl-3.is-current { padding-left: 24px; }
.toc-mobile { display: none; }

.prose { font-size: 15.5px; line-height: 1.7; color: var(--body); }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 16px; }
.prose li > p { margin: 0 0 6px; }
.prose h2 { font-size: 24px; line-height: 1.25; letter-spacing: -.7px; color: var(--ink); margin: 44px 0 14px; }
.prose h3 { font-size: 18px; line-height: 1.35; letter-spacing: -.4px; color: var(--ink); margin: 32px 0 10px; }
.prose h4, .prose h5 { font-size: 15.5px; color: var(--ink); margin: 24px 0 8px; }
.prose :is(h2, h3, h4) { position: relative; scroll-margin-top: 84px; }
.prose .anchor { position: absolute; left: -26px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 4px; color: var(--faint); opacity: 0; transition: opacity .12s; }
.prose .anchor svg { width: 14px; height: 14px; }
.prose :is(h2, h3, h4):hover .anchor, .prose .anchor:focus-visible { opacity: 1; }
.prose .anchor:hover { color: var(--ink); background: var(--hover); }
.prose b, .prose strong { color: var(--ink); font-size: .97em; }
.prose a:not(.button):not(.image-enlarge) { color: var(--ink); text-decoration: underline; text-decoration-color: #c4c8b4; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-color .12s; }
.prose a:not(.button):not(.image-enlarge):hover { text-decoration-color: var(--ink); }
.prose a[target="_blank"]:not(.button)::after { content: "↗"; font-size: .8em; margin-left: 2px; color: var(--faint); text-decoration: none; display: inline-block; }
.prose ul { padding-left: 20px; margin: 0 0 18px; }
.prose ul li { padding-left: 4px; margin-bottom: 4px; }
.prose ul li::marker { color: #a9ac9f; }
.prose ol { padding-left: 24px; margin: 0 0 18px; }
.prose ol.steps { list-style: none; padding: 0; counter-reset: step; }
.prose ol.steps > li { counter-increment: step; position: relative; padding: 2px 0 10px 42px; margin: 0; }
.prose ol.steps > li::before { content: counter(step); position: absolute; left: 0; top: 2px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--soft); border: 1px solid var(--line-strong); font: 500 12.5px/1 var(--title); color: var(--ink); }
.prose ol.steps > li:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: 32px; bottom: 2px; width: 1px; background: var(--line); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.prose figure { margin: 18px 0 22px; }
.prose figure img, .prose > img { display: block; border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 1px 2px rgba(20, 20, 20, .04); background: var(--rail); }
.prose .image-enlarge { display: inline-block; cursor: zoom-in; border-radius: var(--r); }
.prose .image-enlarge:hover img { border-color: var(--line-strong); box-shadow: 0 6px 20px -10px rgba(20, 20, 20, .25); }
.prose .callout { position: relative; margin: 20px 0 24px; padding: 14px 18px 14px 20px; background: var(--rail); border: 1px solid var(--line); border-left: 3px solid #c8cfa8; border-radius: 0 var(--r) var(--r) 0; font-size: 14.5px; }
.prose .callout p:last-child { margin-bottom: 0; }
.prose .callout.warning { background: #fffbef; border-color: #f3e8c4; border-left-color: #e2bf52; }
.prose pre { margin: 0; white-space: pre-wrap; font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink); }
.prose code { font: .9em ui-monospace, SFMono-Regular, Menlo, monospace; }
.prose .table-wrap { margin: 18px 0 24px; overflow-x: auto; border-top: 1px solid var(--line-strong); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.prose th { text-align: left; font-size: 12.5px; color: var(--muted); padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
.prose th b { color: var(--muted); font-size: inherit; }
.prose td { padding: 11px 14px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose td p, .prose th p { margin: 0; }
.prose tbody tr:hover td { background: var(--rail); }
.prose .button { text-decoration: none; margin: 4px 0; }
.prose .button-yellow { background: var(--lime); border-color: var(--lime-line); }
.prose .button-yellow:hover { background: var(--lime-hover); }
.prose .button svg { width: 15px; height: 15px; }
.prose .video-guide { margin: 4px 0 28px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--rail); }
.prose .video-guide-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); background: #fff; }
.prose .video-guide-heading span { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-family: var(--title); }
.prose .video-guide-heading span svg { color: var(--blue); }
.prose .video-guide-heading a { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted) !important; text-decoration: none !important; }
.prose .video-guide-heading a::after { display: none !important; }
.prose .video-guide-heading a:hover { color: var(--ink) !important; }
.prose .video-guide-heading svg { width: 14px; height: 14px; }
.prose .video-frame { position: relative; aspect-ratio: 16 / 9; background: #ecece8; }
.prose .video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prose .hit { background: var(--lime-soft); border-radius: 2px; box-shadow: 0 0 0 2px var(--lime-soft); }

.search-banner { display: flex; align-items: center; gap: 10px; margin: -10px 0 22px; padding: 9px 12px; background: var(--lime-soft); border-radius: var(--r-ctl); font-size: 13px; color: #4b5020; }
.search-banner button { margin-left: auto; color: #4b5020; text-decoration: underline; text-underline-offset: 2px; font-size: 13px; }

.helpful { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 48px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.helpful strong { display: block; font-size: 15px; color: var(--ink); }
.helpful span { font-size: 13.5px; color: var(--muted); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
.pager a { display: flex; flex-direction: column; gap: 6px; padding: 4px 0; min-width: 0; }
.pager small { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--muted); }
.pager small svg { width: 13px; height: 13px; }
.pager strong { font-size: 15px; line-height: 1.35; letter-spacing: -.25px; color: var(--ink); }
.pager a:hover strong { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.pager-next { text-align: right; align-items: flex-end; }
.related { margin-top: 48px; }

/* ---------- search: dropdown, palette, page ---------- */
.dropdown { position: absolute; left: -1px; right: -1px; top: calc(100% + 8px); z-index: 20; background: #fff; border-radius: 6px; box-shadow: var(--pop); max-height: min(560px, 70vh); overflow-y: auto; padding: 6px; }
.palette { position: fixed; inset: 0; z-index: 80; display: flex; justify-content: center; align-items: flex-start; padding: 10vh 16px 16px; background: rgba(20, 20, 20, .28); backdrop-filter: blur(2px); animation: fade .14s ease-out; }
.palette[hidden] { display: none; }
.palette-panel { width: 100%; max-width: 680px; background: #fff; border-radius: 10px; box-shadow: var(--pop); overflow: hidden; display: flex; flex-direction: column; max-height: 78vh; animation: rise .16s cubic-bezier(.2, .8, .2, 1); }
.palette-input { display: flex; align-items: center; gap: 12px; padding: 0 14px 0 18px; height: 60px; border-bottom: 1px solid var(--line); }
.palette-input > svg { width: 19px; height: 19px; color: var(--muted); }
.palette-input input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 17px; height: 100%; color: var(--ink); background: none; }
.palette-input input::-webkit-search-cancel-button { -webkit-appearance: none; }
.palette-input .esc { font-size: 12px; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 4px; padding: 3px 7px; }
.palette-results { overflow-y: auto; padding: 6px; flex: 1; }
.palette-foot { display: flex; gap: 18px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); background: var(--rail); }
.palette-foot kbd { margin-right: 3px; padding: 2px 4px; font-size: 10.5px; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px) scale(.99); } }

.sr-group { padding: 10px 10px 4px; font-size: 12px; color: var(--faint); }
.sr { display: flex; align-items: flex-start; gap: 12px; padding: 10px 10px; border-radius: 6px; cursor: pointer; scroll-margin: 6px; }
.sr[aria-selected="true"] { background: var(--soft); }
.sr .sr-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 5px; background: var(--soft); color: #5a5e56; flex-shrink: 0; margin-top: 1px; }
.sr[aria-selected="true"] .sr-icon { background: #fff; box-shadow: 0 0 0 1px var(--line-strong); }
.sr .sr-icon svg { width: 15px; height: 15px; }
.sr-body { flex: 1; min-width: 0; }
.sr-title { font: 500 14.5px/1.35 var(--title); color: var(--ink); letter-spacing: -.2px; }
.sr-title mark { background: none; box-shadow: none; text-decoration: underline; text-decoration-color: #c9d41f; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.sr-sec { display: flex; align-items: center; gap: 5px; margin-top: 2px; font-size: 12.5px; color: var(--ink); }
.sr-sec svg { width: 12px; height: 12px; color: var(--faint); }
.sr-snip { margin-top: 3px; font-size: 13px; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sr-topic { font-size: 12px; color: var(--faint); white-space: nowrap; margin-top: 3px; }
.sr-enter { align-self: center; opacity: 0; color: var(--muted); }
.sr[aria-selected="true"] .sr-enter { opacity: 1; }
.sr-suggest { align-items: center; padding: 8px 10px; }
.sr-suggest .sr-icon { background: none; width: 20px; height: 20px; color: var(--faint); }
.sr-suggest .sr-text { font-size: 14.5px; color: var(--muted); }
.sr-suggest .sr-text b { color: var(--ink); font-family: var(--sans); font-weight: 400; }
.sr-suggest .sr-kind { margin-left: auto; font-size: 12px; color: var(--faint); }
.sr-note { padding: 8px 10px 4px; font-size: 13px; color: var(--muted); }
.sr-note button { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.sr-empty { padding: 28px 16px 22px; text-align: center; color: var(--muted); font-size: 14px; }
.sr-empty strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.sr-empty .chips { justify-content: center; margin-top: 14px; }
.sr-all { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 4px; padding: 10px; border-radius: 6px; font-size: 13px; color: var(--muted); }
.sr-all[aria-selected="true"], .sr-all:hover { background: var(--soft); color: var(--ink); }

.page-search { margin-top: 4px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.results-count { font-size: 13px; color: var(--muted); margin: 18px 0 8px; min-height: 20px; }
.results { border-top: 1px solid var(--line); }
.result { display: block; padding: 18px 0; border-bottom: 1px solid var(--line); }
.result .r-top { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--faint); }
.result h3 { margin: 6px 0 0; font-size: 18px; letter-spacing: -.4px; color: var(--ink); }
.result h3 mark { background: none; box-shadow: none; text-decoration: underline; text-decoration-color: #c9d41f; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.result .r-sec { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 13.5px; color: var(--ink); }
.result .r-sec svg { width: 13px; height: 13px; color: var(--faint); }
.result p { margin: 6px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted); max-width: 760px; }
.result:hover h3 { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }

/* ---------- empty / 404 ---------- */
.empty { text-align: center; padding: 64px 0 24px; }
.empty .lead { margin: 12px auto 0; }
.empty .hero-search { margin: 28px auto 22px; text-align: left; }

/* ---------- lightbox ---------- */
.lightbox { border: 0; padding: 0; max-width: min(1400px, 94vw); max-height: 92vh; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(20, 20, 20, .78); backdrop-filter: blur(3px); }
.lightbox img { display: block; max-width: min(1400px, 94vw); max-height: 88vh; border-radius: var(--r); background: #fff; cursor: zoom-out; }
.lightbox .icon-btn { position: absolute; top: -44px; right: 0; color: #fff; }
.lightbox .icon-btn:hover { background: rgba(255, 255, 255, .12); }
.lightbox[open] { animation: rise .18s ease-out; }

/* ---------- bottom nav (mobile) ---------- */
.bottom-nav { display: none; }
.scrim { display: none; }

@media (max-width: 1180px) {
  .essentials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .essential:nth-child(3) { border-left: 0; padding-left: 0; }
  .essential:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic:nth-child(3n + 1) { border-left: 1px solid var(--line); padding-left: 24px; }
  .topic:nth-child(2n + 1) { border-left: 0; padding-left: 0; }
  .article-grid { grid-template-columns: minmax(0, 1fr) 200px; gap: 40px; }
}
@media (max-width: 1000px) {
  .article-grid, .article-grid.no-toc { grid-template-columns: minmax(0, 1fr); }
  .toc-rail { display: none; }
  .toc-mobile { display: block; margin: 0 0 26px; border: 1px solid var(--line); border-radius: var(--r); }
  .toc-mobile summary { cursor: pointer; padding: 12px 14px; font: 500 14px/1 var(--title); color: var(--ink); list-style: none; display: flex; justify-content: space-between; }
  .toc-mobile summary::after { content: "+"; color: var(--muted); }
  .toc-mobile[open] summary::after { content: "–"; }
  .toc-mobile .toc { padding: 0 14px 12px; }
  .toc-mobile .toc p { display: none; }
}
@media (max-width: 860px) {
  :root { --rail-w: 0px; }
  html { scroll-padding-top: 72px; }
  .rail { width: min(320px, 86vw); transform: translateX(-102%); transition: transform .26s cubic-bezier(.2, .8, .2, 1); box-shadow: none; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .icon-btn.rail-close { display: inline-grid; }
  .rail-search kbd { display: none; }
  .menu-open .rail { transform: none; box-shadow: 0 0 60px rgba(20, 20, 20, .2); }
  .scrim { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(20, 20, 20, .3); opacity: 0; pointer-events: none; transition: opacity .2s; }
  .menu-open .scrim { opacity: 1; pointer-events: auto; }
  .menu-open { overflow: hidden; }
  .shell { margin-left: 0; }
  .topbar { height: 58px; padding: 0 16px; gap: 10px; border-bottom-color: var(--line); }
  .topbar-brand { display: inline-flex; }
  .topbar .menu-btn { display: inline-grid; margin-left: -8px; }
  .topbar-brand img { height: 24px; width: auto; }
  .topbar-brand span { font-size: 17px; }
  .crumbs { visibility: hidden; }
  .topbar-actions .button { display: none; }
  .topbar-search { width: 36px; padding: 0; justify-content: center; border: 0; box-shadow: none; }
  .topbar-search span, .topbar-search kbd { display: none; }
  .topbar-search svg { width: 19px; height: 19px; color: var(--text); }
  main { padding: 22px 16px calc(96px + env(safe-area-inset-bottom)); }
  .footer { padding: 20px 16px calc(96px + env(safe-area-inset-bottom)); margin-top: -76px; }
  h1 { font-size: 30px; letter-spacing: -1px; }
  .hero { padding-top: 14px; }
  .hero h1 { font-size: 38px; letter-spacing: -1.4px; }
  .hero .lead { font-size: 15.5px; }
  .hero-search { height: 54px; padding: 0 6px 0 14px; margin-top: 22px; }
  .hero-search input { font-size: 16px; }
  .hero-search kbd { display: none; }
  .hero-search .button { height: 42px; padding: 0 14px; }
  .essentials { grid-template-columns: minmax(0, 1fr); }
  .essential { border-left: 0 !important; padding: 18px 0 !important; }
  .essential + .essential { border-top: 1px solid var(--line); }
  .topics { grid-template-columns: minmax(0, 1fr); }
  .topic { border-left: 0 !important; padding: 20px 0 !important; }
  .support-band { flex-direction: column; align-items: flex-start; }
  .row { gap: 12px; }
  .row-meta .muted, .row-meta .tag:not(.tag-video) { display: none; }
  .topic-page-head { flex-direction: column; gap: 14px; }
  .article-head h1 { font-size: 30px; letter-spacing: -1px; }
  .meta-copy { margin-left: 0; }
  .prose { font-size: 16px; }
  .prose .anchor { display: none; }
  .prose .table-wrap table { min-width: 520px; }
  .helpful { flex-direction: column; align-items: flex-start; }
  .pager { grid-template-columns: 1fr; gap: 14px; }
  .pager-next { text-align: left; align-items: flex-start; }
  .palette { padding: 0; align-items: stretch; background: #fff; }
  .palette-panel { max-width: none; max-height: none; height: 100%; border-radius: 0; box-shadow: none; animation: none; }
  .palette-input { height: 62px; padding-top: env(safe-area-inset-top); }
  .palette-input input { font-size: 16px; }
  .palette-foot { display: none; }
  .bottom-nav { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 50; padding: 6px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 14px; box-shadow: 0 10px 30px -10px rgba(20, 20, 20, .25), 0 0 0 1px var(--line); }
  .bottom-nav > * { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 0 6px; border-radius: 10px; font-size: 11px; color: var(--muted); }
  .bottom-nav svg { width: 20px; height: 20px; }
  .bottom-nav [aria-current] { background: var(--soft); color: var(--ink); }
  .menu-open .bottom-nav { visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print {
  .rail, .topbar, .bottom-nav, .footer, .toc-rail, .toc-mobile, .helpful, .pager, .related, .video-guide, .palette { display: none !important; }
  .shell { margin: 0; } main { padding: 0; max-width: none; } .article-grid { display: block; }
  .prose a[target="_blank"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}
