/* Legally Brief: Federal — "Midnight Docket" · May 10, 2026 */

:root {
  --bg-primary: #060d18;
  --bg-secondary: #0b1629;
  --bg-surface: rgba(12, 28, 52, 0.72);
  --bg-elevated: rgba(18, 36, 64, 0.88);
  --text-primary: #e8f2ff;
  --text-secondary: rgba(197, 218, 245, 0.78);
  --text-muted: rgba(148, 182, 220, 0.55);
  --accent-red: #f87171;
  --accent-red-dim: rgba(248, 113, 113, 0.14);
  --accent-green: #4ade80;
  --accent-green-dim: rgba(74, 222, 128, 0.12);
  --accent-gold: #d4a857;
  --accent-gold-dim: rgba(212, 168, 87, 0.18);
  --accent-blue: #38bdf8;
  --accent-blue-dim: rgba(56, 189, 248, 0.14);
  --glass: rgba(10, 22, 42, 0.55);
  --glass-border: rgba(120, 168, 220, 0.24);
  --glass-highlight: rgba(186, 230, 253, 0.45);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  --font-display: 'Instrument Serif', Georgia, serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-tap-highlight-color: transparent;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
  overflow-x: hidden;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  z-index: 9998;
  mix-blend-mode: overlay;
}

.mono {
  font-family: var(--font-mono);
}

