/* ==========================================================================
   Hyperbaric Service Pros — design tokens, base, components
   ========================================================================== */

:root,
[data-theme='light'] {
  /* Surfaces */
  --color-bg: #f4f8fb;
  --color-surface: #ffffff;
  --color-surface-2: #ffffff;
  --color-surface-offset: #e8f2f9;
  --color-surface-offset-2: #dcecf6;
  --color-surface-dynamic: #d3e6f3;
  --color-divider: #cfe1ee;
  --color-border: #bed6e6;

  /* Text */
  --color-text: #0a3550;
  --color-text-muted: #45647c;
  --color-text-faint: #4e6c83;
  --color-text-inverse: #f2f8fc;

  /* Brand blue — the logo's swoosh */
  --color-accent: #1c8fc9;
  --color-accent-link: #0f6c9e;
  --color-accent-hover: #0f6c9e;
  --color-accent-quiet: #e2f1fa;

  /* Brand green — the logo's cross */
  --color-green: #5aa832;
  --color-green-deep: #468420;
  --color-green-quiet: #ecf6e3;

  /* Brand teal — the gradient bar */
  --color-teal: #06b2b9;

  /* Deep navy support (headers, footer) */
  --color-steel: #0b3a58;
  --color-steel-2: #072b42;
  --color-steel-line: #1c5c82;

  --color-error: #b3261e;
  --color-success: #468420;

  --radius-sm: 6px;
  --radius-md: 12px;

  --shadow-sm: 0 1px 2px rgba(10, 53, 80, 0.08);
  --shadow-md: 0 2px 4px rgba(10, 53, 80, 0.07), 0 12px 28px rgba(10, 53, 80, 0.09);

  --hairline: 1px solid var(--color-border);
}

[data-theme='dark'] {
  --color-bg: #061e2e;
  --color-surface: #0a2b40;
  --color-surface-2: #0d3349;
  --color-surface-offset: #0d3349;
  --color-surface-offset-2: #10394f;
  --color-surface-dynamic: #134159;
  --color-divider: #164560;
  --color-border: #1b5273;

  --color-text: #e4f1f8;
  --color-text-muted: #9dc0d4;
  --color-text-faint: #8bb2c9;
  --color-text-inverse: #061e2e;

  --color-accent: #4fbdf0;
  --color-accent-link: #6ecbf5;
  --color-accent-hover: #6ecbf5;
  --color-accent-quiet: #0d3349;

  --color-green: #7cc94c;
  --color-green-deep: #6bbb3c;
  --color-green-quiet: #103a1c;

  --color-teal: #2ad3d9;

  --color-steel: #051925;
  --color-steel-2: #03121b;
  --color-steel-line: #1b5273;

  --color-error: #f2776d;
  --color-success: #7cc94c;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.4), 0 10px 24px rgba(0, 0, 0, 0.35);
}

:root {
  /* Type */
  --font-display: 'Nunito', 'Trebuchet MS', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Source Sans 3', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Source Sans 3', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

  --brand-gradient: linear-gradient(90deg, #06b2b9 0%, #1c8fc9 50%, #34af57 100%);

  --text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.85rem + 0.15vw, 0.9375rem);
  --text-base: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.25rem + 1vw, 2.125rem);
  --text-2xl: clamp(2rem, 1.4rem + 2.2vw, 3.25rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --content-narrow: 660px;
  --content-default: 1000px;
  --content-wide: 1220px;

  --transition-interactive: 160ms cubic-bezier(0.2, 0, 0.2, 1);
}

/* ---------- base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

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

/* Photos get a placeholder tint while they load; logos and other transparent
   art must stay on the surface behind them. */
img:not(.brand-logo) {
  background: var(--color-surface-offset);
}

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

button {
  cursor: pointer;
  background: none;
  border: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  font-size: var(--text-2xl);
}
h2 {
  font-size: var(--text-xl);
}
h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
}
h4 {
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: 0;
}

p,
li {
  text-wrap: pretty;
}

a {
  color: inherit;
}

table {
  border-collapse: collapse;
  width: 100%;
}

a,
button,
input,
textarea,
select,
summary {
  transition:
    color var(--transition-interactive),
    background var(--transition-interactive),
    border-color var(--transition-interactive),
    box-shadow var(--transition-interactive);
}

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

::selection {
  background: var(--color-accent);
  color: #fff;
}

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

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

