@font-face {
  font-family: "Oswald";
  src: url("/assets/fonts/oswald-latin-wght.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --orange: #f2622e;
  --orange-text: #b23a0b; /* orange for text on light backgrounds (AA) */
  --ink: #141414;
  --ink-2: #1f1f1f;
  --paper: #f7f4ee;
  --paper-2: #eee8de;
  --white: #ffffff;
  --muted: #555049;
  --muted-on-ink: #c9c4bb;
  --line: rgba(20, 20, 20, 0.14);
  --line-on-ink: rgba(247, 244, 238, 0.16);
  --danger: #a3200f;
  --success: #1d6b3a;
  --radius: 4px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.55);
  --font-display: "Oswald", "Arial Narrow", "Roboto Condensed", "Helvetica Neue Condensed", sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 70rem;
  --header-h: 3.5rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.on-orange :focus-visible { outline-color: var(--ink); }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  margin: 0 0 0.5em;
}
h2, .h2 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h3 { font-size: 1.5rem; line-height: 1.1; }
p { margin: 0 0 1em; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.narrow { max-width: 46rem; }
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section-ink { background: var(--ink); color: var(--paper); }
.section-orange { background: var(--orange); color: var(--ink); }
.section-paper-2 { background: var(--paper-2); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--orange-text);
}
.eyebrow::before { content: ""; width: 2rem; height: 3px; background: currentColor; }
.section-ink .eyebrow, .page-head .eyebrow { color: var(--orange); }
.section-orange .eyebrow { color: var(--ink); }

.lead { font-size: clamp(1.25rem, 2.2vw, 1.5rem); line-height: 1.45; max-width: 48ch; }
.muted { color: var(--muted); }
.section-ink .muted { color: var(--muted-on-ink); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--orange); color: var(--ink);
  padding: 0.75rem 1rem; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.75rem 1.4rem;
  border: 2px solid transparent; border-radius: var(--radius);
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: var(--ink); }
.btn-primary:hover { background: #ff7444; }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #2b2b2b; }
.btn-ghost { border-color: currentColor; background: transparent; color: inherit; }
.btn-ghost:hover { background: rgba(127, 127, 127, 0.12); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.6; cursor: progress; transform: none; }
.ext::after { content: "\2197"; font-family: var(--font-body); font-size: 0.9em; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 20, 20, 0.96);
  color: var(--paper);
  border-bottom: 1px solid var(--line-on-ink);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(20, 20, 20, 0.88); backdrop-filter: blur(8px); }
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); flex-wrap: wrap; }
.brand {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; font-size: 1.1rem; line-height: 1.05; text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.6rem; margin-right: auto;
}
.brand-mark { width: 1.9rem; height: 1.9rem; flex: none; }
.site-nav { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; margin-inline: -0.25rem; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav ul { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0 0 0.6rem; white-space: nowrap; }
.site-nav a {
  display: block; padding: 0.45rem 0.65rem; border-radius: var(--radius);
  font-size: 0.95rem; text-decoration: none; color: var(--muted-on-ink);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--paper); background: rgba(247, 244, 238, 0.08); }
.header-cta { min-height: 2.5rem; padding: 0.45rem 1rem; font-size: 0.95rem; }
@media (max-width: 59.99rem) {
  .brand { flex: 1 1 0; min-width: 0; }
  .header-inner { gap: 0.75rem; }
}
@media (max-width: 30rem) {
  .site-header .brand-sub { display: none; }
  .header-cta { padding-inline: 0.8rem; font-size: 0.85rem; }
}
@media (max-width: 22.5rem) {
  .site-header .brand-mark { display: none; }
  .site-header .brand { font-size: 1rem; }
}
@media (min-width: 60rem) {
  .site-nav { order: 0; width: auto; margin: 0; }
  .site-nav ul { padding: 0; }
}

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); padding-block: clamp(3rem, 8vw, 6.5rem) clamp(4rem, 9vw, 7rem); }
.hero::after {
  content: ""; position: absolute; right: -12rem; top: -12rem; width: 38rem; height: 38rem;
  background: radial-gradient(circle, rgba(242, 98, 46, 0.28), transparent 65%);
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); align-items: center; }
@media (min-width: 56rem) { .hero-grid { grid-template-columns: 1.25fr 0.75fr; } }
.hero h1 { font-size: clamp(3rem, 9vw, 6.25rem); line-height: 0.92; margin-bottom: 1.25rem; }
.hero .subtitle { font-size: clamp(1.25rem, 2.6vw, 1.7rem); line-height: 1.3; margin-bottom: 1.5rem; max-width: 34ch; }
.tagline { font-family: var(--font-display); text-transform: uppercase; font-weight: 600; letter-spacing: 0.06em; color: var(--orange); font-size: clamp(1.25rem, 2.4vw, 1.6rem); margin-bottom: 1rem; }
.hero .pitch { color: var(--muted-on-ink); max-width: 52ch; border-left: 3px solid var(--orange); padding-left: 1rem; margin-bottom: 2rem; }
.hero .pitch strong { color: var(--paper); font-weight: 600; }
.hero-cover { justify-self: center; width: min(100%, 22rem); }
.cover-img { width: 100%; height: auto; aspect-ratio: 5 / 8; border-radius: 2px; box-shadow: var(--shadow); background: var(--orange); }
.hero-cover .cover-img { transform: rotate(2deg); }
@media (max-width: 55.99rem) { .hero-cover { order: -1; width: min(70%, 16rem); } }

/* Problem */
.split { display: grid; gap: 2rem 4rem; }
@media (min-width: 56rem) { .split { grid-template-columns: 0.9fr 1.1fr; } }
.questions { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); counter-reset: q; }
@media (min-width: 48rem) { .questions { grid-template-columns: repeat(3, 1fr); } }
.questions li { background: var(--paper); padding: 1.75rem 1.5rem 1.75rem 0; counter-increment: q; font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 1.85rem); line-height: 1.15; text-transform: uppercase; font-weight: 600; }
@media (min-width: 48rem) { .questions li { padding: 2rem 1.5rem; } .questions li:first-child { padding-left: 0; } }
.questions li::before { content: "0" counter(q); display: block; font-size: 1rem; letter-spacing: 0.12em; color: var(--orange-text); margin-bottom: 0.75rem; }
.closer { margin-top: 3rem; font-family: var(--font-display); text-transform: uppercase; font-weight: 700; font-size: clamp(1.6rem, 3.5vw, 2.5rem); line-height: 1.1; max-width: 30ch; }
.closer span { background: linear-gradient(transparent 62%, rgba(242, 98, 46, 0.45) 62%); }

/* Rules */
.rules { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 1.25rem; counter-reset: r; }
@media (min-width: 56rem) { .rules { grid-template-columns: repeat(3, 1fr); } }
.rule { background: var(--ink); color: var(--paper); padding: 2rem 1.75rem 2.25rem; border-radius: var(--radius); counter-increment: r; display: flex; flex-direction: column; }
.rule::before { content: "Rule " counter(r); font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.14em; color: var(--orange); font-weight: 600; font-size: 0.95rem; margin-bottom: 2.5rem; }
.rule p { font-family: var(--font-display); text-transform: uppercase; font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 1.9rem); line-height: 1.12; margin: 0; }

