/* Buy Ipamorelin — Composio Cyber Nocturnal
   Aesthetic: nocturnal command-console / cyan-glow telemetry
   ================================================================ */

:root {
  --primary:        #0007CD;
  --primary-50:     #0F1340;
  --primary-900:    #04036B;
  --secondary:      #0089FF;
  --accent:         #00FFFF;
  --accent-dim:     #22B8B8;
  --accent-glow:    rgba(0, 255, 255, 0.18);
  --accent-glow-strong: rgba(0, 255, 255, 0.32);
  --cobalt-glow:    rgba(0, 7, 205, 0.35);

  --neutral-50:     #FFFFFF;
  --neutral-100:    #E6E8EE;
  --neutral-200:    #B7BCC9;
  --neutral-400:    #6E7383;
  --neutral-500:    #444444;
  --neutral-700:    #2C2C2C;
  --neutral-800:    #1A1A1A;
  --neutral-900:    #0F0F0F;

  --bg:             #000000;
  --bg-panel:       #0F0F0F;
  --surface:        #1A1A1A;
  --surface-alt:    #0A0A14;
  --text:           #FFFFFF;
  --text-muted:     #B7BCC9;
  --text-dim:       #6E7383;

  --rule-hairline:  rgba(255, 255, 255, 0.08);
  --rule-strong:    rgba(255, 255, 255, 0.16);
  --rule-cyan:      #00FFFF;
  --rule-cobalt:    #0007CD;

  --success:        #34D399;
  --warning:        #F59E0B;
  --danger:         #F43F5E;

  --max-width:      78rem;
  --article-max:    46rem;
  --container-px:   clamp(1.25rem, 3.5vw, 2.5rem);

  --font-heading:   'JetBrains Mono', 'IBM Plex Mono', 'SF Mono', 'Courier New', monospace;
  --font-body:      'Inter Tight', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius-btn:     0;
  --radius-card:    0;

  --h1-size:        clamp(2.5rem, 6.5vw, 5.25rem);
  --h2-size:        clamp(1.875rem, 3.75vw, 2.75rem);
  --h3-size:        1.375rem;
  --h4-size:        1.0625rem;
  --body-size:      1.0625rem;
  --lede-size:      1.1875rem;
  --small-size:     0.875rem;
  --eyebrow-size:   0.75rem;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
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 {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }

/* ── Container ──────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

/* ── Typography ─────────────────────────────────────────── */
h1 {
  font-family: var(--font-heading);
  font-size: var(--h1-size);
  font-weight: 800;
  line-height: 0.87;
  letter-spacing: -0.04em;
  color: var(--text);
  white-space: pre-line;
}
h2 {
  font-family: var(--font-heading);
  font-size: var(--h2-size);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text);
}
h3 {
  font-family: var(--font-body);
  font-size: var(--h3-size);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--text);
}
h4 {
  font-family: var(--font-body);
  font-size: var(--h4-size);
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}
p { margin-block-end: 1rem; }
p:last-child { margin-block-end: 0; }
strong { font-weight: 700; }
em { font-style: italic; }

/* Mono inline — identifiers, PMIDs, DOIs, sequences, doses */
code, .mono {
  font-family: var(--font-heading);
  font-size: 0.9375em;
  letter-spacing: -0.01em;
  background: var(--surface-alt);
  color: var(--accent-dim);
  border-top: 1px solid var(--rule-hairline);
  border-bottom: 1px solid var(--rule-cobalt);
  padding: 0 0.25rem;
}

/* ── Eyebrow / Label ─────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--eyebrow-size);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-block-end: 0.875rem;
  display: block;
}

/* ── Section index (> 01 / LABEL) ───────────────────────── */
.section-index {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-block-end: 1rem;
  flex-wrap: wrap;
}
.section-index .idx-num {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1;
  color: var(--text);
}
.section-index .idx-label {
  font-family: var(--font-body);
  font-size: var(--eyebrow-size);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  flex: 1;
  border-bottom: 1px solid var(--rule-cobalt);
  padding-bottom: 0.25rem;
}

