/*
 * cresswick.ai. One stylesheet for every page.
 *
 * The design is set in hq/DESIGN.md (1 December 2026), from sixteen legal
 * technology sites measured that day: a headline of 72 to 84 pixels, running
 * text of 15 to 16, small labels in a monospaced face, and the product drawn
 * in the page many times. The colours and the serif are the ones the owner
 * chose earlier ("Chambers"): warm off-white, a near-black green, brass used
 * as a line or a numeral and never as a fill.
 */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/newsreader-latin-wght-normal.woff2?v=62981321d9") format("woff2");
}

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/hanken-grotesk-latin-wght-normal.woff2?v=e9201eddf1") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2?v=08949f728d") format("woff2");
}

:root {
  --canvas: #f5f2ea;
  --canvas-2: #ece7da;
  --surface: #fffdf8;
  --surface-2: #f8f5ed;
  --ink: #0e1a16;
  --text: #27332e;
  --muted: #5c6963;
  --faint: #8a938d;
  --rule: #e0d9c9;
  --rule-2: #cbc2ad;
  --green: #0f5c43;
  --green-d: #0b4633;
  --green-l: #e3ede6;
  --field: #0b241c;
  --field-2: #103428;
  --field-3: #071812;
  --on-field: #e9efe9;
  --on-field-muted: #9db0a5;
  --field-rule: rgba(233, 239, 233, 0.14);
  --brass: #b08a4a;
  --brass-hi: #d8ba78;
  --brass-d: #7a5a18;
  --brass-l: #f3ead2;
  --stop: #a3352b;
  --stop-l: #f6e3df;
  --running: #0f5c43;
  --written: #b08a4a;
  --planned: #7c8791;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --wrap: 80rem;
  --lift: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 24px 48px -28px rgba(14, 26, 22, 0.35);
  --contours:
    repeating-radial-gradient(ellipse 120% 90% at 18% -10%, transparent 0 46px, rgba(216, 186, 120, 0.055) 46px 47px),
    repeating-radial-gradient(ellipse 90% 120% at 105% 110%, transparent 0 58px, rgba(233, 239, 233, 0.04) 58px 59px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.75rem, 5.4vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 3.3vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.375rem;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.005em;
}

p {
  text-wrap: pretty;
}

b,
strong {
  font-weight: 600;
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--brass-l);
  color: var(--ink);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -999rem;
  top: 0.5rem;
  background: var(--ink);
  color: var(--surface);
  padding: 0.6rem 1rem;
  border-radius: 6px;
  z-index: 100;
}

.skip:focus {
  left: 0.5rem;
}

/* ------------------------------------------------------------------ */
/* Small parts                                                          */
/* ------------------------------------------------------------------ */

.label {
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.label.brass {
  color: var(--brass-d);
}

.lede {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  color: var(--text);
  max-width: 40rem;
}

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

.small {
  font-size: 0.875rem;
}

.ref {
  font-family: var(--mono);
  font-size: 0.8125rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.5rem;
  padding: 0 1.05rem;
  border-radius: 6px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--surface);
  font: 600 0.9063rem/1 var(--sans);
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.btn:hover {
  background: var(--green-d);
  border-color: var(--green-d);
}

.btn:active {
  transform: translateY(1px);
}

.btn svg {
  width: 1rem;
  height: 1rem;
  transition: transform 160ms ease;
}

.btn:hover svg {
  transform: translateX(2px);
}

.btn.small {
  height: 2.25rem;
  padding: 0 0.85rem;
  font-size: 0.875rem;
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-2);
}

.btn.ghost:hover {
  background: var(--surface);
  border-color: var(--ink);
}

.btn.light {
  background: var(--surface);
  border-color: var(--surface);
  color: var(--ink);
}

.btn.light:hover {
  background: var(--brass-l);
  border-color: var(--brass-l);
}

.btn.ghost.onfield {
  color: var(--on-field);
  border-color: var(--field-rule);
}

.btn.ghost.onfield:hover {
  background: rgba(233, 239, 233, 0.08);
  border-color: var(--on-field-muted);
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-2);
  padding-bottom: 0.15rem;
  transition: border-color 160ms ease, color 160ms ease;
}

.link:hover {
  border-color: var(--brass);
  color: var(--green-d);
}

.link svg {
  width: 0.95rem;
  height: 0.95rem;
  transition: transform 160ms ease;
}

.link:hover svg {
  transform: translateX(3px);
}

.dark .link,
.foot .link {
  color: var(--on-field);
  border-color: var(--field-rule);
}

.dark .link:hover {
  color: var(--brass-hi);
  border-color: var(--brass-hi);
}

/* A status mark: a dot and a word. The same three words everywhere. */
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.status::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--planned);
  flex: none;
}

.status[data-status="running"] {
  color: var(--green-d);
}

.status[data-status="running"]::before {
  background: var(--running);
  box-shadow: 0 0 0 3px var(--green-l);
}

.status[data-status="written"] {
  color: var(--brass-d);
}

.status[data-status="written"]::before {
  background: var(--written);
}

.dark .status {
  color: var(--on-field-muted);
}

.dark .status[data-status="running"] {
  color: #8fd0b4;
}

.dark .status[data-status="running"]::before {
  background: #5cc49b;
  box-shadow: 0 0 0 3px rgba(92, 196, 155, 0.18);
}

.dark .status[data-status="written"] {
  color: var(--brass-hi);
}

/* A level chip. */
.lvl {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.lvl::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 1px;
  background: var(--faint);
  transform: rotate(45deg);
}

.lvl[data-level="2"]::before {
  background: var(--green);
}

.lvl[data-level="3"]::before {
  background: var(--brass);
}

.lvl[data-level="4"]::before {
  background: var(--ink);
}

/* ------------------------------------------------------------------ */
/* Header and menus                                                     */
/* ------------------------------------------------------------------ */

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 242, 234, 0.88);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--rule);
}

.top .wrap {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--serif);
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.mark {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 5px;
  flex: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-right: auto;
}

.nav > a,
.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  height: 2.25rem;
  padding: 0 0.7rem;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--text);
  font: 500 0.9063rem/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}