.ticker-strip {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding-top: env(safe-area-inset-top);
  padding-left: max(env(safe-area-inset-left), 0px);
  padding-right: max(env(safe-area-inset-right), 0px);
  background: rgba(4, 10, 22, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.18);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.65rem 0;
  white-space: nowrap;
  animation: ticker-move 46s linear infinite;
  font-family: var(--font-mono);
  font-size: clamp(0.62rem, 1.3vw, 0.78rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(224, 242, 254, 0.82);
}

.ticker-item em {
  font-style: italic;
  color: var(--accent-gold);
}

.ticker-sep {
  opacity: 0.35;
}

@keyframes ticker-move {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(46px + env(safe-area-inset-top)) clamp(1rem, 4vw, 3rem) 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__beam {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 80% 55% at 70% 30%, rgba(56, 189, 248, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 50% at 20% 70%, rgba(212, 168, 87, 0.12), transparent 50%),
    linear-gradient(165deg, var(--bg-primary) 0%, #071426 45%, var(--bg-secondary) 100%);
}

.hero__shard {
  position: absolute;
  width: min(52vw, 520px);
  height: 140%;
  background: linear-gradient(118deg, rgba(56, 189, 248, 0.07), transparent 70%);
  transform: skewX(-12deg);
  pointer-events: none;
}

.hero__shard--a {
  left: -10%;
  top: -15%;
}

.hero__shard--b {
  right: -18%;
  top: 5%;
  opacity: 0.6;
  background: linear-gradient(-118deg, rgba(212, 168, 87, 0.09), transparent 65%);
}

.hero__inner {
  position: relative;
  max-width: 980px;
  width: 100%;
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: clamp(0.62rem, 1.1vw, 0.72rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin: 0 0 1.25rem;
}

.hero__title {
  margin: 0;
  font-size: clamp(3.5rem, 12vw, 9rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.92;
}

.hero__instrument {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--text-primary);
}

.hero__instrument--italic {
  font-style: italic;
  color: var(--accent-gold);
}

.hero__stat {
  margin: 2rem 0 0;
  font-family: var(--font-mono);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  color: var(--accent-blue);
}

.hero__stat-note {
  display: block;
  margin-top: 0.5rem;
  font-size: clamp(0.72rem, 1.5vw, 0.85rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.hero__deck {
  margin: 1.75rem 0 0;
  font-size: clamp(0.95rem, 1.2vw, 1.08rem);
  font-weight: 400;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 52rem;
}

.hero__deck em {
  font-style: italic;
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 2rem;
}

.hero__tags span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  border-radius: 999px;
  color: rgba(186, 230, 253, 0.85);
}

.slice {
  padding: clamp(3.5rem, 10vw, 7rem) clamp(1rem, 4vw, 3rem);
  position: relative;
}

.slice__bound {
  max-width: 920px;
  margin: 0 auto;
}

.slice__bound--wide {
  max-width: 1100px;
}

.slice__bound--narrow {
  max-width: 640px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: clamp(0.62rem, 1vw, 0.72rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.eyebrow--gold {
  color: var(--accent-gold);
}

.eyebrow--cyan {
  color: var(--accent-blue);
}

.eyebrow--ghost {
  color: rgba(224, 242, 254, 0.45);
}

.slice__h {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.slice__h--tight {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
}

.slice__lede {
  margin: 0 0 1.5rem;
  font-size: clamp(0.95rem, 1.2vw, 1.08rem);
  color: var(--text-secondary);
  line-height: 1.78;
}

.slice__lede em {
  font-style: italic;
}

.cite {
  margin: 1.75rem 0 0;
  font-family: var(--font-mono);
  font-size: clamp(0.68rem, 1vw, 0.78rem);
  letter-spacing: 0.05em;
  color: var(--text-muted);
  line-height: 1.7;
}

.cite a {
  color: rgba(186, 230, 253, 0.65);
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

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

.cite--dim {
  margin-top: 1rem;
}

.cite--light a {
  color: rgba(15, 23, 42, 0.85);
}

.slice--mandate {
  background: linear-gradient(180deg, var(--bg-secondary), var(--bg-primary));
}

.mandate-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin-top: 2rem;
  align-items: start;
}

.mandate-visual {
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(12px);
}

.mandate-visual__label {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.mandate-bar {
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(129, 140, 248, 0.9), rgba(249, 168, 212, 0.85));
  margin-bottom: 1rem;
}

.mandate-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.mandate-row--tri {
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(148, 182, 220, 0.25);
}

.mandate-caption {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.pull {
  margin: 0;
}

.pull.slab {
  padding: 1.5rem;
  border-left: 4px solid var(--accent-gold);
  background: rgba(212, 168, 87, 0.06);
  border-radius: 0 0.75rem 0.75rem 0;
}

.pull.slab p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-style: italic;
  line-height: 1.55;
  color: rgba(248, 250, 252, 0.94);
}

.pull.slab footer {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-style: normal;
}

.slice--pill {
  background: radial-gradient(ellipse 90% 70% at 50% 0%, rgba(56, 189, 248, 0.08), transparent 55%), var(--bg-primary);
}

.pill-head {
  max-width: 900px;
}

.pill-timeline {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: pill;
  border-left: 2px solid rgba(56, 189, 248, 0.35);
}

.pill-timeline li {
  position: relative;
  padding: 1.1rem 0 1.1rem 1.75rem;
  display: grid;
  grid-template-columns: minmax(120px, 160px) 1fr;
  gap: 1rem;
  color: var(--text-secondary);
  font-size: clamp(0.9rem, 1.1vw, 1.02rem);
}

.pill-timeline li::before {
  counter-increment: pill;
  content: '';
  position: absolute;
  left: -7px;
  top: 1.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-blue);
  box-shadow: 0 0 0 4px var(--bg-primary);
}

.slice--apple {
  padding: 0;
}

.apple-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: min(70vh, 720px);
}

.apple-split__panel {
  padding: clamp(2.5rem, 6vw, 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.apple-split__panel--dark {
  background: var(--bg-secondary);
}

.apple-split__panel--signal {
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.12), rgba(12, 28, 52, 0.95));
  border-left: 1px solid rgba(56, 189, 248, 0.22);
}

.apple-kicker {
  font-size: 0.65rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.65);
  margin: 0 0 1rem;
}

.apple-quote {
  margin: 0;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.65;
  color: rgba(15, 23, 42, 0.92);
}

.apple-split__panel--signal .cite a {
  color: rgba(15, 23, 42, 0.75);
}

.slice--rail {
  background: var(--bg-secondary);
}

.horiz {
  margin-top: 2rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
}

.horiz__track {
  display: flex;
  gap: 1rem;
  width: max-content;
  padding: 0.25rem 0;
}

.horiz__card {
  scroll-snap-align: start;
  flex: 0 0 min(280px, 78vw);
  padding: 1.35rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(10px);
}

.horiz__card h3 {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--accent-gold);
}

.horiz__card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.slice--nitro {
  background: linear-gradient(180deg, var(--bg-primary), #050a14);
}

.nitro {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 2fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.nitro__big {
  margin: 0;
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  color: rgba(248, 113, 113, 0.85);
  line-height: 1;
}

.slice--ledger .meter {
  margin-top: 2rem;
}

.meter__label {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.meter__track {
  height: 10px;
  border-radius: 999px;
  background: rgba(148, 182, 220, 0.12);
  overflow: hidden;
}

.meter__fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-gold));
}

.meter__cap {
  margin-top: 0.45rem;
  font-size: 0.68rem;
  color: var(--accent-blue);
}

.slice--doj {
  padding-top: 0;
}

.doj-banner {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem);
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.14), rgba(12, 42, 30, 0.85));
  border: 1px solid rgba(74, 222, 128, 0.28);
}

.doj-banner .slice__h {
  color: #ecfdf5;
}

.doj-banner .slice__lede {
  color: rgba(209, 250, 229, 0.85);
}

.doj-banner .cite--light a {
  color: rgba(6, 78, 59, 0.95);
}

.slice--yemen {
  background: var(--bg-secondary);
}

.yemen {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
}

.yemen__flag {
  height: 140px;
  border-radius: 0.75rem;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.35), rgba(30, 58, 138, 0.55));
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.slice--stock {
  border-top: 1px solid rgba(148, 182, 220, 0.12);
  border-bottom: 1px solid rgba(148, 182, 220, 0.12);
}