/* ── Header / Nav ───────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 3.5rem;
  background: var(--bg);
  border-bottom: 1px solid var(--rule-hairline);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}
.site-brand {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-shrink: 0;
}
.site-brand::before {
  content: '';
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--accent);
  flex-shrink: 0;
}
.header-status {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
  text-align: center;
  display: none;
}
@media (min-width: 1024px) {
  .header-status { display: block; }
  .header-status .status-scroll { display: inline-block; }
  @media (prefers-reduced-motion: no-preference) {
    .header-status .status-scroll {
      animation: statusScroll 28s linear infinite;
    }
  }
}
@keyframes statusScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.site-nav { display: none; }
@media (min-width: 768px) {
  .site-nav { display: flex; align-items: center; }
}
.site-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.site-nav a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 200ms ease-out;
  position: relative;
  padding-bottom: 0.125rem;
}
.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -0.125rem;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 200ms ease-out;
}
.site-nav a:hover { color: var(--text); }
.site-nav a:hover::after { width: 100%; box-shadow: 0 0 8px var(--accent-glow); }
.site-nav a[aria-current="page"] {
  color: var(--text);
  border-bottom: 2px solid var(--accent);
}
.site-nav a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  box-shadow: 0 0 6px var(--accent-glow-strong);
}
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text);
}
@media (min-width: 768px) { .nav-toggle { display: none; } }
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  transition: transform 200ms ease-out, opacity 200ms ease-out;
}
.nav-mobile {
  display: none;
  position: fixed;
  top: 3.5rem;
  left: 0;
  right: 0;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--rule-hairline);
  z-index: 99;
  padding: 1.25rem var(--container-px);
}
.nav-mobile.is-open { display: block; }
.nav-mobile ul { display: flex; flex-direction: column; gap: 0.875rem; }
.nav-mobile a {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--rule-hairline);
}
.nav-mobile a:hover { color: var(--accent); }

/* ── Hero band ──────────────────────────────────────────── */
.hero-band {
  background: var(--bg-panel);
  padding-top: calc(3.5rem + 3.5rem);
  padding-bottom: 3.5rem;
  position: relative;
  overflow: hidden;
}
.hero-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(0, 255, 255, 0.07) 0%, transparent 60%);
  pointer-events: none;
}
.hero-band--inner { padding-top: calc(3.5rem + 2.5rem); padding-bottom: 2.5rem; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 22rem; gap: 3rem; }
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-block-end: 1rem;
}
.hero-h1 {
  margin-block-end: 0;
  position: relative;
  padding-bottom: 1rem;
}
.hero-h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--rule-cobalt);
  box-shadow: 0 0 8px var(--cobalt-glow);
}
.hero-lede {
  font-family: var(--font-body);
  font-size: var(--lede-size);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.005em;
  color: var(--text-muted);
  margin-top: 1.25rem;
  max-width: 42rem;
}
.hero-cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

/* ── Stat tiles (hero 2×2) ──────────────────────────────── */
.stat-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (min-width: 1024px) {
  .stat-tiles { align-self: center; }
}
.stat-tile {
  background: var(--surface);
  border: 1px solid var(--rule-hairline);
  box-shadow: inset 4px 4px 0 var(--rule-strong);
  padding: 1.5rem;
  position: relative;
}
.stat-tile::after {
  content: '';
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 6px;
  height: 6px;
  background: var(--accent);
}
.stat-num {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--text);
  display: block;
}
.stat-cap {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-dim);
  display: block;
  margin-top: 0.5rem;
}
.hero-telemetry {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: -0.01em;
  margin-top: 0.75rem;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 0;
  cursor: pointer;
  transition: box-shadow 200ms ease-out, background 200ms ease-out, border-color 200ms ease-out;
  position: relative;
}
.btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  box-shadow: 0 0 6px var(--accent-glow-strong);
}
.btn-primary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--accent);
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0.3rem;
  right: 0.3rem;
  width: 6px;
  height: 6px;
  background: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-glow);
  box-shadow: 0 0 12px var(--accent-glow-strong);
}
.btn-primary:active { box-shadow: 4px 4px 0 var(--rule-cobalt); }
.btn-secondary {
  background: transparent;
  color: var(--neutral-100);
  border: 1px solid var(--rule-strong);
}
.btn-secondary:hover {
  border-color: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}
