/* torzonmarket.link — Liquid glass hub (favicon brand: cyan onion + green sprout) */
/* Self-hosted JetBrains Mono (variable weight, one file covers 100–800) */
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg-base: #000106;
  --bg-elevated: #03040a;
  --bg-card: rgba(255, 255, 255, 0.06);
  --bg-sidebar: transparent;
  --bg-glass: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.14);
  --border-strong: rgba(224, 251, 255, 0.32);
  --text: #e8f9ff;
  --text-muted: #8ba3b0;
  --text-muted-soft: #5c6f7a;
  --text-bright: #e0fbff;
  --accent: #62d4ff;
  --accent-bright: #e0fbff;
  --accent-violet: #50c8ff;
  --accent-2: #007aa3;
  --accent-deep: #3aa8d8;
  --accent-green: #6ecf7a;
  --accent-green-light: #8ae896;
  --accent-dim: rgba(98, 212, 255, 0.14);
  --accent-rose-dim: rgba(58, 168, 216, 0.22);
  --glass-tint: rgba(80, 200, 255, 0.12);
  --glass-tint-strong: rgba(58, 168, 216, 0.18);
  --amber: #fbbf24;
  --amber-dim: rgba(251, 191, 36, 0.12);
  --danger: #f87171;
  --success: #6ecf7a;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-mono: "DM Mono", ui-monospace, monospace;
  --liquid-blur: blur(18px) saturate(150%) brightness(0.88);
  --liquid-blur-strong: blur(24px) saturate(160%) brightness(0.9);
  --liquid-blur-chrome: blur(20px) saturate(155%);
  --liquid-surface: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(224, 251, 255, 0.05) 28%,
    rgba(98, 212, 255, 0.04) 52%,
    rgba(0, 1, 6, 0.68) 100%
  );
  --liquid-surface-deep: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(58, 168, 216, 0.08) 45%,
    rgba(0, 1, 6, 0.8) 100%
  );
  --liquid-border: rgba(255, 255, 255, 0.28);
  --liquid-border-soft: rgba(80, 200, 255, 0.22);
  --liquid-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -1px 0 rgba(255, 255, 255, 0.06);
  --liquid-shadow:
    0 4px 24px rgba(58, 168, 216, 0.16),
    0 24px 64px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  --liquid-glow: 0 0 80px rgba(80, 200, 255, 0.14);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 26px;
  --topbar-h: 2.25rem;
  --header-h: 3.5rem;
  --chrome-pad: calc(var(--topbar-h) + var(--header-h) + 0.65rem);
  --sidebar-w: 15.75rem;
  --max-w: 82.5rem;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 56px rgba(80, 200, 255, 0.22), 0 0 0 1px rgba(224, 251, 255, 0.14);
  --neon: 0 10px 36px rgba(0, 122, 163, 0.35);
  --tile-shadow: var(--liquid-shadow);
  --surface-inset: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  /* Unified block spacing */
  --space-block: 1.35rem;
  --space-inset: 1.25rem;
  --space-section: 1.35rem;
  --space-grid: 1.25rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + var(--header-h) + 1.5rem);
  color-scheme: dark;
  background: var(--bg-base);
  min-height: 100%;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text);
  background: transparent;
  position: relative;
  z-index: 0;
  isolation: isolate;
}

/* Background stack (fixed, below content) */
.bg-grid {
  z-index: 0;
}

.bg-mesh {
  z-index: 1;
}

.bg-blur {
  z-index: 2;
}

.aurora {
  z-index: 3;
}

main,
.site-footer {
  position: relative;
  z-index: 5;
}

.aurora {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.aurora i {
  position: absolute;
  display: block;
  width: 50vmax;
  height: 50vmax;
  top: -15%;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.26;
  animation: none;
}

.aurora i:nth-child(1) {
  left: -10%;
  background: #3aa8d8;
  animation-duration: 28s;
}

.aurora i:nth-child(2) {
  right: -15%;
  top: 35%;
  left: auto;
  background: #50c8ff;
  opacity: 0.2;
  animation-delay: -8s;
}

.aurora i:nth-child(3),
.aurora i:nth-child(4) {
  display: none;
}

.bg-mesh {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 1;
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(58, 168, 216, 0.35) 0%, transparent 58%),
    radial-gradient(ellipse 70% 50% at 100% 85%, rgba(80, 200, 255, 0.18), transparent 52%),
    radial-gradient(ellipse 55% 45% at 0% 60%, rgba(110, 207, 122, 0.06), transparent 55%);
  animation: none;
}

.bg-mesh::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  pointer-events: none;
}

.bg-blur {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-blur::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 90% at 50% 45%, transparent 18%, rgba(0, 0, 0, 0.78) 100%);
  pointer-events: none;
}

.bg-blur span {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(72px);
}

.bg-blur__a {
  width: min(72vmin, 640px);
  height: min(72vmin, 640px);
  left: -18%;
  top: 8%;
  background: radial-gradient(circle at 40% 40%, rgba(98, 212, 255, 0.5) 0%, rgba(58, 168, 216, 0.2) 35%, transparent 68%);
  animation: none;
}

.bg-blur__b {
  width: min(62vmin, 560px);
  height: min(62vmin, 560px);
  right: -14%;
  top: 42%;
  background: radial-gradient(circle at 55% 45%, rgba(80, 200, 255, 0.35) 0%, rgba(0, 122, 163, 0.22) 40%, transparent 70%);
  animation: none;
}

.bg-blur__c,
.bg-blur__d,
.bg-blur__e {
  display: none;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, black, transparent 72%);
  animation: none;
}

.bg-blur {
  display: none;
}

.aurora {
  contain: strict;
}

.aurora i {
  filter: blur(56px);
  opacity: 0.18;
}

@keyframes aurora-drift {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  50% {
    transform: translate(7%, -4%) scale(1.12) rotate(6deg);
  }
  100% {
    transform: translate(4%, 6%) scale(1.05) rotate(-4deg);
  }
}

@keyframes aurora-drift-alt {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-6%, 2%) scale(1.08);
  }
  100% {
    transform: translate(-3%, 5%) scale(1.03);
  }
}

@keyframes mesh-breathe {
  0% {
    opacity: 0.92;
    transform: scale(1);
  }
  100% {
    opacity: 1;
    transform: scale(1.03);
  }
}

@keyframes blur-float-a {
  0% {
    transform: translate(0, 0) scale(1);
  }
  40% {
    transform: translate(12vw, 8vh) scale(1.15);
  }
  70% {
    transform: translate(5vw, 14vh) scale(0.92);
  }
  100% {
    transform: translate(14vw, 5vh) scale(1.08);
  }
}

@keyframes blur-float-b {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  100% {
    transform: translate(-10vw, -6vh) scale(1.12) rotate(-12deg);
  }
}

@keyframes blur-float-c {
  0% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(-8vw, 10vh) scale(1.1);
  }
  66% {
    transform: translate(6vw, 4vh) scale(0.94);
  }
  100% {
    transform: translate(-4vw, 12vh) scale(1.06);
  }
}

@keyframes blur-float-d {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.7;
  }
  100% {
    transform: translate(-12vw, 8vh) scale(1.2);
    opacity: 1;
  }
}

@keyframes dot-drift {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 22px 22px;
  }
}

.official-block {
  margin: var(--space-inset) 0;
  padding: var(--space-block);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--liquid-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--liquid-shadow);
  border-left: 3px solid var(--accent-violet);
  backdrop-filter: var(--liquid-blur);
  -webkit-backdrop-filter: var(--liquid-blur);
}

.official-block p {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.official-block p:last-child {
  margin-bottom: 0;
}

.official-block .label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.detail-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.detail-list li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1.15rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-muted);
}

.detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.detail-list li strong {
  color: var(--text);
}

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: var(--bg-base);
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.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;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(98, 212, 255, 0.45);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--accent-bright);
  text-decoration-color: rgba(224, 251, 255, 0.75);
}

a.btn,
a.link-card,
a.logo,
a.skip-link {
  text-decoration: none;
}

.site-nav a,
.sidebar-nav a,
.footer-nav a,
.breadcrumb a {
  text-decoration: none;
}

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

/* Topbar (directory-style live strip) */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 110;
  height: var(--topbar-h);
  background: rgba(10, 16, 32, 0.55);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  backdrop-filter: var(--liquid-blur);
  -webkit-backdrop-filter: var(--liquid-blur);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.topbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100%;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem 0.65rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.topbar-inner::-webkit-scrollbar {
  display: none;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.topbar-item strong {
  color: var(--text-bright);
  font-weight: 500;
}

.topbar-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 5px var(--success);
  animation: pulse 2s ease infinite;
}

.topbar-sep {
  opacity: 0.45;
}

.topbar-rates {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  flex-shrink: 0;
}

.topbar-clock {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--accent-bright);
  opacity: 0.85;
  white-space: nowrap;
}

.rate-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.65rem;
  background: #050a0d;
  border: 1px solid var(--border);
  border-radius: 999px;
  line-height: 1;
  white-space: nowrap;
}

.rate-pill-sym {
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-bright);
}

.rate-pill strong {
  color: var(--text-bright);
  font-weight: 500;
}

.rate-chg {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.rate-chg-up {
  color: #3dba6a;
}

.rate-chg-down {
  color: #e07070;
}

.rate-chg-flat {
  color: var(--text-muted);
}

.rate-pill--updated {
  animation: rate-pill-flash 0.55s ease;
}

@keyframes rate-pill-flash {
  0% {
    border-color: var(--border-strong);
    box-shadow: 0 0 0 1px rgba(80, 200, 255, 0.45);
  }
  100% {
    border-color: var(--border);
    box-shadow: none;
  }
}

.hero-pill .rate-chg {
  font-size: 0.7rem;
  margin-left: 0.15rem;
}

/* Header */
.site-header {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 14, 28, 0.52);
  backdrop-filter: var(--liquid-blur);
  -webkit-backdrop-filter: var(--liquid-blur);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 12px 40px rgba(0, 0, 0, 0.35);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--text-bright);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  color: var(--accent-bright);
}

.logo-mark {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.logo svg,
.logo img {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  display: block;
}

.logo img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  object-fit: contain;
  background: transparent;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.logo-sub {
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-bright);
  opacity: 0.75;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.site-nav a {
  display: block;
  padding: 0.75rem 0.65rem;
  color: var(--text-muted);
  font-size: 0.6875rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent-bright);
  border-bottom-color: var(--accent-bright);
  text-decoration: none;
}