/* ---------- layout primitives ---------- */
.wrap {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

@media (min-width: 768px) {
  .wrap {
    padding-inline: var(--space-8);
  }
}

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

.section {
  padding-block: clamp(var(--space-12), 7vw, var(--space-24));
}
.section--tight {
  padding-block: clamp(var(--space-10), 5vw, var(--space-16));
}
.section--rule {
  border-top: var(--hairline);
}
.section--offset {
  background: var(--color-surface-offset);
}
.section--steel {
  background: var(--color-steel);
  color: var(--color-text-inverse);
}

.prose {
  max-width: 68ch;
}
.prose p + p {
  margin-top: var(--space-4);
}
.prose p {
  color: var(--color-text-muted);
}

.eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-link);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--brand-gradient);
  flex: none;
}
.eyebrow--plain::before {
  display: none;
}
.section--steel .eyebrow {
  color: #8fd3f4;
}

.lede {
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--color-text-muted);
  max-width: 60ch;
}
.section--steel .lede {
  color: #cfe3ef;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ---------- header ---------- */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 200;
  background: var(--color-accent);
  color: #fff;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  border-radius: var(--radius-sm);
}
.skip-link:focus {
  top: var(--space-2);
}

.brand-bar {
  height: 6px;
  background: var(--brand-gradient);
}

.topbar {
  background: var(--color-steel-2);
  color: #cfe3ef;
  font-size: var(--text-xs);
  letter-spacing: 0.03em;
}
.topbar .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-2);
}
.topbar a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 700;
}
.topbar a:hover {
  color: #fff;
}
.topbar-meta {
  display: flex;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: var(--hairline);
}
.header .wrap {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
  margin-right: auto;
}
.brand svg {
  color: var(--color-text);
  flex: none;
}
.brand-logo {
  flex: none;
  height: 52px;
  width: auto;
  display: block;
}
.footer .brand-logo {
  height: 62px;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--color-accent-link);
}
.footer .brand-name {
  color: #ffffff;
}
.brand-sub {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  display: block;
}

.nav {
  display: none;
}
.nav ul {
  display: flex;
  gap: var(--space-5);
  list-style: none;
  align-items: center;
}
.nav a {
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  padding-block: var(--space-2);
  border-bottom: 3px solid transparent;
}
.nav a:hover {
  color: var(--color-accent-link);
}
.nav a[aria-current='page'] {
  color: var(--color-accent-link);
  border-bottom-color: var(--color-green);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: auto;
}

.icon-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: var(--hairline);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  background: var(--color-surface);
}
.icon-btn:hover {
  color: var(--color-text);
  border-color: var(--color-text-muted);
}

.nav-toggle {
  display: grid;
}

/* Compact phone action replaces the text CTA on narrow screens */
.header-cta {
  display: none;
}
.phone-btn {
  display: grid;
}
@media (min-width: 620px) {
  .header-cta {
    display: inline-flex;
  }
  .phone-btn {
    display: none;
  }
}

.brand-text {
  min-width: 0;
}
.brand-short {
  display: none;
}
.footer .brand-short {
  display: none !important;
}

@media (max-width: 619px) {
  .header .header-cta {
    display: none;
  }
  .header .brand-full {
    display: none;
  }
  .header .brand-short {
    display: inline;
  }
  .header .brand-name {
    font-size: 0.9375rem;
    letter-spacing: -0.01em;
    white-space: normal;
    display: block;
  }
  .brand-logo {
    height: 42px;
  }
  .header .brand-sub {
    font-size: 0.5625rem;
    letter-spacing: 0.07em;
    white-space: nowrap;
  }
  .header .brand {
    gap: var(--space-2);
    min-width: 0;
  }
  .header .wrap {
    padding-inline: var(--space-4);
    gap: var(--space-2);
  }
  .header-actions {
    gap: var(--space-1);
  }
  .icon-btn {
    width: 42px;
    height: 42px;
  }
}

@media (min-width: 1024px) {
  .nav {
    display: block;
  }
  .nav-toggle {
    display: none;
  }
  .header-actions {
    margin-left: 0;
  }
  .brand {
    margin-right: var(--space-8);
  }
}