.nav > a:hover,
.menu-btn:hover,
.menu:focus-within .menu-btn,
.nav > a[aria-current="page"],
.menu[data-current] .menu-btn {
  color: var(--ink);
  background: rgba(14, 26, 22, 0.055);
}

.menu-btn svg {
  width: 0.8rem;
  height: 0.8rem;
  opacity: 0.6;
  transition: transform 160ms ease;
}

.menu {
  position: relative;
}

.menu:hover .menu-btn svg,
.menu:focus-within .menu-btn svg,
.menu[data-open] .menu-btn svg {
  transform: rotate(180deg);
}

.panel {
  position: absolute;
  top: calc(100% + 0.55rem);
  left: -0.75rem;
  min-width: 19rem;
  padding: 0.6rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow: 0 30px 60px -30px rgba(14, 26, 22, 0.45), 0 2px 6px rgba(14, 26, 22, 0.05);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 140ms ease, transform 140ms ease, visibility 140ms;
}

/* A bridge so the pointer can cross the gap between the button and the panel. */
.panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -0.7rem;
  height: 0.7rem;
}

.menu:hover .panel,
.menu:focus-within .panel,
.menu[data-open] .panel {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.panel a {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.3;
}

.panel a span {
  display: block;
  margin-top: 0.15rem;
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--muted);
}

.panel a:hover {
  background: var(--surface-2);
}

.panel.mega {
  display: grid;
  grid-template-columns: repeat(4, minmax(11.5rem, 1fr));
  gap: 0.25rem 0.5rem;
  width: min(58rem, calc(100vw - 2rem));
  padding: 1rem;
}

.mega-col > .label {
  display: block;
  padding: 0.35rem 0.75rem 0.5rem;
}

.mega-col > a.fam {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
}

.mega-col ul a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.32rem 0.75rem;
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--text);
}

.mega-col ul a::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--planned);
  flex: none;
}

.mega-col ul a[data-status="running"]::before {
  background: var(--running);
}

.mega-col ul a[data-status="written"]::before {
  background: var(--written);
}

.mega-foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
  padding: 0.85rem 0.75rem 0.25rem;
  border-top: 1px solid var(--rule);
}

.mega-foot .key {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.panel a.link {
  display: inline-flex;
  padding: 0 0 0.15rem;
  border-radius: 0;
  white-space: nowrap;
}

.panel a.link:hover {
  background: none;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.top-actions > a:not(.btn) {
  display: inline-flex;
  align-items: center;
  height: 2.25rem;
  padding: 0 0.7rem;
  font: 500 0.9063rem/1 var(--sans);
  color: var(--text);
  text-decoration: none;
  border-radius: 6px;
}

.top-actions > a:not(.btn):hover {
  color: var(--ink);
  background: rgba(14, 26, 22, 0.055);
}

.burger {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  margin-left: auto;
  border: 1px solid var(--rule-2);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.burger svg {
  width: 1.15rem;
  height: 1.15rem;
}

.drawer {
  display: none;
}

/* ------------------------------------------------------------------ */
/* The opening of the home page                                         */
/* ------------------------------------------------------------------ */

.hero {
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
  overflow: hidden;
}

.hero-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
}

.hero-head h1 span {
  color: var(--green);
}

.hero-side {
  display: grid;
  gap: 1.4rem;
  padding-bottom: 0.6rem;
}

.hero-side .lede {
  font-size: 1.0938rem;
  line-height: 1.6;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.dev-note {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.4rem;
}

.dev-note::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 0 4px var(--brass-l);
}

/* The dark field the product sits on. */
.stage {
  position: relative;
  margin-top: clamp(2.25rem, 4.5vw, 3.75rem);
  border-radius: 18px;
  background: var(--contours), linear-gradient(180deg, #0f3327, var(--field) 70%);
  padding: clamp(1.25rem, 3.4vw, 3rem);
  color: var(--on-field);
}

.hero {
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* ------------------------------------------------------------------ */
/* The app, drawn in the page                                           */
/* ------------------------------------------------------------------ */

.win {
  position: relative;
  display: grid;
  grid-template-columns: 13.25rem minmax(0, 1fr);
  background: var(--canvas);
  color: var(--text);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(216, 186, 120, 0.35), 0 50px 90px -40px rgba(0, 0, 0, 0.75);
  font-size: 0.8125rem;
  line-height: 1.45;
  text-align: left;
}

.win.whole {
  border-radius: 14px;
}

.win-rail {
  background: var(--contours), var(--field);
  color: var(--on-field-muted);
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-height: 34rem;
}

.win-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.1rem 0.5rem 0.9rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--on-field);
}

.win-brand i,
.av {
  display: grid;
  place-items: center;
  flex: none;
  font-style: normal;
}

.win-brand i {
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--brass-hi), #a47e3c);
  color: #1a1408;
  font: 600 0.8rem/1 var(--serif);
}

.win-nav li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.38rem 0.55rem;
  border-radius: 6px;
  color: var(--on-field-muted);
}

.win-nav li svg {
  width: 0.9rem;
  height: 0.9rem;
  opacity: 0.8;
  flex: none;
}

.win-nav li.on {
  background: rgba(233, 239, 233, 0.09);
  color: var(--on-field);
  box-shadow: inset 2px 0 0 var(--brass-hi);
}

.win-nav li b {
  margin-left: auto;
  font: 500 0.6875rem/1 var(--mono);
  color: var(--brass-hi);
}

.win-nav li.sec {
  padding: 0.9rem 0.55rem 0.3rem;
  font: 400 0.625rem/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(157, 176, 165, 0.7);
}

.win-who {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 0.5rem 0;
  border-top: 1px solid var(--field-rule);
}

.av {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--field-2);
  border: 1px solid var(--field-rule);
  color: var(--on-field);
  font: 600 0.625rem/1 var(--sans);
  letter-spacing: 0.03em;
}

.win-who b {
  display: block;
  color: var(--on-field);
  font-weight: 600;
  font-size: 0.78rem;
}

.win-who span {
  font-size: 0.6875rem;
}

.win-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.win-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 1.1rem;
  border-bottom: 1px solid var(--rule);
  background: var(--surface);
  font-size: 0.75rem;
  color: var(--muted);
}

.win-top .crumb b {
  color: var(--ink);
}

.win-top .cmd {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.3rem 0.4rem 0.3rem 0.65rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--faint);
}