.header-ticker {
  display: none;
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  margin-right: 0.35rem;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.5;
  }
}

@media (max-width: 1140px) {
  .site-header {
    overflow: visible;
  }

  .header-inner {
    position: relative;
    flex-wrap: nowrap;
    min-height: var(--header-h);
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
  }

  .nav-toggle {
    display: block;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
  }

  .logo {
    min-width: 0;
    flex: 1 1 auto;
  }

  .logo-sub {
    display: none;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 120;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1rem;
    display: none;
    box-shadow: var(--liquid-shadow);
  }

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

  .site-nav ul {
    flex-direction: column;
    flex-wrap: nowrap;
    border-radius: var(--radius);
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 0;
    gap: 0.15rem;
  }

  .site-nav a {
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.75rem;
    width: 100%;
  }
}

@media (min-width: 1141px) {
  .site-nav ul {
    flex-wrap: nowrap;
    gap: 0.1rem;
  }

  .site-nav a {
    padding: 0.45rem 0.5rem;
    font-size: 0.625rem;
  }
}

/* Status strip */
.status-strip {
  background: var(--bg-elevated);
  border-bottom: 1px dashed var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  padding: 0.5rem 1rem;
  font-family: var(--font-mono);
}

.status-strip strong {
  color: var(--text);
}

/* Main layout */
main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.layout-shell {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--chrome-pad) 1rem 4rem;
  display: grid;
  gap: 0;
}

@media (min-width: 1060px) {
  .layout-shell {
    grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
    align-items: start;
  }
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  order: 2;
  padding: 0 0 1.5rem;
}

.content-primary {
  order: 1;
  min-width: 0;
  padding: 0 0 1.5rem;
}

@media (min-width: 1060px) {
  .sidebar {
    order: 0;
    position: sticky;
    top: calc(var(--topbar-h) + var(--header-h) + 0.75rem);
    max-height: calc(100vh - var(--topbar-h) - var(--header-h) - 1.5rem);
    overflow-y: auto;
    padding: 0.85rem 1rem 1.5rem;
    margin-right: 0.35rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--liquid-surface);
    backdrop-filter: var(--liquid-blur);
    -webkit-backdrop-filter: var(--liquid-blur);
    box-shadow: var(--liquid-shadow);
    align-self: start;
  }
  .content-primary {
    order: 1;
    padding: 0.75rem 0 1.5rem 1.75rem;
  }
}

.ref-panel {
  position: relative;
  padding: 1.15rem 1.2rem 1.4rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  overflow: visible;
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  content-visibility: visible;
  contain-intrinsic-size: unset;
}

.ref-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  pointer-events: none;
}

.ref-panel h2 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin: 0.35rem 0 0.65rem;
}

.ref-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.82rem;
}

.ref-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem;
  padding: 0.48rem 0;
  line-height: 1.45;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  min-height: 1.75rem;
}

.ref-list li:last-child {
  border-bottom: none;
  padding-bottom: 0.25rem;
}

.ref-list li span {
  flex: 1;
  min-width: 0;
}

.ref-list strong {
  color: var(--text);
  font-weight: 500;
  text-align: right;
  flex-shrink: 0;
}

/* Home sidebar — index operations cadence */
.ref-panel-ops {
  padding-bottom: 1.55rem;
  border-color: rgba(98, 212, 255, 0.22);
  background: linear-gradient(
    168deg,
    rgba(58, 168, 216, 0.14) 0%,
    rgba(255, 255, 255, 0.045) 42%,
    rgba(8, 20, 32, 0.35) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(98, 212, 255, 0.08),
    0 0 0 1px rgba(98, 212, 255, 0.06);
}

.ref-panel-ops::before {
  background: linear-gradient(90deg, rgba(98, 212, 255, 0.55), rgba(255, 255, 255, 0.2), transparent);
}

.ref-panel-ops h2 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.2rem 0 0.75rem;
}

.ref-panel-ops h2::after {
  content: "";
  flex: 1;
  min-width: 0.75rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(98, 212, 255, 0.5), transparent);
  opacity: 0.85;
}

.ref-list-ops li {
  padding: 0.52rem 0;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.ref-list-ops li:first-child {
  padding-top: 0.15rem;
}

.ref-list-ops li:last-child {
  padding-bottom: 0.65rem;
}

.ref-list-ops strong {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--accent-bright, #62d4ff);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(58, 168, 216, 0.12);
  border: 1px solid rgba(98, 212, 255, 0.22);
  line-height: 1.25;
  white-space: nowrap;
  max-width: 100%;
}

.sidebar-nav a {
  display: block;
  padding: 0.35rem 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: none;
}

.sidebar-nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin: 0 0 0.65rem;
}

.kicker::before {
  content: "▸ ";
  color: var(--accent);
  font-weight: 500;
}

.hero-band {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.25rem 0 0;
}

.hero-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-pill strong {
  color: var(--accent);
  font-weight: 500;
}

.step-block {
  display: grid;
  gap: 1rem;
}

.step-item {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.35rem 1.4rem;
  background: var(--liquid-surface);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: var(--liquid-shadow);
  backdrop-filter: var(--liquid-blur);
  -webkit-backdrop-filter: var(--liquid-blur);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  color: #07152e;
  background: linear-gradient(145deg, var(--accent-bright), var(--accent-violet));
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.step-item h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
}

.step-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.ownership-table td:first-child {
  font-weight: 500;
  color: var(--text);
}

.narrative {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.narrative p {
  margin: 0 0 1rem;
}

.narrative strong {
  color: var(--text);
}

.path-card {
  padding: var(--space-block);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--liquid-surface);
  box-shadow: var(--liquid-shadow);
  backdrop-filter: var(--liquid-blur);
  -webkit-backdrop-filter: var(--liquid-blur);
}

.path-card h3 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.path-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.page-hero {
  margin-bottom: 2rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.08;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.page-hero .lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 42rem;
  margin: 0 0 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Bento home hero */
.hero-bento {
  display: grid;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .hero-bento {
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: auto auto;
  }
  .hero-bento .bento-main {
    grid-row: span 2;
  }
}

.bento-card {
  position: relative;
  padding: var(--space-block);
  border-radius: var(--radius-xl);
  background: var(--liquid-surface);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--liquid-shadow);
  overflow: hidden;
  backdrop-filter: var(--liquid-blur);
  -webkit-backdrop-filter: var(--liquid-blur);
}

.bento-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.bento-main h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.8vw, 2.65rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.bento-main .lead {
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.telemetry {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.telemetry dt {
  color: var(--text-muted);
  margin: 0;
}

.telemetry dd {
  margin: 0.15rem 0 0;
  color: var(--accent);
  font-weight: 500;
}

/* Page purpose block */
.hub-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 0.65rem;
  margin: 1.25rem 0 1.5rem;
}

.hub-meta-item {
  padding: 0.75rem 0.85rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.hub-meta-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.hub-meta-label::after {
  content: ":";
}

.hub-meta-item strong {
  color: var(--accent-bright);
  font-size: 0.9rem;
  font-weight: 600;
}

.page-purpose {
  display: grid;
  gap: 0;
  margin-bottom: var(--space-section);
  padding: 0;
  background: var(--bg-glass);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--tile-shadow);
  backdrop-filter: blur(12px);
}

@media (min-width: 640px) {
  .page-purpose {
    grid-template-columns: repeat(3, 1fr);
  }
}

.page-purpose h2 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 0.35rem;
  font-family: var(--font-mono);
  font-weight: 500;
}

.page-purpose p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, rgba(224, 251, 255, 0.98) 0%, rgba(98, 212, 255, 0.92) 48%, rgba(58, 168, 216, 0.95) 100%);
  color: #032030;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 10px 28px rgba(0, 122, 163, 0.38);
}

.btn-primary:hover {
  background: linear-gradient(135deg, rgba(80, 200, 255, 0.98) 0%, rgba(58, 168, 216, 0.92) 45%, rgba(0, 122, 163, 0.95) 100%);
  color: #061024;
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  background: var(--accent-dim);
}

.btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
}

/* Cards & sections */
.section {
  margin-bottom: 2rem;
}

.section.section-panel {
  margin-bottom: var(--space-section);
}

.section-header {
  margin-bottom: var(--space-inset);
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
}

.card-grid {
  display: grid;
  gap: var(--space-grid);
}

@media (min-width: 640px) {
  .card-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.link-card {
  display: block;
  padding: var(--space-block);
  background: var(--liquid-surface);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.25s, transform 0.25s;
  box-shadow: var(--liquid-shadow);
  backdrop-filter: var(--liquid-blur);
  -webkit-backdrop-filter: var(--liquid-blur);
}

.link-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-glow), var(--neon);
  transform: translateY(-2px);
  text-decoration: none;
}

.link-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 0.35rem;
  color: var(--accent);
}

.link-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  background: var(--liquid-surface);
  backdrop-filter: var(--liquid-blur);
  -webkit-backdrop-filter: var(--liquid-blur);
  box-shadow: var(--liquid-shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 500;
}

tr:last-child td {
  border-bottom: none;
}

.onion-cell {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  word-break: break-all;
  cursor: pointer;
  user-select: all;
}

.onion-masked {
  filter: blur(3px);
  opacity: 0.85;
  user-select: none;
}

.mirror-table-hint {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.mirror-table-hint strong {
  color: var(--accent);
}

.mirror-age-wall {
  margin: 0.5rem 0 0;
  padding: 1.35rem 1.25rem 1.45rem;
  border-radius: var(--radius);
  border: 1px solid rgba(98, 212, 255, 0.28);
  background: linear-gradient(145deg, rgba(58, 168, 216, 0.12), rgba(0, 1, 6, 0.55));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 28px rgba(80, 200, 255, 0.12);
  text-align: center;
}

.mirror-age-wall-title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent-bright);
}

