/* ── Legally Brief: Texas — Enforcement Week Edition — March 22, 2026 ── */
:root {
  --bg-primary: #060b12;
  --bg-secondary: #0c1624;
  --bg-surface: rgba(255,255,255,0.03);
  --bg-elevated: rgba(255,255,255,0.055);
  --text-primary: #dde4ee;
  --text-secondary: #6b7b96;
  --text-muted: #354255;
  --accent-red: #e11d48;
  --accent-red-dim: rgba(225,29,72,0.1);
  --accent-green: #10b981;
  --accent-green-dim: rgba(16,185,129,0.1);
  --accent-gold: #c2713a;
  --accent-gold-dim: rgba(194,113,58,0.1);
  --accent-blue: #38bdf8;
  --glass: rgba(255,255,255,0.035);
  --glass-border: rgba(255,255,255,0.07);
  --glass-highlight: rgba(255,255,255,0.13);
  --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);
  --ticker-h: 40px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.65;
  padding-top: var(--ticker-h);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  -webkit-tap-highlight-color: transparent;
}

/* ── Grain Texture ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* ── Legal Headlines Ticker ── */
.ticker-strip {
  position: fixed;
  top: 0;
  left: env(safe-area-inset-left);
  right: env(safe-area-inset-right);
  padding-top: env(safe-area-inset-top);
  height: calc(var(--ticker-h) + env(safe-area-inset-top));
  background: rgba(4,7,14,0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(194,113,58,0.15);
  z-index: 9999;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.ticker-track {
  display: flex;
  align-items: center;
  height: var(--ticker-h);
  overflow: hidden;
  width: 100%;
}

.ticker-content {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: ticker-roll 65s linear infinite;
  will-change: transform;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 2rem;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.ticker-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-gold);
  background: var(--accent-gold-dim);
  padding: 0.15rem 0.4rem;
  border-radius: 2px;
}

.ticker-label--red    { color: var(--accent-red);   background: var(--accent-red-dim); }
.ticker-label--green  { color: var(--accent-green);  background: var(--accent-green-dim); }
.ticker-label--copper { color: var(--accent-gold);   background: var(--accent-gold-dim); border: 1px solid rgba(194,113,58,0.3); }

.ticker-divider {
  color: rgba(255,255,255,0.1);
  font-size: 0.5rem;
  padding: 0 0.5rem;
}

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

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: calc(var(--ticker-h) + env(safe-area-inset-top) + 3rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding-left: clamp(1.5rem, 5vw, 4rem);
  padding-right: clamp(1.5rem, 5vw, 4rem);
  padding-bottom: 5rem;
}

/* Dot matrix background — different from previous grid-line treatment */
.hero__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(194,113,58,0.1) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 75% 85% at 50% 40%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 75% 85% at 50% 40%, black 20%, transparent 100%);
  z-index: 0;
}

/* Cold atmospheric glow — blue instead of warm gold */
.hero__atmosphere {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 50% 45%, rgba(56,189,248,0.04) 0%, transparent 65%),
    radial-gradient(ellipse 35% 30% at 15% 70%, rgba(194,113,58,0.05) 0%, transparent 55%),
    radial-gradient(ellipse 40% 35% at 85% 25%, rgba(16,185,129,0.025) 0%, transparent 55%);
  z-index: 0;
}

