/* ============================================================
   CYBER 360, "THE REGISTRY" (concept: iso)
   Swiss-institutional design system.
   One shared stylesheet for all 10 sitemap pages.
   ------------------------------------------------------------
   Contents
     01 Tokens
     02 Reset & base
     03 Typography & text utilities
     04 Skip link / focus / a11y
     05 Utility bar
     06 Header & nav (+ mobile menu)
     07 Bands & curved band edges
     08 Buttons & text links
     09 Hero (home) + arc figure
     10 Register quick-lookup bar (home)
     11 Stats band
     12 Cards: CTA cards, insight cards
     13 Catalogue rows (standards-listing style)
     14 Certificate level plot (home, hover-to-climb)
     15 Page head / breadcrumb (inner pages)
     16 Rail layout (sticky in-page nav) + long-form article
     17 Definition grids (levels), steps, principle lists
     18 Tables
     19 Chips: levels + 6 certificate statuses
     20 Register entry / verify result cards / field tables
     21 Forms (institutional)
     22 Accordion (FAQ)
     23 Notices & legal long-form
     24 Navy CTA band / verification callout
     25 Footer (charcoal, centered)
     26 Helpers
     27 Responsive
     28 Reduced motion
     29 Inner-page extensions (verify, demo forms, contact, legal)
   ============================================================ */

/* ---------- 01 Tokens ---------- */
:root {
  /* canvas: 4-step warm-gray band scale */
  --paper: #FFFFFF;
  --band-1: #F5F4F2;
  --band-2: #EEECE9;
  --band-3: #E5E3DF;

  /* ink */
  --ink: #1A1C22;
  --body-ink: #33363D;
  --muted: #5C6068;
  --faint: #8A8E96;

  /* the single ferocious accent */
  --red: #D6001C;
  --red-deep: #A50017;
  --red-tint: #FBE4E7;

  /* secondary structural hues */
  --navy: #14213D;
  --navy-ink: #E7EBF4;
  --charcoal: #24262B;
  --charcoal-2: #1C1E22;

  /* rules */
  --hairline: #DAD7D2;
  --hairline-strong: #C7C3BC;
  --hairline-dark: #3B3E44;

  /* illustration-only hues (never for UI chrome) */
  --sage: #A5C9AE;
  --sage-deep: #6E9678;
  --mustard: #D9A72B;

  /* type */
  --font-display: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  /* layout */
  --container: 1200px;
  --gutter: clamp(1.1rem, 4vw, 2rem);
  --band-pad: clamp(2.1rem, 3.6vw, 3rem);
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-card: 0 2px 10px rgba(26, 28, 34, 0.05);
  --shadow-card-hover: 0 6px 22px rgba(26, 28, 34, 0.09);
  --header-h: 76px;
}

/* ---------- 02 Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;              /* 17px */
  line-height: 1.6;
  color: var(--body-ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.6em;
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.015em;
  font-weight: 700;
}

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: 0.35em; }

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

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-deep); text-decoration: underline; text-underline-offset: 3px; }

hr { border: 0; border-top: 1px solid var(--hairline); margin: 2.5rem 0; }

address { font-style: normal; }

table { border-collapse: collapse; }

button, input, select, textarea { font: inherit; color: inherit; }

[id] { scroll-margin-top: calc(var(--header-h) + 2rem); }

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

/* ---------- 03 Typography & text utilities ---------- */

/* Signature: mixed-weight headline, regular sentence, bold key words. */
.mix { font-weight: 400; }
.mix b, .mix strong { font-weight: 700; }

.h1 { font-size: clamp(2.4rem, 5.4vw, 3.9rem); }
.h2 { font-size: clamp(1.7rem, 3.2vw, 2.35rem); }
.h3 { font-size: 1.35rem; }

.kicker {
  display: block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 1rem;
}

.lead {
  font-size: 1.175rem;
  line-height: 1.62;
  color: var(--body-ink);
}
.lead strong, p strong { font-weight: 700; color: var(--ink); }

.tagline {
  font-style: italic;
  color: var(--muted);
  font-size: 1.05rem;
}
.tagline strong { font-weight: 700; font-style: italic; color: inherit; }

.measure { max-width: 46rem; }
.measure-center { max-width: 44rem; margin-inline: auto; }

.small { font-size: 0.9rem; }
.muted { color: var(--muted); }
.center { text-align: center; }

.mono, .cert-number { font-family: var(--font-mono); letter-spacing: 0.02em; }

.section-head { margin-bottom: clamp(1.4rem, 2.6vw, 2.1rem); }
.section-head.center { text-align: center; }
.section-head.center .lead { margin-inline: auto; max-width: 44rem; }

