:root {
  --midnight: #172335;
  --teal: #2A9D8F;
  --sky: #5B8DEF;
  --canvas: #F7F8F7;
  --slate: #697586;
  --bg: #ffffff;
  --panel: #F4F6F8;
  --text: #1c2733;
  --muted: #5d6b7b;
  --line: #e1e6ec;
  --link: #1f7d72;
  --note: #eaf2ff; --note-line: #5B8DEF;
  --tip: #e6f6f3; --tip-line: #2A9D8F;
  --warn: #fff4e0; --warn-line: #e89b1c;
  --caution: #fdecec; --caution-line: #d9534f;
  --shadow: 0 1px 2px rgba(23,35,53,.06), 0 8px 24px rgba(23,35,53,.06);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11161d; --panel: #18202a; --text: #e6ebf1; --muted: #9aa8b8; --line: #263140; --link: #56c2b4;
    --note: #16233a; --tip: #12292a; --warn: #33270f; --caution: #341a1a;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 18px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.62 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif; -webkit-text-size-adjust: 100%; }
a { color: var(--link); text-underline-offset: 2px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; background: var(--bg); padding: 8px 12px; z-index: 10; }

.shell { display: grid; grid-template-columns: 300px minmax(0, 1fr); max-width: 1320px; margin: 0 auto; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 24px 18px 40px 24px; border-right: 1px solid var(--line); background: var(--panel); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); margin-bottom: 16px; }
.brand span { display: flex; flex-direction: column; line-height: 1.2; } .brand small { color: var(--muted); font-size: 12px; }
#filter { width: 100%; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; font-size: 14px; margin-bottom: 14px; }
.toc-side ol { list-style: none; margin: 0; padding: 0; }
.toc-side > ol > li { margin: 2px 0; }
.toc-side a { display: block; padding: 5px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 14.5px; line-height: 1.35; }
.toc-side a:hover { background: color-mix(in srgb, var(--teal) 12%, transparent); }
.toc-side a.current { background: color-mix(in srgb, var(--teal) 20%, transparent); font-weight: 600; }
.toc-side ol ol { margin: 0 0 6px 10px; padding-left: 8px; border-left: 2px solid var(--line); }
.toc-side ol ol a { font-size: 13.5px; color: var(--muted); padding: 3px 8px; }
.toc-side .n { display: inline-block; min-width: 1.6em; color: var(--teal); font-weight: 600; }

main { padding: 0 48px 80px; min-width: 0; }
.hero { padding: 64px 0 28px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.hero-mark { filter: drop-shadow(0 8px 18px rgba(42,157,143,.35)); }
.eyebrow { margin: 18px 0 0; letter-spacing: .14em; text-transform: uppercase; font-size: 12.5px; font-weight: 700; color: var(--teal); }
h1 { font-size: clamp(38px, 6vw, 56px); line-height: 1.05; margin: 6px 0 12px; letter-spacing: -0.02em; }
.tagline { font-size: 20px; color: var(--muted); margin: 0 0 8px; max-width: 34em; }
.meta { color: var(--muted); font-size: 14px; margin: 0; }

.toc-main { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 8px 28px 22px; margin-bottom: 48px; }
.toc-title { font-size: 22px; margin: 18px 0 8px; }
.toc-main ol { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 40px; }
.toc-main > ol > li { break-inside: avoid; margin: 0 0 14px; }
.toc-main a { text-decoration: none; }
.toc-main a:hover { text-decoration: underline; }
.toc-main > ol > li > a { font-weight: 650; color: var(--text); }
.toc-main .n { color: var(--teal); font-weight: 700; display: inline-block; min-width: 1.7em; }
.toc-main ol ol { columns: 1; margin: 4px 0 0 1.7em; }
.toc-main ol ol a { font-size: 15px; color: var(--muted); line-height: 1.7; }

.chapter { margin: 0 0 64px; }
.chapter > h2 { font-size: clamp(28px, 4vw, 36px); line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 18px; padding-top: 36px; border-top: 3px solid var(--teal); }
.chapter > h2 .n { color: var(--teal); margin-right: 10px; }
h3 { font-size: 22px; line-height: 1.25; margin: 40px 0 10px; letter-spacing: -0.01em; }
h3 .n { color: var(--teal); margin-right: 8px; font-weight: 700; }
h4 { font-size: 17px; margin: 26px 0 6px; }
p { margin: 0 0 14px; max-width: 46em; }
.lead { font-size: 19px; color: var(--muted); max-width: 40em; }
ul, ol { max-width: 46em; padding-left: 1.4em; } li { margin: 4px 0; }
li > p { margin: 0 0 6px; }
.up { float: right; font-size: 13px; font-weight: 500; text-decoration: none; margin-top: 8px; }

.ui { font-weight: 650; background: color-mix(in srgb, var(--sky) 12%, transparent); border-radius: 6px; padding: 1px 6px; white-space: nowrap; font-size: .94em; }
.path { font-weight: 600; color: var(--muted); white-space: nowrap; }
code { font: 14.5px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--panel); padding: 1px 6px; border-radius: 5px; }

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps > li { counter-increment: step; position: relative; padding: 2px 0 2px 46px; margin: 12px 0; min-height: 32px; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 15px; }

.callout { border-left: 4px solid var(--note-line); background: var(--note); border-radius: 10px; padding: 12px 16px; margin: 20px 0; max-width: 46em; }
.callout > :last-child { margin-bottom: 0; }
.callout > strong:first-child { display: block; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 2px; }
.callout.tip { border-color: var(--tip-line); background: var(--tip); }
.callout.warn { border-color: var(--warn-line); background: var(--warn); }
.callout.caution { border-color: var(--caution-line); background: var(--caution); }

figure { margin: 26px 0; }
figure img { display: block; max-width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); }
figure.phone img { max-width: 300px; }
figure.pair { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
figure.pair img { max-width: 260px; }
figcaption { color: var(--muted); font-size: 14px; margin-top: 10px; max-width: 46em; }

table { border-collapse: collapse; width: 100%; max-width: 46em; margin: 18px 0; font-size: 15.5px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
dl.glossary { max-width: 46em; } dl.glossary dt { font-weight: 700; margin-top: 16px; } dl.glossary dd { margin: 2px 0 0; color: var(--muted); }

.colophon { border-top: 1px solid var(--line); padding-top: 22px; color: var(--muted); font-size: 14.5px; }

/* Inside the app: the Help screen supplies its own contents list. */
html.embedded .sidebar, html.embedded .skip, html.embedded .hero, html.embedded .toc-main { display: none; }
html.embedded .shell { display: block; max-width: none; }
html.embedded main { padding: 8px 22px 60px; }
html.embedded .chapter:first-of-type > h2 { border-top: 0; padding-top: 6px; }
html.embedded .up { display: none; }

@media (max-width: 980px) {
  .shell { display: block; }
  .sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 16px; }
  .toc-side { display: none; } #filter { display: none; }
  main { padding: 0 20px 60px; }
  .toc-main ol { columns: 1; }
}
@media print {
  .sidebar, .skip, .up { display: none !important; }
  .shell { display: block; max-width: none; }
  body { font-size: 11pt; background: #fff; color: #000; }
  main { padding: 0; }
  .chapter { break-before: page; }
  .toc-main { break-after: page; }
  figure, .callout, .steps > li { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
  @page { margin: 18mm 16mm; }
}