/* Inside */
.feature-grid { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
@media (min-width: 56rem) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
.feature { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }
.feature h3 { margin-bottom: 0.6rem; }
.feature p:last-child { margin-bottom: 0; }
.feature-wide { grid-column: 1 / -1; }

.scale { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.4rem; align-items: end; height: 9rem; margin: 1.5rem 0 1rem; padding: 0; list-style: none; }
.scale li { background: var(--ink); color: var(--paper); font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; text-align: center; padding-top: 0.4rem; border-radius: 2px 2px 0 0; }
.scale li:nth-child(1) { height: 30%; background: #3a3a3a; }
.scale li:nth-child(2) { height: 42%; background: #4a4038; }
.scale li:nth-child(3) { height: 56%; background: #7a4128; }
.scale li:nth-child(4) { height: 70%; background: #a8461f; }
.scale li:nth-child(5) { height: 85%; background: #c64e22; }
.scale li:nth-child(6) { height: 100%; background: var(--orange); color: var(--ink); }
.scale-legend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; font-size: 0.95rem; color: var(--muted); }
.scale-legend strong { color: var(--ink); }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 1rem 0 0; padding: 0; }
.chips li { border: 1.5px solid var(--ink); border-radius: 999px; padding: 0.3rem 0.85rem; font-size: 0.95rem; font-weight: 600; }
.chips li.kill { background: var(--ink); color: var(--paper); }
.section-ink .chips li { border-color: var(--line-on-ink); }

.path { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 0.75rem; margin-top: 1.25rem; }
.path div { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; font-weight: 600; line-height: 1.35; }
.path .to { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.path .arrow { align-self: center; font-size: 1.75rem; color: var(--orange-text); font-weight: 700; }
.path small { display: block; font-weight: 400; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.3rem; opacity: 0.8; }

.domains { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 0.6rem; list-style: none; margin: 1rem 0 0; padding: 0; }
.domains li { background: var(--paper); border-left: 4px solid var(--orange); padding: 0.75rem 1rem; font-weight: 600; }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.ticks li { position: relative; padding-left: 1.6rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.75rem; height: 0.75rem; background: var(--orange); }

.callout { margin-top: 1.25rem; display: grid; gap: 1.25rem; }
@media (min-width: 56rem) { .callout { grid-template-columns: 2fr 1fr; } }
.callout > div { background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: 1.75rem; }
.callout > div.alt { background: var(--orange); color: var(--ink); }
.callout h3 { margin-bottom: 0.5rem; }
.callout p { margin: 0; }

/* Audience */
.audience { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1px; background: var(--line-on-ink); border: 1px solid var(--line-on-ink); }
.audience li { background: var(--ink); padding: 1.5rem; font-family: var(--font-display); text-transform: uppercase; font-weight: 600; font-size: 1.35rem; line-height: 1.15; display: flex; gap: 0.75rem; align-items: baseline; }
.audience li::before { content: ""; width: 0.6rem; height: 0.6rem; background: var(--orange); flex: none; transform: translateY(-0.1rem); }

/* Book */
.book-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 56rem) { .book-grid { grid-template-columns: 0.7fr 1.3fr; } }
.book-cover { width: min(100%, 20rem); justify-self: center; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 1.5rem 0; }
.facts div { background: var(--paper-2); padding: 1rem; }
.facts dt { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.facts dd { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 3vw, 2rem); text-transform: uppercase; line-height: 1.1; }
.editions { display: grid; gap: 1rem; margin: 1.5rem 0; }
@media (min-width: 40rem) { .editions { grid-template-columns: repeat(2, 1fr); } }
.edition { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.edition h3 { margin: 0; font-size: 1.25rem; }
.price { font-family: var(--font-display); font-weight: 700; font-size: 2.25rem; line-height: 1; }
.edition .btn { margin-top: auto; }
.isbn { font-size: 0.95rem; color: var(--muted); }

/* Speaking & consulting */
.engage { display: grid; gap: 3rem; }
@media (min-width: 60rem) { .engage { grid-template-columns: 1fr 1fr; align-items: start; } }
.topics { list-style: none; margin: 1.5rem 0 2rem; padding: 0; counter-reset: t; display: grid; gap: 0.75rem; }
.topics li { counter-increment: t; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem 1.1rem 3.6rem; position: relative; font-weight: 600; line-height: 1.35; }
.topics li::before { content: counter(t); position: absolute; left: 1.1rem; top: 0.95rem; width: 1.75rem; height: 1.75rem; background: var(--orange); color: var(--ink); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; border-radius: 2px; }
.meta-list { display: grid; gap: 1rem; margin: 0; }
.meta-list dt { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; font-size: 0.95rem; color: var(--orange-text); }
.meta-list dd { margin: 0.2rem 0 0; }

/* Forms */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 4vw, 2.25rem); box-shadow: 0 20px 50px -30px rgba(0, 0, 0, 0.35); }
.form-card h3 { font-size: 1.75rem; }
.form-grid { display: grid; gap: 1.1rem; }
@media (min-width: 36rem) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: 0.95rem; }
.field .req { color: var(--danger); margin-left: 0.15rem; }
.field .hint { font-size: 0.85rem; color: var(--muted); }
input[type="text"], input[type="email"], input[type="date"], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white);
  border: 1.5px solid #8a847b; border-radius: var(--radius);
  padding: 0.7rem 0.8rem; min-height: 3rem;
}
textarea { min-height: 8rem; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 1.15rem) 1.3rem, calc(100% - 0.8rem) 1.3rem; background-size: 0.35rem 0.35rem; background-repeat: no-repeat; padding-right: 2.25rem; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--orange); outline-offset: 1px; border-color: var(--ink); }
[aria-invalid="true"] { border-color: var(--danger) !important; }
fieldset.field { border: 0; margin: 0; padding: 0; }
fieldset.field legend { padding: 0; margin-bottom: 0.35rem; }
.options { display: grid; gap: 0.5rem; }
@media (min-width: 36rem) { .options.two { grid-template-columns: 1fr 1fr; } }
.option { display: flex; gap: 0.6rem; align-items: flex-start; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 0.7rem 0.8rem; cursor: pointer; font-weight: 500; line-height: 1.35; }
.option input { width: 1.15rem; height: 1.15rem; margin: 0.1rem 0 0; accent-color: var(--orange-text); flex: none; }
.option:has(input:checked) { border-color: var(--ink); background: #fff6f1; }
.field-error { color: var(--danger); font-size: 0.9rem; font-weight: 600; }
.field-error:empty { display: none; }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 0.5rem; }
.privacy-note { font-size: 0.9rem; color: var(--muted); margin: 0; }
.form-status { border-radius: var(--radius); padding: 1rem 1.1rem; font-weight: 600; margin-bottom: 1.25rem; }
.form-status:empty { display: none; }
.form-status.error { background: #fdecea; color: var(--danger); border-left: 4px solid var(--danger); }
.form-success { border-left: 6px solid var(--success); background: #eef7f0; padding: 1.5rem; border-radius: var(--radius); }
.form-success h3 { color: var(--success); margin-bottom: 0.5rem; }
.form-success p:last-child { margin-bottom: 0; }
.error-list { color: var(--danger); font-weight: 600; }

/* About */
.about { display: grid; gap: 2rem 4rem; }
@media (min-width: 56rem) { .about { grid-template-columns: 0.8fr 1.2fr; } }
.creds { margin-top: 1.5rem; }

/* CTA band */
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-band h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.75rem); }

/* Page header for subpages */
.page-head { background: var(--ink); color: var(--paper); padding-block: clamp(3rem, 7vw, 5rem); }
.page-head h1 { font-size: clamp(2.6rem, 7vw, 4.75rem); line-height: 0.95; }
.page-head .lead { color: var(--muted-on-ink); max-width: 52ch; margin: 0; }
.choice-grid { display: grid; gap: 1rem; margin-top: 2rem; }
@media (min-width: 40rem) { .choice-grid { grid-template-columns: 1fr 1fr; } }
.choice { display: block; text-decoration: none; background: var(--ink-2); border: 1px solid var(--line-on-ink); border-radius: var(--radius); padding: 1.5rem; }
.choice:hover { border-color: var(--orange); }
.choice strong { display: block; font-family: var(--font-display); text-transform: uppercase; font-size: 1.5rem; margin-bottom: 0.25rem; }
.choice span { color: var(--muted-on-ink); }

/* Footer */
.site-footer { background: var(--ink); color: var(--muted-on-ink); padding-block: 3rem; border-top: 4px solid var(--orange); font-size: 0.95rem; }
.footer-grid { display: grid; gap: 1.5rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1fr auto; align-items: end; } }
.site-footer .brand { color: var(--paper); margin-bottom: 0.75rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--paper); }
.site-footer p { margin: 0.25rem 0; }

/* 404 */
.notfound { min-height: 60vh; display: grid; align-content: center; }
.notfound .big { font-family: var(--font-display); font-weight: 700; font-size: clamp(6rem, 20vw, 12rem); line-height: 0.9; color: var(--orange); }