/* ---------- 04 Skip link / focus ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 0.65rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; text-decoration: none; color: #fff; }

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

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

/* ---------- 05 Utility bar ---------- */
.utility-bar {
  background: var(--charcoal);
  color: #C9CCD2;
  font-size: 0.8125rem;
}
.utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 36px;
}
.utility-note { letter-spacing: 0.02em; }
.utility-links { display: flex; gap: 1.4rem; }
.utility-links a { color: #C9CCD2; font-weight: 600; }
.utility-links a:hover { color: #fff; text-decoration: none; }

/* ---------- 06 Header & nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
}
.site-header.is-scrolled { box-shadow: 0 2px 14px rgba(26, 28, 34, 0.08); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--ink);
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; color: var(--ink); }
.brand-mark { width: 46px; height: 46px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.brand-text small {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.7rem;
  margin-left: auto;
}
.site-nav a {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.975rem;
  letter-spacing: 0.005em;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--red); text-decoration: none; }
.site-nav a[aria-current="page"] {
  color: var(--red);
  border-bottom-color: var(--red);
}
.site-nav .nav-cta {
  color: var(--red);
  font-weight: 700;
}
.site-nav .nav-cta:hover { color: var(--red-deep); }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.6rem;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--red); color: var(--red); }

/* ---------- 07 Bands & curved edges ---------- */
.band { --curve-rise: 44px; padding-block: var(--band-pad); background: var(--paper); }
/* A trailing margin on the last block in a band reads as extra padding,
   which made every section noticeably bottom-heavier than its top.
   Strip it so the band's own padding is the only space at the edges. */
.band > .container > :last-child,
.band > .container > :last-child > :last-child,
.band > .plot-wide > :last-child { margin-bottom: 0; }
.band--paper { background: var(--paper); }
.band--1 { background: var(--band-1); }
.band--2 { background: var(--band-2); }
.band--3 { background: var(--band-3); }
.band--navy { background: var(--navy); color: var(--navy-ink); padding-block: clamp(1.25rem, 2.1vw, 1.75rem); }
.band--navy h2, .band--navy h3 { color: #fff; }
/* actually tighter than the standard band, which it was not before */
.band--tight { padding-block: clamp(1.6rem, 2.6vw, 2.25rem); }
/* Stats strip: a compact, optically centred band. It carries no curve
   crest, whose 44px rise would read as dead space above the numbers on
   a strip this short.
   The +2px goes on TOP: the big numerals overhang their line box by
   ~3px while the label's box keeps ~2px of descender space below, so
   without it the ink sits high and the strip reads bottom-heavy. */
.band--stats {
  --stats-pad: clamp(1.6rem, 2.6vw, 2.15rem);
  padding-block: calc(var(--stats-pad) + 0.3rem) var(--stats-pad);
}

/* Sweeping curved seam: paints this band's background as a shallow
   ellipse crest over the previous band. The page's one flourish. */
.curve { position: relative; }
.curve::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: calc(var(--curve-rise, 44px) * -1);
  height: calc(var(--curve-rise, 44px) + 1px);
  background: inherit;
  pointer-events: none;
  clip-path: ellipse(130% 100% at 50% 100%);
}
.curve--l::before { clip-path: ellipse(160% 100% at 24% 100%); }
.curve--r::before { clip-path: ellipse(160% 100% at 76% 100%); }

/* The crest paints --curve-rise of this band's OWN background above its
   box. So a curved band's visible top space is crest + padding, while
   the band directly above it silently loses that same amount off its
   bottom. Without compensating, every curved seam reads top-heavy and
   bottom-starved. Both selectors outrank the single-class padding
   overrides further down the sheet. */
.band.curve { padding-top: max(0.25rem, calc(var(--band-pad) - var(--curve-rise))); }
.band:has(+ .band.curve) { padding-bottom: calc(var(--band-pad) + var(--curve-rise)); }
@supports not (clip-path: ellipse(50% 50% at 50% 50%)) {
  .curve::before { display: none; }
}

/* ---------- 08 Buttons & text links ---------- */

/* House rule: the primary CTA is a bold red text link, not a button. */
.text-link {
  color: var(--red);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}
.text-link:hover { color: var(--red-deep); }
.text-link--lg { font-size: 1.1rem; }

/* Real buttons exist only where function demands one (forms, dark bands). */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.975rem;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}
.btn:hover { text-decoration: none; }

.btn-solid { background: var(--red); color: #fff; }
.btn-solid:hover { background: var(--red-deep); color: #fff; }

.btn-quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--hairline-strong);
}
.btn-quiet:hover { border-color: var(--ink); color: var(--ink); }

/* Outlined button for navy / charcoal bands (the ISO footer move). */
.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); color: #fff; }

/* ---------- 09 Hero (home) ---------- */
/* vertical only: the lookup bar sat in a deep well, so the space above
   and below it is trimmed. Horizontal measure is untouched. */