/* Giant decorative section-symbol — typographic background element */
.hero__section-symbol {
  position: absolute;
  top: calc(var(--ticker-h) + env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: clamp(8rem, 35vw, 30rem);
  font-weight: 800;
  color: rgba(194,113,58,0.04);
  pointer-events: none;
  z-index: 0;
  white-space: nowrap;
  line-height: 1;
  letter-spacing: -0.05em;
  user-select: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1000px;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.hero__edition-badge {
  font-family: var(--font-mono);
  font-size: clamp(0.52rem, 0.9vw, 0.62rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-gold);
  border: 1px solid rgba(194,113,58,0.35);
  padding: 0.3rem 0.8rem;
  border-radius: 2px;
}

.hero__date-badge {
  font-family: var(--font-mono);
  font-size: clamp(0.52rem, 0.9vw, 0.62rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero__equinox {
  font-family: var(--font-mono);
  font-size: clamp(0.48rem, 0.85vw, 0.58rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(56,189,248,0.4);
  font-style: italic;
}

.hero__title {
  font-family: var(--font-sans);
  font-size: clamp(5.5rem, 22vw, 16rem);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: var(--text-primary);
  margin-bottom: 1.75rem;
  text-transform: uppercase;
}

.hero__title em {
  font-style: normal;
  color: var(--accent-gold);
  -webkit-text-stroke: 0px;
}

.hero__deck {
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 540px;
  margin: 0 auto 3rem;
  line-height: 1.65;
}

/* Enforcement milestones — 4-cell grid (completely different from previous hero docket) */
.hero__milestones {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(194,113,58,0.1);
  border: 1px solid rgba(194,113,58,0.15);
  border-radius: 4px;
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
}

.hero__milestone {
  background: var(--bg-primary);
  padding: 1.25rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.hero__milestone-date {
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 1.5vw, 0.85rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}

.hero__milestone-label {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.3;
}

.hero__milestone-status {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.2rem 0.4rem;
  border-radius: 2px;
  margin-top: 0.3rem;
}

.hero__milestone-status--active  { color: var(--accent-red);   background: var(--accent-red-dim); }
.hero__milestone-status--pending { color: var(--accent-gold);  background: var(--accent-gold-dim); }
.hero__milestone-status--warning { color: #f97316; background: rgba(249,115,22,0.1); }
.hero__milestone-status--decided { color: var(--accent-blue);  background: rgba(56,189,248,0.1); }

.hero__scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.hero__scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--accent-gold), transparent);
  animation: scroll-breathe 2.5s ease-in-out infinite;
}

@keyframes scroll-breathe {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.8; }
}

.hero__scroll-label {
  font-family: var(--font-mono);
  font-size: 0.48rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Shared Section Styles ── */
.section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 5vw, 4rem);
  border-top: 1px solid rgba(255,255,255,0.04);
  position: relative;
}

.section__inner {
  max-width: 860px;
  margin: 0 auto;
}

.section__inner--wide {
  max-width: 1060px;
  margin: 0 auto;
}

/* File number badge — replaces eyebrow-only approach from previous edition */
.section__file-num {
  font-family: var(--font-mono);
  font-size: clamp(0.52rem, 0.9vw, 0.62rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 0.6rem;
  opacity: 0.7;
}

.section__file-num--red    { color: var(--accent-red); }
.section__file-num--green  { color: var(--accent-green); }
.section__file-num--copper { color: var(--accent-gold); }

.section__eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(0.52rem, 0.88vw, 0.62rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-gold);
  border-left: 2px solid var(--accent-gold);
  padding-left: 0.75rem;
  margin-bottom: 1.4rem;
  line-height: 1.6;
}

.section__eyebrow--red    { color: var(--accent-red);   border-color: var(--accent-red); }
.section__eyebrow--green  { color: var(--accent-green);  border-color: var(--accent-green); }
.section__eyebrow--copper { color: var(--accent-gold);   border-color: var(--accent-gold); }

.section__headline {
  font-family: var(--font-sans);
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.0;
  color: var(--text-primary);
  margin-bottom: 1.75rem;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.section__body {
  font-size: clamp(0.93rem, 1.55vw, 1.05rem);
  color: var(--text-secondary);
  line-height: 1.78;
  margin-bottom: 1.25rem;
}

.section__body strong {
  color: var(--text-primary);
  font-weight: 600;
}

.source {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: clamp(0.5rem, 0.82vw, 0.6rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  margin-top: 0.75rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.25s, border-color 0.25s;
  min-height: 44px;
}

.source:hover {
  color: var(--accent-gold);
  border-color: rgba(194,113,58,0.35);
}

.source::before { content: '↗'; font-size: 0.68rem; opacity: 0.55; }

/* ── Section 1: PFLAG — Opinion Ledger (new layout, different from terminal-card) ── */
.section--pflag {
  background: linear-gradient(160deg, rgba(56,189,248,0.025) 0%, var(--bg-primary) 50%);
  border-left: 3px solid rgba(56,189,248,0.3);
}

.opinion-ledger {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  margin: 2rem 0;
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  overflow: hidden;
}

.opinion-ledger__holding {
  padding: 2rem;
  background: rgba(56,189,248,0.03);
  border-right: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.opinion-ledger__holding-label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 0.25rem;
}

.opinion-ledger__quote {
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  font-weight: 500;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.65;
  border-left: 3px solid var(--accent-blue);
  padding-left: 1.1rem;
}

.opinion-ledger__attribution {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  line-height: 1.6;
}

.opinion-ledger__attribution em {
  font-style: italic;
  color: var(--text-secondary);
}

.opinion-ledger__breakdown {
  display: flex;
  flex-direction: column;
}

.opinion-ledger__row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.opinion-ledger__row:last-child { border-bottom: none; }

.opinion-ledger__key {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.9rem 1rem;
  border-right: 1px solid rgba(255,255,255,0.04);
  background: rgba(255,255,255,0.015);
  display: flex;
  align-items: flex-start;
  padding-top: 1rem;
}

.opinion-ledger__val {
  padding: 0.9rem 1rem;
  font-size: clamp(0.78rem, 1.25vw, 0.88rem);
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── Section 2: SB 12 Enforcement — Timeline layout ── */
.section--sb12-enforcement {
  background: linear-gradient(180deg, rgba(225,29,72,0.03) 0%, var(--bg-secondary) 100%);
}

.enforcement-timeline {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin: 2.5rem 0;
  overflow-x: auto;
  padding-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
}

.etl-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 130px;
  flex: 1;
  text-align: center;
  gap: 0.5rem;
}

.etl-node__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-muted);
  border: 2px solid var(--bg-primary);
  box-shadow: 0 0 0 2px var(--text-muted);
  flex-shrink: 0;
}

.etl-node--done .etl-node__dot {
  background: var(--accent-red);
  box-shadow: 0 0 0 2px var(--accent-red);
}

.etl-node--active .etl-node__dot {
  background: var(--accent-gold);
  box-shadow: 0 0 0 2px var(--accent-gold), 0 0 12px rgba(194,113,58,0.4);
  animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 2px var(--accent-gold), 0 0 8px rgba(194,113,58,0.3); }
  50% { box-shadow: 0 0 0 2px var(--accent-gold), 0 0 18px rgba(194,113,58,0.6); }
}

.etl-node__label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.etl-node--done .etl-node__label,
.etl-node--active .etl-node__label { color: var(--text-secondary); }

.etl-node--active .etl-node__label { color: var(--accent-gold); }

.etl-node__desc {
  font-size: clamp(0.7rem, 1.1vw, 0.8rem);
  color: var(--text-muted);
  line-height: 1.45;
  padding: 0 0.25rem;
}

.etl-node--done .etl-node__desc { color: var(--text-secondary); }
.etl-node--active .etl-node__desc { color: var(--text-primary); font-weight: 500; }

.etl-connector {
  flex: 1;
  height: 2px;
  background: var(--text-muted);
  opacity: 0.2;
  align-self: flex-start;
  margin-top: 5px;
  min-width: 20px;
}

.etl-connector--done { background: var(--accent-red); opacity: 0.5; }
.etl-connector--active { background: var(--accent-gold); opacity: 0.6; }

.enforcement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(225,29,72,0.1);
  border: 1px solid rgba(225,29,72,0.12);
  border-radius: 4px;
  overflow: hidden;
  margin: 2rem 0;
}

