/* dataphleet.com — engineering-record design system.
   Paper, ink, hairline rules. Colour carries meaning (pass / fail / link), not decoration. */

:root {
  --paper: #f5f3ee;
  --paper-2: #ece8df;
  --card: #fbfaf7;
  --ink: #15181c;
  --ink-2: #3f454c;
  --ink-3: #6a7077;
  --rule: #d9d3c5;
  --rule-2: #bdb4a2;
  --blue: #0f5e98;        /* brand blue, darkened for text on paper */
  --blue-mark: #1374b8;   /* brand blue for marks */
  --green: #4f7f14;       /* PASS */
  --green-mark: #8fc345;
  --red: #b23a1c;         /* FAIL / needs mitigation */
  --amber: #9a6400;       /* review */
  --grid: rgba(21, 24, 28, .05);
  --shadow: 0 1px 0 rgba(21, 24, 28, .04), 0 12px 32px -18px rgba(21, 24, 28, .25);
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1180px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #111315; --paper-2: #16191c; --card: #1a1d20;
    --ink: #ece8df; --ink-2: #c4bfb4; --ink-3: #8f8b83;
    --rule: #2b2f33; --rule-2: #3d4247;
    --blue: #74b3e4; --blue-mark: #3d93d1; --green: #a3d15c; --red: #f0805f; --amber: #e0a845;
    --grid: rgba(236, 232, 223, .045);
    --shadow: 0 1px 0 rgba(0,0,0,.3), 0 16px 40px -20px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #111315; --paper-2: #16191c; --card: #1a1d20;
  --ink: #ece8df; --ink-2: #c4bfb4; --ink-3: #8f8b83;
  --rule: #2b2f33; --rule-2: #3d4247;
  --blue: #74b3e4; --blue-mark: #3d93d1; --green: #a3d15c; --red: #f0805f; --amber: #e0a845;
  --grid: rgba(236, 232, 223, .045);
  --shadow: 0 1px 0 rgba(0,0,0,.3), 0 16px 40px -20px rgba(0,0,0,.7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--sans); font-feature-settings: "ss02";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; letter-spacing: -.012em; line-height: 1.12; margin: 0 0 .5em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4.1rem); letter-spacing: -.022em; }
h2 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem); }
h3 { font-size: 1.32rem; letter-spacing: -.005em; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { padding-left: 1.2em; margin: 0 0 1em; }
li { margin: .3em 0; }
code, .code, .mono { font-family: var(--mono); font-size: .88em; }
strong, b { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }
::selection { background: var(--blue-mark); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-mark); outline-offset: 2px; border-radius: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 200; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } body { font-size: 16px; } }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--rule); }
.head-row { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); font: 500 19px/1 var(--sans); letter-spacing: -.02em; }
.brand img { width: 40px; height: auto; }
.brand b { font-weight: 600; color: var(--green); margin-left: 1px; }
.brand span { color: var(--blue); }
.site-head nav { margin-left: auto; }
.nav-links { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; padding: 6px 0; border-bottom: 1.5px solid transparent; }
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current] { color: var(--ink); border-bottom-color: var(--ink); }
.menu-btn { display: none; margin-left: auto; width: 40px; height: 40px; border: 1px solid var(--rule-2); background: transparent; border-radius: 6px; position: relative; cursor: pointer; }
.menu-btn span:not(.sr) { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--ink); transition: transform .2s; }
.menu-btn span:nth-child(1) { top: 15px; } .menu-btn span:nth-child(2) { top: 23px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
.menu ul { list-style: none; margin: 0; padding: 8px 16px 18px; border-top: 1px solid var(--rule); }
.menu a { display: block; padding: 11px 0; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); font-size: 17px; }
.theme-btn { flex: none; width: 40px; height: 40px; margin: 0 -14px; display: inline-grid; place-items: center; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--ink-2); cursor: pointer; }
.theme-btn:hover { color: var(--ink); border-color: var(--rule-2); }
.theme-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; } :root[data-theme="dark"] .theme-btn .i-moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-btn .i-sun { display: block; } :root:not([data-theme="light"]) .theme-btn .i-moon { display: none; } }
@media (max-width: 1060px) { .site-head nav, .head-cta { display: none; } .menu-btn { display: block; margin-left: 0; } .theme-btn { margin: 0 -14px 0 auto; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: var(--paper); text-decoration: none; font: 500 15.5px/1 var(--sans); padding: 15px 22px; border-radius: 4px; border: 1px solid var(--ink); cursor: pointer; transition: background .15s, color .15s; white-space: nowrap; }
.btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn::after { content: "→"; font-family: var(--mono); transition: transform .15s; }
.btn:hover::after { transform: translateX(3px); }
.btn-sm { padding: 10px 15px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule-2); }
.btn-ghost:hover { background: var(--card); color: var(--ink); border-color: var(--ink); }
.btn-ghost::after { content: none; }
.btn:disabled { opacity: .6; cursor: wait; }