.hero { padding-block: clamp(2.75rem, 5vw, 4rem) clamp(2.25rem, 3.6vw, 3rem); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 { margin-bottom: 1.1rem; }
.hero .lead { max-width: 34em; }
.hero-tagline { margin-top: 1.4rem; }

.hero-figure-wrap { display: flex; justify-content: center; }
.hero-figure { width: min(100%, 470px); }

/* ---------- 10 Register quick-lookup bar ---------- */
.lookup-bar {
  margin-top: clamp(1.5rem, 2.8vw, 2.15rem);
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 1.4rem 1.5rem 1.15rem;
}
.lookup-bar-form {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
}
.lookup-bar-form input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
}
.lookup-bar-form input::placeholder { color: var(--faint); }
.lookup-bar-form input:focus-visible { outline-offset: 0; }
.lookup-bar-note {
  margin: 0.8rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- 11 Stats band ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.stat {
  text-align: center;
  padding: 0.5rem 1rem;
  border-left: 1px solid var(--hairline-strong);
}
.stat:first-child { border-left: 0; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-num .accent { color: var(--red); }
.stat-label {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.925rem;
  color: var(--muted);
}

/* ---------- 12 Cards ---------- */

/* 3-up CTA cards: white, centered, ending in a red text link */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.cta-card {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: clamp(1.75rem, 3vw, 2.4rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.cta-card .card-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  color: var(--red);
}
.cta-card h3 { font-size: 1.3rem; margin-bottom: 0.35rem; }
.cta-card p { color: var(--muted); font-size: 0.975rem; margin-bottom: 0.9rem; }
.cta-card .text-link { margin-top: auto; }

/* Insight / editorial cards: illustration header + red headline */
.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.insight-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  color: inherit;
  transition: box-shadow 160ms ease, transform 160ms ease;
}
.insight-card:hover {
  text-decoration: none;
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
  color: inherit;
}
.insight-card figure { margin: 0; }
.insight-card figure svg { width: 100%; height: auto; display: block; }
.insight-body { padding: 1.5rem 1.6rem 1.7rem; }
.insight-body h3 {
  color: var(--red);
  font-size: 1.25rem;
  margin-bottom: 0.45rem;
}
.insight-card:hover .insight-body h3 { color: var(--red-deep); }
.insight-body p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* Inline red topic links woven into a sentence (house taxonomy pattern) */
.topic-links {
  margin-top: 2.25rem;
  font-size: 1.05rem;
  max-width: 52rem;
}
.topic-links a { font-weight: 700; }

/* ---------- 13 Catalogue rows (standards listing) ---------- */
.catalogue {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
}
.catalogue-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 260px;
  gap: 2rem;
  padding: 1.9rem 0.25rem;
  border-bottom: 1px solid var(--hairline);
  margin: 0;
}
.catalogue-code {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}
.catalogue-code .code {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1rem;
  color: var(--red);
  letter-spacing: 0.02em;
}
a.code:hover { color: var(--red-deep); }
.catalogue-body h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.catalogue-body h3 a { color: var(--ink); }
.catalogue-body h3 a:hover { color: var(--red); text-decoration: none; }
.catalogue-body p { color: var(--muted); font-size: 0.975rem; margin: 0; }
.catalogue-fit { font-size: 0.9rem; color: var(--muted); }
.catalogue-fit .fit-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.3rem;
}
.catalogue-foot { margin-top: 2rem; }

/* ---------- 14 Certificate level plot (home, hover-to-climb) ---------- */
.hscroll-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: clamp(1.2rem, 2.5vw, 2rem);
}
.hscroll-head-copy .h2 { max-width: 18ch; }
.hscroll-more { font-weight: 600; white-space: nowrap; }

/* plaque innards (shared by fallback grid and plotted stage) */
.slide-code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--red);
  letter-spacing: 0.02em;
  margin-bottom: 0.35rem;
}
.level-badge { width: 40px; height: 40px; flex: none; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.check-list li {
  position: relative;
  padding-left: 1.45em;
  font-size: 0.92rem;
  color: var(--body-ink);
}
.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--red);
  font-weight: 700;
}
.slide-sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.9rem; }
.slide-fit {
  font-size: 0.86rem;
  color: var(--muted);
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--hairline);
}
.slide-fit b { color: var(--ink); font-weight: 600; }
.slide-more { display: inline-block; margin-top: 0.9rem; font-weight: 600; }
.plaque .chip-level {
  border-color: transparent;
  border-radius: 999px;
  padding: 0.3em 0.95em;
}
/* the two tier names in the section heading, carrying the same ink as
   the Bronze and Platinum chips on the plaques below */
