/* ==========================================================================
   Top Business Awards US
   Design contract: see DESIGN.md and REDESIGN-PRD.md
   Dials: DESIGN_VARIANCE 7 / MOTION_INTENSITY 5 / VISUAL_DENSITY 3
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Font
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. Tokens
   -------------------------------------------------------------------------- */

:root {
  color-scheme: light;

  /* Neutrals - cool grey, never pure black or pure white */
  --paper: #fbfbfd;
  --surface: #ffffff;
  --surface-sunken: #f3f4f8;
  --line: #e2e4ec;
  --line-strong: #c8ccd9;
  --ink: #12141a;
  --ink-muted: #565d70;
  --ink-faint: #7d8496;

  /* Dark bands. Not dark mode: deliberate art-directed sections. */
  --ink-deep: #0a0c10;
  --ink-deep-raised: #14171f;
  --on-dark: #f4f6fa;
  --on-dark-muted: #a2abbd;
  --on-dark-line: rgba(244, 246, 250, 0.16);

  /* Single accent. Locked for the whole site. */
  --accent: #1a3ee8;
  --accent-hover: #1533b8;
  --accent-tint: #eef1fe;
  --accent-soft: #f4f6ff;
  --accent-contrast: #ffffff;
  --accent-on-dark: #8ba3ff;

  /* Image overlays */
  --scrim-strong: linear-gradient(
    180deg,
    rgba(10, 12, 16, 0.55) 0%,
    rgba(10, 12, 16, 0.78) 55%,
    rgba(10, 12, 16, 0.92) 100%
  );
  --scrim-side: linear-gradient(
    90deg,
    rgba(10, 12, 16, 0.92) 0%,
    rgba(10, 12, 16, 0.72) 45%,
    rgba(10, 12, 16, 0.35) 100%
  );

  /* Shape: two radii only. */
  --radius-sm: 6px;
  --radius-md: 12px;

  /* Elevation: tinted to the background hue, never pure black */
  --shadow-sm: 0 1px 2px rgba(18, 20, 26, 0.05);
  --shadow-md: 0 8px 24px -12px rgba(18, 20, 26, 0.18);
  --shadow-lg: 0 24px 60px -28px rgba(18, 20, 26, 0.32);

  /* Type */
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, sans-serif;
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable Text",
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  /* Rhythm */
  --wrap: 1180px;
  --wrap-narrow: 720px;
  --gutter: 1.25rem;
  --section-y: 5rem;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 768px) {
  :root {
    --gutter: 2rem;
    --section-y: 7rem;
  }
}

/* --------------------------------------------------------------------------
   3. Base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 600;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.15rem, 1.5rem + 2.6vw, 3.4rem);
}

h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.15rem);
}

h3 {
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1rem;
  max-width: 68ch;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-hover);
}

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

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

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 var(--radius-md) 0;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
  color: var(--accent-contrast);
}

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */

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

.wrap.narrow {
  max-width: var(--wrap);
}

.wrap.narrow > * {
  max-width: var(--wrap-narrow);
}

.section {
  padding-block: var(--section-y);
}

.section-alt {
  background: var(--surface-sunken);
  border-block: 1px solid var(--line);
}

.section-tint {
  background: var(--accent-soft);
  border-block: 1px solid var(--accent-tint);
}

.page-head + .section {
  padding-top: 3rem;
}

.lede {
  font-size: 1.12rem;
  color: var(--ink-muted);
  max-width: 58ch;
  line-height: 1.6;
}

.eyebrow {
  margin: 0 0 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-head {
  margin-bottom: 2.5rem;
  max-width: 46ch;
}

.section-head p {
  color: var(--ink-muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   5. Dark band
   -------------------------------------------------------------------------- */

.band-dark {
  position: relative;
  background: var(--ink-deep);
  color: var(--on-dark);
  overflow: hidden;
}

.band-dark h1,
.band-dark h2,
.band-dark h3 {
  color: var(--on-dark);
}

.band-dark .lede,
.band-dark p {
  color: var(--on-dark-muted);
}

.band-dark .eyebrow {
  color: var(--accent-on-dark);
}

.band-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.band-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.band-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--scrim-strong);
}

.band-media.side::after {
  background: var(--scrim-side);
}

.band-inner {
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   6. Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: block;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: var(--radius-sm);
}

.brand-text em {
  font-style: normal;
  color: var(--accent);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.site-nav a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  font-weight: 600;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.7rem;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 15px;
  height: 1.5px;
  background: currentColor;
  content: "";
}

.nav-toggle-bars {
  position: relative;
}

.nav-toggle-bars::before {
  position: absolute;
  top: -5px;
}

.nav-toggle-bars::after {
  position: absolute;
  top: 5px;
}

@media (max-width: 880px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1rem;
  }

  .site-nav li + li {
    border-top: 1px solid var(--line);
  }

  .site-nav a {
    display: block;
    padding: 0.85rem 0;
    font-size: 1rem;
  }
}