/* ---------- sections ---------- */
.sec { padding: 88px 0; border-top: 1px solid var(--rule); }
.sec:first-of-type { border-top: 0; }
.sec-label { font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 28px; display: flex; gap: 14px; align-items: center; }
.sec-label::after { content: ""; flex: 1; height: 1px; background: var(--rule); max-width: 120px; }
.band { background: var(--paper-2); }
.lede { font-size: 1.2rem; line-height: 1.55; color: var(--ink-2); max-width: 46em; }
.narrow { max-width: 760px; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.cols-12 { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .cols-2, .cols-12 { grid-template-columns: 1fr; gap: 36px; } .sec { padding: 64px 0; } }
.muted { color: var(--ink-3); }
.small { font-size: .9rem; }
.crumbs { max-width: var(--wrap); margin: 0 auto; padding: 22px 28px 0; font: 13px/1.4 var(--mono); color: var(--ink-3); }
.crumbs a { color: var(--ink-3); text-decoration: none; } .crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs .sep { margin: 0 6px; opacity: .6; }
@media (max-width: 640px) { .crumbs { padding: 16px 16px 0; } }

/* ---------- hero ---------- */
.hero { padding: 64px 0 80px; border-top: 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 56px; align-items: center; }
.hero h1 { margin-bottom: .42em; }
.hero h1 em { font-style: italic; color: var(--blue); }
.hero .lede { margin-bottom: 1.6em; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 26px; font-size: 14px; color: var(--ink-3); display: flex; gap: 18px; flex-wrap: wrap; }
.hero-note span::before { content: "■"; color: var(--green-mark); margin-right: 7px; font-size: 9px; vertical-align: 2px; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 44px; } .hero { padding-top: 40px; } }
.page-head { padding: 40px 0 56px; border-top: 0; }
.page-head h1 { max-width: 15em; }
.eyebrow { font: 500 13px/1 var(--mono); color: var(--blue); margin: 0 0 18px; letter-spacing: .02em; }

/* ---------- the check record (signature element) ---------- */
.record { background: var(--card); border: 1px solid var(--rule-2); border-radius: 6px; box-shadow: var(--shadow); font: 13px/1.5 var(--mono); color: var(--ink-2); overflow: hidden; }
.record-head { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--rule); background: var(--paper-2); font-size: 12px; color: var(--ink-3); }
.record-head b { color: var(--ink); font-weight: 500; }
.record-body { padding: 16px; }
.record svg { width: 100%; height: auto; display: block; margin: 2px 0 14px; }
.record dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 16px; margin: 0; }
.record dt { color: var(--ink-3); }
.record dd { margin: 0; color: var(--ink); text-align: right; }
.record .tests { list-style: none; padding: 0; margin: 12px 0 0; border-top: 1px dashed var(--rule-2); padding-top: 10px; }
.record .tests li { display: flex; justify-content: space-between; gap: 12px; margin: 2px 0; }
.ok { color: var(--green); } .bad { color: var(--red); } .warn { color: var(--amber); }
.verdict { margin-top: 14px; padding: 12px 14px; border-left: 3px solid var(--red); background: color-mix(in srgb, var(--red) 7%, transparent); color: var(--ink); font-family: var(--sans); font-size: 14.5px; line-height: 1.45; }
.verdict b { color: var(--red); font-family: var(--mono); font-size: 12px; letter-spacing: .06em; display: block; margin-bottom: 3px; }
.verdict.pass { border-left-color: var(--green); background: color-mix(in srgb, var(--green) 8%, transparent); }
.verdict.pass b { color: var(--green); }
.record-foot { display: flex; justify-content: space-between; padding: 10px 16px; border-top: 1px solid var(--rule); font-size: 11.5px; color: var(--ink-3); }
.chart-axis { stroke: var(--rule-2); stroke-width: 1; }
.chart-grid { stroke: var(--grid); stroke-width: 1; }
.chart-trace { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.chart-thresh { stroke: var(--red); stroke-width: 1; stroke-dasharray: 4 4; }
.chart-window { fill: color-mix(in srgb, var(--red) 9%, transparent); }
.chart-label { fill: var(--ink-3); font: 10.5px var(--mono); }
.chart-label-r { fill: var(--red); font: 10.5px var(--mono); }
.chart-ghi { fill: none; stroke: var(--amber); stroke-width: 1.4; stroke-dasharray: 2 3; }
@media (prefers-reduced-motion: no-preference) {
  .record .draw { stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 2.2s .3s ease-out forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 6px; background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--rule); }
thead th { font: 500 12px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); background: var(--paper-2); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
td .code, th .code { white-space: nowrap; }
.std-table td:first-child { white-space: nowrap; }
.std-table a { font-family: var(--mono); font-size: 14px; text-decoration: none; font-weight: 500; }
.std-table a:hover { text-decoration: underline; }
.facts { width: 100%; border: 1px solid var(--rule); border-radius: 6px; background: var(--card); border-collapse: separate; border-spacing: 0; display: table; }
.facts caption { text-align: left; font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); padding: 0 0 10px; }
.facts th { width: 34%; font-weight: 500; color: var(--ink-3); font-size: 14px; }
.facts td { font-size: 15px; }
.tag { display: inline-block; font: 500 11.5px/1 var(--mono); padding: 4px 7px; border-radius: 3px; border: 1px solid currentColor; white-space: nowrap; }
.tag.live { color: var(--green); } .tag.soon { color: var(--amber); } .tag.ibr { color: var(--blue); }