.btn-secondary:active { box-shadow: 4px 4px 0 var(--rule-cobalt); }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--rule-hairline);
  padding: 1.75rem;
  position: relative;
  transition: box-shadow 200ms ease-out, border-color 200ms ease-out;
}
.card::after {
  content: '';
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 6px;
  height: 6px;
  background: var(--accent);
}
.card:hover {
  border-color: var(--rule-strong);
  box-shadow: 4px 4px 0 var(--rule-cobalt);
}
.card-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-block-end: 0.625rem;
}
.card h3 {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--rule-cobalt);
  padding-bottom: 0.625rem;
  margin-block-end: 0.875rem;
}
.card-body { color: var(--text-muted); font-size: 0.9375rem; }

/* ── Callouts ─────────────────────────────────────────────── */
.callout {
  background: var(--surface);
  border: 1px solid var(--rule-hairline);
  border-left-width: 4px;
  padding: 1.5rem;
  position: relative;
  margin-block: 1.75rem;
}
.callout::after {
  content: '';
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 6px;
  height: 6px;
}
.callout-telemetry { border-left-color: var(--accent); }
.callout-telemetry::after { background: var(--accent); }
.callout-regulatory { border-left-color: var(--warning); }
.callout-regulatory::after { background: var(--warning); }
.callout-caution { background: var(--surface-alt); border-left-color: var(--danger); }
.callout-caution::after { background: var(--danger); }
.callout-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-block-end: 0.625rem;
  display: block;
}
.callout-telemetry .callout-eyebrow { color: var(--accent); }
.callout-regulatory .callout-eyebrow { color: var(--warning); }
.callout-caution .callout-eyebrow { color: var(--danger); }
.callout p { color: var(--text); font-size: 0.9375rem; }
.callout p:last-child { margin-block-end: 0; }

/* ── Telemetry chips ─────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 0.25rem 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--surface);
}
.chip::before {
  content: '';
  width: 4px;
  height: 4px;
  flex-shrink: 0;
}
.chip-cyan::before  { background: var(--accent); }
.chip-amber::before { background: var(--warning); }
.chip-cobalt::before { background: var(--rule-cobalt); }
.chip-danger::before { background: var(--danger); }
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-block: 1.25rem;
}

/* ── Citation markers [N] ────────────────────────────────── */
sup.citation a {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 0 0.1875rem;
  vertical-align: super;
  line-height: 1.2;
  transition: color 200ms ease-out, border-color 200ms ease-out, box-shadow 200ms ease-out;
  text-decoration: none;
}
sup.citation a:hover {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
}

/* ── Figures ─────────────────────────────────────────────── */
.site-figure {
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: inset 4px 4px 0 var(--rule-strong);
  position: relative;
  overflow: hidden;
}
.site-figure::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--rule-cyan);
  box-shadow: 0 0 6px var(--accent-glow);
  z-index: 1;
}
.site-figure::after {
  content: '';
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 6px;
  height: 6px;
  background: var(--accent);
  z-index: 2;
}
.site-figure img { width: 100%; height: auto; display: block; }
.figure-caption {
  background: var(--bg-panel);
  padding: 0.75rem 1rem;
}
.figure-caption .fig-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-block-end: 0.25rem;
}
.figure-caption p {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-style: italic;
  color: var(--text-muted);
  margin: 0;
}

