/* Centrob site: the "Ledger" look. One column, mono for anything a ledger would
   print (prices, labels, tables), sans for prose. Dark is the default; the light
   theme follows the visitor's OS setting. Fonts are served from /fonts only. */

@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/IBMPlexSans-Regular-Latin1.woff2") format("woff2");
  unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/IBMPlexSans-Medium-Latin1.woff2") format("woff2");
  unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/IBMPlexSans-SemiBold-Latin1.woff2") format("woff2");
  unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/JetBrainsMono-Regular.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/JetBrainsMono-Medium.woff2") format("woff2"); }

:root {
  color-scheme: dark light;
  --bg: #0e1116; --panel: #12161c; --fg: #e6e8eb; --muted: #aab2bd; --faint: #8b94a1;
  --rule: #2a3039; --rule-soft: #1f242c; --accent: #7fd1ae; --on-accent: #0e1116;
  --warn: #f2a65a; --crit: #ff8a80; --banner: #2a2414; --banner-fg: #f2d58a;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f6f7f8; --panel: #ffffff; --fg: #14181e; --muted: #4a5360; --faint: #5f6875;
    --rule: #d5dae0; --rule-soft: #e6e9ed; --accent: #1f7a57; --on-accent: #ffffff;
    --warn: #9a5410; --crit: #b3261e; --banner: #fff4d6; --banner-fg: #5c4300;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 18px; line-height: 1.6; }
a { color: var(--fg); text-underline-offset: 3px; overflow-wrap: anywhere; }
a:hover { color: var(--accent); }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.table-box:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.mono, code { font-family: var(--mono); }
code { font-size: 0.85em; overflow-wrap: anywhere; }
h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(32px, 5.2vw, 58px); line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; max-width: 860px; }
h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.2; font-weight: 600; }
h3 { font-size: 20px; line-height: 1.3; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
strong { font-weight: 600; }

.skip { position: absolute; left: 16px; top: -100px; background: var(--accent); color: var(--on-accent); padding: 8px 14px; font-weight: 600; z-index: 10; }
.skip:focus { top: 12px; color: var(--on-accent); }

.wrap { max-width: 1040px; margin: 0 auto; padding: 32px max(16px, env(safe-area-inset-right, 0px)) 96px max(16px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 88px; }
main { display: flex; flex-direction: column; gap: 88px; }

.lede { font-size: 20px; color: var(--muted); max-width: 680px; }
.muted { color: var(--muted); }
.small { font-size: 15px; color: var(--faint); }
.prose { max-width: 680px; display: flex; flex-direction: column; gap: 16px; }

header.top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; font-family: var(--mono); font-size: 14px; }
header.top .brand { font-weight: 500; text-decoration: none; color: var(--fg); }
header.top .dot { color: var(--accent); }
nav.sections { display: flex; flex-wrap: wrap; gap: 4px 20px; font-family: var(--mono); font-size: 14px; }
nav.sections a { color: var(--muted); text-decoration: none; padding-block: 6px; }
nav.sections a:hover { color: var(--accent); text-decoration: underline; }

.hero { display: flex; flex-direction: column; gap: 28px; }
.hero .eyebrow { display: block; margin-bottom: 16px; font-family: var(--mono); font-size: 15px; font-weight: 500; line-height: 1.6; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none; border-radius: 4px; border: 1px solid var(--accent); }
.btn:hover { color: var(--on-accent); filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--rule); font-weight: 500; }
.btn.ghost:hover { border-color: var(--accent); color: var(--fg); filter: none; }

.built { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding-block: 24px; display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px 32px; }
.label, .area-head .code { font-family: var(--mono); font-size: 13px; font-weight: 400; line-height: 1.6; color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; }
.also > .label { margin-bottom: 8px; }
.built .label { padding-top: 3px; margin: 0; font-weight: 400; }
.built ul { list-style: none; padding: 0; gap: 8px; font-size: 16px; }
.built li::before { content: "+ "; font-family: var(--mono); color: var(--accent); }

.area { display: flex; flex-direction: column; gap: 32px; scroll-margin-top: 24px; }
.area-head { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 12px 32px; align-items: baseline; }
.area-body { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 32px; }
.area-body > .content { grid-column: 2; display: flex; flex-direction: column; gap: 32px; min-width: 0; }