.mobile-nav {
  display: none;
  border-bottom: var(--hairline);
  background: var(--color-surface);
}
.mobile-nav[data-open='true'] {
  display: block;
}
.mobile-nav ul {
  list-style: none;
}
.mobile-nav li + li {
  border-top: var(--hairline);
}
.mobile-nav a {
  display: block;
  padding: var(--space-4) var(--space-5);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
}
.mobile-nav a[aria-current='page'] {
  color: var(--color-accent-link);
  font-weight: 800;
}
@media (min-width: 1024px) {
  .mobile-nav {
    display: none !important;
  }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: var(--space-3) var(--space-6);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  text-align: center;
}
.btn--primary {
  background: var(--color-green);
  color: #fff;
  box-shadow: 0 2px 0 var(--color-green-deep);
}
.btn--primary:hover {
  background: var(--color-green-deep);
}
[data-theme='dark'] .btn--primary {
  color: #062610;
}
.btn--blue {
  background: var(--color-accent-link);
  color: #fff;
}
.btn--blue:hover {
  background: #0b5680;
}
[data-theme='dark'] .btn--blue {
  background: var(--color-accent);
  color: #052335;
}
.btn--outline {
  border-color: var(--color-accent);
  color: var(--color-accent-link);
  background: var(--color-surface);
  font-weight: 700;
}
.btn--outline:hover {
  background: var(--color-accent-quiet);
  border-color: var(--color-accent-link);
}
.btn--ghost-light {
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
}
.btn--ghost-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.btn--mono {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* ---------- hero ---------- */
.hero {
  border-bottom: var(--hairline);
  background:
    radial-gradient(120% 90% at 85% 0%, var(--color-accent-quiet) 0%, transparent 60%),
    var(--color-surface);
}
.hero-grid {
  display: grid;
  gap: var(--space-8);
  padding-block: clamp(var(--space-10), 6vw, var(--space-20));
}
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: var(--space-16);
    align-items: center;
  }
}
.hero h1 {
  margin-top: var(--space-5);
}
.hero .lede {
  margin-top: var(--space-5);
}
.hero .btn-row {
  margin-top: var(--space-8);
}
.hero-figure {
  position: relative;
}
.hero-figure img {
  border-radius: var(--radius-md);
  border: var(--hairline);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
.hero-figure figcaption {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-3);
  letter-spacing: 0.04em;
}

.hero-facts {
  margin-top: var(--space-8);
  border-top: var(--hairline);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 640px) {
  .hero-facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.hero-facts div {
  padding: var(--space-4) var(--space-4) var(--space-4) 0;
  border-right: var(--hairline);
}
.hero-facts div:last-child {
  border-right: 0;
}
.hero-facts dt {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
}
.hero-facts dd {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  margin-top: var(--space-1);
  font-variant-numeric: tabular-nums;
}

/* ---------- section heads ---------- */
.section-head {
  display: grid;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}
@media (min-width: 900px) {
  .section-head--split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-12);
    align-items: end;
  }
}
.section-head h2 {
  margin-top: var(--space-2);
}

/* ---------- service list ---------- */
.svc-list {
  list-style: none;
  border-top: var(--hairline);
}
.svc-item {
  border-bottom: var(--hairline);
}
.svc-item a,
.svc-body {
  display: grid;
  gap: var(--space-2) var(--space-6);
  padding-block: var(--space-6);
  text-decoration: none;
  color: inherit;
}
@media (min-width: 800px) {
  .svc-item a,
  .svc-body {
    grid-template-columns: 3.5rem minmax(0, 15rem) minmax(0, 1fr) auto;
    align-items: baseline;
  }
}
.svc-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-sm);
  color: var(--color-green);
  letter-spacing: 0.06em;
}
.svc-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-lg);
  letter-spacing: -0.01em;
}
.svc-desc {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  max-width: 60ch;
}
.svc-item a:hover {
  background: var(--color-surface-offset);
}
.svc-arrow {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-text-faint);
}
.svc-item a:hover .svc-arrow {
  color: var(--color-accent);
}

/* ---------- cards / grids ---------- */
.grid {
  display: grid;
  gap: var(--space-6);
}
.grid--2 {
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 760px) {
  .grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}

.card {
  background: var(--color-surface);
  border: var(--hairline);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}
.card h3 {
  margin-bottom: var(--space-3);
}
.card p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.card__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  display: block;
  margin-bottom: var(--space-3);
}

/* ---------- spec table ---------- */
.spec {
  border: var(--hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface);
}
.spec caption {
  text-align: left;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: var(--space-4) var(--space-5);
  border-bottom: var(--hairline);
  background: var(--color-surface-offset);
}
.spec th,
.spec td {
  text-align: left;
  padding: var(--space-4) var(--space-5);
  border-bottom: var(--hairline);
  vertical-align: top;
  font-size: var(--text-sm);
}
.spec tbody tr:last-child th,
.spec tbody tr:last-child td {
  border-bottom: 0;
}
.spec th {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
  width: 40%;
}
.spec td {
  color: var(--color-text);
}
@media (max-width: 599px) {
  .spec th,
  .spec td {
    display: block;
    width: 100%;
  }
  .spec th {
    border-bottom: 0;
    padding-bottom: 0;
  }
}