@media print {
  .site-header, .site-footer, .btn, form { display: none !important; }
  .hero, .section-ink, .section-orange { background: none; color: #000; }
}
.spaced { margin-top: 1.75rem; }

/* Brand */
.brand-text { display: flex; flex-direction: column; gap: 0.15rem; }
.brand-sub { font-family: var(--font-body); font-weight: 500; text-transform: none; letter-spacing: 0; font-size: 0.78rem; color: var(--muted-on-ink); }
.footer-ext { margin-top: 0.75rem; }

/* Quotes */
.quote-card { list-style: none; display: flex; flex-direction: column; justify-content: space-between; gap: 1.25rem; background: var(--white); color: var(--ink); border: 1px solid var(--line); border-top: 4px solid var(--orange); border-radius: var(--radius); padding: 1.5rem; }
.quote-card figure { margin: 0; }
.quote-card blockquote { margin: 0; }
.quote-card blockquote p { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.3rem, 2.4vw, 1.6rem); line-height: 1.2; }
.quote-card blockquote p::before { content: "\201C"; }
.quote-card blockquote p::after { content: "\201D"; }
.quote-card figcaption { margin-top: 0.85rem; color: var(--muted); font-size: 0.95rem; }
.quote-card cite { font-style: italic; }
.share { align-self: flex-start; font-weight: 600; font-size: 0.95rem; color: var(--orange-text); }
.share::after { content: " \2197"; }
.quote-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
@media (min-width: 40rem) { .quote-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .quote-grid { grid-template-columns: repeat(3, 1fr); } }
.quote-grid .quote-thesis { grid-column: 1 / -1; background: var(--orange); border-color: var(--orange); }
.quote-thesis blockquote p { font-size: clamp(2rem, 5.5vw, 4rem); font-weight: 700; text-transform: uppercase; line-height: 1.02; max-width: 22ch; }
.quote-thesis figcaption { color: var(--ink); }
.quote-grid .quote-thesis .share, .thesis .share { color: var(--ink); }
.thesis .quote-card { background: transparent; border: 0; padding: 0; }
.thesis .quote-thesis blockquote p { color: var(--ink); }
.thesis .eyebrow { color: var(--orange-text); margin: 0 0 1rem; font-size: 0.9rem; }
.strip-head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; justify-content: space-between; margin-bottom: 1.75rem; }
.strip-head h2 { margin: 0; }
.quote-strip { position: relative; list-style: none; margin: 0; padding: 0 0 1rem; display: grid; grid-auto-flow: column; grid-auto-columns: min(85%, 22rem); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
.quote-strip > li { scroll-snap-align: start; }
.quote-strip:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.section-ink .quote-strip .quote-card { background: var(--ink-2); color: var(--paper); border-color: var(--line-on-ink); border-top-color: var(--orange); }
.section-ink .quote-strip figcaption { color: var(--muted-on-ink); }
.section-ink .quote-strip .share { color: var(--orange); }

/* Speaking: why + bios */
.why-grid { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 40rem) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .why-grid { grid-template-columns: repeat(4, 1fr); } }
.why-grid li { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: var(--radius); padding: 1.25rem; }
.why-grid strong { display: block; font-family: var(--font-display); text-transform: uppercase; font-size: 1.3rem; margin-bottom: 0.35rem; }
.bios { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
@media (min-width: 56rem) { #speaker-kit .bios { grid-template-columns: 1fr 1.4fr; align-items: start; } }
.bio { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.5rem; }
.bio-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.bio-head h3 { margin: 0; font-size: 1.25rem; }
.bio-head .hint { font-family: var(--font-body); text-transform: none; font-weight: 400; font-size: 0.85rem; color: var(--muted); }
.bio-text { margin: 0.85rem 0 0; line-height: 1.6; }
.btn-sm { min-height: 2.25rem; padding: 0.35rem 0.9rem; font-size: 0.9rem; }
.copy-btn { display: none; }
.js .copy-btn { display: inline-flex; }

/* Advisory: steps */
.steps { list-style: none; margin: 1rem 0 0; padding: 0; counter-reset: s; display: grid; gap: 0.75rem; }
.steps li { counter-increment: s; display: grid; gap: 0.25rem; padding: 1rem 1.25rem 1rem 4rem; position: relative; border-left: 3px solid var(--orange); background: var(--white); border-radius: var(--radius); }
.steps li::before { content: "0" counter(s); position: absolute; left: 1.1rem; top: 0.9rem; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--orange-text); }
.steps strong { font-family: var(--font-display); text-transform: uppercase; font-size: 1.15rem; }

/* Contact tabs */
.tablist { display: flex; flex-wrap: wrap; gap: 0.5rem; border-bottom: 2px solid var(--ink); margin-bottom: 1.75rem; }
.tab { display: inline-block; padding: 0.75rem 1.25rem; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.03em; font-size: 1.1rem; font-weight: 600; text-decoration: none; color: var(--ink); border: 2px solid transparent; border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; margin-bottom: -2px; }
.tab:hover { background: var(--paper-2); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tab:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.tabpanel + .tabpanel { margin-top: 2rem; }
.js .tabpanel + .tabpanel { margin-top: 0; }
.tabpanel[hidden] { display: none; }
.tabpanel .form-card { max-width: 48rem; }

/* Press */
.press-grid { display: grid; gap: 2rem; margin-top: 1.5rem; }
@media (min-width: 56rem) { .press-grid { grid-template-columns: 16rem 1fr; align-items: start; } }
.press-cover { display: grid; gap: 1rem; justify-items: start; }
.press-cover img { width: 100%; max-width: 16rem; height: auto; box-shadow: var(--shadow); }
.press-facts { margin: 0; display: grid; gap: 0.5rem; }
.press-facts div { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; }
.press-facts dt { font-weight: 700; }
.press-facts dd { margin: 0; }
.press-cover .hint { margin: -0.5rem 0 0; font-size: 0.85rem; color: var(--muted); }

/* Author portrait: colour, rectangular with soft corners, never cropped to a circle. */
.portrait-img { display: block; width: 100%; height: auto; border-radius: 10px; background: var(--white); box-shadow: 0 20px 50px -28px rgba(0, 0, 0, 0.45); }
.author-band { background: var(--white); }
.author-grid { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 56rem) { .author-grid { grid-template-columns: 0.85fr 1.15fr; } }
.author-photo { max-width: 26rem; }
.author-band h2 { margin-bottom: 1rem; }
.author-band .lead { font-family: var(--font-display); text-transform: uppercase; font-weight: 600; line-height: 1.15; font-size: clamp(1.5rem, 3vw, 2.1rem); max-width: 24ch; }
.author-band .btn-row { margin: 2rem 0 1.25rem; }
.more { font-weight: 600; color: var(--orange-text); }
.more::after { content: " \2192"; }
.on-orange .more, .section-ink .more { color: inherit; }
.why-layout { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 56rem) {
  .why-layout { grid-template-columns: 20rem 1fr; gap: 3.5rem; }
  .why-layout .why-grid { grid-template-columns: repeat(2, 1fr); }
}
.why-photo { max-width: 22rem; }
.about-photo { max-width: 26rem; }
.press-cover .portrait-img { max-width: 16rem; margin-top: 1.5rem; }
.page-head-tight { padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.section-tight { padding-block: clamp(2rem, 5vw, 3.5rem); }

/* Talk to the book */
.guide-fab {
  position: fixed; right: clamp(0.75rem, 2vw, 1.5rem); bottom: clamp(0.75rem, 2vw, 1.5rem); z-index: 40;
  display: inline-flex; align-items: center; gap: 0.6rem; min-height: 3rem; padding: 0.7rem 1.2rem;
  background: var(--ink); color: var(--paper); border: 2px solid var(--orange); border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; font-size: 1rem;
  text-decoration: none; box-shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.6);
}
.guide-fab:hover { background: var(--ink-2); }
.guide-fab-mark { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--orange); }
.guide-open .guide-fab { display: none; }
@media print { .guide-fab { display: none; } }

.guide { display: flex; flex-direction: column; gap: 0.75rem; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: clamp(1rem, 3vw, 1.75rem); }
.guide-embed { min-height: min(70vh, 40rem); }
.guide-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 0.75rem; padding: 0.25rem; min-height: 16rem; max-height: min(62vh, 38rem); }
.guide-embed .guide-log { max-height: none; min-height: 24rem; }
.msg { max-width: 40rem; padding: 0.85rem 1.1rem; border-radius: 12px; line-height: 1.5; }
.msg p { margin: 0; }
.msg p + p { margin-top: 0.6rem; }
.msg-guide { background: var(--paper); border-left: 4px solid var(--orange); align-self: flex-start; }
.msg-guide:first-child { font-family: var(--font-display); text-transform: uppercase; font-weight: 600; font-size: 1.3rem; line-height: 1.2; }
.msg-you { background: var(--ink); color: var(--paper); align-self: flex-end; }
.msg-typing { display: flex; gap: 0.3rem; padding: 1rem 1.1rem; }
.msg-typing span { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--muted); animation: guide-dot 1s infinite ease-in-out; }
.msg-typing span:nth-child(2) { animation-delay: 0.15s; }
.msg-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes guide-dot { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
.chips, .guide-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { min-height: 2.75rem; padding: 0.5rem 1rem; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); color: var(--ink); font: inherit; font-weight: 600; font-size: 0.98rem; cursor: pointer; }
.chip:hover { background: var(--orange); border-color: var(--orange); }
.guide-actions { padding-top: 0.25rem; }
.guide-actions .btn { color: var(--ink); }
.guide-actions .btn-primary { color: var(--ink); }
.guide-input { display: flex; gap: 0.5rem; align-items: flex-end; border-top: 1px solid var(--line); padding-top: 0.75rem; }
.guide-input textarea { flex: 1; min-height: 3rem; max-height: 8rem; resize: vertical; padding: 0.7rem 0.85rem; font: inherit; border: 2px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink); }
.guide-input textarea:focus { border-color: var(--ink); }
.guide-input textarea:disabled { background: var(--paper); }
.guide-foot { display: flex; justify-content: space-between; align-items: center; }
.guide-reset { background: none; border: 0; padding: 0.5rem 0; font: inherit; font-size: 0.9rem; color: var(--muted); text-decoration: underline; cursor: pointer; }
.guide-privacy { margin-top: 0.75rem; color: var(--muted); font-size: 0.9rem; }
.guide-lead { display: grid; gap: 0.75rem; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 1.25rem; max-width: 34rem; }
.guide-lead-title { margin: 0; font-family: var(--font-display); text-transform: uppercase; font-weight: 700; font-size: 1.3rem; }
.guide-lead input[type="text"], .guide-lead input[type="email"] { padding: 0.6rem 0.75rem; font: inherit; border: 2px solid var(--line); border-radius: 6px; background: var(--white); color: var(--ink); }
.guide-lead input[aria-invalid="true"] { border-color: var(--danger); }
.guide-lead .form-status { margin: 0; padding: 0; }
.guide-lead .btn { justify-self: start; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; }
.check input { width: 1.2rem; height: 1.2rem; margin-top: 0.2rem; accent-color: var(--ink); }