.mirror-age-wall-text {
  margin: 0 auto 1.1rem;
  max-width: 36rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.mirror-age-wall--compact {
  padding: 1rem;
}

.mirror-age-wall--compact .mirror-age-wall-text {
  margin-bottom: 0.85rem;
  font-size: 0.88rem;
}

.link-check-progress {
  margin: 0.35rem 0 1rem;
  padding: 0.85rem 1rem 0.95rem;
  border-radius: var(--radius);
  border: 1px solid rgba(98, 212, 255, 0.22);
  background: rgba(58, 168, 216, 0.08);
}

.link-check-progress-label {
  margin: 0 0 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.link-check-progress-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.link-check-progress-bar {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-2), var(--accent), var(--accent-green-light));
  transition: width 0.9s cubic-bezier(0.22, 0.85, 0.32, 1);
  box-shadow: 0 0 12px rgba(98, 212, 255, 0.45);
}

.link-check-progress-bar.is-running {
  width: 100%;
}

.verifier-box .link-check-progress {
  margin-top: 0.75rem;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  border-radius: 4px;
  background: var(--accent-dim);
  color: var(--accent);
}

/* Verifier */
.verifier-box {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow);
}

.verifier-box label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.verifier-box textarea,
.verifier-box input[type="text"] {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  resize: vertical;
  min-height: 3rem;
}

.verifier-result {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  display: none;
}

.verifier-result.is-visible {
  display: block;
}

.verifier-result.match {
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: var(--success);
}

.verifier-result.no-match {
  background: var(--amber-dim);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: var(--amber);
}

.verifier-result.invalid {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: var(--danger);
}

.verifier-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* Checklist */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: check;
}

.checklist li {
  position: relative;
  padding: 1rem 1rem 1rem 3rem;
  border-bottom: 1px solid var(--border);
}

.checklist li:last-child {
  border-bottom: none;
}

.checklist li::before {
  counter-increment: check;
  content: counter(check);
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 50%;
}

.checklist strong {
  display: block;
  margin-bottom: 0.25rem;
}

.checklist p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* FAQ accordion */
.faq-list {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elevated);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-question:hover {
  background: var(--accent-dim);
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-icon {
  flex-shrink: 0;
  font-size: 1.25rem;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.faq-answer {
  display: none;
  padding: 0 1.25rem 1.25rem;
  color: var(--text-muted);
}

.faq-answer.is-open {
  display: block;
}

.faq-answer a {
  font-weight: 500;
}

/* Warning callout */
.callout {
  padding: var(--space-block);
  border-radius: var(--radius);
  margin-bottom: var(--space-section);
  font-size: 0.95rem;
}

.callout-warning {
  background: var(--amber-dim);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.callout-warning strong {
  color: var(--amber);
}

.callout-health {
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.25);
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Steps */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps li {
  position: relative;
  padding-left: 2.75rem;
  margin-bottom: 1.25rem;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.8rem;
  background: var(--accent-2);
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--neon);
}

/* Content prose */
.prose h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
}

.prose h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
}

.prose ul {
  padding-left: 1.25rem;
  color: var(--text-muted);
}

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

.prose p {
  color: var(--text-muted);
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 0.15em 0.4em;
  background: var(--bg-base);
  border-radius: 4px;
  border: 1px solid var(--border);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.stat-box {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--liquid-shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.stat-box .value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-bright);
  display: block;
}

.stat-box .label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Age gate modal */
.age-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(4, 8, 20, 0.72);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.age-overlay[hidden] {
  display: none;
}

.age-dialog {
  max-width: 28rem;
  width: 100%;
  padding: 2rem;
  background: var(--liquid-surface);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-xl);
  box-shadow: var(--liquid-shadow), 0 24px 80px rgba(0, 0, 0, 0.55);
  backdrop-filter: var(--liquid-blur);
  -webkit-backdrop-filter: var(--liquid-blur);
}

.age-dialog h2 {
  font-family: var(--font-display);
  margin: 0 0 1rem;
  font-size: 1.35rem;
}

.age-dialog p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.age-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 0.75rem 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  z-index: 2000;
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  pointer-events: none;
}

.toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 14, 28, 0.45);
  backdrop-filter: var(--liquid-blur);
  -webkit-backdrop-filter: var(--liquid-blur);
  padding: 2.5rem 1.25rem;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

@media (min-width: 640px) {
  .footer-inner {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0.5rem 0 0;
  max-width: 22rem;
}

.footer-nav h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
  font-family: var(--font-mono);
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin-bottom: 0.35rem;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.footer-bottom {
  max-width: var(--max-w);
  margin: 2rem auto 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: right;
}

body {
  display: flex;
  flex-direction: column;
}

/* —— Composition & component layout (not palette) —— */

.aurora i {
  opacity: 0.18;
  filter: blur(56px);
}

.aurora::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.bg-blur span {
  filter: blur(105px);
}

.bg-grid {
  opacity: 0.32;
  background-size: 28px 28px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse 92% 82% at 50% 18%, black, transparent 74%);
  animation: none;
}

@media (min-width: 1141px) {
  .site-nav ul {
    padding: 0.25rem;
    gap: 0.2rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }
}

.site-nav a {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border-bottom: none;
  margin-bottom: 0;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(98, 212, 255, 0.2);
  border-bottom: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
  color: var(--text-bright);
}


.page-hero {
  display: grid;
  gap: 0.85rem 1.75rem;
  margin-bottom: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 960px) {
  .page-hero:has(.hero-spec):not(.page-hero--ledger-below) {
    grid-template-columns: minmax(0, 1fr) min(20rem, 38%);
    align-items: start;
  }

  .page-hero:has(.hero-spec):not(.page-hero--ledger-below) .hero-spec {
    grid-column: 2;
    grid-row: 1 / span 6;
  }

  .page-hero:has(.hero-spec):not(.page-hero--ledger-below) .breadcrumb,
  .page-hero:has(.hero-spec):not(.page-hero--ledger-below) .kicker,
  .page-hero:has(.hero-spec):not(.page-hero--ledger-below) h1,
  .page-hero:has(.hero-spec):not(.page-hero--ledger-below) .hero-copy,
  .page-hero:has(.hero-spec):not(.page-hero--ledger-below) .hero-note,
  .page-hero:has(.hero-spec):not(.page-hero--ledger-below) .hero-rates {
    grid-column: 1;
  }

  .page-hero:has(.hero-spec):not(.page-hero--ledger-below) h1 {
    margin-bottom: 0;
  }

  .page-hero:has(.hero-spec):not(.page-hero--ledger-below) .hero-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 0.35rem;
  }
}

.page-hero--ledger-below {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.page-hero--ledger-below h1 {
  margin-bottom: 0.35rem;
}

.index-ledger-static {
  position: static;
  width: 100%;
  max-width: 100%;
  margin: 0.25rem 0 0.5rem;
}


.hero-spec,
.signal-card {
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--liquid-surface);
  position: relative;
  box-shadow: var(--liquid-shadow);
  backdrop-filter: var(--liquid-blur);
  -webkit-backdrop-filter: var(--liquid-blur);
}

.signal-card::before,
.signal-card::after {
  display: none;
}

.signal-card-head {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.55rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--accent-bright);
}

.index-banner {
  padding: 0.75rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  background: var(--liquid-surface);
  backdrop-filter: var(--liquid-blur);
  -webkit-backdrop-filter: var(--liquid-blur);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  box-shadow: var(--liquid-shadow);
}

.index-banner-inset {
  grid-column: 1 / -1;
}

.layout-shell.is-home {
  padding-top: var(--chrome-pad);
}

.index-banner strong {
  color: var(--text-bright);
  font-weight: 600;
}

.field-brief,
.intent-strip {
  margin-bottom: var(--space-section);
  padding: var(--space-block);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--liquid-surface);
  backdrop-filter: var(--liquid-blur);
  -webkit-backdrop-filter: var(--liquid-blur);
  box-shadow: var(--liquid-shadow);
}

.field-brief h2,
.intent-strip h2,
.page-purpose h2 {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
}

.file-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.55rem;
  margin-bottom: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: var(--accent-bright);
  background: rgba(255, 255, 255, 0.06);
}

.link-card .file-tag {
  margin-bottom: 0.35rem;
}

.route-map .step-item {
  border-left: 2px solid rgba(98, 212, 255, 0.4);
  margin-left: 0.35rem;
  padding-left: 1rem;
}

.content-primary {
  position: relative;
}

.content-primary::before {
  display: none;
}

.footer-index-id {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0.75rem auto 0;
  max-width: var(--max-w);
  text-align: right;
}

.hero-spec .hub-meta {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
}

.hero-spec .hub-meta-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-spec .hub-meta-item:last-child {
  border-bottom: none;
}

.hero-spec.index-ledger-static .hub-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 640px) {
  .hero-spec.index-ledger-static .hub-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .hero-spec.index-ledger-static .hub-meta {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero-spec.index-ledger-static .stats-row-compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.hero-spec .stats-row-compact {
  margin: 0;
  gap: 0;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border);
}

.ledger-cadence {
  margin: 0;
  padding: 0.9rem 1rem 1.05rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-muted);
  border-top: 1px solid rgba(98, 212, 255, 0.18);
  background: linear-gradient(180deg, rgba(58, 168, 216, 0.1), rgba(58, 168, 216, 0.03));
}

.ledger-cadence strong {
  color: var(--accent-bright);
  font-weight: 600;
}

.hero-spec .stat-box {
  border-radius: 0;
  box-shadow: none;
  border: none;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.75rem 0.5rem;
  background: transparent;
}

.hero-spec .stat-box:nth-child(2n) {
  border-right: none;
}

.hero-spec .stat-box:nth-last-child(-n + 2) {
  border-bottom: none;
}

.hero-spec .stat-box .value {
  font-size: 1.15rem;
}

.kicker {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.kicker::before,
.kicker::after {
  content: none;
}

.page-hero h1 {
  font-size: clamp(1.75rem, 3.4vw, 2.55rem);
  line-height: 1.12;
  font-weight: 700;
  max-width: 24ch;
  letter-spacing: -0.02em;
}

.official-block {
  border-radius: var(--radius-lg);
  border-left-width: 3px;
  border-left-color: var(--accent-green);
  background: rgba(58, 168, 216, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.section-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-inset);
  padding: var(--space-block);
  margin-bottom: var(--space-section);
  background: var(--liquid-surface);
  backdrop-filter: var(--liquid-blur);
  -webkit-backdrop-filter: var(--liquid-blur);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-xl);
  box-shadow: var(--liquid-shadow);
}

.section-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.section-panel > .kicker {
  margin: 0;
}

.section-panel .section-header {
  margin: 0;
}

.section-panel > .narrative {
  margin: 0;
}