/* --------------------------------------------------------------------------
   7. Buttons
   -------------------------------------------------------------------------- */

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 0.8rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
    transform 0.12s var(--ease), color 0.2s var(--ease);
}

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

.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--accent-contrast);
}

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

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

.band-dark .btn-ghost {
  border-color: var(--on-dark-line);
  color: var(--on-dark);
}

.band-dark .btn-ghost:hover {
  border-color: var(--on-dark);
  background: rgba(244, 246, 250, 0.08);
  color: var(--on-dark);
}

.text-link {
  display: inline-block;
  margin-top: 0.6rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.text-link::after {
  content: " \2192";
}

/* --------------------------------------------------------------------------
   8. Breadcrumbs and page heads
   -------------------------------------------------------------------------- */

.breadcrumbs {
  padding-block: 1.1rem 0;
  font-size: 0.84rem;
  color: var(--ink-faint);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.4rem;
  color: var(--line-strong);
}

.breadcrumbs a {
  color: var(--ink-muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Inside a band the breadcrumbs sit above the eyebrow, so they need their own
   separation: the band supplies the top padding, the margin supplies the gap
   before the heading block. Without this the trail collides with the eyebrow. */
.band-dark .breadcrumbs {
  color: var(--on-dark-muted);
  padding-block: 0;
  margin-bottom: 2.25rem;
}

.band-dark .breadcrumbs a {
  color: var(--on-dark-muted);
}

.band-dark .breadcrumbs a:hover {
  color: var(--on-dark);
}

.band-dark .breadcrumbs li + li::before {
  color: var(--on-dark-line);
}

.page-head {
  padding-block: 2.6rem 0.5rem;
}

/* --------------------------------------------------------------------------
   9. Home hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: min(74vh, 680px);
  display: flex;
  align-items: flex-end;
  padding-block: 6rem 4.5rem;
}

.hero-inner {
  width: 100%;
}

.hero-copy {
  max-width: 20ch;
}

.hero h1 {
  font-size: clamp(2.4rem, 1.4rem + 4.2vw, 4.4rem);
  margin-bottom: 1rem;
}

.hero .lede {
  max-width: 46ch;
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.2rem);
}

.hero-copy {
  max-width: none;
}

@media (min-width: 900px) {
  .hero-copy {
    max-width: 60%;
  }
}

/* Stats band that overlaps the hero above it */

.stats-band {
  position: relative;
  z-index: 2;
  margin-top: -3.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

@media (min-width: 760px) {
  .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.stat {
  background: var(--surface);
  padding: 1.6rem 1.5rem;
}

.stat dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.stat dd {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   10. Image cards
   -------------------------------------------------------------------------- */

.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.card-media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--surface-sunken);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.card:hover .card-media img {
  transform: scale(1.04);
}

.card-body {
  padding: 1.35rem 1.4rem 1.5rem;
}

.card-kicker {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 0.5rem;
}

.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.12rem;
}

.card h3 a {
  color: var(--ink);
  text-decoration: none;
}

/* Whole-card click target without nesting interactive elements */
.card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.card:hover h3 a {
  color: var(--accent);
}

.card-winner {
  margin: 0;
  font-weight: 600;
  color: var(--accent);
  font-size: 0.97rem;
}

.card-meta {
  margin: 0.25rem 0 0;
  font-size: 0.86rem;
  color: var(--ink-faint);
}

.card.is-draft {
  border-style: dashed;
}

.tag {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.16rem 0.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tag-draft {
  background: var(--accent-tint);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}

/* --------------------------------------------------------------------------
   11. Row list with thumbnails
   -------------------------------------------------------------------------- */

.row-list {
  border-top: 1px solid var(--line);
}

.row-list li {
  border-bottom: 1px solid var(--line);
}

.row-list a {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 0.3rem 1.25rem;
  align-items: center;
  padding: 1.35rem 0;
  text-decoration: none;
  transition: padding-inline-start 0.25s var(--ease);
}

.row-list a:hover {
  padding-inline-start: 0.6rem;
}

.row-thumb {
  grid-row: span 2;
  width: 76px;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-sunken);
}

.row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.row-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.row-desc {
  color: var(--ink-muted);
  font-size: 0.92rem;
  max-width: 60ch;
}

.row-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-faint);
  white-space: nowrap;
}

@media (min-width: 900px) {
  .row-list a {
    grid-template-columns: 76px minmax(0, 20rem) minmax(0, 1fr) auto;
    align-items: center;
  }

  .row-thumb {
    grid-row: auto;
  }
}

/* --------------------------------------------------------------------------
   12. Step list
   -------------------------------------------------------------------------- */

.step-list {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
}

.step-list li {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 0.5rem 1.25rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}

.step-number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
  padding-top: 0.15rem;
}

.step-list h3 {
  margin-bottom: 0.35rem;
}

.step-list p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.96rem;
}