.tier-word--bronze { color: #8a5a24; }
.tier-word--platinum { color: #3d4d63; }

.plaque .chip-bronze { background: #f6e8d8; color: #8a5a24; }
.plaque .chip-silver { background: #eef1f4; color: #4a5560; }
.plaque .chip-gold { background: #faf0cd; color: #7a5c07; }
.plaque .chip-platinum { background: #e7ecf3; color: #3d4d63; }

/* The climb gets its own slightly wider measure than the 1200px body
   container: enough room for the four stations to breathe, without the
   full-bleed sprawl. The heading uses the SAME wrapper, so the kicker,
   the "explore" link and the first plaque share one left edge. */
.plot-wide {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.plot-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; display: none; }
.plot-track { fill: none; stroke: var(--hairline-strong); stroke-width: 1.5; stroke-dasharray: 5 6; }
.plot-path {
  fill: none;
  stroke: var(--red);
  stroke-width: 2.5;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.65s cubic-bezier(0.3, 0.8, 0.3, 1);
}
.plot-node { fill: var(--paper); stroke: var(--red); stroke-width: 2.5; transition: fill 0.25s ease; }
.plot-node.lit { fill: var(--red); }

/* plaques: fallback first (no JS / narrow / reduced motion), a tidy
   grid with every tier fully expanded and readable */
.plot-stage { position: relative; }
.plot-stage:not(.plot-enhanced) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
}
.plaque {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--metal, var(--hairline));
  border-radius: 8px;
  padding: 1rem 1.1rem 1.1rem;
}
.plaque--bronze { --metal: #b07a3f; }
.plaque--silver { --metal: #97a3ad; }
.plaque--gold { --metal: #d1a52c; }
.plaque--platinum { --metal: #8fa3b8; }
.plaque-head { display: flex; align-items: center; gap: 0.55rem; margin-bottom: 0.55rem; }
.plaque h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}
.plaque-more { margin-top: 0.55rem; }
.plaque-more > div { min-width: 0; }

/* plotted stage (motion.js adds .plot-enhanced at min-width 861px):
   compact plaques hang from evenly spaced stations on the climbing
   line; hovering one unfolds it, draws the line to its node, lights
   the stations passed, and dims the rest */
.plot-stage.plot-enhanced { display: block; height: 560px; }
.plot-enhanced .plot-svg { display: block; }
.plot-enhanced .plaque {
  position: absolute;
  width: 190px;
  cursor: pointer;
  z-index: 1;
  outline-offset: 4px;
  transition: width 0.35s cubic-bezier(0.3, 0.9, 0.3, 1),
              left 0.35s cubic-bezier(0.3, 0.9, 0.3, 1),
              top 0.35s cubic-bezier(0.3, 0.9, 0.3, 1),
              box-shadow 0.3s ease, filter 0.25s ease, opacity 0.25s ease;
}
/* used for one silent measuring pass, so open heights can be known
   before a card is ever hovered */
.plot-stage.is-measuring .plaque,
.plot-stage.is-measuring .plaque * { transition: none !important; }
.plot-enhanced .plaque-more {
  display: grid;
  grid-template-rows: 0fr;
  margin-top: 0;
  transition: grid-template-rows 0.4s ease 0.05s;
}
.plot-enhanced .plaque-more > div { overflow: hidden; }
.plot-enhanced .plaque.is-open {
  /* capped by viewport so an open card always clears its neighbors */
  width: min(330px, 23vw);
  z-index: 6;
  box-shadow: 0 18px 40px rgba(26, 28, 34, 0.18);
}
.plot-enhanced .plaque.is-open .plaque-more { grid-template-rows: 1fr; margin-top: 0.55rem; }
.plot-stage.has-hover .plaque:not(.is-open) { filter: grayscale(1); opacity: 0.5; }

/* ---------- 15 Page head / breadcrumb ---------- */
.page-head { padding-block: clamp(1.9rem, 3.5vw, 2.6rem); }
.page-head h1 { max-width: 20em; }
.page-head .lead { max-width: 44rem; }

.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.4rem;
}
.breadcrumb a { color: var(--muted); font-weight: 600; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb .sep { color: var(--red); margin-inline: 0.45rem; }

/* ---------- 16 Rail layout + article ---------- */
.rail-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: clamp(2rem, 4.5vw, 3.75rem);
  align-items: start;
}
.section-rail {
  position: sticky;
  top: calc(var(--header-h) + 1.75rem);
}
.rail-title {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.8rem;
}
.section-rail ol {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--hairline);
}
.section-rail li { margin: 0; }
.section-rail a {
  display: block;
  padding: 0.45rem 0 0.45rem 1rem;
  margin-left: -1px;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-size: 0.925rem;
  font-weight: 600;
}
.section-rail a:hover { color: var(--red); text-decoration: none; }
.section-rail a.is-active, .section-rail a[aria-current="true"] {
  color: var(--red);
  border-left-color: var(--red);
}

/* Long-form editorial column with visible left rule (the grid shows) */
.article { border-left: 1px solid var(--hairline); padding-left: clamp(1.5rem, 3.5vw, 3rem); }
/* one gap between article sections, not two: the rule sits midway in a
   single space rather than a margin AND a matching pad stacking up to
   ~120px of empty band */
.article > section + section {
  margin-top: clamp(1.75rem, 3vw, 2.4rem);
  padding-top: clamp(1.75rem, 3vw, 2.4rem);
  border-top: 1px solid var(--hairline);
}
.article h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); }
.article h3 { font-size: 1.15rem; margin-top: 1.75rem; }
.article figure { margin: 2rem 0; }
.article figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.7rem;
  border-left: 2px solid var(--red);
  padding-left: 0.75rem;
}

/* ---------- 17 Definition grids, steps, principle lists ---------- */

/* levels page: demonstrates / fit / safeguards / limitations */
.def-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem 2.25rem;
  margin: 1.5rem 0 0;
}
.def-grid > div { border-top: 2px solid var(--ink); padding-top: 0.9rem; }
.def-grid dt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.def-grid dd { margin: 0; font-size: 0.925rem; color: var(--muted); }
.def-grid dd ul { padding-left: 1.1em; margin: 0; }
.def-grid dd li { margin-bottom: 0.3em; }
.def-grid .def-wide { grid-column: 1 / -1; border-top-color: var(--red); }

/* numbered review steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps > li {
  counter-increment: step;
  position: relative;
  padding: 1.4rem 0 1.4rem 4rem;
  border-top: 1px solid var(--hairline);
  margin: 0;
}
.steps > li:last-child { border-bottom: 1px solid var(--hairline); }
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.45rem;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--red);
}
.steps h3 { font-size: 1.1rem; margin: 0 0 0.3rem; }
.steps p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* hairline principle list (label + text rows) */
.principles { list-style: none; margin: 0; padding: 0; }
.principles > li {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--hairline);
  margin: 0;
}
.principles > li:last-child { border-bottom: 1px solid var(--hairline); }
.principles .p-label {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  font-size: 0.975rem;
}
.principles .p-text { color: var(--muted); font-size: 0.95rem; }