.section-panel > .narrative p:last-child {
  margin-bottom: 0;
}

.section-panel > .detail-list,
.section-panel > .steps,
.section-panel > .table-wrap,
.section-panel > .card-grid,
.section-panel > .ui-gallery,
.section-panel > .hero-actions,
.section-panel > .btn,
.section-panel > .verifier-box {
  margin: 0;
}

.section-panel .section-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.page-purpose {
  border-radius: var(--radius-xl);
  padding: 0;
  overflow: hidden;
  display: grid;
  gap: 0;
  background: var(--liquid-surface);
  backdrop-filter: var(--liquid-blur);
  -webkit-backdrop-filter: var(--liquid-blur);
  box-shadow: var(--liquid-shadow);
}

@media (min-width: 640px) {
  .page-purpose {
    grid-template-columns: repeat(3, 1fr);
  }
  .page-purpose > div {
    padding: var(--space-block);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }
  .page-purpose > div:last-child {
    border-right: none;
  }
}

.page-purpose > div {
  padding: var(--space-block);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 640px) {
  .page-purpose > div {
    border-bottom: none;
    padding: var(--space-block);
  }
}

.step-block {
  position: relative;
  padding-left: 0.35rem;
}

.step-block::before {
  content: "";
  position: absolute;
  left: 1.22rem;
  top: 1.5rem;
  bottom: 1.5rem;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-bright), transparent);
  opacity: 0.45;
}

.step-item {
  grid-template-columns: 2.5rem 1fr;
  padding: 0.85rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.step-num {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-bright);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 1060px) {
  .sidebar .ref-panel {
    margin-bottom: 0.65rem;
  }
}

.link-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-grid);
}

.link-card::after {
  content: "→";
  flex-shrink: 0;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--accent-bright);
  opacity: 0.45;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(98, 212, 255, 0.5);
  box-shadow: var(--liquid-shadow), 0 0 0 1px rgba(80, 200, 255, 0.25);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
}

.link-card:hover::after {
  opacity: 1;
  transform: translateX(4px);
}

.link-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.card-grid.cols-3 {
  gap: 0.85rem;
}

.path-card {
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.btn {
  border-radius: 999px;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.callout {
  border-radius: var(--radius-lg);
  border-left-width: 3px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.faq-list {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: var(--liquid-blur);
  -webkit-backdrop-filter: var(--liquid-blur);
}

.faq-question {
  font-size: 0.98rem;
}

.verifier-box {
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.detail-list li::before {
  color: var(--accent-bright);
}

.detail-list li {
  border-left: 2px solid rgba(98, 212, 255, 0.45);
  padding-left: 0.85rem;
  margin-left: 0.15rem;
}

.footer-inner {
  padding-top: 0.5rem;
}

.ui-gallery {
  display: grid;
  gap: var(--space-grid);
  margin: 0;
  align-items: stretch;
}

.ui-gallery--2 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .ui-gallery--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1060px) {
  .ui-gallery--2 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.ui-gallery--2:has(> .guide-shot:only-child) {
  grid-template-columns: minmax(0, 640px);
}

.guide-shot {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--liquid-surface);
  box-shadow: var(--liquid-shadow);
  backdrop-filter: var(--liquid-blur);
  -webkit-backdrop-filter: var(--liquid-blur);
}

.guide-shot img {
  grid-row: 1;
  grid-column: 1;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center top;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  filter: saturate(0.9) contrast(1.05);
}

.guide-shot figcaption {
  grid-row: 2;
  grid-column: 1;
  padding: var(--space-inset) var(--space-block);
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  line-height: 1.45;
  min-height: 4.5rem;
  display: flex;
  align-items: flex-start;
}

.guide-shot--zoomable {
  cursor: zoom-in;
}

.guide-shot--zoomable img {
  cursor: zoom-in;
}

.guide-shot--zoomable img:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.guide-shot--zoomable::after {
  grid-row: 1;
  grid-column: 1;
  align-self: end;
  justify-self: end;
  z-index: 3;
  margin: 0.65rem;
  padding: 0.28rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-bright);
  background: rgba(0, 1, 6, 0.55);
  border: 1px solid var(--liquid-border-soft);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
  content: "View full size";
}

body.shot-lightbox-open {
  overflow: hidden;
}

.shot-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.shot-lightbox[hidden] {
  display: none;
}

.shot-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 1, 6, 0.82);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  cursor: zoom-out;
}

.shot-lightbox__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  max-width: min(96vw, 1200px);
  max-height: 94vh;
  width: 100%;
  padding: 0.75rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--liquid-border);
  background: var(--liquid-surface);
  box-shadow: var(--liquid-shadow), 0 28px 90px rgba(0, 0, 0, 0.65);
  backdrop-filter: var(--liquid-blur-strong);
  -webkit-backdrop-filter: var(--liquid-blur-strong);
}

.shot-lightbox__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(0, 1, 6, 0.65);
  color: var(--text-bright);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.shot-lightbox__close:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
}

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

.shot-lightbox__img {
  display: block;
  width: 100%;
  max-height: calc(94vh - 5rem);
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.shot-lightbox__caption {
  margin: 0.65rem 0.35rem 0.25rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.shot-lightbox__caption[hidden] {
  display: none;
}

.noscript-mirror-index {
  margin: var(--space-inset) 0 0;
  padding: var(--space-block);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.noscript-mirror-index ul {
  margin: 0.65rem 0 0;
  padding-left: 1.15rem;
}

.noscript-mirror-index code {
  font-size: 0.78rem;
  word-break: break-all;
}

.hub-domain-lede {
  margin: 0 0 var(--space-inset);
  padding: var(--space-block);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  background: var(--liquid-surface);
  backdrop-filter: var(--liquid-blur);
  -webkit-backdrop-filter: var(--liquid-blur);
  box-shadow: var(--liquid-shadow);
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.hub-domain-lede strong {
  color: var(--text-bright);
}

.age-inline-notice {
  margin: 0 0 var(--space-inset);
  padding: var(--space-inset) var(--space-block);
  border-radius: var(--radius);
  border: 1px solid var(--liquid-border-soft);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
  box-shadow: var(--liquid-highlight);
}

/* —— Blue ocean layout & chrome (v2) —— */
.bg-grid {
  opacity: 0.22;
  background-image:
    radial-gradient(circle at center, rgba(98, 212, 255, 0.09) 0, transparent 42px),
    radial-gradient(rgba(80, 200, 255, 0.05) 1px, transparent 1px);
  background-size: 84px 84px, 22px 22px;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  background: radial-gradient(ellipse 120% 80% at 50% 100%, rgba(58, 168, 216, 0.1), transparent 55%);
}

/* Topbar + header flush to viewport top (no floating gap — saves ~1.5rem scroll) */

.layout-shell {
  gap: 1.25rem;
}

@media (min-width: 1060px) {
  .layout-shell.is-home {
    grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
    align-items: start;
  }
}

/* Home: drop duplicate strip + hero clutter above the fold */
.layout-shell.is-home .index-banner-inset {
  display: none;
}

.page-hero--ledger-below {
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
}

.page-hero--ledger-below .hero-rates,
.page-hero--ledger-below .hero-note {
  display: none;
}

.page-hero--ledger-below .hero-copy p:last-child {
  display: none;
}

@media (max-width: 1059px) {
  .layout-shell.is-home .sidebar .ref-panel:nth-child(3),
  .layout-shell.is-home .sidebar .ref-panel:nth-child(4) {
    display: none;
  }
}

@media (max-width: 720px) {
  .topbar-clock {
    display: none;
  }

  .topbar-rates {
    gap: 0.35rem;
  }

  .rate-pill {
    padding: 0.15rem 0.45rem;
    font-size: 0.625rem;
  }
}

.page-hero h1,
.bento-main h1 {
  max-width: none;
  background: linear-gradient(
    105deg,
    var(--text-bright) 0%,
    #62d4ff 40%,
    #50c8ff 72%,
    var(--accent-green-light) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.kicker {
  border-color: rgba(98, 212, 255, 0.35);
  background: rgba(58, 168, 216, 0.12);
  color: #e0fbff;
}

.section-panel {
  border-radius: var(--radius-lg);
  border: 1px solid var(--liquid-border-soft);
  background: var(--liquid-surface);
}

.section-panel::after {
  content: "";
  position: absolute;
  top: 0;
  left: 1.25rem;
  right: 1.25rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #62d4ff, #50c8ff, transparent);
  pointer-events: none;
}

.section-panel::before {
  box-shadow: inset 0 1px 0 rgba(224, 251, 255, 0.15);
}

.index-banner {
  border-color: rgba(98, 212, 255, 0.3);
  background: var(--liquid-surface);
}

table tbody tr:nth-child(even) {
  background: rgba(98, 212, 255, 0.04);
}

table thead th {
  background: rgba(0, 90, 120, 0.65);
  color: #e0fbff;
}

.logo-sub {
  color: #62d4ff;
  opacity: 1;
}

.logo-name {
  text-transform: none;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.rate-pill {
  background: rgba(0, 90, 120, 0.85);
  border-color: rgba(98, 212, 255, 0.25);
}

.topbar {
  background: rgba(4, 8, 20, 0.55);
}

.site-header {
  background: rgba(10, 16, 32, 0.5);
}

.site-footer {
  background: linear-gradient(180deg, transparent, rgba(0, 90, 120, 0.35));
  border-top-color: rgba(98, 212, 255, 0.2);
}

.age-overlay {
  background: rgba(2, 6, 23, 0.78);
}

.card-grid.cols-3 {
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .card-grid.cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.link-card {
  border-radius: var(--radius);
  clip-path: none;
}

.link-card::after {
  content: "↗";
  opacity: 0.35;
}

.hero-spec,
.signal-card {
  border-radius: var(--radius-lg);
  border-color: rgba(98, 212, 255, 0.28);
}

.signal-card-head {
  background: rgba(58, 168, 216, 0.15);
  color: var(--text);
}

.faq-question[aria-expanded="true"] {
  background: rgba(58, 168, 216, 0.12);
}

/* —— Liquid glass intensifier (v3) —— */
@keyframes liquid-caustic {
  0%,
  100% {
    opacity: 0.55;
    transform: translate(-2%, -1%) scale(1);
  }
  50% {
    opacity: 0.85;
    transform: translate(2%, 1%) scale(1.04);
  }
}

@keyframes liquid-edge-shine {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.7;
  }
}

.aurora i {
  opacity: 0.16;
  filter: blur(56px);
}

.topbar,
.site-header {
  background: rgba(255, 255, 255, 0.04) !important;
  backdrop-filter: var(--liquid-blur-strong);
  -webkit-backdrop-filter: var(--liquid-blur-strong);
  border-color: var(--liquid-border-soft);
  box-shadow: var(--liquid-shadow), var(--liquid-glow);
}

@media (min-width: 900px) {
  .topbar,
  .site-header {
    background: var(--liquid-surface) !important;
  }
}

.topbar::before,
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(ellipse 85% 55% at 12% 0%, rgba(255, 255, 255, 0.28), transparent 58%);
  animation: none;
}

.topbar,
.site-header {
  position: fixed;
  overflow: hidden;
}

@media (max-width: 1140px) {
  .site-header {
    overflow: visible;
  }
}

.site-nav ul {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--liquid-border-soft);
  box-shadow: var(--liquid-highlight), 0 8px 32px rgba(2, 6, 23, 0.25);
  backdrop-filter: var(--liquid-blur);
  -webkit-backdrop-filter: var(--liquid-blur);
}

.liquid-pane,
.ref-panel,
.link-card,
.table-wrap,
.section-panel,
.field-brief,
.intent-strip,
.page-purpose,
.bento-card,
.path-card,
.step-item,
.hero-spec,
.signal-card,
.index-banner,
.hub-domain-lede,
.guide-shot,
.verifier-box,
.faq-list,
.age-dialog,
.stat-box,
.hub-meta-item,
.official-block,
.noscript-mirror-index {
  position: relative;
  isolation: isolate;
  background: var(--liquid-surface) !important;
  border-color: var(--liquid-border-soft) !important;
  box-shadow: var(--liquid-shadow), var(--liquid-glow);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.liquid-pane::after,
.ref-panel::after,
.link-card::after,
.section-panel::after,
.field-brief::after,
.intent-strip::after,
.bento-card::after,
.path-card::after,
.hero-spec::after,
.signal-card::after,
.index-banner::after,
.table-wrap::after,
.age-dialog::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse 70% 45% at 8% 0%, rgba(255, 255, 255, 0.22), transparent 55%);
  animation: none;
}

.ref-panel::after,
.link-card::after,
.section-panel::after,
.bento-card::after,
.hero-spec::after,
.table-wrap::after,
.age-dialog::after {
  mix-blend-mode: soft-light;
}

.ref-panel > *,
.link-card > *,
.section-panel > *,
.bento-card > *,
.hero-spec > *,
.table-wrap > *,
.age-dialog > * {
  position: relative;
  z-index: 1;
}

.section-panel::before {
  inset: 0;
  border-radius: inherit;
  box-shadow: var(--liquid-highlight);
  z-index: 2;
}

.section-panel::after {
  top: 0;
  left: 1.25rem;
  right: 1.25rem;
  bottom: auto;
  height: 2px;
  inset: auto 1.25rem auto 1.25rem;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), #e0fbff, transparent);
  animation: none;
  mix-blend-mode: normal;
}

.link-card::after {
  content: "↗";
  position: static;
  inset: auto;
  background: none;
  animation: none;
  mix-blend-mode: normal;
  z-index: 2;
}

.link-card {
  overflow: hidden;
}

.link-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle at 100% 0%, rgba(80, 200, 255, 0.2), transparent 45%);
}

@media (min-width: 1060px) {
  .content-primary {
    background: var(--liquid-surface-deep) !important;
    border-color: var(--liquid-border) !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: var(--liquid-shadow), var(--liquid-glow), 0 0 0 1px rgba(255, 255, 255, 0.06);
    overflow: hidden;
  }

  .content-primary::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background:
      radial-gradient(ellipse 55% 35% at 92% 8%, rgba(255, 255, 255, 0.18), transparent 50%),
      radial-gradient(ellipse 40% 30% at 4% 92%, rgba(98, 212, 255, 0.12), transparent 55%);
    animation: none;
  }

  .content-primary {
    position: relative;
  }
}