/* ---------- numbered process ---------- */
.steps {
  list-style: none;
  counter-reset: step;
  border-top: var(--hairline);
}
.steps li {
  counter-increment: step;
  border-bottom: var(--hairline);
  padding-block: var(--space-6);
  display: grid;
  gap: var(--space-2) var(--space-6);
}
@media (min-width: 800px) {
  .steps li {
    grid-template-columns: 4rem minmax(0, 16rem) minmax(0, 1fr);
    align-items: baseline;
  }
}
.steps li::before {
  content: '0' counter(step);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-base);
  letter-spacing: 0.02em;
  color: var(--color-green);
}
.steps h3 {
  font-size: var(--text-base);
  font-weight: 600;
}
.steps p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* ---------- checklist ---------- */
.checklist {
  list-style: none;
  display: grid;
  gap: var(--space-3);
}
.checklist li {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  align-items: start;
}
.checklist li::before {
  content: '';
  width: 16px;
  height: 16px;
  margin-top: 0.28em;
  flex: none;
  border-radius: 4px;
  background: var(--color-green-quiet);
  border: 1px solid var(--color-green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.4l2.8 2.8 6-6.4' fill='none' stroke='%235aa832' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.checklist--filled li::before {
  background-color: var(--color-green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.4l2.8 2.8 6-6.4' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.checklist strong {
  color: var(--color-text);
  font-weight: 600;
}

/* ---------- split feature ---------- */
.split {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-16);
  }
  .split--reverse > *:first-child {
    order: 2;
  }
}
.split img {
  border: var(--hairline);
  border-radius: var(--radius-md);
  width: 100%;
  object-fit: cover;
}

.figure-caption {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-3);
  letter-spacing: 0.04em;
}

/* ---------- credential strip ---------- */
.creds {
  list-style: none;
  display: grid;
  gap: 0;
  border: var(--hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface);
}
@media (min-width: 700px) {
  .creds {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.creds li {
  padding: var(--space-5);
  border-bottom: var(--hairline);
}
.creds li:last-child {
  border-bottom: 0;
}
@media (min-width: 700px) {
  .creds li {
    border-bottom: 0;
    border-right: var(--hairline);
  }
  .creds li:last-child {
    border-right: 0;
  }
}
.creds .code {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--color-accent-link);
  display: block;
}
.creds .desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
  display: block;
  line-height: 1.5;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--color-steel);
  color: var(--color-text-inverse);
  border-top: 6px solid transparent;
  border-image: var(--brand-gradient) 1;
}
.cta-band .wrap {
  display: grid;
  gap: var(--space-6);
  padding-block: clamp(var(--space-10), 5vw, var(--space-16));
}
@media (min-width: 900px) {
  .cta-band .wrap {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--space-12);
  }
}
.cta-band h2 {
  color: #fff;
}
.cta-band p {
  color: #cfe3ef;
  margin-top: var(--space-3);
  max-width: 52ch;
  font-size: var(--text-sm);
}

/* ---------- forms ---------- */
.form-shell {
  display: grid;
  gap: var(--space-10);
}
@media (min-width: 1000px) {
  .form-shell {
    grid-template-columns: minmax(0, 1fr) 20rem;
    gap: var(--space-16);
    align-items: start;
  }
}

.fieldset {
  border: 0;
  border-top: var(--hairline);
  padding-top: var(--space-6);
  margin-top: var(--space-8);
}
.fieldset:first-of-type {
  margin-top: 0;
}
.fieldset > legend {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding-right: var(--space-3);
}
.field-grid {
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 640px) {
  .field-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .field-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.field {
  display: grid;
  gap: var(--space-2);
}
.field--wide {
  grid-column: 1 / -1;
}
.field label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.field .req {
  color: var(--color-accent);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  min-height: 46px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
}
.field textarea {
  min-height: 8rem;
  resize: vertical;
  line-height: 1.6;
}
.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--color-text-faint);
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  border-color: var(--color-accent);
  outline-offset: 0;
}
.field .hint {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.field-error {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-error);
  display: none;
  letter-spacing: 0.02em;
}
.field[data-invalid='true'] .field-error {
  display: block;
}
.field[data-invalid='true'] input,
.field[data-invalid='true'] select,
.field[data-invalid='true'] textarea {
  border-color: var(--color-error);
  background: var(--color-accent-quiet);
}