kbd {
  font: 400 0.625rem/1 var(--mono);
  padding: 0.2rem 0.35rem;
  border: 1px solid var(--rule-2);
  border-radius: 4px;
  background: var(--surface);
  color: var(--muted);
}

.win-top .chain {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  color: var(--green-d);
  font-family: var(--mono);
  font-size: 0.6875rem;
}

.win-top .chain::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--running);
  box-shadow: 0 0 0 3px var(--green-l);
}

.win-body {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 1rem;
  padding: 1.1rem;
  flex: 1;
}

.win-title {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.win-title h4 {
  margin: 0;
  font: 400 1.5rem/1.15 var(--serif);
  letter-spacing: -0.01em;
  color: var(--ink);
}

.win-title span {
  color: var(--muted);
  font-size: 0.78rem;
}

.q,
.d {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  min-width: 0;
}

.q {
  overflow: hidden;
  align-self: start;
}

.q-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem;
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--rule);
  position: relative;
}

.q-row:last-child {
  border-bottom: 0;
}

.q-row.sel {
  background: linear-gradient(90deg, var(--brass-l), var(--surface) 80%);
}

.q-row.sel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--brass);
}

.q-row b {
  display: block;
  font: 500 0.9375rem/1.3 var(--serif);
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.q-row .meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.2rem;
  font-size: 0.6875rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
}

.q-row .meta .ref {
  font-size: 0.6875rem;
  color: var(--text);
}

.q-row .meta .wait {
  margin-left: auto;
  color: var(--faint);
}

.glyph {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: var(--green-l);
  color: var(--green-d);
  flex: none;
}

.glyph svg {
  width: 0.95rem;
  height: 0.95rem;
}

.glyph[data-agent="time"] {
  background: var(--brass-l);
  color: var(--brass-d);
}

.glyph[data-agent="other"] {
  background: var(--canvas-2);
  color: var(--muted);
}

.d {
  display: flex;
  flex-direction: column;
  position: relative;
}

.d-head {
  padding: 0.95rem 1.1rem 0.8rem;
  border-bottom: 1px solid var(--rule);
}

.d-head .row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.d-head h4 {
  margin: 0;
  font: 400 1.25rem/1.2 var(--serif);
  letter-spacing: -0.01em;
  color: var(--ink);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.45rem;
  border-radius: 4px;
  background: var(--brass-l);
  color: var(--brass-d);
  font: 400 0.625rem/1 var(--mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag.green {
  background: var(--green-l);
  color: var(--green-d);
}

.tag.grey {
  background: var(--canvas-2);
  color: var(--muted);
}

.d-head p {
  margin-top: 0.3rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.path {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 0.85rem;
}

.path li {
  position: relative;
  padding: 0.85rem 0.6rem 0 0;
  font-size: 0.6875rem;
  color: var(--muted);
  line-height: 1.35;
}

.path li::before {
  content: "";
  position: absolute;
  top: 0.2rem;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--rule-2);
}

.path li::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--rule-2);
}

.path li b {
  display: block;
  font-size: 0.72rem;
  color: var(--ink);
}

.path li[data-state="done"]::before,
.path li[data-state="done"]::after {
  background: var(--brass);
  border-color: var(--brass);
}

.path li[data-state="now"]::after {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-l);
}

.d-body {
  padding: 0.9rem 1.1rem;
  display: grid;
  gap: 0.85rem;
}

.d-body h5 {
  margin: 0 0 0.35rem;
  font: 400 0.625rem/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.fields {
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-2);
}

.fields div {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.42rem 0.7rem;
  border-bottom: 1px solid var(--rule);
}

.fields div:last-child {
  border-bottom: 0;
}

.fields dt {
  color: var(--muted);
  font-size: 0.72rem;
}

.fields dd {
  color: var(--ink);
  font-weight: 500;
}

.d-body p {
  font-size: 0.78rem;
  line-height: 1.5;
}

.quote {
  padding: 0.5rem 0.7rem;
  border-left: 2px solid var(--brass);
  background: var(--surface-2);
  border-radius: 0 6px 6px 0;
  font: 400 0.875rem/1.45 var(--serif);
  color: var(--ink);
}

.quote cite {
  display: block;
  margin-top: 0.25rem;
  font: 400 0.6563rem/1.3 var(--mono);
  color: var(--muted);
  font-style: normal;
}

.d-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1.1rem;
  border-top: 1px solid var(--rule);
  background: rgba(255, 253, 248, 0.9);
  border-radius: 0 0 10px 10px;
}

.mini {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 1.9rem;
  padding: 0 0.7rem;
  border-radius: 6px;
  border: 1px solid var(--rule-2);
  background: var(--surface);
  color: var(--ink);
  font: 600 0.75rem/1 var(--sans);
}

.mini svg {
  width: 0.8rem;
  height: 0.8rem;
}

.mini.go {
  background: var(--green);
  border-color: var(--green-d);
  color: #fff;
}

.d-actions .who {
  margin-left: auto;
  font-size: 0.6875rem;
  color: var(--muted);
}

/* The stamp a decision leaves. In the opening it is pressed on, over and over. */
.stamp {
  position: absolute;
  right: 1.1rem;
  bottom: 3.6rem;
  padding: 0.5rem 0.8rem 0.45rem;
  border: 1.5px solid var(--green);
  border-radius: 6px;
  color: var(--green-d);
  background: rgba(227, 237, 230, 0.92);
  transform: rotate(-4deg);
  text-align: left;
  box-shadow: 0 14px 26px -16px rgba(11, 70, 51, 0.6);
}

.stamp b {
  display: block;
  font: 400 0.78rem/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-d);
}

.stamp span {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.6875rem;
  color: var(--text);
}

/* Small cards that float over the window's edges. */
.float {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.9rem;
  background: var(--surface);
  color: var(--text);
  border: 1px solid rgba(216, 186, 120, 0.6);
  border-radius: 10px;
  box-shadow: 0 26px 50px -22px rgba(0, 0, 0, 0.6);
  font-size: 0.8125rem;
  line-height: 1.35;
}

.float b {
  display: block;
  font-size: 0.875rem;
}

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

.float .hash {
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--muted);
}

