/* Glint's light table: neutral surfaces, precise controls, the image first. */
@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope-variable.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono-variable.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f0f1ee;
  --surface: #fafbf8;
  --table: #e5e7e2;
  --ink: #252923;
  --muted: #62685e;
  --rule: #cdd1c7;
  --accent: #bd3c18;
  --accent-bright: #ec5428;
  --accent-wash: #f7eae2;
  --sans: "Manrope", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --keys: -apple-system, BlinkMacSystemFont, "Segoe UI Symbol", "Apple Symbols", var(--sans);
  --gutter: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 450 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--accent); }
button { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
button:active, .btn:active, .nav-cta:active { transform: scale(0.96); }
.wrap { width: min(100% - var(--gutter) * 2, 1320px); margin-inline: auto; }
.index, .tiny-label, .section-index, .spec-line { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.index { color: var(--accent); }
.tiny-label, .section-index { font-size: 10px; line-height: 1.5; font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase; }
.tiny-label { color: var(--muted); }
.section-index { margin-bottom: 24px; color: var(--accent); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 18px; background: var(--ink); color: white; transform: translateY(-160%); }
.skip:focus { transform: none; color: white; }

.site-header { position: sticky; top: 0; z-index: 20; background: var(--paper); box-shadow: 0 1px 0 var(--rule); }
.site-header .wrap { min-height: 74px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; color: var(--ink); text-decoration: none; font-size: 27px; font-weight: 800; letter-spacing: -1.6px; line-height: 1; }
.brand img { width: 28px; height: 28px; border-radius: 7px; outline: 1px solid #25292314; outline-offset: -1px; }
.brand-dot { color: var(--accent); margin-left: -8px; }
.brand-note { font: 400 11px/1.4 var(--mono); color: var(--muted); padding-left: 24px; border-left: 1px solid var(--rule); }
.nav { display: flex; align-items: center; gap: 8px; margin-left: auto; font-size: 13px; font-weight: 650; }
.nav a { display: inline-flex; gap: 16px; align-items: center; min-height: 42px; padding: 0 16px; text-decoration: none; border-radius: 5px; transition: background-color 160ms var(--ease), color 160ms var(--ease), transform 160ms var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { background: #25292309; }
.nav .nav-cta { margin-left: 8px; color: var(--surface); background: var(--ink); }
.nav .nav-cta:hover { color: white; background: #0f130e; }
.intro { display: flex; justify-content: space-between; align-items: end; gap: 32px; padding-block: 45px 38px; }
.intro h1 { font-size: clamp(34px, 3.8vw, 54px); line-height: 1.08; font-weight: 650; letter-spacing: -0.055em; }
.intro h1 span { color: var(--muted); }
.intro-copy { padding-bottom: 4px; font-size: 14px; }
.spec-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; color: var(--muted); font-size: 10px; }
.status-dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-bright); box-shadow: 0 0 0 3px #ec542814; }

.light-table { background: var(--surface); border-radius: 8px; box-shadow: 0 0 0 1px var(--rule), 0 3px 3px -2px #25292309, 0 18px 38px -24px #25292326; overflow: hidden; }
.table-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding: 6px 20px; border-bottom: 1px solid var(--rule); }
.table-bar h2 { display: flex; gap: 14px; align-items: center; font: 500 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.05em; }
.table-bar .index { border-right: 1px solid var(--rule); padding-right: 14px; }
.view-switch { display: flex; gap: 2px; }
.view-switch button { min-height: 40px; padding: 0 14px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 600; transition: background-color 140ms var(--ease), transform 140ms var(--ease); }
.view-switch button:hover { background: #25292308; }
.view-switch button[aria-pressed="true"] { background: var(--ink); color: var(--surface); box-shadow: 0 1px 2px #25292320; }
.workbench { display: grid; grid-template-columns: minmax(0, 1fr) 250px; }
.preview-pane { min-width: 0; margin: 0; display: flex; flex-direction: column; border-right: 1px solid var(--rule); }
.preview-stage { position: relative; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; height: clamp(360px, 35vw, 490px); padding: 42px 48px; background-color: var(--table); background-image: radial-gradient(#25292323 0.6px, transparent 0.6px); background-size: 12px 12px; }
.preview-stage::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: repeating-linear-gradient(90deg, transparent 0 23px, #25292326 23px 24px); }
.preview-stage img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.preview-stage[data-original] img { width: 90%; height: 90%; }
.preview-stage[data-checker] { background-color: #fff; background-image: conic-gradient(#e5e7e2 25%, transparent 0 50%, #e5e7e2 0 75%, transparent 0); background-size: 16px 16px; }
.sheet-label { position: absolute; left: 20px; top: 16px; color: var(--muted); font: 400 9px/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.05em; }
.sheet-mark { position: absolute; width: 13px; height: 13px; border-color: #62685e80; border-style: solid; }
.mark-start { left: 19px; bottom: 17px; border-width: 0 0 1px 1px; }
.mark-end { right: 19px; top: 19px; border-width: 1px 1px 0 0; }
.preview-caption { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: auto; min-height: 41px; padding: 10px 20px; background: #f5f6f2; border-top: 1px solid var(--rule); font: 400 10px/1.5 var(--mono); font-variant-numeric: tabular-nums; }
.preview-caption-label { color: var(--muted); }
.render-label { margin-left: auto; color: var(--muted); }
.finish-rail { padding: 20px 16px; display: flex; flex-direction: column; }
.rail-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 18px; }
.rail-heading h3 { font-size: 13px; font-weight: 650; }
.preset-controls { display: grid; gap: 4px; }
.preset { display: flex; align-items: center; gap: 10px; min-height: 59px; width: 100%; padding: 9px; text-align: left; background: transparent; border: 1px solid transparent; border-radius: 5px; font-size: 12px; font-weight: 600; line-height: 1.3; transition: background-color 140ms var(--ease), border-color 140ms var(--ease), transform 140ms var(--ease); }
.preset small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 450; }
.preset:hover { background: #25292306; }
.preset[aria-pressed="true"] { border-color: #bd3c184d; background: var(--accent-wash); }
.swatch { flex: none; display: block; width: 30px; height: 30px; border-radius: 3px; box-shadow: inset 0 0 0 1px #25292318; }
.swatch-default { background: linear-gradient(135deg, #9255f5, #32b5e7); }
.swatch-clean { background: #fff; }
.swatch-social { background: linear-gradient(135deg, #ff512f, #f09819); }
.swatch-transparent { background: conic-gradient(#d7dbd1 25%, white 0 50%, #d7dbd1 0 75%, white 0); background-size: 12px 12px; }
.selection-dot { flex: none; margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: transparent; }
.preset[aria-pressed="true"] .selection-dot { background: var(--accent-bright); }
.finish-description { margin: 15px 4px 20px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.rail-foot { margin: auto 4px 0; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 11px; }
.rail-foot p { margin-top: 6px; color: var(--muted); }
.rail-foot a { display: inline-flex; align-items: center; gap: 12px; min-height: 40px; font-weight: 650; }
.contact-strip { display: grid; grid-template-columns: 190px minmax(0, 1fr); align-items: center; gap: 22px; padding: 18px 20px; border-top: 1px solid var(--rule); }
.contact-heading p { margin-top: 5px; font-size: 13px; line-height: 1.5; }
.contact-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.contact { display: flex; align-items: center; gap: 14px; min-width: 0; min-height: 90px; padding: 8px; background: #f0f1ed; border: 1px solid transparent; border-radius: 5px; text-align: left; transition: background-color 140ms var(--ease), border-color 140ms var(--ease), transform 140ms var(--ease); }
.contact:hover { background: #e9ece4; }
.contact[aria-pressed="true"] { border-color: var(--ink); background: #f6f7f3; }
.contact img { width: 112px; height: 70px; object-fit: contain; outline: 1px solid #25292312; outline-offset: -1px; }
.contact .tiny-label { font-size: 9px; }
.contact strong { display: block; margin-top: 5px; font-size: 11px; font-weight: 550; }
.contact-check { margin-left: auto; padding-right: 6px; color: var(--muted); }
.contact[aria-pressed="true"] .contact-check { color: var(--accent); }
.table-note { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 10px; color: var(--muted); }
.table-note a { flex: none; min-height: 40px; display: inline-flex; align-items: start; gap: 10px; }
#demo-error:empty { display: none; }
#demo-error { padding: 12px 20px; color: var(--accent); font-size: 13px; border-top: 1px solid var(--rule); }
.no-script { margin-top: 10px; font-size: 13px; }

.field-notes { padding-block: 84px 70px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding-bottom: 36px; }
.section-heading .section-index { align-self: start; margin-top: 6px; }
h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 600; letter-spacing: -0.045em; line-height: 1.15; }
.section-heading h2 { width: 74%; }
.feature-ledger { border-top: 1px solid var(--ink); }
.ledger-row { display: grid; grid-template-columns: 42px 0.85fr 1.6fr 0.65fr; gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--rule); }
.ledger-number { color: var(--accent); font: 500 11px/1.7 var(--mono); }
.ledger-row h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.45; }
.ledger-row p { color: var(--muted); font-size: 13px; line-height: 1.75; max-width: 40rem; }
.ledger-row a { display: inline-flex; align-items: center; gap: 12px; min-height: 40px; margin-top: 6px; font-size: 11px; font-weight: 650; }
.ledger-detail { justify-self: end; display: flex; flex-direction: column; align-items: end; gap: 12px; padding-top: 4px; font-size: 13px; }
.ledger-detail small { font-size: 10px; color: var(--muted); }
code, kbd { font-family: var(--mono); font-size: 0.88em; }
:not(pre) > code { background: #25292309; padding: 0.1em 0.3em; border-radius: 3px; overflow-wrap: anywhere; }
kbd { display: inline-block; padding: 4px 8px; background: var(--surface); border-radius: 4px; box-shadow: 0 0 0 1px #25292325, 0 2px 0 #25292315; font-family: var(--keys); font-weight: 500; white-space: nowrap; }
.detail-frame { width: 100px; height: 66px; align-items: center; justify-content: center; padding: 13px; background: #d9ddd2; border: 1px dashed #62685e80; }
.detail-frame span { width: 100%; height: 100%; border-radius: 5px; background: var(--surface); box-shadow: 0 4px 8px #2529231f; }
.detail-redact > span { padding: 0 8px; background: var(--ink); color: var(--ink); user-select: none; transform: rotate(-3deg); font: 500 16px/1.8 var(--mono); }
.file-label { padding-bottom: 4px; font: 400 11px/1.8 var(--mono); border-bottom: 1px solid var(--rule); }
.file-label span { margin-left: 12px; color: var(--accent); }
.local-note { display: grid; grid-template-columns: 42px 0.85fr 2.25fr; align-items: start; gap: 28px; padding-top: 32px; }
.local-symbol { color: var(--accent); font-size: 28px; line-height: 1; }
.local-note h3 { font-size: 17px; letter-spacing: -0.025em; font-weight: 600; line-height: 1.5; }
.local-note p { font-size: 13px; color: var(--muted); max-width: 40rem; }

.install-section { display: grid; grid-template-columns: 1fr 1.6fr; gap: 72px; padding: 46px 42px; background: var(--surface); border-radius: 6px; box-shadow: 0 0 0 1px var(--rule); border-top: 3px solid var(--accent-bright); }
.install-intro p:not(.section-index) { margin: 22px 0; color: var(--muted); font-size: 13px; }
.install-intro img { margin-top: 32px; width: 80px; height: 80px; border-radius: 18px; outline: 1px solid #25292314; outline-offset: -1px; }
.install-instructions { min-width: 0; }
.install-option + .install-option { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--rule); }
.install-option h3 { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; font-size: 14px; font-weight: 650; }
.install-option h3 .index { font: 400 10px/1 var(--mono); }
.install-option p { margin-top: 12px; color: var(--muted); font-size: 12px; }
.cmd { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 15px; background: var(--ink); border-radius: 5px; color: var(--surface); font: 400 12px/1.6 var(--mono); }
.cmd code { flex: 1; min-width: 0; padding: 9px 0; background: transparent; color: inherit; overflow-wrap: anywhere; font-size: inherit; }
.prompt { flex: none; color: #f69f7f; align-self: start; padding-top: 9px; }
.copy { position: relative; flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 3px; color: var(--surface); background: #ffffff10; transition: background-color 140ms var(--ease), transform 140ms var(--ease); }
.copy:hover { background: #ffffff24; }
.copy svg { position: absolute; width: 17px; height: 17px; transition: opacity 200ms var(--ease), transform 200ms var(--ease), filter 200ms var(--ease); }
.copy .icon-done, .copy[data-copied] .icon-copy { opacity: 0; transform: scale(0.25); filter: blur(4px); }
.copy[data-copied] .icon-done { opacity: 1; transform: scale(1); filter: blur(0); color: #f69f7f; }
.copy-status:empty { display: none; }
.install-option .copy-status { color: var(--accent); }
.download-row { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.download-row > span { color: var(--muted); font: 400 10px/1.6 var(--mono); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 30px; min-height: 46px; padding: 10px 18px; border-radius: 4px; text-decoration: none; font-size: 13px; font-weight: 650; transition: background-color 140ms var(--ease), transform 140ms var(--ease); }
.btn-ink { background: var(--ink); color: var(--surface); }
.btn-ink:hover { background: #0f130e; color: white; }
.btn-ghost { box-shadow: inset 0 0 0 1px var(--rule); }
.btn-ghost:hover { background: #25292309; }
.install-fineprint { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--rule); }
.install-fineprint p { color: var(--muted); font-size: 11px; line-height: 1.8; }
.install-fineprint p + p { margin-top: 14px; }
.install-fineprint strong { color: var(--ink); font-weight: 650; }

.questions { display: grid; grid-template-columns: 1fr 1.6fr; gap: 72px; padding-block: 96px; }
.faq { min-width: 0; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; padding: 16px 0; font-size: 14px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--accent); font: 400 20px/1 var(--mono); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 30px 24px 0; color: var(--muted); font-size: 13px; }
.site-footer { padding-block: 28px 36px; border-top: 1px solid var(--rule); }
.site-footer .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 30px; }
.site-footer p { margin-top: 4px; color: var(--muted); font-size: 10px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 40px; font-size: 11px; text-decoration: none; }

/* The manual shares the same quiet, numbered structure as the light table. */
.guide-hero { padding-block: 64px 48px; border-bottom: 1px solid var(--ink); margin-bottom: 42px; }
.kicker { display: block; margin-bottom: 20px; color: var(--accent); font: 500 11px/1.4 var(--mono); letter-spacing: 0.07em; text-transform: uppercase; }
.guide-hero h1 { font-size: clamp(34px, 4.6vw, 58px); font-weight: 600; line-height: 1.12; letter-spacing: -0.05em; }
.guide-hero p { margin-top: 20px; max-width: 46rem; color: var(--muted); font-size: 15px; }
.guide { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; padding-bottom: 80px; }
.toc { position: sticky; align-self: start; top: 100px; max-height: calc(100svh - 120px); overflow-y: auto; font-size: 12px; }
.toc h2 { font: 500 10px/1.4 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 16px; }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: section; }
.toc li { counter-increment: section; }
.toc a { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 4px 8px; margin-right: 5px; border-radius: 3px; text-decoration: none; }
.toc a::before { content: counter(section, decimal-leading-zero); font: 400 10px/1 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.toc a:hover { background: #25292307; }
.toc a[aria-current="true"] { background: var(--accent-wash); color: var(--accent); }
.prose { min-width: 0; max-width: 780px; overflow-wrap: anywhere; }
.prose section { margin-bottom: 36px; padding-bottom: 36px; border-bottom: 1px solid var(--rule); }
.prose section:last-child { margin-bottom: 0; border-bottom: 0; }
.prose h2 { margin-bottom: 20px; font-size: 28px; }
.prose h3 { margin: 28px 0 12px; font-size: 16px; font-weight: 650; letter-spacing: -0.015em; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.85; }
.prose strong { color: var(--ink); font-weight: 650; }
.prose ol, .prose ul { padding-left: 1.3em; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--accent); }
.code { margin: 8px 0 20px; padding: 20px 22px; overflow-x: auto; background: var(--ink); color: var(--surface); border-radius: 5px; font: 400 13px/1.8 var(--mono); tab-size: 2; }
.code code { font-size: inherit; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 24px; font-size: 13px; }
.prose th, .prose td { padding: 12px 12px 12px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.prose td:first-child { white-space: nowrap; }
.callout { padding: 18px 20px; margin: 16px 0 20px; background: var(--accent-wash); border-left: 2px solid var(--accent-bright); }
.callout p:last-child { margin-bottom: 0; }
.error-page { padding-block: 12vh; }
.error-page .guide-hero { border: 0; }
.error-actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (min-width: 1600px) {
  .intro { padding-block: 52px 44px; }
}
@media (max-width: 1100px) {
  .brand-note { display: none; }
  .workbench { grid-template-columns: minmax(0, 1fr) 230px; }
  .preview-stage { padding-inline: 32px; }
  .render-label { display: none; }
  .contact-strip { grid-template-columns: 140px minmax(0, 1fr); gap: 14px; }
  .contact { gap: 10px; }
  .contact img { width: 82px; height: 58px; }
  .contact strong { font-size: 10px; }
  .contact-check { display: none; }
  .ledger-row { grid-template-columns: 28px 0.8fr 1.6fr 0.65fr; gap: 20px; }
  .local-note { grid-template-columns: 28px 0.8fr 2.25fr; gap: 20px; }
  .install-section { gap: 36px; padding: 36px 28px; }
  .questions { gap: 36px; }
  .guide { gap: 36px; grid-template-columns: 200px minmax(0, 1fr); }
}
@media (max-width: 800px) {
  .intro { align-items: start; padding-block: 34px 30px; }
  .intro-copy { max-width: 230px; font-size: 12px; }
  .intro-copy br { display: none; }
  .spec-line { line-height: 1.8; gap: 6px 8px; font-size: 9px; }
  .workbench { grid-template-columns: minmax(0, 1fr); }
  .preview-pane { border-right: 0; }
  .preview-stage { height: clamp(270px, 58vw, 420px); padding: 40px 32px; }
  .finish-rail { padding: 18px 20px; }
  .rail-heading { padding: 0 0 12px; }
  .rail-heading > .index { display: none; }
  .preset-controls { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .preset { flex-direction: column; align-items: start; gap: 8px; padding: 10px; min-width: 0; font-size: 11px; }
  .preset small, .selection-dot { display: none; }
  .swatch { width: 26px; height: 26px; }
  .finish-description { margin: 12px 0 0; }
  .rail-foot { display: none; }
  .contact-strip { display: block; padding: 16px 20px; }
  .contact-heading { margin-bottom: 12px; }
  .contact-heading p { display: none; }
  .contact { min-height: 76px; }
  .contact img { width: 80px; }
  .contact .tiny-label { font-size: 8px; }
  .table-note { flex-wrap: wrap; gap: 2px; font-size: 9px; }
  .table-note a { min-height: 40px; align-items: center; }
  .section-heading { display: block; padding-bottom: 28px; }
  .section-heading .section-index { margin-top: 0; margin-bottom: 20px; }
  .section-heading h2 { width: 100%; }
  .field-notes { padding-block: 56px; }
  .ledger-row { grid-template-columns: 22px minmax(0, 1fr); gap: 8px 18px; padding-block: 24px; }
  .ledger-row h3 { font-size: 18px; }
  .ledger-row h3 br { display: none; }
  .ledger-row > div { grid-column: 2; }
  .ledger-detail { display: none; }
  .local-note { grid-template-columns: 22px minmax(0, 1fr); gap: 12px 18px; }
  .local-note p { grid-column: 2; }
  .local-note h3 br { display: none; }
  .install-section { grid-template-columns: minmax(0, 1fr); gap: 30px; padding: 30px; }
  .install-intro { position: relative; padding-right: 85px; }
  .install-intro img { position: absolute; right: 0; top: 40px; margin: 0; width: 64px; height: 64px; border-radius: 15px; }
  .install-intro p:not(.section-index) { margin-bottom: 0; }
  .questions { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 64px; }
  .guide-hero { padding-block: 42px 32px; margin-bottom: 28px; }
  .guide { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .toc { position: static; max-height: none; overflow: visible; padding-bottom: 24px; border-bottom: 1px solid var(--rule); }
  .toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
  .toc a { font-size: 11px; }
}
@media (max-width: 520px) {
  .site-header .wrap { min-height: 64px; gap: 10px; }
  .brand { font-size: 25px; gap: 8px; }
  .brand img { width: 24px; height: 24px; border-radius: 6px; }
  .nav { gap: 2px; font-size: 11px; }
  .nav a { gap: 10px; padding-inline: 10px; }
  .nav .nav-cta { margin-left: 2px; }
  .nav .hide-sm { display: none; }
  .intro { flex-direction: column; gap: 18px; }
  .intro-copy { max-width: none; font-size: 13px; }
  .intro-copy br { display: inline; }
  .spec-line { margin-top: 12px; font-size: 9px; }
  .table-bar { padding-inline: 12px; }
  .table-bar h2 { font-size: 9px; gap: 8px; }
  .table-bar .index { display: none; }
  .view-switch button { padding-inline: 10px; font-size: 10px; }
  .preview-stage { height: clamp(210px, 64vw, 300px); padding: 34px 18px; }
  .sheet-label { left: 12px; font-size: 8px; top: 14px; }
  .sheet-mark { width: 9px; height: 9px; }
  .mark-start { left: 12px; bottom: 12px; }
  .mark-end { right: 12px; top: 14px; }
  .preview-caption { padding: 10px 12px; font-size: 8px; }
  .preview-caption-label { display: none; }
  .finish-rail { padding: 15px 12px; }
  .rail-heading h3 { font-size: 11px; }
  .preset-controls { gap: 3px; }
  .preset { font-size: 9px; padding: 7px 5px; gap: 9px; }
  .finish-description { font-size: 10px; }
  .contact-strip { padding: 12px; }
  .contact-choices { gap: 8px; }
  .contact { flex-direction: column; align-items: start; gap: 8px; padding: 7px; }
  .contact img { width: 100%; height: 64px; }
  .contact strong { font-size: 9px; line-height: 1.5; }
  .install-section { padding: 26px 20px; }
  .install-intro { padding-right: 0; }
  .install-intro img { display: none; }
  .install-intro .section-index { font-size: 9px; }
  .cmd { font-size: 10px; padding-left: 10px; gap: 6px; }
  .copy { width: 40px; height: 40px; }
  .download-row { gap: 14px; }
  .download-row > span { font-size: 9px; }
  .site-footer nav { gap: 4px 20px; }
  .prose table { font-size: 11px; }
  .prose th, .prose td { padding-right: 6px; }
  .code { font-size: 11px; padding: 16px; }
  .callout { padding: 14px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
  button:active, .btn:active, .nav-cta:active { transform: none; }
}