/* ── Pull quote ──────────────────────────────────────────── */
.pull-quote {
  border-left: 4px solid var(--rule-cobalt);
  box-shadow: -4px 0 12px var(--cobalt-glow);
  padding-left: 1.5rem;
  margin-block: 2rem;
}
.pull-quote blockquote {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.35;
  color: var(--text);
}
.pull-quote cite {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-dim);
  display: block;
  margin-top: 0.625rem;
  font-style: normal;
}

/* ── Main content layout ─────────────────────────────────── */
.page-layout {
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.page-layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .page-layout-grid {
    grid-template-columns: minmax(0, 46rem) 18rem;
    gap: 4rem;
    align-items: start;
  }
}
.article-body { max-width: var(--article-max); }
@media (min-width: 1024px) { .article-body { max-width: none; } }

/* ── Content sections ────────────────────────────────────── */
.content-section {
  margin-block-end: 3.5rem;
}
.content-section:last-child { margin-block-end: 0; }
.section-h2 {
  margin-block-end: 1.25rem;
}
.section-body p { color: var(--text-muted); }
.section-body p strong { color: var(--text); }
.section-body ul, .section-body ol {
  list-style: disc;
  padding-left: 1.5rem;
  margin-block: 0.75rem;
  color: var(--text-muted);
}
.section-body ol { list-style: decimal; }
.section-body li { margin-block-end: 0.375rem; }
.section-body h3 { margin-block: 1.5rem 0.625rem; }
.section-body h4 { margin-block: 1rem 0.375rem; color: var(--text-muted); }

/* ── Telemetry rail (sidebar) ────────────────────────────── */
.telemetry-rail {
  background: var(--surface-alt);
  border: 1px solid var(--rule-hairline);
  padding: 1.25rem;
  position: sticky;
  top: 5rem;
}
.rail-heading {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--rule-cobalt);
  padding-bottom: 0.5rem;
  margin-block-end: 1rem;
}
.rail-chip-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.rail-item {
  border-left: 1px solid var(--rule-cobalt);
  padding-left: 0.75rem;
  margin-block-end: 0.875rem;
}
.rail-item:last-child { margin-block-end: 0; }
.rail-label {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: block;
  margin-block-end: 0.25rem;
}
.rail-value {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text);
}
.rail-value.amber { color: var(--warning); }
.rail-value.danger { color: var(--danger); }
.rail-value.cyan  { color: var(--accent); }

/* ── Tables ──────────────────────────────────────────────── */
.data-table-wrap { overflow-x: auto; margin-block: 1.5rem; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--rule-cobalt);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.data-table thead tr {
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.data-table th {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-dim);
  padding: 0.75rem 1rem;
  text-align: left;
  white-space: nowrap;
}
.data-table td {
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--rule-hairline);
  vertical-align: top;
}
.data-table tbody tr {
  transition: color 200ms ease-out;
}
.data-table tbody tr:hover td { color: var(--text); border-left: 1px solid var(--accent); }
.data-table .num-col { font-family: var(--font-heading); text-align: right; color: var(--text); }

/* ── References list ─────────────────────────────────────── */
.references-list {
  list-style: none;
  padding: 0;
  counter-reset: ref-counter;
}
.references-list li {
  counter-increment: ref-counter;
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 0.75rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--rule-hairline);
  transition: background 200ms ease-out;
}
.references-list li:hover { background: rgba(255,255,255,0.02); }
.references-list li::before {
  content: counter(ref-counter);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.6;
}
.ref-citation { color: var(--text-muted); font-size: 0.9375rem; line-height: 1.55; }
.ref-citation a {
  color: var(--accent-dim);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 200ms ease-out;
}
.ref-citation a:hover { color: var(--accent); }
.ref-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--rule-hairline);
  padding: 0.125rem 0.375rem;
  font-family: var(--font-heading);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-left: 0.375rem;
  vertical-align: middle;
}

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--rule-hairline);
  padding-block: 1.5rem;
}
.faq-item:first-child { border-top: 1px solid var(--rule-hairline); }
.faq-q {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  margin-block-end: 0.75rem;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}
.faq-q::before {
  content: 'Q';
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  flex-shrink: 0;
}
.faq-a { color: var(--text-muted); }
.faq-a p:last-child { margin-block-end: 0; }