.float.a {
  right: clamp(1rem, 4vw, 4.5rem);
  top: -1.5rem;
}

.float.b {
  left: clamp(-1.5rem, -1vw, -0.5rem);
  bottom: 6.5rem;
}

/* ------------------------------------------------------------------ */
/* Sections                                                             */
/* ------------------------------------------------------------------ */

.sec {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.sec.tight {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.sec.band {
  background: var(--canvas-2);
  border-block: 1px solid var(--rule);
}

.sec.dark {
  background: var(--contours), var(--field);
  color: var(--on-field-muted);
}

.sec.dark h2,
.sec.dark h3,
.sec.dark b,
.sec.dark strong {
  color: var(--on-field);
}

.sec.dark .label {
  color: var(--brass-hi);
}

.sec.dark .lede {
  color: var(--on-field-muted);
}

.sec-head {
  display: grid;
  gap: 1rem;
  max-width: 46rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.sec-head.split {
  max-width: none;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
}

.sec-head.split > div {
  display: grid;
  gap: 1rem;
}

.sec-head.center {
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 1rem;
}

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

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

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

.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1.4rem;
  display: grid;
  gap: 0.6rem;
  align-content: start;
}

.card p {
  font-size: 0.9375rem;
  color: var(--text);
}

.dark .card {
  background: var(--field-2);
  border-color: var(--field-rule);
}

.dark .card p {
  color: var(--on-field-muted);
}

.icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--green-l);
  color: var(--green-d);
}

.icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.icon.brass {
  background: var(--brass-l);
  color: var(--brass-d);
}

.dark .icon {
  background: rgba(233, 239, 233, 0.08);
  color: var(--brass-hi);
}

/* Four facts in a row, each under a hairline. */
.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2.5rem);
}

.facts li {
  border-top: 1px solid var(--rule-2);
  padding-top: 1rem;
  display: grid;
  gap: 0.35rem;
  align-content: start;
}

.facts b {
  font: 400 clamp(2.25rem, 3.6vw, 3.25rem) / 1 var(--serif);
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: lining-nums tabular-nums;
}

.facts b small {
  font-size: 0.5em;
  color: var(--faint);
  letter-spacing: 0;
}

.facts span {
  font-size: 0.875rem;
  color: var(--muted);
  max-width: 17rem;
}

/* Three ways to take it. */
.ways {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.way {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  background: var(--contours), var(--field);
  color: var(--on-field-muted);
  border: 1px solid var(--field);
  min-height: 23.5rem;
}

.way-text {
  padding: 1.5rem 1.5rem 1.1rem;
  display: grid;
  gap: 0.6rem;
}

.way-text .label {
  color: var(--brass-hi);
}

.way-text h3 {
  color: var(--on-field);
  font-size: 1.5rem;
  font-weight: 400;
}

.way-text p {
  font-size: 0.9375rem;
}

.way-art {
  margin-top: auto;
  padding: 0 1.5rem 1.5rem;
  display: grid;
  gap: 0.5rem;
}

.stack {
  display: grid;
  gap: 0.4rem;
}

.stack .row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--field-rule);
  background: rgba(233, 239, 233, 0.05);
  color: var(--on-field-muted);
  font-size: 0.78rem;
  line-height: 1.2;
  white-space: nowrap;
}

.chip.on {
  background: var(--surface);
  border-color: var(--surface);
  color: var(--ink);
  font-weight: 600;
}

.chip.core {
  border-color: rgba(216, 186, 120, 0.5);
  color: var(--brass-hi);
}

.chip.dashed {
  border-style: dashed;
}

.stack .cap {
  font: 400 0.625rem/1.3 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(157, 176, 165, 0.75);
  margin-top: 0.45rem;
}

/* The family explorer: a list on the left that changes what is on the right. */
.explorer {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 3rem);
  align-items: start;
}

.ex-tabs {
  display: grid;
  border-top: 1px solid var(--rule-2);
}

.ex-tab {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.25rem 1rem;
  align-items: baseline;
  padding: 1.05rem 0.25rem 1.05rem 0;
  border: 0;
  border-bottom: 1px solid var(--rule-2);
  background: none;
  text-align: left;
  cursor: pointer;
  color: var(--muted);
  font: inherit;
  transition: color 160ms ease, padding 160ms ease;
}

.ex-tab b {
  font: 400 1.5rem/1.2 var(--serif);
  letter-spacing: -0.01em;
  color: inherit;
}

.ex-tab i {
  font: 400 0.75rem/1 var(--mono);
  font-style: normal;
  color: var(--faint);
}

.ex-tab span {
  grid-column: 1 / -1;
  font-size: 0.875rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 220ms ease, opacity 220ms ease;
}

.ex-tab:hover {
  color: var(--ink);
}

.ex-tab[aria-selected="true"] {
  color: var(--ink);
  padding-left: 0.9rem;
  box-shadow: inset 2px 0 0 var(--brass);
}

.ex-tab[aria-selected="true"] span {
  max-height: 5rem;
  opacity: 1;
  color: var(--muted);
}

.ex-panel {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow: var(--lift);
  overflow: hidden;
}

.ex-panel[hidden] {
  display: none;
}

.ex-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--rule);
  background: var(--surface-2);
}

.mod-row {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) auto;
  gap: 0.35rem 1.5rem;
  align-items: start;
  padding: 0.95rem 1.25rem;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: var(--text);
  transition: background 140ms ease;
}

.mod-row:last-child {
  border-bottom: 0;
}

a.mod-row:hover {
  background: var(--surface-2);
}

.mod-row b {
  font: 500 1.0625rem/1.3 var(--serif);
}

.mod-row p {
  font-size: 0.875rem;
  color: var(--muted);
}

.mod-row p em {
  font-style: normal;
  color: var(--text);
}

/* The steps of one decision. */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  counter-reset: step;
}

.step {
  counter-increment: step;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.4rem;
  border-radius: 12px;
  background: var(--field-2);
  border: 1px solid var(--field-rule);
}

.step-text {
  display: grid;
  gap: 0.5rem;
}

.step-text h3::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 0.7rem;
  font: 400 0.75rem/1 var(--mono);
  letter-spacing: 0.1em;
  color: var(--brass-hi);
}

.step-text p {
  font-size: 0.9375rem;
}

