:root {
  --bg: #f5f0e4;
  --surface: #fffdf7;
  --text: #14231d;
  --muted: #55604f;
  --line: #ddd5bf;
  --accent: #17594a;
  --brass: #b8862b;
  --brass-ink: #7a5410;
  --hero-a: #123d33;
  --hero-b: #0b2a23;
  --hero-ink: #f1ead6;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  color-scheme: light;
  --surface-raised: #ffffff;
  --accent-ink: #ffffff;
  --accent-soft: #e6efe8;
  --copper: #a4603e;
  --copper-soft: #f3e5d9;
  --warn-bg: #fff2d8;
  --warn-ink: #614700;
  --met: #276b42;
  --waived: #6a4fa0;
  --open: #9a3b2e;
  --radius: 14px;
  --shadow: 0 18px 44px rgba(32, 53, 44, 0.08);
  --focus: #bd7047;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1915;
    --surface: #15251f;
    --text: #efe9da;
    --muted: #a9b5a6;
    --line: #26392f;
    --accent: #6fd1aa;
    --brass: #e0b45a;
    --brass-ink: #e8c77f;
    --hero-a: #123d33;
    --hero-b: #081a15;
    --hero-ink: #f1ead6;
    --accent-ink: #0f1f19;
    --warn-bg: #3a300f;
    --warn-ink: #f2dfa6;
    --met: #7fd69a;
    color-scheme: dark;
    --surface-raised: #1d2a25;
    --accent-soft: #20382e;
    --copper: #e3b28a;
    --copper-soft: #392b21;
    --waived: #b9a4e8;
    --open: #f0a18d;
    --shadow: 0 20px 48px rgba(0, 0, 0, 0.22);
    --focus: #f0bd8f;
  }
}

:root[data-theme="dark"] {
  --bg: #0e1915;
  --surface: #15251f;
  --text: #efe9da;
  --muted: #a9b5a6;
  --line: #26392f;
  --accent: #6fd1aa;
  --brass: #e0b45a;
  --brass-ink: #e8c77f;
  --hero-a: #123d33;
  --hero-b: #081a15;
  --hero-ink: #f1ead6;
  --accent-ink: #0f1f19;
  --warn-bg: #3a300f;
  --warn-ink: #f2dfa6;
  --met: #7fd69a;
  color-scheme: dark;
  --surface-raised: #1d2a25;
  --accent-soft: #20382e;
  --copper: #e3b28a;
  --copper-soft: #392b21;
  --waived: #b9a4e8;
  --open: #f0a18d;
  --shadow: 0 20px 48px rgba(0, 0, 0, 0.22);
  --focus: #f0bd8f;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.6; }
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

header.site, footer.site {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  padding: 14px 16px; max-width: 1080px; margin: 0 auto;
}
footer.site { color: var(--muted); font-size: 0.85rem; }
.brand { font-weight: 700; text-decoration: none; color: var(--text); font-size: 1.1rem; }
.brand > span > span { color: var(--accent); }
nav { display: flex; gap: 16px; flex-wrap: wrap; }
nav a { text-decoration: none; }
nav a.muted { color: var(--muted); }

.pilot-banner {
  background: var(--warn-bg); color: var(--warn-ink);
  padding: 8px 16px; text-align: center; font-size: 0.9rem;
}

main { max-width: 1080px; margin: 0 auto; padding: 24px 16px 48px; }
h1 { font-size: 1.8rem; margin: 0 0 8px; }
h2 { font-size: 1.25rem; margin: 24px 0 8px; }
h3 { font-size: 1.05rem; margin: 0 0 4px; }
p.lead { font-size: 1.1rem; color: var(--muted); max-width: 680px; }

.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit;
}
a.card:hover { border-color: var(--accent); }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 0.78rem;
  border: 1px solid var(--line); color: var(--muted); text-transform: capitalize; width: max-content;
}
.badge.live { color: var(--met); border-color: var(--met); }
.badge.pilot { color: var(--accent); border-color: var(--accent); }
.badge.waived { color: var(--waived); border-color: var(--waived); }
.badge.not_met, .badge.proposed, .badge.submitted { color: var(--open); border-color: var(--open); }
.badge.met { color: var(--met); border-color: var(--met); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-top: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }

