/* Epochal Image API Docs — black / metallic blue / gold, load-optimized */
:root {
  --bg: #0a0b0f;
  --bg-elevated: #12141c;
  --bg-card: #161922;
  --bg-code: #0d0f14;
  --border: #243040;
  --border-blue: #3d7ea6;
  --blue: #3d7ea6;
  --blue-bright: #5eb0e0;
  --blue-glow: rgba(94, 176, 224, 0.22);
  --gold: #d4af37;
  --gold-soft: #f0d78c;
  --text: #e8eaef;
  --muted: #9aa3b5;
  --danger: #e07070;
  --ok: #6bcf8e;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  --font: system-ui, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "Cascadia Code", "Segoe UI Mono", Consolas, monospace;
  --max: 1120px;
  --header-h: 64px;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(61, 126, 166, 0.18), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(212, 175, 55, 0.08), transparent 50%),
    var(--bg);
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-bright); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-soft); }
strong { font-weight: 600; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: #111;
  padding: 0.5rem 1rem;
  z-index: 1000;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

.gold { color: var(--gold); }
.brand-gold, .gold-text { color: var(--gold-soft); }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); font-size: 0.9em; }
.small { font-size: 0.9rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(10, 11, 15, 0.88);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(94, 176, 224, 0.12);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, var(--blue-bright), var(--blue) 45%, #1a3040),
    linear-gradient(225deg, rgba(212, 175, 55, 0.5), transparent);
  box-shadow: 0 0 0 1px rgba(94, 176, 224, 0.45), 0 0 18px var(--blue-glow);
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(240, 215, 140, 0.65);
  border-radius: 4px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-gold { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: 0.02em; }
.brand-sub { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }

.nav-toggle-btn {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-blue);
  border-radius: 8px;
  background: var(--bg-elevated);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--gold-soft);
}

.site-nav { margin-left: auto; }
.site-nav .nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.35rem;
  justify-content: flex-end;
  align-items: center;
}
.site-nav a,
.nav-dropdown__btn {
  display: block;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  border: 1px solid transparent;
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.site-nav a:hover,
.nav-dropdown__btn:hover {
  color: var(--text);
  border-color: var(--border);
  background: rgba(61, 126, 166, 0.12);
}
.site-nav a.is-active,
.nav-dropdown.is-active-group > .nav-dropdown__btn {
  color: var(--gold-soft);
  border-color: rgba(94, 176, 224, 0.45);
  background: linear-gradient(180deg, rgba(61, 126, 166, 0.2), rgba(61, 126, 166, 0.06));
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.12);
}
.nav-dropdown {
  position: relative;
}
.nav-dropdown__menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  min-width: 200px;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: var(--bg-elevated);
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  z-index: 60;
}
.nav-dropdown.is-open > .nav-dropdown__menu,
.nav-dropdown:focus-within > .nav-dropdown__menu {
  display: block;
}
.nav-dropdown__menu a {
  white-space: nowrap;
}

@media (max-width: 960px) {
  .nav-toggle-btn { display: flex; }
  .site-header { position: relative; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-blue);
    padding: 0.75rem 1rem 1rem;
  }
  .nav-toggle:checked ~ .site-nav { display: block; }
  .site-nav .nav-list { flex-direction: column; align-items: stretch; }
  .site-nav a,
  .nav-dropdown__btn { font-size: 0.95rem; padding: 0.55rem 0.75rem; width: 100%; text-align: left; }
  .nav-dropdown__menu {
    position: static;
    display: none;
    box-shadow: none;
    border: 0;
    padding-left: 0.75rem;
    min-width: 0;
  }
  .nav-dropdown.is-open > .nav-dropdown__menu { display: block; }
}

/* Layout shell */
.page-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
}
.main-content--wide,
.page-shell:not(:has(.toc)) {
  grid-template-columns: 1fr;
}
.main-content { min-width: 0; }
.main-content--wide { grid-column: 1 / -1; }

.toc {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: inset 0 0 0 1px rgba(94, 176, 224, 0.08);
}
.toc-title {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
}
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0.35rem 0; }
.toc a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
}
.toc a:hover { color: var(--blue-bright); }

@media (max-width: 860px) {
  .page-shell { grid-template-columns: 1fr; }
  .toc { position: static; }
}

/* Typography */
.hero {
  padding: 1.5rem 0 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin: 0 0 0.5rem;
}
h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.85rem, 3.5vw, 2.55rem);
  line-height: 1.2;
  margin: 0 0 0.75rem;
  color: var(--gold-soft);
  text-shadow: 0 0 40px rgba(212, 175, 55, 0.15);
}
h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.45rem;
  color: var(--gold);
  margin: 2.25rem 0 0.85rem;
  padding-top: 0.25rem;
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}
h3 {
  font-size: 1.1rem;
  color: var(--blue-bright);
  margin: 1.5rem 0 0.6rem;
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}
.lead {
  font-size: 1.1rem;
  color: var(--text);
  max-width: 62ch;
  margin: 0 0 1rem;
}
.section { margin-bottom: 1.5rem; }
.section > p { max-width: 72ch; }