.enforcement-cell {
  background: var(--bg-primary);
  padding: 1.25rem;
  text-align: center;
}

.enforcement-cell__val {
  font-family: var(--font-sans);
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-weight: 800;
  color: var(--accent-red);
  display: block;
  margin-bottom: 0.35rem;
}

.enforcement-cell__desc {
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Section 3: Broadnax — Dark Solemnity ── */
.section--broadnax {
  background: linear-gradient(180deg, #03060c 0%, var(--bg-primary) 100%);
  border-left: 3px solid rgba(225,29,72,0.35);
}

.execution-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem;
  border: 1px solid rgba(225,29,72,0.15);
  border-radius: 4px;
  background: rgba(225,29,72,0.04);
  margin: 2rem 0;
}

.execution-header__name {
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
  font-style: italic;
}

.execution-header__dkt {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.execution-header__days {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--accent-red);
  line-height: 1;
  text-align: right;
  white-space: nowrap;
}

.execution-header__until {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(225,29,72,0.55);
  text-align: right;
}

.confession-claims {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(225,29,72,0.12);
  border-radius: 4px;
  overflow: hidden;
  margin: 2rem 0;
}

.confession-claim {
  display: grid;
  grid-template-columns: 52px 1fr;
  border-bottom: 1px solid rgba(225,29,72,0.07);
}

.confession-claim:last-child { border-bottom: none; }

.confession-claim__num {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(225,29,72,0.4);
  font-weight: 700;
  background: rgba(225,29,72,0.04);
  border-right: 1px solid rgba(225,29,72,0.07);
}

.confession-claim__content {
  padding: 1rem 1.25rem;
}

.confession-claim__label {
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(225,29,72,0.55);
  margin-bottom: 0.35rem;
}

.confession-claim__text {
  font-size: clamp(0.8rem, 1.3vw, 0.9rem);
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── Section 4: S&B Engineers — Before/After (different from split-panel) ── */
.section--indemnity {
  background: var(--bg-secondary);
}

.before-after {
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  gap: 0;
  margin: 2rem 0;
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  overflow: hidden;
}

.before-after__col {
  padding: 2rem;
}

.before-after__col--before {
  background: rgba(255,255,255,0.015);
  border-right: none;
}

.before-after__col--after {
  background: rgba(16,185,129,0.02);
}

.before-after__label {
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: block;
}

.before-after__col--after .before-after__label { color: var(--accent-green); }

.before-after__content p {
  font-size: clamp(0.82rem, 1.3vw, 0.93rem);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.before-after__outcome {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-red);
  padding: 0.5rem;
  border: 1px solid rgba(225,29,72,0.2);
  border-radius: 2px;
  background: var(--accent-red-dim);
  text-align: center;
  margin-top: 0.5rem;
}

.before-after__outcome--green {
  color: var(--accent-green);
  border-color: rgba(16,185,129,0.2);
  background: var(--accent-green-dim);
}

.before-after__divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border-left: 1px solid var(--glass-border);
  border-right: 1px solid var(--glass-border);
  gap: 0.4rem;
  padding: 0.5rem 0;
}

.before-after__divider-line {
  flex: 1;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--glass-border), transparent);
}

