/* BxData marketing site — design system extracted from "ABA Marketing site redesign"
   (Home.dc.html / Supervision.dc.html), made responsive. */

:root {
  --ink: #1C1B1A;
  --body: #44403C;
  --muted: #57534E;
  --muted-2: #78716C;
  --faint: #A8A29E;
  --line: #EBE7E0;
  --line-soft: #F2F0EC;
  --bg-soft: #FAF9F7;
  --bg-softer: #F7F6F3;
  --accent: #1B365D;
  --accent-dark: #132745;
  --tint: #EBF0F7;
  --badge-border: #DCE4EE;
  --btn-border: #DAD5CC;
  --mono-border: #E7E2DA;
  --warn-fg: #8A5A00;
  --warn-bg: #FBF3E4;
  --font-display: "Schibsted Grotesk", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --container: 1180px;
  --pad-x: 32px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: #FFFFFF; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.6;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--ink); }
::selection { background: var(--accent); color: #FFFFFF; }
img, svg, video { max-width: 100%; height: auto; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; }

.container { max-width: var(--container); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
/* The home #product section runs wider than the rest of the page so the three app screens get more room. */
.container.wide { max-width: 1380px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 40px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; color: var(--ink); }
.brand-logo { height: 28px; width: auto; display: block; }
.brand-logo.small { height: 24px; }
.nav-links { display: flex; gap: 26px; font-size: 15px; font-weight: 500; }
.nav-links a { color: var(--body); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-links-login { display: none; }
.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-size: 16px; font-weight: 600;
  padding: 14px 26px; border-radius: 9px; text-align: center;
}
.btn-primary { background: var(--accent); color: #FFFFFF; box-shadow: 0 1px 3px rgba(28, 27, 26, 0.16); }
.btn-primary:hover { background: var(--accent-dark); color: #FFFFFF; }
.btn-secondary { background: #FFFFFF; border: 1px solid var(--btn-border); color: var(--ink); padding: 13px 23px; }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-small { font-size: 15px; padding: 9px 17px; border-radius: 8px; box-shadow: 0 1px 2px rgba(28, 27, 26, 0.12); }
.btn-secondary.btn-small { padding: 8px 16px; box-shadow: none; }
.btn-invert { background: #FFFFFF; color: var(--accent); }
.btn-invert:hover { background: var(--tint); color: var(--accent); }
.btn-outline-light { border: 1px solid rgba(255, 255, 255, 0.4); color: #FFFFFF; padding: 13px 23px; }
.btn-outline-light:hover { border-color: #FFFFFF; color: #FFFFFF; }
.btn-block { display: block; font-size: 15px; padding: 11px; }

/* ---------- Hero ---------- */
/* <main> is the stacking context the page ribbon sits under (z-index -1), so the
   hero and the sections it runs behind keep transparent backgrounds. */
main { position: relative; isolation: isolate; }
.hero { position: relative; overflow: hidden; isolation: isolate; background: transparent; border-bottom: 1px solid var(--line); }
.hero > .container { position: relative; z-index: 1; }
.hero-inner { padding-top: 80px; text-align: center; }

/* Page ribbon (Stripe-style): a WebGL panel of slow, large colour drifts
   (assets/js/ribbon.js) on a cream ground. A panel with a straight, skewed bottom
   edge sits behind the hero text (its left side washed to white so the colour
   gathers to the right); a constant-width strip folds off its right end, runs down
   the right edge behind the first few sections (data-ribbon-span on the host),
   folds inward once and angles off the right edge. Edges are straight and the runs
   meet at creases — folded paper, not a wavy strand. The host is the first child of
   <main>; the script stretches it to the last spanned section and masks everything
   outside the ribbon to transparent. The palette is the five custom properties
   below — deliberately paler than the brand navy, so the navy buttons stand off it;
   no green anywhere. Without WebGL the ::before panel shows instead. */
.hero-ribbon {
  --ribbon-base: #F5EEE2; /* cream ground */
  --ribbon-c1: #6A8DFF;   /* cornflower blue */
  --ribbon-c2: #8A6BF0;   /* violet */
  --ribbon-c3: #FF9E8E;   /* coral */
  --ribbon-c4: #6FD3FF;   /* sky */
  position: absolute; z-index: -1; pointer-events: none;
  left: 0; right: 0; top: 0; height: 3400px; max-height: 100%;
  overflow: hidden;
}
.hero-ribbon::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 640px;
  background: linear-gradient(100deg, #FBFAF8 0%, #F3EFFF 40%, #E9EEFF 70%, #EAF6FF 100%);
  clip-path: polygon(36% 0, 100% 0, 100% 76%, 50% 100%);
}
.hero-ribbon.has-canvas::before { display: none; }
.ribbon-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* A soft white veil where the headline sits, so the strands stay vivid at the edges
   while the ink text on top keeps its contrast. Lives inside .hero, above the ribbon. */
.hero .ribbon-veil {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 58% 50% at 50% 30%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.22) 50%, rgba(255, 255, 255, 0) 82%);
}
.hero.veil-left .ribbon-veil {
  background: radial-gradient(ellipse 50% 70% at 24% 42%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.22) 52%, rgba(255, 255, 255, 0) 84%);
}
.hero .hero-sub { color: var(--body); }
/* Hero wave (home page experiment, 2026-09-11): a twisted, folded silk ribbon drawn by
   assets/js/wave.js in the manner of stripe.com's current hero — a WebGL 2 port of the
   maths that site serves, coloured by a palette painted from the --wave-* values below
   (front face = cool/cream, back face = pink/violet/indigo). The host is the first child
   of .hero and fills it; the canvas box is 110% of a centred 1266px column, offset
   250px right on wide screens, as on stripe.com. Text over it multiplies so it stays
   ink on colour. No WebGL 2 → white hero. */
.hero-wave {
  --wave-cream: #FFF3E8;  /* highlights and the crease */
  --wave-sky: #9FD8FF;    /* top of the front face */
  --wave-blue: #7F9BFF;
  --wave-violet: #A78BFA;
  --wave-indigo: #6D5BE8; /* core of the back face */
  --wave-coral: #FFB3A0;
  --wave-pink: #FF9ECF;   /* top of the back face */
  --wave-peach: #FFD3B0;
  position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
}
.hero-wave-layout { position: relative; width: 100%; height: 100%; max-width: 1266px; margin: 0 auto; }
.hero-wave-contents { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.hero-wave canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 0.25s linear; }
.hero-wave.is-drawn canvas { opacity: 1; }
/* Text over the wave, stripe.com's way: the wave canvas sits between two copies of the
   headline. The back copy (the accessible one) is painted in a dull olive; the front
   copy (aria-hidden) is painted in a dark blue-grey with mix-blend-mode: hard-light.
   Both front colours are below 50% per channel, so hard-light is plain multiply by
   2×front: 2 × #404073 × #38361D = #1C1B1A (ink) and 2 × #4D4D73 × #716B43 = #44403C
   (body) wherever the backdrop is the back copy — i.e. over white. Where the ribbon
   covers the back copy, the front copy multiplies the ribbon instead and the letters
   turn blue-violet. Change the ink or body colour → re-solve back = target ÷ (2 × front). */
.hero.has-wave { background: #FFFFFF; }
.hero.has-wave > .container { z-index: auto; }
.hero.has-wave .hero-wave { z-index: 1; }
.hero.has-wave .badge, .hero.has-wave .hero-ctas, .hero.has-wave .hero-note { position: relative; z-index: 2; }
/* No product image in the home hero (2026-09-26): the wave is the picture, and the
   Collect / Analyze / Report recreations start one scroll down. */
.hero.has-wave .hero-inner { padding-bottom: 128px; }
.hero.has-wave .hero-copy { display: grid; }
.hero.has-wave .hero-copy-layer { grid-area: 1 / 1; position: relative; }
.hero.has-wave .hero-copy-layer--back { z-index: 0; user-select: none; }
.hero.has-wave .hero-copy-layer--back h1 { color: #38361D; }
.hero.has-wave .hero-copy-layer--back .hero-sub { color: #716B43; }
.hero.has-wave .hero-copy-layer--front { z-index: 2; mix-blend-mode: hard-light; }
.hero.has-wave .hero-copy-layer--front h1 { color: #404073; }
.hero.has-wave .hero-copy-layer--front .hero-sub { color: #4D4D73; }
.hero.has-wave .hero-copy-layer--front ::selection { background: rgba(27, 54, 93, 0.75); color: #FFFFFF; }
@media (min-width: 1264px) { .hero-wave-contents { left: 250px; width: 110%; } }
@media (prefers-reduced-motion: reduce) { .hero-wave canvas { transition: none; } }
/* Sections the strand runs behind: the white strip goes clear, soft sections keep a
   translucent tint so the alternating rhythm survives and the strand shows through. */
.strip.on-ribbon { background: transparent; }
.section-soft.on-ribbon { background: rgba(250, 249, 247, 0.62); }
@media (max-width: 720px) {
  .hero-ribbon::before { height: 520px; clip-path: polygon(0 0, 100% 0, 100% 82%, 0 100%); }
  .hero .ribbon-veil, .hero.veil-left .ribbon-veil { background: radial-gradient(ellipse 92% 58% at 50% 36%, rgba(255, 255, 255, 0.74) 0%, rgba(255, 255, 255, 0.34) 55%, rgba(255, 255, 255, 0) 88%); }
}

/* Scroll reveal: site.js adds .reveal to below-the-fold blocks, then .in when
   they enter the viewport. No-JS and reduced-motion readers see everything at once. */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal:nth-child(2) { transition-delay: 0.08s; }
.js .reveal:nth-child(3) { transition-delay: 0.16s; }
.js .reveal:nth-child(4) { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* Hover lift on cards — quiet, quick */
.card, .sec-card, .step-card, .plan, .billing-item { transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.card:hover, .sec-card:hover, .billing-item:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(28, 27, 26, 0.08); }
@media (prefers-reduced-motion: reduce) { .card, .sec-card, .step-card, .plan, .billing-item { transition: none; } .card:hover, .sec-card:hover, .billing-item:hover { transform: none; } }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #FFFFFF; border: 1px solid var(--badge-border); border-radius: 999px;
  padding: 6px 14px; font-size: 13px; font-weight: 500; color: var(--accent);
}
.badge-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); flex: none; }
.hero h1 {
  font-size: clamp(38px, 6vw, 60px); line-height: 1.06; letter-spacing: -0.03em;
  margin: 26px auto 0; max-width: 22ch;
}
.hero-sub { font-size: 20px; line-height: 1.6; color: var(--muted); max-width: 60ch; margin: 22px auto 0; }
.hero-ctas { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-note { font-size: 14px; color: var(--muted-2); margin-top: 16px; }

/* Placeholder media panel — swap for real screencasts */
.media-ph { border-radius: 8px; background: repeating-linear-gradient(45deg, var(--bg-soft), var(--bg-soft) 8px, var(--line-soft) 8px, var(--line-soft) 16px); display: flex; align-items: center; justify-content: center; }
.media-ph.r43 { aspect-ratio: 4 / 3; border-radius: 7px; }
.media-ph span {
  font-family: var(--font-mono); font-size: 13px; color: var(--muted);
  background: #FFFFFF; border: 1px solid var(--mono-border); border-radius: 6px; padding: 9px 15px;
}
.media-card { background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 6px 24px rgba(28, 27, 26, 0.07); padding: 10px; }
/* Real product screenshots inside the media frames */
.media-shot { position: relative; overflow: hidden; background: var(--bg-soft); }
.media-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }

/* ---------- Fact strip (replaces placeholder logo strip) ---------- */
.strip { border-bottom: 1px solid var(--line); background: #FFFFFF; }
.strip-inner { padding-top: 30px; padding-bottom: 30px; display: flex; align-items: center; justify-content: center; gap: 16px 44px; flex-wrap: wrap; }
.strip-label { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.strip-facts { display: flex; gap: 12px 28px; align-items: center; flex-wrap: wrap; justify-content: center; }
.strip-fact { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--muted); }
.strip-fact .tick { color: var(--accent); font-weight: 700; }

/* ---------- Sections ---------- */
.section { border-bottom: 1px solid var(--line); }
.section-soft { background: var(--bg-soft); }
.section-inner { padding-top: 88px; padding-bottom: 88px; }
.section-inner.tight { padding-top: 80px; padding-bottom: 80px; }
.section-head { text-align: center; max-width: 60ch; margin: 0 auto; }
.overline { font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.section-head h2 { font-size: clamp(30px, 4.4vw, 40px); line-height: 1.15; letter-spacing: -0.02em; margin-top: 14px; }
.section-head p { font-size: 18px; line-height: 1.6; color: var(--muted); margin: 16px 0 0; }

/* Three-card product grid */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.card-grid.two { grid-template-columns: 1fr 1fr; }
.card { background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; padding: 26px; box-shadow: 0 1px 2px rgba(28, 27, 26, 0.04); }
.card-num {
  width: 38px; height: 38px; border-radius: 9px; background: var(--tint);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 14px; font-weight: 500; color: var(--accent);
}
.card h3 { font-size: 20px; letter-spacing: -0.01em; margin-top: 18px; }
.card p { font-size: 16px; line-height: 1.6; color: var(--muted); margin: 10px 0 0; }

/* Split feature rows */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; padding-top: 88px; padding-bottom: 88px; }
.split.media-left { grid-template-columns: 1.15fr 1fr; }
.split h2 { font-size: clamp(28px, 4vw, 36px); line-height: 1.18; letter-spacing: -0.02em; margin-top: 14px; }
.split .lede { font-size: 18px; line-height: 1.6; color: var(--muted); margin: 18px 0 0; }
.check-list { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
.check-list div { display: flex; gap: 11px; align-items: flex-start; font-size: 16px; color: var(--ink); }
.check-list .tick { color: var(--accent); font-weight: 700; }
/* Home supervision block: the list stands alone in the left column (no media), so it runs larger. */
.check-list.large { gap: 18px; margin-top: 0; }
.check-list.large div { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.check-list.large .tick { font-size: 18px; }
.split.list-left { grid-template-columns: 0.85fr 1.15fr; }
.split.list-left .check-list { justify-self: center; }
.chip-row { display: flex; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.chip { font-family: var(--font-mono); font-size: 12px; color: var(--accent); background: var(--tint); border-radius: 6px; padding: 6px 11px; }
.chip-warn { color: var(--warn-fg); background: var(--warn-bg); }
.fineprint { font-size: 14px; line-height: 1.55; color: var(--faint); margin-top: 18px; }
.fineprint a { color: var(--muted-2); text-decoration: underline; }

/* ---------- Security grid ---------- */
.sec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.sec-card { background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.sec-kicker { font-size: 14px; font-weight: 600; color: var(--muted-2); }
.sec-value { font-family: var(--font-display); font-weight: 600; font-size: 18px; margin-top: 8px; }
.sec-card p { font-size: 15px; line-height: 1.55; color: var(--muted); margin: 8px 0 0; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; align-items: start; }
.pricing-grid.two { grid-template-columns: 1.15fr 1fr; max-width: 860px; margin-left: auto; margin-right: auto; }
.plan-ontaba {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin-top: 14px; padding: 10px 12px; border-radius: 8px;
  background: var(--tint); font-size: 14px; color: var(--accent);
}
.plan-ontaba strong { font-family: var(--font-display); font-size: 17px; }
/* Every nine seconds a soft band of light slides across the ONTABA row, in two
   layers that move together: ::before sits behind the text and brightens the tint,
   ::after sits above the text in screen blend, so the letters lift to a lighter
   steel blue as the light passes — the pricing-card cousin of the hero text taking
   the ribbon's colour. The sweep takes 1.8 s with an ease-in-out; the rest of the
   cycle the band waits off the right edge. */
.plan-ontaba { position: relative; overflow: hidden; isolation: isolate; }
.plan-ontaba::before, .plan-ontaba::after {
  content: ""; position: absolute; top: -40%; bottom: -40%; left: -8%; width: 56%; pointer-events: none;
  transform: translateX(-115%) skewX(-18deg);
  animation: plan-sheen 9s cubic-bezier(0.5, 0, 0.5, 1) 2.4s infinite;
}
.plan-ontaba::before {
  z-index: -1;
  background: linear-gradient(100deg,
    rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 30%, rgba(255, 255, 255, 1) 50%,
    rgba(255, 255, 255, 0.4) 70%, rgba(255, 255, 255, 0) 100%);
}
.plan-ontaba::after {
  z-index: 1; mix-blend-mode: screen;
  background: linear-gradient(100deg,
    rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.22) 30%, rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0.22) 70%, rgba(255, 255, 255, 0) 100%);
}
@keyframes plan-sheen {
  0% { transform: translateX(-115%) skewX(-18deg); }
  24% { transform: translateX(240%) skewX(-18deg); }
  100% { transform: translateX(240%) skewX(-18deg); }
}
@media (prefers-reduced-motion: reduce) { .plan-ontaba::before, .plan-ontaba::after { display: none; } }
.plan { background: #FFFFFF; border: 1px solid var(--line); border-radius: 14px; padding: 28px; position: relative; }
.plan-featured { border: 2px solid var(--accent); box-shadow: 0 10px 30px rgba(27, 54, 93, 0.12); }
.plan-flag {
  position: absolute; top: -11px; left: 28px; background: var(--accent); color: #FFFFFF;
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 999px;
}
.plan-flag-muted { background: var(--tint); color: var(--accent); border: 1px solid var(--badge-border); }
.plan-name { font-family: var(--font-display); font-weight: 600; font-size: 19px; }
.plan-for { font-size: 15px; color: var(--muted); margin: 6px 0 0; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-top: 22px; }
.plan-price .amount { font-family: var(--font-display); font-weight: 600; font-size: 40px; letter-spacing: -0.02em; }
.plan-price .amount.smaller { font-size: 32px; }
.plan-price .per { font-size: 15px; color: var(--muted-2); }
.plan .btn-block { margin-top: 22px; }
.plan-features { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; font-size: 15px; }
.plan-features div { display: flex; gap: 10px; }
.plan-features .tick { color: var(--accent); font-weight: 700; }

/* Fair-billing strip under pricing */
.billing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 44px; }
.billing-grid.three { grid-template-columns: repeat(3, 1fr); }
.billing-item { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 11px; padding: 18px 20px; }
.billing-item h3 { font-size: 16px; letter-spacing: -0.01em; }
.billing-item p { font-size: 15px; line-height: 1.55; color: var(--muted); margin: 6px 0 0; }

/* ---------- FAQ ---------- */

/* ---------- CTA band ---------- */
.cta-band { background: var(--accent); }
.cta-band .section-inner { text-align: center; }
.cta-band h2 { font-size: clamp(30px, 4.4vw, 40px); letter-spacing: -0.02em; color: #FFFFFF; }
.cta-band p { font-size: 18px; line-height: 1.6; color: rgba(255, 255, 255, 0.78); margin: 16px auto 0; max-width: 48ch; }
.cta-band .hero-ctas { margin-top: 30px; }

/* ---------- Footer ---------- */
.site-footer { background: #FFFFFF; border-top: 1px solid var(--line); }
.footer-grid { padding-top: 48px; padding-bottom: 32px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-about { font-size: 15px; line-height: 1.6; color: var(--muted-2); margin: 14px 0 0; max-width: 32ch; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-head { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.footer-col a { font-size: 15px; color: var(--muted); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { padding-bottom: 40px; }
.footer-bottom-line { border-top: 1px solid var(--line); padding-top: 20px; font-size: 14px; color: var(--faint); }
.footer-bottom-line p { margin: 0 0 6px; }
.footer-bottom-line a { color: var(--muted-2); text-decoration: underline; }

/* ---------- Supervision page ---------- */
.hero-split { padding-top: 76px; padding-bottom: 72px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; text-align: left; }
.hero-split h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.08; letter-spacing: -0.03em; margin: 24px 0 0; max-width: 18ch; }
.hero-split .hero-sub { font-size: 19px; margin: 20px 0 0; max-width: 52ch; }
.hero-split .hero-ctas { justify-content: flex-start; margin-top: 30px; }

.step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.step-card { background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; padding: 22px; color: var(--ink); display: block; }
.step-card:hover { border-color: var(--accent); color: var(--ink); }
.step-card h3 { font-size: 19px; margin-top: 16px; }
.step-card p { font-size: 15px; line-height: 1.55; color: var(--muted); margin: 8px 0 0; }

/* Sign-off table mock */
.table-card { margin-top: 36px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 2px rgba(28, 27, 26, 0.04); }
.table-scroll { overflow-x: auto; }
.trow { display: grid; grid-template-columns: 1fr 1.8fr 1fr 1.1fr; padding: 16px 22px; border-bottom: 1px solid var(--line-soft); font-size: 15px; align-items: center; min-width: 640px; }
.trow:last-child { border-bottom: 0; }
.trow.thead { padding: 14px 22px; background: var(--bg-soft); border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted-2); }
.tdate { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.status { font-size: 13px; font-weight: 600; border-radius: 999px; padding: 4px 10px; }
.status-ok { color: var(--accent); background: var(--tint); }
.status-wait { color: var(--warn-fg); background: var(--warn-bg); }

/* Export bundle card */
.bundle-card { background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; padding: 26px; box-shadow: 0 6px 24px rgba(28, 27, 26, 0.07); }
.bundle-head { font-size: 13px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted-2); }
.bundle-list { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.bundle-row { display: flex; justify-content: space-between; gap: 12px; font-size: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.bundle-row:last-child { border-bottom: 0; padding-bottom: 0; }
.bundle-fmt { font-family: var(--font-mono); font-size: 13px; color: var(--muted-2); flex: none; }

/* ---------- Legal pages ---------- */
.legal { max-width: 780px; margin: 0 auto; padding-top: 64px; padding-bottom: 88px; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); letter-spacing: -0.02em; line-height: 1.1; }
.legal .updated { font-family: var(--font-mono); font-size: 13px; color: var(--faint); margin-top: 14px; }
.legal h2 { font-size: 24px; letter-spacing: -0.01em; margin-top: 44px; }
.legal h3 { font-size: 18px; margin-top: 28px; }
.legal p, .legal li { font-size: 17px; line-height: 1.7; color: var(--body); }
.legal p { margin: 14px 0 0; }
.legal ul, .legal ol { margin: 14px 0 0; padding-left: 24px; }
.legal li { margin-top: 8px; }
.legal .callout { background: var(--bg-soft); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 8px; padding: 18px 20px; margin-top: 24px; }
.legal .callout p { margin: 0; font-size: 16px; }
.legal .callout p + p { margin-top: 10px; }

/* ---------- Sign-up / request form ---------- */
.form-page { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 64px; padding-top: 56px; padding-bottom: 88px; align-items: start; }
.form-col h1 { font-size: clamp(30px, 4.4vw, 40px); line-height: 1.12; letter-spacing: -0.02em; margin-top: 20px; }
.form-lede { font-size: 18px; line-height: 1.6; color: var(--muted); margin: 14px 0 0; }
.signup-form { margin-top: 30px; }
.form-section { font-size: 17px; letter-spacing: -0.01em; margin: 30px 0 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.form-section:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.field { margin-top: 16px; min-width: 0; border: 0; padding: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-row .field { margin-top: 16px; }
.field-short { max-width: 240px; }
.field label, .field legend { display: block; font-size: 15px; font-weight: 600; margin-bottom: 6px; padding: 0; }
.field .req { color: var(--accent); }
.field .opt { font-weight: 400; color: var(--faint); font-size: 13px; margin-left: 4px; }
.input {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: #FFFFFF; border: 1px solid var(--btn-border); border-radius: 9px;
  padding: 11px 13px; transition: border-color 0.15s, box-shadow 0.15s;
}
.input::placeholder { color: var(--faint); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(27, 54, 93, 0.14); }
textarea.input { resize: vertical; min-height: 84px; }
.field-error { display: none; font-size: 14px; color: #A63A2A; margin-top: 6px; }
.field.invalid .input, .invalid .input { border-color: #C9503B; }
.field.invalid .field-error, .invalid .field-error { display: block; }
.seg { display: flex; }
.seg-opt { flex: 1; position: relative; }
.seg-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.seg-opt span {
  display: block; text-align: center; padding: 11px 8px; font-size: 15px; font-weight: 600;
  border: 1px solid var(--btn-border); background: #FFFFFF; color: var(--body); cursor: pointer;
  margin-left: -1px; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.seg-opt:first-child span { border-radius: 9px 0 0 9px; margin-left: 0; }
.seg-opt:last-child span { border-radius: 0 9px 9px 0; }
.seg-opt input:checked + span { background: var(--accent); color: #FFFFFF; border-color: var(--accent); position: relative; z-index: 1; }
.seg-opt input:focus-visible + span { box-shadow: 0 0 0 3px rgba(27, 54, 93, 0.25); z-index: 2; position: relative; }
.invalid .seg-opt span { border-color: #C9503B; }
.form-actions { display: flex; align-items: center; gap: 22px; margin-top: 28px; }
.form-actions .btn[disabled] { opacity: 0.6; cursor: default; }
.form-back { font-size: 15px; font-weight: 600; color: var(--muted); }
.form-back:hover { color: var(--accent); }
.form-fail { margin-top: 18px; padding: 14px 16px; border-radius: 9px; background: #FBEDE9; color: #7A2E22; font-size: 15px; line-height: 1.5; }
.form-fail a { color: #7A2E22; text-decoration: underline; }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-aside { position: sticky; top: 92px; }
.steps-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; }
.steps-card h3 { font-size: 17px; letter-spacing: -0.01em; }
.steps { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--body); }
.step-num { flex: none; width: 24px; height: 24px; border-radius: 999px; background: var(--accent); color: #FFFFFF; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.aside-facts { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; font-size: 15px; color: var(--ink); }
.aside-facts div { display: flex; gap: 10px; }
.aside-facts .tick { color: var(--accent); font-weight: 700; }
.success-panel { margin-top: 30px; max-width: 560px; }
.success-icon { width: 56px; height: 56px; border-radius: 999px; background: var(--tint); color: var(--accent); font-size: 26px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.success-panel h2 { font-size: 30px; letter-spacing: -0.02em; margin-top: 18px; }
.success-panel .steps-card { margin: 22px 0 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav { gap: 22px; }
  .nav-links { gap: 16px; font-size: 14px; }
  .nav-actions .btn { white-space: nowrap; }
  .btn-small { padding: 8px 13px; }
  .btn-secondary.btn-small { padding: 7px 12px; }
  .card-grid, .sec-grid, .pricing-grid, .step-grid, .billing-grid.three { grid-template-columns: 1fr 1fr; }
  .split, .split.media-left, .split.list-left, .hero-split { grid-template-columns: 1fr; gap: 36px; padding-top: 64px; padding-bottom: 64px; }
  .split.media-left .media-card { order: 2; }
  .split.list-left .check-list { order: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section-inner { padding-top: 64px; padding-bottom: 64px; }
  .form-page { grid-template-columns: 1fr; gap: 36px; padding-top: 40px; padding-bottom: 64px; }
  .form-aside { position: static; }
}

@media (max-width: 720px) {
  :root { --pad-x: 20px; }
  .nav { gap: 16px; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: #FFFFFF; border-bottom: 1px solid var(--line);
    padding: 8px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px var(--pad-x); }
  .nav-links-login { display: block; border-top: 1px solid var(--line-soft); margin-top: 4px; padding-top: 14px !important; }
  .nav-actions .btn-login { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; margin-left: auto;
    background: none; border: 1px solid var(--btn-border); border-radius: 8px;
    font-size: 18px; color: var(--ink); cursor: pointer;
  }
  .nav-actions { margin-left: 0; gap: 12px; }
  .hero-inner { padding-top: 56px; }
  .hero.has-wave .hero-inner { padding-bottom: 80px; }
  .hero-sub { font-size: 18px; }
  .card-grid, .card-grid.two, .sec-grid, .pricing-grid, .pricing-grid.two, .step-grid, .billing-grid, .billing-grid.three { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; }
  .plan-featured { order: -1; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .field-short { max-width: none; }
  .form-actions { flex-direction: column; align-items: stretch; gap: 14px; }
  .form-actions .form-back { text-align: center; }
}

/* =====================================================================
   Blog — index, article layout, and the figure/infographic components
   ===================================================================== */
:root {
  /* Chart palette, validated with the dataviz palette checker on #FFFFFF and
     #FAF9F7: navy + blue pass colour-vision-deficiency separation (they differ in lightness); gray is the
     "closed / no route" neutral; the ordinal navy ramp reads light-to-dark with
     a light end that still clears 2:1 on white. Re-run the checker before adding hues. */
  --viz-navy: #1B365D;
  --viz-blue: #4A7BC9;
  --viz-gray: #A8A29E;
  --viz-navy-wash: rgba(27, 54, 93, 0.14);
  --ord-1: #A9BDD9;
  --ord-2: #6B85A8;
  --ord-3: #1B365D;
}

/* ---------- Blog index ---------- */
.blog-hero { padding-top: 72px; padding-bottom: 56px; }
.blog-hero h1 { font-size: clamp(36px, 5.2vw, 56px); line-height: 1.05; letter-spacing: -0.03em; margin: 16px 0 0; max-width: 16ch; }
.blog-hero .lede { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 58ch; margin: 18px 0 0; }
.blog-list { padding-top: 48px; padding-bottom: 88px; }
.blog-list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.blog-list-head h2 { font-size: 22px; letter-spacing: -0.01em; }
.blog-list-head span { font-family: var(--font-mono); font-size: 12px; color: var(--faint); }
.post-list { display: grid; gap: 16px; margin-top: 22px; }
.post-card {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 36px; align-items: center;
  background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px; padding: 30px 32px;
  color: var(--ink); box-shadow: 0 1px 2px rgba(28, 27, 26, 0.04);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.post-card:hover { border-color: var(--accent); color: var(--ink); box-shadow: 0 12px 32px rgba(28, 27, 26, 0.08); transform: translateY(-2px); }
.post-card h2 { font-size: clamp(22px, 2.8vw, 30px); line-height: 1.2; letter-spacing: -0.02em; margin-top: 14px; }
.post-card p { font-size: 16px; line-height: 1.6; color: var(--muted); margin: 12px 0 0; }
.post-kicker { display: inline-block; font-family: var(--font-mono); font-size: 12px; color: var(--accent); background: var(--tint); border-radius: 6px; padding: 5px 9px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; font-family: var(--font-mono); font-size: 12.5px; color: var(--muted-2); }
.post-art { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.post-art svg { display: block; width: 100%; height: auto; }
.series-box { margin-top: 40px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 22px 26px; }
.series-box h2 { font-size: 18px; letter-spacing: -0.01em; }
.series-box p { font-size: 15px; color: var(--muted); margin: 6px 0 0; }
.series-box ol { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.series-box li { display: flex; gap: 12px; align-items: baseline; font-size: 16px; }
.series-num { font-family: var(--font-mono); font-size: 13px; color: var(--muted-2); flex: none; width: 52px; }
.series-soon { color: var(--faint); }
.series-soon em { font-style: normal; font-family: var(--font-mono); font-size: 12px; margin-left: 6px; }

/* Home-page tiles: illustration first, one line of text */
.blog-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.blog-tile {
  display: flex; flex-direction: column; align-items: flex-start;
  background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px; padding: 14px 14px 22px;
  color: var(--ink); box-shadow: 0 1px 2px rgba(28, 27, 26, 0.04);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.blog-tile:hover { border-color: var(--accent); color: var(--ink); box-shadow: 0 12px 32px rgba(28, 27, 26, 0.08); transform: translateY(-2px); }
.blog-tile-art { width: 100%; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.blog-tile-art svg { display: block; width: 100%; height: auto; }
.blog-tile .post-kicker { margin: 16px 6px 0; }
.blog-tile h3 { font-size: 19px; line-height: 1.25; letter-spacing: -0.015em; margin: 10px 6px 0; }
.blog-more { text-align: center; margin: 22px 0 0; font-size: 16px; font-weight: 600; }

/* ---------- Article ---------- */
.post { padding-top: 56px; padding-bottom: 88px; }
.post-head { max-width: 780px; margin: 0 auto; }
.post-head h1 { font-size: clamp(32px, 4.8vw, 50px); line-height: 1.08; letter-spacing: -0.03em; margin-top: 18px; }
.post-head .dek { font-size: 20px; line-height: 1.55; color: var(--muted); margin: 18px 0 0; }
.post-byline { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted-2); }
.post-byline strong { color: var(--ink); font-weight: 600; }
.toc { max-width: 780px; margin: 32px auto 0; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; }
.toc-head { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.toc ol { margin: 10px 0 0; padding: 0 0 0 20px; display: grid; gap: 6px; font-size: 15px; }
.toc a { color: var(--body); }
.toc a:hover { color: var(--accent); }
.prose { max-width: 720px; margin: 0 auto; }
.prose p { font-size: 18px; line-height: 1.72; color: var(--body); margin: 22px 0 0; }
.prose h2 { font-size: clamp(26px, 3.4vw, 33px); line-height: 1.2; letter-spacing: -0.02em; margin-top: 64px; scroll-margin-top: 90px; }
.prose h3 { font-size: 21px; letter-spacing: -0.01em; margin-top: 40px; }
.prose a { text-decoration: underline; text-decoration-color: rgba(27, 54, 93, 0.35); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--accent); }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { margin: 16px 0 0; padding-left: 24px; }
.prose li { font-size: 18px; line-height: 1.65; color: var(--body); margin-top: 8px; }
.prose .pull {
  font-family: var(--font-display); font-weight: 500; font-size: 24px; line-height: 1.38; letter-spacing: -0.01em;
  color: var(--accent); border-left: 3px solid var(--accent); padding: 4px 0 4px 22px; margin: 40px 0 0;
}
.prose .lead::first-letter { font-family: var(--font-display); font-weight: 600; font-size: 3.1em; float: left; line-height: 0.82; margin: 8px 10px 0 0; color: var(--accent); }
.prose .note { font-size: 15px; line-height: 1.6; color: var(--muted-2); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin-top: 22px; }
.prose .note strong { color: var(--muted); }

/* Figures: every infographic sits in one of these */
.figure { max-width: 960px; margin: 40px auto 0; background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 1px 2px rgba(28, 27, 26, 0.04); overflow: hidden; }
.figure.wide { max-width: 1060px; }
.figure-head { padding: 22px 26px 0; }
.figure-kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.figure-title { font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: -0.01em; line-height: 1.25; margin-top: 6px; }
.figure-sub { font-size: 15px; line-height: 1.55; color: var(--muted); margin: 6px 0 0; max-width: 70ch; }
.figure-body { padding: 22px 26px 26px; }
.figure-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 26px 14px; border-top: 1px solid var(--line-soft); font-size: 13px; line-height: 1.5; color: var(--faint); }
.linkish { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; font-weight: 600; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linkish:hover { color: var(--ink); }
.fig-table-wrap { display: none; padding: 0 26px 22px; overflow-x: auto; }
.fig-table-wrap.open { display: block; }
.fig-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.fig-table th, .fig-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.fig-table th { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted-2); border-bottom-color: var(--line); }
.fig-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.viz-key { display: flex; gap: 8px 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: 14px; }
.viz-key span { display: inline-flex; align-items: center; gap: 7px; }
.viz-key i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* Fig 1: the postings spectrum */
.spectrum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.spectrum-seg {
  --seg: var(--ord-2); --seg-ink: #FFFFFF;
  background: var(--seg); color: var(--seg-ink); border: 0; padding: 16px 16px 14px; text-align: left; font: inherit;
  cursor: pointer; min-height: 112px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px;
  border-radius: 6px; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.spectrum-seg:first-child { border-radius: 12px 6px 6px 12px; }
.spectrum-seg:last-child { border-radius: 6px 12px 12px 6px; }
.spectrum-seg:hover { transform: translateY(-2px); }
.spectrum-seg[aria-selected="true"] { box-shadow: 0 0 0 3px #FFFFFF, 0 0 0 5px var(--seg); transform: translateY(-2px); }
.spectrum-seg:focus-visible { outline: none; box-shadow: 0 0 0 3px #FFFFFF, 0 0 0 5px var(--accent); }
.seg-label { font-family: var(--font-display); font-weight: 600; font-size: 17px; line-height: 1.2; }
.seg-orgs { font-size: 13px; line-height: 1.4; opacity: 0.92; }
.spectrum-axis { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted-2); }
.spectrum-detail { margin-top: 20px; display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; }
.spectrum-quote { --seg: var(--ord-2); margin: 0; padding: 16px 20px; background: var(--bg-soft); border-left: 3px solid var(--seg); border-radius: 0 10px 10px 0; font-size: 16px; line-height: 1.6; color: var(--body); }
.spectrum-quote cite { display: block; font-style: normal; font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); margin-top: 10px; }
.spectrum-why h4 { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); margin: 0; }
.spectrum-why p { font-size: 15px; line-height: 1.6; color: var(--body); margin: 8px 0 0; }
.spectrum-why p + h4 { margin-top: 16px; }

/* Fig 2: timeline */
.tl-scale { position: relative; height: 52px; margin: 6px 6px 14px; }
.tl-axis { position: absolute; left: 0; right: 0; top: 24px; height: 1px; background: var(--line); }
.tl-year { position: absolute; top: 32px; transform: translateX(-50%); font-family: var(--font-mono); font-size: 11px; color: var(--faint); }
.tl-span { position: absolute; top: 20px; height: 9px; border-radius: 4px; background: var(--viz-navy-wash); }
.tl-dot { position: absolute; top: 19px; width: 11px; height: 11px; border-radius: 50%; background: var(--viz-gray); border: 2px solid #FFFFFF; box-shadow: 0 0 0 1px var(--line); transform: translateX(-50%); transition: transform 0.2s ease, background 0.2s ease; }
.tl-dot.active { background: var(--viz-navy); transform: translateX(-50%) scale(1.35); box-shadow: 0 0 0 1px var(--viz-navy); }
.tl-steps { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.tl-step { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 12px 11px; text-align: left; font: inherit; cursor: pointer; color: var(--ink); transition: border-color 0.2s ease, background 0.2s ease; }
.tl-step:hover { border-color: var(--accent); }
.tl-step[aria-selected="true"] { border-color: var(--accent); background: var(--tint); box-shadow: 0 0 0 1px var(--accent) inset; }
.tl-step:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tl-date { display: block; font-family: var(--font-mono); font-size: 11.5px; color: var(--accent); }
.tl-label { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.3; margin-top: 5px; }
.tl-detail { margin-top: 16px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 12px; background: #FFFFFF; min-height: 150px; }
.tl-detail-date { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.tl-detail h4 { font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -0.01em; margin: 6px 0 0; }
.tl-detail p { font-size: 16px; line-height: 1.6; color: var(--body); margin: 10px 0 0; }
.tl-detail .tl-tag { display: inline-block; margin-top: 12px; font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; }
.tl-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; font-family: var(--font-mono); font-size: 12px; color: var(--faint); }
.tl-nav div { display: flex; gap: 8px; }
.btn-mini { font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); background: #FFFFFF; border: 1px solid var(--btn-border); border-radius: 8px; padding: 7px 13px; cursor: pointer; }
.btn-mini:hover { border-color: var(--accent); color: var(--accent); }
.btn-mini[disabled] { opacity: 0.45; cursor: default; }

/* Fig 3: doors into the College */
.doors-panel { padding: 16px 0 4px; }
.doors-panel + .doors-panel { border-top: 1px solid var(--line); margin-top: 8px; }
.doors-when { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted-2); }
.doors-when i { width: 8px; height: 8px; border-radius: 50%; background: var(--viz-gray); display: inline-block; }
.doors-when.now { color: var(--accent); }
.doors-when.now i { background: var(--viz-navy); }
.door-row { display: grid; grid-template-columns: 190px 1fr; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line-soft); }
.doors-panel .door-row:first-of-type { border-top: 0; }
.door-name { font-weight: 600; font-size: 15px; line-height: 1.3; }
.door-name small { display: block; font-weight: 400; font-size: 13px; color: var(--muted-2); margin-top: 3px; }
.door-flow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.door-node { padding: 8px 12px; border-radius: 8px; background: #FFFFFF; border: 1px solid var(--line); font-size: 14px; line-height: 1.35; color: var(--ink); }
.door-node.end { background: var(--viz-navy); border-color: var(--viz-navy); color: #FFFFFF; font-weight: 600; }
.door-node.legacy { border-color: var(--viz-blue); box-shadow: 0 0 0 1px var(--viz-blue) inset; }
.door-arrow { color: var(--faint); font-size: 14px; }
.door-row.closed .door-node { border-style: dashed; color: var(--muted-2); background: var(--bg-soft); }
.door-row.closed .door-node.legacy { box-shadow: none; border-color: var(--btn-border); }
.door-row.empty .door-node { border-style: dashed; }
.door-x { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); background: var(--line-soft); border-radius: 999px; padding: 5px 11px; }
.door-x b { font-weight: 700; color: var(--muted-2); }

/* Fig 4: KPI row + the tap diagram */
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.kpi-label { font-size: 13px; line-height: 1.4; color: var(--muted-2); }
.kpi-value { font-family: var(--font-display); font-weight: 600; font-size: 36px; letter-spacing: -0.02em; line-height: 1.1; margin-top: 6px; }
.kpi-value small { font-size: 18px; font-weight: 500; color: var(--muted-2); margin-left: 4px; letter-spacing: 0; }
.kpi-note { font-size: 13px; line-height: 1.4; color: var(--muted); margin-top: 6px; }
.kpi.closed .kpi-value { color: var(--muted-2); }
.tap { margin-top: 22px; }
.tap svg { display: block; width: 100%; height: auto; }

/* Fig 5: history tabs */
.hist-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.hist-tab { font: inherit; font-size: 14px; font-weight: 600; color: var(--body); background: #FFFFFF; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.hist-tab:hover { border-color: var(--accent); color: var(--accent); }
.hist-tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.hist-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hist-panel { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.hist-panel[hidden] { display: none; }
.hist-flow { display: flex; flex-direction: column; gap: 8px; }
.hist-step { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.hist-step i { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 12px; font-style: normal; color: #FFFFFF; background: var(--viz-gray); }
.hist-step.then i { background: var(--viz-blue); }
.hist-step.now i { background: var(--viz-navy); }
.hist-step b { display: block; font-size: 15px; }
.hist-step span { display: block; font-size: 14px; line-height: 1.5; color: var(--muted); margin-top: 2px; }
.hist-story p { font-size: 16px; line-height: 1.62; color: var(--body); margin: 0; }
.hist-story p + p { margin-top: 12px; }
.hist-lesson { margin-top: 16px; background: var(--tint); border-radius: 10px; padding: 14px 16px; font-size: 15px; line-height: 1.55; color: var(--accent); }
.hist-lesson b { display: block; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px; }
.hist-outcome { display: inline-block; font-family: var(--font-mono); font-size: 12px; color: var(--accent); background: var(--tint); border-radius: 6px; padding: 4px 8px; margin-bottom: 10px; }

/* Fig 6: forecast confidence */
.forecast { display: grid; gap: 10px; }
.forecast-row { display: grid; grid-template-columns: 1.3fr auto 1fr; gap: 20px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: #FFFFFF; }
.forecast-row h4 { font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; margin: 0; }
.forecast-row p { font-size: 14.5px; line-height: 1.55; color: var(--muted); margin: 0; }
.conf { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.conf i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); display: inline-block; }
.conf i.on { background: var(--viz-navy); }
.conf span { font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); margin-left: 8px; }

/* Route finder: the mini-app */
.finder { max-width: 960px; margin: 40px auto 0; background: linear-gradient(180deg, var(--bg-soft) 0%, #FFFFFF 100%); border: 1px solid var(--line); border-radius: 16px; padding: 28px 30px; box-shadow: 0 1px 2px rgba(28, 27, 26, 0.04); }
.finder-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.finder-head h3 { font-size: 22px; letter-spacing: -0.01em; }
.finder-head span { font-family: var(--font-mono); font-size: 12px; color: var(--faint); }
.finder-q { font-family: var(--font-display); font-weight: 600; font-size: 17px; margin-top: 20px; }
.finder-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.finder-opt { text-align: left; font: inherit; font-size: 15px; line-height: 1.4; color: var(--ink); background: #FFFFFF; border: 1px solid var(--btn-border); border-radius: 10px; padding: 12px 14px; cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease; }
.finder-opt:hover { border-color: var(--accent); }
.finder-opt[aria-pressed="true"] { border-color: var(--accent); background: var(--tint); box-shadow: 0 0 0 1px var(--accent) inset; }
.finder-opt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.finder-result { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 20px; }
.finder-result[hidden] { display: none; }
.finder-route { display: inline-block; font-family: var(--font-mono); font-size: 12px; color: var(--accent); background: var(--tint); border-radius: 6px; padding: 5px 9px; }
.finder-result h4 { font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: -0.01em; margin: 12px 0 0; }
.finder-result p { font-size: 16px; line-height: 1.62; color: var(--body); margin: 10px 0 0; }
.finder-steps { margin: 12px 0 0; padding-left: 22px; }
.finder-steps li { font-size: 16px; line-height: 1.55; color: var(--body); margin-top: 6px; }
.finder-copy { margin-top: 16px; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.finder-copy[hidden] { display: none; }
.finder-copy code { font-family: var(--font-mono); font-size: 14px; color: var(--ink); line-height: 1.5; }
.finder-disclaimer { font-size: 13px; line-height: 1.55; color: var(--faint); margin-top: 16px; }
.finder-reset { margin-top: 14px; }

/* End of post */
.post-cta { max-width: 720px; margin: 56px auto 0; background: var(--accent); color: #FFFFFF; border-radius: 16px; padding: 30px 32px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.post-cta h3 { font-size: 22px; letter-spacing: -0.01em; color: #FFFFFF; }
.post-cta p { font-size: 16px; line-height: 1.55; color: rgba(255, 255, 255, 0.8); margin: 8px 0 0; }
.series-nav { max-width: 720px; margin: 40px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.series-nav a, .series-nav div { display: block; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; color: var(--ink); background: #FFFFFF; }
.series-nav a:hover { border-color: var(--accent); }
.series-nav div { color: var(--faint); background: var(--bg-soft); }
.series-nav small { display: block; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted-2); margin-bottom: 6px; }
.sources { max-width: 720px; margin: 56px auto 0; border-top: 1px solid var(--line); padding-top: 28px; }
.sources h2 { font-size: 22px; letter-spacing: -0.01em; }
.sources h3 { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); margin-top: 22px; }
.sources ul { margin: 10px 0 0; padding-left: 20px; }
.sources li { font-size: 15px; line-height: 1.55; color: var(--muted); margin-top: 5px; }

/* ---------- Post: group-home-question ---------- */
/* Fig 1: the shelf */
.shelf { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.shelf-doc { position: relative; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 16px 16px 14px 22px; min-height: 190px; display: flex; flex-direction: column; }
.shelf-doc::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 6px; border-radius: 0 4px 4px 0; background: var(--ord-3); }
.shelf-doc.advice::before { background: var(--ord-2); }
.shelf-doc.ontaba::before { background: var(--viz-blue); }
.shelf-doc.faq::before { background: var(--ord-1); }
.shelf-who { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted-2); }
.shelf-doc b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 16px; line-height: 1.3; margin-top: 6px; }
.shelf-doc p { font-size: 14px; line-height: 1.5; color: var(--muted); margin: 8px 0 0; }
.shelf-doc small { display: block; margin-top: auto; padding-top: 12px; font-family: var(--font-mono); font-size: 11.5px; line-height: 1.45; color: var(--faint); }
.shelf-stamp { display: inline-block; width: fit-content; margin-top: 8px; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); background: var(--line-soft); border-radius: 999px; padding: 4px 10px; }
.shelf-assembly { margin-top: 16px; display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.shelf-assembly i { flex: 1; height: 1px; background: var(--line); }

/* Fig 2: supervisor or consultant */
.quiz { display: grid; gap: 8px; }
.quiz-q { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft); font-size: 15.5px; line-height: 1.45; color: var(--ink); }
.quiz-q .n { font-family: var(--font-mono); font-size: 12px; color: var(--accent); margin-right: 8px; }
.quiz-opts { display: flex; gap: 6px; }
.quiz-opt { font: inherit; font-size: 14px; font-weight: 600; color: var(--body); background: #FFFFFF; border: 1px solid var(--btn-border); border-radius: 999px; padding: 6px 14px; cursor: pointer; transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease; }
.quiz-opt:hover { border-color: var(--accent); color: var(--accent); }
.quiz-opt[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.quiz-opt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.quiz-verdict { margin-top: 14px; padding: 14px 18px; border-radius: 10px; background: var(--tint); color: var(--accent); font-size: 15.5px; line-height: 1.55; }
.quiz-verdict b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 17px; margin-bottom: 2px; }
.quiz-verdict.muted { background: var(--bg-soft); color: var(--muted); }
.roles { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.role { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: #FFFFFF; transition: opacity 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
.role h4 { font-family: var(--font-display); font-weight: 600; font-size: 17px; margin: 0; display: flex; align-items: center; gap: 10px; }
.role h4 i { width: 10px; height: 10px; border-radius: 50%; background: var(--viz-navy); display: inline-block; flex: none; }
.role.consult h4 i { background: var(--viz-blue); }
.role ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.role li { display: grid; grid-template-columns: 56px 1fr; gap: 10px; font-size: 14.5px; line-height: 1.5; color: var(--body); }
.role li .std { font-family: var(--font-mono); font-size: 12px; color: var(--accent); padding-top: 2px; }
.roles.pick .role.dim { opacity: 0.42; }
.roles.pick .role.lit { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.role-trap { margin-top: 14px; padding: 14px 16px; border-radius: 10px; background: var(--warn-bg); color: var(--warn-fg); font-size: 15px; line-height: 1.55; }
.role-trap b { display: block; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px; }

/* Fig 3: two org charts */
.org { display: grid; grid-template-columns: 1fr 1.3fr; gap: 18px; }
.org-col { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px 18px; background: var(--bg-soft); }
.org-col h4 { margin: 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted-2); display: flex; align-items: center; gap: 10px; }
.org-col h4 i { width: 8px; height: 8px; border-radius: 50%; background: var(--viz-gray); display: inline-block; }
.org-col.college h4 { color: var(--accent); }
.org-col.college h4 i { background: var(--viz-navy); }
.org-chain { display: flex; flex-direction: column; margin-top: 14px; }
.org-box { position: relative; background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-size: 14.5px; line-height: 1.35; color: var(--ink); }
.org-box small { display: block; font-size: 12.5px; color: var(--muted-2); margin-top: 2px; font-weight: 400; }
.org-box.rba { border-color: var(--viz-navy); box-shadow: 0 0 0 1px var(--viz-navy) inset; font-weight: 600; }
.org-box.layer { border-style: dashed; color: var(--muted-2); padding-right: 118px; }
.org-x { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-family: var(--font-mono); font-size: 11px; line-height: 1.3; color: var(--muted); background: var(--line-soft); border-radius: 999px; padding: 4px 9px; white-space: nowrap; }
.org-link { width: 2px; height: 18px; background: var(--line); margin: 0 auto; }
.org-link.dashed { background: repeating-linear-gradient(180deg, var(--faint) 0 4px, transparent 4px 8px); }
.org-fan { margin-top: 14px; }
.org-fan .org-box.rba { width: fit-content; margin: 0 auto; text-align: center; }
.org-stem { width: 2px; height: 16px; background: var(--viz-navy); margin: 0 auto; }
.org-bar { height: 2px; background: var(--viz-navy); margin: 0 11%; }
.org-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 10px; margin: 0 4%; }
.chip-staff { position: relative; text-align: center; background: #FFFFFF; border: 1px solid var(--line); border-radius: 8px; padding: 8px 6px 7px; font-size: 12.5px; line-height: 1.3; color: var(--ink); }
.chip-staff::before { content: ""; position: absolute; top: -14px; left: 50%; width: 2px; height: 14px; background: var(--viz-navy); transform: translateX(-50%); }
.chip-staff small { display: block; font-family: var(--font-mono); font-size: 10.5px; color: var(--viz-navy); margin-top: 3px; }
.chip-staff.lead { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.org-note { margin-top: 14px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }

/* Fig 4: the agreement counter */
.ctl-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ctl { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.ctl label { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.ctl output { font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--ink); font-variant-numeric: tabular-nums; }
.ctl input[type="range"] { display: block; width: 100%; margin: 10px 0 0; accent-color: var(--accent); }
.counter-kpis { margin-top: 14px; }
.counter-kpis .kpi-row { grid-template-columns: repeat(3, 1fr); }
.dots { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 12px 18px; }
.dots-house { display: flex; flex-direction: column; gap: 6px; }
.dots-house small { font-family: var(--font-mono); font-size: 11px; color: var(--faint); }
.dots-row { display: grid; grid-template-columns: repeat(6, 10px); gap: 4px; }
.dots-row i { width: 10px; height: 10px; border-radius: 50%; background: var(--viz-navy); display: block; }
.cmp { margin-top: 18px; display: grid; gap: 8px; }
.cmp-row { display: grid; grid-template-columns: 250px 1fr 56px; gap: 12px; align-items: center; font-size: 14px; line-height: 1.4; color: var(--muted); }
.cmp-bar { height: 14px; border-radius: 4px; background: var(--viz-navy); min-width: 4px; transition: width 0.25s ease; }
.cmp-row.alt .cmp-bar { background: var(--viz-gray); }
.cmp-row b { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.counter-sentence { margin-top: 14px; font-size: 15px; line-height: 1.55; color: var(--body); }

/* Fig 5: the consent path */
.flow { display: grid; justify-items: center; }
.flow-node { width: 100%; max-width: 560px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; font-size: 14.5px; line-height: 1.5; text-align: center; color: var(--body); }
.flow-node b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 15.5px; color: var(--ink); }
.flow-node small { display: block; color: var(--muted); margin-top: 3px; font-size: 13.5px; line-height: 1.5; }
.flow-node.q { border-color: var(--viz-blue); box-shadow: 0 0 0 1px var(--viz-blue) inset; }
.flow-node.go { background: var(--viz-navy); border-color: var(--viz-navy); color: #FFFFFF; }
.flow-node.go b, .flow-node.stop b { color: #FFFFFF; }
.flow-node.go small { color: rgba(255, 255, 255, 0.88); }
.flow-node.stop { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.flow-node.stop small { color: rgba(255, 255, 255, 0.82); }
.flow-down { width: 2px; height: 18px; background: var(--line); }
.flow-split { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.flow-leg { display: grid; justify-items: center; align-content: start; }
.flow-edge { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted-2); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; margin-bottom: 6px; }
.flow-overlay { margin-top: 18px; width: 100%; background: var(--viz-navy-wash); border: 1px dashed var(--viz-navy); border-radius: 10px; padding: 12px 16px; font-size: 14px; line-height: 1.5; color: var(--accent); }
.flow-overlay b { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; display: block; margin-bottom: 3px; }

/* Fig 6: the QAM overlay */
.redline { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.redline > div { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--bg-soft); }
.redline h4 { margin: 0; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted-2); }
.redline p { margin: 8px 0 0; font-size: 15px; line-height: 1.65; color: var(--body); }
.redline del { text-decoration: line-through; text-decoration-color: var(--muted-2); color: var(--muted-2); background: var(--line-soft); border-radius: 3px; padding: 0 3px; }
.redline ins { text-decoration: none; color: var(--accent); background: var(--viz-navy-wash); border-radius: 3px; padding: 0 3px; font-weight: 600; }
.status-badge { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-family: var(--font-mono); font-size: 12px; line-height: 1.4; color: var(--warn-fg); background: var(--warn-bg); border-radius: 999px; padding: 5px 11px; }
.status-badge i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.ms-row { margin-top: 22px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; position: relative; }
.ms-row::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 1px; background: var(--line); }
.ms { position: relative; padding-top: 18px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.ms::before { content: ""; position: absolute; left: 0; top: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--viz-gray); border: 2px solid #FFFFFF; box-shadow: 0 0 0 1px var(--line); }
.ms.now::before { background: var(--viz-navy); box-shadow: 0 0 0 1px var(--viz-navy); }
.ms b { display: block; font-family: var(--font-mono); font-size: 11.5px; color: var(--accent); margin-bottom: 3px; }

/* Fig 7: two masters */
.masters { display: grid; grid-template-columns: 150px 1fr 1fr 1.1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.m-row { display: contents; }
.masters .m-row > div { background: #FFFFFF; padding: 12px 14px; font-size: 14px; line-height: 1.5; color: var(--body); }
.masters .mh { background: var(--bg-soft); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted-2); }
.masters .mh.cpbao { color: var(--accent); }
.masters .mh.mccss { color: var(--viz-blue); }
.masters .rl { background: var(--bg-soft); font-weight: 600; color: var(--ink); }
.masters .write { background: var(--tint); color: var(--accent); }
.masters .gap { color: var(--faint); font-style: italic; }
.masters .m-row > div::before { display: none; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 4px; content: attr(data-h); }
.regime-head { margin-top: 24px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted-2); }
.regime { margin-top: 10px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.regime-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--bg-soft); }
.regime-card h4 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 15.5px; line-height: 1.3; }
.regime-card .reg { display: block; font-family: var(--font-mono); font-size: 11.5px; color: var(--accent); margin-top: 5px; }
.regime-card ul { margin: 10px 0 0; padding-left: 18px; }
.regime-card li { font-size: 13.5px; line-height: 1.5; color: var(--muted); margin-top: 4px; }

/* The five questions: checklist mini-app */
.ck-list { display: grid; gap: 10px; margin-top: 18px; }
.ck-item { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.ck-item p { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--ink); }
.ck-item .n { font-family: var(--font-mono); font-size: 12px; color: var(--accent); margin-right: 8px; }
.ck-opts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ck-opt { font: inherit; font-size: 13.5px; font-weight: 600; color: var(--body); background: #FFFFFF; border: 1px solid var(--btn-border); border-radius: 999px; padding: 6px 12px; cursor: pointer; transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease; }
.ck-opt:hover { border-color: var(--accent); color: var(--accent); }
.ck-opt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ck-opt[aria-pressed="true"] { color: #FFFFFF; border-color: var(--accent); background: var(--accent); }
.ck-opt[data-v="partly"][aria-pressed="true"] { background: var(--ord-1); border-color: var(--ord-1); color: var(--ink); }
.ck-opt[data-v="no"][aria-pressed="true"] { background: var(--muted-2); border-color: var(--muted-2); }
.ck-summary { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 18px; }
.ck-summary[hidden] { display: none; }
.ck-score { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ck-score b { font-family: var(--font-display); font-weight: 600; font-size: 30px; letter-spacing: -0.02em; line-height: 1; }
.ck-score span { font-size: 15px; color: var(--muted); }
.ck-bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 12px; }
.ck-bar i { height: 10px; border-radius: 4px; background: var(--line); display: block; transition: background 0.2s ease; }
.ck-bar i.yes { background: var(--viz-navy); }
.ck-bar i.partly { background: var(--ord-1); }
.ck-bar i.no { background: var(--viz-gray); }
.ck-gaps-head { margin: 16px 0 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted-2); }
.ck-gaps { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ck-gaps li { background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 14.5px; line-height: 1.5; color: var(--body); }
.ck-gaps li b { display: block; color: var(--ink); }
.ck-gaps li em { font-style: normal; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted-2); margin-left: 6px; }
.ck-actions { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 980px) {
  .post-card { grid-template-columns: 1fr; gap: 22px; }
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .hist-panel, .spectrum-detail { grid-template-columns: 1fr; }
  .tl-steps { display: flex; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
  .tl-step { flex: 0 0 168px; scroll-snap-align: start; }
  .tl-year.odd { display: none; }
  .shelf { grid-template-columns: 1fr 1fr; }
  .org { grid-template-columns: 1fr; }
  .redline { grid-template-columns: 1fr; }
  .ms-row { grid-template-columns: repeat(3, 1fr); }
  .regime { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .blog-hero { padding-top: 48px; padding-bottom: 40px; }
  .post { padding-top: 40px; padding-bottom: 64px; }
  .post-card { padding: 22px; }
  .blog-tiles { grid-template-columns: 1fr; }
  .figure-head, .figure-body { padding-left: 18px; padding-right: 18px; }
  .figure-foot, .fig-table-wrap { padding-left: 18px; padding-right: 18px; }
  .prose p, .prose li { font-size: 17px; }
  .spectrum { grid-template-columns: 1fr; }
  .spectrum-seg, .spectrum-seg:first-child, .spectrum-seg:last-child { border-radius: 10px; min-height: 0; }
  .spectrum-axis { flex-direction: column; gap: 4px; }
  .door-row { grid-template-columns: 1fr; gap: 8px; }
  .kpi-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .kpi-value { font-size: 28px; }
  .tap { display: none; } /* the SVG's labels shrink below legibility on phones; the KPI tiles carry the same facts */
  .forecast-row { grid-template-columns: 1fr; gap: 10px; }
  .finder { padding: 22px 18px; }
  .finder-opts { grid-template-columns: 1fr; }
  .finder-copy { grid-template-columns: 1fr; }
  .post-cta { grid-template-columns: 1fr; padding: 24px 22px; }
  .series-nav { grid-template-columns: 1fr; }
  .shelf { grid-template-columns: 1fr; }
  .shelf-doc { min-height: 0; }
  .quiz-q { grid-template-columns: 1fr; gap: 10px; }
  .roles { grid-template-columns: 1fr; }
  .org-box.layer { padding-right: 14px; }
  .org-x { position: static; transform: none; display: inline-block; margin-top: 6px; white-space: normal; }
  .org-chips { grid-template-columns: repeat(3, 1fr); }
  .ctl-row { grid-template-columns: 1fr; }
  .counter-kpis .kpi-row { grid-template-columns: 1fr; }
  .cmp-row { grid-template-columns: 1fr; gap: 4px; }
  .cmp-row b { text-align: left; }
  .flow-split { grid-template-columns: 1fr; }
  .ms-row { grid-template-columns: 1fr 1fr; }
  .ms-row::before { display: none; }
  .masters { display: block; background: none; border: 0; overflow: visible; }
  .m-row { display: block; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
  .m-row + .m-row { margin-top: 10px; }
  .m-row.head { display: none; }
  .masters .m-row > div { border-top: 1px solid var(--line-soft); }
  .masters .m-row > div:first-child { border-top: 0; }
  .masters .m-row > div::before { display: block; }
  .masters .rl::before { display: none; }
  .ck-item { grid-template-columns: 1fr; }
  .ck-opts { justify-content: flex-start; }
}

/* =====================================================================
   Blog · Part 2 ("I'm Just Consulting") — figure components
   ===================================================================== */

/* Fig 1: the fork */
.fork-top { text-align: center; }
.fork-root { display: inline-block; font-family: var(--font-display); font-weight: 600; font-size: 17px; background: var(--ink); color: #FFFFFF; border-radius: 999px; padding: 10px 18px; }
.fork-lines { display: block; width: 100%; height: 34px; }
.fork-lines path { fill: none; stroke: var(--btn-border); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.fork-branches { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fork-branch { border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; background: var(--bg-soft); }
.fork-branch.live { background: #FFFFFF; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.fork-who { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted-2); }
.fork-branch.live .fork-who { color: var(--accent); }
.fork-who em { font-style: normal; text-transform: none; letter-spacing: 0; color: var(--faint); }
.fork-branch h4 { font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -0.01em; line-height: 1.2; margin: 10px 0 0; }
.fork-branch p { font-size: 15px; line-height: 1.6; color: var(--body); margin: 8px 0 0; }
.fork-goto { display: inline-block; margin-top: 12px; font-family: var(--font-mono); font-size: 12px; color: var(--accent); }

/* Fig 2: task vs title */
.lines { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.line-panel { border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; background: var(--bg-soft); }
.line-panel.restricted { background: #FFFFFF; border-color: var(--ord-3); box-shadow: 0 0 0 1px var(--ord-3) inset; }
.line-status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted-2); }
.line-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--viz-gray); }
.line-panel.restricted .line-status { color: var(--ord-3); }
.line-panel.restricted .line-status i { background: var(--ord-3); }
.line-panel h4 { font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; margin: 8px 0 0; }
.words { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.word { display: inline-block; font-size: 14px; line-height: 1.35; padding: 6px 11px; border-radius: 999px; background: #FFFFFF; border: 1px solid var(--line); color: var(--ink); }
.word.locked { background: var(--ord-3); border-color: var(--ord-3); color: #FFFFFF; }
.word.soft { background: var(--ord-2); border-color: var(--ord-2); color: #FFFFFF; }
.word.warn { background: var(--ord-1); border-color: var(--ord-1); color: var(--ink); }
.line-src { font-size: 13px; line-height: 1.5; color: var(--muted-2); margin: 12px 0 0; }
.line-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 0; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
.line-divider::before, .line-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.exempt-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.exempt { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #FFFFFF; font-size: 14px; line-height: 1.4; }
.exempt b { flex: none; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; background: var(--line); color: var(--muted-2); }
.exempt.yes b { background: var(--viz-navy); color: #FFFFFF; }
.exempt small { display: block; color: var(--muted-2); font-size: 12.5px; margin-top: 2px; }
.asym { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.asym-card { border: 1px dashed var(--btn-border); border-radius: 10px; padding: 12px 14px; font-size: 14px; line-height: 1.5; color: var(--body); }
.asym-card b { display: block; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 4px; }

/* Fig 3: rings */
.rings { display: grid; grid-template-columns: 1fr 1.2fr; gap: 26px; align-items: start; }
.rings-art { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.rings-art svg { display: block; width: 100%; height: auto; }
.rings-art g[data-ring] { cursor: pointer; }
.rings-art .hl { fill: none; stroke: #FFFFFF; stroke-width: 3; opacity: 0; pointer-events: none; transition: opacity 0.2s ease; }
.rings-art g[data-ring="outside"] .hl { stroke: var(--accent); stroke-width: 2; }
.rings-art g.on .hl { opacity: 1; }
.ring-tabs { display: grid; gap: 6px; }
.ring-tab { --sw: var(--viz-gray); display: grid; grid-template-columns: 14px 1fr auto; gap: 12px; align-items: center; text-align: left; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease; }
.ring-tab i { width: 14px; height: 14px; border-radius: 50%; background: var(--sw); border: 1px solid rgba(28, 27, 26, 0.08); }
.ring-tab small { font-family: var(--font-mono); font-size: 11.5px; font-weight: 400; color: var(--muted-2); }
.ring-tab:hover { border-color: var(--accent); }
.ring-tab[aria-selected="true"] { border-color: var(--accent); background: var(--tint); box-shadow: 0 0 0 1px var(--accent) inset; }
.ring-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ring-panel { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; background: #FFFFFF; }
.ring-panel[hidden] { display: none; }
.ring-panel h4 { font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; margin: 0; }
.ring-panel .words { margin-top: 10px; }
.ring-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.ring-meta div { font-size: 14px; line-height: 1.5; color: var(--body); }
.ring-meta b { display: block; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 3px; }

/* Fig 4: three modes of service */
.modes { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.mode { --sw: var(--viz-gray); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #FFFFFF; }
.mode-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.mode-head i { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--sw); }
.mode-head b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.mode-head small { display: block; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted-2); margin-top: 2px; }
.mode-row { padding: 11px 16px; border-top: 1px solid var(--line-soft); }
.mode-head + .mode-row { border-top: 0; }
.mode-row b { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); font-weight: 500; }
.mode-row span { display: block; font-size: 14.5px; line-height: 1.5; color: var(--body); margin-top: 3px; }
.tip-strip { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; margin-top: 12px; background: var(--tint); border-radius: 12px; padding: 14px 18px; }
.tip-arrow { font-family: var(--font-mono); font-size: 12px; color: var(--accent); white-space: nowrap; }
.tip-strip p { font-size: 15px; line-height: 1.55; color: var(--accent); margin: 0; }

/* Fig 5: the mediator model toggle */
.med-toggle { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
.med-opt { font: inherit; font-size: 14.5px; font-weight: 600; color: var(--body); background: transparent; border: 0; border-radius: 9px; padding: 10px 16px; cursor: pointer; transition: background 0.15s ease, color 0.15s ease; }
.med-opt:hover { color: var(--accent); }
.med-opt[aria-checked="true"] { background: var(--accent); color: #FFFFFF; }
.med-opt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.med-stage { margin-top: 18px; }
.med-stage [data-when] { display: none; }
.med-stage[data-mode="consult"] [data-when="consult"], .med-stage[data-mode="supervise"] [data-when="supervise"] { display: block; }
.med-stage[data-mode="consult"] .med-badge[data-when="consult"], .med-stage[data-mode="supervise"] .med-badge[data-when="supervise"] { display: inline-block; }
.med-mode { display: flex; align-items: baseline; gap: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); }
.med-mode b { font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; color: var(--ink); }
.med-diagram { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 10px; align-items: stretch; margin-top: 14px; }
.med-node { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #FFFFFF; }
.med-node small { display: block; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted-2); }
.med-node b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 17px; margin-top: 4px; }
.med-sub { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.med-badge { display: inline-block; margin-top: 10px; font-family: var(--font-mono); font-size: 11.5px; border-radius: 6px; padding: 4px 8px; }
.med-badge.client { background: var(--viz-navy-wash); color: var(--accent); }
.med-badge.sup { background: var(--tint); color: var(--accent); }
.med-arrow { align-self: center; width: 150px; text-align: center; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.med-arrow i { display: block; position: relative; height: 2px; background: var(--faint); margin: 0 6px 8px; transition: background 0.2s ease; }
.med-arrow i::after { content: ""; position: absolute; right: -2px; top: -4px; border: 5px solid transparent; border-left-color: var(--faint); transition: border-color 0.2s ease; }
.med-stage[data-mode="supervise"] .med-arrow i { background: var(--viz-navy); }
.med-stage[data-mode="supervise"] .med-arrow i::after { border-left-color: var(--viz-navy); }
.med-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.med-fact { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.med-fact h4 { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); margin: 0; }
.med-fact p { font-size: 14px; line-height: 1.5; color: var(--body); margin: 6px 0 0; }

/* Fig 6: two layers */
.layer { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: var(--bg-soft); }
.layer-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.layer-head b { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.layer-head span { font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); }
.layer-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.layer.policy .layer-cards { grid-template-columns: 1fr 1fr; }
.lcard { background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; }
.lcard small { display: block; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted-2); }
.lcard b { display: block; font-size: 15px; line-height: 1.35; margin-top: 4px; }
.lcard p { font-size: 13.5px; line-height: 1.5; color: var(--muted); margin: 6px 0 0; flex: 1; }
.lcard .tag { align-self: flex-start; display: inline-block; margin-top: 10px; font-family: var(--font-mono); font-size: 11px; border-radius: 6px; padding: 3px 7px; background: var(--line-soft); color: var(--muted-2); }
.lcard .tag.on { background: var(--viz-navy-wash); color: var(--accent); }
.lcard .tag.legacy { background: rgba(74, 123, 201, 0.12); color: #35609F; }
.layer-gap { display: flex; align-items: center; gap: 12px; margin: 10px 0; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
.layer-gap::before, .layer-gap::after { content: ""; flex: 1; border-top: 1px dashed var(--btn-border); }
.drivers-head { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); margin-top: 18px; }
.drivers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.driver { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; font-size: 14.5px; line-height: 1.5; color: var(--body); }
.driver i { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #FFFFFF; font-family: var(--font-mono); font-size: 12px; font-style: normal; display: inline-flex; align-items: center; justify-content: center; }

/* The working test (inside .finder) */
.test-qs { display: grid; gap: 8px; margin-top: 18px; }
.test-q { display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: center; background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; transition: border-color 0.15s ease; }
.test-q.hit { border-color: var(--viz-navy); box-shadow: 0 0 0 1px var(--viz-navy) inset; }
.test-q i { font-family: var(--font-mono); font-size: 12px; font-style: normal; color: var(--muted-2); }
.test-q p { font-size: 15.5px; line-height: 1.45; color: var(--ink); margin: 0; }
.test-yn { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.test-yn button { font: inherit; font-size: 14px; font-weight: 600; color: var(--body); background: var(--bg-soft); border: 1px solid var(--btn-border); border-radius: 8px; padding: 7px 14px; min-width: 60px; cursor: pointer; transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease; }
.test-yn button:hover { border-color: var(--accent); color: var(--accent); }
.test-yn button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.test-yn button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.test-progress { font-family: var(--font-mono); font-size: 12px; color: var(--faint); margin-top: 10px; }
.test-hits { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.test-hits:empty { display: none; }

@media (max-width: 980px) {
  .fork-branches, .lines, .rings, .ring-meta, .asym { grid-template-columns: 1fr; }
  .fork-lines { display: none; }
  .fork-top { margin-bottom: 14px; }
  .exempt-strip { grid-template-columns: 1fr 1fr; }
  .modes { grid-template-columns: 1fr; }
  .med-facts { grid-template-columns: 1fr 1fr; }
  .layer-cards, .layer.policy .layer-cards, .drivers { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .exempt-strip, .med-facts { grid-template-columns: 1fr; }
  .line-divider, .layer-gap { white-space: normal; }
  .tip-strip { grid-template-columns: 1fr; gap: 8px; }
  .med-toggle { display: grid; width: 100%; }
  .med-diagram { grid-template-columns: 1fr; }
  .med-arrow { width: auto; padding: 4px 0; }
  .med-arrow i { width: 2px; height: 22px; margin: 0 auto 6px; }
  .med-arrow i::after { right: -4px; top: auto; bottom: -2px; border: 5px solid transparent; border-top-color: var(--faint); border-left-color: transparent; }
  .med-stage[data-mode="supervise"] .med-arrow i::after { border-top-color: var(--viz-navy); border-left-color: transparent; }
  .test-q { grid-template-columns: 26px 1fr; }
  .test-yn { grid-column: 2; }
}

/* =====================================================================
   Home · product screenshots (#product)
   Three app screenshots fanned at the foot of the section, as on the
   pre-2026 bxdata.ca home page: the session screen left, Deep Template
   Search in front, the program graph right. Static — nothing animates.
   The front shot is in flow and sets the stage height; the side shots
   hang off the bottom and run under a fade into the section background.
   The stage clips its own overflow, so the fan never widens the page.
   The screenshots show the app's own (green) UI — like every product
   image, they follow the app, not the site's navy.
   ===================================================================== */
#product .section-inner { padding-bottom: 0; }
.shots { position: relative; display: flex; justify-content: center; align-items: flex-end; margin: 56px calc(-1 * var(--pad-x)) 0; padding-top: 8px; overflow: hidden; }
.shot { margin: 0; border: 4px solid #FFFFFF; border-bottom: 0; border-radius: 14px 14px 0 0; background: #FFFFFF; box-shadow: 0 8px 30px rgba(28, 27, 26, 0.10); }
.shot img { display: block; width: 100%; height: auto; }
.shot-mid { position: relative; z-index: 2; width: min(420px, 36%); margin-bottom: 36px; box-shadow: 0 24px 48px -12px rgba(28, 27, 26, 0.28); }
.shot-left, .shot-right { position: absolute; bottom: -12px; z-index: 1; }
.shot-left { left: 22%; width: min(520px, 44%); transform: translateX(-50%); }
.shot-right { right: 22%; width: min(500px, 42%); transform: translateX(50%); }
.shots::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(to top, var(--bg-soft) 0%, rgba(250, 249, 247, 0.82) 45%, rgba(250, 249, 247, 0) 100%); z-index: 3; pointer-events: none; }
@media (max-width: 720px) {
  .shots { margin-top: 36px; }
  .shots::after { height: 80px; }
  .shot { border-width: 2px; border-radius: 10px 10px 0 0; }
  .shot-mid { width: 48%; margin-bottom: 24px; }
  .shot-left, .shot-right { bottom: -8px; }
  .shot-left { left: 26%; width: 64%; }
  .shot-right { right: 26%; width: 60%; }
}