/* ---------- 18 Tables ---------- */
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; font-size: 0.95rem; }
.tbl th {
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  font-size: 0.875rem;
  padding: 0.8rem 1rem 0.8rem 0;
  border-bottom: 2px solid var(--ink);
}
.tbl td {
  padding: 0.9rem 1rem 0.9rem 0;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
  color: var(--body-ink);
}

/* ---------- 19 Chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.22em 0.7em;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}

/* level chips: quiet bordered marks */
.chip-level { background: transparent; border: 1px solid currentColor; }
.chip-bronze { color: #7A4A17; }
.chip-silver { color: #545B66; }
.chip-gold { color: #7A5C05; }
.chip-platinum { color: #37414B; }

/* status chips: registry stamps (6 statuses) */
.chip-status {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.72rem;
  border: 1px solid transparent;
}
.chip-status::before {
  content: "";
  width: 0.5em; height: 0.5em;
  border-radius: 50%;
  background: currentColor;
}
.st-active     { color: #1B5E36; background: #E2F2E7; border-color: #BCDEC8; }
.st-expired    { color: #52565E; background: #ECECEA; border-color: #D3D3CF; }
.st-suspended  { color: #7A5200; background: #FBEFD4; border-color: #EAD9A9; }
.st-revoked    { color: #A50017; background: #FBE4E7; border-color: #F0BFC6; }
.st-review     { color: #1D4E89; background: #E3EDF7; border-color: #BFD5EB; }
.st-superseded { color: #55447F; background: #EBE7F5; border-color: #CEC6E4; }

/* ---------- 20 Register entry / verify results ---------- */
.register-panel { max-width: 800px; margin-inline: auto; }

.register-entry {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.register-entry-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--hairline);
  background: var(--band-1);
}
.register-entry-head .cert-number {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
}
.register-entry-head .entry-kicker {
  display: block;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.25rem;
}
.register-entry-body { padding: 0.5rem 1.75rem 1.5rem; }
.register-entry-foot {
  padding: 1.1rem 1.75rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--band-1);
}

/* hairline field table: the official register look */
.field-table { margin: 0; }
.field-table > div {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 1.25rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--hairline);
}
.field-table > div:first-child { border-top: 0; }
.field-table dt {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
}
/* break-word, not anywhere: long values wrap, but ordinary words are
   never split mid-syllable */
.field-table dd { margin: 0; font-size: 0.975rem; color: var(--ink); overflow-wrap: break-word; }

/* the specimen card is a narrow column, so its labels get a compact
   track and the values keep a usable measure */
.register-entry .field-table > div {
  grid-template-columns: minmax(88px, 34%) minmax(0, 1fr);
  gap: 1rem;
}

/* narrow sidebar cards: the 240px label column would crush the values,
   so use a compact label column and keep values on one line */
.office-card .field-table > div {
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 1rem;
}
.office-card .field-table dd { font-size: 0.92rem; }

.achievement-list { list-style: none; margin: 0; padding: 0; }
.achievement-list > li {
  padding: 0.9rem 0 0.9rem 1.7rem;
  border-top: 1px solid var(--hairline);
  position: relative;
  margin: 0;
}
.achievement-list > li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.35rem;
  width: 0.6rem; height: 0.6rem;
  border-radius: 50%;
  border: 2px solid var(--red);
}
.achievement-list h3, .achievement-list .ach-title {
  font-family: var(--font-display);
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.15rem;
}
.achievement-list p { margin: 0; font-size: 0.9rem; color: var(--muted); }

/* generic not-found / result alert (identical for every miss) */
.result-alert {
  border: 1px solid var(--hairline-strong);
  border-left: 3px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--band-1);
  padding: 1.3rem 1.5rem;
  font-size: 0.975rem;
}
.result-alert strong { color: var(--ink); }

/* status legend rows (faq / disclaimer / verify) */
.status-legend { list-style: none; margin: 0; padding: 0; }
.status-legend > li {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  padding: 0.9rem 0;
  border-top: 1px solid var(--hairline);
  margin: 0;
}
.status-legend > li:last-child { border-bottom: 1px solid var(--hairline); }
.status-legend p { margin: 0; font-size: 0.925rem; color: var(--muted); }

/* ---------- 21 Forms ---------- */
.form-card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: clamp(1.75rem, 4vw, 2.75rem);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem 1.6rem;
}
.form-grid .field-full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.925rem;
  color: var(--ink);
}
.field .req { color: var(--red); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline-offset: 0; }
.field-hint { font-size: 0.8rem; color: var(--muted); }
.field-error { font-size: 0.85rem; color: var(--red-deep); font-weight: 600; }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--red); }

.check-row {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.925rem;
  color: var(--body-ink);
}
.check-row input[type="checkbox"] {
  width: 1.1rem; height: 1.1rem;
  margin-top: 0.2rem;
  accent-color: var(--red);
  flex-shrink: 0;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}
.form-note { font-size: 0.85rem; color: var(--muted); margin: 0; }

/* in-page success state (demo forms) */
.form-success {
  border: 1px solid #BCDEC8;
  border-left: 3px solid #1B5E36;
  background: #E2F2E7;
  color: #17492B;
  border-radius: var(--radius-sm);
  padding: 1.4rem 1.6rem;
}
.form-success h2, .form-success h3 { color: #14391F; font-size: 1.2rem; margin-bottom: 0.4rem; }
.form-success p { margin: 0; font-size: 0.95rem; }

/* bot-protection placeholder (verify page) */
.bot-check {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border: 1px dashed var(--hairline-strong);
  border-radius: var(--radius-sm);
  background: var(--band-1);
  padding: 0.9rem 1.1rem;
  font-size: 0.875rem;
  color: var(--muted);
}

/* ---------- 22 Accordion ---------- */
.accordion { border-top: 1px solid var(--hairline); }
.acc-item { border-bottom: 1px solid var(--hairline); }
.acc-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.95rem 0.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary::after {
  content: "+";
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--red);
  flex-shrink: 0;
  transition: transform 160ms ease;
}
.acc-item[open] summary::after { content: "−"; }
.acc-item summary:hover { color: var(--red); }
.acc-body { padding: 0 0.25rem 1.15rem; max-width: 48rem; }
.acc-body p { color: var(--body-ink); font-size: 0.975rem; }
.acc-body p:last-child { margin-bottom: 0; }

/* ---------- 23 Notices & legal ---------- */
.notice {
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--red);
  border-radius: var(--radius-sm);
  background: var(--paper);
  padding: 1.25rem 1.5rem;
  font-size: 0.95rem;
}
.notice strong { color: var(--ink); }
.notice p:last-child { margin-bottom: 0; }
.notice--quiet { border-left-color: var(--hairline-strong); }