.table-wrap {
  overflow: hidden;
}

.table-wrap-checklist {
  overflow: hidden;
  padding: 0.35rem 0.15rem 0.5rem;
}

.table-wrap-checklist::after {
  background:
    radial-gradient(ellipse 145% 110% at 10% -12%, rgba(98, 212, 255, 0.22), transparent 72%),
    radial-gradient(ellipse 120% 90% at 92% 8%, rgba(80, 200, 255, 0.12), transparent 70%),
    radial-gradient(ellipse 130% 85% at 50% 108%, rgba(58, 168, 216, 0.09), transparent 68%);
  mix-blend-mode: soft-light;
  opacity: 0.85;
}

.table-wrap-checklist .checklist li {
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  background: rgba(255, 255, 255, 0.04);
}

.table-wrap table {
  position: relative;
  z-index: 1;
}

table thead th {
  background: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.04);
}

.rate-pill {
  background: rgba(255, 255, 255, 0.07) !important;
  backdrop-filter: blur(16px) saturate(190%);
  -webkit-backdrop-filter: blur(16px) saturate(190%);
  box-shadow: var(--liquid-highlight);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(20px) saturate(200%);
  -webkit-backdrop-filter: blur(20px) saturate(200%);
  box-shadow: var(--liquid-highlight);
}

.btn-primary {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 12px 32px rgba(0, 122, 163, 0.4),
    0 0 40px rgba(58, 168, 216, 0.22);
}

.kicker {
  backdrop-filter: blur(16px) saturate(200%);
  -webkit-backdrop-filter: blur(16px) saturate(200%);
  box-shadow: var(--liquid-highlight);
  background: rgba(255, 255, 255, 0.1) !important;
}

.age-overlay {
  backdrop-filter: blur(48px) saturate(180%);
  -webkit-backdrop-filter: blur(48px) saturate(180%);
  background: rgba(4, 8, 20, 0.42) !important;
}

.site-footer {
  background: rgba(255, 255, 255, 0.03) !important;
  backdrop-filter: var(--liquid-blur-strong);
  -webkit-backdrop-filter: var(--liquid-blur-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.logo-mark {
  position: relative;
  background: radial-gradient(circle at 50% 38%, rgba(98, 212, 255, 0.26), rgba(0, 1, 6, 0.72));
  border-color: rgba(80, 200, 255, 0.38);
  box-shadow: var(--liquid-highlight), 0 0 22px rgba(80, 200, 255, 0.26);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.logo-mark::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 16%;
  right: 16%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--accent-green-light), transparent);
  opacity: 0.88;
  pointer-events: none;
  z-index: 1;
}

.verifier-box textarea,
.verifier-box input[type="text"] {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--liquid-border-soft);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.faq-item {
  background: transparent;
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.06);
}

.callout {
  background: var(--liquid-surface) !important;
  backdrop-filter: var(--liquid-blur);
  -webkit-backdrop-filter: var(--liquid-blur);
}

.page-hero,
.hero-bento {
  padding: var(--space-block);
  border-radius: var(--radius-xl);
  border: 1px solid var(--liquid-border-soft);
  background: var(--liquid-surface);
  backdrop-filter: var(--liquid-blur);
  -webkit-backdrop-filter: var(--liquid-blur);
  box-shadow: var(--liquid-shadow);
}

.breadcrumb {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--liquid-border-soft);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px) saturate(190%);
  -webkit-backdrop-filter: blur(16px) saturate(190%);
  box-shadow: var(--liquid-highlight);
}