.guide-dialog { width: min(100% - 2rem, 44rem); max-height: min(100% - 2rem, 52rem); padding: 0; border: 0; border-radius: 14px; background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.guide-dialog::backdrop { background: rgba(20, 20, 20, 0.6); }
.guide-dialog[open] { display: flex; flex-direction: column; }
.guide-dialog-head { display: flex; justify-content: space-between; align-items: center; padding: 0.85rem 1.25rem; background: var(--ink); color: var(--paper); }
.guide-dialog-head h2 { margin: 0; font-size: 1.4rem; }
.guide-close { width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; background: transparent; color: var(--paper); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.guide-close:hover { background: rgba(247, 244, 238, 0.12); }
.guide-dialog .guide { border: 0; border-radius: 0; flex: 1; min-height: 0; }
@media (max-width: 40rem) {
  .guide-dialog { width: 100%; max-width: 100%; height: 100%; max-height: 100%; border-radius: 0; }
  .guide-dialog .guide-log { max-height: none; }
}

/* Frameworks page */
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.fw-toc { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem 2rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); counter-reset: fw; }
.fw-toc li { counter-increment: fw; border-top: 1px solid var(--line); padding-top: 0.6rem; }
.fw-toc li::before { content: counter(fw, decimal-leading-zero); color: var(--orange-text); font-weight: 700; margin-right: 0.6rem; font-size: 0.9rem; letter-spacing: 0.08em; }
.fw-toc a { color: var(--ink); text-decoration: none; font-weight: 600; }
.fw-toc a:hover { text-decoration: underline; }
.fw-body { max-width: 62rem; }
.fw-body > p:not(.lead):not(.fw-num):not(.fw-formula) { max-width: 68ch; }
.fw-body h3 { margin-top: 2rem; }
.fw-num { font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange-text); font-weight: 700; margin-bottom: 0.5rem; }
.fw-list { margin: 1rem 0 1.5rem; padding-left: 1.4rem; display: grid; gap: 0.55rem; max-width: 68ch; }
.fw-table-wrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.fw-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 34rem; }
.fw-table th, .fw-table td { text-align: left; vertical-align: top; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); }
.fw-table thead th { background: var(--ink); color: var(--paper); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.fw-table tbody th { font-weight: 700; white-space: nowrap; }
.fw-table tbody tr:last-child > * { border-bottom: 0; }
.fw-formula { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--white); border-left: 4px solid var(--orange); padding: 0.9rem 1rem; margin: 1.25rem 0; font-size: 0.95rem; overflow-wrap: anywhere; }
.fw-note { font-size: 0.9rem; color: #555; margin-top: 1rem; }
@media (max-width: 40rem) { .fw-table tbody th { white-space: normal; } }

/* Louder photo, more prominent book (Nov 25, 2026) */
@media (min-width: 56rem) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; } }
.hero-cover { width: min(100%, 30rem); }
.hero-cover .cover-img { box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.06); }
@media (max-width: 55.99rem) { .hero-cover { width: min(82%, 21rem); } }
.author-band { padding-block: clamp(3.5rem, 7vw, 6rem); }
@media (min-width: 56rem) { .author-grid { grid-template-columns: 1.1fr 0.9fr; } }
.author-photo { max-width: 34rem; width: 100%; }
.author-photo .portrait-img { border-radius: 12px; box-shadow: 0 34px 80px -30px rgba(0, 0, 0, 0.55); }
.author-band h2 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
@media (min-width: 56rem) { .why-layout { grid-template-columns: 26rem 1fr; } }
.why-photo { max-width: 26rem; }
.about-photo { max-width: 32rem; }