/* Cards & panels */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}
.card {
  background: linear-gradient(165deg, rgba(61, 126, 166, 0.1), transparent 40%), var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow);
  position: relative;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(94, 176, 224, 0.25);
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border-blue);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  margin: 1.25rem 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 0 24px var(--blue-glow);
}
.panel--soft {
  border-color: var(--border);
  box-shadow: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border-blue);
  color: var(--blue-bright);
  background: rgba(61, 126, 166, 0.15);
}
.badge--demo {
  border-color: rgba(212, 175, 55, 0.45);
  color: var(--gold-soft);
  background: rgba(212, 175, 55, 0.1);
}
.badge--live {
  border-color: rgba(107, 207, 142, 0.45);
  color: var(--ok);
  background: rgba(107, 207, 142, 0.1);
}

/* Stats strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0 1.75rem;
}
.stat {
  text-align: center;
  padding: 1rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.65rem;
  color: var(--gold-soft);
  line-height: 1.2;
}
.stat__label {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
th, td {
  padding: 0.7rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th {
  color: var(--gold);
  font-weight: 600;
  background: rgba(61, 126, 166, 0.1);
  white-space: nowrap;
}
tr:last-child td { border-bottom: 0; }
td code, p code, li code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  color: var(--blue-bright);
  background: rgba(61, 126, 166, 0.12);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

/* Buttons / CTAs */
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.25rem 0; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.btn-primary {
  background: linear-gradient(180deg, #4a90b8, #2f6a8f);
  color: #fff;
  border-color: var(--blue-bright);
  box-shadow: 0 0 20px var(--blue-glow);
}
.btn-primary:hover { color: #fff; filter: brightness(1.08); }
.btn-ghost {
  background: transparent;
  color: var(--gold-soft);
  border-color: rgba(212, 175, 55, 0.45);
}
.btn-ghost:hover {
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold-soft);
}

/* Code tabs */
.code-tabs {
  margin: 1rem 0 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-blue);
  background: var(--bg-code);
  overflow: hidden;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.35);
}
.code-tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--border);
  background: rgba(22, 25, 34, 0.9);
}
.code-tabs__tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0.65rem 0.9rem;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.code-tabs__tab:hover { color: var(--text); }
.code-tabs__tab.is-active {
  color: var(--gold-soft);
  border-bottom-color: var(--blue-bright);
  background: rgba(61, 126, 166, 0.12);
}
.code-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-bottom: 1px solid var(--border);
  background: rgba(18, 20, 28, 0.8);
}
.code-lang { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
.btn-copy {
  appearance: none;
  border: 1px solid var(--border-blue);
  background: rgba(61, 126, 166, 0.15);
  color: var(--blue-bright);
  border-radius: 6px;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  cursor: pointer;
}
.btn-copy:hover, .btn-copy.is-copied {
  border-color: var(--gold);
  color: var(--gold-soft);
}
.code-block {
  margin: 0;
  padding: 1rem 1.1rem 1.15rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.55;
  color: #c8d0dc;
}
.code-block code { background: none; padding: 0; color: inherit; font-size: inherit; }

/* Image cards */
/* Compact live catalog widgets (samples + tags) */
.live-widget {
  margin: 1.25rem 0 1.5rem;
  padding: 0.85rem 1rem 1rem;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(94, 176, 224, 0.1);
}
.live-widget__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
}
.live-widget__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.98rem;
  color: var(--gold-soft);
}
.live-widget__more {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--blue-bright);
  text-decoration: none;
}
.live-widget__more:hover { color: var(--gold-soft); }
.live-widget-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin: 1.25rem 0;
}
@media (min-width: 900px) {
  .live-widget-row {
    grid-template-columns: 1fr 1.1fr;
    align-items: start;
  }
  .live-widget-row .live-widget { margin: 0; }
}
.img-grid--compact {
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.55rem;
  margin: 0;
}
.img-grid--compact .img-card figcaption {
  padding: 0.4rem 0.5rem 0.5rem;
  font-size: 0.78rem;
}
.img-grid--compact .img-card figcaption .mono { font-size: 0.7rem; }
.tag-cloud--compact {
  margin: 0;
  gap: 0.4rem;
}
.tag-cloud--compact .tag-chip {
  padding: 0.3rem 0.55rem;
  font-size: 0.8rem;
}
.tag-chip__name { color: var(--blue-bright); }