/* ── Contact form ────────────────────────────────────────── */
.contact-form { margin-block: 1.5rem; }
.form-group { margin-block-end: 1.25rem; }
.form-group label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-block-end: 0.375rem;
}
.form-group input, .form-group textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--rule-hairline);
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 200ms ease-out, box-shadow 200ms ease-out;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}
.form-group textarea { min-height: 8rem; resize: vertical; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  margin-top: auto;
}
.footer-main {
  background: var(--bg-panel);
  border-top: 1px solid var(--rule-hairline);
  position: relative;
  overflow: hidden;
}
.footer-main::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12rem;
  height: 12rem;
  background: radial-gradient(circle at 100% 100%, rgba(0,255,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 2.5rem;
  padding-block: 3rem;
}
@media (min-width: 768px) {
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .footer-cols { grid-template-columns: repeat(5, 1fr); }
}
.footer-col-heading {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-block-end: 0.875rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: color 200ms ease-out;
}
.footer-col a:hover { color: var(--text); }
.footer-rule {
  height: 1px;
  background: var(--rule-cobalt);
}
.footer-bottom {
  background: var(--bg);
  padding-block: 1.25rem;
}
.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-dim);
}
@media (min-width: 768px) {
  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
.footer-colophon { letter-spacing: 0.04em; }
.footer-disclaimer { color: var(--text-dim); max-width: 42rem; }
.footer-copyright { font-size: 0.6875rem; }
.footer-anchor {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}
.footer-anchor::after {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  background: var(--accent);
}

/* ── Reading progress ────────────────────────────────────── */
.reading-progress {
  position: fixed;
  top: 3.5rem;
  left: 0;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
  z-index: 99;
  width: 0;
  transition: width 100ms linear;
}

/* ── Page-specific layout adjustments ───────────────────── */
.page-hero-short { min-height: 36vh; display: flex; align-items: flex-end; }

/* ── Utilities ───────────────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.text-muted { color: var(--text-muted); }
.text-dim   { color: var(--text-dim); }
.text-cyan  { color: var(--accent); }
.text-amber { color: var(--warning); }
.text-danger { color: var(--danger); }
.mono-inline {
  font-family: var(--font-heading);
  font-size: 0.9em;
  letter-spacing: -0.01em;
}
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-sm { margin-bottom: 0.5rem; }
.mb-md { margin-bottom: 1rem; }
.mb-lg { margin-bottom: 1.75rem; }
.hr-cobalt {
  border: none;
  height: 1px;
  background: var(--rule-cobalt);
  margin-block: 2rem;
}

/* ── 404 page ────────────────────────────────────────────── */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--container-px);
  background: var(--bg-panel);
}
.error-code {
  font-family: var(--font-heading);
  font-size: clamp(5rem, 15vw, 12rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.85;
  color: var(--text);
  opacity: 0.12;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
}
.error-content { position: relative; z-index: 1; text-align: center; }
.error-content h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
.error-content p { color: var(--text-muted); margin-block: 1rem; }

/* ── Tippy.js overrides (nocturnal console tooltip) ──────── */
.tippy-box[data-theme~='nocturnal'] {
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: 0;
  position: relative;
}
.tippy-box[data-theme~='nocturnal'] .tippy-content {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
  padding: 0.625rem 0.875rem;
  position: relative;
}
.tippy-box[data-theme~='nocturnal'] .tippy-content::after {
  content: '';
  position: absolute;
  top: 0.3rem;
  right: 0.3rem;
  width: 4px;
  height: 4px;
  background: var(--accent);
}
.tippy-box[data-theme~='nocturnal'] .tippy-arrow { color: var(--accent); }