/* long-form legal text (disclaimer / privacy) */
.legal-article { max-width: 50rem; }
.legal-article h2 {
  font-size: 1.4rem;
  margin-top: 2.75rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--hairline);
}
.legal-article > h2:first-child, .legal-article > *:first-child h2 { margin-top: 0; border-top: 0; padding-top: 0; }
.legal-article h3 { font-size: 1.1rem; margin-top: 1.75rem; }
.legal-article p, .legal-article li { font-size: 0.975rem; color: var(--body-ink); }
.legal-article .effective {
  font-size: 0.875rem;
  color: var(--muted);
  font-family: var(--font-mono);
}

/* ---------- 24 Callouts / CTA bands ---------- */
.callout-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
/* the CTA is a button here, so it needs real clearance from the last
   bullet rather than the tight optical gap a text link could carry */
.callout-grid .callout-action { text-align: left; margin: 1.6rem 0 0; }
/* what a verifier needs, listed so the copy column stands level with
   the specimen card beside it */
.callout-points { margin: 1.35rem 0 0; }
.callout-points li { font-size: 1rem; }
.callout-points li b { color: var(--ink); font-weight: 700; }

.cta-band-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}
/* the closing paragraph's trailing margin is dead space at the foot of
   the band, and it made the block sit high in its own strip */