.img-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.85rem;
  margin: 1rem 0 1.5rem;
}
.img-card {
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.img-card img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  background: #1a1d28;
}
.img-placeholder {
  aspect-ratio: 3/2;
  background:
    linear-gradient(135deg, hsl(var(--ph-hue, 210) 40% 18%), hsl(calc(var(--ph-hue, 210) + 30) 35% 12%)),
    repeating-linear-gradient(45deg, transparent, transparent 8px, rgba(255,255,255,0.02) 8px, rgba(255,255,255,0.02) 16px);
  position: relative;
  display: grid;
  place-items: end start;
  padding: 0.65rem;
}
.img-placeholder__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(94, 176, 224, 0.18) 48%, transparent 62%);
}
.img-placeholder__label {
  position: relative;
  font-size: 0.78rem;
  color: var(--gold-soft);
  text-shadow: 0 1px 4px #000;
}
.img-card figcaption {
  padding: 0.55rem 0.65rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.85rem;
}

/* Infographics */
.infographic {
  margin: 1.5rem 0;
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(61, 126, 166, 0.12), transparent 50%),
    var(--bg-elevated);
  border: 1px solid var(--border-blue);
  box-shadow: inset 0 1px 0 rgba(240, 215, 140, 0.12), 0 12px 40px rgba(0, 0, 0, 0.35);
}
.infographic__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  color: var(--gold-soft);
  font-size: 1.15rem;
}
.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.5rem;
  justify-content: center;
}
.flow__step {
  flex: 1 1 120px;
  max-width: 180px;
  min-width: 110px;
  padding: 0.85rem 0.7rem;
  text-align: center;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  position: relative;
}
.flow__step strong {
  display: block;
  color: var(--gold);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}
.flow__step span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}
.flow__arrow {
  display: flex;
  align-items: center;
  color: var(--blue-bright);
  font-size: 1.25rem;
  padding: 0 0.15rem;
  flex: 0 0 auto;
}
.endpoint-map {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}
.endpoint-node {
  text-align: center;
  padding: 1rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border-blue);
  background: radial-gradient(circle at 30% 20%, rgba(94, 176, 224, 0.25), transparent 55%), var(--bg-card);
  box-shadow: 0 0 20px var(--blue-glow);
}
.endpoint-node strong {
  display: block;
  color: var(--gold-soft);
  font-family: var(--font-display);
}
.endpoint-node span { font-size: 0.78rem; color: var(--muted); }

/* Tag bars / cloud */
.tag-bars { margin: 1rem 0; }
.tag-bar {
  display: grid;
  grid-template-columns: minmax(80px, 140px) 1fr auto;
  gap: 0.65rem;
  align-items: center;
  margin: 0.45rem 0;
  font-size: 0.9rem;
}
.tag-bar__name { color: var(--blue-bright); font-family: var(--font-mono); font-size: 0.85rem; }
.tag-bar__track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  border: 1px solid var(--border);
}
.tag-bar__fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--blue-bright));
  box-shadow: 0 0 10px var(--blue-glow);
  min-width: 2px;
}
.tag-bar__count { color: var(--gold); font-variant-numeric: tabular-nums; min-width: 3ch; text-align: right; }

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}
.tag-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 0.88rem;
}
.tag-chip__count {
  color: var(--gold);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

/* Checklist */
.checklist {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
}
.checklist li {
  position: relative;
  padding: 0.55rem 0.75rem 0.55rem 2.1rem;
  margin: 0.35rem 0;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0.7rem;
  color: var(--gold);
  font-weight: 700;
}

/* Callouts */
.callout {
  border-left: 3px solid var(--blue-bright);
  background: rgba(61, 126, 166, 0.1);
  padding: 0.85rem 1rem;
  margin: 1rem 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.callout--warn {
  border-left-color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
}
.callout--danger {
  border-left-color: var(--danger);
  background: rgba(224, 112, 112, 0.08);
}
.callout p:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

/* Rate meter visual */
.rate-meter {
  margin: 1rem 0;
  padding: 1rem;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.rate-meter__track {
  display: grid;
  grid-template-columns: repeat(30, 1fr);
  gap: 3px;
  margin-top: 0.65rem;
}
.rate-meter__cell {
  aspect-ratio: 1;
  border-radius: 2px;
  background: rgba(94, 176, 224, 0.35);
  border: 1px solid rgba(94, 176, 224, 0.25);
}
.rate-meter__cell.is-used {
  background: var(--gold);
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow: 0 0 6px rgba(212, 175, 55, 0.35);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: #07080c;
  margin-top: 2rem;
  padding: 2.5rem 1.25rem 2rem;
}
.footer-inner { max-width: 1120px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}
.footer-heading {
  margin: 0 0 0.65rem;
  color: var(--gold);
  font-size: 0.95rem;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links li { margin: 0.35rem 0; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--blue-bright); }
.footer-copy { margin: 0; font-size: 0.85rem; border-top: 1px solid var(--border); padding-top: 1rem; }

/* Lists */
ol.steps { padding-left: 1.25rem; }
ol.steps li { margin: 0.5rem 0; max-width: 70ch; }
ul.plain { padding-left: 1.2rem; }
ul.plain li { margin: 0.35rem 0; }

/* Utility */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}
.hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}