.step-art {
  margin-top: auto;
  background: var(--surface);
  color: var(--text);
  border-radius: 8px;
  padding: 0.85rem;
  font-size: 0.78rem;
  line-height: 1.45;
  display: grid;
  gap: 0.55rem;
  min-height: 9.5rem;
  align-content: start;
}

.step-art .head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.step-art .head b {
  font: 500 0.9375rem/1.25 var(--serif);
  color: var(--ink);
}

.ruling {
  display: grid;
  gap: 0.3rem;
}

.ruling div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--rule);
  background: var(--surface-2);
  color: var(--muted);
}

.ruling div.hit {
  border-color: var(--brass);
  background: var(--brass-l);
  color: var(--ink);
}

.ruling code,
.code {
  font: 400 0.6875rem/1.3 var(--mono);
}

/* The dial of four levels. */
.dial {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}

.dial-step {
  padding: 1.25rem 1.25rem 1.4rem;
  border-right: 1px solid var(--rule);
  border-top: 3px solid var(--faint);
  display: grid;
  gap: 0.5rem;
  align-content: start;
}

.dial-step:last-child {
  border-right: 0;
}

.dial-step[data-level="2"] {
  border-top-color: var(--green);
}

.dial-step[data-level="3"] {
  border-top-color: var(--brass);
  background: linear-gradient(180deg, var(--brass-l), var(--surface) 60%);
}

.dial-step[data-level="4"] {
  border-top-color: var(--ink);
}

.dial-step i {
  font: 400 3rem/1 var(--serif);
  font-style: normal;
  color: var(--ink);
}

.dial-step b {
  font: 500 1.125rem/1.25 var(--serif);
}

.dial-step p {
  font-size: 0.875rem;
  color: var(--muted);
}

.dial-step .who {
  margin-top: 0.4rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--rule);
  font-size: 0.8125rem;
  color: var(--text);
}

.dial-step .who .label {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.625rem;
}

.dial-note {
  margin-top: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.dial-note::before {
  content: "";
  flex: 0 0 4rem;
  height: 1px;
  background: linear-gradient(90deg, var(--rule-2), var(--brass));
}

.source {
  margin-top: 1.75rem;
  max-width: 54rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.source a {
  color: var(--ink);
}

/* Rows of measured figures: the words on the left, the number on the right. */
.figures {
  border-top: 1px solid var(--field-rule);
}

.figures li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: baseline;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--field-rule);
}

.figures span {
  font-size: 0.9375rem;
  max-width: 34rem;
}

.figures span em {
  display: block;
  font-style: normal;
  font-size: 0.8125rem;
  color: rgba(157, 176, 165, 0.8);
}

.figures b {
  font: 400 clamp(2.25rem, 4vw, 3.5rem) / 1 var(--serif);
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums tabular-nums;
}

.figures b small {
  font-size: 0.5em;
  color: var(--on-field-muted);
}

.sec:not(.dark) .figures,
.sec:not(.dark) .figures li {
  border-color: var(--rule-2);
}

/* A picture or a drawing beside its words. */
.pair {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 4vw, 4.5rem);
  align-items: center;
}

.pair + .pair {
  margin-top: clamp(3.5rem, 7vw, 6rem);
}

.pair.flip {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.pair.flip > :first-child {
  order: 2;
}

.pair-text {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.pair-text ul {
  display: grid;
  gap: 0.6rem;
}

.pair-text li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9375rem;
}

.pair-text li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.75rem;
  height: 1px;
  background: var(--brass);
}

.shot {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--rule-2);
  background: var(--surface);
  box-shadow: var(--lift);
}

.shot img {
  width: 100%;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.gallery figcaption {
  padding: 1rem 1.25rem 1.15rem;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 0.3rem;
}

.gallery figcaption h3 {
  font-size: 1.25rem;
}

.gallery figcaption p {
  font-size: 0.9063rem;
  color: var(--muted);
}

.phone {
  width: min(17.5rem, 78%);
  margin-inline: auto;
  border-radius: 2.2rem;
  padding: 0.55rem;
  background: var(--ink);
  box-shadow: 0 40px 70px -34px rgba(14, 26, 22, 0.6);
}

.phone img {
  border-radius: 1.75rem;
  width: 100%;
}

.caption {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* The record, drawn as a chain. */
.chain-art {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow: var(--lift);
  padding: 1.1rem 1.25rem;
  font-size: 0.8125rem;
}

.chain-art header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  margin-bottom: 0.4rem;
  border-bottom: 1px solid var(--rule);
}

.verified {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  background: var(--green-l);
  color: var(--green-d);
  font-weight: 600;
  font-size: 0.78rem;
}

.verified svg {
  width: 0.9rem;
  height: 0.9rem;
}

.entry {
  position: relative;
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr) auto;
  gap: 0.25rem 0.9rem;
  padding: 0.7rem 0 0.7rem;
}

.entry + .entry {
  border-top: 1px dashed var(--rule-2);
}

.entry .n {
  font: 400 0.75rem/1.6 var(--mono);
  color: var(--faint);
}

.entry b {
  font-weight: 600;
  font-size: 0.8438rem;
}

.entry p {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.78rem;
}

.entry .hash {
  grid-column: 2 / -1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font: 400 0.6563rem/1.4 var(--mono);
  color: var(--faint);
}

.entry .hash i {
  font-style: normal;
  color: var(--brass-d);
}

.entry .hash svg {
  width: 1.5rem;
  height: 0.6rem;
  color: var(--brass);
  flex: none;
}

.entry .when {
  font: 400 0.6875rem/1.6 var(--mono);
  color: var(--faint);
  white-space: nowrap;
}

/* ------------------------------------------------------------------ */
/* Inner pages                                                          */
/* ------------------------------------------------------------------ */

.page-hero {
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--rule);
}

.page-hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
}

.page-hero h1 {
  font-size: clamp(2.5rem, 4.6vw, 4.25rem);
}

.page-hero .side {
  display: grid;
  gap: 1.25rem;
}

.crumbs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.crumbs a {
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--ink);
}

/* The module catalogue. */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.filters .label {
  margin-right: 0.4rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 2rem;
  padding: 0 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--rule-2);
  background: transparent;
  color: var(--text);
  font: 500 0.8438rem/1 var(--sans);
  cursor: pointer;
  text-decoration: none;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.pill:hover {
  border-color: var(--ink);
}