.checklist li {
  margin-bottom: 0.5rem;
  border: 1px solid var(--liquid-border-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px) saturate(190%);
  -webkit-backdrop-filter: blur(18px) saturate(190%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.checklist li:last-child {
  margin-bottom: 0;
}

.badge {
  border-radius: 999px;
  border: 1px solid var(--liquid-border-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--liquid-highlight);
}

.hero-pill,
.nav-toggle {
  backdrop-filter: blur(14px) saturate(190%);
  -webkit-backdrop-filter: blur(14px) saturate(190%);
  box-shadow: var(--liquid-highlight);
}

.detail-list li {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.faq-item + .faq-item {
  border-top: 1px solid var(--liquid-border-soft);
}

.footer-inner,
.footer-grid {
  padding: var(--space-block);
  border-radius: var(--radius-lg);
  border: 1px solid var(--liquid-border-soft);
  background: var(--liquid-surface);
  backdrop-filter: var(--liquid-blur);
  -webkit-backdrop-filter: var(--liquid-blur);
  box-shadow: var(--liquid-shadow);
}

.toast {
  background: var(--liquid-surface);
  backdrop-filter: var(--liquid-blur-strong);
  -webkit-backdrop-filter: var(--liquid-blur-strong);
  box-shadow: var(--liquid-shadow);
}

.step-num {
  background: linear-gradient(145deg, var(--accent-bright), var(--accent-violet), var(--accent-deep));
  color: #032030;
  border-color: rgba(224, 251, 255, 0.32);
}

.topbar-dot {
  background: var(--accent-green);
  box-shadow: 0 0 6px rgba(110, 207, 122, 0.75);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(80, 200, 255, 0.18);
}

/* Performance: blur only on fixed chrome; panels use opaque glass gradients */
.topbar,
.site-header {
  backdrop-filter: var(--liquid-blur-chrome) !important;
  -webkit-backdrop-filter: var(--liquid-blur-chrome) !important;
  transform: translateZ(0);
}

.age-dialog {
  backdrop-filter: var(--liquid-blur-chrome);
  -webkit-backdrop-filter: var(--liquid-blur-chrome);
}

main,
aside,
.site-footer,
.content-primary,
.site-nav ul {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.section-panel,
.link-card,
.table-wrap,
.field-brief,
.intent-strip,
.page-purpose,
.bento-card,
.path-card,
.step-item,
.hero-spec,
.signal-card,
.index-banner,
.hub-domain-lede,
.guide-shot,
.verifier-box,
.faq-list,
.stat-box,
.hub-meta-item,
.official-block,
.noscript-mirror-index,
.liquid-pane {
  content-visibility: auto;
  contain-intrinsic-size: auto 420px;
}

.sidebar .ref-panel {
  content-visibility: visible;
  contain-intrinsic-size: unset;
  overflow: visible;
}

/* —— Mobile layout (phones & narrow tablets) —— */
html.nav-open {
  overflow: hidden;
}

@media (max-width: 1140px) {
  :root {
    --chrome-pad: calc(var(--topbar-h) + var(--header-h) + 0.45rem);
  }

  .layout-shell {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-bottom: 2.75rem;
    gap: 1rem;
  }

  .site-nav.is-open {
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    max-height: min(70vh, 22rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .page-hero {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
  }

  .page-hero h1 {
    font-size: clamp(1.28rem, 5.2vw, 1.75rem);
    line-height: 1.22;
  }

  .section-panel {
    padding: var(--space-inset);
  }

  .section-header h2 {
    font-size: 1.05rem;
  }

  .hero-actions,
  .hero-band {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
    min-height: 2.75rem;
  }

  .sidebar {
    order: 3;
    padding-bottom: 0.5rem;
  }

  .content-primary {
    order: 1;
  }

  .sidebar .ref-panel {
    padding: 0.9rem 0.95rem 1.15rem;
  }

  .sidebar .ref-panel-ops {
    padding-bottom: 1.35rem;
  }

  .ref-list-ops li:last-child {
    padding-bottom: 0.55rem;
  }

  .field-brief.intent-strip {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .card-grid.cols-2,
  .card-grid.cols-3 {
    grid-template-columns: 1fr;
  }

  .hub-meta {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .stats-row-compact {
    grid-template-columns: 1fr 1fr;
  }

  .table-wrap {
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius);
  }

  .table-wrap table {
    font-size: 0.82rem;
  }

  .onion-cell {
    font-size: 0.7rem;
    word-break: break-all;
    line-height: 1.35;
  }

  .verifier-box input[type="text"] {
    font-size: 16px;
  }

  .btn {
    min-height: 2.65rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1.25rem;
  }

  .footer-bottom {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .topbar-sep,
  .topbar-item:nth-child(3) {
    display: none;
  }

  .topbar-clock {
    display: none;
  }

  .topbar-rates .rate-pill:last-of-type {
    display: none;
  }

  .topbar-rates .rate-chg {
    display: none;
  }

  .logo-name {
    font-size: 0.98rem;
  }

  .layout-shell.is-home .sidebar .ref-panel:nth-child(n + 3) {
    display: none;
  }

  .callout {
    font-size: 0.85rem;
  }
}

/* —— Terminal theme (v5): cyber-terminal layout over liquid glass, same palette —— */
:root {
  --font-display: "JetBrains Mono", "DM Mono", ui-monospace, monospace;
  --font-body: "JetBrains Mono", "DM Mono", ui-monospace, monospace;
  --font-mono: "JetBrains Mono", "DM Mono", ui-monospace, monospace;
  --radius-sm: 3px;
  --radius: 5px;
  --radius-lg: 7px;
  --radius-xl: 9px;
  --term-ink: #001018;
  --term-line: rgba(98, 212, 255, 0.24);
  --term-line-strong: rgba(98, 212, 255, 0.5);
  --term-line-dim: rgba(98, 212, 255, 0.12);
  --term-bar: linear-gradient(180deg, rgba(98, 212, 255, 0.13), rgba(98, 212, 255, 0.03));
  --term-bar-h: 1.9rem;
  --term-glow: 0 0 16px rgba(98, 212, 255, 0.35);
  --term-shadow:
    0 0 0 1px rgba(98, 212, 255, 0.05),
    0 18px 50px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(224, 251, 255, 0.1);
  --term-dots:
    radial-gradient(circle at 0.95rem 50%, var(--danger) 0 0.2rem, transparent 0.23rem),
    radial-gradient(circle at 1.6rem 50%, var(--amber) 0 0.2rem, transparent 0.23rem),
    radial-gradient(circle at 2.25rem 50%, var(--accent-green) 0 0.2rem, transparent 0.23rem);
}

@keyframes term-blink {
  50% {
    opacity: 0;
  }
}

@keyframes term-sweep {
  from {
    transform: translateY(-40vh);
  }
  to {
    transform: translateY(140vh);
  }
}

@keyframes term-type {
  from {
    clip-path: inset(-30% 100% -30% -5%);
  }
  to {
    clip-path: inset(-30% -5% -30% -5%);
  }
}

@keyframes term-flash {
  0% {
    color: var(--term-ink);
    background: var(--accent);
  }
  100% {
    background: transparent;
  }
}

@keyframes term-glitch {
  0% {
    text-shadow: 2px 0 var(--accent), -2px 0 var(--accent-green);
    transform: translateX(0);
  }
  33% {
    text-shadow: -2px 0 var(--accent), 2px 0 var(--accent-green);
    transform: translateX(1px);
  }
  66% {
    text-shadow: 1px 0 var(--accent), -1px 0 var(--danger);
    transform: translateX(-1px);
  }
  100% {
    text-shadow: 0 0 12px rgba(98, 212, 255, 0.45);
    transform: none;
  }
}

/* Base */
body {
  font-size: 0.875rem;
  line-height: 1.7;
  font-variant-ligatures: none;
}

::selection {
  background: var(--accent);
  color: var(--term-ink);
}

html {
  scrollbar-color: rgba(98, 212, 255, 0.4) var(--bg-base);
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
  background: rgba(98, 212, 255, 0.35);
}

/* Backdrop: CRT scanlines, line grid, slow scan sweep */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.16) 0 1px, transparent 1px 3px);
}

.bg-grid {
  z-index: 4;
  opacity: 1;
  background-image:
    linear-gradient(rgba(98, 212, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98, 212, 255, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 90% 75% at 50% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 75% at 50% 0%, #000 0%, transparent 78%);
}

.aurora::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 28vh;
  z-index: 2;
  background: linear-gradient(180deg, transparent, rgba(98, 212, 255, 0.05) 75%, rgba(224, 251, 255, 0.09) 100%);
  animation: term-sweep 11s linear infinite;
}

/* Links, code */
a {
  text-decoration-style: dotted;
  text-decoration-color: rgba(98, 212, 255, 0.6);
  text-underline-offset: 0.22em;
  transition: color 0.12s, background 0.12s, box-shadow 0.12s;
}

main a:not(.btn):not(.link-card):hover {
  color: var(--term-ink);
  background: var(--accent);
  text-decoration: none;
  box-shadow: 0 0 0 2px var(--accent);
}

code,
.prose code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--accent-bright);
  background: rgba(98, 212, 255, 0.08);
  border: 1px dashed rgba(98, 212, 255, 0.3);
  border-radius: 2px;
  padding: 0.05em 0.35em;
}

/* Topbar as status line */
.topbar {
  background: rgba(0, 3, 9, 0.82) !important;
  border-bottom: 1px solid var(--term-line);
  box-shadow: none;
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.topbar::before {
  display: none;
}

.topbar-item {
  color: var(--accent-green-light);
}

.topbar-item::before {
  content: "[tty0]";
  margin-right: 0.35rem;
  color: var(--text-muted-soft);
}

.rate-pill {
  padding: 0.15rem 0.35rem;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.rate-pill::before {
  content: "[";
  color: var(--text-muted-soft);
}

.rate-pill::after {
  content: "]";
  color: var(--text-muted-soft);
}

.rate-pill-sym {
  color: var(--accent);
}

.rate-pill--updated {
  animation: term-flash 0.6s ease;
}

.topbar-clock {
  color: var(--accent);
  opacity: 1;
}

/* Header as terminal window chrome */
.site-header {
  background: rgba(0, 4, 12, 0.7) !important;
  border-bottom: 1px solid var(--term-line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.site-header::before {
  background: radial-gradient(ellipse 50% 140% at 0% 0%, rgba(98, 212, 255, 0.14), transparent 60%);
}

.logo-mark {
  border-radius: 4px;
  border-color: var(--term-line-strong);
  background: rgba(0, 1, 6, 0.85);
  box-shadow: var(--term-glow), inset 0 0 12px rgba(98, 212, 255, 0.2);
}

.logo-name {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-bright);
  text-shadow: 0 0 12px rgba(98, 212, 255, 0.45);
}

.logo-name::after {
  content: "_";
  margin-left: 1px;
  color: var(--accent);
  animation: term-blink 1.1s steps(1) infinite;
}

.logo:hover .logo-name {
  animation: term-glitch 0.35s steps(2) 1;
}

.logo-sub {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--accent);
}

.logo-sub::before {
  content: "~/ ";
  color: var(--text-muted-soft);
}

@media (min-width: 1141px) {
  .site-nav ul {
    padding: 0.2rem;
    gap: 0.1rem;
    border-radius: 4px;
    border: 1px solid var(--term-line);
    background: rgba(0, 1, 6, 0.55);
    box-shadow: inset 0 1px 0 rgba(224, 251, 255, 0.06);
  }
}

.site-nav a {
  padding: 0.4rem 0.6rem;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.03em;
  text-transform: lowercase;
  color: var(--text-muted);
}

.site-nav a::before {
  content: "./";
  color: var(--text-muted-soft);
}

.site-nav a:hover {
  color: var(--accent-bright);
  background: rgba(98, 212, 255, 0.1);
  box-shadow: none;
  text-shadow: var(--term-glow);
}

.site-nav a[aria-current="page"] {
  color: var(--term-ink);
  font-weight: 700;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(98, 212, 255, 0.45);
  text-shadow: none;
}

.site-nav a[aria-current="page"]::before {
  content: "> ";
  color: var(--term-ink);
}

.nav-toggle {
  border-radius: 2px;
  border-color: var(--term-line-strong);
  background: rgba(98, 212, 255, 0.06);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: lowercase;
}

.nav-toggle::before {
  content: "[ ";
}

.nav-toggle::after {
  content: " ]";
}

.nav-toggle[aria-expanded="true"] {
  background: var(--accent);
  color: var(--term-ink);
}

/* Sidebar as file-tree panes */
@media (min-width: 1060px) {
  .sidebar {
    border-color: var(--term-line);
    border-radius: var(--radius-lg);
  }
}

.ref-panel,
.sidebar .ref-panel {
  --rp-x: 1rem;
  padding: 0 var(--rp-x) 1.35rem;
  border-radius: var(--radius);
  overflow: visible;
  height: auto;
  max-height: none;
}

.ref-panel::before {
  display: none;
}

.ref-panel h2,
.ref-panel-ops h2 {
  display: block;
  margin: 0 calc(-1 * var(--rp-x)) 0.7rem;
  padding: 0.5rem var(--rp-x);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--term-bar);
  border-bottom: 1px solid var(--term-line);
}

.ref-panel h2::before {
  content: "▸ ";
  color: var(--accent-green);
}

.ref-panel-ops h2::after {
  content: none;
}

.ref-list li {
  padding: 0.38rem 0;
  min-height: 1.65rem;
  align-items: flex-start;
  border-bottom: 0;
  font-size: 0.75rem;
}

.ref-list li:last-child {
  padding-bottom: 0.2rem;
}

.ref-list li span {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.ref-list li span::after {
  content: "";
  flex: 1;
  border-bottom: 1px dotted rgba(98, 212, 255, 0.28);
  transform: translateY(-3px);
}

.ref-list strong {
  color: var(--accent-bright);
  font-weight: 500;
}

.ref-list-ops strong {
  border-radius: 2px;
  padding: 0.1rem 0.4rem;
  font-size: 0.68rem;
  color: var(--accent-green-light);
  background: rgba(110, 207, 122, 0.1);
  border-color: rgba(110, 207, 122, 0.35);
}

.sidebar-nav {
  padding-bottom: 0.15rem;
}

.sidebar-nav a {
  position: relative;
  padding: 0.34rem 0.5rem 0.34rem 1.15rem;
  border-radius: 2px;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--text-muted);
  transition: background 0.12s, color 0.12s;
}

.sidebar-nav a:last-child {
  padding-bottom: 0.45rem;
}

.sidebar-nav a::before {
  content: "›";
  position: absolute;
  left: 0.4rem;
  color: var(--text-muted-soft);
}

.sidebar-nav a:hover {
  color: var(--term-ink);
  background: var(--accent);
}

.sidebar-nav a:hover::before {
  content: ">";
  color: var(--term-ink);
}

/* Glass panels as terminal windows */
.section-panel,
.ref-panel,
.link-card,
.table-wrap,
.hero-spec,
.faq-list,
.verifier-box,
.path-card,
.field-brief,
.intent-strip,
.hub-domain-lede,
.guide-shot,
.bento-card,
.official-block,
.noscript-mirror-index,
.footer-inner,
.page-hero {
  border-color: var(--term-line) !important;
  box-shadow: var(--term-shadow), var(--liquid-glow);
}

.section-panel,
.page-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.section-panel {
  padding-top: calc(var(--term-bar-h) + var(--space-block));
}

.page-hero {
  padding: calc(var(--term-bar-h) + var(--space-block)) var(--space-block) var(--space-block);
  border: 1px solid var(--term-line);
}

.section-panel::before,
.page-hero::before {
  content: "root@torzon:~/" attr(id);
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 2;
  display: block;
  height: var(--term-bar-h);
  padding: 0 1rem 0 3rem;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  line-height: var(--term-bar-h);
  letter-spacing: 0.06em;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--text-muted);
  background: var(--term-dots), var(--term-bar);
  border-bottom: 1px solid var(--term-line);
  border-radius: 0;
  box-shadow: none;
  pointer-events: none;
}

.section-panel:not([id])::before {
  content: "root@torzon:~/session";
}

.page-hero::before {
  content: "root@torzon:~$ cat ./README.md";
}

.section-panel::after {
  inset: var(--term-bar-h) 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(98, 212, 255, 0.7), transparent);
  box-shadow: 0 0 10px rgba(98, 212, 255, 0.45);
  opacity: 0.7;
}

/* Prompts & headings */
.kicker {
  display: inline-flex;
  align-self: flex-start;
  width: fit-content;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none !important;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--accent-green-light);
}

.kicker::before {
  content: "$";
  margin-right: 0.6em;
  color: var(--accent);
}

.breadcrumb {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font-size: 0.7rem;
  color: var(--text-muted-soft);
}

.breadcrumb::before {
  content: "~/";
  margin-right: 0.2rem;
  color: var(--accent);
}

.page-hero h1,
.bento-main h1 {
  max-width: none;
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  background: none;
  color: var(--text-bright);
  text-shadow: 0 0 22px rgba(98, 212, 255, 0.35), 0 0 2px rgba(224, 251, 255, 0.6);
  animation: term-type 0.9s steps(24, end) both;
}

.page-hero h1::after {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 0.9em;
  margin-left: 0.15em;
  vertical-align: -0.05em;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(98, 212, 255, 0.7);
  animation: term-blink 1.1s steps(1) infinite;
}

.section-panel .section-header h2,
.prose > h2 {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-bright);
  text-shadow: 0 0 14px rgba(98, 212, 255, 0.25);
}

.section-panel .section-header h2::before,
.prose > h2::before {
  content: "## ";
  color: var(--accent);
}

.section-header p {
  font-size: 0.8rem;
}

.section-header p::before {
  content: "// ";
  color: var(--text-muted-soft);
}

.narrative,
.prose p,
.hub-domain-lede {
  font-size: 0.85rem;
  line-height: 1.75;
}

.narrative strong,
.prose strong {
  color: var(--text-bright);
  font-weight: 600;
}

.hub-domain-lede {
  border-left: 2px solid var(--accent) !important;
}

/* Notes & callouts as log lines */
.official-block {
  border-left: 3px solid var(--accent-green) !important;
  border-radius: var(--radius);
}

.official-block .label {
  letter-spacing: 0.12em;
  color: var(--accent-green-light);
}

.official-block .label::before {
  content: "# ";
  color: var(--accent-green);
}

.official-block p {
  font-size: 0.82rem;
}

.callout {
  position: relative;
  padding: 0.85rem 1.05rem;
  font-size: 0.8rem;
  border-radius: var(--radius);
  border: 1px solid;
  border-left-width: 3px;
}

.callout-warning {
  border-color: rgba(251, 191, 36, 0.35);
  border-left-color: var(--amber);
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.12), rgba(251, 191, 36, 0.02) 60%), var(--liquid-surface) !important;
}