.cta-band-inner > div > :last-child { margin-bottom: 0; }
.cta-band-inner h2 { margin-bottom: 0.45em; }
.band--navy .lead { color: var(--navy-ink); }
.band--navy a:not(.btn) { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.band--navy a:not(.btn):hover { color: var(--navy-ink); }

/* ---------- 25 Footer ---------- */
/* Reads left to right: brand + promise, then two columns of links,
   then the office. Everything is left-aligned on a shared baseline
   grid rather than stacked down the middle. */
.site-footer {
  background: var(--charcoal);
  color: #B9BCC3;
  text-align: left;
  padding: clamp(2.4rem, 4.2vw, 3.25rem) 0 1.6rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1.15fr 1.15fr;
  gap: clamp(1.75rem, 3.4vw, 3.25rem);
  padding-bottom: clamp(1.6rem, 2.8vw, 2.25rem);
  border-bottom: 1px solid var(--hairline-dark);
}

.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 0.95rem; }
.footer-mark { width: 42px; height: 42px; flex: none; }
.footer-tagline {
  font-style: italic;
  color: #E4E6EA;
  font-size: 1.02rem;
  line-height: 1.5;
  margin: 0;
  max-width: 22ch;
}
.footer-tagline strong { font-weight: 700; font-style: italic; color: #fff; }

.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin: 0 0 0.3rem;
}
.footer-col a { color: #C9CCD2; font-size: 0.875rem; font-weight: 600; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-office-name { color: #E4E6EA; font-weight: 600; font-size: 0.875rem; }

.footer-disclaimer {
  max-width: 72rem;
  margin: clamp(1.35rem, 2.4vw, 1.85rem) 0 1.35rem;
  font-size: 0.78rem;
  line-height: 1.6;
  color: #8E9199;
}
.footer-disclaimer a { color: #B9BCC3; text-decoration: underline; text-underline-offset: 2px; }
.footer-disclaimer a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid var(--hairline-dark);
  padding-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  font-size: 0.8rem;
  color: #8E9199;
  text-align: left;
}

/* ---------- 26 Helpers ---------- */
.is-hidden { display: none !important; }
.flow > * + * { margin-top: 1em; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* ---------- 27 Responsive ---------- */
@media (max-width: 1020px) {
  .catalogue-row { grid-template-columns: 160px minmax(0, 1fr); }
  .catalogue-fit { grid-column: 2; }
  .def-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2.25rem 0; }
  .stat:nth-child(odd) { border-left: 0; }
}

@media (max-width: 900px) {
  /* brand spans the top, the three link columns sit beneath it */
  .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 1.75rem 2rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-tagline { max-width: 40ch; }

  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--hairline);
    box-shadow: 0 14px 28px rgba(26, 28, 34, 0.12);
    padding: 0.5rem 0 0.9rem;
  }
  .site-header.is-open .site-nav { display: flex; }
  .site-nav a {
    padding: 0.8rem var(--gutter);
    border-bottom: 0;
  }
  .site-nav a[aria-current="page"] { border-bottom: 0; background: var(--band-1); }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure-wrap { order: -1; }
  .hero-figure { width: min(72vw, 340px); }

  .lookup-bar-form { grid-template-columns: 1fr; }

  .card-grid, .insight-grid { grid-template-columns: 1fr; }

  .rail-layout { grid-template-columns: 1fr; }
  .section-rail { position: static; margin-bottom: 0.5rem; }
  .section-rail ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
    border-left: 0;
    border-bottom: 1px solid var(--hairline);
    padding-bottom: 0.9rem;
  }
  .section-rail a { border-left: 0; padding: 0.25rem 0; margin-left: 0; }
  .section-rail a.is-active { border-left: 0; }
  .article { border-left: 0; padding-left: 0; }

  .callout-grid, .cta-band-inner { grid-template-columns: 1fr; }

  .field-table > div { grid-template-columns: 1fr; gap: 0.15rem; padding: 0.75rem 0; }
  .status-legend > li { grid-template-columns: 1fr; gap: 0.4rem; }
  .principles > li { grid-template-columns: 1fr; gap: 0.35rem; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .def-grid { grid-template-columns: 1fr; }
  .catalogue-row { grid-template-columns: 1fr; gap: 0.9rem; }
  .catalogue-fit { grid-column: 1; }
  .utility-note { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .footer-tagline { max-width: none; }
  .footer-bottom { flex-direction: column; text-align: left; }
}

/* ---------- 28 Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ---------- 29 Inner-page extensions ---------- */
/* Appended by the inner-page build: verify pages, demo forms,
   contact split, legal, and the draft review aid. Same tokens,
   same world, nothing here introduces a new hue or typeface. */

/* narrow single-column panel (institutional forms) */
.panel-narrow { max-width: 860px; margin-inline: auto; }

/* fieldset groups inside institutional forms */
.form-fieldset { border: 0; padding: 0; margin: 0 0 2.1rem; min-width: 0; }
.form-fieldset:last-of-type { margin-bottom: 0; }
.form-fieldset legend {
  display: block;
  width: 100%;
  padding: 0 0 0.55rem;
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
}
.form-success p + p { margin-top: 0.6rem; }
.form-success:focus { outline: none; }

/* optional-field label affordance */
.label-opt { font-weight: 400; color: var(--muted); font-size: 0.85em; }

/* bot-protection placeholder internals */
.bot-check input[type="checkbox"] {
  width: 1.1rem; height: 1.1rem;
  margin-top: 0.15rem;
  accent-color: var(--red);
  flex-shrink: 0;
}
.bot-check label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.925rem;
  color: var(--ink);
  cursor: pointer;
}
.bot-check .bot-note { display: block; margin-top: 0.15rem; }