.pill[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--surface);
}

.pill i {
  font: 400 0.6875rem/1 var(--mono);
  font-style: normal;
  opacity: 0.7;
}

.fam-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem 2rem;
  align-items: end;
  padding-bottom: 1.1rem;
  margin: clamp(2.5rem, 5vw, 4rem) 0 1.1rem;
  border-bottom: 1px solid var(--rule-2);
}

.fam-head:first-of-type {
  margin-top: 0;
}

.fam-head h2 {
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
}

.fam-head p {
  grid-column: 1;
  color: var(--muted);
}

.mods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.family[data-family="core"] .mods {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mod {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--rule);
  text-decoration: none;
  color: var(--text);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

a.mod:hover {
  border-color: var(--rule-2);
  transform: translateY(-2px);
  box-shadow: var(--lift);
}

.mod[hidden] {
  display: none;
}

.mod-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.mod h3 {
  font-size: 1.25rem;
}

.mod p {
  font-size: 0.9063rem;
}

.mod dl {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 0.45rem;
  font-size: 0.8125rem;
}

.mod dl div {
  display: grid;
  grid-template-columns: 6.75rem minmax(0, 1fr);
  gap: 0.75rem;
}

.mod dt {
  font: 400 0.6563rem/1.6 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.mod dd {
  color: var(--text);
}

/* One module in full, on a family page. */
.module {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.25rem, 3vw, 3.5rem);
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-bottom: 1px solid var(--rule-2);
  scroll-margin-top: 6rem;
}

.module:first-of-type {
  padding-top: 0;
}

.module-text {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}

.module-text h2 {
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
}

.module-text .person {
  padding: 0.85rem 1rem;
  border-left: 2px solid var(--brass);
  background: var(--surface);
  border-radius: 0 8px 8px 0;
  font-size: 0.9375rem;
}

.module-text .person .label {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.6563rem;
}

.spec {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  font-size: 0.875rem;
  align-self: start;
}

.spec > div {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--rule);
}

.spec > div:last-child {
  border-bottom: 0;
}

.spec dt {
  font: 400 0.6875rem/1.7 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.acts {
  display: grid;
  gap: 0.4rem;
}

.acts li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: baseline;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tags span {
  padding: 0.2rem 0.5rem;
  border-radius: 5px;
  border: 1px solid var(--rule);
  background: var(--surface-2);
  font-size: 0.8125rem;
}

/* A plain table. */
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  font-size: 0.9063rem;
  display: table;
}

.table-wrap {
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow-x: auto;
  background: var(--surface);
}

.table-wrap .table {
  border: 0;
  border-radius: 0;
}

.table th,
.table td {
  text-align: left;
  vertical-align: top;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--rule);
}

.table tr:last-child td,
.table tr:last-child th {
  border-bottom: 0;
}

.table thead th {
  font: 400 0.6875rem/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  background: var(--surface-2);
  white-space: nowrap;
}

.table tbody th {
  font: 500 1.0625rem/1.3 var(--serif);
  color: var(--ink);
  white-space: nowrap;
}

.table tbody th span {
  display: block;
  font: 400 0.8125rem/1.4 var(--sans);
  color: var(--muted);
}

/* The ports diagram: a module, what it needs, and the two things that can meet a need. */
.ports-art {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.25fr);
  gap: 1.25rem;
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--rule);
  box-shadow: var(--lift);
  font-size: 0.8438rem;
}

.ports-art .box {
  border: 1px solid var(--rule-2);
  border-radius: 10px;
  padding: 1rem;
  background: var(--surface-2);
  display: grid;
  gap: 0.6rem;
}

.ports-art .box.core {
  background: var(--field);
  border-color: var(--field);
  color: var(--on-field-muted);
}

.ports-art .box.core b {
  color: var(--on-field);
}

.ports-art .box h4 {
  margin: 0;
  font: 500 1.0625rem/1.25 var(--serif);
  color: var(--ink);
}

.ports-art .arrow {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  color: var(--brass-d);
}

.ports-art .arrow svg {
  width: 2.5rem;
  height: 1rem;
}

.ports-art .meets {
  display: grid;
  gap: 0.6rem;
}

/* The agent cards. */
.agents {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.agent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.4rem 1rem;
  padding: 1.25rem;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--rule);
}

.agent .glyph {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  grid-row: span 2;
}

.agent .glyph svg {
  width: 1.2rem;
  height: 1.2rem;
}

.agent-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.agent h3 {
  font-size: 1.25rem;
}

.agent p {
  font-size: 0.9063rem;
}

.agent dl {
  grid-column: 1 / -1;
  margin-top: 0.6rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 0.5rem;
  font-size: 0.8438rem;
}

.agent dl div {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 0.75rem;
}

.agent dt {
  font: 400 0.6563rem/1.7 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

/* A playbook, shown as the text it is. */
.playbook {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--field-rule);
  background: var(--field-3);
  color: var(--on-field-muted);
  font: 400 0.8125rem/1.65 var(--mono);
}

.playbook header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--field-rule);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--on-field-muted);
}

.playbook pre {
  margin: 0;
  padding: 1.1rem 1.25rem 1.35rem;
  white-space: pre-wrap;
  font: inherit;
}

.playbook pre b {
  color: var(--brass-hi);
  font-weight: 400;
}

.playbook pre i {
  font-style: normal;
  color: var(--on-field);
}

/* Phases of the roadmap. */
.phases {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}

.phase {
  padding: 1.25rem;
  border-right: 1px solid var(--rule);
  display: grid;
  gap: 0.6rem;
  align-content: start;
}

.phase:last-child {
  border-right: 0;
}

.phase[data-now] {
  background: linear-gradient(180deg, var(--green-l), var(--surface) 55%);
}

.phase h3 {
  font-size: 1.25rem;
}

.phase ul {
  display: grid;
  gap: 0.3rem;
  font-size: 0.875rem;
}

.phase li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.phase li::before {
  content: "";
  flex: none;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--planned);
  transform: translateY(-0.1em);
}

.phase li a {
  text-decoration: none;
}