.form-footer {
  margin-top: var(--space-8);
  border-top: var(--hairline);
  padding-top: var(--space-6);
  display: grid;
  gap: var(--space-4);
}
.form-note {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.form-alert {
  display: none;
  border: 1px solid var(--color-error);
  border-left-width: 1px;
  background: var(--color-accent-quiet);
  color: var(--color-error);
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
}
.form-alert[data-visible='true'] {
  display: block;
}

.aside-card {
  border: var(--hairline);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  padding: var(--space-6);
}
.aside-card + .aside-card {
  margin-top: var(--space-6);
}
.aside-card h2,
.aside-card h3 {
  font-size: var(--text-base);
  margin-bottom: var(--space-4);
}
.contact-lines {
  list-style: none;
  display: grid;
  gap: var(--space-4);
}
.contact-lines dt,
.contact-lines .label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.contact-lines dd,
.contact-lines .value {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  margin-top: var(--space-1);
}
.contact-lines a {
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
}
.contact-lines a:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

/* ---------- FAQ ---------- */
.faq {
  border-top: var(--hairline);
}
.faq details {
  border-bottom: var(--hairline);
}
.faq summary {
  cursor: pointer;
  padding-block: var(--space-5);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-base);
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  font-family: var(--font-mono);
  color: var(--color-accent);
  flex: none;
}
.faq details[open] summary::after {
  content: '–';
}
.faq details p {
  padding-bottom: var(--space-5);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  max-width: 70ch;
}

/* ---------- pending / placeholder block ---------- */
.pending {
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  background: var(--color-surface-offset);
}
.pending .label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}
.pending p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
}

/* ---------- coverage map-ish grid ---------- */
.regions {
  border: var(--hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface);
  display: grid;
}
@media (min-width: 980px) {
  .regions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.region {
  padding: var(--space-5);
  border-bottom: var(--hairline);
}
@media (min-width: 980px) {
  .region {
    border-bottom: 0;
  }
  .region + .region {
    border-left: var(--hairline);
  }
}
.region:last-child {
  border-bottom: 0;
}
.region .code {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--color-green-deep);
}
[data-theme='dark'] .region .code {
  color: var(--color-green);
}
.region h3 {
  font-size: var(--text-base);
  margin-top: var(--space-2);
}
.region p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}

/* ---------- footer ---------- */
.footer {
  background: var(--color-steel-2);
  color: #cfe3ef;
  border-top: 6px solid transparent;
  border-image: var(--brand-gradient) 1;
}
.footer a {
  color: #ffffff;
  text-decoration: none;
}
.footer a:hover {
  color: #fff;
}
.footer-grid {
  display: grid;
  gap: var(--space-10);
  padding-block: clamp(var(--space-12), 6vw, var(--space-20));
}
@media (min-width: 620px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-10) var(--space-10);
  }
}
@media (min-width: 1000px) {
  .footer-grid {
    grid-template-columns: 1.35fr 0.9fr 1fr 1.2fr;
    gap: var(--space-10);
  }
}
.footer h2,
.footer h3 {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8fd3f4;
  margin-bottom: var(--space-4);
}
.footer ul {
  list-style: none;
  display: grid;
  gap: var(--space-3);
  font-size: var(--text-sm);
}
.footer .brand-block p {
  font-size: var(--text-sm);
  color: #bcd8e8;
  max-width: 40ch;
  margin-top: var(--space-4);
}
.footer .brand-name {
  color: #fff;
}
.footer .brand-sub {
  color: #bcd8e8;
}
.footer-mono {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}
.footer-bottom {
  border-top: 1px solid var(--color-steel-line);
}
.footer-bottom .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  justify-content: space-between;
  padding-block: var(--space-5);
  font-size: var(--text-xs);
  color: #bcd8e8;
  letter-spacing: 0.04em;
}

/* ---------- page header (interior) ---------- */
.page-head {
  border-bottom: var(--hairline);
  background: var(--color-surface);
}
.page-head .wrap {
  padding-block: clamp(var(--space-10), 5vw, var(--space-16));
}
.page-head h1 {
  margin-top: var(--space-4);
  max-width: 24ch;
}
.page-head .lede {
  margin-top: var(--space-5);
}
.breadcrumb {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  color: var(--color-text-faint);
}
.breadcrumb a {
  text-decoration: none;
  color: var(--color-text-muted);
}
.breadcrumb a:hover {
  color: var(--color-accent);
}

/* ---------- misc ---------- */
.anchor-nav {
  border-top: var(--hairline);
  border-bottom: var(--hairline);
  background: var(--color-surface-offset);
  position: relative;
  z-index: 5;
}
.anchor-nav ul {
  list-style: none;
  display: flex;
  gap: var(--space-5);
  overflow-x: auto;
  padding-block: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  scrollbar-width: thin;
}
.anchor-nav a {
  text-decoration: none;
  color: var(--color-text-muted);
  white-space: nowrap;
  padding-block: var(--space-1);
}
.anchor-nav a:hover {
  color: var(--color-accent);
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 500ms cubic-bezier(0.2, 0, 0.2, 1),
    transform 500ms cubic-bezier(0.2, 0, 0.2, 1);
}
.reveal[data-visible='true'] {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

.callout {
  border: var(--hairline);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  padding: var(--space-6);
  display: grid;
  gap: var(--space-3);
}
.callout {
  border-left: 4px solid var(--color-teal);
}
.callout .label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.callout p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.full-bleed {
  border-block: var(--hairline);
}
.full-bleed img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
}

