/* onestation.dev help center. Builds on /styles.css tokens; no build step. */

/* ---------- Hero + band ---------- */
.help-hero { padding-bottom: 84px; }
.help-hero .eyebrow { margin-bottom: 18px; }
.help-hero h1 { font-size: clamp(40px, 6vw, 68px); }
.help-hero .help-search { margin: 32px auto 0; max-width: 620px; text-align: left; }
.help-band { padding: 104px 0 26px; text-align: left; }
.help-band .horizon { --hz: 100%; opacity: 0.75; }
.help-band-inner { width: min(1200px, 100%); margin-inline: auto; padding-inline: var(--gutter); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.help-band .help-search { flex: 0 1 360px; margin-left: auto; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font: 13px/1.4 var(--mono); color: var(--dim); }
.crumbs a { color: var(--muted); transition: color 0.2s; }
.crumbs a:hover { color: var(--paper); }
.crumbs span[aria-hidden] { color: rgba(255, 255, 255, 0.25); }
@media (max-width: 720px) { .help-band .help-search { flex-basis: 100%; margin-left: 0; } }

/* ---------- Search ---------- */
.help-search { position: relative; }
.hs-field { position: relative; display: flex; align-items: center; }
.hs-field > svg { position: absolute; z-index: 1; left: 18px; width: 18px; height: 18px; color: var(--dim); pointer-events: none; }
.hs-input { width: 100%; height: 56px; padding: 0 56px 0 48px; border-radius: 16px; font: 16px var(--body); color: var(--paper); background: rgba(18, 18, 22, 0.78); border: 1px solid var(--line-2); box-shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.04); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: border-color 0.2s, background-color 0.2s; -webkit-appearance: none; appearance: none; }
.hs-input::placeholder { color: var(--dim); }
.hs-input::-webkit-search-cancel-button { display: none; }
.hs-input:focus { outline: none; border-color: rgba(79, 140, 255, 0.7); background: rgba(22, 24, 32, 0.92); }
.hs-input:focus-visible { box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.18); }
.hs-field kbd { position: absolute; right: 16px; color: var(--muted); pointer-events: none; }
.hs-input:focus ~ kbd, .hs-input:not(:placeholder-shown) ~ kbd { opacity: 0; }
.help-band .hs-input { height: 46px; border-radius: 13px; font-size: 16px; }
.help-band .hs-field > svg { left: 15px; width: 16px; height: 16px; }
.help-band .hs-input { padding-left: 42px; }
.hs-results { position: absolute; z-index: 40; top: calc(100% + 8px); left: 0; right: 0; max-height: min(62vh, 520px); overflow: auto; overscroll-behavior: contain; margin: 0; padding: 6px; list-style: none; border-radius: 16px; background: rgba(20, 20, 24, 0.97); border: 1px solid var(--line-2); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.95); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.hs-results[hidden] { display: none; }
.hs-results li a[role="option"] { display: block; padding: 11px 14px; border-radius: 11px; }
.hs-results li a[aria-selected="true"], .hs-results li a[role="option"]:hover { background: rgba(79, 140, 255, 0.12); }
.hs-t { display: block; font: 600 15px/1.35 var(--display); color: var(--paper); letter-spacing: -0.01em; }
.hs-s { display: block; margin-top: 2px; font: 12px/1.4 var(--mono); color: var(--dim); }
.hs-x { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.5; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hs-results mark { background: none; color: var(--paper); box-shadow: inset 0 -0.42em rgba(79, 140, 255, 0.35); }
.hs-empty { padding: 14px; color: var(--muted); font-size: 14.5px; }
.hs-empty a { color: var(--paper); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.3); text-underline-offset: 3px; }