.before-after__divider-label {
  font-family: var(--font-mono);
  font-size: 0.48rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

/* ── Section 5: Voucher Extension — Pipeline Tracker (new style) ── */
.section--voucher {
  background: var(--bg-primary);
  border-left: 3px solid rgba(16,185,129,0.25);
}

.pipeline-tracker {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin: 2.5rem 0;
  overflow-x: auto;
  padding-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
}

.pipe-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 110px;
  flex: 1;
  text-align: center;
  gap: 0.5rem;
}

.pipe-stage__circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  border: 2px solid var(--text-muted);
  background: var(--bg-surface);
  color: var(--text-muted);
}

.pipe-stage--done .pipe-stage__circle {
  border-color: var(--accent-green);
  background: var(--accent-green-dim);
  color: var(--accent-green);
}

.pipe-stage--active .pipe-stage__circle {
  border-color: var(--accent-gold);
  background: var(--accent-gold-dim);
  color: var(--accent-gold);
  box-shadow: 0 0 12px rgba(194,113,58,0.35);
}

.pipe-stage__label {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.4;
}

.pipe-stage--done .pipe-stage__label { color: var(--accent-green); }
.pipe-stage--active .pipe-stage__label { color: var(--accent-gold); }

.pipe-connector {
  flex: 1;
  height: 2px;
  background: var(--text-muted);
  opacity: 0.2;
  align-self: flex-start;
  margin-top: 16px;
  min-width: 15px;
}

