/* B Team (working title): a calm, confident draft.
   One system font stack. One accent colour (a deep teal). A light, airy page that is always light, whatever the reader's system says.
   Text on every background below is at least 4.5:1 (checked by scripts in the repository's scratchpad, see the README).
   The product pictures ("screens") are drawn in the product's own light palette inside a browser frame,
   the way a screenshot would. Nothing is fetched from elsewhere. */

:root {
  color-scheme: light;
  --bg: #fbfcfd;
  --surface: #ffffff;
  --text: #13202b;
  --muted: #475565;
  --line: #e5e9ee;
  --panel: #f5f7f9;
  --accent: #0c6a64;
  --accent-strong: #08504b;
  --accent-text: #ffffff;
  --accent-soft: #dcefec;
  --banner-bg: #fff1c2;
  --banner-text: #3b2a00;
  --measured-bg: #dcfce7;
  --measured-text: #14532d;
  --built-bg: #dbeafe;
  --built-text: #1e3a8a;
  --planned-bg: #ffedd5;
  --planned-text: #7c2d12;
  --open-bg: #ede9fe;
  --open-text: #4c1d95;
  --shadow: 0 1px 2px rgb(19 32 43 / 5%), 0 8px 24px rgb(19 32 43 / 6%);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.wrap {
  max-width: 66rem;
  margin: 0 auto;
  padding: 0 16px;
}

.prose {
  max-width: 42rem;
}

.skip {
  position: absolute;
  left: 16px;
  top: -4rem;
  background: var(--accent);
  color: var(--accent-text);
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  z-index: 10;
}

.skip:focus {
  top: 8px;
}

.banner {
  margin: 0;
  background: var(--banner-bg);
  color: var(--banner-text);
  border-bottom: 1px solid var(--line);
  padding: 0.5rem 16px;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Header and navigation */
header.site {
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 0 0.5rem;
  background: var(--bg);
}

.brand {
  display: inline-block;
  font-weight: 750;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 0.3rem;
}

.brand span {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.95rem;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 1rem;
}

nav li {
  margin: 0;
}

nav a {
  display: inline-block;
  padding: 0.3rem 0;
  color: var(--text);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  font-size: 0.9rem;
}

nav a:hover {
  border-bottom-color: var(--line);
}

nav a[aria-current="page"] {
  border-bottom-color: var(--accent);
  font-weight: 650;
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

main {
  padding-bottom: 2rem;
}

/* Type */
h1 {
  font-size: clamp(2rem, 5.2vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 750;
  margin: 0.4rem 0 1rem;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.45rem, 3.2vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -0.012em;
  font-weight: 700;
  margin: 0 0 0.7rem;
  text-wrap: balance;
}

h3 {
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 1.4rem 0 0.4rem;
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

li {
  margin-bottom: 0.4rem;
}

.eyebrow {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent-strong);
  margin: 0 0 0.5rem;
}

.lead {
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--text);
}

.muted {
  color: var(--muted);
}

.ask {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

.ask q {
  color: var(--text);
  font-style: italic;
}

/* Bands: the page is a stack of calm, generously spaced sections */
.band {
  padding: 3.4rem 0;
}

.band.tight {
  padding: 2.2rem 0;
}

.band.alt {
  background: var(--panel);
  border-block: 1px solid var(--line);
}

.band > .wrap > h2:first-child {
  margin-top: 0;
}

.section-intro {
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.1rem;
}

/* Hero */
.hero {
  padding: 3rem 0 2.4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 2rem;
  align-items: center;
}

.hero .sub {
  font-size: 1.2rem;
  line-height: 1.5;
  max-width: 36rem;
  color: var(--muted);
}

.hero-art {
  justify-self: center;
  width: 100%;
  max-width: 20rem;
}

.hero-shot {
  margin-top: 2.2rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
  align-items: center;
  margin: 1.4rem 0 0;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-text);
  text-decoration: none;
  font-weight: 650;
  padding: 0.75rem 1.3rem;
  border-radius: 8px;
  border: 2px solid var(--accent);
}

.btn:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: var(--accent-text);
}

.btn.ghost {
  background: transparent;
  color: var(--accent-strong);
}

.btn.ghost:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

/* Splits: text on one side, one picture on the other */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: 2.2rem;
  align-items: start;
}

.split.rev > :first-child {
  order: 2;
}

.split > * {
  min-width: 0;
}

.shots {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-width: 0;
}

/* The words "Design mockup. Not built yet. Example data." are not shown on each screen (Codrin, 2026-10-13); the footer says it. */

.rules h3 {
  margin-top: 1.4rem;
}

.rules ul {
  margin-bottom: 0.8rem;
}

/* The three steps */
.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step-row {
  padding: 1.6rem 0;
}

.step-row + .step-row {
  border-top: 1px solid var(--line);
}

.icon {
  width: 3rem;
  height: 3rem;
  display: block;
  margin-bottom: 0.6rem;
}

.ic {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ic-f {
  fill: var(--accent-soft);
  stroke: var(--accent);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ic-d {
  fill: var(--accent);
  stroke: none;
}

.art-f {
  fill: var(--accent-soft);
}

.art-l {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.art-s {
  fill: var(--surface);
  stroke: var(--accent);
  stroke-width: 2;
}

.art-d {
  fill: var(--accent);
}

.art-m {
  fill: none;
  stroke: var(--line);
  stroke-width: 2;
  stroke-dasharray: 3 6;
  stroke-linecap: round;
}

/* Cards */
.cards {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
}

.cards.five {
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}

.cards > li {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.2rem 1.2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cards h3 {
  margin: 0.2rem 0 0.2rem;
  font-size: 1.05rem;
}

.cards p {
  margin: 0 0 0.5rem;
  font-size: 0.97rem;
}

.cards .more {
  margin-top: auto;
  font-weight: 650;
  font-size: 0.95rem;
}

.cards .icon {
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 0.3rem;
}

.cards .qno {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}

.cards.roles > li {
  background: var(--panel);
  border-color: transparent;
}

.cards.others {
  margin-top: 1rem;
}

/* The AI mechanism */
.mech {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  margin: 1.6rem 0;
  padding: 0;
  list-style: none;
}

.mech > li {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mech h3 {
  margin: 0;
  font-size: 1.1rem;
}

.mech dl {
  margin: 0;
  display: grid;
  gap: 0.15rem;
}

.mech dt {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  margin-top: 0.4rem;
}

.mech dd {
  margin: 0;
  font-size: 0.97rem;
}

/* State tags: the word is always there, the colour only helps */
.state {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  border: 1px solid currentcolor;
  vertical-align: baseline;
}

.state.measured {
  background: var(--measured-bg);
  color: var(--measured-text);
}

.state.built {
  background: var(--built-bg);
  color: var(--built-text);
}

.state.planned {
  background: var(--planned-bg);
  color: var(--planned-text);
}

.state.open {
  background: var(--open-bg);
  color: var(--open-text);
}

.state.decided {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.checklist li {
  padding: 0.55rem 0 0.55rem 1.7rem;
  border-top: 1px solid var(--line);
  position: relative;
  margin: 0;
}

.checklist li:last-child {
  border-bottom: 1px solid var(--line);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 1.05rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--accent);
}

.placeholder {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--panel);
  border: 1px dashed var(--muted);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  overflow-wrap: anywhere;
}

/* Boxes */
.note,
.limit {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  margin: 1.4rem 0;
}

.limit {
  border-left-color: var(--planned-text);
}

.note h2,
.limit h2 {
  font-size: 1.1rem;
  margin: 0 0 0.4rem;
}

.note p:last-child,
.limit p:last-child,
.limit ul:last-child,
.note ul:last-child {
  margin-bottom: 0;
}

.answer {
  font-size: 1.3rem;
  line-height: 1.5;
  max-width: 44rem;
  margin-bottom: 0.8rem;
}

.standing {
  max-width: 44rem;
  color: var(--muted);
}

/* Empty slots for proof that does not exist yet: dashed, hatched, plainly empty. They must never pass for real proof. */
.slots {
  margin: 1.4rem 0;
}

.slots-note {
  max-width: 44rem;
  color: var(--muted);
}

.slot {
  border: 2px dashed var(--muted);
  border-radius: 10px;
  color: var(--muted);
  background: repeating-linear-gradient(135deg, transparent 0 10px, var(--line) 10px 11px);
  font-size: 0.95rem;
}

.slot-logos,
.slot-figs {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: grid;
  gap: 0.8rem;
}

.slot-logos {
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
}

.slot-figs {
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.slot-logo {
  margin: 0;
  min-height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.5rem;
}

.slot-fig {
  margin: 0;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.slot-val {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.2;
}

.slot-price {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 6px;
  border-width: 1px;
}

.slot-quote {
  margin: 1rem 0 0;
  padding: 1.2rem 1.4rem;
  font-style: italic;
  max-width: 44rem;
}

/* The call to action */
.next {
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2rem 1.6rem;
}

.next h2 {
  margin-top: 0;
}

.next p {
  max-width: 40rem;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 0.9rem 0;
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 1.08rem;
  padding: 0.1rem 0;
}

.faq details p {
  margin: 0.6rem 0 0;
  max-width: 44rem;
}

dl.levels dt {
  font-weight: 700;
  margin-top: 0.8rem;
}

dl.levels dd {
  margin: 0.1rem 0 0;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--line);
}

th {
  background: var(--panel);
  font-weight: 600;
}

td.num {
  white-space: nowrap;
}

tr:target td {
  background: var(--panel);
  outline: 2px solid var(--accent);
}

.section {
  border-top: 1px solid var(--line);
  margin-top: 1.8rem;
  padding-top: 0.6rem;
}

.section h2,
.section h3 {
  margin-top: 1rem;
}

.text-page p,
.text-page ul,
.text-page ol,
.text-page h1,
.text-page h2,
.text-page h3,
.text-page .next {
  max-width: 44rem;
}

.tech {
  margin-top: 2.4rem;
  padding-top: 0.3rem;
  border-top: 2px solid var(--line);
}

.tech h2 {
  font-size: 1.25rem;
  margin-top: 1rem;
}

.next-page {
  margin: 2.5rem 0 1rem;
  font-weight: 650;
}

/* The product pictures: a browser frame around an HTML and CSS drawing of the workspace.
   Each drawing is laid out at 56rem and scaled to its frame with container query units
   (1u is 1rem when the frame is 56rem wide), so it shrinks like a screenshot instead of reflowing. */
.shot {
  margin: 0;
}

.frame {
  container-type: inline-size;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #f7f9fb;
}

.frame-bar {
  --u: calc(100cqw / 56);
  display: flex;
  align-items: center;
  gap: calc(0.4 * var(--u));
  padding: calc(0.55 * var(--u)) calc(0.8 * var(--u));
  background: #f1f4f7;
  border-bottom: 1px solid #e3e8ee;
  color: #44525f;
  font-size: calc(0.78 * var(--u));
}

.frame-bar .dot {
  width: calc(0.62 * var(--u));
  height: calc(0.62 * var(--u));
  border-radius: 50%;
  background: #cfd6de;
  flex-shrink: 0;
}

.frame-bar .addr {
  margin-left: calc(0.6 * var(--u));
  background: #ffffff;
  border: 1px solid #e3e8ee;
  border-radius: 999px;
  padding: calc(0.12 * var(--u)) calc(0.8 * var(--u));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.shot figcaption {
  margin-top: 0.7rem;
  font-size: 0.93rem;
  color: var(--muted);
  max-width: 44rem;
}

/* ---- Inside the picture: the product's own palette, scaled with its frame ---- */
.screen {
  --u: calc(100cqw / 56);
  display: flex;
  background: #f7f9fb;
  color: #17202a;
  font-size: calc(0.8 * var(--u));
  line-height: 1.45;
  text-align: left;
}

.screen * {
  box-sizing: border-box;
}

.screen p,
.screen h2,
.screen h3,
.screen ul {
  margin: 0;
}

.s-side {
  width: calc(11 * var(--u));
  flex-shrink: 0;
  background: #ffffff;
  border-right: 1px solid #e3e8ee;
  color: #17202a;
  padding: calc(0.9 * var(--u)) calc(0.6 * var(--u));
  display: flex;
  flex-direction: column;
  gap: calc(0.15 * var(--u));
}

.s-brand {
  display: flex;
  align-items: center;
  gap: calc(0.4 * var(--u));
  padding: 0 calc(0.4 * var(--u)) calc(0.5 * var(--u));
  font-size: calc(1.05 * var(--u));
  font-weight: 700;
}

.s-nv {
  display: flex;
  align-items: center;
  gap: calc(0.5 * var(--u));
  padding: calc(0.4 * var(--u)) calc(0.5 * var(--u));
  border-radius: calc(6 / 16 * var(--u));
  color: #17202a;
}

.s-nv.on {
  background: #e8f0fb;
  color: #1d5fa8;
  font-weight: 700;
}

/* The two-level menu: top-level items across projects, a small label, the project's name, then its sections. */
.s-nv.top {
  font-weight: 700;
}

.s-nv.sec {
  padding: calc(0.22 * var(--u)) calc(0.5 * var(--u));
}

.s-nlbl {
  margin-top: calc(0.6 * var(--u));
  padding: 0 calc(0.5 * var(--u));
  font-size: calc(0.6 * var(--u));
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #44525f;
  font-weight: 700;
}

.s-proj {
  padding: 0 calc(0.5 * var(--u)) calc(0.3 * var(--u));
  font-weight: 700;
  line-height: 1.3;
}

.s-main {
  flex: 1;
  min-width: 0;
  padding: calc(0.9 * var(--u)) calc(1 * var(--u));
  display: flex;
  flex-direction: column;
  gap: calc(0.7 * var(--u));
}

.s-eb {
  font-size: calc(0.65 * var(--u));
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #44525f;
  font-weight: 700;
}

.s-h1 {
  font-size: calc(1.35 * var(--u));
  line-height: 1.2;
  font-weight: 700;
}

.s-h2 {
  font-size: calc(0.95 * var(--u));
  line-height: 1.3;
  font-weight: 700;
}

.s-sub {
  color: #44525f;
}

.s-strong {
  font-weight: 700;
}

.s-mono {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: calc(0.72 * var(--u));
}

.s-card {
  background: #fff;
  border: 1px solid #e3e8ee;
  border-radius: calc(8 / 16 * var(--u));
  padding: calc(0.75 * var(--u)) calc(0.9 * var(--u));
  display: flex;
  flex-direction: column;
  gap: calc(0.4 * var(--u));
  min-width: 0;
}

.s-card.warn {
  border: 2px solid #9a4a00;
}

.s-card.tint {
  background: #fdf9f2;
  border-color: #e3c79d;
}

.s-card.ok {
  border: 2px solid #1b5e34;
}

/* Overview: a compact card for each section, a header with the role switch at its right, and a name beside its chip. */
.s-card.compact {
  padding: calc(0.5 * var(--u)) calc(0.65 * var(--u));
  gap: calc(0.2 * var(--u));
  font-size: calc(0.7 * var(--u));
}

.s-btns.s-spread {
  justify-content: space-between;
  align-items: flex-end;
}

/* Vision: a row that stacks its lines, a row that may wrap its buttons, and a numbered list. */
.s-row.s-stack {
  flex-direction: column;
  align-items: stretch;
  gap: calc(0.2 * var(--u));
}

.s-row.s-wrap {
  flex-wrap: wrap;
}

.s-ol {
  margin: 0;
  padding-left: calc(1.3 * var(--u));
  display: flex;
  flex-direction: column;
  gap: calc(0.25 * var(--u));
}

.s-btns.s-tight {
  align-items: baseline;
  gap: calc(0.3 * var(--u));
}

.s-big {
  font-size: calc(1.5 * var(--u));
  line-height: 1.2;
  font-weight: 700;
}

.s-big.warn {
  color: #7a3a00;
}

.s-g2,
.s-g3,
.s-g4,
.s-g5 {
  display: grid;
  gap: calc(0.6 * var(--u));
}

.s-g2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.s-g3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.s-g4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.s-g5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.s-row {
  display: flex;
  gap: calc(0.6 * var(--u));
  align-items: center;
  border-top: 1px solid #e3e8ee;
  padding: calc(0.5 * var(--u)) 0;
}

.s-row > .s-grow {
  flex: 1;
  min-width: 0;
}

.s-chip {
  display: inline-block;
  font-size: calc(0.65 * var(--u));
  font-weight: 700;
  border-radius: calc(10 / 16 * var(--u));
  padding: calc(0.05 * var(--u)) calc(0.5 * var(--u));
  border: 1px solid;
  white-space: nowrap;
  line-height: 1.5;
}

.s-chip.real,
.s-chip.ok {
  color: #1b5e34;
  border-color: #1b5e34;
  background: #eef7f1;
}

.s-chip.ex {
  color: #44525f;
  border-color: #8795a3;
  background: #f3f5f7;
}

.s-chip.warn {
  color: #7a3a00;
  border-color: #9a4a00;
  background: #fdf3e6;
}

.s-chip.no {
  color: #8a1c1c;
  border-color: #8a1c1c;
  background: #fdeeee;
}

.s-chip.act {
  color: #124275;
  border-color: #1d5fa8;
  background: #eaf1f9;
}

.s-chip.nav {
  color: #44525f;
  border-color: #8795a3;
}

.s-btn {
  display: inline-block;
  padding: calc(0.35 * var(--u)) calc(0.75 * var(--u));
  border: 1px solid #8795a3;
  background: #fff;
  color: #17202a;
  border-radius: calc(6 / 16 * var(--u));
  font-size: calc(0.78 * var(--u));
  white-space: nowrap;
}

.s-btn.p {
  background: #1d5fa8;
  border-color: #1d5fa8;
  color: #fff;
  font-weight: 700;
}

.s-btn.w {
  border-color: #9a4a00;
  color: #7a3a00;
  font-weight: 700;
}

.s-btn.off {
  opacity: 0.55;
}

.s-btns {
  display: flex;
  gap: calc(0.4 * var(--u));
  flex-wrap: wrap;
}

.s-inp {
  border: 1px solid #8795a3;
  border-radius: calc(6 / 16 * var(--u));
  background: #fff;
  padding: calc(0.4 * var(--u)) calc(0.6 * var(--u));
  color: #17202a;
}

.s-inp.area {
  min-height: calc(4.2 * var(--u));
}

.s-note {
  background: #fdf3e6;
  border: 1px solid #e3c79d;
  border-radius: calc(8 / 16 * var(--u));
  padding: calc(0.6 * var(--u)) calc(0.8 * var(--u));
  color: #33281a;
}

.s-info {
  background: #eaf1f9;
  border: 1px solid #b5cde8;
  border-radius: calc(8 / 16 * var(--u));
  padding: calc(0.6 * var(--u)) calc(0.8 * var(--u));
}

.s-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: calc(0.78 * var(--u));
}

.s-tbl th {
  background: transparent;
  color: #44525f;
  font-size: calc(0.65 * var(--u));
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0 calc(0.5 * var(--u)) calc(0.4 * var(--u)) 0;
  font-weight: 700;
  border: 0;
}

.s-tbl td {
  padding: calc(0.5 * var(--u)) calc(0.5 * var(--u)) calc(0.5 * var(--u)) 0;
  border-top: 1px solid #e3e8ee;
  border-bottom: 0;
  vertical-align: top;
}

.s-barrow {
  display: flex;
  align-items: center;
  gap: calc(0.5 * var(--u));
}

.s-track {
  flex: 1;
  height: calc(0.5 * var(--u));
  background: #e3e8ee;
  border-radius: calc(4 / 16 * var(--u));
}

.s-fill {
  height: calc(0.5 * var(--u));
  background: #1d5fa8;
  border-radius: calc(4 / 16 * var(--u));
}

.w0 {
  width: 0;
}

.w49 {
  width: 49%;
}

.s-lane {
  background: #e6ebf0;
  border-radius: calc(8 / 16 * var(--u));
  padding: calc(0.6 * var(--u));
  display: flex;
  flex-direction: column;
  gap: calc(0.6 * var(--u));
  min-width: 0;
}

.s-task {
  background: #fff;
  border: 1px solid #c3ccd6;
  border-radius: calc(7 / 16 * var(--u));
  padding: calc(0.6 * var(--u));
  display: flex;
  flex-direction: column;
  gap: calc(0.35 * var(--u));
  min-width: 0;
}

.s-task.refused {
  border: 2px solid #8a1c1c;
}

.s-refuse {
  border: 1px solid #8a1c1c;
  background: #fdeeee;
  border-radius: calc(6 / 16 * var(--u));
  padding: calc(0.4 * var(--u)) calc(0.5 * var(--u));
  color: #5d1212;
}

.s-kv {
  display: grid;
  grid-template-columns: calc(6 * var(--u)) minmax(0, 1fr);
  gap: calc(0.1 * var(--u)) calc(0.6 * var(--u));
  color: #44525f;
}

.s-check {
  display: inline-block;
  width: calc(1 * var(--u));
  height: calc(1 * var(--u));
  border: 2px solid #44525f;
  border-radius: calc(3 / 16 * var(--u));
  flex-shrink: 0;
  vertical-align: middle;
}

.s-check.on {
  background: #1d5fa8;
  border-color: #1d5fa8;
}

.s-seg {
  display: inline-flex;
  border: 1px solid #8795a3;
  border-radius: calc(6 / 16 * var(--u));
  overflow: hidden;
}

.s-seg span {
  padding: calc(0.3 * var(--u)) calc(0.6 * var(--u));
  background: #fff;
  border-right: 1px solid #8795a3;
  white-space: nowrap;
}

.s-seg span:last-child {
  border-right: 0;
}

.s-seg span.on {
  background: #1d5fa8;
  color: #fff;
  font-weight: 700;
}

.s-models {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: calc(0.5 * var(--u));
}

.s-model {
  border: 1px solid #c3ccd6;
  border-radius: calc(7 / 16 * var(--u));
  padding: calc(0.55 * var(--u));
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: calc(0.3 * var(--u));
  font-size: calc(0.7 * var(--u));
  min-width: 0;
}

.s-model.off {
  background: #f0f2f4;
}

.s-model strong {
  overflow-wrap: anywhere;
}

.s-charts {
  display: flex;
  align-items: flex-end;
  gap: calc(0.4 * var(--u));
  height: calc(5.2 * var(--u));
}

.s-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: calc(0.15 * var(--u));
  height: 100%;
  color: #44525f;
  font-size: calc(0.65 * var(--u));
}

.s-bar {
  width: 100%;
  background: #1d5fa8;
  border-radius: calc(3 / 16 * var(--u)) calc(3 / 16 * var(--u)) 0 0;
}

.b4 { height: calc(4 / 16 * var(--u)); }
.b8 { height: calc(8 / 16 * var(--u)); }
.b12 { height: calc(12 / 16 * var(--u)); }
.b16 { height: calc(16 / 16 * var(--u)); }
.b20 { height: calc(20 / 16 * var(--u)); }
.b24 { height: calc(24 / 16 * var(--u)); }
.b28 { height: calc(28 / 16 * var(--u)); }
.b32 { height: calc(32 / 16 * var(--u)); }
.b36 { height: calc(36 / 16 * var(--u)); }
.b40 { height: calc(40 / 16 * var(--u)); }
.b44 { height: calc(44 / 16 * var(--u)); }
.b48 { height: calc(48 / 16 * var(--u)); }
.b52 { height: calc(52 / 16 * var(--u)); }
.b56 { height: calc(56 / 16 * var(--u)); }
.b60 { height: calc(60 / 16 * var(--u)); }
.b64 { height: calc(64 / 16 * var(--u)); }

.s-timeline {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.s-tl-pt {
  flex: 0 0 30%;
  min-width: 0;
}

.s-tl-pt.mid {
  text-align: center;
}

.s-tl-pt.end {
  text-align: right;
}

.s-tl-dot {
  display: block;
  width: calc(0.8 * var(--u));
  height: calc(0.8 * var(--u));
  border-radius: 50%;
  background: #1f2a37;
}

.s-tl-pt.mid .s-tl-dot {
  background: #1d5fa8;
  margin: 0 auto;
}

.s-tl-pt.end .s-tl-dot {
  background: #c3ccd6;
  margin-left: auto;
}

.s-tl-line {
  flex: 1;
  height: calc(3 / 16 * var(--u));
  background: #8795a3;
  margin-top: calc(0.27 * var(--u));
  min-width: calc(1 * var(--u));
}

.s-tl-line.light {
  background: #c3ccd6;
}

.s-level {
  border: 2px solid #9a4a00;
  background: #fdf3e6;
  border-radius: calc(8 / 16 * var(--u));
  padding: calc(0.7 * var(--u)) calc(0.8 * var(--u));
}

.s-level .s-lead {
  font-size: calc(1 * var(--u));
  font-weight: 700;
  margin: calc(0.15 * var(--u)) 0 calc(0.3 * var(--u));
}

.s-box {
  border: 1px solid #e3e8ee;
  border-radius: calc(7 / 16 * var(--u));
  padding: calc(0.55 * var(--u)) calc(0.7 * var(--u));
  display: flex;
  flex-direction: column;
  gap: calc(0.25 * var(--u));
  min-width: 0;
}

.s-aside {
  width: 38%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: calc(0.6 * var(--u));
}

.s-cols {
  display: flex;
  gap: calc(0.8 * var(--u));
  align-items: flex-start;
}

.s-cols > .s-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: calc(0.6 * var(--u));
}

footer.site {
  border-top: 1px solid var(--line);
  padding: 2.4rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.93rem;
  background: var(--panel);
}

footer.site a {
  color: var(--accent-strong);
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1.4rem;
  margin-bottom: 1.4rem;
}

.foot-cols h2 {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 0.5rem;
}

.foot-cols ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.foot-cols li {
  margin: 0 0 0.3rem;
}

footer.site p {
  margin-bottom: 0.5rem;
  max-width: 48rem;
}

@media (max-width: 52rem) {
  .hero-grid,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .split.rev > :first-child {
    order: 0;
  }

  .hero-art {
    max-width: 14rem;
    justify-self: start;
  }
}

/* On a phone, tables become cards and the pictures scale down as a whole, so nothing scrolls sideways. */
@media (max-width: 40rem) {
  .band {
    padding: 2.4rem 0;
  }

  table.stack,
  table.stack tbody,
  table.stack tr,
  table.stack td {
    display: block;
    width: 100%;
  }

  table.stack thead {
    position: absolute;
    left: -9999px;
  }

  table.stack tr {
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-bottom: 0.8rem;
    padding: 0.3rem 0;
  }

  table.stack td {
    border-bottom: 0;
    padding: 0.25rem 0.8rem;
  }

  table.stack td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
  }

  .answer {
    font-size: 1.15rem;
  }
}