.error-page {
  display: grid;
  place-items: start;
  padding-block: clamp(var(--space-16), 12vw, var(--space-32));
}
.error-code {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  letter-spacing: 0.2em;
  color: var(--color-accent);
}

/* Long email strings in narrow aside cards */
.aside-card a[href^='mailto'] {
  font-size: 0.8125rem;
  overflow-wrap: anywhere;
}

/* Hours table inside narrow aside cards */
.aside-card .spec th,
.aside-card .spec td {
  white-space: nowrap;
  padding-inline: 0;
}
.aside-card .spec td {
  text-align: right;
}

/* Dark mode: keep filled red surfaces dark enough for white label text (WCAG AA) */
[data-theme='dark'] .btn--primary,
[data-theme='dark'] .skip-link {
  background: var(--color-green);
  border-color: var(--color-green);
  color: #062610;
  box-shadow: 0 2px 0 var(--color-green-deep);
}
[data-theme='dark'] .btn--primary:hover,
[data-theme='dark'] .btn--primary:focus-visible {
  background: #93d968;
  border-color: #93d968;
}

/* ---------- brand gradient rule ---------- */
.grad-rule {
  height: 4px;
  border-radius: 2px;
  background: var(--brand-gradient);
  border: 0;
  margin: 0;
}

/* ---------- Google review strip ---------- */
.reviews {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}
.review {
  background: var(--color-surface);
  border: var(--hairline);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  border-top: 4px solid var(--color-green);
}
.review .stars {
  color: #f2a53c;
  font-size: var(--text-base);
  letter-spacing: 0.12em;
}
.review blockquote {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}
.review cite {
  display: block;
  margin-top: var(--space-4);
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  border: var(--hairline);
  border-radius: 999px;
  background: var(--color-surface);
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
  font-weight: 700;
}
.rating-badge .score {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--color-accent-link);
}
.rating-badge .stars {
  color: #f2a53c;
  letter-spacing: 0.08em;
}

/* ---------- chamber type comparison ---------- */
.chamber-cards {
  display: grid;
  gap: var(--space-6);
}
@media (min-width: 760px) {
  .chamber-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.chamber-card {
  background: var(--color-surface);
  border: var(--hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.chamber-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}
.chamber-card .body {
  padding: var(--space-6);
}
.chamber-card .tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--color-accent-link);
  border-radius: 999px;
  padding: 3px 10px;
}
.chamber-card .tag--green {
  background: var(--color-green-deep);
}
.chamber-card h3 {
  margin-top: var(--space-3);
}
.chamber-card p {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.chamber-card dl {
  margin-top: var(--space-4);
  display: grid;
  gap: var(--space-2);
  font-size: var(--text-sm);
}
.chamber-card dl div {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  border-top: var(--hairline);
  padding-top: var(--space-2);
}
.chamber-card dt {
  color: var(--color-text-muted);
}
.chamber-card dd {
  font-weight: 700;
  text-align: right;
}

/* ---------- service menu ---------- */
.menu-list {
  list-style: none;
  border-top: var(--hairline);
}
.menu-list li {
  border-bottom: var(--hairline);
  padding-block: var(--space-5);
  display: grid;
  gap: var(--space-2) var(--space-6);
}
@media (min-width: 700px) {
  .menu-list li {
    grid-template-columns: minmax(0, 1fr) 9rem;
    align-items: baseline;
  }
}
.menu-list .name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
}
.menu-list .note {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}
.menu-list .dur {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-accent-link);
}
@media (min-width: 700px) {
  .menu-list .dur {
    text-align: right;
  }
}

/* ---------- article / resources ---------- */
.article-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}
.article-card {
  background: var(--color-surface);
  border: var(--hairline);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.article-card .kicker {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-green-deep);
}
[data-theme='dark'] .article-card .kicker {
  color: var(--color-green);
}
.article-card h3 a {
  text-decoration: none;
}
.article-card h3 a:hover {
  color: var(--color-accent-link);
}
.article-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.article-card .more {
  margin-top: auto;
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-accent-link);
  text-decoration: none;
}