.pipe-connector--done { background: var(--accent-green); opacity: 0.5; }

.voucher-callout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.12);
  border-radius: 4px;
  overflow: hidden;
  margin: 2rem 0;
}

.voucher-callout__stat {
  background: var(--bg-primary);
  padding: 1.5rem 1rem;
  text-align: center;
}

.voucher-callout__num {
  font-family: var(--font-sans);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--accent-green);
  line-height: 1;
  display: block;
  margin-bottom: 0.4rem;
}

.voucher-callout__unit {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ── Section 6: Red River — Authority Comparison ── */
.section--redriver {
  background: var(--bg-secondary);
}

.authority-compare {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 0;
  margin: 2rem 0;
}

.authority-col {
  padding: 2rem;
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.authority-col--old {
  background: rgba(255,255,255,0.02);
  border-color: rgba(225,29,72,0.1);
}

.authority-col--new {
  background: rgba(16,185,129,0.015);
  border-color: rgba(16,185,129,0.1);
}

.authority-col__badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  align-self: flex-start;
}

.authority-col__badge--red   { color: var(--accent-red);   background: var(--accent-red-dim); }
.authority-col__badge--green { color: var(--accent-green); background: var(--accent-green-dim); }

.authority-col__title {
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 1.7vw, 1.1rem);
  font-weight: 700;
  color: var(--text-primary);
}

.authority-col__citation {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  line-height: 1.6;
  font-style: italic;
}

.authority-col__text {
  font-size: clamp(0.8rem, 1.3vw, 0.9rem);
  color: var(--text-secondary);
  line-height: 1.65;
}

.authority-col__outcome {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-red);
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-weight: 700;
}

.authority-col__outcome--green { color: var(--accent-green); }

.authority-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0 0.5rem;
}

.authority-divider__year {
  font-family: var(--font-sans);
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  font-weight: 800;
  color: var(--text-muted);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.authority-divider__label {
  font-family: var(--font-mono);
  font-size: 0.48rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.5;
  writing-mode: vertical-rl;
}

/* ── Section 7: Hemp Rules — Formula + Fee Compare ── */
.section--hemp {
  background: var(--bg-primary);
}

.hemp-formula {
  border: 1px solid rgba(194,113,58,0.2);
  border-radius: 4px;
  padding: 1.75rem;
  margin: 2rem 0;
  background: rgba(194,113,58,0.03);
}

.hemp-formula__label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 1.25rem;
}

.hemp-formula__equation {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.hemp-formula__part {
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 1.6vw, 1.05rem);
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  padding: 0.4rem 0.75rem;
  border-radius: 3px;
}

.hemp-formula__part--accent {
  color: var(--accent-gold);
  border-color: rgba(194,113,58,0.3);
  background: var(--accent-gold-dim);
}

.hemp-formula__equals,
.hemp-formula__plus {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-muted);
  font-weight: 700;
}

.hemp-formula__note {
  font-size: clamp(0.8rem, 1.3vw, 0.9rem);
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Fee comparison — vertical table (different from previous bar chart) */
.fee-compare {
  margin: 2rem 0;
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  overflow: hidden;
}

.fee-compare__header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--glass-border);
}

.fee-compare__col-label {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.7rem 1rem;
}

.fee-compare__row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.fee-compare__row:last-child { border-bottom: none; }

.fee-compare__cell {
  padding: 0.9rem 1rem;
  font-family: var(--font-mono);
  font-size: clamp(0.75rem, 1.2vw, 0.9rem);
  color: var(--text-secondary);
}

.fee-compare__cell--label {
  font-weight: 600;
  color: var(--text-primary);
}

.fee-compare__cell--new {
  color: var(--accent-gold);
  font-weight: 700;
}