/* ---------- Index ---------- */
.help-index { padding-top: 24px; }
.hc-grid { display: grid; gap: 14px; list-style: none; margin: 0; padding: 0; counter-reset: hc; }
@media (min-width: 680px) { .hc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .hc-grid { grid-template-columns: repeat(3, 1fr); } }
.hc-card { position: relative; display: flex; flex-direction: column; height: 100%; padding: 24px 24px 22px; border-radius: var(--r-md); border: 1px solid var(--line); background: linear-gradient(180deg, var(--card), #0d0d10); transition: border-color 0.2s, transform 0.3s var(--spring); }
.hc-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.hc-card:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.hc-n { font: 500 12px/1 var(--mono); color: var(--dim); letter-spacing: 0.04em; }
.hc-card::after { content: ""; position: absolute; top: 24px; right: 24px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.14); opacity: 0; transform: scale(0.4); transition: opacity 0.2s, transform 0.35s var(--spring); }
.hc-card:hover::after { opacity: 1; transform: none; }
.hc-card h2 { margin-top: 14px; font: 600 19px/1.25 var(--display); letter-spacing: -0.02em; }
.hc-card p { margin-top: 6px; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.hc-topics { margin-top: auto; padding-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.hc-topics span { font: 12px/1 var(--mono); color: var(--dim); padding: 6px 8px; border-radius: 7px; border: 1px solid var(--line); }
.hc-quick { margin: 56px auto 0; max-width: 920px; display: grid; gap: 1px; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: var(--line); }
@media (min-width: 760px) { .hc-quick { grid-template-columns: 1fr 1fr; } }
.hc-quick a { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: var(--ink-2); font-size: 15px; color: #d4d4da; transition: background-color 0.2s, color 0.2s; }
.hc-quick a:hover { background: #141418; color: var(--paper); }
.hc-quick a::before { content: "→"; font-family: var(--mono); color: var(--blue); }
.hc-quick-h { margin: 64px 0 16px; text-align: center; font: 500 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }

/* ---------- Article shell ---------- */
.help-shell { display: grid; gap: 28px; padding-top: 34px; padding-bottom: clamp(80px, 10vw, 120px); }
@media (min-width: 1000px) { .help-shell { grid-template-columns: 236px minmax(0, 1fr); gap: 64px; } }
.help-rail { display: none; }
@media (min-width: 1000px) { .help-rail { display: block; position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; padding-bottom: 20px; } .help-rail-m { display: none; } }
.rail-h { font: 500 11.5px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); margin: 4px 0 12px 12px; }
.rail { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.rail a { position: relative; display: grid; grid-template-columns: 26px 1fr; align-items: baseline; padding: 7px 12px; border-radius: 9px; font-size: 14.5px; line-height: 1.35; color: var(--muted); transition: color 0.2s, background-color 0.2s; }
.rail a:hover { color: var(--paper); background: rgba(255, 255, 255, 0.03); }
.rail a span { font: 11.5px/1 var(--mono); color: var(--dim); }
.rail a[aria-current="page"] { color: var(--paper); background: rgba(79, 140, 255, 0.09); }
.rail a[aria-current="page"]::before { content: ""; position: absolute; left: -1px; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; background: var(--blue); }
.rail a[aria-current="page"] span { color: var(--blue); }
.rail-contact { margin: 22px 12px 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--dim); }
.rail-contact a { display: block; margin-top: 4px; color: var(--paper); }
.help-rail-m { border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(255, 255, 255, 0.02); }
.help-rail-m summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 16px; cursor: pointer; list-style: none; font-size: 15px; color: var(--muted); }
.help-rail-m summary::-webkit-details-marker { display: none; }
.help-rail-m summary::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform 0.25s var(--ease); }
.help-rail-m[open] summary::after { transform: rotate(225deg) translate(-2px, -1px); }
.help-rail-m summary b { color: var(--paper); font-weight: 500; }
.help-rail-m .rail { padding: 0 6px 8px; }

/* ---------- Article ---------- */
.help-doc { min-width: 0; max-width: 740px; }
.help-doc .prose { max-width: none; margin: 0; }
.doc-n { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1 var(--mono); letter-spacing: 0.06em; color: var(--dim); text-transform: uppercase; }
.doc-n::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.14); }
.help-doc h1 { margin-top: 16px; font: 600 clamp(34px, 4.6vw, 52px)/1.04 var(--display); letter-spacing: -0.045em; }
.doc-lede { margin-top: 16px; font-size: 18.5px; line-height: 1.55; color: var(--muted); max-width: 640px; }
.doc-meta { margin-top: 16px; font: 12.5px/1 var(--mono); color: var(--dim); }
.toc { margin: 30px 0 8px; padding: 16px 18px; border-radius: var(--r-md); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.toc-h { font: 500 11.5px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.toc ol { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.toc a { display: inline-block; padding: 6px 10px; border-radius: 8px; font-size: 13.5px; color: #c9c9d1; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); transition: border-color 0.2s, color 0.2s; }
.toc a:hover { color: var(--paper); border-color: var(--line-2); }
.help-doc .prose h2 { scroll-margin-top: 90px; position: relative; margin-top: 52px; padding-top: 28px; border-top: 1px solid var(--line); }
.help-doc .prose h3 { scroll-margin-top: 90px; }
.help-doc .prose h2 .anchor, .help-doc .prose h3 .anchor { margin-left: 8px; color: var(--dim); text-decoration: none; opacity: 0; transition: opacity 0.2s; font-weight: 400; }
.help-doc .prose h2:hover .anchor, .help-doc .prose h3:hover .anchor, .help-doc .prose .anchor:focus-visible { opacity: 1; }
.help-doc .prose li::marker { color: var(--dim); }
.help-doc .prose code { white-space: nowrap; }
.help-doc .prose kbd { font-size: 0.78em; }

/* Settings path: System Settings › Privacy & Security › Accessibility */
.path { display: inline; padding: 2px 8px; border-radius: 6px; background: var(--card-2); border: 1px solid var(--line); font: 500 0.84em/1.9 var(--mono); color: var(--paper); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.path > span { white-space: nowrap; }
.path > wbr + span::before { content: "\203A"; margin: 0 0.5em; color: var(--dim); }

/* Steps */
.h-steps { list-style: none; counter-reset: hs; margin: 18px 0 22px; padding: 0 !important; display: grid; gap: 10px; }
.h-steps > li { counter-increment: hs; position: relative; margin: 0; padding: 16px 18px 16px 62px; border-radius: var(--r-md); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.h-steps > li::before { content: counter(hs); position: absolute; left: 18px; top: 15px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font: 500 12.5px/1 var(--mono); color: var(--paper); border: 1px solid var(--line-2); background: var(--ink); }
.h-steps > li b { color: var(--paper); font-weight: 600; }
.h-steps > li p { margin: 4px 0 0; }

/* Callouts */
.callout { margin: 20px 0; padding: 14px 18px 14px 16px; border-radius: 12px; border: 1px solid rgba(79, 140, 255, 0.28); background: rgba(79, 140, 255, 0.07); font-size: 15px; }
.callout > b:first-child { display: block; margin-bottom: 3px; font: 600 12px/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: #8fb4ff; }
.callout.warn { border-color: rgba(245, 165, 36, 0.3); background: rgba(245, 165, 36, 0.07); }
.callout.warn > b:first-child { color: #f7bd5c; }
.callout p { margin: 0 !important; }
.callout p + p { margin-top: 8px !important; }

/* Tables */
.h-table-wrap { margin: 18px 0 24px; overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--line); }
.h-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.h-table th { text-align: left; font: 500 11.5px/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); padding: 12px 16px; background: rgba(255, 255, 255, 0.025); border-bottom: 1px solid var(--line); }
.h-table td { padding: 11px 16px; vertical-align: top; border-bottom: 1px solid var(--line); color: #c9c9d1; }
.h-table tr:last-child td { border-bottom: 0; }
.h-table td:first-child { color: var(--paper); }
.h-table td.keys { white-space: nowrap; text-align: right; }
.h-table td.keys kbd + kbd { margin-left: 4px; }
.h-table .num { font-variant-numeric: tabular-nums; }
.tag-ok, .tag-opt, .tag-warn { display: inline-block; font: 500 11.5px/1 var(--mono); padding: 5px 7px; border-radius: 6px; white-space: nowrap; }
.tag-ok { color: #6be39a; background: rgba(34, 197, 94, 0.1); }
.tag-opt { color: var(--muted); background: rgba(255, 255, 255, 0.05); }
.tag-warn { color: #f7bd5c; background: rgba(245, 165, 36, 0.1); }

/* Command block */
.cmd { position: relative; margin: 14px 0 20px; border-radius: 12px; border: 1px solid var(--line-2); background: #0d0d10; }
.cmd pre { margin: 0; padding: 14px 52px 14px 16px; overflow-x: auto; font: 13.5px/1.6 var(--mono); color: #e4e4e7; }
.cmd pre code { background: none; border: 0; padding: 0; white-space: pre; font-size: inherit; }
.cmd-copy { position: absolute; top: 7px; right: 7px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: var(--muted); transition: color 0.2s, background-color 0.2s; }
.cmd-copy:hover { color: var(--paper); background: rgba(255, 255, 255, 0.06); }
.cmd-copy:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.cmd-copy svg { width: 16px; height: 16px; }
.no-js .cmd-copy { display: none; }

/* Figures */
.h-fig { margin: 22px 0 26px; }
.h-fig .frame { padding: 6px; border-radius: 16px; background: linear-gradient(180deg, #1b1b20, #111114); border: 1px solid var(--line-2); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9); }
.h-fig img { width: 100%; height: auto; border-radius: 11px; }
.h-fig.phone { max-width: 290px; }
.h-fig.phone .frame { border-radius: 34px; padding: 7px; }
.h-fig.phone img { border-radius: 28px; }
.h-fig figcaption { margin-top: 10px; font-size: 13.5px; color: var(--dim); }
.h-todo .frame { display: grid; place-items: center; gap: 10px; aspect-ratio: 16 / 9; padding: 24px; text-align: center; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.018) 0 10px, transparent 10px 20px), #0f0f12; border: 1px dashed rgba(255, 255, 255, 0.16); box-shadow: none; }
.h-todo.phone .frame { aspect-ratio: 9 / 16; }
.h-todo .frame span { font: 500 11.5px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.h-todo .frame b { display: block; max-width: 360px; font: 500 15px/1.45 var(--display); color: var(--muted); }

/* Chips list (agents) */
.agent-chips { list-style: none; margin: 14px 0 20px; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 8px; }
.agent-chips li { margin: 0; padding: 7px 12px; border-radius: 999px; font-size: 14px; color: var(--paper); border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); }

/* Pager + contact */
.pager { margin-top: 64px; display: grid; gap: 12px; }
@media (min-width: 640px) { .pager { grid-template-columns: 1fr 1fr; } }
.pager a { display: block; padding: 18px 20px; border-radius: var(--r-md); border: 1px solid var(--line); transition: border-color 0.2s, transform 0.3s var(--spring); }
.pager a:hover { border-color: var(--line-2); transform: translateY(-2px); }
.pager small { display: block; font: 12px/1 var(--mono); color: var(--dim); }
.pager b { display: block; margin-top: 8px; font: 600 16.5px/1.3 var(--display); letter-spacing: -0.02em; }
.pager .next { text-align: right; }
.pager .next:only-child { grid-column: 2; }
.stuck { margin-top: 18px; padding: 22px 24px; border-radius: var(--r-md); background: linear-gradient(180deg, var(--card), #0d0d10); border: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.stuck p { flex: 1 1 280px; color: var(--muted); font-size: 15px; }
.stuck p b { display: block; color: var(--paper); font: 600 17px/1.3 var(--display); margin-bottom: 2px; }

/* Help link in the site nav */
.nav-links a[aria-current="page"], .nav-menu a[aria-current="page"] { color: var(--paper); }

/* Keep long commands and code from widening the page on phones. */
.help-shell { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .help-shell { grid-template-columns: 236px minmax(0, 1fr); } }
.h-steps > li { min-width: 0; }
.h-table code { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 640px) { .help-doc .prose code { white-space: normal; overflow-wrap: anywhere; } }
/* The horizon clips itself; let the search results drop below the hero. */
.help-hero, .help-band { overflow: visible; z-index: 5; }
@media (hover: none) { .hs-field kbd { display: none; } }
/* Command blocks keep their line breaks; beats the inline-code nowrap/normal rules above. */
.help-doc .prose .cmd pre code { white-space: pre; overflow-wrap: normal; }