.callout-health {
  border-color: rgba(248, 113, 113, 0.3);
  border-left-color: var(--danger);
  background: linear-gradient(90deg, rgba(248, 113, 113, 0.1), rgba(248, 113, 113, 0.02) 60%), var(--liquid-surface) !important;
}

.callout-warning::before,
.callout-health::before,
.age-inline-notice::before {
  margin-right: 0.6em;
  font-weight: 700;
}

.callout-warning::before {
  content: "[WARN]";
  color: var(--amber);
}

.callout-health::before {
  content: "[HEALTH]";
  color: var(--danger);
}

.age-inline-notice {
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
  font-size: 0.78rem;
}

.age-inline-notice::before {
  content: "[21+]";
  color: var(--accent);
}

.field-brief h2,
.intent-strip h2 {
  margin: 0 0 0.45rem;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.field-brief h2::before {
  content: "## ";
  color: var(--text-muted-soft);
}

.field-brief p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

@media (min-width: 900px) {
  .field-brief.intent-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: 0;
  }

  .field-brief.intent-strip > div {
    padding: var(--space-block);
    border-right: 1px dashed var(--term-line);
  }

  .field-brief.intent-strip > div:last-child {
    border-right: 0;
  }
}

/* Tables as command output */
.table-wrap {
  border-radius: var(--radius);
}

table {
  font-size: 0.8rem;
}

th,
td {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px dashed var(--term-line-dim);
}

table thead th {
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  background: rgba(98, 212, 255, 0.08) !important;
  border-bottom: 1px solid var(--term-line);
}

table thead th::before {
  content: "";
}

table tbody tr:nth-child(even) {
  background: rgba(98, 212, 255, 0.025);
}

table tbody tr:hover {
  background: rgba(98, 212, 255, 0.08);
}

table tbody tr:hover td:first-child {
  box-shadow: inset 2px 0 0 var(--accent);
}

.onion-cell {
  font-size: 0.75rem;
  color: var(--accent-bright);
  text-shadow: 0 0 10px rgba(98, 212, 255, 0.35);
}

.onion-cell:hover,
.onion-cell:focus {
  outline: 1px dashed var(--term-line-strong);
  outline-offset: -3px;
  background: rgba(98, 212, 255, 0.08);
}

.badge {
  padding: 0.15rem 0.45rem;
  border-radius: 2px;
  border: 1px solid rgba(110, 207, 122, 0.4);
  background: rgba(110, 207, 122, 0.1);
  box-shadow: none;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-green-light);
}

.badge::before {
  content: "●";
  margin-right: 0.4em;
  animation: pulse 2s ease infinite;
}

/* Buttons */
.btn {
  padding: 0.7rem 1.15rem;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.12s, box-shadow 0.15s, background 0.15s, color 0.15s;
}

.btn:disabled {
  opacity: 0.55;
  cursor: progress;
}

.btn-primary,
.btn-primary:hover {
  color: var(--term-ink);
}

.btn-primary {
  background: var(--accent);
  box-shadow:
    inset 0 0 0 1px rgba(224, 251, 255, 0.35),
    0 0 18px rgba(98, 212, 255, 0.4),
    0 10px 26px rgba(0, 122, 163, 0.35);
}

.btn-primary:hover {
  background: var(--accent-bright);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.5),
    0 0 30px rgba(98, 212, 255, 0.6),
    0 12px 30px rgba(0, 122, 163, 0.45);
}

.btn-primary::before {
  content: ">";
  margin-right: 0.55em;
}

.btn-secondary {
  color: var(--accent);
  border: 1px solid var(--term-line-strong);
  background: rgba(98, 212, 255, 0.05) !important;
  box-shadow: none;
}

.btn-secondary:hover {
  color: var(--accent-bright);
  background: rgba(98, 212, 255, 0.14) !important;
  box-shadow: 0 0 18px rgba(98, 212, 255, 0.25);
}

.btn-secondary::before,
.btn-secondary::after {
  opacity: 0.6;
}

.btn-secondary::before {
  content: "[";
  margin-right: 0.45em;
}

.btn-secondary::after {
  content: "]";
  margin-left: 0.45em;
}

.btn-sm {
  padding: 0.35rem 0.7rem;
  font-size: 0.66rem;
}

/* Lists */
.checklist li {
  padding: 0.85rem 1rem 0.85rem 3.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--term-line-dim);
  background: rgba(0, 1, 6, 0.35);
  transition: border-color 0.15s;
}