.fee-compare__cell--pct {
  color: var(--accent-red);
  font-weight: 700;
}

/* ── Section 8: Railroad Commission — CCS Data ── */
.section--rrc {
  background: var(--bg-secondary);
}

.ccs-data {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(56,189,248,0.08);
  border: 1px solid rgba(56,189,248,0.1);
  border-radius: 4px;
  overflow: hidden;
  margin: 2rem 0;
}

.ccs-stat {
  background: var(--bg-secondary);
  padding: 1.5rem 1.25rem;
  text-align: center;
}

.ccs-stat__num {
  font-family: var(--font-sans);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--accent-blue);
  line-height: 1;
  display: block;
  margin-bottom: 0.5rem;
}

.ccs-stat__label {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Regulatory table — different from terminal card */
.rrc-table {
  border: 1px solid rgba(56,189,248,0.1);
  border-radius: 4px;
  overflow: hidden;
  margin: 2rem 0;
}

.rrc-table__header {
  padding: 0.75rem 1.25rem;
  background: rgba(56,189,248,0.05);
  border-bottom: 1px solid rgba(56,189,248,0.08);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-blue);
}

.rrc-table__row {
  display: grid;
  grid-template-columns: 140px 1fr;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.rrc-table__row:last-child { border-bottom: none; }

.rrc-table__key {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 1rem 1.25rem;
  border-right: 1px solid rgba(255,255,255,0.04);
  background: rgba(255,255,255,0.015);
  display: flex;
  align-items: flex-start;
  padding-top: 1.1rem;
}

.rrc-table__val {
  padding: 1rem 1.25rem;
  font-size: clamp(0.8rem, 1.3vw, 0.9rem);
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── Section 9: EPIC City — Impact Rows ── */
.section--epic {
  background: var(--bg-primary);
}

.epic-impact {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  overflow: hidden;
  margin: 2rem 0;
}

.epic-impact__row {
  display: grid;
  grid-template-columns: 44px 1fr;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  padding: 1.25rem;
  gap: 1rem;
  align-items: start;
}

.epic-impact__row:last-child { border-bottom: none; }

.epic-impact__icon {
  font-size: 1.1rem;
  opacity: 0.7;
  padding-top: 0.1rem;
}

.epic-impact__title {
  font-family: var(--font-sans);
  font-size: clamp(0.88rem, 1.5vw, 1rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.epic-impact__body {
  font-size: clamp(0.8rem, 1.3vw, 0.9rem);
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── Section 10: Docket Table ── */
.section--docket {
  background: var(--bg-secondary);
}

.docket-table {
  width: 100%;
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  overflow: hidden;
  margin: 2rem 0;
}

.docket-table__header {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.5fr;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--glass-border);
}

.docket-table__header > div {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.65rem 1rem;
}

.docket-table__row {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.5fr;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.docket-table__row:last-child { border-bottom: none; }

.docket-table__row > div {
  padding: 0.9rem 1rem;
  font-size: clamp(0.75rem, 1.2vw, 0.85rem);
  color: var(--text-secondary);
  line-height: 1.5;
  border-right: 1px solid rgba(255,255,255,0.03);
}

.docket-table__row > div:last-child { border-right: none; }

.docket-table__case {
  font-style: italic;
}

.docket-table__case span {
  display: block;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.docket-table__action {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.docket-table__action--reversed { color: var(--accent-gold); }
.docket-table__action--denied   { color: var(--text-muted); }
.docket-table__action--abated   { color: var(--accent-blue); }

/* ── Section 11: Week Ahead — Calendar Cards ── */
.section--week-ahead {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-top: 1px solid rgba(194,113,58,0.12);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.cal-card {
  padding: 1.5rem;
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border-top: 2px solid transparent;
  transition: border-color 0.25s, background 0.25s;
}

.cal-card:hover {
  background: var(--bg-elevated);
  border-color: var(--glass-highlight);
}

.cal-card--urgent {
  border-top-color: var(--accent-red);
  background: rgba(225,29,72,0.02);
}

.cal-card--warning {
  border-top-color: var(--accent-gold);
  background: var(--accent-gold-dim);
}

.cal-card__date {
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 1.2vw, 0.85rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}

.cal-card--urgent .cal-card__date  { color: var(--accent-red); }
.cal-card--warning .cal-card__date { color: var(--accent-gold); }

.cal-card__label {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cal-card__title {
  font-size: clamp(0.85rem, 1.4vw, 0.98rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.cal-card__body {
  font-size: clamp(0.75rem, 1.15vw, 0.85rem);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Footer ── */
.site-footer {
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3rem);
  padding-bottom: calc(clamp(3rem, 6vw, 5rem) + env(safe-area-inset-bottom));
  text-align: center;
  border-top: 1px solid rgba(194,113,58,0.1);
  background: rgba(4,7,14,0.6);
}

.site-footer__brand {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.site-footer__pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulse-dot 2.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.site-footer__regen {
  font-size: clamp(0.8rem, 1.3vw, 0.9rem);
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.site-footer__session {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.site-footer__timestamp {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.1);
  margin-bottom: 1rem;
}

/* ── Responsive — 768px ── */
@media (max-width: 768px) {
  .hero__milestones {
    grid-template-columns: repeat(2, 1fr);
  }

  .opinion-ledger {
    grid-template-columns: 1fr;
  }

  .opinion-ledger__holding {
    border-right: none;
    border-bottom: 1px solid var(--glass-border);
  }

  .enforcement-timeline {
    overflow-x: auto;
  }

  .before-after {
    grid-template-columns: 1fr;
  }

  .before-after__divider {
    display: none;
  }

  .authority-compare {
    grid-template-columns: 1fr;
  }

  .authority-divider {
    display: none;
  }

  .docket-table__header,
  .docket-table__row {
    grid-template-columns: 1fr 1fr;
  }

  .docket-table__header > div:nth-child(3),
  .docket-table__header > div:nth-child(4),
  .docket-table__row > div:nth-child(3),
  .docket-table__row > div:nth-child(4) {
    grid-column: span 1;
  }

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

  .fee-compare__header,
  .fee-compare__row {
    grid-template-columns: 1fr 1fr;
  }

  .fee-compare__col-label:nth-child(3),
  .fee-compare__col-label:nth-child(4),
  .fee-compare__cell:nth-child(3),
  .fee-compare__cell:nth-child(4) {
    display: block;
  }

  .voucher-callout {
    grid-template-columns: 1fr;
  }

  .ccs-data {
    grid-template-columns: 1fr 1fr;
  }

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

  .opinion-ledger__row {
    grid-template-columns: 1fr;
  }

  .opinion-ledger__key {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    background: none;
    padding: 0.5rem 0;
  }

  .opinion-ledger__val {
    padding: 0.5rem 0 0.9rem 0;
  }

  .rrc-table__row {
    grid-template-columns: 1fr;
  }

  .rrc-table__key {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.04);
  }
}

/* ── Responsive — 480px ── */
@media (max-width: 480px) {
  :root {
    --ticker-h: 34px;
  }

  .hero__title {
    font-size: clamp(4.5rem, 22vw, 8rem);
  }

  .hero__milestones {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .fee-compare__header,
  .fee-compare__row {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .fee-compare__col-label:last-child,
  .fee-compare__cell:last-child {
    display: none;
  }

  .ccs-data {
    grid-template-columns: 1fr;
  }

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

  .section__headline {
    font-size: clamp(1.7rem, 9vw, 2.8rem);
  }

  .execution-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .execution-header__days {
    text-align: left;
  }

  .pipeline-tracker {
    overflow-x: auto;
  }

  .docket-table__header,
  .docket-table__row {
    grid-template-columns: 1fr;
  }

  .docket-table__header > div:not(:first-child),
  .docket-table__row > div:not(:first-child) {
    display: none;
  }

  .docket-table__action {
    display: none;
  }

  .hemp-formula__equation {
    flex-direction: column;
    align-items: flex-start;
  }
}