/* --------------------------------------------------------------------------
   13. State and city grids
   -------------------------------------------------------------------------- */

.place-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.place-card {
  position: relative;
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  aspect-ratio: 4 / 3;
  background: var(--ink-deep);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.place-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.place-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.place-card:hover img {
  transform: scale(1.05);
}

.place-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 12, 16, 0.15) 30%,
    rgba(10, 12, 16, 0.82) 100%
  );
}

.place-body {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 1;
  padding: 1.25rem 1.3rem;
  color: var(--on-dark);
}

.place-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.place-meta {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.85rem;
  color: var(--on-dark-muted);
}

/* --------------------------------------------------------------------------
   14. Award page
   -------------------------------------------------------------------------- */

.award-hero {
  position: relative;
  padding-block: 3rem 4.5rem;
}

.award-hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .award-hero-grid {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4rem;
  }
}

.award-winner-claim {
  margin: 0.5rem 0 0.3rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + 0.9vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--accent-on-dark);
  max-width: 32ch;
}

.award-winner-place {
  margin: 0;
  color: var(--on-dark-muted);
  font-size: 0.96rem;
}

/* Seal plinth: the seal itself is transparent with dark ink strokes, so on a
   dark band it needs a light surface behind it to stay legible. */
.seal-plinth {
  display: grid;
  place-items: center;
  width: 260px;
  height: 260px;
  flex: none;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 40%,
    #ffffff 0%,
    #eef1f7 78%,
    #e4e8f1 100%
  );
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.7);
}

.seal-plinth img {
  width: 210px;
  height: 210px;
}

/* Higgsfield winner badge: replaces the SVG seal + plinth for awards that
   opt into it. Unlike the SVG seal (transparent ink needing a light plinth
   behind it) this art already carries its own dark ring and cream fill, so
   it reads fine directly on the dark band; a drop-shadow (works with the
   image's own alpha edge, unlike a plinth's box-shadow) gives it the same
   lifted presentation the plinth gave the SVG seal. */
.award-badge-hero {
  display: grid;
  place-items: center;
  flex: none;
}

.award-badge-image {
  width: 240px;
  height: 240px;
  display: block;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.55));
}

/* Google's embed markup ships fixed 600x450 (4:3) pixel dimensions, which
   breaks on narrow viewports. Reflow into a responsive 4:3 box instead:
   padding-bottom in percent is relative to the container's WIDTH, so 75%
   (450/600) preserves the same aspect ratio at any screen size. */
.map-embed {
  position: relative;
  width: 100%;
  padding-bottom: 75%;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.detail-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .detail-grid {
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    gap: 4rem;
    align-items: start;
  }
}

.detail-main h2 {
  margin-top: 0;
}

.detail-main h2 + p + h2 {
  margin-top: 2.5rem;
}

.detail-facts {
  padding: 1.5rem 1.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.detail-facts dl {
  margin: 0;
}

.detail-facts dl > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}

.detail-facts dl > div + div {
  border-top: 1px solid var(--line);
}

.detail-facts dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.detail-facts dd {
  margin: 0;
  text-align: right;
  font-size: 0.93rem;
  font-weight: 500;
}

/* Seal / embed */

.seal-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 860px) {
  .seal-grid {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4rem;
  }
}