/* ---------- comparison ---------- */
.versus { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--rule-2); border-radius: 6px; overflow: hidden; background: var(--card); }
.versus > div { padding: 28px; }
.versus > div + div { border-left: 1px solid var(--rule-2); }
.versus h3 { font-family: var(--sans); font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); margin-bottom: 18px; }
.versus .screen { font: 13.5px/1.55 var(--mono); background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; padding: 16px; color: var(--ink-2); }
.versus .screen .t { color: var(--ink); }
.versus p.after { margin: 16px 0 0; font-size: 15px; color: var(--ink-2); }
@media (max-width: 780px) { .versus { grid-template-columns: 1fr; } .versus > div + div { border-left: 0; border-top: 1px solid var(--rule-2); } }

/* ---------- steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.steps li { counter-increment: s; padding: 22px 22px 0 0; margin: 0; }
.steps li::before { content: counter(s, decimal-leading-zero); font: 500 13px/1 var(--mono); color: var(--blue); display: block; margin-bottom: 16px; }
.steps h3 { font-size: 1.25rem; }
.steps p { color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; gap: 0 24px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- outputs / lists ---------- */
.outputs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; margin-top: 28px; }
.outputs div { background: var(--card); padding: 20px; }
.outputs b { font: 500 13px/1 var(--mono); display: block; margin-bottom: 8px; color: var(--ink); }
.outputs span { font-size: 14.5px; color: var(--ink-2); }
@media (max-width: 800px) { .outputs { grid-template-columns: 1fr 1fr; } }
.ticks { list-style: none; padding: 0; }
.ticks li { padding-left: 26px; position: relative; margin: .55em 0; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 11px; height: 6px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.dashes { list-style: none; padding: 0; }
.dashes li { padding-left: 22px; position: relative; margin: .55em 0; color: var(--ink-2); }
.dashes li::before { content: "—"; position: absolute; left: 0; color: var(--ink-3); }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.kv > div { padding: 22px 24px 0 0; }
.kv b { font: 400 2.6rem/1 var(--serif); letter-spacing: -.02em; display: block; margin-bottom: 10px; }
.kv span { color: var(--ink-2); font-size: 15px; }
@media (max-width: 760px) { .kv { grid-template-columns: 1fr; } .kv > div { padding: 18px 0; border-bottom: 1px solid var(--rule); } }

/* ---------- figures ---------- */
.shot { margin: 0; }
.shot-frame { border: 1px solid var(--rule-2); border-radius: 6px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.shot figcaption { font-size: 14px; color: var(--ink-3); margin-top: 12px; line-height: 1.5; }
.shot figcaption b { font: 500 12.5px var(--mono); color: var(--ink); margin-right: 4px; }

/* ---------- requirement blocks (standards pages) ---------- */
.req { display: grid; grid-template-columns: 88px 1fr; gap: 20px; padding: 22px 0; border-top: 1px solid var(--rule); }
.req:last-child { border-bottom: 1px solid var(--rule); }
.req-id { font: 500 15px/1.4 var(--mono); color: var(--blue); }
.req h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; margin-bottom: .35em; letter-spacing: 0; }
.req p { margin: 0; color: var(--ink-2); }
.req p + p { margin-top: .6em; }
@media (max-width: 560px) { .req { grid-template-columns: 1fr; gap: 6px; } }
.answer { border-left: 3px solid var(--blue-mark); padding: 4px 0 4px 20px; margin: 0 0 32px; font-size: 1.13rem; line-height: 1.55; color: var(--ink); max-width: 44em; }
.answer p:last-child { margin: 0; }
.std-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 56px; align-items: start; }
@media (max-width: 900px) { .std-head { grid-template-columns: 1fr; gap: 28px; } }
.std-code { font: 500 14px/1 var(--mono); color: var(--blue); margin-bottom: 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.toc { position: sticky; top: 92px; font-size: 14.5px; }
.toc h2 { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 12px; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--rule); }
.toc li { margin: 0; }
.toc a { display: block; padding: 5px 0 5px 14px; color: var(--ink-2); text-decoration: none; margin-left: -1px; border-left: 1px solid transparent; }
.toc a:hover { color: var(--ink); border-left-color: var(--ink); }
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; }
.doc-main > section { padding: 0 0 56px; }
.doc-main > section > h2 { margin-bottom: .6em; }
@media (max-width: 960px) { .doc { grid-template-columns: minmax(0, 1fr); } .toc { display: none; } }
.prose { max-width: 720px; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; font-size: 1.3rem; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); }
.prose blockquote { margin: 1.6em 0; padding: 0 0 0 22px; border-left: 2px solid var(--ink); font: italic 400 1.3rem/1.45 var(--serif); color: var(--ink); }
.prose blockquote cite { display: block; font: 14px var(--sans); font-style: normal; color: var(--ink-3); margin-top: 8px; }
.prose blockquote cite::before { content: "— "; }
.prose blockquote footer { font: 14px var(--sans); font-style: normal; color: var(--ink-3); margin-top: 8px; }
.callout { background: var(--card); border: 1px solid var(--rule); border-radius: 6px; padding: 20px 22px; margin: 1.6em 0; }
.callout > :last-child { margin-bottom: 0; }
.callout h3, .callout h4 { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin-bottom: .4em; }
.sources { border-top: 1px solid var(--rule); padding-top: 22px; margin-top: 8px; font-size: 14px; }
.sources h2 { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 12px; }
.sources ul { padding-left: 1.1em; } .sources li { color: var(--ink-3); }
.reviewed { color: var(--ink-3); font-size: 13.5px; margin-top: 12px; }