.bundle {
  max-width: 1050px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.bundle__col {
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: 1.25rem;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(12px);
}

.bundle__col--accent {
  background: linear-gradient(165deg, rgba(212, 168, 87, 0.14), rgba(8, 18, 34, 0.92));
}

.bundle__title {
  margin: 0.5rem 0 1rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
}

.ahead-zigzag {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ahead-node {
  padding: 1.5rem 0 1.5rem 1.5rem;
  border-left: 2px solid rgba(212, 168, 87, 0.45);
  position: relative;
}

.ahead-node:nth-child(even) {
  margin-left: clamp(0px, 4vw, 48px);
}

.ahead-node__when {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--accent-gold);
  margin-bottom: 0.35rem;
}

.ahead-node__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
}

.ahead-node p {
  margin: 0;
  color: var(--text-secondary);
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  line-height: 1.65;
}

.site-footer {
  text-align: center;
  padding: clamp(3rem, 8vw, 5rem) clamp(1rem, 4vw, 3rem);
  padding-bottom: calc(3rem + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(148, 182, 220, 0.15);
  background: #040814;
}

.site-footer__brand {
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 1.2vw, 0.82rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(186, 230, 253, 0.85);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.site-footer__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 14px rgba(74, 222, 128, 0.65);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(1.15);
  }
}

.site-footer__regen {
  margin: 1.25rem auto 0;
  max-width: 26rem;
  font-size: clamp(0.82rem, 1.2vw, 0.92rem);
  color: var(--text-muted);
  line-height: 1.6;
}

.site-footer__session {
  margin: 1.25rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-gold);
}

.site-footer__timestamp {
  margin: 0.75rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: rgba(148, 182, 220, 0.55);
}

.site-footer .source {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(186, 230, 253, 0.55);
  text-decoration: none;
  border-bottom: 1px solid rgba(56, 189, 248, 0.35);
  min-height: 44px;
  align-items: center;
}

.site-footer .source:hover {
  color: var(--accent-blue);
}

.js-reveal,
.js-fade {
  opacity: 0;
  transform: translateY(26px);
}

.js-fade {
  transform: translateY(18px);
}

@media (max-width: 768px) {
  .mandate-grid {
    grid-template-columns: 1fr;
  }

  .apple-split {
    grid-template-columns: 1fr;
  }

  .apple-split__panel--signal {
    border-left: none;
    border-top: 1px solid rgba(56, 189, 248, 0.22);
  }

  .nitro {
    grid-template-columns: 1fr;
  }

  .yemen {
    grid-template-columns: 1fr;
  }

  .yemen__flag {
    height: 80px;
    width: 100%;
  }

  .bundle {
    grid-template-columns: 1fr;
  }

  .pill-timeline li {
    grid-template-columns: 1fr;
  }

  .ahead-node:nth-child(even) {
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .horiz__card {
    flex-basis: 85vw;
  }
}
