/* Legally Brief: Federal — "Split Authority" · April 19, 2026 */
/* Thesis: April sitting on deck; D.C. Circuit ends a high-profile contempt track while Congress weighs war powers and trade remedies hit a hard deadline */

:root {
  --bg-primary: #07060a;
  --bg-secondary: #0f0e14;
  --bg-surface: rgba(232, 220, 200, 0.06);
  --bg-elevated: rgba(120, 200, 255, 0.07);
  --text-primary: #f4efe6;
  --text-secondary: #b9b0a3;
  --text-muted: #6f6a62;
  --accent-red: #e24a3b;
  --accent-red-dim: rgba(226, 74, 59, 0.14);
  --accent-green: #3ecf8e;
  --accent-green-dim: rgba(62, 207, 142, 0.12);
  --accent-gold: #e8c27a;
  --accent-gold-dim: rgba(232, 194, 122, 0.14);
  --accent-blue: #7ec8ff;
  --glass: rgba(18, 16, 28, 0.62);
  --glass-border: rgba(232, 194, 122, 0.22);
  --glass-highlight: rgba(126, 200, 255, 0.35);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

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

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

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

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

a {
  color: var(--accent-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

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

.ticker-strip {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  height: 46px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: rgba(5, 4, 8, 0.72);
  border-bottom: 1px solid rgba(232, 194, 122, 0.2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding-left: calc(0.75rem + env(safe-area-inset-left));
  padding-right: calc(0.75rem + env(safe-area-inset-right));
  padding-top: env(safe-area-inset-top);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  white-space: nowrap;
  animation: ticker-marquee 46s linear infinite;
  will-change: transform;
}

.ticker-item {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #dfe6ee;
}

.ticker-sep {
  color: var(--accent-gold);
  opacity: 0.85;
  font-size: 0.85rem;
}

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

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: clamp(1.25rem, 4vw, 3rem);
  padding-bottom: calc(2.5rem + env(safe-area-inset-bottom));
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(126, 200, 255, 0.16), transparent 55%),
    radial-gradient(90% 70% at 100% 20%, rgba(226, 74, 59, 0.18), transparent 50%),
    linear-gradient(165deg, #0a0a10 0%, var(--bg-primary) 45%, #0c0a12 100%);
  z-index: 0;
}

.hero__shard {
  position: absolute;
  width: min(52vw, 420px);
  height: 140%;
  top: -20%;
  right: -8%;
  background: linear-gradient(120deg, rgba(232, 194, 122, 0.12), transparent 70%);
  transform: skewX(-8deg);
  z-index: 0;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  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(--text-muted);
  margin-bottom: 1rem;
}

.hero__headline {
  font-size: clamp(3.5rem, 11vw, 9rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.04em;
  max-width: 14ch;
}

.hero__headline span {
  display: block;
}

.hero__accent {
  color: var(--accent-gold);
  font-style: italic;
  font-weight: 800;
}

.hero__deck {
  margin-top: clamp(1.25rem, 3vw, 2rem);
  max-width: 52rem;
  font-size: clamp(0.95rem, 1.25vw, 1.12rem);
  color: var(--text-secondary);
}

.hero__ribbon {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.hero__tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 999px;
  color: var(--text-primary);
}

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

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

.source-line {
  margin-top: 1.75rem;
  font-family: var(--font-mono);
  font-size: clamp(0.65rem, 0.95vw, 0.74rem);
  letter-spacing: 0.04em;
  color: var(--text-muted);
  line-height: 1.8;
}

.source-line a {
  color: var(--text-secondary);
  text-decoration-color: rgba(126, 200, 255, 0.35);
}

/* --- Sections --- */

.sec {
  position: relative;
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 3rem);
}

.sec__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.sec__title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 1rem;
}

.sec__lede {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  font-weight: 400;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 68ch;
}

/* Section skins */
.sec--rift {
  background: linear-gradient(180deg, var(--bg-secondary), var(--bg-primary));
}

.sec--plate {
  background: radial-gradient(80% 60% at 10% 0%, rgba(126, 200, 255, 0.08), transparent),
    var(--bg-primary);
}

.sec--ember {
  background: linear-gradient(90deg, rgba(226, 74, 59, 0.08), transparent 55%);
}

.sec--ledger {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sec--sky {
  background: linear-gradient(135deg, #0b1018, var(--bg-primary));
}

.js-reveal {
  opacity: 0;
  transform: translateY(28px);
}

.js-fade {
  opacity: 0;
}

/* D.C. Circuit split layout */
.dc-split {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 3vw, 2rem);
}

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

.dc-major {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: 6px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.dc-diss {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: 6px;
  border: 1px solid var(--accent-red-dim);
  background: rgba(226, 74, 59, 0.06);
}

.dc-diss .sec__lede {
  color: #d8cfc4;
}

/* Panel vote rail */
.vote-rail {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.vote-chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.65rem 0.85rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(232, 194, 122, 0.12);
  color: var(--text-primary);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.vote-chip--diss {
  background: var(--accent-red-dim);
  border-color: rgba(226, 74, 59, 0.35);
}

/* House floor meter */
.house-meter {
  margin-top: 2rem;
  max-width: 640px;
}

.house-meter__row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.house-bars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 480px) {
  .house-bars { grid-template-columns: 1fr; }
}

.house-bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.house-bar__fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
}

.house-bar__fill--yea {
  background: linear-gradient(90deg, var(--accent-blue), #a8d7ff);
}

.house-bar__fill--nay {
  background: linear-gradient(90deg, var(--accent-red), #ff8a78);
}

.house-caption {
  margin-top: 0.75rem;
  font-size: clamp(0.85rem, 1.05vw, 0.95rem);
  color: var(--text-secondary);
}

/* Stippled "indictment" column */
.indict-stack {
  margin-top: 2rem;
  border-left: 3px solid var(--accent-gold);
  padding-left: clamp(1rem, 2.5vw, 1.5rem);
}

.indict-stack p + p {
  margin-top: 1rem;
}

.big-stat {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1rem 2rem;
}

.big-stat__num {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent-gold);
  line-height: 1;
}

.big-stat__cap {
  flex: 1 1 220px;
  font-size: clamp(0.95rem, 1.15vw, 1.05rem);
  color: var(--text-secondary);
  max-width: 36ch;
}

/* Timeline rail */
.time-rail {
  margin-top: 2rem;
  position: relative;
  padding-left: 1.5rem;
}

.time-rail::before {
  content: '';
  position: absolute;
  left: 0.35rem;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-gold), transparent);
}

.time-node {
  position: relative;
  padding: 1rem 0 1rem 1rem;
}

.time-node::before {
  content: '';
  position: absolute;
  left: -1.2rem;
  top: 1.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 0 4px rgba(232, 194, 122, 0.15);
}

.time-node h3 {
  font-size: clamp(1rem, 2vw, 1.15rem);
  margin-bottom: 0.35rem;
}

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

/* Quote wall */
.quote-wall {
  margin-top: 2rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: linear-gradient(120deg, rgba(126, 200, 255, 0.08), rgba(232, 194, 122, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}

.quote-wall blockquote {
  font-size: clamp(1.15rem, 2.4vw, 1.65rem);
  font-style: italic;
  line-height: 1.45;
  color: var(--text-primary);
}

.quote-wall cite {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-style: normal;
}

/* Trade band */
.trade-band {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
}

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

.trade-card {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: 6px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.trade-kpi {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  color: var(--accent-blue);
  font-weight: 700;
}

/* FCC capsule */
.fcc-capsule {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: stretch;
}

.fcc-pill {
  flex: 1 1 260px;
  padding: 1.25rem 1.5rem;
  border-radius: 999px 8px 8px 999px;
  border: 1px solid rgba(126, 200, 255, 0.25);
  background: rgba(10, 18, 30, 0.65);
}

.fcc-pill p {
  font-size: clamp(0.92rem, 1.1vw, 1.02rem);
  color: var(--text-secondary);
  line-height: 1.65;
}

/* State stripe */
.state-stripe {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
}

@media (max-width: 480px) {
  .state-stripe { grid-template-columns: 1fr; }
}

.state-flag {
  font-family: var(--font-mono);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-size: 0.65rem;
  color: var(--accent-gold);
  border: 1px solid var(--glass-border);
  padding: 1rem 0.35rem;
  border-radius: 4px;
  background: var(--glass);
}

/* NOAA narrow column */
.nmfs-note {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-left: 2px solid var(--accent-blue);
  background: rgba(126, 200, 255, 0.05);
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Week ahead — horizontal scroll on small screens */
.ahead-scroller {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.ahead-card {
  flex: 0 0 min(300px, 85vw);
  scroll-snap-align: start;
  padding: 1.25rem 1.35rem;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.ahead-card__when {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.ahead-card h3 {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  margin-bottom: 0.5rem;
}

.ahead-card p {
  font-size: clamp(0.88rem, 1.05vw, 0.98rem);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Footer */
.site-footer {
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 4vw, 2rem);
  padding-bottom: calc(2.5rem + env(safe-area-inset-bottom));
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #050409;
}

.site-footer__brand {
  font-weight: 700;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.site-footer__pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 0 6px var(--accent-green-dim);
  animation: pulse 2.4s ease-in-out infinite;
}

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

.site-footer__regen,
.site-footer__session,
.site-footer__timestamp {
  color: var(--text-secondary);
  font-size: clamp(0.85rem, 1.1vw, 0.95rem);
  line-height: 1.6;
  max-width: 40rem;
  margin: 0 auto 0.5rem;
}

.site-footer__session {
  font-family: var(--font-mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.site-footer__timestamp {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.source {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-blue);
  text-decoration: none;
  border: 1px solid rgba(126, 200, 255, 0.25);
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  margin-top: 1.5rem;
  min-height: 44px;
}

.source:hover {
  border-color: var(--glass-highlight);
}

.leg-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin-top: 0.5rem;
}

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

.threat-meter {
  margin-top: 1.75rem;
  max-width: 520px;
}

.threat-meter__label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