.entry { border: 1px solid var(--rule); background: var(--panel); border-radius: 6px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.entry .tag { font-family: var(--mono); font-size: 12px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; }
.price { font-family: var(--mono); font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.price strong { color: var(--fg); font-size: 22px; font-weight: 500; margin-right: 8px; }
.entry .not { font-size: 15px; color: var(--faint); border-top: 1px dashed var(--rule); padding-top: 12px; }

.map { display: flex; flex-direction: column; gap: 12px; }
.table-box { overflow-x: auto; border: 1px solid var(--rule); border-radius: 6px; background: var(--panel); max-width: 100%; }
table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 14px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.map table, .report table.wide { min-width: 720px; }
caption { text-align: left; padding: 12px 16px; font-size: 13px; color: var(--faint); border-bottom: 1px solid var(--rule); }
th { text-align: left; padding: 12px 16px; font-weight: 500; color: var(--faint); border-bottom: 1px solid var(--rule); vertical-align: bottom; }
td { padding: 12px 16px; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
.w { color: var(--warn); }
.c { color: var(--crit); }

.also { display: flex; flex-direction: column; }
.also .row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 24px; padding-block: 16px; border-top: 1px solid var(--rule); }
.also .row:last-child { border-bottom: 1px solid var(--rule); }
.also .row h3 { font-size: 18px; }
.also .row .fig { font-family: var(--mono); font-size: 15px; color: var(--muted); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.also .row p { grid-column: 1 / -1; font-size: 16px; color: var(--muted); max-width: 720px; }

.rates td:last-child, .rates th:last-child { text-align: right; white-space: nowrap; }

ol.steps { list-style: none; padding: 0; gap: 0; counter-reset: s; }
ol.steps li { counter-increment: s; display: grid; grid-template-columns: 48px minmax(0, 1fr); padding-block: 14px; border-top: 1px solid var(--rule); }
ol.steps li:last-child { border-bottom: 1px solid var(--rule); }
ol.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--mono); color: var(--accent); font-size: 14px; padding-top: 3px; }

.faq, .area-body > .content.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 32px 48px; }
.faq div { display: flex; flex-direction: column; gap: 8px; }
.faq h3 { font-size: 18px; }
.faq p { font-size: 16px; color: var(--muted); }

footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 20px; border-top: 1px solid var(--rule); font-family: var(--mono); font-size: 13px; color: var(--faint); }
footer a { color: var(--faint); }

/* The sample report page. */
.banner { background: var(--banner); color: var(--banner-fg); border-radius: 6px; padding: 14px 18px; font-size: 16px; }
.banner a { color: var(--banner-fg); }
.report { display: flex; flex-direction: column; gap: 56px; }
.report section { display: flex; flex-direction: column; gap: 16px; max-width: 860px; }
.report .meta { font-family: var(--mono); font-size: 14px; color: var(--muted); display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 16px; margin: 0; }
.report .meta dt { color: var(--faint); }
.report .meta dd { margin: 0; overflow-wrap: anywhere; }
.report .finding { border: 1px solid var(--rule); background: var(--panel); border-radius: 6px; padding: 20px 24px; display: flex; flex-direction: column; gap: 10px; }
.report .finding h3 { font-size: 18px; }
.report .finding p { font-size: 16px; }

@media (max-width: 760px) {
  .built, .area-head, .area-body { grid-template-columns: minmax(0, 1fr); }
  .area-body > .content { grid-column: 1; }
  .also .row { grid-template-columns: minmax(0, 1fr); }
  .also .row .fig { text-align: left; white-space: normal; }
  .wrap, main { gap: 64px; }
  .entry { padding: 20px; }
  .report .meta { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .report .meta dd { margin-bottom: 6px; }
}

/* Print and PDF: the light tokens whatever the OS theme, no panel or banner fills
   (browsers drop backgrounds when printing), and tables at the page's width. */
@media print {
  :root {
    color-scheme: light;
    --bg: #ffffff; --panel: transparent; --fg: #14181e; --muted: #4a5360; --faint: #5f6875;
    --rule: #d5dae0; --rule-soft: #e6e9ed; --accent: #1f7a57; --on-accent: #ffffff;
    --warn: #9a5410; --crit: #b3261e; --banner: transparent; --banner-fg: #14181e;
  }
  body { font-size: 12pt; background: #ffffff; }
  .skip, nav.sections { display: none; }
  .wrap { padding: 0; gap: 32px; max-width: none; }
  main, .report { gap: 32px; }
  .banner { border: 1px solid var(--rule); }
  .btn { background: transparent; color: var(--fg); border-color: var(--rule); min-height: 0; padding: 4px 10px; }
  .table-box { overflow: visible; }
  .map table, .report table.wide { min-width: 0; }
  table { font-size: 9pt; }
  .entry, .report .finding, tr { break-inside: avoid; }
}