.table-wrap-checklist .checklist li {
  background: rgba(0, 1, 6, 0.55);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.checklist li:hover {
  border-color: var(--term-line-strong);
}

.checklist li::before {
  content: "[" counter(check, decimal-leading-zero) "]";
  top: 0.9rem;
  left: 0.9rem;
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
  font-size: 0.75rem;
  color: var(--accent);
}

.checklist strong {
  font-size: 0.85rem;
  color: var(--text-bright);
}

.checklist p {
  font-size: 0.8rem;
}

.steps li {
  padding-left: 3rem;
  margin-bottom: 0.85rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.steps li strong {
  color: var(--text-bright);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  width: 2.1rem;
  height: 1.5rem;
  border-radius: 2px;
  border: 1px solid var(--term-line-strong);
  background: rgba(98, 212, 255, 0.08);
  box-shadow: none;
  font-size: 0.7rem;
  color: var(--accent);
}

.steps li::after {
  content: "";
  position: absolute;
  left: 1.05rem;
  top: 1.6rem;
  bottom: -0.85rem;
  border-left: 1px dashed var(--term-line);
}

.steps li:last-child::after {
  display: none;
}

.detail-list li {
  margin-left: 0;
  padding: 0.55rem 0 0.55rem 1.4rem;
  border-left: 0;
  border-radius: 0;
  border-bottom: 1px dashed var(--term-line-dim);
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font-size: 0.85rem;
}

.detail-list li::before {
  content: "▸";
  top: 0.55rem;
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
  box-shadow: none;
  color: var(--accent);
}

/* FAQ */
.faq-list {
  border-radius: var(--radius-lg);
}

.faq-item + .faq-item {
  border-top: 1px dashed var(--term-line);
}

.faq-question {
  justify-content: flex-start;
  padding: 0.9rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
}

.faq-question::before {
  content: "?";
  margin-right: 0.15rem;
  font-weight: 800;
  color: var(--accent-green);
}

.faq-icon {
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  margin-left: auto;
  border: 1px solid var(--term-line);
  border-radius: 2px;
  font-size: 0.9rem;
  color: var(--accent);
}

.faq-question[aria-expanded="true"] {
  color: var(--accent-bright);
  background: rgba(98, 212, 255, 0.08);
}

.faq-question[aria-expanded="true"] .faq-icon {
  color: var(--term-ink);
  background: var(--accent);
}

.faq-answer {
  padding: 0 1.1rem 1.1rem 2.35rem;
  font-size: 0.82rem;
  line-height: 1.75;
}

/* Verifier as prompt */
.verifier-box {
  padding: 1.25rem;
  border-radius: var(--radius-lg);
}

.verifier-box label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.verifier-box label::before {
  content: "> ";
  color: var(--accent-green);
}

.verifier-box textarea,
.verifier-box input[type="text"] {
  padding: 0.8rem 1rem;
  border: 1px solid var(--term-line-strong);
  border-radius: 3px;
  background: rgba(0, 1, 6, 0.85);
  box-shadow: inset 0 0 18px rgba(98, 212, 255, 0.06);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-green-light);
  caret-color: var(--accent);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.verifier-box textarea:focus,
.verifier-box input[type="text"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(98, 212, 255, 0.15), 0 0 20px rgba(98, 212, 255, 0.25);
}

.verifier-box input::placeholder {
  color: var(--text-muted-soft);
}

.verifier-result {
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.verifier-result.match::before,
.verifier-result.no-match::before,
.verifier-result.invalid::before {
  font-weight: 800;
}

.verifier-result.match::before {
  content: "[ OK ] ";
}

.verifier-result.no-match::before {
  content: "[ WARN ] ";
}

.verifier-result.invalid::before {
  content: "[ ERR ] ";
}

.verifier-note {
  font-size: 0.75rem;
}

.verifier-note::before {
  content: "// ";
  color: var(--text-muted-soft);
}

.link-check-progress {
  border-radius: 3px;
  border: 1px dashed var(--term-line-strong);
  background: rgba(0, 1, 6, 0.6);
}

.link-check-progress-label {
  color: var(--accent-green-light);
}

.link-check-progress-label::after {
  content: "_";
  animation: term-blink 1s steps(1) infinite;
}

.link-check-progress-track {
  height: 8px;
  border-radius: 0;
  background: repeating-linear-gradient(90deg, rgba(98, 212, 255, 0.12) 0 6px, transparent 6px 8px);
}

.link-check-progress-bar {
  border-radius: 0;
  background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 8px);
  box-shadow: none;
  filter: drop-shadow(0 0 6px rgba(98, 212, 255, 0.6));
}

/* Cards */
.link-card {
  padding: 1.1rem 1.15rem;
  border-radius: var(--radius);
}

.link-card h3 {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--accent-bright);
}

.link-card h3::before {
  content: "./";
  color: var(--text-muted-soft);
}

.link-card p {
  font-size: 0.78rem;
}

.link-card::after {
  color: var(--accent);
}

.link-card:hover {
  border-color: var(--accent) !important;
  box-shadow:
    0 0 0 1px rgba(98, 212, 255, 0.35),
    0 0 26px rgba(98, 212, 255, 0.22),
    0 18px 40px rgba(0, 0, 0, 0.5);
}

.link-card:hover h3 {
  text-shadow: var(--term-glow);
}

.file-tag {
  padding: 0.12rem 0.4rem;
  border-radius: 2px;
  border: 1px solid var(--term-line-strong);
  background: rgba(98, 212, 255, 0.1);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.path-card,
.bento-card {
  border-radius: var(--radius);
  border-left: 2px solid var(--accent) !important;
}

.path-card h3,
.bento-card h3 {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.path-card h3::before,
.bento-card h3::before {
  content: "# ";
  color: var(--accent);
}

.path-card p {
  font-size: 0.82rem;
}

/* Home ledger */
.hero-spec,
.signal-card {
  border-radius: var(--radius-lg);
}

.signal-card-head {
  letter-spacing: 0.18em;
  color: var(--accent);
  background: rgba(98, 212, 255, 0.1);
  border-bottom: 1px solid var(--term-line);
}

.signal-card-head::before {
  content: "● ";
  color: var(--accent-green);
  animation: pulse 2s ease infinite;
}

.hero-spec .hub-meta-item,
.hero-spec .stat-box {
  background: transparent !important;
  box-shadow: none;
  border-color: var(--term-line-dim) !important;
}

.hero-spec .hub-meta-item {
  border-bottom-style: dashed;
}

.hub-meta-label {
  color: var(--text-muted-soft);
}

.hub-meta-item strong {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-bright);
}

.stat-box .value {
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--accent);
  text-shadow: var(--term-glow);
}

.stat-box .label {
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted-soft);
}

.ledger-cadence {
  font-size: 0.75rem;
  border-top-color: var(--term-line);
}

.ledger-cadence::before {
  content: "$ tail -f ops.log\A";
  white-space: pre;
  color: var(--accent-green-light);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--term-line);
  background: rgba(0, 2, 8, 0.7) !important;
}

.footer-inner {
  border-radius: var(--radius-lg);
}

.footer-brand .logo {
  font-family: var(--font-mono);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-bright);
  text-shadow: var(--term-glow);
}

.footer-brand .logo::before {
  content: "> ";
  color: var(--accent);
}

.footer-brand p {
  font-size: 0.78rem;
}

.footer-nav h3 {
  letter-spacing: 0.14em;
  color: var(--accent);
}

.footer-nav h3::before {
  content: "// ";
  color: var(--text-muted-soft);
}

.footer-nav a {
  font-size: 0.8rem;
}

.footer-nav a::before {
  content: "./";
  color: var(--text-muted-soft);
}

.footer-nav a:hover {
  color: var(--accent-bright);
  text-shadow: var(--term-glow);
}

.footer-index-id {
  color: var(--text-muted-soft);
}

.footer-bottom {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  border-top: 1px dashed var(--term-line);
}

.footer-bottom::before {
  content: "EOF · ";
  color: var(--accent);
}

.toast {
  border-radius: 3px;
  border: 1px solid var(--accent);
  background: rgba(0, 4, 12, 0.9);
  box-shadow: 0 0 24px rgba(98, 212, 255, 0.35);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-bright);
}

.toast::before {
  content: "[ ok ] ";
  color: var(--accent-green);
}

@media (max-width: 1140px) {
  .page-hero h1 {
    font-size: clamp(1.2rem, 5.6vw, 1.65rem);
  }

  .section-panel .section-header h2 {
    font-size: 0.98rem;
  }

  .section-panel {
    padding-top: calc(var(--term-bar-h) + var(--space-inset));
  }

  .verifier-box input[type="text"] {
    font-size: 16px;
  }

  .site-nav {
    background: rgba(0, 3, 9, 0.96);
    border-color: var(--term-line);
  }

  .site-nav a {
    padding: 0.6rem 0.75rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .section-panel::before,
  .page-hero::before {
    padding-left: 2.85rem;
    font-size: 0.6rem;
  }

  .topbar-item::before {
    content: none;
  }
}

/* Equal-height text areas site-wide (cards, paths, intent strip) */
.card-grid {
  align-items: stretch;
}

.card-grid > .link-card,
.card-grid > .path-card,
.card-grid > .bento-card {
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.link-card h3,
.path-card h3,
.bento-card h3 {
  flex-shrink: 0;
}

.link-card p,
.bento-card p {
  flex: 1 1 auto;
}

.path-card > p:first-of-type {
  flex: 1 1 auto;
}

.path-card > p:last-of-type {
  flex-shrink: 0;
}

@media (min-width: 900px) {
  .field-brief.intent-strip {
    align-items: stretch;
  }

  .field-brief.intent-strip > div {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .field-brief.intent-strip > div > p {
    flex: 1 1 auto;
  }
}

/* Sidebar panes: full list/nav visible (no terminal overflow clip) */
.sidebar .ref-panel {
  overflow: visible;
  height: auto;
  max-height: none;
}

.sidebar .ref-panel .ref-list,
.sidebar .ref-panel .sidebar-nav {
  overflow: visible;
}

@media (prefers-reduced-motion: reduce) {
  .aurora::before {
    display: none;
  }
}

@media print {
  .topbar,
  .site-header,
  .status-strip,
  .age-overlay,
  .nav-toggle,
  .btn,
  .toast {
    display: none !important;
  }

  .layout-shell {
    padding-top: 0 !important;
  }
  .onion-masked {
    filter: none;
  }
}