.phase li a:hover {
  text-decoration: underline;
  text-decoration-color: var(--brass);
}

.phase li[data-status="running"]::before {
  background: var(--running);
}

.phase li[data-status="written"]::before {
  background: var(--written);
}

/* Where we are: the honest box. */
.where {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 3rem);
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--rule-2);
  box-shadow: var(--lift);
}

.where .big {
  font: 400 clamp(3.5rem, 7vw, 6rem) / 0.9 var(--serif);
  letter-spacing: -0.03em;
  color: var(--green);
  font-variant-numeric: lining-nums;
}

.where .big small {
  font-size: 0.42em;
  color: var(--faint);
  letter-spacing: 0;
}

.where p {
  max-width: 44rem;
}

/* Two lists side by side: done and not done. */
.ledger {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.ledger > div {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1.4rem;
}

.ledger h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  margin-bottom: 0.4rem;
  border-bottom: 1px solid var(--rule);
}

.ledger li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule);
  font-weight: 600;
  color: var(--ink);
  font-size: 0.9375rem;
}

.ledger li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.ledger li span {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.875rem;
}

/* The closing call. */
.cta {
  background: var(--contours), linear-gradient(180deg, #0f3327, var(--field));
  color: var(--on-field-muted);
  padding-block: clamp(4rem, 8vw, 6.5rem);
}

.cta .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
}

.cta h2 {
  color: var(--on-field);
  font-size: clamp(2.25rem, 4vw, 3.5rem);
}

.cta .side {
  display: grid;
  gap: 1.25rem;
}

/* ------------------------------------------------------------------ */
/* Footer                                                               */
/* ------------------------------------------------------------------ */

.foot {
  background: var(--field-3);
  color: var(--on-field-muted);
  font-size: 0.875rem;
  padding-block: clamp(3rem, 5vw, 4.5rem) 2rem;
}

.foot-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr));
  gap: 2rem;
}

.foot .brand {
  color: var(--on-field);
}

.foot-about {
  display: grid;
  gap: 1rem;
  align-content: start;
  max-width: 21rem;
}

.foot h4 {
  margin: 0 0 0.9rem;
  font: 400 0.6875rem/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(157, 176, 165, 0.75);
}

.foot ul {
  display: grid;
  gap: 0.5rem;
}

.foot a {
  text-decoration: none;
  color: var(--on-field-muted);
}

.foot a:hover {
  color: var(--on-field);
}

.foot-legal {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--field-rule);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  font-size: 0.8125rem;
}

.foot-legal a {
  text-decoration: underline;
}

/* ------------------------------------------------------------------ */
/* The platform, drawn                                                  */
/* ------------------------------------------------------------------ */

.plat {
  display: grid;
  gap: 0.6rem;
  padding: clamp(1rem, 2.5vw, 1.75rem);
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--rule);
  box-shadow: var(--lift);
}

.plat-fams {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}

.plat-fam {
  padding: 1rem;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--rule);
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.plat-mods {
  display: grid;
  gap: 0.3rem;
}

.pm {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--rule);
  font-size: 0.8438rem;
  line-height: 1.25;
  color: var(--ink);
}

.pm::before {
  content: "";
  flex: none;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--planned);
}

.pm[data-status="running"]::before {
  background: var(--running);
  box-shadow: 0 0 0 3px var(--green-l);
}

.pm[data-status="written"]::before {
  background: var(--written);
}

.plat-core {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.5rem 1.5rem;
  align-items: center;
  padding: 1.1rem 1.25rem;
  border-radius: 10px;
  background: var(--contours), var(--field);
  color: var(--on-field);
}

.plat-core .label {
  color: var(--brass-hi);
}

.plat-core div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  justify-content: flex-end;
  font: 400 1.125rem/1.3 var(--serif);
}

.plat-core div span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.plat-core svg {
  width: 1rem;
  height: 1rem;
  color: var(--brass-hi);
}

.plat-ports {
  display: grid;
  gap: 0.6rem;
  padding: 0.9rem 1.25rem;
  border-radius: 10px;
  border: 1px dashed var(--rule-2);
}

.plat-ports div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.plat-ports div span {
  padding: 0.22rem 0.55rem;
  border-radius: 5px;
  background: var(--surface-2);
  border: 1px solid var(--rule);
  font-size: 0.8125rem;
}

.plat-base {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.plat-base > div {
  padding: 1rem 1.25rem;
  border-radius: 10px;
  background: var(--canvas-2);
  border: 1px solid var(--rule-2);
  display: grid;
  gap: 0.3rem;
}

.plat-base b {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font: 500 1.0625rem/1.3 var(--serif);
}

.plat-base svg {
  width: 1rem;
  height: 1rem;
  color: var(--brass-d);
}

.plat-base span {
  font-size: 0.8438rem;
  color: var(--muted);
}

.key-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1rem;
}

.top-gap {
  margin-top: clamp(2rem, 4vw, 3.5rem);
}

.sec.flush {
  padding-top: 0;
}

.catalogue-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-bottom: 1.25rem;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--rule);
}

.family[hidden] {
  display: none;
}