.embed-label {
  display: block;
  margin-bottom: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.embed-code {
  display: block;
  width: 100%;
  padding: 0.95rem 1.1rem;
  background: var(--ink-deep);
  color: #d7deeb;
  border: 1px solid var(--ink-deep-raised);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.6;
  resize: vertical;
}

.copy-btn {
  margin-top: 0.8rem;
}

.seal-showcase {
  display: grid;
  place-items: center;
  padding: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.seal-showcase img {
  width: 220px;
  height: 220px;
}

.seal-caption {
  margin: 1rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

/* Related */

.related-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 760px) {
  .related-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 3rem;
  }
}

.related-col h3 {
  margin-bottom: 0.85rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line-strong);
}

.link-list li + li {
  border-top: 1px solid var(--line);
}

.link-list a {
  display: block;
  padding: 0.7rem 0;
  font-size: 0.95rem;
  text-decoration: none;
}

.link-list a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   15. Register table
   -------------------------------------------------------------------------- */

.table-scroll {
  overflow-x: auto;
  margin-top: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.register-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.register-table caption {
  padding: 1rem 1.2rem;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-bottom: 1px solid var(--line);
}

.register-table th,
.register-table td {
  padding: 0.95rem 1.2rem;
  text-align: left;
  vertical-align: baseline;
}

.register-table thead th {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-bottom: 1px solid var(--line);
}

.register-table tbody tr {
  transition: background-color 0.15s var(--ease);
}

.register-table tbody tr:hover {
  background: var(--accent-soft);
}

.register-table tbody tr + tr {
  border-top: 1px solid var(--line);
}

.register-table tbody th {
  font-weight: 600;
}

.register-table tbody th a {
  text-decoration: none;
}

.register-table tbody th a:hover {
  text-decoration: underline;
}

.register-table td {
  color: var(--ink-muted);
}

.cell-action {
  text-align: right;
  white-space: nowrap;
}

.register-table tr.is-draft {
  background: var(--surface-sunken);
}

/* --------------------------------------------------------------------------
   16. Chips, notices, prose
   -------------------------------------------------------------------------- */

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.chip-list a,
.chip-list span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.8rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.89rem;
  text-decoration: none;
  color: var(--ink);
}

.chip-list a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.chip-list.muted span {
  color: var(--ink-faint);
  background: transparent;
}

.chip-list .count {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-faint);
}

.notice {
  margin: 1.25rem 0 0;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-md);
  font-size: 0.93rem;
  max-width: none;
}

.notice-draft {
  background: var(--accent-tint);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--ink);
}

.prose h2 {
  margin-top: 2.75rem;
  font-size: 1.35rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--ink-muted);
}

.prose ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

.prose-figure {
  margin: 2.5rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
}

.prose-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--ink-deep);
  color: var(--on-dark-muted);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-block: 4rem 2.5rem;
}

@media (min-width: 780px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
    gap: 3rem;
  }
}

.footer-brand .brand-mark {
  width: 34px;
  height: 34px;
}

.footer-blurb {
  margin: 1rem 0 0;
  font-size: 0.92rem;
  color: var(--on-dark-muted);
  max-width: 34ch;
}

.footer-col h2 {
  margin-bottom: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark);
}

.footer-col a {
  display: block;
  padding: 0.3rem 0;
  font-size: 0.93rem;
  color: var(--on-dark-muted);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.footer-col a:hover {
  color: var(--on-dark);
}

.footer-base {
  padding-block: 1.4rem 2rem;
  border-top: 1px solid var(--on-dark-line);
}

.footer-base p {
  margin: 0;
  max-width: none;
  font-size: 0.83rem;
  color: var(--on-dark-muted);
}

.footer-credit {
  margin-top: 0.4rem !important;
  font-size: 0.78rem !important;
  color: rgba(162, 171, 189, 0.7) !important;
}

.footer-credit a {
  color: inherit;
}

/* --------------------------------------------------------------------------
   18. Motion
   -------------------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--paper);
    backdrop-filter: none;
  }
}

/* --------------------------------------------------------------------------
   19. Print
   -------------------------------------------------------------------------- */

@media print {
  .site-header,
  .site-footer,
  .breadcrumbs,
  .cta-row,
  .copy-btn,
  .related-grid,
  .band-media {
    display: none;
  }

  .band-dark {
    background: #fff;
    color: #000;
  }

  body {
    background: #fff;
    color: #000;
  }
}
