/* The help guide (/help): built by site/help/build.mjs on top of /style.css (same charcoal, type and amber accent). */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav-links a[aria-current="page"] { color: var(--on-ink); }

.help-head .wrap { padding-block: clamp(36px, 5vw, 64px) clamp(28px, 4vw, 48px); }
.help-head h1 { font-size: clamp(38px, 5.6vw, 68px); }
.help-head .mono a { color: inherit; text-decoration: none; }
.help-head .mono a:hover { text-decoration: underline; }

/* search */
.help-search { display: flex; gap: 10px; margin-top: 24px; max-width: 640px; }
.help-search input { flex: 1 1 auto; min-width: 0; min-height: 48px; padding: 11px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.22); background: rgba(255,255,255,0.06); color: var(--on-ink); font: 16px/1.4 var(--body); }
.help-search input::placeholder { color: rgba(255,255,255,0.55); }
.help-search input:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 2px; }
@media (max-width: 520px) { .help-search .btn { padding: 0 16px; } }
.help-results { margin-top: clamp(28px, 4vw, 44px); max-width: 860px; }
.help-results h2 { font-size: 24px; font-weight: 700; margin-bottom: 14px; }
.help-results ol { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.help-results li a { display: block; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; }
.help-results li a:hover { border-color: var(--accent-line); }
.help-results b { color: var(--fg); display: block; }
.help-results small { color: var(--accent-text); font: 600 12px/1.4 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; }
.help-results span { color: var(--fg-dim); display: block; font-size: 15px; margin-top: 4px; }
.help-results mark { background: var(--accent-soft); color: var(--fg); border-radius: 3px; }
.help-results .none { color: var(--fg-dim); }

/* index */
.help-index { padding-block: 8px clamp(64px, 8vw, 110px); }
.help-quick { color: var(--fg-dim); margin-top: clamp(28px, 4vw, 44px); }
.help-quick a, .help-contact a, .help-body a, .help-toc a { color: var(--accent-text); }
.help-group { padding: 0; margin-top: clamp(32px, 4vw, 48px); }
.help-group h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 700; }
.help-cards { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.help-cards a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; transition: border-color .15s ease; }
.help-cards a:hover { border-color: var(--accent-line); box-shadow: 0 0 24px -14px var(--accent-glow); }
.help-cards .n { font: 600 12px/1 var(--mono); color: var(--accent-text); }
.help-cards b { font: 700 20px/1.15 var(--display); font-stretch: 85%; color: var(--fg); }
.help-cards span:last-child { color: var(--fg-dim); font-size: 15px; line-height: 1.45; }
@media (max-width: 900px) { .help-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .help-cards { grid-template-columns: minmax(0, 1fr); } }

/* topic pages: contents on the left, the article on the right */
.help-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; padding-block: clamp(28px, 4vw, 48px) clamp(64px, 8vw, 110px); }
.help-toc { position: sticky; top: 104px; max-height: calc(100vh - 120px); overflow: auto; font-size: 14.5px; padding-right: 6px; }
.help-toc .mono { color: var(--fg-dim); }
.help-toc .toc-group { color: var(--fg); font-weight: 600; margin-top: 14px; }
.help-toc ol { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-direction: column; gap: 2px; }
.help-toc li a { display: block; padding: 4px 10px; border-radius: 8px; color: var(--fg-dim); text-decoration: none; border-left: 2px solid transparent; }
.help-toc li a:hover { color: var(--fg); background: var(--chip); }
.help-toc li a[aria-current="page"] { color: var(--fg); background: var(--accent-soft); border-left-color: var(--accent); }
.help-toc .toc-more { margin-top: 18px; line-height: 1.9; }
@media (max-width: 900px) {
  .help-grid { grid-template-columns: minmax(0, 1fr); }
  .help-toc { position: static; max-height: none; order: 2; border-top: 1px solid var(--line); padding-top: 20px; }
}