.family + .family .fam-head {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.family .fam-head {
  margin-top: 0;
}

.dark-panel {
  padding: clamp(1rem, 2.5vw, 1.75rem);
  border-radius: 14px;
  background: var(--contours), var(--field);
  color: var(--on-field-muted);
}

.dark-panel h3,
.dark-panel b {
  color: var(--on-field);
}

.dark-panel .step-art b,
.dark-panel .step-art {
  color: var(--text);
}

.dark-panel .step-art .head b {
  color: var(--ink);
}

.dark .step-art b,
.dark .chain-art b,
.dark .win b {
  color: var(--ink);
}

.card.linked {
  text-decoration: none;
  color: var(--text);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.card.linked:hover {
  border-color: var(--rule-2);
  transform: translateY(-2px);
  box-shadow: var(--lift);
}

.caption.onfield {
  color: var(--on-field-muted);
  margin-top: 1.5rem;
}

/* The same stack of chips on a light card. */
.stack.light .chip {
  border-color: var(--rule-2);
  background: var(--surface-2);
  color: var(--text);
}

.stack.light .chip.on {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--surface);
}

.stack.light .chip.core {
  border-color: var(--brass);
  color: var(--brass-d);
  background: var(--brass-l);
}

.stack.light .chip.dashed {
  background: transparent;
}

.stack.light .cap {
  color: var(--faint);
}

.chip svg {
  width: 0.85rem;
  height: 0.85rem;
}

/* The wide menu is placed against the header, not its own button. */
.top .wrap {
  position: relative;
}

.menu.wide {
  position: static;
}

.menu.wide .panel {
  left: var(--gutter);
  top: calc(100% - 0.35rem);
}

.menu.wide .panel::before {
  top: -1.2rem;
  height: 1.2rem;
}

html.no-scroll {
  overflow: hidden;
}

/* ------------------------------------------------------------------ */
/* Motion                                                               */
/* ------------------------------------------------------------------ */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 520ms ease, transform 520ms cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .js .reveal.in {
    opacity: 1;
    transform: none;
  }

  /* The opening: a proposal arrives, is approved, and the stamp lands. Twelve seconds, repeated. */
  .hero .q-row.arrive {
    animation: arrive 12s ease-in-out infinite;
  }

  .hero .stamp {
    animation: stamp 12s cubic-bezier(0.2, 0.9, 0.3, 1.2) infinite;
  }

  .hero .mini.go {
    animation: press 12s ease infinite;
  }

  .hero .float.b {
    animation: note 12s ease infinite;
  }

  /* The new proposal lights up as it lands. It is never missing, so the list never shows a gap. */
  @keyframes arrive {
    0% {
      background: var(--surface);
    }
    3%,
    9% {
      background: var(--green-l);
    }
    18%,
    100% {
      background: var(--surface);
    }
  }

  @keyframes press {
    0%,
    38% {
      transform: none;
      box-shadow: none;
    }
    41% {
      transform: scale(0.95);
      box-shadow: 0 0 0 5px rgba(15, 92, 67, 0.22);
    }
    45%,
    100% {
      transform: none;
      box-shadow: none;
    }
  }

  @keyframes stamp {
    0%,
    42% {
      opacity: 0;
      transform: rotate(-4deg) scale(1.5);
    }
    47%,
    94% {
      opacity: 1;
      transform: rotate(-4deg) scale(1);
    }
    100% {
      opacity: 0;
      transform: rotate(-4deg) scale(1);
    }
  }

  @keyframes note {
    0%,
    48% {
      opacity: 0;
      transform: translateY(8px);
    }
    54%,
    94% {
      opacity: 1;
      transform: none;
    }
    100% {
      opacity: 0;
      transform: none;
    }
  }
}

/* ------------------------------------------------------------------ */
/* Narrower screens                                                     */
/* ------------------------------------------------------------------ */

@media (max-width: 1100px) {
  .mods,
  .family[data-family="core"] .mods {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .foot-about {
    grid-column: 1 / -1;
    max-width: 30rem;
  }

  .win {
    grid-template-columns: 11rem minmax(0, 1fr);
  }

  .win-body {
    grid-template-columns: 1fr;
  }

  .win-body .q {
    display: none;
  }
}

@media (max-width: 960px) {
  .nav,
  .top-actions {
    display: none;
  }

  .burger {
    display: inline-flex;
  }

  .drawer {
    display: none;
    position: fixed;
    inset: 4rem 0 0 0;
    z-index: 49;
    overflow-y: auto;
    background: var(--canvas);
    padding: 1rem var(--gutter) 3rem;
  }

  .drawer[data-open] {
    display: block;
  }

  .drawer h4 {
    margin: 1.4rem 0 0.4rem;
    font: 400 0.6875rem/1 var(--mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--faint);
  }

  .drawer a:not(.btn) {
    display: block;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--rule);
    font: 400 1.25rem/1.25 var(--serif);
    color: var(--ink);
    text-decoration: none;
  }

  .drawer .actions {
    margin-top: 1.5rem;
  }

  .hero-head,
  .sec-head.split,
  .page-hero .wrap,
  .cta .wrap,
  .pair,
  .explorer,
  .module {
    grid-template-columns: 1fr;
  }

  .pair.flip > :first-child {
    order: 0;
  }

  .ways,
  .steps,
  .grid-3,
  .grid-4,
  .plat-fams,
  .plat-base,
  .plat-core {
    grid-template-columns: 1fr;
  }

  .plat-core div {
    justify-content: flex-start;
  }

  .way {
    min-height: 0;
  }

  .facts,
  .dial,
  .phases {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dial-step:nth-child(2),
  .phase:nth-child(2) {
    border-right: 0;
  }

  .dial-step:nth-child(-n + 2),
  .phase:nth-child(-n + 2) {
    border-bottom: 1px solid var(--rule);
  }

  .agents,
  .ledger,
  .gallery,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .ports-art {
    grid-template-columns: 1fr;
  }

  .ports-art .arrow svg {
    transform: rotate(90deg);
  }

  .mod-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .mod-row p {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .float.b {
    left: 0.5rem;
  }
}

@media (max-width: 640px) {
  .mods,
  .family[data-family="core"] .mods,
  .facts {
    grid-template-columns: 1fr;
  }

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

  .stage {
    border-radius: 14px;
    margin-inline: calc(var(--gutter) * -0.5);
  }

  .win {
    grid-template-columns: 1fr;
  }

  .win-rail,
  .win-top .cmd,
  .float.a {
    display: none;
  }

  .float.b {
    bottom: 6.5rem;
  }

  .path li b {
    font-size: 0.6563rem;
  }

  .d-head .row {
    flex-direction: column-reverse;
    gap: 0.45rem;
  }

  .win-top {
    justify-content: space-between;
  }

  .path li span {
    display: none;
  }

  .where {
    grid-template-columns: 1fr;
  }

  .dial,
  .phases {
    grid-template-columns: 1fr;
  }

  .dial-step,
  .phase {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .dial-step:last-child,
  .phase:last-child {
    border-bottom: 0;
  }

  .figures li {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .figures b {
    order: -1;
  }

  .spec > div,
  .agent dl div,
  .mod dl div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .fam-head {
    grid-template-columns: 1fr;
  }

  .table th,
  .table td {
    padding: 0.7rem 0.8rem;
  }
}

@media print {
  .top,
  .foot,
  .cta {
    display: none;
  }
}