.article {
  max-width: 68ch;
}
.article > * + * {
  margin-top: var(--space-5);
}
.article h2 {
  font-size: var(--text-lg);
  margin-top: var(--space-10);
}
.article h3 {
  font-size: var(--text-base);
  margin-top: var(--space-8);
}
.article p,
.article li {
  color: var(--color-text-muted);
  line-height: 1.7;
}
.article ul,
.article ol {
  padding-left: var(--space-6);
  display: grid;
  gap: var(--space-2);
}
.article strong {
  color: var(--color-text);
}
.article-meta {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
}

.footer-rating {
  margin-top: var(--space-5);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  color: #cfe3ef;
}
.footer-rating .stars {
  color: #f2a53c;
  letter-spacing: 0.1em;
}

/* Header density fixes: keep nav and CTA on one line at every width. */
.nav ul a {
  white-space: nowrap;
}
.header .brand-sub {
  white-space: nowrap;
}
.header .header-cta.btn {
  white-space: nowrap;
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .nav ul {
    gap: var(--space-4);
  }
  .nav ul a {
    font-size: 0.8125rem;
  }
  .header .header-cta.btn {
    font-size: 0.8125rem;
    padding-inline: var(--space-5);
  }
}

/* Header wears the mark only; the footer carries the full stacked lockup. */
.header .brand-logo {
  height: 46px;
}
.footer .brand-logo--full {
  height: 96px;
}
@media (max-width: 619px) {
  .header .brand-logo {
    height: 40px;
  }
  .footer .brand-logo--full {
    height: 78px;
  }
}

/* The brand mark's cross and outlines are knocked out to transparency, so it needs
   a light chip behind it on dark surfaces to stay legible and on-brand. */
[data-theme='dark'] .brand-logo {
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 3px;
}

/* ==========================================================================
   Technical reference section (Phase 2)
   ========================================================================== */

/* Multi-column spec tables keep their columns on small screens, inside a
   horizontally scrollable rail, so the header row stays meaningful. */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table-scroll:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
@media (max-width: 780px) {
  .table-scroll {
    position: relative;
    background:
      linear-gradient(to left, var(--color-bg), rgba(0, 0, 0, 0)) right center / 28px 100% no-repeat;
  }
  .table-scroll::before {
    content: "Scroll sideways to see all columns";
    position: sticky;
    left: 0;
    display: block;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: var(--space-2);
  }
}
.spec--grid th,
.spec--grid td {
  font-size: var(--text-sm);
}
.spec--grid thead th {
  background: var(--color-surface-offset);
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  width: auto;
  white-space: nowrap;
}
.spec--grid tbody th {
  width: auto;
  color: var(--color-text);
}
@media (max-width: 599px) {
  .spec--grid {
    min-width: 34rem;
  }
  .spec--grid th,
  .spec--grid td {
    display: table-cell;
    width: auto;
  }
  .spec--grid th {
    border-bottom: var(--hairline);
    padding-bottom: var(--space-4);
  }
}

/* Provenance tags: codified vs. deferred vs. voluntary vs. manufacturer */
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 6px;
  border: var(--hairline);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  background: var(--color-surface-offset);
  white-space: nowrap;
}
.tag--code {
  color: var(--color-accent-link);
  border-color: var(--color-accent);
  background: transparent;
}
[data-theme='dark'] .tag--code {
  color: var(--color-accent);
}
.tag--defer,
.tag--voluntary,
.tag--mfr,
.tag--mil {
  color: var(--color-text);
}

/* Source list at the foot of every reference page */
.sources {
  list-style: none;
  display: grid;
  gap: 0;
  border: var(--hairline);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  margin-top: var(--space-8);
}
.sources li {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-4) var(--space-5);
  border-bottom: var(--hairline);
}
.sources li:last-child {
  border-bottom: 0;
}
.src-name {
  font-size: var(--text-sm);
  color: var(--color-text);
}
.src-url {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-accent-link);
  overflow-wrap: anywhere;
}

/* Reference index cards */
.ref-list {
  list-style: none;
  display: grid;
  gap: var(--space-5);
  margin-top: var(--space-8);
}
@media (min-width: 760px) {
  .ref-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.ref-list a {
  display: grid;
  gap: var(--space-2);
  height: 100%;
  padding: var(--space-6);
  border: var(--hairline);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  text-decoration: none;
  color: var(--color-text);
}
.ref-list a:hover {
  border-color: var(--color-accent);
}
.ref-list .ref-num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  color: var(--color-accent);
}
.ref-list h3 {
  font-size: var(--text-base);
}
.ref-list p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Muted callout used for the site-wide scope disclaimer */
.callout--muted {
  background: var(--color-surface-offset);
}
.callout--muted .label {
  color: var(--color-text-muted);
}

