:root {
  --rail: #EAEAEA;
  --rail-soft: #F2F2F2;
  --ink: #000000;
  --ink-2: #171717;
  --body: #4D4D4D;
  --mute: #666666;
  --soft: #8F8F8F;
  --fill: #FAFAFA;
  --accent: #FF4F00;
  --ok: #0B7A4B;
  --frame: 1120px;
  --pad: 48px;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: #FFFFFF; font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; font-weight: 600; letter-spacing: -0.035em; line-height: 1.08; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid #000000; outline-offset: 2px; }

.band { border-bottom: 1px solid var(--rail); }
.frame { width: min(var(--frame), calc(100% - 32px)); margin: 0 auto; border-left: 1px solid var(--rail); border-right: 1px solid var(--rail); position: relative; }
.x { position: absolute; bottom: -6px; width: 11px; height: 11px; z-index: 3; pointer-events: none; }
.x::before, .x::after { content: ""; position: absolute; background: #A1A1A1; }
.x::before { left: 5px; top: 0; width: 1px; height: 11px; }
.x::after { top: 5px; left: 0; height: 1px; width: 11px; }
.x.l { left: -6px; }
.x.r { right: -6px; }
.grid { display: grid; }
.br { border-right: 1px solid var(--rail); }
.mono { font-family: var(--mono); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 6px; font-size: 14px; font-weight: 500; letter-spacing: -0.005em; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn.solid { background: #000000; color: #FFFFFF; }
.btn.solid:hover { background: #2B2B2B; }
.btn.line { border-color: var(--rail); color: #000000; background: #FFFFFF; }
.btn.line:hover { border-color: #C9C9C9; background: var(--fill); }
.btn-primary { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 6px; background: #000000; color: #FFFFFF !important; font-size: 14px; font-weight: 500; text-decoration: none !important; }

/* Navbar */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.88); backdrop-filter: saturate(180%) blur(10px); -webkit-backdrop-filter: saturate(180%) blur(10px); }
.site-header .frame { height: 64px; display: flex; align-items: center; padding: 0 24px; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14.5px; letter-spacing: -0.01em; white-space: nowrap; }
.brand svg { flex: none; }
.brand small { font-weight: 400; color: var(--soft); font-size: 13px; margin-left: 2px; }
.nav-links { display: flex; gap: 22px; font-size: 14px; color: var(--mute); margin-left: 8px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #000000; }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 16px; font-size: 14px; color: var(--mute); }
.nav-end a:not(.btn):hover { color: #000000; }

/* Hero */
.hero { grid-template-columns: 7fr 5fr; }
.hero-l { padding: 72px 56px 0 var(--pad); display: flex; flex-direction: column; min-width: 0; }
.hero-meta { font-size: 13.5px; color: var(--mute); display: flex; align-items: center; gap: 8px; }
.hero-meta svg { flex: none; }
.hero h1 { font-size: 56px; margin: 22px 0 22px; max-width: 580px; }
.lede { font-size: 18px; line-height: 1.6; color: var(--body); max-width: 540px; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.cta-note { font-size: 13px; color: var(--soft); margin: 14px 0 60px; }
.facts { margin: auto -56px 0 calc(var(--pad) * -1); display: grid; grid-template-columns: auto auto 1fr; border-top: 1px solid var(--rail); }
.facts > div { padding: 18px 20px 20px var(--pad); }
.facts > div + div { border-left: 1px solid var(--rail); padding-left: 20px; }
.facts dt { font-size: 12.5px; color: var(--soft); margin-bottom: 4px; }
.facts dd { margin: 0; font-family: var(--mono); font-size: 12.5px; color: #000000; white-space: nowrap; }

.ws { display: flex; flex-direction: column; min-width: 0; }
.ws-head { height: 48px; display: flex; align-items: center; gap: 18px; padding: 0 14px 0 20px; border-bottom: 1px solid var(--rail); font-size: 13px; }
.ws-tab { color: var(--soft); background: none; border: 0; font-size: 13px; height: 48px; padding: 0; cursor: pointer; position: relative; white-space: nowrap; }
.ws-tab:hover { color: #000000; }
.ws-tab[aria-selected="true"] { color: #000000; }
.ws-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: #000000; }
.run { margin-left: auto; height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: 5px; gap: 10px; }
.run kbd { font-family: var(--mono); font-size: 11px; color: #A1A1A1; }
.ws pre { margin: 0; font-family: var(--mono); font-size: 12.3px; line-height: 1.62; padding: 20px 20px 22px; color: var(--body); white-space: pre; overflow: auto; min-height: 340px; }
.tk { color: #000000; font-weight: 600; }
.tf { color: #000000; }
.ts { color: var(--ok); }
.tn { color: #A1470D; }
.tc { color: #A1A1A1; }
.res-head { display: flex; justify-content: space-between; gap: 12px; padding: 10px 20px; border-top: 1px solid var(--rail); border-bottom: 1px solid var(--rail); font-size: 12.5px; color: var(--soft); background: var(--fill); }
.res-head b { color: #000000; font-weight: 500; }
.out td, .out th { font-family: var(--mono); font-size: 12.3px; padding: 8px 20px; text-align: left; border-bottom: 1px solid var(--rail-soft); white-space: nowrap; }
.out th { font-weight: 500; color: var(--soft); font-size: 11.5px; }
.out .n { text-align: right; }
.out tbody tr:last-child td { border-bottom: 0; }
.out tbody { transition: opacity .25s; }
.out.dim tbody { opacity: .25; }
.out-wrap { overflow-x: auto; }

/* Section scaffolding */
.sec { grid-template-columns: 4fr 8fr; }
.sec > * { min-width: 0; }
.sec-l { padding: 64px var(--pad); }
.sec-l h2 { font-size: 34px; margin-bottom: 16px; }
.sec-l p { color: var(--mute); font-size: 15.5px; max-width: 310px; }
.sec-l .more { display: inline-block; margin-top: 20px; font-size: 14px; font-weight: 500; color: #000000; border-bottom: 1px solid #000000; padding-bottom: 1px; }
.sticky { position: sticky; top: 112px; }
.split-head { grid-template-columns: 4fr 8fr; }
.split-head > div { padding: 64px var(--pad) 40px; }
.split-head h2 { font-size: 34px; }
.split-head p { color: var(--mute); font-size: 15.5px; max-width: 540px; }
.split-head .end { display: flex; align-items: flex-end; }

.rows > .row { display: grid; grid-template-columns: minmax(0, 1fr) 210px; border-bottom: 1px solid var(--rail); }
.rows > .row:last-child { border-bottom: 0; }
.row h3 { grid-column: 1; font-size: 16px; letter-spacing: -0.018em; line-height: 1.35; padding: 24px 32px 0; }
.row p { grid-column: 1; color: var(--body); font-size: 14.5px; line-height: 1.62; padding: 6px 32px 24px; max-width: 600px; }
.row .v { grid-column: 2; grid-row: 1 / span 2; padding: 26px 24px; font-family: var(--mono); font-size: 12px; line-height: 1.6; border-left: 1px solid var(--rail); color: #000000; overflow-wrap: anywhere; }
.rows.compact .row h3 { padding-top: 20px; }
.rows.compact .row p { padding-bottom: 20px; }
.rows.compact .row .v { padding-top: 22px; }

/* Security data path */
.path-wrap { padding: 48px 32px 40px; border-bottom: 1px solid var(--rail); }
.path { display: grid; grid-template-columns: 1fr 64px 1.15fr 64px 1fr; align-items: stretch; }
.node { border: 1px solid var(--rail); padding: 16px 16px 18px; min-width: 0; }
.node .who { display: block; font-size: 12px; color: var(--soft); margin-bottom: 8px; }
.node b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 4px; }
.node span.d { display: block; font-size: 13px; color: var(--mute); line-height: 1.5; }
.node span.host { font-family: var(--mono); font-size: 11.5px; overflow-wrap: anywhere; }
.node.dark { background: #000000; border-color: #000000; color: #FFFFFF; }
.node.dark .who, .node.dark span.d { color: #A1A1A1; }
.node.zone { position: relative; }
.edge { position: relative; display: flex; align-items: center; justify-content: center; }
.edge::before { content: ""; position: absolute; left: 6px; right: 8px; top: 50%; height: 1px; background: #000000; }
.edge::after { content: ""; position: absolute; right: 6px; top: calc(50% - 4px); border: 4px solid transparent; border-left: 6px solid #000000; border-right: 0; }
.edge span { position: relative; top: -16px; font-family: var(--mono); font-size: 10.5px; color: var(--mute); background: #FFFFFF; padding: 0 4px; white-space: nowrap; }
.absent { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 22px; font-size: 13px; color: var(--mute); }
.absent b { color: #000000; font-weight: 500; }
.absent s { text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; color: var(--soft); }

/* Comparison matrix */
.mx-wrap { overflow-x: auto; border-top: 1px solid var(--rail); }
.mx { min-width: 860px; }
.mx th, .mx td { border-bottom: 1px solid var(--rail); text-align: left; vertical-align: top; padding: 18px 24px; font-size: 14px; }
.mx td + td, .mx th + th, .mx td:first-of-type { border-left: 1px solid var(--rail); }
.mx thead th { font-size: 13.5px; font-weight: 600; padding-top: 20px; padding-bottom: 20px; }
.mx thead th small { display: block; font-weight: 400; color: var(--soft); font-size: 12.5px; }
.mx tbody th { padding-left: var(--pad); font-weight: 500; color: #000000; }
.mx td { color: var(--mute); }
.mx .us { background: var(--fill); color: #000000; }
.mx tbody tr:last-child td, .mx tbody tr:last-child th { border-bottom: 0; }
.mx tr > :first-child { width: 33.333%; }

/* Documentation, guides, legal, support and 404 pages */
.doc-container { width: min(var(--frame), calc(100% - 32px)); margin: 0 auto; border-left: 1px solid var(--rail); border-right: 1px solid var(--rail); min-height: 70vh; }
.doc-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); align-items: start; background: linear-gradient(var(--rail), var(--rail)) 259px 0 / 1px 100% no-repeat; }
.doc-layout > * { min-width: 0; }
.toc-aside { position: sticky; top: 64px; padding: 40px 24px 40px 32px; max-height: calc(100vh - 64px); overflow: auto; }
.toc-label { font-size: 12.5px; font-weight: 500; color: var(--soft); margin: 0 0 12px; }
.toc-list li { margin: 0; }
.toc-list a { display: block; padding: 6px 0; font-size: 13.5px; line-height: 1.4; color: var(--mute); border-bottom: 1px solid var(--rail-soft); }
.toc-list a:hover { color: #000000; }
.print-btn { margin-top: 20px; height: 32px; padding: 0 12px; border: 1px solid var(--rail); border-radius: 6px; background: #FFFFFF; font-size: 13px; cursor: pointer; }
.print-btn:hover { background: var(--fill); }
.article-card { padding: 56px var(--pad) 80px; min-width: 0; }
.article-prose { max-width: 720px; }
.article-prose-wide { max-width: 820px; }
.article-card h1 { font-size: 40px; margin-bottom: 20px; }
.article-card h2 { font-size: 24px; letter-spacing: -0.025em; line-height: 1.2; margin: 48px 0 14px; padding-top: 28px; border-top: 1px solid var(--rail); }
.article-card h3 { font-size: 17px; letter-spacing: -0.015em; line-height: 1.3; margin: 30px 0 10px; }
.article-card h4 { font-size: 15px; letter-spacing: -0.01em; margin: 24px 0 8px; }
.article-card p { color: var(--body); margin: 0 0 14px; font-size: 15.5px; line-height: 1.7; }
.article-card ul, .article-card ol { color: var(--body); margin: 0 0 16px; padding-left: 20px; font-size: 15.5px; line-height: 1.7; }
.article-card ul { list-style: disc; }
.article-card li { margin: 0 0 6px; }
.article-card li > ul { margin: 6px 0 0; }
.article-card a:not(.btn-primary):not(.email-chip) { color: #000000; text-decoration: underline; text-decoration-color: #C9C9C9; text-underline-offset: 3px; }
.article-card a:not(.btn-primary):not(.email-chip):hover { text-decoration-color: #000000; }
.article-card strong { color: #000000; font-weight: 600; }
.article-card code { font-family: var(--mono); font-size: .86em; color: #000000; overflow-wrap: anywhere; }
.doc-meta { font-size: 13.5px !important; color: var(--soft) !important; }
.section-rule { border: 0; border-top: 1px solid var(--rail); margin: 36px 0; }
.callout { margin: 20px 0; padding: 4px 0 4px 18px; border-left: 2px solid #000000; color: var(--ink-2); font-size: 15px; line-height: 1.65; }
.email-chip { font-family: var(--mono); font-size: .9em; color: #000000; border-bottom: 1px solid #000000; }
.doc-figure { margin: 24px 0; border: 1px solid var(--rail); }
.doc-figure img, .doc-figure svg { display: block; width: 100%; height: auto; }
.doc-figure figcaption { padding: 10px 14px; font-size: 13px; color: var(--soft); border-top: 1px solid var(--rail); }
.table-wrap { overflow-x: auto; margin: 20px 0; border: 1px solid var(--rail); }
.table-wrap table { min-width: 560px; }
.table-wrap th { text-align: left; font-size: 12.5px; font-weight: 500; color: var(--soft); background: var(--fill); padding: 10px 14px; border-bottom: 1px solid var(--rail); }
.table-wrap td { padding: 12px 14px; font-size: 14px; color: var(--body); border-bottom: 1px solid var(--rail); vertical-align: top; }
.table-wrap tbody tr:last-child td { border-bottom: 0; }
.code-shell { margin: 18px 0 22px; border: 1px solid var(--rail); background: #FFFFFF; }
.code-toolbar { display: flex; align-items: center; justify-content: space-between; height: 38px; padding: 0 8px 0 14px; border-bottom: 1px solid var(--rail); background: var(--fill); }
.code-lang { font-family: var(--mono); font-size: 11.5px; color: var(--soft); }
.copy-btn { height: 26px; padding: 0 10px; border: 1px solid var(--rail); border-radius: 5px; background: #FFFFFF; font-size: 12.5px; cursor: pointer; color: #000000; }
.copy-btn:hover { border-color: #C9C9C9; }
.code-shell pre { margin: 0; padding: 16px 18px; overflow-x: auto; font-family: var(--mono); font-size: 12.5px; line-height: 1.65; color: var(--ink-2); }
.code-shell pre code { font-size: inherit; overflow-wrap: normal; }


/* Sync timeline */
.tl { padding: 56px 32px 36px; border-bottom: 1px solid var(--rail); }
.tl svg { display: block; width: 100%; height: auto; }

/* Schema browser */
.tables { border-top: 1px solid var(--rail); margin: 36px calc(var(--pad) * -1) 0; }
.tables button { display: block; width: 100%; text-align: left; padding: 13px var(--pad) 14px; border: 0; border-bottom: 1px solid var(--rail); background: #FFFFFF; cursor: pointer; font-family: var(--mono); font-size: 13px; color: #000000; }
.tables button span { display: block; font-family: var(--sans); color: var(--soft); font-size: 12.5px; margin-top: 2px; }
.tables button:hover { background: var(--fill); }
.tables button[aria-selected="true"] { background: #000000; color: #FFFFFF; }
.tables button[aria-selected="true"] span { color: #A1A1A1; }
.tables li:last-child button { border-bottom: 0; }
.spec-wrap, .sample-wrap { overflow-x: auto; }
.spec td, .spec th { padding: 11px 24px; border-bottom: 1px solid var(--rail); text-align: left; vertical-align: top; font-size: 14px; }
.spec th { font-weight: 500; color: var(--soft); font-size: 12.5px; background: var(--fill); }
.spec td:first-child, .spec th:first-child { padding-left: 32px; }
.spec td.c { font-family: var(--mono); font-size: 12.5px; white-space: nowrap; }
.spec td.t { font-family: var(--mono); font-size: 12px; color: var(--mute); white-space: nowrap; }
.spec td.d { color: var(--body); }
.sample-h { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 28px 32px 12px; font-size: 12.5px; color: var(--soft); }
.sample-h b { font-weight: 600; color: #000000; font-size: 14px; letter-spacing: -0.01em; font-family: var(--sans); }
.sample-h span { font-family: var(--mono); }
.sample td, .sample th { font-family: var(--mono); font-size: 12px; padding: 9px 16px; border-top: 1px solid var(--rail); white-space: nowrap; text-align: left; }
.sample td:first-child, .sample th:first-child { padding-left: 32px; }
.sample th { color: var(--soft); font-weight: 500; font-size: 11.5px; }
.sample td.null { color: #B5B5B5; }

/* Rollout */
.rollout .row .v { font-family: var(--sans); font-size: 13.5px; font-weight: 500; }
.setup { border-top: 1px solid var(--rail); }
.setup .code-shell { margin: 0; border: 0; }
.setup .code-toolbar { padding-left: 32px; }
.setup pre { padding: 18px 32px 22px; font-size: 12.3px; color: var(--body); max-height: 360px; }

/* Pricing */
.price { padding: 8px var(--pad) 48px; }
.bar { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--rail); }
.bar div { padding: 14px 14px 16px; border-left: 1px solid var(--rail); transition: background .2s, color .2s; min-width: 0; }
.bar div:first-child { border-left: 0; }
.bar b { display: block; font-size: 12.5px; font-weight: 500; color: var(--soft); margin-bottom: 6px; white-space: nowrap; }
.bar span { font-size: 20px; font-weight: 600; letter-spacing: -0.03em; white-space: nowrap; }
.bar span small { font-size: 12px; font-weight: 400; color: var(--soft); letter-spacing: 0; }
.bar div.on { background: #000000; color: #FFFFFF; }
.bar div.on b, .bar div.on small { color: #A1A1A1; }
.calc { display: grid; grid-template-columns: minmax(0, 1fr) 340px; margin-top: 40px; border-top: 1px solid var(--rail); }
.calc-l { padding: 28px 32px 0 0; min-width: 0; }
.calc-r { border-left: 1px solid var(--rail); padding: 28px 0 0 32px; }
.seat { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.seat label { font-size: 14px; color: var(--mute); }
.seat output { font-size: 15px; font-weight: 600; }
.calc input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 1px; background: #000000; outline: none; margin: 18px 0 12px; }
.calc input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; background: #FFFFFF; border: 1px solid #000000; border-radius: 0; cursor: ew-resize; }
.calc input[type=range]::-moz-range-thumb { width: 14px; height: 14px; background: #FFFFFF; border: 1px solid #000000; border-radius: 0; cursor: ew-resize; }
.presets { display: flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 13px; color: var(--soft); }
.presets span { margin-right: 6px; }
.presets button { height: 28px; padding: 0 10px; border: 1px solid var(--rail); border-radius: 5px; background: #FFFFFF; font-size: 12.5px; font-family: var(--mono); color: #000000; cursor: pointer; }
.presets button:hover { border-color: #C9C9C9; background: var(--fill); }
.ticks { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--soft); }
.buy { margin-top: 32px; border-top: 1px solid var(--rail); }
.buy div { display: grid; grid-template-columns: 200px minmax(0, 1fr); padding: 12px 0; border-bottom: 1px solid var(--rail-soft); font-size: 14px; }
.buy dt { color: #000000; font-weight: 500; }
.buy dd { margin: 0; color: var(--mute); }
.seg { display: inline-flex; border: 1px solid var(--rail); border-radius: 6px; padding: 2px; gap: 2px; }
.seg button { border: 0; background: none; font-size: 13px; height: 26px; padding: 0 10px; border-radius: 4px; color: var(--mute); cursor: pointer; }
.seg button[aria-pressed="true"] { background: #000000; color: #FFFFFF; }
.total { font-size: 44px; font-weight: 600; letter-spacing: -0.045em; line-height: 1; margin: 20px 0 8px; font-variant-numeric: tabular-nums; }
.total small { font-size: 15px; color: var(--soft); font-weight: 400; letter-spacing: 0; margin-left: 6px; }
.per { font-size: 13.5px; color: var(--mute); }
.lines { margin-top: 18px; border-top: 1px solid var(--rail); }
.lines div { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; padding: 7px 0; border-bottom: 1px solid var(--rail-soft); color: var(--mute); }
.lines div b { color: #000000; font-weight: 500; }
.fine { font-size: 13px; color: var(--soft); margin-top: 20px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--rail); }
.faq details:last-child { border-bottom: 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 32px; font-size: 15.5px; font-weight: 500; letter-spacing: -0.012em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-weight: 400; font-size: 16px; color: var(--soft); flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { background: var(--fill); }
.faq details p { padding: 0 32px 22px; color: var(--body); font-size: 14.5px; max-width: 700px; }

/* Closing call to action */
.close { grid-template-columns: 8fr 4fr; }
.close > div { padding: 72px var(--pad); }
.close h2 { font-size: 44px; max-width: 620px; margin-bottom: 16px; }
.close p { color: var(--mute); font-size: 16px; max-width: 540px; }
.close .acts { display: flex; flex-direction: column; justify-content: center; gap: 10px; align-items: stretch; max-width: 300px; }

/* Footer */
.site-footer .foot { grid-template-columns: 4fr 2fr 2fr 4fr; }
.foot > div { padding: 40px 24px 48px; min-width: 0; }
.foot > div:first-child { padding-left: var(--pad); }
.foot h4 { font-size: 13px; font-weight: 500; letter-spacing: -0.005em; margin-bottom: 12px; }
.foot li { font-size: 13.5px; color: var(--mute); margin-bottom: 6px; }
.foot li a:hover { color: #000000; }
.foot p { font-size: 13px; color: var(--mute); line-height: 1.65; }
.foot p a { color: #000000; }
.legal { font-size: 12.5px; color: var(--soft); padding: 20px var(--pad); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 1080px) {
  .nav-links { display: none; }
}

@media (max-width: 960px) {
  :root { --pad: 24px; }
  .hero, .sec, .split-head, .calc, .close, .site-footer .foot { grid-template-columns: minmax(0, 1fr); }
  .br { border-right: 0; border-bottom: 1px solid var(--rail); }
  .hero-l { padding: 48px var(--pad) 0; }
  .hero h1 { font-size: 40px; }
  .facts { margin: 0 calc(var(--pad) * -1); grid-template-columns: minmax(0, 1fr); }
  .facts > div + div { border-left: 0; border-top: 1px solid var(--rail); padding-left: var(--pad); }
  .facts dd { white-space: normal; }
  .sticky { position: static; }
  .sec-l { padding: 48px var(--pad) 40px; }
  .sec-l p { max-width: none; }
  .split-head > div { padding: 48px var(--pad) 24px; }
  .rows > .row { grid-template-columns: minmax(0, 1fr); }
  .row h3, .rows.compact .row h3 { padding: 20px var(--pad) 0; }
  .row p, .rows.compact .row p { padding: 6px var(--pad) 0; }
  .row .v, .rows.compact .row .v { grid-column: 1; grid-row: auto; border-left: 0; padding: 8px var(--pad) 20px; color: var(--mute); }
  .path { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .edge { height: 44px; }
  .edge::before { left: 50%; right: auto; top: 6px; bottom: 8px; width: 1px; height: auto; }
  .edge::after { right: auto; left: calc(50% - 4px); top: auto; bottom: 4px; border: 4px solid transparent; border-top: 6px solid #000000; border-bottom: 0; }
  .edge span { top: 0; left: 40px; }
  .path-wrap, .tl { padding-left: var(--pad); padding-right: var(--pad); }
  .bar { grid-template-columns: repeat(3, 1fr); }
  .bar div:nth-child(4) { border-left: 0; }
  .bar div:nth-child(n+4) { border-top: 1px solid var(--rail); }
  .calc-l { padding-right: 0; }
  .calc-r { border-left: 0; padding-left: 0; border-top: 1px solid var(--rail); margin-top: 28px; }
  .buy div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .close h2 { font-size: 32px; }
  .close > div { padding: 48px var(--pad); }
  .close .acts { padding-top: 0; }
  .foot > div, .foot > div:first-child { padding: 28px var(--pad); }
  .doc-layout { grid-template-columns: minmax(0, 1fr); background: none; }
  .toc-aside { position: static; max-height: none; border-right: 0; border-bottom: 1px solid var(--rail); padding: 24px var(--pad); }
  .article-card { padding: 40px var(--pad) 64px; }
  .article-card h1 { font-size: 32px; }
}

@media (max-width: 640px) {
  .brand small, .nav-end a:not(.btn) { display: none; }
  .site-header .frame { padding: 0 16px; gap: 12px; }
  .nav-end { gap: 12px; }
  .hero h1 { font-size: 34px; }
  .lede { font-size: 16.5px; }
  .ws-head { gap: 14px; padding-left: 16px; overflow-x: auto; }
  .run { display: none; }
  .bar { grid-template-columns: repeat(2, 1fr); }
  .bar div:nth-child(n) { border-left: 1px solid var(--rail); border-top: 1px solid var(--rail); }
  .bar div:nth-child(odd) { border-left: 0; }
  .bar div:nth-child(-n+2) { border-top: 0; }
  .total { font-size: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .out tbody, .bar div, .btn { transition: none; }
}

@media print {
  .site-header, .toc-aside, .copy-btn, .print-btn, .site-footer { display: none !important; }
  .doc-container { border: 0; width: 100%; }
  .doc-layout { display: block; }
  .article-card { padding: 0; }
}