.help-body { max-width: 760px; min-width: 0; }
.help-body > * + * { margin-top: 14px; }
.help-body h2 { font-size: clamp(26px, 3vw, 32px); font-weight: 700; margin-top: 44px; letter-spacing: -0.015em; scroll-margin-top: 104px; }
.help-body h2:first-child, .on-page + h2 { margin-top: 8px; }
.help-body h3 { font-size: 20px; font-weight: 700; margin-top: 28px; font-family: var(--body); font-stretch: 100%; letter-spacing: 0; line-height: 1.3; scroll-margin-top: 104px; }
.help-body p, .help-body li { color: var(--fg-dim); }
.help-body strong, .help-body b { color: var(--fg); font-weight: 600; }
.help-body ul, .help-body ol { padding-left: 22px; margin-bottom: 0; }
.help-body li + li { margin-top: 6px; }
.help-body code, .help-body kbd { font: 500 0.88em/1 var(--mono); background: var(--chip); border: 1px solid var(--line); border-radius: 5px; padding: 2px 5px; color: var(--fg); }
.help-body .ui { color: var(--fg); font-weight: 600; }   /* a button or label as it reads on screen */

ol.hsteps { list-style: none; counter-reset: st; padding: 0; }
ol.hsteps > li { counter-increment: st; position: relative; padding-left: 42px; min-height: 30px; }
ol.hsteps > li + li { margin-top: 10px; }
ol.hsteps > li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); font: 600 13px/1 var(--mono); border: 1px solid var(--accent-line); }

.who { display: block; padding: 10px 14px; border-radius: 12px; background: var(--chip); border: 1px solid var(--line); font-size: 15px; }
.who-k { display: block; font: 600 11px/1.6 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }
.tip, .note, .warn { padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 15.5px; color: var(--fg-dim); }
.tip { border-left: 4px solid var(--accent); }
.tip::before { content: "Tip  "; font: 600 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); white-space: pre; }
.warn { border-left: 4px solid #FF7A59; }
.warn::before { content: "Careful  "; font: 600 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: #FF9B80; white-space: pre; }
.note { border-left: 4px solid var(--fg-dim); }

.help-body table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.help-body th, .help-body td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--fg-dim); }
.help-body th { color: var(--fg); font-weight: 600; background: var(--ink-2); }
.help-body td.y { color: var(--accent-text); font-weight: 700; text-align: center; }
.help-body td.n { color: var(--line); text-align: center; }
.help-body th.c { text-align: center; }