/* Prose lists inside reference bodies */
.prose ul,
.prose ol {
  margin-top: var(--space-3);
  padding-left: var(--space-5);
  display: grid;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.prose li strong {
  color: var(--color-text);
}
.prose a {
  color: var(--color-accent-link);
}

/* Footer scope note */
.footer-note {
  border-top: 1px solid var(--color-steel-line);
}
.footer-note p {
  padding-block: var(--space-5);
  font-size: var(--text-xs);
  line-height: 1.6;
  color: #a6b6be;
  max-width: 100ch;
}

/* Inline monospace spec value inside prose */
.code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  letter-spacing: 0.01em;
  color: var(--color-text);
  white-space: nowrap;
}

/* Narrow-viewport density for reference tables (must follow .spec--grid rules) */
@media (max-width: 780px) {
  .spec--grid th,
  .spec--grid td {
    font-size: var(--text-xs);
    padding: var(--space-3);
  }
}

/* Reference cards on the resources page: whole card is the link target. */
.card--link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.card--link h3 {
  color: var(--color-accent-link);
}
.card--link:hover,
.card--link:focus-visible {
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(11, 58, 88, 0.08);
}

@media (min-width: 900px) {
  .grid--3-fixed {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Dark mode inverts the pill fills to light blue/green, so the label text has
   to flip to deep navy to stay readable (white on #6ecbf5 is only 1.8:1). */
[data-theme='dark'] .chamber-card .tag {
  color: #062033;
}

/* ---------- WCAG AA contrast corrections ---------- */
/* White on --color-green (#5aa832) is only 2.97:1. The primary CTA now uses a
   deeper shade of the same brand green: 5.25:1 with white text. */
:root {
  --color-green-cta: #3d7a1c;
  --color-green-cta-hover: #356b18;
  --color-green-cta-shadow: #2f6314;
}
.btn--primary {
  background: var(--color-green-cta);
  box-shadow: 0 2px 0 var(--color-green-cta-shadow);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--color-green-cta-hover);
}
/* --color-accent (#1c8fc9) is 3.61:1 on white - fine for large text and borders,
   short of AA for the small labels below, which move to --color-accent-link. */
.callout .label,
.field .req,
.error-code,
.ref-list .ref-num {
  color: var(--color-accent-link);
}
.svc-num {
  color: #356b18;
}
/* Review stars carry the rating for screen readers, so they must meet AA. */
.review .stars,
.rating-badge .stars {
  color: #a5670a;
}
.skip-link {
  background: var(--color-steel);
}
[data-theme='dark'] .skip-link {
  background: #e4f1f8;
  color: #061e2e;
}
/* Dark mode keeps the brighter green fill with deep-navy text (already 5.5:1),
   so the CTA override above must not leak into it. */
[data-theme='dark'] .btn--primary {
  background: var(--color-green);
  box-shadow: 0 2px 0 var(--color-green-deep);
}
[data-theme='dark'] .btn--primary:hover,
[data-theme='dark'] .btn--primary:focus-visible {
  background: #93d968;
}
/* Dark mode needs the light-on-dark versions of the two colours darkened above. */
[data-theme='dark'] .svc-num {
  color: var(--color-green);
}
[data-theme='dark'] .review .stars,
[data-theme='dark'] .rating-badge .stars {
  color: #f2a53c;
}
/* Reviewer name and the source/date line were running together on one line. */
.review cite span {
  display: block;
  margin-top: 2px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
/* Quote bodies were rendering in link blue, which reads as clickable text. */
.review blockquote {
  color: var(--color-text);
}

/* ---------- by the numbers (figure grid) ---------- */
.figures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: var(--hairline);
  border-left: var(--hairline);
  margin: 0;
}
@media (min-width: 700px) {
  .figures {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.figures > div {
  display: flex;
  flex-direction: column;
  padding: var(--space-5);
  border-right: var(--hairline);
  border-bottom: var(--hairline);
  min-width: 0;
}
.figures dt {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.5;
  color: var(--color-text-muted);
  overflow-wrap: break-word;
}
.figures dd {
  margin: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: var(--space-4);
}
.figures .figure-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.figures .figure-sub {
  display: block;
  margin-top: auto;
  padding-top: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
  color: var(--color-text-muted);
  overflow-wrap: break-word;
}
@media (max-width: 699px) {
  /* nine figures across two columns leaves one orphan - let it span the row */
  .figures > div:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  /* reserve two label lines so values align across each row */
  .figures dt {
    min-height: 3em;
  }
}
.source-note {
  margin-top: var(--space-5);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: 1.75;
  color: var(--color-text-muted);
  max-width: 78ch;
}
.source-note a {
  color: var(--color-accent-link);
}