/* Interactive frameworks */
.ix { margin: 2rem 0 0.5rem; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--orange); border-radius: var(--radius); padding: clamp(1.1rem, 3vw, 1.75rem); }
.section-ink .ix { background: #1d1d1d; border-color: rgba(255,255,255,0.12); border-top-color: var(--orange); color: var(--paper); }
.ix-label { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--orange-text); margin: 0 0 0.75rem; }
.ix-cap { margin: 0 0 1rem; font-weight: 600; }
.ix button { font: inherit; cursor: pointer; }
.ix input[type="range"] { width: 100%; accent-color: var(--orange); }
.ix-sl { display: block; margin: 0 0 0.9rem; font-size: 0.95rem; }
.ix-sl output { float: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.ix-result { margin: 1.1rem 0 0; padding: 0.85rem 1rem; background: var(--paper); border-left: 4px solid var(--orange); border-radius: 4px; }
.section-ink .ix-result { background: #262626; }
/* live run */
.lr-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.lr-tab { background: transparent; color: var(--paper); border: 1px solid rgba(255,255,255,0.3); border-radius: 999px; padding: 0.45rem 0.95rem; font-size: 0.9rem; }
.lr-tab[aria-selected="true"] { background: var(--orange); color: var(--ink); border-color: var(--orange); }
.lr-console { color: var(--paper); background: #0c0c0c; border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; overflow: hidden; }
.lr-bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.6rem 0.9rem; background: #181818; font-size: 0.8rem; color: #aaa; }
.lr-bar span { width: 0.65rem; height: 0.65rem; border-radius: 50%; background: #444; }
.lr-bar b { margin-left: 0.6rem; font-weight: 500; }
.lr-steps { list-style: none; margin: 0; padding: 0.5rem 1rem 1rem; display: grid; gap: 0.25rem; }
.lr-steps > li { opacity: 0.28; transition: opacity 0.3s; padding: 0.6rem 0 0.6rem 1rem; border-left: 2px solid #333; }
.lr-steps > li.on { opacity: 1; border-left-color: var(--orange); }
.lr-steps > li.done { border-left-color: #3a8f5c; }
.lr-k { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: #f2a07f; margin: 0 0 0.35rem; font-weight: 700; }
.lr-v { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92rem; line-height: 1.55; color: #e9e6df; min-height: 1.4em; }
.lr-v.typing::after { content: "\258C"; color: var(--orange); }
.lr-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; font-size: 0.9rem; }
.lr-checks li { display: grid; grid-template-columns: 1.4rem 11rem 1fr; gap: 0.5rem; align-items: baseline; animation: lrIn 0.25s ease-out; }
.lr-checks li::before { font-weight: 700; }
.lr-checks .lr-ok::before { content: "\2713"; color: #5cc98a; }
.lr-checks .lr-warn::before { content: "!"; color: #f2c14e; }
.lr-checks .lr-stop::before { content: "\2715"; color: #ff6b5b; }
.lr-checks span { color: #c9c5bd; }
@media (max-width: 40rem) { .lr-checks li { grid-template-columns: 1.4rem 1fr; } .lr-checks span { grid-column: 2; } }
@keyframes lrIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.lr-result { display: grid; gap: 0.3rem; padding: 0.9rem 1rem; border-radius: 8px; animation: lrIn 0.3s ease-out; }
.lr-result b { font-family: var(--font-display); text-transform: uppercase; font-size: 1.25rem; letter-spacing: 0.02em; }
.lr-result span { color: #d8d4cc; }
.lr-r-post { background: rgba(92, 201, 138, 0.14); border: 1px solid rgba(92, 201, 138, 0.5); }
.lr-r-human { background: rgba(242, 193, 78, 0.12); border: 1px solid rgba(242, 193, 78, 0.5); }
.lr-r-stop { background: rgba(255, 107, 91, 0.12); border: 1px solid rgba(255, 107, 91, 0.5); }
.lr-tune { margin-top: 1.25rem; display: grid; gap: 0.75rem 2rem; }
@media (min-width: 48rem) { .lr-tune { grid-template-columns: 1fr 1fr; } .lr-tune .lr-k, .lr-formula { grid-column: 1 / -1; } }
.lr-tune label { font-size: 0.95rem; }
.lr-tune output { float: right; font-weight: 700; }
.lr-formula { margin: 0; font-size: 0.92rem; color: #c9c5bd; }
/* level explorer */
.lx-ticks { display: flex; justify-content: space-between; font-size: 0.8rem; font-weight: 700; margin: 0.2rem 0 1rem; }
.lx-card { background: var(--paper); border-radius: 8px; padding: 1rem 1.1rem; }
.lx-name { font-family: var(--font-display); text-transform: uppercase; font-size: 1.5rem; margin: 0 0 0.5rem; }
.lx-who { display: flex; gap: 2rem; margin: 0 0 0.5rem; }
.lx-who dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: #666; }
.lx-who dd { margin: 0; font-weight: 700; }
.lx-how { margin: 0; }
.lx-chart { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.6rem; height: 10rem; align-items: end; margin-top: 1.25rem; }
.lx-bar { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; font-size: 0.75rem; }
.lx-bar i { display: block; width: 100%; background: #d9d3c7; border-radius: 4px 4px 0 0; transition: background 0.2s; }
.lx-bar.on i { background: var(--orange); }
.lx-bar span { order: -1; margin-bottom: 0.2rem; font-weight: 600; }
.lx-bar em { font-style: normal; font-weight: 700; margin-top: 0.3rem; }
.lx-note { margin: 0.75rem 0 0; font-size: 0.95rem; }
/* ceiling */
.ce-grid { display: grid; grid-template-columns: minmax(7rem, 1.1fr) repeat(3, 1fr); gap: 0.4rem; font-size: 0.85rem; align-items: center; }
.ce-grid > b { font-weight: 700; }
.ce-cell { border: 1px solid var(--line); background: var(--paper); border-radius: 6px; padding: 0.7rem 0.3rem; font-weight: 700; }
.ce-cell.on { background: var(--orange); border-color: var(--orange); }
.ce-mods { border: 0; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 0.45rem; }
.ce-mods legend { font-weight: 700; margin-bottom: 0.4rem; }
/* promotion */
.pr-checks { display: grid; gap: 0.4rem; margin: 0.5rem 0 1rem; }
.pr-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 0.35rem 1rem; font-size: 0.9rem; }
.pr-list li::before { display: inline-block; width: 1.3rem; font-weight: 700; }
.pr-list .yes::before { content: "\2713"; color: #2e8a55; }
.pr-list .no::before { content: "\2715"; color: #c0392b; }
.pr-trig { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-top: 1rem; font-size: 0.9rem; }
.pr-trig button, .ch-toggle button, .dn-yn button { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 0.35rem 0.8rem; font-size: 0.85rem; }
.ch-toggle button[aria-pressed="true"], .dn-yn button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
/* harness */
.hx-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 0.45rem; }
.hx-part { text-align: left; border: 1px solid var(--line); background: var(--paper); border-radius: 6px; padding: 0.6rem 0.7rem; font-size: 0.85rem; font-weight: 600; transition: background 0.15s; }
.hx-part em { font-style: normal; color: var(--orange-text); margin-right: 0.4rem; }
.hx-part.broken { border: 2px dashed #c0392b; }
.hx-part.pass { background: #dff3e6; border-color: #7cc49a; }
.hx-part.fail { background: #fbe0dc; border-color: #c0392b; }
.hx-btns { margin-top: 1rem; }
/* chain */
.ch-toggle { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.ch-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 0.5rem; counter-reset: ch; }
.ch-link { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 0.7rem; display: grid; gap: 0.4rem; font-size: 0.85rem; font-weight: 600; }
.ch-link[data-l="0"], .ch-link[data-l="1"] { box-shadow: inset 0 -4px 0 #e0a19a; }
.ch-link[data-l="2"] { box-shadow: inset 0 -4px 0 #ecd27f; }
.ch-link[data-l="3"], .ch-link[data-l="4"] { box-shadow: inset 0 -4px 0 #7cc49a; }
.ch-link.weak { outline: 3px solid var(--orange); }
.ch-link select { font: inherit; padding: 0.25rem; }
/* cost */
.co-grid { display: grid; gap: 0 2rem; }
@media (min-width: 48rem) { .co-grid { grid-template-columns: 1fr 1fr; } }
.co-bars { display: grid; gap: 0.5rem; margin-top: 0.5rem; }
.co-bars div { display: grid; grid-template-columns: 7rem 1fr 4.5rem; align-items: center; gap: 0.6rem; font-size: 0.9rem; }
.co-bars i { display: block; height: 1.1rem; border-radius: 3px; transition: width 0.25s; }
.co-a { background: var(--orange); } .co-h { background: #9b958a; }
.co-bars b { text-align: right; font-variant-numeric: tabular-nums; }
/* dna */
.dn-q { margin: 0; padding-left: 1.3rem; display: grid; gap: 0.5rem; }
.dn-q li { display: flex; justify-content: space-between; gap: 1rem; align-items: center; flex-wrap: wrap; }
.dn-yn { display: inline-flex; gap: 0.35rem; }
/* maturity */
.mt-wrap { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 48rem) { .mt-wrap { grid-template-columns: 1fr 1fr; } }
.mt-svg { width: 100%; max-width: 22rem; justify-self: center; }
.mt-ring { fill: none; stroke: #ddd6c9; }
.mt-ax { stroke: #ddd6c9; }
.mt-svg text { font-size: 9px; fill: #444; font-weight: 600; }
.mt-shape { fill: rgba(242, 98, 46, 0.25); stroke: var(--orange); stroke-width: 2; transition: all 0.2s; }
.mt-dot { fill: var(--orange); } .mt-weak { fill: #c0392b; r: 6; }
/* flywheel */
.fl-wheel { position: relative; display: flex; justify-content: center; gap: 2.5rem; margin: 0.5rem 0 1rem; }
.fl-v, .fl-r { width: 6.5rem; height: 6.5rem; border-radius: 50%; border: 6px dashed; display: grid; place-items: center; animation: flSpin 6s linear infinite; }
.fl-v { border-color: #2e8a55; } .fl-r { border-color: #c0392b; }
.fl-v span, .fl-r span { animation: flSpin 6s linear infinite reverse; animation-duration: inherit; font-weight: 700; text-transform: uppercase; font-size: 0.8rem; }
@keyframes flSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .fl-v, .fl-r, .fl-v span, .fl-r span { animation: none; } }
.fl-red { display: block; font-size: 0.95rem; }
.lx-chart { height: auto; }
.ix input[type="checkbox"] { accent-color: var(--orange); width: 1.05rem; height: 1.05rem; vertical-align: -0.15rem; }
.ix, [id] { scroll-margin-top: 6rem; }

/* ---------- Blueprints ---------- */
.bp-subnav { background: var(--ink-2); color: var(--paper); border-top: 1px solid var(--line-on-ink); position: relative; }
.bp-subnav .container { display: flex; align-items: center; gap: 0.5rem 1rem; flex-wrap: wrap; padding-block: 0.5rem; }
.bp-subnav ul { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; margin: 0; padding: 0; }
.bp-subnav a { display: inline-block; padding: 0.35rem 0.85rem; border-radius: 999px; text-decoration: none; font-size: 0.92rem; color: var(--muted-on-ink); border: 1px solid var(--line-on-ink); }
.bp-subnav a:hover { color: var(--paper); }
.bp-subnav a[aria-current="page"] { background: var(--orange); color: var(--ink); border-color: var(--orange); font-weight: 600; }
.bp-subnav-home { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.08em; border: 0 !important; padding-left: 0 !important; }
.h-sm { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.bp-section { padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.bp-ix { margin: 1.5rem 0 0.5rem; }
.bp-js .bp-flow-static { display: none; }
.bp-flow-static, .bp-var-static { display: grid; gap: 0.5rem; padding-left: 1.4rem; max-width: 70ch; }
.bp-var-static .muted { display: block; font-size: 0.92rem; }

/* pills and segmented toggles */
.pill, .seg { font: inherit; font-size: 0.9rem; cursor: pointer; border: 1px solid var(--line); background: var(--white); color: var(--ink); border-radius: 999px; padding: 0.42rem 0.95rem; line-height: 1.2; transition: background-color 0.15s, color 0.15s; }
.pill:hover, .seg:hover { border-color: var(--ink); }
.pill[aria-pressed="true"], .seg[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pill b { color: var(--orange-text); margin-right: 0.15rem; }
.pill[aria-pressed="true"] b { color: var(--orange); }
.pill span { opacity: 0.7; font-size: 0.8rem; margin-left: 0.25rem; }
.pill-dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pill-ghost { background: transparent; }
.pill-warn { border-color: #d9a33a; background: #fff7e6; }
.pill-warn:hover { background: #ffe9bf; }
.pill:disabled, .seg:disabled { opacity: 0.45; cursor: not-allowed; }
.section-ink .pill-dark { background: var(--orange); color: var(--ink); border-color: var(--orange); }

/* layer filter */
.lf { margin: 1rem 0 1.25rem; }
.lf-label { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--orange-text); margin: 0 0 0.5rem; }
.lf-tabs, .ar-vars, .wf-tabs, .wf-fails, .wf-view, .wf-run-btns { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.lf-desc { margin: 0.6rem 0 0; font-size: 0.95rem; color: var(--muted); }
.ls { display: inline-flex; gap: 2px; vertical-align: middle; }
.ls-i { font-size: 0.62rem; font-weight: 700; padding: 0.05rem 0.25rem; border-radius: 3px; background: var(--paper-2); color: #8a857c; letter-spacing: 0.02em; }
.ls-i.on { background: var(--ink); color: var(--paper); }
.ls-i.cur { outline: 2px solid var(--orange); }

/* hub */
.hf { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
@media (min-width: 60rem) { .hf { grid-template-columns: 1.05fr 0.95fr; align-items: start; } }
.hf-svg { width: 100%; height: auto; display: block; }
.hf-band { fill: #1c1c1c; stroke: rgba(255, 255, 255, 0.1); transition: fill 0.3s; }
.hf-row.on .hf-band { fill: #2a1d17; stroke: var(--orange); }
.hf-name { fill: #c9c4bb; font-size: 14px; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.06em; }
.hf-row.on .hf-name { fill: var(--paper); }
.hf-node { fill: #262626; stroke: rgba(255, 255, 255, 0.25); }
.hf-row.on .hf-node, .hf-row.done .hf-node { fill: var(--orange); stroke: var(--orange); }
.hf-node-t { fill: var(--paper); font-size: 12px; font-weight: 600; }
.hf-row.on .hf-node-t, .hf-row.done .hf-node-t { fill: var(--ink); }
.hf-line { fill: none; stroke: rgba(242, 98, 46, 0.55); stroke-width: 2; stroke-dasharray: 5 6; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -22; } }
.tok { fill: var(--orange); stroke: var(--white); stroke-width: 3; filter: drop-shadow(0 0 6px rgba(242, 98, 46, 0.8)); }
.hf-log, .ar-log { list-style: none; margin: 0; padding: 0.75rem 1rem; display: grid; gap: 0.5rem; min-height: 10rem; max-height: 26rem; overflow-y: auto; }
.hf-log li, .ar-log li { display: grid; gap: 0.15rem; animation: lrIn 0.25s ease-out; }
.hf-log b, .ar-log b { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: #f2a07f; }
.hf-log span, .ar-log span { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88rem; color: #e9e6df; }
.hf-log span.typing::after, .ar-log span.typing::after, .wf-log span.typing::after { content: "\258C"; color: var(--orange); }
.hf-ctl, .ar-ctl { display: flex; gap: 0.5rem; padding: 0 1rem 1rem; }
.hf-ctl { padding: 0.75rem 0 0; }
.bp-cards { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.bp-card { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--orange); border-radius: var(--radius); padding: 1.4rem; position: relative; }
.bp-card h3 a { text-decoration: none; }
.bp-card h3 a::after { content: ""; position: absolute; inset: 0; }
.bp-card:hover { border-color: var(--ink); }
.bp-card:focus-within { outline: 3px solid var(--orange); outline-offset: 2px; }
.bp-card-n { font-family: var(--font-display); color: var(--orange-text); font-weight: 700; letter-spacing: 0.1em; }
.bp-card p { margin: 0; color: var(--muted); }

/* alignment */
.al-wrap { margin-top: 1.5rem; }
.al-layer { margin-bottom: 2rem; }
.al-layer h3 { margin-bottom: 0.3rem; }
.al-items { padding-left: 1.5rem; display: grid; gap: 0.4rem; }
.al-items summary { cursor: pointer; font-weight: 600; }
.al-items dl, .al-panel dl { display: grid; gap: 0.5rem; margin: 0.6rem 0 0.4rem; }
.al-items dt, .al-panel dt, .ar-dl dt { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.al-items dd, .al-panel dd, .ar-dl dd { margin: 0; }
.al-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.al-tab { font: inherit; font-size: 0.95rem; cursor: pointer; padding: 0.55rem 1.1rem; border-radius: 999px; border: 1px solid rgba(20, 20, 20, 0.3); background: transparent; color: var(--ink); }
.al-tab:hover { background: rgba(20, 20, 20, 0.06); }
.al-tab[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.al-desc-live { margin: 1rem 0 1.25rem; font-size: 1.1rem; max-width: 62ch; }
.al-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.al-row { border-bottom: 1px solid var(--line); }
.al-head { width: 100%; display: grid; grid-template-columns: 3rem 1fr auto 1.5rem; gap: 0.75rem; align-items: center; text-align: left; font: inherit; background: transparent; border: 0; padding: 1rem 0.25rem; cursor: pointer; color: var(--ink); }
.al-head:hover .al-t { text-decoration: underline; text-decoration-color: var(--orange); }
.al-n { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--orange-text); }
.al-t { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 600; letter-spacing: 0.01em; }
.al-ctl { font-size: 0.8rem; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.al-x::before { content: "+"; font-size: 1.5rem; line-height: 1; }
.al-head[aria-expanded="true"] .al-x::before { content: "\2212"; }
.al-panel { padding: 0 0.25rem 1.25rem 3.75rem; }
.al-panel dl { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; }
@media (max-width: 40rem) { .al-head { grid-template-columns: 2.25rem 1fr 1.25rem; } .al-ctl { display: none; } .al-panel { padding-left: 0.25rem; } }
.cid { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85em; font-weight: 600; white-space: nowrap; color: var(--orange-text); }
.section-ink .cid, .lr-console .cid { color: #f2a07f; }

/* architecture */
.ar-top { margin-bottom: 1rem; }
.ar-grid { display: grid; gap: 1rem; }
@media (min-width: 64rem) { .ar-grid { grid-template-columns: minmax(0, 1fr) 24rem; align-items: start; } }
.ar-grid { margin-top: 1rem; }
.ar-grid .ar-console { margin-top: 0; }
.ar-svg-wrap, .sl-wrap { overflow-x: auto; position: relative; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.ar-svg { display: block; width: 100%; min-width: 880px; height: auto; }
.ar-band { fill: #f4f1ea; }
.ar-band-alt { fill: #ece6db; }
.ar-band-har { fill: #fde8df; stroke: var(--orange); stroke-width: 1.5; }
.ar-icon { fill: none; stroke: var(--orange-text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ar-lname { font-family: var(--font-display); text-transform: uppercase; font-size: 12.5px; font-weight: 600; letter-spacing: 0.05em; fill: var(--ink); }
.ar-c { cursor: pointer; outline: none; }
.ar-c rect { fill: var(--white); stroke: rgba(20, 20, 20, 0.22); stroke-width: 1; transition: fill 0.2s, stroke 0.2s, opacity 0.2s; }
.ar-c text { font-size: 12px; fill: var(--ink); pointer-events: none; }
.ar-c:hover rect { stroke: var(--ink); }
.ar-c:focus-visible rect { stroke: var(--orange); stroke-width: 3; }
.ar-c.sel rect { stroke: var(--ink); stroke-width: 2.5; }
.ar-c.al-on rect { fill: #fff1e8; stroke: var(--orange); stroke-width: 2; }
.ar-c.al-dim, .has-path .ar-c:not(.on) { opacity: 0.32; }
.ar-c.on rect { fill: #fff1e8; stroke: var(--orange); stroke-width: 2; }
.ar-c.cur rect { fill: var(--orange); }
.ar-path { fill: none; stroke: var(--orange); stroke-width: 3; stroke-dasharray: 7 6; stroke-linejoin: round; animation: dash 1.2s linear infinite; opacity: 0.9; }
.ar-side { position: relative; }
@media (min-width: 64rem) { .ar-side { position: sticky; top: calc(var(--header-h) + 1rem); } }
.ar-panel { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--orange); border-radius: var(--radius); padding: 1.1rem 1.2rem; font-size: 0.95rem; }
.ar-panel h3 { font-size: 1.35rem; margin-bottom: 0.4rem; }
.ar-kicker { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange-text); font-weight: 700; margin: 0 0 0.3rem; }
.ar-dl { display: grid; gap: 0.6rem; margin: 0.75rem 0 0; }
.ar-console { margin-top: 1rem; }
.ar-title { white-space: normal; }

/* model chooser */
.mc-q { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); padding: 1rem 1.2rem; display: grid; gap: 0.45rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); margin: 0 0 1rem; }
.mc-q legend { font-weight: 700; padding: 0 0.3rem; }
.mc-opt { font-size: 0.95rem; }
.mc-opt input, .dz-chk input, .wf-run input { accent-color: var(--orange); width: 1.05rem; height: 1.05rem; vertical-align: -0.15rem; }
.mc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.mc-list li { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: var(--radius); padding: 0.9rem 1rem; font-size: 0.95rem; }
.mc-list h4 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.mc-list p { margin: 0 0 0.4rem; }
.mc-ctl { margin-top: 1rem; }
.bp-models td, .bp-models th { font-size: 0.9rem; }

/* swimlanes */
.sl-svg { display: block; width: 100%; height: auto; }
.sl-lane { fill: #f7f4ee; }
.sl-lane.alt { fill: #efe9df; }
.sl-lane.har { fill: #fde8df; }
.sl-lname { font-family: var(--font-display); text-transform: uppercase; font-size: 12.5px; font-weight: 600; letter-spacing: 0.05em; fill: var(--ink); }
.sl-arrow { fill: none; stroke: #6b665e; stroke-width: 1.6; }
.sl-arrow.dash { stroke-dasharray: 5 4; stroke: #b28a47; }
.sl-arrowhead { fill: #6b665e; }
.sl-step { cursor: pointer; outline: none; transition: opacity 0.2s; }
.sl-box { fill: var(--white); stroke: rgba(20, 20, 20, 0.25); stroke-width: 1.2; transition: fill 0.2s, stroke 0.2s; }
.sl-step.har .sl-box { fill: #fff7f2; stroke: rgba(178, 58, 11, 0.45); }
.sl-step.ex .sl-box { stroke-dasharray: 5 4; }
.sl-step.weak .sl-box { stroke: var(--orange); stroke-width: 2.5; }
.sl-step:hover .sl-box { stroke: var(--ink); }
.sl-step:focus-visible .sl-box { stroke: var(--orange); stroke-width: 3; }
.sl-step.sel .sl-box { stroke: var(--ink); stroke-width: 2.5; }
.sl-step.cur .sl-box { fill: #fff1e8; stroke: var(--orange); stroke-width: 2.5; }
.sl-step.done .sl-box { fill: #eef7f0; stroke: #3a8f5c; }
.sl-step.hit .sl-box { fill: #fde4e0; stroke: var(--danger); stroke-width: 3; }
.sl-step.al-dim { opacity: 0.3; }
.sl-step.al-on .sl-box { stroke: var(--orange); stroke-width: 2; }
.sl-name { font-size: 12.5px; fill: var(--ink); pointer-events: none; }
.sl-num { font-size: 10px; fill: #8a857c; font-weight: 700; }
.sl-badge { fill: #8a857c; }
.sl-badge.l0 { fill: #6f6a63; } .sl-badge.l1 { fill: #9b7b45; } .sl-badge.l2 { fill: #c98a1b; } .sl-badge.l3 { fill: var(--orange); } .sl-badge.l4 { fill: #1d6b3a; } .sl-badge.lr { fill: #3d3a36; }
.sl-badge-t { font-size: 10.5px; font-weight: 700; fill: var(--white); pointer-events: none; }
.sl-ls { fill: #ddd6ca; }
.sl-ls.on { fill: var(--ink); }
.sl-ls.cur.on { fill: var(--orange); }

/* workflows player */
.wf-tabs { margin-bottom: 0.75rem; }
.wf-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-bottom: 0.25rem; }
.wf-chain { margin: 0; font-size: 0.95rem; flex: 1 1 22rem; }
.wf-grid { display: grid; gap: 1rem; margin-top: 1rem; }
@media (min-width: 64rem) { .wf-grid { grid-template-columns: minmax(0, 1fr) 21rem; align-items: start; } }
.wf-run { display: grid; gap: 0.5rem; margin-bottom: 0.75rem; }
.wf-runbtn { justify-self: start; }
.wf-note { font-size: 0.85rem; align-self: center; }
.wf-log { list-style: none; margin: 0; padding: 0.75rem 1rem; display: grid; gap: 0.3rem; min-height: 9rem; max-height: 22rem; overflow-y: auto; font-size: 0.88rem; }
.wf-log li { display: grid; grid-template-columns: 1.3rem 13rem 1fr; gap: 0.5rem; align-items: baseline; animation: lrIn 0.2s ease-out; }
.wf-log li::before { font-weight: 700; }
.wf-log b { color: #f2a07f; font-size: 0.78rem; letter-spacing: 0.04em; }
.wf-log span { color: #e9e6df; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.wf-l-step::before { content: "\25B8"; color: var(--orange); }
.wf-l-ok::before { content: "\2713"; color: #5cc98a; }
.wf-l-ok b { color: #9fd9b6; }
.wf-l-ok span { color: #b9b5ad; }
.wf-l-warn::before { content: "!"; color: #f2c14e; }
.wf-l-stop::before { content: "\2715"; color: #ff6b5b; }
.wf-l-stop b { color: #ff8f82; }
.wf-l-route::before { content: "\21B3"; color: #f2c14e; }
@media (max-width: 40rem) { .wf-log li { grid-template-columns: 1.3rem 1fr; } .wf-log span { grid-column: 2; } }
.wf-result { padding: 0 1rem 1rem; }
.wf-result:empty { display: none; }
.wf-metrics { margin-top: 1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.wf-mt { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.wf-mt th, .wf-mt td { text-align: left; padding: 0.4rem 0.5rem; border-bottom: 1px solid var(--line); }
.wf-mt td:last-child { font-weight: 700; color: var(--success); }
.dcard { margin-top: 0.9rem; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid #c98a1b; border-radius: 6px; padding: 0.75rem 0.9rem; }
.dcard p { margin: 0; }
.dcard-k { font-size: 0.72rem !important; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin: 0 0 0.35rem !important; }
.la { margin-top: 0.9rem; }
.la-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.la-list li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 0.5rem; font-size: 0.82rem; padding: 0.3rem 0.5rem; border-radius: 4px; background: var(--paper); }
.la-list li.on { background: var(--ink); color: var(--paper); }
.la-list li.on span:last-child { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #f2a07f; }
.la-list li.off { color: #8a857c; }
.la-list li.cur { outline: 2px solid var(--orange); }
.wf-static { border-top: 1px solid var(--line); padding-top: 2rem; margin-top: 2rem; }
.wf-static h4 { font-size: 1.1rem; margin: 1.25rem 0 0.25rem; }
.bp-matrix { font-size: 0.82rem; min-width: 60rem; }
.bp-matrix td { line-height: 1.7; }
.bp-matrix th[scope="row"] { white-space: normal; min-width: 10rem; }

/* controls */
.cf { display: grid; gap: 0.75rem 1rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.cf label { display: grid; gap: 0.25rem; font-size: 0.85rem; font-weight: 600; }
.cf input, .cf select, .dz-step input, .dz-step select { font: inherit; font-size: 0.95rem; padding: 0.45rem 0.55rem; border: 1px solid rgba(20, 20, 20, 0.35); border-radius: 4px; background: var(--white); color: var(--ink); width: 100%; min-width: 0; }
.cf-search { grid-column: 1 / -1; }
.cf-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem; margin: 0.5rem 0 1rem; }
.cf-count { margin: 0; font-weight: 600; }
.ctl-list { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); margin-top: 1rem; }
.ctl { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--ink); border-radius: var(--radius); padding: 1rem 1.1rem; font-size: 0.92rem; scroll-margin-top: 7rem; }
.ctl[hidden], .ctl-list[hidden], .cf-alt[hidden] { display: none; }
.ctl.flash, .ctl:target { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242, 98, 46, 0.35); }
.ctl header { display: flex; gap: 0.6rem; align-items: baseline; margin-bottom: 0.4rem; }
.ctl-id { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; color: var(--orange-text); font-size: 0.85rem; }
.ctl h3 { font-size: 1.1rem; margin: 0; }
.ctl-purpose { font-weight: 600; margin-bottom: 0.5rem; }
.ctl-tags { list-style: none; margin: 0 0 0.6rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem; }
.ctl-tags li { font-size: 0.72rem; background: var(--paper-2); border-radius: 999px; padding: 0.12rem 0.55rem; }
.ctl-tags .t-preventive { background: #e3f1e7; } .ctl-tags .t-detective { background: #e6eef8; } .ctl-tags .t-corrective { background: #fbe9d8; }
.ctl-dl { display: grid; gap: 0.45rem; margin: 0 0 0.6rem; }
.ctl-dl dt { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.ctl-dl dd { margin: 0; }
.ctl-map { list-style: none; margin: 0; padding: 0.5rem 0 0; border-top: 1px dashed var(--line); display: grid; gap: 0.2rem; font-size: 0.8rem; color: var(--muted); }
.ctl-map b { color: var(--ink); margin-right: 0.25rem; }
.hm { border-collapse: separate; border-spacing: 3px; font-size: 0.8rem; min-width: 52rem; }
.hm th { text-align: left; font-weight: 600; padding: 0.3rem; vertical-align: bottom; }
.hm thead th span { display: block; color: var(--orange-text); font-weight: 700; }
.hm td { padding: 0; }
.hm-c { display: block; width: 100%; min-width: 2.6rem; height: 2.2rem; border: 0; border-radius: 4px; font: inherit; font-weight: 700; cursor: pointer; color: var(--ink); }
.hm-c.h0 { background: #f1ede6; cursor: default; }
.hm-c.h1 { background: #fde1d3; } .hm-c.h2 { background: #f9b494; } .hm-c.h3 { background: #f4875b; } .hm-c.h4 { background: var(--orange); }
.lv-cols { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.lv-col { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--orange); border-radius: var(--radius); padding: 0.9rem 1rem; font-size: 0.88rem; }
.lv-col h3 { font-size: 1.3rem; display: flex; justify-content: space-between; }
.lv-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; }

/* designer */
.dz-steps { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.75rem; }
.dz-step { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: var(--radius); padding: 0.9rem 1rem; }
.dz-row1 { display: flex; gap: 0.75rem; align-items: end; margin-bottom: 0.6rem; }
.dz-n { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--orange-text); line-height: 1.6; }
.dz-name { flex: 1; display: grid; gap: 0.2rem; font-size: 0.82rem; font-weight: 600; }
.dz-move { display: flex; gap: 0.3rem; }
.dz-move button { font: inherit; width: 2.4rem; height: 2.4rem; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); cursor: pointer; }
.dz-move button:hover { border-color: var(--ink); }
.dz-fields { display: grid; gap: 0.5rem 0.75rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.dz-fields label { display: grid; gap: 0.2rem; font-size: 0.8rem; font-weight: 600; }
.dz-checks { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 0.6rem; font-size: 0.9rem; }
.dz-out { margin-top: 1.5rem; }
.dz-sum { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: 1rem 1.25rem; }
.dz-sum > div { display: grid; }
.dz-sum p { margin: 0; flex: 1 1 18rem; }
.dz-big { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--orange); line-height: 1; }
.dz-sum span:not(.dz-big) { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-on-ink); }
.dz-table { font-size: 0.85rem; min-width: 52rem; }
.dz-table tr.weak th { box-shadow: inset 4px 0 0 var(--orange); }
.lvchip { display: inline-block; padding: 0.05rem 0.5rem; border-radius: 999px; color: var(--white); background: #6f6a63; }
.lvchip.l1 { background: #9b7b45; } .lvchip.l2 { background: #c98a1b; } .lvchip.l3 { background: var(--orange); color: var(--ink); } .lvchip.l4 { background: #1d6b3a; }
.dz-h { margin-top: 1.75rem; font-size: 1.3rem; }
.dz-panel { margin-top: 0.75rem; }
.dz-ctl { display: grid; gap: 0.4rem; padding-left: 1.2rem; font-size: 0.9rem; }
.dz-export { margin-top: 1.25rem; }

@media print {
  .site-header, .site-footer, .guide-fab, .bp-subnav, .page-head, .dz-ed, .lf, .dz-export, #rules, .skip-link { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .section, .bp-section { padding: 0; }
  .dz-sum { background: #fff; color: #000; border: 1px solid #000; }
  .dz-big { color: #000; }
  .fw-table-wrap, .sl-wrap { overflow: visible; border: 0; }
  .dz-table, .sl-svg { min-width: 0 !important; }
  .ar-panel { display: none; }
}
.fw-bp { margin-top: 1.25rem; font-weight: 600; }