.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.dot.available { background: #4fae6a; } .dot.out { background: #3b9fd6; } .dot.repair { background: #ea7a2e; }
.dot.missing { background: #e05252; } .dot.unassigned { background: #e05252; } .dot.retired { background: #a3abb5; }

figure.shot { margin: 18px 0 0; }
figure.shot img { width: 100%; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
figure.shot.phone-shot img { max-width: 320px; border-radius: 22px; }
figure.shot figcaption { color: var(--fg-dim); font-size: 13.5px; margin-top: 8px; }

.on-page { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; font-size: 15px; }
.on-page summary { cursor: pointer; font-weight: 600; color: var(--fg); }
.on-page ul { list-style: none; padding: 0; margin: 8px 0 0; columns: 2; column-gap: 24px; }
.on-page li { break-inside: avoid; margin: 0 0 4px; }
@media (max-width: 600px) { .on-page ul { columns: 1; } }

.help-foot { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 48px !important; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pager a { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--fg); font-weight: 600; }
.pager a[rel="next"] { text-align: right; grid-column: 2; }
.pager a:hover { border-color: var(--accent-line); }
.pager small { color: var(--fg-dim); font-weight: 400; font-size: 13px; }
.print-link { margin-top: 16px; }
.help-contact { margin-top: 32px; padding: 16px 18px; border-radius: 14px; background: var(--ink); border: 1px solid var(--accent-line); color: var(--on-ink-dim); font-size: 15.5px; }
.help-contact b { color: var(--on-ink); }

/* the whole guide on one page */
.help-all { max-width: 860px; padding-block: clamp(28px, 4vw, 48px) clamp(64px, 8vw, 110px); }
.help-all .all-toc h2 { font-size: 28px; font-weight: 700; }
.help-all .all-toc ol { columns: 2; column-gap: 28px; color: var(--fg-dim); margin-top: 12px; }
.help-all .all-toc a { color: var(--accent-text); }
@media (max-width: 600px) { .help-all .all-toc ol { columns: 1; } }
.all-topic { padding: 0; margin-top: 56px; border-top: 1px solid var(--line); padding-top: 32px; }
.all-topic > .mono { color: var(--accent-text); }
.all-topic > h1 { font-size: clamp(32px, 4vw, 46px); margin-top: 8px; }
.all-topic > .lede { color: var(--fg-dim); font-size: 18px; margin-top: 10px; }
.all-topic { max-width: 760px; }
.all-topic > * + * { margin-top: 14px; }
.all-topic h2 { font-size: 26px; font-weight: 700; margin-top: 36px; letter-spacing: -0.015em; }
.all-topic h3 { font-size: 19px; font-weight: 700; margin-top: 24px; font-family: var(--body); font-stretch: 100%; letter-spacing: 0; line-height: 1.3; }
.all-topic p, .all-topic li { color: var(--fg-dim); }
.all-topic strong, .all-topic b { color: var(--fg); font-weight: 600; }
.all-topic a { color: var(--accent-text); }
.all-topic ul, .all-topic ol { padding-left: 22px; }
.all-topic table { width: 100%; border-collapse: collapse; font-size: 14px; }
.all-topic th, .all-topic td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--fg-dim); }
.all-topic th { color: var(--fg); }
.all-topic td.y { color: var(--accent-text); font-weight: 700; text-align: center; }
.all-topic td.n, .all-topic th.c { text-align: center; }
.all-topic code { font: 500 0.88em/1 var(--mono); }

/* ---------- print: black on white, no menus ---------- */
@media print {
  @page { margin: 16mm 14mm; }
  :root { --fg: #111; --fg-dim: #333; --line: #ccc; --chip: #f3f3f3; --surface: #fff; --ink-2: #f0f0f0; --accent-text: #7a5500; --accent-soft: #fff3d1; --accent-line: #e0b54a; }
  html, body, body.help { background: #fff !important; color: #111; font-size: 11pt; }
  .nav, footer, .help-toc, .help-search, .help-foot, .no-print, .skip, .on-page, .help-results { display: none !important; }
  .page-head, .help-head { background: #fff !important; color: #111 !important; border: 0; }
  .page-head::before { display: none; }
  .page-head h1, .page-head p, .page-head .mono { color: #111 !important; }
  .help-grid { display: block; padding: 0; }
  .help-body, .help-all, .all-topic { max-width: none; }
  .help-body h2, .all-topic h2, h1, h2, h3 { color: #111 !important; break-after: avoid; }
  figure.shot { break-inside: avoid; }
  figure.shot img { box-shadow: none; max-height: 120mm; width: auto; max-width: 100%; }
  figure.shot.phone-shot img { max-height: 110mm; }
  .who, .tip, .note, .warn, ol.hsteps > li, tr { break-inside: avoid; }
  .help-contact { background: #fff; color: #333; border-color: #ccc; }
  .help-contact b { color: #111; }
  a { color: #111 !important; text-decoration: underline; }
  .all-topic { break-before: page; border: 0; margin-top: 0; padding-top: 0; }
  .help-all .all-toc { break-after: page; }
  .help-body table, .all-topic table { display: table; }
}

/* Opened from the phone app (app-mode.js): no prices, no Pricing / Sign in / billing (Apple 3.1.1 / 3.1.3). */
.app-only { display: none; }
.te-app [data-app-hide] { display: none !important; }
.te-app .app-only { display: block; }