/* ---------- faq ---------- */
.faq h2 { margin-bottom: .8em; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-family: var(--sans); font-size: 1.04rem; font-weight: 600; margin: 0; letter-spacing: 0; line-height: 1.4; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font: 300 24px/1 var(--sans); color: var(--ink-3); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 0 20px; color: var(--ink-2); max-width: 46em; }
.faq .ans p:last-child { margin: 0; }

/* ---------- cards / links lists ---------- */
.std-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.std-grid a { background: var(--card); padding: 22px 22px 24px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 8px; min-height: 170px; transition: background .15s; }
.std-grid a:hover { background: var(--paper); }
.std-grid .code { color: var(--blue); font-size: 14px; font-weight: 500; }
.std-grid h3 { font-size: 1.2rem; margin: 0; }
.std-grid p { font-size: 14.5px; color: var(--ink-2); margin: 0; }
.std-grid .more { margin-top: auto; font: 13px var(--mono); color: var(--ink-3); }
@media (max-width: 900px) { .std-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .std-grid { grid-template-columns: 1fr; } }
.list-links { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.list-links li { margin: 0; border-bottom: 1px solid var(--rule); }
.list-links a { display: grid; grid-template-columns: 120px 1fr auto; gap: 20px; padding: 18px 0; text-decoration: none; color: var(--ink); align-items: baseline; }
.list-links a:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.list-links time, .list-links .k { font: 13px var(--mono); color: var(--ink-3); }
.list-links h3 { font-size: 1.22rem; margin: 0; }
.list-links p { margin: 4px 0 0; font-size: 15px; color: var(--ink-2); }
@media (max-width: 640px) { .list-links a { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- calendar ---------- */
.cal { border-top: 1px solid var(--ink); }
.cal-row { display: grid; grid-template-columns: 170px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.cal-row time { font: 500 15px/1.4 var(--mono); }
.cal-row.past time { color: var(--ink-3); }
.cal-row.next { background: linear-gradient(90deg, color-mix(in srgb, var(--blue-mark) 8%, transparent), transparent 70%); }
.cal-row ul { list-style: none; padding: 0; margin: 0; }
.cal-row li { margin: 0 0 8px; }
.cal-row li:last-child { margin: 0; }
.cal-row .code { font-weight: 500; color: var(--ink); }
.cal-row .what { color: var(--ink-2); }
@media (max-width: 640px) { .cal-row { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- people ---------- */
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.person img { aspect-ratio: 4/5; object-fit: cover; width: 100%; border-radius: 4px; filter: grayscale(1) contrast(1.05); margin-bottom: 14px; background: var(--paper-2); }
.person h3 { font-size: 1.25rem; margin-bottom: 2px; }
.person .role { font: 13px var(--mono); color: var(--blue); margin-bottom: 10px; }
.person p { font-size: 15px; color: var(--ink-2); }
@media (max-width: 960px) { .people { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .people { grid-template-columns: 1fr; } }

/* ---------- quote ---------- */
.pull { font: italic 400 clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem)/1.3 var(--serif); letter-spacing: -.01em; margin: 0; max-width: 30em; }
.pull-by { margin-top: 18px; font-size: 15px; color: var(--ink-3); }

/* ---------- CTA band & footer ---------- */
.band-cta { background: var(--ink); color: var(--paper); border-top: 0; padding: 64px 0; }
.band-cta h2 { color: var(--paper); margin-bottom: .3em; }
.band-cta p { color: color-mix(in srgb, var(--paper) 72%, transparent); margin: 0; max-width: 36em; }
.band-cta .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.band-cta .btn:hover { background: var(--green-mark); border-color: var(--green-mark); color: #15181c; }
.cta-row { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.site-foot { border-top: 1px solid var(--rule); padding: 0 0 36px; font-size: 14.5px; }
.foot-cta { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; padding: 56px 0; border-bottom: 1px solid var(--rule); }
.foot-cta-h { font: 400 clamp(1.4rem, 1.1rem + 1vw, 1.9rem)/1.25 var(--serif); margin: 0; letter-spacing: -.01em; }
.foot-grid { display: grid; grid-template-columns: 1.1fr 1.4fr 1fr; gap: 48px; padding: 48px 0 40px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0 0 28px; }
.foot-grid li { margin: 0 0 7px; }
.foot-grid a { color: var(--ink-2); text-decoration: none; }
.foot-grid a:hover { color: var(--ink); text-decoration: underline; }
.foot-std .code { color: var(--ink); display: inline-block; min-width: 98px; font-size: 13px; }
.foot-h { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin: 0 0 16px; }
.foot-about { color: var(--ink-2); margin: 18px 0 14px; max-width: 26em; }
.foot-base { display: flex; gap: 24px; justify-content: space-between; flex-wrap: wrap; border-top: 1px solid var(--rule); padding-top: 22px; color: var(--ink-3); font-size: 13px; align-items: center; }
.theme-switch { display: inline-flex; border: 1px solid var(--rule-2); border-radius: 4px; overflow: hidden; }
.theme-switch button { background: transparent; border: 0; color: var(--ink-3); font: 12px var(--mono); padding: 6px 10px; cursor: pointer; }
.theme-switch button + button { border-left: 1px solid var(--rule-2); }
.theme-switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- forms ---------- */
.form { background: var(--card); border: 1px solid var(--rule-2); border-radius: 6px; padding: 30px; box-shadow: var(--shadow); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: block; font-size: 14px; font-weight: 500; margin: 0 0 6px; }
.form .field { margin-bottom: 18px; }
.form input[type=text], .form input[type=email], .form select, .form textarea { width: 100%; font: 16px var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--rule-2); border-radius: 4px; padding: 11px 12px; }
.form textarea { min-height: 110px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--blue-mark); outline-offset: 0; border-color: transparent; }
.checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 14px; font-size: 14.5px; }
.checks label { font-weight: 400; display: flex; gap: 8px; align-items: center; margin: 0; }
.checks input { accent-color: var(--blue-mark); }
.hp { position: absolute; left: -9999px; }
.form-msg { font-size: 14.5px; margin-top: 12px; color: var(--red); }
.form-done { text-align: left; }
.form-done h2 { margin-bottom: .3em; }
@media (max-width: 560px) { .form { padding: 20px; } .form .row, .checks { grid-template-columns: 1fr; } }

/* ---------- calculator ---------- */
.calc { background: var(--card); border: 1px solid var(--rule-2); border-radius: 6px; padding: 28px; }
.calc-top { display: flex; gap: 28px; flex-wrap: wrap; align-items: end; margin-bottom: 24px; }
.calc-top label { font-size: 14px; font-weight: 500; display: block; margin-bottom: 8px; }
.calc input[type=range] { width: 240px; accent-color: var(--blue-mark); }
.calc-out { display: flex; gap: 40px; flex-wrap: wrap; }
.calc-out b { font: 400 2.8rem/1 var(--serif); display: block; letter-spacing: -.02em; }
.calc-out span { font-size: 14px; color: var(--ink-3); }
.calc-rows { margin-top: 24px; border-top: 1px solid var(--rule); }
.calc-row { display: grid; grid-template-columns: 24px 120px 1fr 90px; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 14.5px; }
.calc-row .bar { height: 8px; background: var(--paper-2); border-radius: 2px; overflow: hidden; }
.calc-row .bar i { display: block; height: 100%; background: var(--ink-2); }
.calc-row .h { font-family: var(--mono); font-size: 13px; text-align: right; }
.calc-row input { accent-color: var(--blue-mark); }
.calc-row .nm { font-family: var(--mono); font-size: 13.5px; }
@media (max-width: 560px) { .calc-row { grid-template-columns: 22px 1fr 70px; } .calc-row .bar { display: none; } }

/* ---------- article ---------- */
.article-head { padding: 36px 0 30px; border-top: 0; }
.article-head h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.2rem); max-width: 18em; }
.byline { font: 13.5px var(--mono); color: var(--ink-3); display: flex; gap: 16px; flex-wrap: wrap; }
.byline .kind { color: var(--blue); }
.article-body { padding: 8px 0 72px; border-top: 0; }
.updated-note { font-size: 14px; color: var(--ink-3); border-left: 2px solid var(--amber); padding-left: 14px; margin-bottom: 28px; }

/* ---------- utilities ---------- */
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; } .mt2 { margin-top: 2rem; } .mt3 { margin-top: 3rem; }
.center { text-align: center; }
.split { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.split h2 { margin: 0; }
.note { font-size: 14px; color: var(--ink-3); }
.anchor-list { columns: 2; column-gap: 40px; list-style: none; padding: 0; }
.anchor-list li { break-inside: avoid; }
dl.gloss { margin: 0; }
dl.gloss dt { font: 600 1.05rem var(--sans); margin-top: 26px; scroll-margin-top: 90px; }
dl.gloss dt .code { color: var(--blue); }
dl.gloss dd { margin: 6px 0 0; color: var(--ink-2); max-width: 46em; }
.letters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.letters a { font: 13px var(--mono); padding: 5px 9px; border: 1px solid var(--rule-2); border-radius: 3px; text-decoration: none; color: var(--ink-2); }
@media print { .site-head, .site-foot, .band-cta, .toc { display: none; } body { background: #fff; } }

/* ---------- plant demo (replay of the RE+ 2026 booth) ---------- */
.plant-demo { --pd-flow: var(--blue-mark); --pd-gold: #e7b21f; }
.pd-intro { max-width: 760px; margin-bottom: 22px; }
.pd-intro p { color: var(--ink-2); }
.pd-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .pd-grid { grid-template-columns: minmax(0, 1fr); } }
.pd-plant { margin: 0; background: var(--card); border: 1px solid var(--rule-2); border-radius: 6px; box-shadow: var(--shadow); overflow: hidden; font: 13px/1.5 var(--mono); }
.pd-state { color: var(--ink-3); }
.pd-state.bad { color: var(--red); }
.pd-svg { display: block; width: 100%; height: auto; padding: 8px 6px 0; }
.pd-svg text { font-family: var(--mono); }
.pd-lbl { fill: var(--ink-3); font-size: 10px; letter-spacing: .04em; }
.pd-bus { stroke: var(--ink-2); stroke-width: 4; stroke-linecap: round; }
.pd-wire { fill: none; stroke: var(--ink-2); stroke-width: 2; }
.pd-dead, .pd-dead .pd-wire, .pd-dead .pd-solid, .pd-dead .pd-ink { stroke: var(--rule-2); }
.pd-svg .pd-dead { transition: stroke .6s; }
.pd-ink { fill: none; stroke: var(--ink-2); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.pd-thin { stroke-width: 1.3; }
.pd-solid { fill: var(--paper-2); stroke: var(--ink-2); stroke-width: 1.4; }
.pd-dot { fill: var(--ink-2); }
.pd-panel { fill: color-mix(in srgb, var(--blue-mark) 22%, var(--paper-2)); stroke: var(--ink-3); stroke-width: 1; }
.pd-brk { fill: var(--ink); stroke: var(--ink); stroke-width: 2; transition: fill .2s; }
.pd-brk.open { fill: var(--card); stroke: var(--red); }
.pd-brk-txt { fill: var(--ink); font-size: 10.5px; font-weight: 600; }
.pd-brk-txt.bad { fill: var(--red); }
.pd-timer { fill: var(--red); font-size: 10px; }
.pd-burst { fill: none; stroke: var(--red); stroke-width: 2; opacity: 0; }
.pd-burst.go { animation: pd-burst 1s ease-out 2; }
@keyframes pd-burst { from { r: 14; opacity: .9; } to { r: 60; opacity: 0; } }
.pd-flow { fill: none; stroke: var(--pd-flow); stroke-width: 2; stroke-dasharray: 4 10; stroke-linecap: round; opacity: 0; transition: opacity .5s; }
.plant-demo.flowing .pd-flow { opacity: 1; animation: pd-flow 1.1s linear infinite; }
@keyframes pd-flow { to { stroke-dashoffset: 28; } }
.pd-wave path { fill: none; stroke: var(--ink-3); stroke-width: 1.6; opacity: 0; transition: opacity .6s; }
.plant-demo.waving .pd-wave path { opacity: 1; }
.pd-wave.bad path { stroke: var(--red); }

/* causes */
.pd-cause { display: none; }
.plant-demo[data-cause="uf"] .pd-cause[data-k="uf"], .plant-demo[data-cause="of"] .pd-cause[data-k="of"],
.plant-demo[data-cause="uv"] .pd-cause[data-k="uv"], .plant-demo[data-cause="ov"] .pd-cause[data-k="ov"] { display: inline; }
.pd-cause-lbl { fill: var(--ink); font-size: 10.5px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.pd-cause-sub { fill: var(--red); font-size: 10px; font-weight: 600; letter-spacing: .06em; opacity: 0; }
.pd-rotor { transform-box: fill-box; transform-origin: center; }
.pd-steam { fill: var(--ink-3); opacity: 0; transform-box: fill-box; transform-origin: center; }
.pd-win { fill: var(--pd-gold); }
.pd-bolt { fill: var(--pd-gold); opacity: 0; }
.pd-spark { fill: none; stroke: var(--pd-gold); stroke-width: 2; opacity: 0; }
.pd-blade { transform-box: view-box; transform-origin: 0 0; transform: rotate(-35deg); }
.pd-plate { stroke: var(--ink-2); stroke-width: 3; stroke-linecap: round; }
.pd-cloud { opacity: 0; transition: opacity 1s; }
.plant-demo[data-cause="storm"] .pd-cloud { opacity: 1; }
.pd-puff { fill: color-mix(in srgb, var(--ink-3) 75%, var(--paper)); }
.pd-puff-back { fill: color-mix(in srgb, var(--ink-3) 95%, var(--ink)); }
.pd-rain line { stroke: var(--blue-mark); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 6 10; }

/* gauge */
.pd-arc { fill: none; stroke: var(--rule); stroke-width: 7; }
.pd-zone { fill: none; stroke: var(--red); stroke-width: 7; opacity: .45; }
.pd-needle { stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; transform-box: view-box; transform-origin: 215px 214px; }
.pd-hub { fill: var(--ink); }

/* readouts */
.pd-read { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--rule); }
.pd-read div { padding: 10px 14px; border-left: 1px solid var(--rule); }
.pd-read div:first-child { border-left: 0; }
.pd-read dt { color: var(--ink-3); font-size: 11px; }
.pd-read dd { margin: 0; color: var(--ink-3); font-size: 12px; }
.pd-read b { color: var(--ink); font-size: 18px; font-weight: 500; font-variant-numeric: tabular-nums; }
.pd-read b.bad { color: var(--red); }
@media (max-width: 560px) { .pd-read { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pd-read div:nth-child(3) { border-left: 0; } .pd-read div:nth-child(n+3) { border-top: 1px solid var(--rule); } }

/* buttons: a nod to the SEL-710's pushbuttons */
.pd-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pd-btn { display: flex; align-items: center; gap: 10px; padding: 8px 10px; text-align: left; cursor: pointer;
          background: var(--card); border: 1px solid var(--rule-2); border-radius: 6px; color: var(--ink); font: inherit; }
.pd-btn:last-child { grid-column: 1 / -1; }
.pd-btn:hover { border-color: var(--ink-3); }
.pd-btn[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pd-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.pd-cap { flex: none; width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #3a4870, #141a29); border: 2px solid var(--rule-2); }
.pd-btn:active .pd-cap { transform: translateY(1px); }
.pd-btn span { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.pd-btn b { font: 600 13px var(--mono); }
.pd-btn small { font-size: 12.5px; color: var(--ink-3); }
.pd-steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin: 14px 0; padding: 0; font: 11px var(--mono); }
.pd-steps li { text-align: center; padding: 5px 2px; border-radius: 4px; background: var(--paper-2); color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-steps li.now { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.pd-steps li.done { color: var(--ink); background: color-mix(in srgb, var(--ink) 9%, var(--paper-2)); }
.pd-record .tests li span[data-t] { transition: opacity .3s; }
.pd-record .tests li span.pending { opacity: 0; }
.pd-verdict { transition: opacity .4s; }
.pd-verdict.pending { opacity: 0; }
.pd-file { word-break: break-all; }
.pd-record { margin: 0; }
.pd-timer.calm { fill: var(--ink-3); }

/* ---------- comparison pages ---------- */
.cmp-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.cmp-cols h3 { font-size: 1.25rem; }
.cmp-cols ul { margin: 0; padding-left: 1.1em; color: var(--ink-2); }
.cmp-cols li { margin: 6px 0; }
@media (max-width: 760px) { .cmp-cols { grid-template-columns: minmax(0, 1fr); } }
table.cmp td:first-child { color: var(--ink-3); font-family: var(--mono); font-size: 13px; white-space: nowrap; }
@media (max-width: 760px) { table.cmp td:first-child { white-space: normal; } }

/* Buyer paths and evidence inspection: the engineering record continues. */
.trust-rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 22px; padding-bottom: 22px; border-top: 1px solid var(--rule-2); gap: 24px; }
.trust-rail p { margin: 0; font-size: 14px; color: var(--ink-2); }
.trust-rail b { display: block; color: var(--ink); }
.path-intro { max-width: 31em; color: var(--ink-2); margin-bottom: 0; }
.work-paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule-2); border-left: 1px solid var(--rule-2); margin-top: 32px; }
.work-path { display: flex; flex-direction: column; padding: 30px; color: var(--ink); text-decoration: none; border-right: 1px solid var(--rule-2); border-bottom: 1px solid var(--rule-2); background: var(--card); transition: background .15s; }
.work-path:hover { background: var(--paper-2); }
.work-path:hover h3 { color: var(--blue); }
.path-code { font: 11px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-bottom: 22px; }
.work-path h3 { font-size: 1.8rem; }
.work-path p { color: var(--ink-2); max-width: 33em; }
.path-meta { margin-top: auto; padding-top: 18px; font: 12px/1.6 var(--mono); color: var(--blue); display: flex; justify-content: space-between; gap: 10px; }
.record-evidence { border-top: 1px solid var(--rule); font: 13px/1.6 var(--sans); }
.record-evidence summary { padding: 13px 16px; color: var(--blue); cursor: pointer; }
.record-evidence > div { padding: 0 16px 16px; }
.record-evidence p { margin: 0 0 10px; }
.coverage-detail { margin-top: 28px; }
.coverage-detail > summary { padding: 22px; border: 1px solid var(--rule-2); background: var(--card); cursor: pointer; font-weight: 600; }
.coverage-detail > summary span { display: block; margin: 6px 0 0 20px; color: var(--ink-3); font: 13px/1.5 var(--mono); }
.coverage-detail[open] > summary { border-bottom: 0; }
.coverage-detail .tbl-wrap { border-radius: 0; }
.evaluation-list ol { list-style: none; counter-reset: evaluation; margin: 0 0 22px; padding: 0; }
.evaluation-list li { counter-increment: evaluation; position: relative; padding: 16px 0 16px 42px; margin: 0; border-top: 1px solid var(--rule-2); }
.evaluation-list li::before { content: '0' counter(evaluation); position: absolute; left: 0; top: 19px; color: var(--blue); font: 12px var(--mono); }
.evaluation-list b, .evaluation-list span { display: block; }
.evaluation-list span { color: var(--ink-2); font-size: 15px; margin-top: 4px; }
.record dd { overflow-wrap: anywhere; min-width: 0; }
[hidden] { display: none !important; }
@media (max-width: 640px) {
 .trust-rail { grid-template-columns: 1fr; gap: 12px; }
 .trust-rail b { display: inline; }
 .work-paths { grid-template-columns: minmax(0, 1fr); }
 .work-path { padding: 24px; }
 .path-code { margin-bottom: 14px; }
 .record-head, .record-foot { flex-wrap: wrap; }
 .hero-ctas .btn { padding: 14px 16px; }
}
@media (max-width: 640px) {
 .head-row { gap: 14px; }
 .menu-btn { flex: none; }
 .brand { font-size: 18px; }
}

/* The company name in running text: same font as its surroundings, always lowercase,
   never split across lines (see brand_wrap in _build/dpsite.py). Not .brand, which is the header logo. */
.dp-name { font: inherit; letter-spacing: inherit; white-space: nowrap; text-transform: none; }
