/* Wofanu landing template
   Layout: one 1232px column. The hero pairs the promise with a map of one change; every later section carries one exhibit.
   Dark-first: the brand's ground is night blue. The light theme mirrors every token. Orange marks the code under review and nothing else. */

/* Self-hosted Recursive (SIL OFL 1.1, see fonts/OFL.txt). Full axes: wght 300-1000, slnt, CASL, CRSV, MONO. */
@font-face {
  font-family: "Recursive";
  font-style: oblique 0deg 15deg;
  font-weight: 300 1000;
  font-display: swap;
  src: url("fonts/recursive-latin-full-normal.woff2") format("woff2-variations"), url("fonts/recursive-latin-full-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Recursive";
  font-style: oblique 0deg 15deg;
  font-weight: 300 1000;
  font-display: swap;
  src: url("fonts/recursive-latin-ext-full-normal.woff2") format("woff2-variations"), url("fonts/recursive-latin-ext-full-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Color: night ground, two panels, three text strengths, one subject orange */
  --ground: #0B1220;
  --surface: #131D31;
  --surface-2: #0F1829;
  --sunk: #0D1526;
  --line: #26344F;
  --line-strong: #3A4B6B;
  --text: #EAF0F7;
  --text-2: #C3CEDD;
  --muted: #8E9BB3;
  --subject: #FF6B3D;
  --dot: #FF6B3D;
  --island: #121B2F;
  --island-line: #22304A;
  --tick: #26344F;
  --cross: #2A3958;
  --btn-bg: #EAF0F7;
  --btn-fg: #0B1220;
  --btn-hover: #FFFFFF;
  --focus: #EAF0F7;
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.25), 0 24px 48px -32px rgba(0, 0, 0, 0.7);
  --sun-display: block;
  --moon-display: none;

  /* The merge-request illustration imitates a code host's light interface in both themes */
  --mr-bg: #FFFFFF;
  --mr-text: #1F2430;
  --mr-muted: #59606E;
  --mr-line: #D7DDE5;
  --mr-code: #F3F5F8;
  --mr-link: #1F5FAD;
  --mr-add: #EAF6EE;
  --mr-add-gutter: #D3ECDB;
  --mr-del: #FBEDED;
  --mr-del-gutter: #F5D8D8;

  /* Type: Recursive in three voices. Casual for names and headings, Linear for reading, Mono for code and labels */
  --font: "Recursive", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Recursive", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-host: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-host-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --casual: "CASL" 0.5, "MONO" 0, "CRSV" 0.5;
  --semi: "CASL" 0.2, "MONO" 0, "CRSV" 0.5;
  --linear: "CASL" 0, "MONO" 0, "CRSV" 0.5;
  --mono: "CASL" 0, "MONO" 1, "CRSV" 0.5;
  --mono-italic: "CASL" 0.2, "MONO" 1, "CRSV" 1, "slnt" -12;

  --fs-display: clamp(2.6rem, 1.55rem + 4.2vw, 4.6rem);
  --fs-h2: clamp(1.8rem, 1.35rem + 1.9vw, 2.75rem);
  --fs-h3: 1.25rem;
  --fs-lead: clamp(1.125rem, 1.04rem + 0.4vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-meta: 0.8125rem;
  --fs-label: 0.75rem;
  --radius: 14px;
  --radius-s: 8px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --ground: #F4F6F9;
    --surface: #FFFFFF;
    --surface-2: #EDF1F6;
    --sunk: #F8FAFC;
    --line: #D5DCE6;
    --line-strong: #A9B5C7;
    --text: #0B1220;
    --text-2: #27344D;
    --muted: #4F5C74;
    --subject: #B93D10;
    --dot: #FF6B3D;
    --island: #EAEFF6;
    --island-line: #D2DAE6;
    --tick: #C9D2DF;
    --cross: #C3CCDA;
    --btn-bg: #0B1220;
    --btn-fg: #F4F6F9;
    --btn-hover: #26344F;
    --focus: #0B1220;
    --shadow: 0 1px 0 rgba(11, 18, 32, 0.04), 0 24px 48px -30px rgba(11, 18, 32, 0.28);
    --sun-display: none;
    --moon-display: block;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --ground: #F4F6F9;
  --surface: #FFFFFF;
  --surface-2: #EDF1F6;
  --sunk: #F8FAFC;
  --line: #D5DCE6;
  --line-strong: #A9B5C7;
  --text: #0B1220;
  --text-2: #27344D;
  --muted: #4F5C74;
  --subject: #B93D10;
  --dot: #FF6B3D;
  --island: #EAEFF6;
  --island-line: #D2DAE6;
  --tick: #C9D2DF;
  --cross: #C3CCDA;
  --btn-bg: #0B1220;
  --btn-fg: #F4F6F9;
  --btn-hover: #26344F;
  --focus: #0B1220;
  --shadow: 0 1px 0 rgba(11, 18, 32, 0.04), 0 24px 48px -30px rgba(11, 18, 32, 0.28);
  --sun-display: none;
  --moon-display: block;
  color-scheme: light;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-variation-settings: var(--linear);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { margin: 0; font-weight: 800; font-variation-settings: var(--casual); letter-spacing: -0.015em; line-height: 1.1; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
code, .mono { font-family: var(--font-mono); font-variation-settings: var(--mono); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap {
  width: 100%;
  max-width: 1232px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.skip {
  position: absolute;
  left: max(16px, env(safe-area-inset-left, 0px));
  top: -80px;
  z-index: 40;
  background: var(--text);
  color: var(--ground);
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: var(--fs-small);
}
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

/* Lockup: wordmark plus the call mark */
.lockup { display: inline-flex; align-items: center; gap: 0.032em; line-height: 1; color: var(--text); }
.wordmark { font-weight: 800; font-variation-settings: var(--casual); letter-spacing: -0.01em; }
.mark { width: 1.397em; height: 0.98em; position: relative; top: 0.07em; flex: none; display: block; }
.mark .c { fill: var(--text); stroke: var(--text); stroke-width: 1.8; stroke-linejoin: round; }
.mark .d { fill: var(--dot); }

/* Buttons and links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: var(--font);
  font-variation-settings: var(--semi);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-primary:hover { background: var(--btn-hover); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--muted); }
.btn-secondary:hover { border-color: var(--text); }
.btn-small { min-height: 40px; padding: 0 14px; font-size: var(--fs-small); white-space: nowrap; }
.text-link { color: var(--text); font-weight: 600; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.text-link:hover { text-decoration-thickness: 2px; }

/* Capability markers. Product preview: dashed, like a relation not yet established. Real example: solid. */
.marker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  font-family: var(--font-mono);
  font-variation-settings: var(--mono);
  font-size: 12px;
  line-height: 1.3;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: 999px;
  padding: 3px 10px 3px 8px;
  white-space: nowrap;
}
.marker svg { width: 10px; height: 10px; flex: none; }
.marker .ring { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-dasharray: 2 2; }
.marker-real { border-style: solid; color: var(--text-2); }
.marker-real .ring { stroke-dasharray: none; }
.marker-real .core { fill: currentColor; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.nav-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 28px;
  padding-block: 14px;
}
.brand { display: inline-flex; text-decoration: none; font-size: 1.6rem; border-radius: 6px; }
.nav-links { justify-self: end; display: flex; align-items: center; gap: 24px; font-size: var(--fs-small); }
.nav-links a { text-decoration: none; color: var(--text-2); padding-block: 10px; white-space: nowrap; }
.nav-links a:hover { color: var(--text); }
.nav-tools { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  padding: 0;
}
.icon-btn:hover { border-color: var(--line); color: var(--text); }
.icon-btn svg { width: 20px; height: 20px; }
.i-sun { display: var(--sun-display); }
.i-moon { display: var(--moon-display); }
.lang { position: relative; }
.lang summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  color: var(--text-2);
  font-family: var(--font-mono);
  font-variation-settings: var(--mono);
  font-size: 13px;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { border-color: var(--line); color: var(--text); }
.lang summary svg { width: 18px; height: 18px; }
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  min-width: 184px;
  list-style: none;
  margin: 0;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.lang-menu button {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  font-family: var(--font);
  font-variation-settings: var(--linear);
  font-size: var(--fs-small);
}
.lang-menu button span { font-family: var(--font-mono); font-variation-settings: var(--mono); font-size: 12px; color: var(--muted); }
.lang-menu button:hover, .lang-menu button[aria-current="true"] { background: var(--surface-2); }
@media (max-width: 880px) {
  .nav-bar { grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; padding-block: 12px 4px; }
  .nav-links { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; gap: 22px; overflow-x: auto; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
}
@media (max-width: 480px) {
  .nav-cta { display: none; }
  .brand { font-size: 1.4rem; }
}

/* Hero */
.hero { padding-block: clamp(36px, 6.5vw, 88px) clamp(56px, 8vw, 104px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 1040px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
.hero-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; max-width: 620px; padding-top: clamp(0px, 2vw, 24px); }
.eyebrow { font-family: var(--font-mono); font-variation-settings: var(--mono); font-size: var(--fs-meta); color: var(--muted); letter-spacing: 0.02em; }
.hero h1 { font-size: var(--fs-display); line-height: 1.02; letter-spacing: -0.03em; }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--text-2); max-width: 56ch; }
.evidence-line { color: var(--muted); font-size: var(--fs-small); max-width: 56ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 2px; }
.availability { display: grid; gap: 8px; max-width: 580px; }
.availability-box { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.notice-frame { display: block; width: 100%; height: 72px; border: 0; background: var(--surface); }
@media (max-width: 560px) { .notice-frame { height: 104px; } }
.availability-link { width: fit-content; font-size: var(--fs-small); color: var(--text-2); text-underline-offset: 4px; }
.availability-link:hover { color: var(--text); }

/* Change map figure */
.change-map { margin: 0; min-width: 0; display: grid; gap: 12px; }
.figure-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.repo { font-family: var(--font-mono); font-variation-settings: var(--mono); font-size: 12px; color: var(--muted); }
.map { display: block; width: 100%; height: auto; }
.map .frame { fill: var(--sunk); stroke: var(--line); }
.map .tick { fill: none; stroke: var(--tick); stroke-width: 1; }
.map .cross { fill: none; stroke: var(--cross); stroke-width: 1; }
.map .island { fill: var(--island); stroke: var(--island-line); }
.map .l-solid { fill: none; stroke: var(--text); stroke-width: 1.5; stroke-linecap: round; }
.map .l-cand { fill: none; stroke: var(--text); stroke-width: 1.5; stroke-dasharray: 5 4; }
.map .l-ref { fill: none; stroke: var(--muted); stroke-width: 1.25; stroke-linecap: round; }
.map .l-gap { fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 0.1 5; }
.map .head, .map .node { fill: var(--text); }
.map .node-muted { fill: var(--muted); }
.map .node-open { fill: var(--sunk); stroke: var(--muted); stroke-width: 1.5; }
.map .badge { fill: var(--sunk); stroke: var(--line); }
.map text { font-family: var(--font-mono); font-variation-settings: var(--mono); }
.map .badge-t { fill: var(--muted); font-size: 10px; }
.map .mod { fill: var(--muted); font-size: 10.5px; }
.map .sym { fill: var(--text); font-size: 12px; }
.map .sym-muted { fill: var(--muted); font-size: 12px; }
.map .subject { fill: var(--subject); font-size: 12px; font-weight: 650; }
.map .c { fill: var(--text); stroke: var(--text); stroke-width: 1.8; stroke-linejoin: round; }
.map .d { fill: var(--dot); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-family: var(--font-mono); font-variation-settings: var(--mono); font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend svg { width: 22px; height: 10px; flex: none; }
.g-line { fill: none; stroke: var(--text); stroke-width: 1.5; stroke-linecap: round; }
.g-dash { fill: none; stroke: var(--text); stroke-width: 1.5; stroke-dasharray: 4 3; }
.g-head, .g-square { fill: var(--text); }
.g-ref { fill: none; stroke: var(--muted); stroke-width: 1.25; stroke-linecap: round; }
.g-gap { fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 0.1 4; }
.g-open { fill: none; stroke: var(--muted); stroke-width: 1.4; }
.g-dot { fill: var(--dot); }
.links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  font-family: var(--font-mono);
  font-variation-settings: var(--mono);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.links { counter-reset: link; }
.links li {
  counter-increment: link;
  display: grid;
  grid-template-columns: 1.4rem 8.6rem minmax(0, 1fr) auto;
  column-gap: 10px;
  padding: 7px 2px;
  border-bottom: 1px solid var(--line);
}
.links li::before { content: counter(link); color: var(--muted); }
.links .rel.nested::before { content: ""; display: inline-block; width: 0.55em; height: 0.6em; margin: 0 0.45em 0.2em 0.15em; border-left: 1px solid currentColor; border-bottom: 1px solid currentColor; vertical-align: middle; }
.links .rel, .links .note { font-variation-settings: var(--mono-italic); }
.links .sym { color: var(--text); overflow-wrap: anywhere; }
.links .sym.is-muted { color: var(--muted); }
.links .loc { text-align: right; }
.links .note { grid-column: 3 / -1; }
.map-caption { font-size: var(--fs-meta); color: var(--muted); }
.map .badge-g { transform-box: fill-box; transform-origin: center; }
@media (max-width: 600px) {
  .links li { grid-template-columns: 1.4rem minmax(0, 1fr); }
  .links .rel, .links .sym, .links .loc, .links .note { grid-column: 2; }
  .links .loc { text-align: left; }
  /* On phones the map keeps its shape and numbers; the numbered list below carries the names */
  .map .sym, .map .sym-muted, .map .subject { display: none; }
  .map .mod { font-size: 18px; }
  .map .badge-g { transform: scale(1.7); }
}

/* Report content keeps its original language; this note appears when the interface language differs */
.original-notice { font-size: var(--fs-meta); color: var(--muted); margin-bottom: 4px; }

/* Template placeholders: the owner supplies these values before release (see README) */
.ph { outline: 1px dashed var(--muted); outline-offset: 2px; border-radius: 3px; }

/* Sections */
.section { padding-block: clamp(64px, 9vw, 120px); border-top: 1px solid var(--line); scroll-margin-top: 8px; }
.section-head { display: grid; gap: 14px; justify-items: start; max-width: 780px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head h2 { font-size: var(--fs-h2); }
.section-intro { font-size: var(--fs-lead); line-height: 1.55; color: var(--text-2); max-width: 62ch; }
.label { font-family: var(--font-mono); font-variation-settings: var(--mono); font-size: var(--fs-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* Why now */
.why { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.why .section-head { margin-bottom: 0; }
@media (max-width: 960px) { .why { grid-template-columns: minmax(0, 1fr); } }
.converge { display: grid; grid-template-columns: auto 96px minmax(0, auto); align-items: center; justify-content: start; }
.converge-sources { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.converge-sources li {
  height: 40px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--font-mono);
  font-variation-settings: var(--mono);
  font-size: 13px;
  color: var(--text-2);
  white-space: nowrap;
}
.converge-lines { width: 96px; height: 190px; display: block; }
.converge-lines path { fill: none; stroke: var(--line-strong); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.converge-target {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--text);
  border-radius: 12px;
  font-weight: 650;
  font-variation-settings: var(--semi);
  font-size: var(--fs-small);
  background: var(--surface);
  white-space: nowrap;
}
.converge-target .mark { font-size: 1.3rem; top: 0; }
@media (max-width: 640px) {
  .converge { grid-template-columns: minmax(0, 1fr); row-gap: 14px; }
  .converge-lines { display: none; }
  .converge-sources { display: flex; flex-wrap: wrap; }
  .converge-target { justify-self: start; }
}

/* What Wofanu is built to do */
.benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px clamp(28px, 4vw, 56px); }
@media (max-width: 760px) { .benefits { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.benefit { border-top: 2px solid var(--text); padding-top: 18px; display: grid; gap: 10px; align-content: start; }
.benefit-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 12px; }
.benefit h3 { font-size: var(--fs-h3); }
.benefit p { color: var(--text-2); max-width: 48ch; }
.rule-panel {
  margin-top: clamp(40px, 5vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 48px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 32px);
}
@media (max-width: 860px) { .rule-panel { grid-template-columns: minmax(0, 1fr); } }
.rule-panel { scroll-margin-top: 16px; }
.rule-foot { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 14px; font-size: var(--fs-small); color: var(--muted); }
.rule-side { display: grid; gap: 14px; align-content: start; }
.rule-text {
  margin: 0;
  padding: 16px 18px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  font-weight: 650;
  font-variation-settings: var(--casual);
  line-height: 1.38;
  text-wrap: balance;
}
.rule-note { color: var(--muted); font-size: var(--fs-small); }
.outcomes-wrap { display: grid; gap: 14px; align-content: start; }
.outcomes { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.outcomes li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 12px; align-items: baseline; font-size: var(--fs-small); color: var(--text-2); }
.outcomes .chip { justify-self: start; }
@media (max-width: 520px) { .outcomes li { grid-template-columns: minmax(0, 1fr); gap: 6px; } }

/* Evidence chips: the report's own labels */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-variation-settings: var(--mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  padding: 3px 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  white-space: nowrap;
}
/* Class names match the live report chips: established, candidate, gap (Not established), disproved, na, violation, outcome */
.chip-established { color: var(--text); border-color: var(--text); }
.chip-candidate { color: var(--text-2); border: 1px dashed var(--text-2); }
.chip-gap { color: var(--muted); border: 1px dotted var(--muted); }
.chip-disproved { color: var(--text-2); background: var(--surface-2); border-color: var(--line); }
.chip-na { color: var(--muted); background: var(--surface-2); }
.chip-violation { color: var(--ground); background: var(--text); }
.chip-outcome { color: var(--muted); border-color: var(--line-strong); }

/* Merge-request preview */
.mr {
  background: var(--mr-bg);
  color: var(--mr-text);
  border: 1px solid var(--mr-line);
  border-radius: 12px;
  overflow: hidden;
  max-width: 940px;
  font-family: var(--font-host);
  font-size: 14px;
  line-height: 1.5;
  box-shadow: var(--shadow);
}
.mr code {
  font-family: var(--font-host-mono);
  font-variation-settings: normal;
  font-size: 12.5px;
  background: var(--mr-code);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--mr-text);
  overflow-wrap: anywhere;
}
.mr a { color: var(--mr-link); }
.mr :focus-visible { outline-color: var(--mr-link); }
.mr-head { padding: 16px 20px 0; display: grid; gap: 6px; }
.mr-crumb { font-size: 12.5px; color: var(--mr-muted); }
.mr-title { font-size: 19px; font-weight: 700; line-height: 1.3; }
.mr-status { font-size: 13px; color: var(--mr-muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mr-pill { border: 1px solid var(--mr-line); border-radius: 10px; padding: 1px 8px; color: var(--mr-text); }
.mr-tabs { display: flex; gap: 20px; margin-top: 8px; border-bottom: 1px solid var(--mr-line); font-size: 13.5px; overflow-x: auto; }
.mr-tabs span { padding: 10px 2px; color: var(--mr-muted); white-space: nowrap; }
.mr-tabs .on { border-bottom: 2px solid var(--mr-text); color: var(--mr-text); font-weight: 600; }
.mr-file { margin: 14px 20px 18px; border: 1px solid var(--mr-line); border-radius: 8px; overflow: hidden; }
.mr-file-head { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; background: var(--mr-code); border-bottom: 1px solid var(--mr-line); font-family: var(--font-host-mono); font-size: 12.5px; }
.mr-file-head span:last-child { color: var(--mr-muted); }
.mr-diff { overflow-x: auto; }
.mr-diff-inner { display: grid; min-width: max-content; width: 100%; }
.dl { display: grid; grid-template-columns: 40px 40px 18px minmax(max-content, 1fr); font-family: var(--font-host-mono); font-size: 12.5px; line-height: 22px; }
.dl .n { background: var(--mr-code); color: var(--mr-muted); text-align: right; padding-right: 8px; }
.dl .s { text-align: center; color: var(--mr-muted); }
.dl .c { white-space: pre; padding-right: 16px; background: none; padding-left: 0; border-radius: 0; font-size: inherit; }
.dl.add { background: var(--mr-add); }
.dl.add .n { background: var(--mr-add-gutter); }
.dl.del { background: var(--mr-del); }
.dl.del .n { background: var(--mr-del-gutter); }
.mr-thread { background: var(--mr-code); border-top: 1px solid var(--mr-line); padding: 6px 0; }
.mr-comment { margin: 6px 12px 10px 52px; border: 1px solid var(--mr-line); border-radius: 8px; background: var(--mr-bg); padding: 14px 16px 16px; display: grid; gap: 12px; }
@media (max-width: 640px) { .mr-comment { margin: 6px 8px 10px; } .mr-file { margin: 12px 10px 14px; } .mr-head { padding: 14px 14px 0; } }
.mr-who { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mr-who svg { width: 28px; height: 28px; flex: none; }
.mr-who .name { font-weight: 600; }
.mr-who .dim { color: var(--mr-muted); }
.mr-badge { border: 1px solid var(--mr-line); border-radius: 10px; padding: 0 7px; font-size: 12px; line-height: 18px; color: var(--mr-muted); }
.mr-rows { margin: 0; display: grid; border-top: 1px solid var(--mr-line); }
.mr-rows > div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 2px 14px; padding: 9px 0; border-bottom: 1px solid var(--mr-line); }
.mr-rows dt { font-weight: 600; font-size: 13px; }
.mr-rows dd { margin: 0; font-size: 13px; line-height: 1.5; }
.mr-src { display: block; margin-top: 3px; font-family: var(--font-host-mono); font-size: 12px; }
.mr-result { display: grid; gap: 2px; }
.mr-result strong { font-weight: 600; }
.mr-result .dim { color: var(--mr-muted); }
@media (max-width: 560px) { .mr-rows > div { grid-template-columns: minmax(0, 1fr); } }
.mr-sub { font-weight: 600; }
.mr-foot { color: var(--mr-muted); font-size: 13px; }
.mr-link { color: var(--mr-link); text-decoration: underline; text-underline-offset: 2px; }
.mr-scope { display: block; margin-top: 3px; font-size: 12.5px; color: var(--mr-muted); }
.mr-caption { margin-top: 12px; font-size: var(--fs-meta); color: var(--muted); max-width: 940px; }

/* Real analysis example */
.example-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.example-grid .section-head { margin-bottom: 0; }
@media (max-width: 960px) { .example-grid { grid-template-columns: minmax(0, 1fr); } }
.disclosure { font-size: var(--fs-small); color: var(--muted); max-width: 56ch; border-left: 2px solid var(--line-strong); padding-left: 14px; }
.finding {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(18px, 2.4vw, 26px);
  display: grid;
  gap: 16px;
}
.finding-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.finding-loc { font-family: var(--font-mono); font-variation-settings: var(--mono); font-size: var(--fs-meta); color: var(--muted); overflow-wrap: anywhere; }
.finding-title { font-size: 1.375rem; font-weight: 750; font-variation-settings: var(--casual); letter-spacing: -0.012em; line-height: 1.25; text-wrap: balance; }
.finding-sum { color: var(--text-2); font-size: var(--fs-small); line-height: 1.55; }
.finding-group { display: grid; gap: 10px; }
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rows li { display: grid; gap: 4px; font-size: var(--fs-small); line-height: 1.5; color: var(--text-2); }
.row-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.qual { font-family: var(--font-mono); font-variation-settings: var(--mono); font-size: 12px; color: var(--muted); text-underline-offset: 3px; }
.qual:hover { color: var(--text); }
.rt { display: grid; gap: 6px; }
.rt-row { display: grid; grid-template-columns: 7.5rem 4.75rem minmax(0, 1fr); column-gap: 12px; align-items: baseline; font-size: var(--fs-small); }
.rt-rev { font-family: var(--font-mono); font-variation-settings: var(--mono); font-size: 12px; color: var(--muted); }
.rt-val { font-family: var(--font-mono); font-variation-settings: var(--mono); font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.rt-note { color: var(--text-2); }
@media (max-width: 440px) { .rt-row { grid-template-columns: minmax(0, 1fr) auto; } .rt-note { grid-column: 1 / -1; } }
.finding-next { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 4px; }
.finding-next p:last-child { font-weight: 600; line-height: 1.45; }
.finding-foot { font-family: var(--font-mono); font-variation-settings: var(--mono); font-size: 12px; color: var(--muted); }

/* Labels */
.label-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px clamp(24px, 4vw, 48px); }
@media (max-width: 900px) { .label-cols { grid-template-columns: minmax(0, 1fr); } }
.label-col { border-top: 1px solid var(--line-strong); padding-top: 18px; display: grid; gap: 14px; align-content: start; }
.label-col h3 { font-size: 1.125rem; }
.label-col p { color: var(--text-2); font-size: var(--fs-small); max-width: 40ch; }
.labels-foot { margin-top: clamp(28px, 4vw, 40px); }

/* How it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step { position: relative; padding: 28px 24px 8px 0; border-top: 1px solid var(--text); display: grid; gap: 10px; align-content: start; }
.step::before { content: ""; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--ground); border: 2px solid var(--text); }
.step.is-preview { border-top-style: dashed; }
.step.is-preview::before { border-color: var(--muted); }
.step-n { font-family: var(--font-mono); font-variation-settings: var(--mono); font-size: var(--fs-meta); color: var(--muted); }
.step h3 { font-size: var(--fs-h3); }
.step p { color: var(--text-2); max-width: 32ch; }
.step-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--text-2); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } .step { padding-right: 0; } }

/* FAQ */
.faq { max-width: 980px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 14px 0;
  font-weight: 650;
  font-variation-settings: var(--semi);
  font-size: 1.0625rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); font-variation-settings: var(--mono); color: var(--muted); font-size: 1.25rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 0 18px; color: var(--text-2); max-width: 68ch; }

/* Closing call */
.closing { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); scroll-margin-top: 8px; }
.closing-inner { padding-block: clamp(64px, 9vw, 112px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 72px); align-items: end; }
@media (max-width: 900px) { .closing-inner { grid-template-columns: minmax(0, 1fr); } }
.closing h2 { font-size: var(--fs-h2); }
.closing .section-intro { margin-top: 14px; }
.contact { display: grid; gap: 14px; justify-items: start; }
.address { font-family: var(--font-mono); font-variation-settings: var(--mono); font-size: var(--fs-small); color: var(--text); user-select: all; overflow-wrap: anywhere; }
.note { font-size: var(--fs-meta); color: var(--muted); max-width: 52ch; }

/* Footer */
.site-footer { padding-block: 40px 48px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px 56px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
.footer-brand { display: grid; gap: 14px; align-content: start; }
.footer-brand .lockup { font-size: 1.3rem; }
.footer-grid p { font-size: var(--fs-small); color: var(--muted); max-width: 62ch; }
.footer-side { display: grid; gap: 16px; align-content: start; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: var(--fs-small); list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--text-2); text-decoration: none; display: inline-block; padding-block: 8px; }
.footer-links a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.footer-legal { font-size: var(--fs-meta); color: var(--muted); }

/* /beta page */
.page-head { padding-block: clamp(40px, 7vw, 80px) clamp(24px, 4vw, 40px); display: grid; gap: 16px; max-width: 760px; }
.page-head h1 { font-size: var(--fs-h2); }
.beta-tag { display: inline-block; width: fit-content; font-family: var(--font-mono); font-variation-settings: var(--mono); font-size: 12px; color: var(--text); border: 1px solid var(--text); border-radius: 999px; padding: 2px 10px; }
.beta-body { display: grid; gap: 40px; padding-bottom: clamp(64px, 9vw, 112px); max-width: 860px; }
.beta-block { display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: 22px; }
.beta-block h2 { font-size: 1.375rem; }
.beta-block p, .beta-block li { color: var(--text-2); max-width: 66ch; }
.beta-list { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.beta-list.plain { list-style: none; padding-left: 0; }
.beta-list.plain li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.updated { font-family: var(--font-mono); font-variation-settings: var(--mono); font-size: var(--fs-meta); color: var(--muted); }

/* /beta/notice: the framed notice document. The frame carries no links; the main page links to /beta beside it. */
.notice-doc { margin: 0; background: var(--surface); }
.notice-doc .notice { margin: 0; padding: 14px 16px; font-size: var(--fs-small); line-height: 1.6; color: var(--text-2); }
.notice-doc .beta-tag { display: inline-block; margin-right: 8px; padding: 0 8px; line-height: 1.55; vertical-align: 1px; }

/* /example: slot for the existing report component */
.example-slot { border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 24px; color: var(--muted); font-family: var(--font-mono); font-variation-settings: var(--mono); font-size: var(--fs-small); }
.glossary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 48px; }
@media (max-width: 760px) { .glossary { grid-template-columns: minmax(0, 1fr); } }
.defs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.defs li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 12px; align-items: baseline; font-size: var(--fs-small); color: var(--text-2); }
.defs .chip { justify-self: start; }
@media (max-width: 520px) { .defs li { grid-template-columns: minmax(0, 1fr); gap: 6px; } }
