/* StackToIT Examples — stylesheet. Navy field, white ruled sheets, condensed caps labels, carbon mono values, one teal action colour. */

@font-face { font-family: 'Barlow'; font-weight: 400; font-display: swap; src: url('fonts/barlow-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 500; font-display: swap; src: url('fonts/barlow-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 600; font-display: swap; src: url('fonts/barlow-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 700; font-display: swap; src: url('fonts/barlow-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 600; font-display: swap; src: url('fonts/barlow-condensed-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-display: swap; src: url('fonts/barlow-condensed-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 100 800; font-display: swap; src: url('fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2'); }

:root {
  --navy: #0b1d2e;
  --navy-700: #1c3a55;
  --navy-600: #24496a;
  --on-navy: #e8f0f6;
  --on-navy-2: #a9bfd1;
  --paper: #f3f6f8;
  --tint: #e6edf2;
  --sheet: #ffffff;
  --ink: #0e2233;
  --ink-2: #3b5164;
  --rule: #c7d3dc;
  --rule-2: #dfe7ed;
  --teal: #35c6d3;
  --teal-hi: #5ad5e0;
  --teal-ink: #08707c;
  --teal-bg: #e3f6f8;
  --carbon: #17439b;
  --amber-ink: #8a3a0e;
  --amber-bg: #fff1e6;
  --amber-rule: #d9a27a;
  --red-ink: #8d1d1d;
  --red-bg: #fbe9e9;
  --green-ink: #1f6b3a;
  --green-bg: #e6f4ea;
  --grey-ink: #4f6272;
  --grey-bg: #edf1f4;
  --focus: #08707c;
  --sans: 'Barlow', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --cond: 'Barlow Condensed', 'Barlow', ui-sans-serif, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --maxw: 1200px;
  --gutter: 24px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

/* Dark scheme: the sheets become dark slate, the field stays navy; the stamp and carbon values lighten. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0d1a26;
    --tint: #122233;
    --sheet: #13263a;
    --ink: #e8f0f6;
    --ink-2: #b7c8d6;
    --rule: #2b4560;
    --rule-2: #223a50;
    --carbon: #8fb3ff;
    --teal-ink: #5ad5e0;
    --teal-bg: #0f3a44;
    --amber-ink: #f0b48a;
    --amber-bg: #3a2415;
    --amber-rule: #7a4a24;
    --red-ink: #ff9d9d;
    --red-bg: #3a1a1a;
    --green-ink: #8fd9a8;
    --green-bg: #15301f;
    --grey-ink: #b7c8d6;
    --grey-bg: #1b3045;
    --focus: #5ad5e0;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0d1a26; --tint: #122233; --sheet: #13263a; --ink: #e8f0f6; --ink-2: #b7c8d6; --rule: #2b4560; --rule-2: #223a50;
  --carbon: #8fb3ff; --teal-ink: #5ad5e0; --teal-bg: #0f3a44; --amber-ink: #f0b48a; --amber-bg: #3a2415; --amber-rule: #7a4a24;
  --red-ink: #ff9d9d; --red-bg: #3a1a1a; --green-ink: #8fd9a8; --green-bg: #15301f; --grey-ink: #b7c8d6; --grey-bg: #1b3045; --focus: #5ad5e0;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.55 var(--sans); font-feature-settings: 'kern', 'liga';
  text-rendering: geometricPrecision;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--teal-ink); text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
code, pre, .mono { font-family: var(--mono); font-size: 0.9em; font-variant-ligatures: none; }
h1, h2, h3, h4 { font-family: var(--cond); line-height: 1.05; margin: 0; letter-spacing: 0; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); font-weight: 700; text-transform: uppercase; letter-spacing: 0.01em; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); }
h4 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; max-width: 72ch; }
small { font-size: 0.82em; }
.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--teal); color: var(--navy); padding: 8px 12px; font-weight: 600; border-radius: 4px; z-index: 100; }
.skip:focus { left: 8px; }
.fine { font-size: 0.86rem; color: var(--ink-2); }
.on-navy { color: var(--on-navy-2); }
.note { font-size: 0.95rem; color: var(--ink-2); max-width: 80ch; }
.big { font-size: 1.25rem; line-height: 1.45; max-width: 62ch; }

/* label / value fields */
.lab { display: block; font-family: var(--cond); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 2px; }
.val { display: block; color: var(--carbon); font-weight: 500; overflow-wrap: anywhere; }
.val.num { font-family: var(--mono); font-size: 1.55rem; font-weight: 600; line-height: 1.15; }
.val small { color: var(--ink-2); font-family: var(--sans); font-weight: 400; font-size: 0.8rem; }
.val.mono { font-family: var(--mono); font-size: 0.92rem; }
.sub { display: block; font-size: 0.86rem; color: var(--ink-2); margin-top: 4px; line-height: 1.4; }
.fields { display: grid; gap: 0; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); margin: 16px 0 24px; }
.fields > .field { padding: 12px 14px 12px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--sheet); min-width: 0; }
.fields-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fields-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fields-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fields-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.fields.small .val { font-size: 1rem; }
.fields.small .val.num { font-size: 1.25rem; }
@media (max-width: 1000px) { .fields-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .fields-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .fields-5, .fields-4, .fields-3, .fields-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .val.num { font-size: 1.3rem; } }
@media (max-width: 420px) { .fields-5, .fields-4, .fields-3, .fields-2 { grid-template-columns: 1fr; } }

/* states */
.state { display: inline-block; font-family: var(--cond); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 7px 1px; border: 1px solid currentColor; border-radius: 2px; line-height: 1.4; white-space: nowrap; }
.st-passed, .st-verified, .st-generated, .st-covered { color: var(--green-ink); background: var(--green-bg); }
.st-not-run, .st-not-provided, .st-not-assessed, .st-not-asserted, .st-not-available, .st-unverified, .st-not-ready { color: var(--grey-ink); background: var(--grey-bg); }
.st-partial, .st-unpinned, .st-redesign, .st-replatform { color: var(--amber-ink); background: var(--amber-bg); }
.st-blocked, .st-refused, .st-failed { color: var(--red-ink); background: var(--red-bg); }
.st-ready, .st-direct { color: var(--green-ink); background: var(--green-bg); }

@media (max-width: 640px) { .cls .word { display: none; } }

/* navy field sections */
.field { background: var(--navy); color: var(--on-navy); }
.field h1, .field h2 { color: #fff; }
.field p { color: var(--on-navy); }
.field a:not(.btn) { color: var(--teal); }
.field a:not(.btn):hover { color: var(--teal-hi); }
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 6vw, 80px); border-bottom: 1px solid var(--navy-700); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.lede { font-family: var(--cond); font-weight: 600; font-size: clamp(1.25rem, 2.2vw, 1.7rem); line-height: 1.2; margin: 18px 0 16px; max-width: 30ch; color: var(--teal) !important; }
.hero-p { max-width: 58ch; font-size: 1.05rem; }
.kicker-free { font-family: var(--cond); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.85rem; color: var(--teal) !important; margin: 0 0 14px; }
.hero-h1 { text-transform: none; letter-spacing: -0.01em; font-size: clamp(2.2rem, 4.6vw, 3.9rem); line-height: 1.04; max-width: 16ch; }
.hero .lede { color: var(--on-navy) !important; font-family: var(--sans); font-weight: 400; font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.5; max-width: 56ch; }
.meta-line { font-family: var(--cond); font-weight: 600; letter-spacing: 0.04em; font-size: 1rem; color: var(--teal) !important; margin: 0 0 6px; }
.example-head .lede { color: var(--on-navy) !important; font-family: var(--sans); font-weight: 400; font-size: 1.15rem; line-height: 1.5; max-width: 62ch; margin: 12px 0 10px; }
.register-lede { margin: -4px 0 22px; color: var(--ink-2); }
.delivered { list-style: none; margin: 4px 0 4px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.delivered li { padding: 10px 14px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--sheet); font-weight: 600; display: grid; gap: 2px; }
.delivered li::before { content: ''; display: none; }
.delivered small { font-weight: 400; color: var(--ink-2); font-size: 0.86rem; }
@media (max-width: 640px) { .delivered { grid-template-columns: 1fr; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* dispatch: three legs */
.dispatch { list-style: none; margin: 0; padding: 0; border: 1px solid var(--navy-600); border-radius: 3px; background: var(--navy-700); }
.dispatch li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 11px 14px 11px 10px; border-top: 1px solid var(--navy-600); }
.dispatch li:first-child { border-top: 0; }
.dispatch .leg { width: 30px; height: 30px; display: grid; place-items: center; background: var(--teal); color: var(--navy); font-family: var(--mono); font-weight: 700; border-radius: 3px; font-size: 1rem; }
.dispatch h2 { font-size: 1.02rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; color: #fff; }
.dispatch p { margin: 0; font-size: 0.9rem; color: var(--on-navy-2); max-width: 46ch; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 4px; border: 1px solid var(--rule); background: var(--sheet); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.97rem; line-height: 1.2; transition: background 160ms var(--ease), border-color 160ms var(--ease), transform 160ms var(--ease); }
.btn:hover { border-color: var(--teal-ink); background: var(--teal-bg); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal); border-color: var(--teal); color: var(--navy); }
.btn-primary:hover { background: var(--teal-hi); border-color: var(--teal-hi); color: var(--navy); }
.btn-ghost { background: transparent; border-color: var(--navy-600); color: var(--on-navy); }
.btn-ghost:hover { background: var(--navy-700); border-color: var(--teal); color: #fff; }
.field .btn-ghost { color: var(--on-navy); }

/* sections */
.register, .reading { padding: clamp(36px, 5vw, 64px) 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; border-bottom: 2px solid var(--ink); padding-bottom: 10px; }
.section-head p { margin: 0; color: var(--ink-2); }

/* sheet */
.sheet { background: var(--sheet); border: 1px solid var(--rule); border-radius: 3px; box-shadow: 0 2px 6px rgba(11, 29, 46, 0.06), 0 12px 32px -16px rgba(11, 29, 46, 0.25); overflow: hidden; margin-bottom: 24px; }
.sheet-head { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 14px; background: var(--navy-700); color: #fff; padding: 12px 16px 12px 12px; }
.sheet-no { width: 28px; height: 28px; background: var(--teal); color: var(--navy); display: grid; place-items: center; font-family: var(--mono); font-weight: 700; border-radius: 2px; font-size: 0.7rem; }
.sheet-head h3 { font-size: 1.45rem; text-transform: none; letter-spacing: 0; color: #fff; }
.sheet-head h3 a { color: #fff; text-decoration: none; }
.sheet-head h3 a:hover { color: var(--teal-hi); }
.route { display: inline-flex; align-items: center; gap: 10px; font-family: var(--cond); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.85rem; color: var(--on-navy); }
.route .arrow { color: var(--teal); font-size: 1.1rem; }
.sheet-body { padding: 4px 16px 16px; }
.sheet-body .fields { margin: 12px 0 16px; }
.sheet-summary { margin: 4px 0 16px; max-width: 80ch; color: var(--ink); }
.verdict { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; padding: 14px 16px; background: var(--tint); border: 1px solid var(--rule); border-radius: 3px; margin: 0 0 16px; }
.verdict-wide { margin: 8px 0 24px; }
.verdict-words { display: grid; grid-template-columns: max-content 1fr; gap: 2px 18px; align-items: baseline; }
.verdict-words .lab { margin: 0; }
.verdict-words .val { color: var(--ink); font-weight: 500; }
@media (max-width: 640px) { .verdict { grid-template-columns: 1fr; } .verdict-words { grid-template-columns: 1fr; } .sheet-head { grid-template-columns: 28px 1fr; } .sheet-head .route { grid-column: 2; } }

/* stamp */
.stamp { display: inline-grid; justify-items: center; gap: 0; padding: 8px 14px 6px; border: 3px double var(--teal-ink); color: var(--teal-ink); border-radius: 6px; transform: rotate(-4deg); font-family: var(--cond); text-transform: uppercase; line-height: 1; background: color-mix(in srgb, var(--sheet) 70%, transparent); min-width: 150px; }
.stamp span { font-size: 0.72rem; letter-spacing: 0.16em; font-weight: 600; }
.stamp strong { font-size: 2.2rem; font-weight: 700; letter-spacing: 0.04em; }
.stamp small { font-size: 0.68rem; letter-spacing: 0.1em; font-weight: 600; margin-top: 4px; }
.stamp-NO { color: var(--amber-ink); border-color: var(--amber-ink); }
.stamp-YES { color: var(--green-ink); border-color: var(--green-ink); }
.stamp-lg { min-width: 220px; padding: 12px 20px 10px; }
.stamp-lg strong { font-size: 3rem; }
.field .stamp { background: rgba(11, 29, 46, 0.4); }
.field .stamp-NO { color: #ffb380; border-color: #ffb380; }
.field .stamp-YES { color: #8fd9a8; border-color: #8fd9a8; }

/* classification strip */
.strip { display: flex; height: 44px; border: 1px solid var(--rule); border-radius: 3px; overflow: hidden; margin: 8px 0 10px; background: var(--tint); }
.cls { display: flex; align-items: center; gap: 6px; padding: 0 10px; min-width: max-content; font-family: var(--cond); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; min-width: 0; border-right: 1px solid var(--sheet); }
.cls b { font-family: var(--mono); font-size: 0.95rem; }
.cls-direct, .swatch.cls-direct { background: var(--green-bg); color: var(--green-ink); }
.cls-reconfigure, .swatch.cls-reconfigure { background: var(--teal-bg); color: var(--teal-ink); }
.cls-replatform, .swatch.cls-replatform { background: var(--amber-bg); color: var(--amber-ink); }
.cls-containerize, .swatch.cls-containerize { background: #e9e6fb; color: #3f3399; }
.cls-redesign, .swatch.cls-redesign { background: var(--amber-ink); color: #fff; }
.cls-manual_review, .swatch.cls-manual_review { background: var(--grey-bg); color: var(--grey-ink); }
.cls-blocked, .swatch.cls-blocked { background: var(--red-bg); color: var(--red-ink); }
.legend { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.9rem; color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend li.is-zero { opacity: 0.6; }
.legend b { font-family: var(--mono); color: var(--ink); }
.legend small { color: var(--ink-2); }
.swatch { width: 12px; height: 12px; border-radius: 2px; border: 1px solid rgba(0,0,0,0.08); display: inline-block; }

.sheet-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--rule); background: var(--tint); }
.sheet-actions .more { margin-left: auto; font-weight: 500; }
@media (max-width: 640px) { .sheet-actions .more { margin-left: 0; } }

/* glossary */
.glossary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.glossary > div { padding: 14px 16px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--sheet); }
.glossary dt { font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.95rem; color: var(--carbon); }
.glossary dd { margin: 4px 0 0; color: var(--ink-2); font-size: 0.97rem; }
@media (max-width: 720px) { .glossary { grid-template-columns: 1fr; } }

/* example page */
.example-head { padding: 28px 0 32px; border-bottom: 1px solid var(--navy-700); }
.origins { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 26px; }
.origin { display: grid; gap: 3px; padding: 12px 14px; border: 1px solid var(--navy-600); border-radius: 3px; background: var(--navy-700); min-width: 0; }
.origin .lab { color: var(--on-navy-2); margin: 0; }
.origin-main { font-weight: 600; color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.origin-main:hover { color: var(--teal-hi); text-decoration: underline; }
.origin-meta { font-size: 0.88rem; color: var(--on-navy-2); overflow-wrap: anywhere; }
.origin-meta a { color: var(--teal); }
@media (max-width: 720px) { .origins { grid-template-columns: 1fr; } }
.crumbs { display: flex; gap: 10px; font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.82rem; font-weight: 600; margin-bottom: 18px; color: var(--on-navy-2); flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs .mono { text-transform: none; letter-spacing: 0; font-weight: 500; }
.example-head-grid { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.example-head h1 { font-size: clamp(2rem, 4.5vw, 3.6rem); text-transform: none; letter-spacing: 0; }
.example-head .lede { margin: 10px 0 8px; max-width: none; font-size: 1.15rem; }
.summary-panel { margin: 0; display: grid; grid-template-columns: 1fr; border: 1px solid var(--navy-600); border-radius: 3px; background: var(--navy-700); min-width: 300px; align-self: start; }
.summary-panel > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 14px; border-top: 1px solid var(--navy-600); }
.summary-panel > div:first-child { border-top: 0; }
.summary-panel dt { font-family: var(--cond); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-navy-2); }
.summary-panel dd { margin: 0; color: #fff; font-weight: 600; text-align: right; }
.summary-panel dd.num { font-family: var(--mono); font-size: 1.3rem; color: var(--teal); }
.summary-panel dd small { font-family: var(--sans); font-weight: 400; font-size: 0.8rem; color: var(--on-navy-2); }
.summary-panel .arrow { color: var(--teal); }
@media (max-width: 800px) { .example-head-grid { grid-template-columns: 1fr; } .summary-panel { min-width: 0; margin-top: 8px; } }
.example-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; padding: 32px 0 64px; align-items: start; }
.toc { position: sticky; top: 84px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule); }
.toc a { display: block; padding: 7px 14px; color: var(--ink-2); text-decoration: none; font-size: 0.95rem; border-left: 2px solid transparent; margin-left: -1px; }
.toc a:hover { color: var(--ink); border-left-color: var(--teal-ink); }
@media (max-width: 900px) { .example-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; } .toc { position: static; } .toc ol { display: flex; flex-wrap: wrap; gap: 4px; border: 0; } .toc a { border: 1px solid var(--rule); border-radius: 3px; background: var(--sheet); padding: 6px 10px; margin: 0; font-size: 0.88rem; } }
.block { padding: 8px 0 40px; border-bottom: 1px solid var(--rule); margin-bottom: 36px; }
.block:last-child { border-bottom: 0; }
.block h2 { margin: 0 0 14px; padding-top: 8px; }
.block h3 { margin: 30px 0 10px; }
.findings { margin: 0; padding: 0 0 0 1.4em; }
.findings li { margin-bottom: 10px; padding-left: 4px; }
.findings h4 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.findings p { margin: 2px 0 0; color: var(--ink-2); max-width: 78ch; }
.table { width: 100%; border-collapse: collapse; background: var(--sheet); border: 1px solid var(--rule); font-size: 0.95rem; }
.table th, .table td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--rule-2); }
.table thead th { font-family: var(--cond); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.78rem; color: var(--ink-2); background: var(--tint); border-bottom: 1px solid var(--rule); }
.table tbody th { font-weight: 600; white-space: nowrap; }
.table td:last-child { color: var(--ink-2); }
@media (max-width: 640px) { .table { display: block; overflow-x: auto; } .table tbody th { white-space: normal; } }
.diagram { margin: 20px 0 28px; border: 1px solid var(--rule); border-radius: 3px; background: #fff; overflow: hidden; }
.diagram figcaption { display: flex; align-items: center; gap: 14px; padding: 8px 12px; background: var(--tint); border-bottom: 1px solid var(--rule); font-family: var(--cond); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.82rem; color: var(--ink-2); }
.diagram figcaption span { margin-right: auto; }
.diagram img { display: block; width: 100%; padding: 16px; background: #fff; }
.files, .pages { list-style: none; margin: 10px 0 0; padding: 0; border: 1px solid var(--rule); border-radius: 3px; background: var(--sheet); }
.files li, .pages li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 12px 7px calc(12px + var(--d, 0) * 18px); border-top: 1px solid var(--rule-2); font-family: var(--mono); font-size: 0.9rem; }
.files li:first-child, .pages li:first-child { border-top: 0; }
.files a, .pages a { text-decoration: none; overflow-wrap: anywhere; min-width: 0; }
.files a:hover, .pages a:hover { text-decoration: underline; }
.sz { color: var(--ink-2); font-size: 0.82rem; font-family: var(--sans); white-space: nowrap; }
.pages { columns: 2; column-gap: 0; }
.pages li { break-inside: avoid; font-family: var(--sans); text-transform: capitalize; }
@media (max-width: 640px) { .pages { columns: 1; } }
.cmd { display: inline-block; background: var(--navy); color: var(--on-navy); padding: 6px 10px; border-radius: 3px; font-size: 0.86rem; overflow-wrap: anywhere; }
.cmd::before { content: '$ '; color: var(--teal); }

/* viewers */
.viewer-head { padding: 22px 0 26px; }
.viewer-head h1 { font-size: clamp(1.3rem, 3vw, 2rem); text-transform: none; letter-spacing: 0; overflow-wrap: anywhere; }
.viewer-head-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.viewer-head .hero-actions { margin: 0; }
.viewer-body { padding: 28px 0 64px; }
pre.code { margin: 0; background: var(--sheet); border: 1px solid var(--rule); border-radius: 3px; padding: 18px 20px; overflow-x: auto; font-size: 0.86rem; line-height: 1.55; color: var(--ink); tab-size: 2; }
.prose { background: var(--sheet); border: 1px solid var(--rule); border-radius: 3px; padding: 28px clamp(18px, 4vw, 48px) 36px; max-width: 900px; }
.prose h2, .prose h3, .prose h4, .prose h5, .prose h6 { font-family: var(--cond); text-transform: none; letter-spacing: 0; margin: 1.6em 0 0.5em; color: var(--ink); }
.prose h2 { font-size: 1.7rem; } .prose h3 { font-size: 1.35rem; } .prose h4 { font-size: 1.15rem; } .prose h5, .prose h6 { font-size: 1rem; }
.prose p, .prose li { max-width: 78ch; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: 0.35em; }
.prose code { background: var(--tint); padding: 1px 5px; border-radius: 2px; font-size: 0.86em; }
.prose code { overflow-wrap: anywhere; }
.prose table { display: block; overflow-x: auto; max-width: 100%; }
.prose pre { background: var(--navy); color: var(--on-navy); padding: 14px 16px; border-radius: 3px; overflow-x: auto; }
.prose pre code { background: transparent; padding: 0; color: inherit; }
.prose blockquote { margin: 1em 0; padding: 10px 16px; border: 1px solid var(--amber-rule); background: var(--amber-bg); color: var(--amber-ink); border-radius: 3px; }
.prose blockquote p { margin: 0; color: inherit; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.92rem; margin: 1em 0; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--rule); padding: 6px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--tint); }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2em 0; }

/* shared with stacktoit.com: tokens, header, footer and final call to action */
:root {
  --navy-950: #07131f; --navy-900: #0b1d2e; --teal-hi: #5ad5e0; --white: #ffffff; --on-navy-2: #b3c6d4; --on-navy-3: #8ea6b8;
  --line: rgba(232, 240, 246, 0.14); --line-2: rgba(232, 240, 246, 0.28);
  --maxw: 1240px; --gutter: 32px; --header-h: 68px;
}
@media (max-width: 720px) { :root { --gutter: 16px; } }
html { scroll-padding-top: calc(var(--header-h) + 16px); }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: 15px; white-space: nowrap; }
.btn-dark { background: var(--navy-950); border-color: var(--navy-950); color: var(--white); }
.btn-dark:hover { background: var(--navy-700); border-color: var(--navy-700); color: var(--white); }
.page-head .lede { max-width: 62ch; }
.register-count { font: 600 14px/1.4 var(--cond); letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-navy-3); margin-bottom: 16px; }
.example-head h1 { text-transform: uppercase; }

/* Header, footer and final call to action of every stacktoit.com app. */

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy-900); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 36px; height: var(--header-h); }
.logo { display: inline-flex; flex: none; }
.logo img { height: 40px; width: auto; margin-left: -8px; }
.site-nav { display: flex; gap: 28px; }
.site-nav a { color: var(--on-navy); font: 500 16px/1 var(--sans); padding: 8px 0; white-space: nowrap; }
.site-nav a:hover { color: var(--teal-hi); text-decoration: none; }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.lang { display: inline-flex; border: 1px solid var(--line-2); border-radius: 4px; overflow: hidden; font: 600 14px/1 var(--cond); letter-spacing: 0.08em; }
.lang a, .lang span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 11px; color: var(--on-navy-2); }
.lang [aria-current='true'] { background: var(--on-navy); color: var(--navy-900); }
.lang a:hover { color: var(--white); text-decoration: none; background: rgba(232, 240, 246, 0.1); }
.menu { display: none; position: static; }
.menu summary { display: grid; place-items: center; width: 44px; height: 44px; list-style: none; cursor: pointer; color: var(--on-navy); border: 1px solid var(--line-2); border-radius: 4px; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: rgba(232, 240, 246, 0.1); }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; display: grid; background: var(--navy-900); border-bottom: 1px solid var(--line-2); padding: 8px var(--gutter) 20px; box-shadow: 0 18px 32px -16px rgba(0, 0, 0, 0.6); }
.menu-panel a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--on-navy); font-weight: 500; }
.menu-panel .btn { margin-top: 16px; }
@media (max-width: 1040px) {
  .site-nav, .header-cta { display: none; }
  .menu { display: block; }
  .bar { gap: 16px; }
}