/* status meaning banner inside a register entry (6 treatments) */
.entry-status {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.15rem 1.75rem;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.95rem;
}
.entry-status .es-icon { width: 1.5rem; height: 1.5rem; flex-shrink: 0; margin-top: 0.1rem; }
.entry-status .es-icon svg { width: 100%; height: 100%; display: block; }
.entry-status strong { display: block; font-family: var(--font-display); margin-bottom: 0.1rem; }
.es-active     { background: #E2F2E7; color: #17492B; }
.es-active strong { color: #14391F; }
.es-expired    { background: #ECECEA; color: #45484F; }
.es-expired strong { color: #33363D; }
.es-suspended  { background: #FBEFD4; color: #6B4A02; }
.es-suspended strong { color: #593D00; }
.es-revoked    { background: #FBE4E7; color: #8C0013; }
.es-revoked strong { color: #73000F; }
.es-review     { background: #E3EDF7; color: #1C4576; }
.es-review strong { color: #173A63; }
.es-superseded { background: #EBE7F5; color: #4C3D72; }
.es-superseded strong { color: #3F3260; }

/* sections within a register entry body */
.entry-section { margin-top: 1.8rem; padding-top: 1.5rem; border-top: 1px solid var(--hairline); }
.entry-section h2 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.entry-section p { font-size: 0.95rem; color: var(--body-ink); }
.entry-section p:last-child { margin-bottom: 0; }

/* generic empty / not-found state inside a register entry */
.entry-empty { padding: 2.75rem 2rem 3rem; text-align: center; }
.entry-empty h2 { font-size: 1.3rem; }
.entry-empty p { max-width: 34em; margin-inline: auto; color: var(--muted); font-size: 0.975rem; }

/* entry head chip cluster + foot metadata */
.entry-chips { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.entry-foot-meta { display: flex; flex-wrap: wrap; gap: 0.3rem 1.5rem; }

/* QR block on the register entry */
.qr-block { display: flex; align-items: flex-start; gap: 1.25rem; flex-wrap: wrap; }
.qr-block .qr {
  width: 118px;
  flex-shrink: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
}
.qr-meta { flex: 1; min-width: 220px; font-size: 0.9rem; color: var(--muted); }
.qr-meta .url { font-family: var(--font-mono); font-size: 0.85rem; color: var(--ink); word-break: break-all; }

/* draft review aid (verify page, removed before launch) */
.review-aid {
  margin-top: 2rem;
  border: 1px dashed var(--hairline-strong);
  border-radius: var(--radius-sm);
  background: var(--band-1);
}
.review-aid > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.925rem;
  color: var(--muted);
}
.review-aid > summary::-webkit-details-marker { display: none; }
.review-aid > summary::after {
  content: "+";
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--red);
  flex-shrink: 0;
}
.review-aid[open] > summary::after { content: "−"; }
.review-aid > summary:hover { color: var(--ink); }
.review-aid-body { padding: 0 1.25rem 1.25rem; font-size: 0.9rem; color: var(--body-ink); }
.review-aid-body .tbl { font-size: 0.85rem; }

/* contact page: form + program-office aside */
.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2rem, 4.5vw, 3.5rem);
  align-items: start;
}
.aside-stack { display: grid; gap: 1.25rem; align-content: start; }
.office-card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 1.6rem 1.75rem;
}
.office-card .office-title { font-size: 1.05rem; margin-bottom: 0.6rem; }

@media (max-width: 900px) {
  .split-grid { grid-template-columns: 1fr; }
  .entry-status { padding-inline: 1.25rem; }
  .register-entry-head, .register-entry-body, .register-entry-foot { padding-inline: 1.25rem; }
}
