/* Legally Brief: Michigan — June 7, 2026 — “Grid Voltage” (Sunday Edition) */

:root {
  --bg-primary: #0d0d12;
  --bg-secondary: #14141c;
  --bg-surface: rgba(250, 204, 21, 0.04);
  --bg-elevated: rgba(37, 99, 235, 0.08);
  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --accent-red: #ef4444;
  --accent-red-dim: rgba(239, 68, 68, 0.14);
  --accent-green: #22c55e;
  --accent-green-dim: rgba(34, 197, 94, 0.12);
  --accent-gold: #facc15;
  --accent-gold-dim: rgba(250, 204, 21, 0.16);
  --accent-blue: #3b82f6;
  --glass: rgba(13, 13, 18, 0.94);
  --glass-border: rgba(250, 204, 21, 0.18);
  --glass-highlight: rgba(255, 255, 255, 0.06);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  --font-display: 'Barlow Condensed', 'Inter', sans-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 { margin: 0; padding: 0; box-sizing: border-box; }

html {
  -webkit-font-smoothing: antialiased;
  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);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  -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;
  z-index: 10000;
  pointer-events: none;
  opacity: 0.042;
  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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.mono-legal {
  font-family: var(--font-mono);
  font-size: clamp(0.78rem, 1vw, 0.88rem);
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ── Ticker ── */
.ticker {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  min-height: 46px;
  background: var(--glass);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
  padding-top: env(safe-area-inset-top);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: tickerScroll 55s linear infinite;
}

.ticker__dup {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding: 0.75rem 1.5rem;
  white-space: nowrap;
}

.ticker__label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--accent-gold);
  background: var(--accent-gold-dim);
  padding: 0.25rem 0.6rem;
}

.ticker__item {
  font-family: var(--font-mono);
  font-size: clamp(0.68rem, 1.5vw, 0.78rem);
  color: var(--text-secondary);
}

.ticker__sep { color: var(--accent-gold); opacity: 0.5; font-size: 0.5rem; }

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

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(3rem + env(safe-area-inset-top)) clamp(1.25rem, 5vw, 4rem) 4rem;
  overflow: hidden;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(250, 204, 21, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(250, 204, 21, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 75%);
  animation: gridPulse 8s ease-in-out infinite alternate;
}

.hero__bolt {
  position: absolute;
  top: 15%;
  right: -5%;
  width: min(55vw, 420px);
  height: min(55vw, 420px);
  border: 2px solid var(--accent-gold-dim);
  transform: rotate(12deg);
  opacity: 0.35;
}

.hero__bolt::before {
  content: '';
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

@keyframes gridPulse {
  from { opacity: 0.6; }
  to { opacity: 1; }
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 920px;
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: clamp(0.65rem, 1.2vw, 0.75rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
}

.hero__display {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 10rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}

.hero__w1 { display: block; color: var(--text-primary); }
.hero__w2 { display: block; color: var(--accent-gold); }
.hero__w3 { display: block; color: var(--accent-blue); font-size: 0.72em; }

.hero__lead {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 58ch;
  margin-bottom: 2.5rem;
}

.hero__meter {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-end;
  padding: 1.75rem 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero__meter-num {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1;
}

.hero__meter-copy {
  flex: 1;
  min-width: 200px;
}

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

.hero__meter-sub {
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  color: var(--text-secondary);
}

/* ── Sections base ── */
.section {
  padding: clamp(4rem, 10vw, 7rem) clamp(1.25rem, 5vw, 4rem);
  max-width: 1100px;
  margin: 0 auto;
}

.section--wide { max-width: 1200px; }

.section--bleed {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.section--bleed .section__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 4rem);
}

.ed-label {
  font-family: var(--font-mono);
  font-size: clamp(0.65rem, 1vw, 0.72rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.section__body {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  max-width: 68ch;
}

.section__cite {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 1vw, 0.82rem);
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  margin-top: 1.25rem;
  margin-right: 1.5rem;
}

.section__cite:hover {
  color: var(--accent-gold);
  border-bottom-color: var(--accent-gold-dim);
}

.section__cite--secondary { opacity: 0.75; }

/* ── Rate stack (Consumers) ── */
.rate-stack {
  display: grid;
  gap: 0;
  margin: 2rem 0;
  border: 1px solid var(--glass-border);
}

.rate-stack__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  align-items: center;
}

.rate-stack__row:last-child { border-bottom: none; }
.rate-stack__row--highlight { background: var(--accent-gold-dim); }

.rate-stack__label {
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 1vw, 0.82rem);
  color: var(--text-muted);
}

.rate-stack__val {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600;
  color: var(--text-primary);
}

.rate-stack__val--up { color: var(--accent-red); }
.rate-stack__val--new { color: var(--accent-gold); }

.rate-bar-wrap {
  margin: 2rem 0;
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
}

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

/* ── Strike split (UAW) ── */
.strike-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 2rem 0;
  border: 1px solid var(--glass-border);
}

.strike-split__side {
  padding: 2rem;
}

.strike-split__side--union {
  background: var(--accent-blue);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), transparent);
  border-right: 1px solid var(--glass-border);
}

.strike-split__side--mgmt {
  background: var(--accent-red-dim);
}

.strike-split__tag {
  display: block;
  margin-bottom: 0.75rem;
}

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

.strike-banner {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-gold);
  padding: 1.5rem;
  text-align: center;
  border: 2px dashed var(--accent-gold-dim);
  margin: 1.5rem 0;
}

/* ── EO ladder ── */
.eo-ladder {
  list-style: none;
  margin: 2rem 0;
  counter-reset: eo;
}