/* Final call to action */
.final { background: var(--teal); color: var(--navy-950); padding: clamp(56px, 7vw, 96px) 0; }
.final-grid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px 64px; }
.final-grid > div:first-child { flex: 1 1 520px; min-width: 0; }
.final h2 { font: 600 clamp(2.3rem, 5vw, 4.2rem)/1 var(--cond); text-transform: uppercase; text-wrap: balance; }
.final p { margin-top: 16px; max-width: 58ch; font-size: clamp(18px, 1.6vw, 20px); line-height: 1.45; }
.final-act { display: grid; gap: 12px; justify-items: start; }
.mail { color: var(--navy-950); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.final :focus-visible { outline-color: var(--navy-950); }

/* Footer */
.site-footer { background: var(--navy-950); padding: 40px 0 44px; }
.foot { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px 40px; }
.foot-logo img { height: 36px; width: auto; margin-left: -7px; }
.foot-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 24px; }
.foot-nav a { color: var(--on-navy); font-size: 15px; padding: 4px 0; }
.foot-nav a[aria-current='true'] { color: var(--teal-hi); }
.copy { font: 600 16px/1.2 var(--cond); letter-spacing: 0.04em; color: var(--white); }
.disc { justify-self: end; text-align: right; font-size: 14px; line-height: 1.5; color: var(--on-navy-3); }
@media (max-width: 760px) {
  .foot { grid-template-columns: minmax(0, 1fr); }
  .foot-nav { justify-content: flex-start; }
  .disc { justify-self: start; text-align: left; }
}

.site-nav a[aria-current='true'] { color: var(--teal-hi); }
.site-header a { text-decoration: none; }
.site-footer a { text-decoration: none; }
.foot-note { grid-column: 1 / -1; max-width: 90ch; font-size: 14px; line-height: 1.5; color: var(--on-navy-3); }