form { display: grid; gap: 12px; }
label { display: grid; gap: 4px; font-size: 0.93rem; }
label.inline { grid-template-columns: auto 1fr; align-items: center; }
input, select, textarea {
  font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; width: 100%;
}
textarea { min-height: 88px; resize: vertical; }
button {
  font: inherit; cursor: pointer; border-radius: 8px; padding: 9px 14px;
  background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); width: max-content;
}
button.secondary { background: transparent; color: var(--text); border-color: var(--line); }
button:disabled { opacity: 0.5; cursor: default; }
.error { color: var(--open); }
.ok { color: var(--met); }
.hint { color: var(--muted); font-size: 0.85rem; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.stack { display: grid; gap: 10px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.tabs button { background: transparent; color: var(--text); border-color: var(--line); }
.tabs button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

@media (max-width: 640px) {
  table, thead, tbody, th, td, tr { display: block; }
  thead { display: none; }
  tr { border-bottom: 1px solid var(--line); padding: 6px 0; }
  td { border: none; padding: 3px 0; }
}

/* Unified editorial, marketplace, and network visual system */
header.site {
  max-width: 1240px;
  padding: 18px 24px;
}
nav { align-items: center; gap: 10px 16px; }
nav a { color: var(--text); font-size: 0.92rem; }
nav a:hover { color: var(--accent); }
main { max-width: 1240px; padding: 26px 24px 64px; }
h1, h2, h3, h4 { letter-spacing: -0.025em; line-height: 1.2; }
h1 { font-size: clamp(2rem, 4vw, 3.6rem); }
h2 { font-size: clamp(1.35rem, 2vw, 1.8rem); }
p { max-width: 74ch; }
.theme-toggle { font-size: 0.82rem; padding: 7px 11px; }
button {
  border-radius: 999px;
  padding: 10px 17px;
  transition: transform 140ms ease, background-color 140ms ease, border-color 140ms ease;
}
button:hover:not(:disabled) { transform: translateY(-1px); }
button.secondary { background: var(--surface); }
input, select, textarea { border-radius: 10px; }
.card, .panel { border-radius: var(--radius); }
.card { box-shadow: 0 1px 0 rgba(32, 53, 44, 0.025); }
.panel { box-shadow: 0 1px 0 rgba(32, 53, 44, 0.025); }
.badge { padding: 4px 10px; font-weight: 650; }
.badge.invited {
  color: var(--copper);
  border-color: color-mix(in srgb, var(--copper) 55%, var(--line));
  background: var(--copper-soft);
  text-transform: none;
  white-space: normal;
}
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 11px 19px;
  font-weight: 650;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease;
}
.button-link:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.button-link.secondary { background: transparent; color: var(--text); border-color: var(--line); }
.eyebrow {
  margin: 0 0 9px;
  color: var(--copper);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  line-height: 1.4;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  min-height: 460px;
  padding: clamp(26px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 90% 12%, var(--accent-soft), transparent 38%),
    linear-gradient(125deg, var(--surface), var(--bg));
  overflow: hidden;
}
.hero-copy { position: relative; z-index: 1; }
.hero h1 { max-width: 650px; margin: 0 0 18px; }
.hero .lead { max-width: 620px; margin: 0 0 22px; font-size: clamp(1.05rem, 1.6vw, 1.2rem); }
.hero-actions { gap: 12px; margin-bottom: 16px; }
.hero .hint { max-width: 540px; }
.network-art {
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 1;
  justify-self: center;
  border-radius: 50%;
  background: radial-gradient(circle, var(--surface-raised) 0 27%, transparent 27% 100%);
}
.network-ring { position: absolute; inset: 11%; border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); border-radius: 50%; }
.ring-two { inset: 25%; border-style: dashed; border-color: color-mix(in srgb, var(--copper) 45%, transparent); }
.network-line { position: absolute; left: 50%; top: 50%; height: 1px; width: 42%; transform-origin: left center; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 5%, transparent)); }
.line-one { transform: rotate(-35deg); }
.line-two { transform: rotate(38deg); }
.line-three { transform: rotate(155deg); }
.network-node { position: absolute; width: 17px; height: 17px; border: 4px solid var(--surface); border-radius: 50%; background: var(--copper); box-shadow: 0 0 0 1px var(--line); }
.node-center { width: 28px; height: 28px; left: calc(50% - 14px); top: calc(50% - 14px); border: 6px solid var(--surface); background: var(--accent); }
.node-one { left: 13%; top: 31%; }
.node-two { right: 15%; top: 17%; background: var(--accent); }
.node-three { right: 13%; bottom: 26%; }
.node-four { left: 28%; bottom: 12%; background: var(--accent); }
.network-caption { position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%); color: var(--muted); font-size: 0.78rem; white-space: nowrap; }
.section-block { margin: clamp(50px, 8vw, 92px) 0; }
.section-heading { margin-bottom: 24px; }
.section-heading h2 { margin-top: 0; }
.section-heading .lead { margin: 0; }
.category-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.category-card { min-height: 190px; padding: 21px; gap: 9px; }
.category-mark { color: var(--copper); font-size: 1.2rem; }
.category-card h3 { margin: 0; }
.category-card p { flex: 1; }
.card-link { color: var(--accent); font-size: 0.88rem; font-weight: 650; margin-top: 4px; }
.exchange-section { padding: clamp(24px, 5vw, 50px); border-radius: 24px; background: var(--accent-soft); }
.exchange-section .eyebrow { color: var(--accent); }
.process-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.process-card { padding: 21px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.process-number { display: inline-block; margin-bottom: 25px; color: var(--copper); font-size: 0.82rem; font-weight: 750; letter-spacing: 0.12em; }
.process-card h3 { margin: 0 0 8px; }
.process-card p { margin: 0; color: var(--muted); }
.closing-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(24px, 5vw, 48px); border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.closing-cta h2 { max-width: 650px; margin: 0 0 8px; }
.closing-cta p:not(.eyebrow) { margin: 0; color: var(--muted); }
.directory-page > h1, .profile-page > h1, .apply-page > h1 { margin-bottom: 8px; }
.directory-controls { display: grid; grid-template-columns: minmax(220px, 1.5fr) minmax(160px, 1fr) minmax(180px, 1.2fr) auto; gap: 10px; align-items: center; margin: 24px 0 10px; }
.relationship-controls { display: grid; grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(150px, 1fr)); gap: 10px; }
.relationship-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.relationship-card { min-width: 0; padding: 18px; }
.relationship-card h3 { margin: 0; overflow-wrap: anywhere; }
.relationship-card-heading { align-items: flex-start; justify-content: space-between; gap: 10px; }
.relationship-card-heading > div { min-width: 0; }
.relationship-card .badge { flex: 0 0 auto; }
.relationship-empty { grid-column: 1 / -1; }
.directory-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.directory-grid > .empty-state { grid-column: 1 / -1; }
.directory-card { display: flex; min-height: 230px; flex-direction: column; align-items: stretch; gap: 11px; padding: 20px; }
.directory-card h2 { margin: 0; font-size: 1.25rem; }
.directory-card p { margin: 0; }
.directory-card .card-summary { color: var(--text); }
.invited-card { border-top: 3px solid var(--copper); }
.card-meta { justify-content: space-between; }
.invitation-note { color: var(--muted); font-size: 0.92rem; }
.directory-offerings { display: grid; gap: 6px; }
.directory-offerings-label { margin: 0; }
.directory-offering-list { display: flex; flex-wrap: wrap; gap: 6px; }
.directory-offering { padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-raised); color: var(--text); font-size: 0.8rem; }
.directory-offering.more { color: var(--muted); }
.directory-card .card-link { margin-top: auto; }
.directory-clear { white-space: nowrap; }
.directory-cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; padding: 18px 20px; border-radius: var(--radius); background: var(--accent-soft); }
.directory-cta p { margin: 0; }
.empty-state { margin: 20px 0; padding: 26px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }
.empty-state h2, .empty-state h3 { margin-top: 0; }
.search-result-preview { display: grid; gap: 7px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-raised); }
.search-result-preview p { margin: 0; }
.search-result-title { color: var(--accent); font-size: 1.05rem; font-weight: 650; overflow-wrap: anywhere; }
.search-result-path { color: var(--muted); font-size: 0.82rem; }
.search-result-description { max-width: 720px; line-height: 1.5; }
.profile-meta { margin: 14px 0 24px; }
.profile-summary { max-width: 850px; }
.invited-callout { max-width: 850px; margin: 18px 0; padding: 18px 20px; border-left: 4px solid var(--copper); border-radius: 0 12px 12px 0; background: var(--copper-soft); }
.invited-callout p { margin: 6px 0 0; color: var(--muted); }
.profile-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 1000px; margin: 24px 0; }
.private-draft-note { max-width: 850px; margin: 20px 0; padding: 16px 19px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.private-draft-note p { margin-bottom: 0; color: var(--muted); }
.preview-sources { display: grid; gap: 5px; overflow-wrap: anywhere; }
.integrations-section { margin-top: 38px; }
.apply-page { max-width: 900px; margin: 0 auto; }
.application-form { margin-top: 24px; padding: clamp(18px, 4vw, 34px); gap: 18px; }
.form-section-heading { margin-bottom: 2px; }
.form-section-heading h2 { margin: 0 0 8px; }
.form-section-heading p:not(.eyebrow) { margin: 0; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.privacy-note { padding: 12px 14px; border-radius: 10px; background: var(--warn-bg); color: var(--warn-ink); font-size: 0.9rem; }
.success-panel { margin-top: 22px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--accent-soft); }
.success-panel h2 { margin: 0 0 8px; }
.invitation-editor { padding: 0; }
.invitation-editor .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.invitation-preview { display: grid; gap: 8px; padding: 19px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface-raised); }
.invitation-preview h3, .invitation-preview p { margin: 0; }
.review-queue article > .row { align-items: baseline; }
.review-queue article > .row h2 { margin: 0; }
.application-summary { margin: 10px 0; }
.review-form { gap: 14px; }
.review-question { display: grid; gap: 10px; min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.review-question legend { padding: 0 6px; font-weight: 650; }
.review-question textarea { min-height: 54px; }
.draft-fields h4 { margin: 0; }
.draft-fields { background: var(--bg); }

@media (max-width: 760px) {
  header.site { padding: 14px 16px; }
  main { padding: 18px 16px 48px; }
  .hero { grid-template-columns: 1fr; gap: 12px; min-height: auto; padding: 27px 22px; border-radius: 22px; }
  .network-art { width: min(78vw, 330px); }
  .process-grid { grid-template-columns: 1fr; }
  .process-number { margin-bottom: 12px; }
  .closing-cta { align-items: flex-start; flex-direction: column; }
  .directory-controls { grid-template-columns: 1fr 1fr; }
  .directory-controls input[type="search"], .directory-controls button { grid-column: 1 / -1; }
  .relationship-controls { grid-template-columns: 1fr 1fr; }
  .relationship-controls input[type="search"] { grid-column: 1 / -1; }
  .profile-columns { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  header.site { align-items: flex-start; }
  nav { gap: 8px 12px; }
  nav a { font-size: 0.86rem; }
  .theme-toggle { padding: 6px 9px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button-link { width: 100%; }
  .network-art { width: min(84vw, 290px); }
  .category-grid, .form-grid, .invitation-editor .form-grid { grid-template-columns: 1fr; }
  .directory-controls { grid-template-columns: 1fr; }
  .directory-controls input[type="search"], .directory-controls button { grid-column: auto; }
  .directory-clear { width: 100%; }
  .directory-cta { align-items: flex-start; flex-direction: column; }
  .badge.invited { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}


/* ---- V3: the Register identity (2026-10-23) ---- */
h1, h2, .brand, .display { font-family: var(--display); letter-spacing: -0.01em; }
h1 { font-size: 2rem; line-height: 1.12; font-weight: 700; }
h2 { font-size: 1.35rem; margin: 34px 0 10px; }
header.site { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); max-width: none; padding: 10px max(16px, calc((100% - 1080px) / 2)); }
.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand svg { width: 26px; height: 26px; flex: none; }
nav a, nav button { min-height: 44px; display: inline-flex; align-items: center; }
nav a { font-weight: 600; font-size: 0.95rem; }
button, .btn { min-height: 44px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; text-decoration: none; font-weight: 700; background: var(--brass); color: #1b1405; border: 1px solid var(--brass); }
.btn.ghost { background: transparent; color: var(--hero-ink); border-color: color-mix(in srgb, var(--hero-ink) 45%, transparent); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
.pilot-banner { background: transparent; color: var(--brass-ink); border-bottom: 1px dashed var(--line); font-size: 0.82rem; letter-spacing: 0.02em; }
.pilot-banner::before { content: "PILOT"; font-weight: 800; letter-spacing: 0.14em; margin-right: 8px; padding: 1px 7px; border: 1px solid currentColor; border-radius: 4px; font-size: 0.7rem; }

.hero { position: relative; overflow: hidden; margin: -24px -16px 0; padding: 36px 20px 26px; color: var(--hero-ink); background: radial-gradient(120% 90% at 85% 0%, var(--hero-a) 0%, var(--hero-b) 70%); }
@media (min-width: 1100px) { .hero { margin: -24px 0 0; border-radius: 0 0 28px 28px; } }
.hero h1 { color: var(--hero-ink); font-size: 2.15rem; margin: 6px 0 12px; }
.hero p.lead { color: color-mix(in srgb, var(--hero-ink) 80%, transparent); font-size: 1.02rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.72rem; font-weight: 800; color: var(--brass-ink); }
.hero .eyebrow { color: #e0b45a; }
.constellation { width: 100%; max-width: 360px; height: auto; display: block; margin: 8px auto 4px; }
.constellation .edge { stroke: #e0b45a; stroke-width: 1.2; stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw 1.6s ease-out forwards; opacity: 0.7; }
.constellation .node { fill: #0b2a23; stroke: #e0b45a; stroke-width: 1.4; animation: pop 0.6s ease-out both; transform-box: fill-box; transform-origin: center; }
.constellation .core { fill: #e0b45a; animation: breathe 4.5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.constellation text { fill: #f1ead6; font: 600 9.5px system-ui, sans-serif; letter-spacing: 0.04em; }
.constellation .ring { fill: none; stroke: #e0b45a; stroke-opacity: 0.25; stroke-dasharray: 2 5; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: scale(1); } }
@keyframes breathe { 50% { transform: scale(1.18); } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.rise { animation: rise 0.5s ease-out both; animation-delay: calc(var(--i, 0) * 70ms); }

.steps { counter-reset: step; display: grid; gap: 0; margin: 12px 0 0; padding: 0; list-style: none; border-left: 2px solid var(--brass); margin-left: 14px; }
.steps li { counter-increment: step; position: relative; padding: 2px 0 20px 28px; }
.steps li::before { content: counter(step); position: absolute; left: -15px; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--bg); border: 2px solid var(--brass); color: var(--brass-ink); font: 700 0.9rem var(--display); display: grid; place-items: center; }
.steps b { display: block; font-family: var(--display); font-size: 1.05rem; }
.steps span { color: var(--muted); }

.cat { display: grid; grid-template-columns: 44px 1fr; gap: 4px 14px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; min-height: 64px; }
.cat .glyph { grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: var(--accent); }
.cat .glyph svg { width: 22px; height: 22px; }
.cat h3 { margin: 0; font-family: var(--display); font-size: 1.1rem; }
.cat p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.cat:hover h3 { color: var(--accent); }
.cats { margin-top: 6px; }

.pledge { display: grid; gap: 10px; margin-top: 8px; }
.pledge .card { border-left: 4px solid var(--brass); border-radius: 6px 14px 14px 6px; }
.pledge h3 { font-family: var(--display); }

.pcard { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; }
.pcard .meta { grid-column: 1 / -1; }
.pcard h3 { font-family: var(--display); font-size: 1.2rem; }

.dossier { margin: -24px -16px 0; padding: 26px 20px 22px; background: linear-gradient(180deg, var(--hero-a), var(--hero-b)); color: var(--hero-ink); }
@media (min-width: 1100px) { .dossier { margin: -24px 0 0; border-radius: 0 0 28px 28px; } }
.dossier a { color: #e0b45a; }
.dossier h1 { color: var(--hero-ink); margin: 6px 0 10px; }
.dossier .lead { color: color-mix(in srgb, var(--hero-ink) 82%, transparent); font-size: 1rem; }
.dossier .hint { color: color-mix(in srgb, var(--hero-ink) 70%, transparent); }
.dossier .badge { color: var(--hero-ink); border-color: color-mix(in srgb, var(--hero-ink) 40%, transparent); }

.seal-wrap { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; }
.seal { width: 96px; height: 96px; }
.seal .seg { fill: none; stroke-width: 7; stroke-linecap: butt; stroke: var(--line); }
.seal .seg.on { stroke: var(--accent); animation: segin 0.4s ease-out both; animation-delay: calc(var(--k) * 60ms); }
.seal .seg.waived { stroke: var(--waived); }
.seal text { fill: var(--text); font: 700 22px var(--display); text-anchor: middle; }
.seal text.sub { font: 600 8px system-ui, sans-serif; fill: var(--muted); letter-spacing: 0.08em; }
@keyframes segin { from { opacity: 0; } to { opacity: 1; } }
.verdict { margin: 0; font-family: var(--display); font-size: 1.1rem; }
.reqs { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 0; }
.reqs li { display: grid; grid-template-columns: 28px 1fr; gap: 2px 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.reqs .mark { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem; font-weight: 800; border: 2px solid var(--open); color: var(--open); }
.reqs .met .mark { background: var(--met); border-color: var(--met); color: var(--surface); }
.reqs .waived .mark { background: var(--waived); border-color: var(--waived); color: var(--surface); }
.reqs .t { font-weight: 600; }
.reqs .code { color: var(--muted); font-weight: 400; font-size: 0.8rem; margin-right: 6px; }
.reqs .ev { grid-column: 2; color: var(--muted); font-size: 0.88rem; }
.empty { text-align: center; padding: 34px 12px; color: var(--muted); }
.empty svg { width: 120px; height: auto; margin-bottom: 8px; }

.badge { font-weight: 600; padding: 3px 10px; }
.badge.live::before, .badge.pilot::before, .badge.met::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: 1px; }
.card { border-radius: var(--radius); transition: transform 0.2s ease, border-color 0.2s ease; }
a.card:active { transform: scale(0.985); }
.panel { border-radius: var(--radius); }
.foot-note { font-family: var(--display); font-style: italic; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .rise, .constellation .edge, .constellation .node, .constellation .core, .seal .seg.on { animation: none !important; }
  .constellation .edge { stroke-dashoffset: 0; }
  .card { transition: none; }
}


/* ---- V3 round 2: depth, choreography, animated data ---- */
header.site { transition: box-shadow 0.25s ease; }
header.site.scrolled { box-shadow: 0 8px 24px -14px rgba(10, 30, 24, 0.55); }
.hero::before { content: ""; position: absolute; width: 340px; height: 340px; right: -90px; top: 70px; border-radius: 50%; background: radial-gradient(circle, rgba(224, 180, 90, 0.22), transparent 65%); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 90px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.28)); pointer-events: none; }
.hero > * { position: relative; z-index: 1; }
.card, .panel, .cat .glyph { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 10px 24px -16px rgba(20, 35, 29, 0.45); }
:root[data-theme="dark"] .card, :root[data-theme="dark"] .panel { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 14px 30px -18px rgba(0, 0, 0, 0.9); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .card, :root:not([data-theme="light"]) .panel { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 14px 30px -18px rgba(0, 0, 0, 0.9); } }
a.card:hover { transform: translateY(-3px); }
.seal-wrap { padding: 12px; border-radius: 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), var(--surface)); border: 1px solid var(--line); }
.seal { filter: drop-shadow(0 6px 10px color-mix(in srgb, var(--accent) 35%, transparent)); }
.seal .seg.on { stroke-dasharray: 1; stroke-dashoffset: 1; animation: segdraw 0.5s ease-out forwards; animation-delay: calc(250ms + var(--k) * 70ms); }
@keyframes segdraw { to { stroke-dashoffset: 0; } }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: calc(var(--i, 0) * 80ms); }
.reveal.in { opacity: 1; transform: none; }
.kpi { font-variant-numeric: tabular-nums; }
.stamp-panel { text-align: center; padding: 28px 16px; }
.stamp { width: 120px; height: 120px; }
.stamp circle, .stamp .tick { fill: none; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.stamp .ring { stroke: var(--brass); stroke-width: 3; animation: segdraw 0.7s ease-out forwards; }
.stamp .ring2 { stroke: var(--brass); stroke-width: 1; opacity: 0.6; animation: segdraw 0.7s 0.15s ease-out forwards; }
.stamp .tick { stroke: var(--accent); stroke-width: 6; animation: segdraw 0.5s 0.7s ease-out forwards; }
.stamp-panel { animation: stampin 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
@keyframes stampin { from { transform: scale(1.06); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .seal .seg.on, .stamp circle, .stamp .tick, .stamp-panel { animation: none !important; stroke-dashoffset: 0; }
  a.card:hover { transform: none; }
}

/* Case triage (catalog PKG-00_TR-01 / PKG-00_TR-04): response clock, timeline, case cards. Tokens only. */
.clock { display: inline-flex; align-items: center; gap: 8px; }
.clock svg { width: 34px; height: 34px; }
.clock .arc { transition: stroke-dasharray 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.clock-label { font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; }
.case { border-left: 4px solid var(--brass); }
.case.late { border-left-color: var(--open); }
.brief { border-left: 3px solid var(--accent); padding-left: 12px; }
.timeline { list-style: none; margin: 8px 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); display: grid; gap: 10px; }
.timeline li { position: relative; }
.timeline .dot { position: absolute; left: -26px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--brass); }
.timeline li.latest .dot { background: var(--brass); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brass) 25%, transparent); }
.timeline p { margin: 2px 0 0; }
.empty { text-align: center; padding: 28px 12px; border: 1px dashed var(--line); border-radius: var(--radius); }
@media (prefers-reduced-motion: reduce) { .clock .arc { transition: none; } }

/* Governance register (catalog PKG-01_SG-03 / PKG-01_SG-05): decision stepper and aggregate tiles. */
.stepper { list-style: none; display: flex; gap: 6px; align-items: center; padding: 0; margin: 6px 0; flex-wrap: wrap; }
.stepper li { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.stepper li + li::before { content: ""; width: 22px; height: 2px; background: var(--line); margin-right: 6px; }
.stepper .node { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); transition: background 0.4s, border-color 0.4s; }
.stepper li.on { color: var(--text); }
.stepper li.on .node { background: var(--brass); border-color: var(--brass); }
.stepper li.end .node { background: var(--open); border-color: var(--open); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: grid; gap: 2px; }
.tile strong { font-family: var(--display); font-size: 1.7rem; font-variant-numeric: tabular-nums; }
.tile span { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.tile.warn { border-color: var(--open); }
.tile.warn strong { color: var(--open); }
@media (prefers-reduced-motion: reduce) { .stepper .node { transition: none; } }

/* Field chips (data grants, feeds) */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }
.chip { background: color-mix(in srgb, var(--brass) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--brass) 40%, var(--line)); border-radius: 999px; padding: 2px 10px; font-size: 0.78rem; }

/* Pipeline funnel bars; a suppressed cell (below the minimum cohort) is hatched, never drawn as zero. */
.bar-row { display: grid; grid-template-columns: 84px 1fr auto; gap: 8px; align-items: center; }
.bar-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.bar { display: block; height: 14px; border-radius: 999px; background: var(--accent); transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.bar.hatched { background: repeating-linear-gradient(135deg, var(--line) 0 4px, transparent 4px 8px); border: 1px solid var(--line); }
@media (prefers-reduced-motion: reduce) { .bar { transition: none; } }

/* Compact stepper: dots for every step, the label only for the current one, so six steps fit a phone. */
.stepper.compact { gap: 4px; }
.stepper.compact li:not(.current) span:not(.node) { display: none; }
.stepper.compact li + li::before { width: 14px; margin-right: 4px; }
.stepper.compact li.current { color: var(--text); font-weight: 600; }

/* Supply custody chain: linked nodes, brass while intact, red from the entry where it breaks. */
.chain { list-style: none; margin: 8px 0; padding: 0 0 0 14px; display: grid; gap: 10px; border-left: 2px solid var(--brass); }
.chain li { position: relative; }
.chain .link { position: absolute; left: -23px; top: 5px; width: 14px; height: 14px; border-radius: 4px; background: var(--surface); border: 2px solid var(--brass); transform: rotate(45deg); }
.chain li.bad .link { border-color: var(--open); background: var(--open); }
.chain li.bad { color: var(--open); }
.chain .hash { font-size: 0.72rem; color: var(--muted); }
.chain-wrap { margin-top: 8px; }

/* Owner console tabs: one scrollable row on a phone (there are many), wrapping on wide screens. */
.tabs { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.tabs button { flex: none; scroll-snap-align: start; }
@media (min-width: 900px) { .tabs { flex-wrap: wrap; overflow-x: visible; } }

.orgtree { list-style: none; padding-left: 12px; margin: 4px 0; border-left: 2px solid var(--line); display: grid; gap: 6px; }
.fixture { background: color-mix(in srgb, var(--brass) 10%, var(--surface)); border: 1px dashed var(--brass); border-radius: 10px; padding: 10px; overflow-x: auto; font-size: 0.8rem; }

/* Launch gate ring: a failed check is red. */
.seal .seg.bad { stroke: var(--open); }

/* Workflow step track: nodes joined by a line that fills with progress; blocked and missed steps are red. */
.track { list-style: none; margin: 8px 0; padding: 0 0 0 16px; display: grid; gap: 12px; position: relative; border-left: 2px solid var(--line); }
.track::before { content: ""; position: absolute; left: -2px; top: 0; width: 2px; height: var(--fill, 0%); background: var(--accent); transition: height 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.track li { position: relative; }
.track .tnode { position: absolute; left: -25px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); }
.track li.done .tnode { background: var(--accent); border-color: var(--accent); }
.track li.in_progress .tnode { border-color: var(--brass); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brass) 25%, transparent); }
.track li.blocked .tnode, .track li.late .tnode { border-color: var(--open); background: var(--open); }
@media (prefers-reduced-motion: reduce) { .track::before { transition: none; } }

/* Editorial check dots */
.dots { list-style: none; display: flex; gap: 10px; flex-wrap: wrap; padding: 0; margin: 6px 0; }
.dots li { display: inline-flex; align-items: center; gap: 4px; font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.dots .node { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); }
.dots li.on .node { background: var(--accent); border-color: var(--accent); }
.dots li.waived .node { background: var(--waived); border-color: var(--waived); }
.dots li.bad .node { background: var(--open); border-color: var(--open); }

/* Partner polls and surveys */
.polls h1 { margin-bottom: 0; overflow-wrap: anywhere; }
.polls h3 { margin: 0; overflow-wrap: anywhere; }
.poll-subnav { gap: 6px; }
.poll-tab { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--text); min-height: 44px; display: inline-flex; align-items: center; }
.poll-tab[aria-current="page"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.poll-meta { gap: 6px; }
.poll-ballot { border: 0; padding: 0; margin: 0; }
.poll-ballot legend { font-weight: 650; margin-bottom: 6px; }
.poll-choice { display: flex; gap: 10px; align-items: center; justify-content: space-between; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.poll-choice input[type="radio"], .poll-choice input[type="checkbox"] { width: 22px; height: 22px; flex: 0 0 auto; }
.poll-choice span { flex: 1; overflow-wrap: anywhere; }
.poll-choice select { max-width: 55%; }
.poll-rank { padding-left: 20px; display: grid; gap: 8px; }
.poll-rank li > span { flex: 1; overflow-wrap: anywhere; }
.poll-result-row { display: grid; gap: 4px; }
.poll-bar { height: 12px; border-radius: 999px; background: var(--line); overflow: hidden; }
.poll-bar span { display: block; height: 100%; background: var(--accent); }
.poll-sentence { font-size: 1.05rem; font-weight: 600; }
.poll-new input, .poll-new select, .poll-new textarea { width: 100%; box-sizing: border-box; }
.poll-new input[type="checkbox"] { width: 22px; height: 22px; }

.demo-chip { display: inline-block; padding: 0.125rem 0.5rem; border-radius: 999px; background: #fbe9cc; color: #7a4a07; font-size: 0.75rem; font-weight: 600; }

/* Proposal form: the error sits right under its field (V1 test script step 5). */
.field-error { display: block; margin-top: 4px; font-size: 0.9rem; }
.application-form [aria-invalid="true"] { border-color: var(--open); outline: 2px solid var(--open); outline-offset: 1px; }
.success-panel .reference { font-size: 0.95rem; word-break: break-all; user-select: all; }

/* Touch targets at least 44 x 44 CSS px on the V1 screens (Phase 2 polish, 2026-11-23; checked by e2e/a11y-check.mjs). */
input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select { min-height: 44px; }
.brand { min-height: 44px; }
.directory-cta a { display: inline-flex; align-items: center; min-height: 44px; }

/* Page states (Phase 2 polish, 2026-11-23): loading, error and empty. */
.page-state { display: grid; gap: 12px; justify-items: start; padding-block: 24px; }
.page-state[role="status"] { grid-auto-flow: column; align-items: center; justify-content: start; color: var(--muted); }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 3px solid currentColor; border-right-color: transparent; animation: afx-spin 0.8s linear infinite; }
@keyframes afx-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; border-right-color: currentColor; opacity: 0.6; } }
form[aria-busy="true"] button[type="submit"] { cursor: progress; }
/* Text at 200%: the form's single column may shrink below its widest field, and long words wrap instead of pushing the page sideways. */
.application-form { grid-template-columns: minmax(0, 1fr); }
.application-form :is(input, select, textarea) { max-width: 100%; min-width: 0; }
h1, h2, h3, .eyebrow { overflow-wrap: anywhere; }
.application-form button { white-space: normal; max-width: 100%; }