.eo-ladder li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  counter-increment: eo;
}

.eo-ladder li::before {
  content: counter(eo, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 700;
  color: var(--accent-gold);
  opacity: 0.7;
}

.eo-ladder span:last-child {
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── Bill tracker strip ── */
.bill-track {
  display: flex;
  gap: 0;
  overflow-x: auto;
  margin: 2rem 0;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}

.bill-track__node {
  flex: 0 0 auto;
  min-width: 140px;
  padding: 1.25rem 1rem;
  text-align: center;
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
}

.bill-track__node:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -0.65rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-gold);
  z-index: 2;
  font-family: var(--font-mono);
}

.bill-track__node--done { background: var(--accent-green-dim); border-color: rgba(34, 197, 94, 0.3); }
.bill-track__node--active { background: var(--accent-gold-dim); border-color: var(--accent-gold); }

.bill-track__when {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.5rem;
}

.bill-track__what {
  font-size: clamp(0.8rem, 1vw, 0.9rem);
  color: var(--text-secondary);
}

/* ── Vote ring ── */
.vote-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: center;
  margin: 2rem 0;
}

.vote-ring-wrap svg { display: block; }

.vote-ring__fg {
  transition: stroke-dashoffset 1.2s var(--ease-out-expo);
}

.vote-stats {
  flex: 1;
  min-width: 220px;
}

.vote-stats__row {
  display: flex;
  justify-content: space-between;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: clamp(0.9rem, 1.1vw, 1rem);
}

.vote-stats__row span:first-child { color: var(--text-muted); font-family: var(--font-mono); font-size: 0.8rem; }
.vote-stats__row--yea span:last-child { color: var(--accent-green); font-weight: 600; }
.vote-stats__row--nay span:last-child { color: var(--accent-red); font-weight: 600; }

/* ── Statute compare ── */
.statute-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.statute-duo__card {
  padding: 1.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}

.statute-duo__card--new { border-color: rgba(34, 197, 94, 0.35); }

.statute-duo__cite {
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  color: var(--accent-gold);
  display: block;
  margin-bottom: 0.75rem;
}

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

/* ── Ballot split ── */
.ballot-arena {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.ballot-arena__box {
  padding: 1.75rem;
  border: 1px solid var(--glass-border);
}

.ballot-arena__box--plaintiff { border-left: 3px solid var(--accent-red); }
.ballot-arena__box--state { border-left: 3px solid var(--accent-blue); }

.ballot-arena__who {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.75rem;
}

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

/* ── Negligence elements ── */
.negligence-chain {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0;
}

.negligence-chain__link {
  flex: 1 1 140px;
  padding: 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid rgba(59, 130, 246, 0.2);
  text-align: center;
}

.negligence-chain__link span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-blue);
  display: block;
  margin-bottom: 0.5rem;
}

.negligence-chain__link p {
  font-size: clamp(0.82rem, 1vw, 0.92rem);
  color: var(--text-secondary);
}

/* ── Sentencing quote ── */
.sentencing-rail {
  margin: 2rem 0;
  padding: 2rem 2rem 2rem 2.5rem;
  border-left: 4px solid var(--accent-red);
  background: var(--accent-red-dim);
}

.sentencing-rail p {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.sentencing-rail cite {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: normal;
}

/* ── Ferry timeline ── */
.ferry-rail {
  position: relative;
  margin: 2.5rem 0;
  padding-left: 2rem;
  border-left: 2px solid var(--accent-gold-dim);
}

.ferry-rail__node {
  position: relative;
  padding-bottom: 2rem;
}

.ferry-rail__node::before {
  content: '';
  position: absolute;
  left: -2.45rem;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 12px var(--accent-gold-dim);
}

.ferry-rail__when {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-gold);
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 0.35rem;
}

.ferry-rail__node p {
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  color: var(--text-secondary);
}

/* ── Emergency expiry ── */
.emer-expire {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  background: linear-gradient(135deg, var(--accent-red-dim), transparent);
  border: 1px solid rgba(239, 68, 68, 0.25);
  margin: 2rem 0;
}

.emer-expire__date {
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--accent-red);
}

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

/* ── Big number ── */
.big-num-block {
  text-align: center;
  padding: 3rem 1.5rem;
  margin: 2rem 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.big-num-block__val {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 12vw, 7rem);
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1;
  display: block;
}

.big-num-block__ctx {
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  color: var(--text-muted);
  max-width: 42ch;
  margin: 1rem auto 0;
  line-height: 1.65;
}

/* ── Week ahead ── */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.cal-card {
  padding: 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  transition: border-color 0.25s;
}

.cal-card:hover { border-color: var(--accent-gold); }

.cal-card time {
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 1vw, 0.82rem);
  font-weight: 600;
  color: var(--accent-gold);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.75rem;
}

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

/* ── Footer ── */
.site-footer {
  text-align: center;
  padding: 4rem clamp(1.25rem, 5vw, 4rem) calc(3rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--glass-border);
  margin-top: 2rem;
}

.site-footer__brand {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.site-footer__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  50% { opacity: 0.85; box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

.site-footer__regen {
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

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

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

.site-footer .source {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  min-height: 44px;
  align-items: center;
}

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

/* ── Responsive ── */
@media (max-width: 768px) {
  .strike-split,
  .statute-duo,
  .ballot-arena {
    grid-template-columns: 1fr;
  }

  .strike-split__side--union { border-right: none; border-bottom: 1px solid var(--glass-border); }

  .emer-expire {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .vote-panel { justify-content: center; }
}

@media (max-width: 480px) {
  .rate-stack__row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

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

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