/* Legally Brief: Michigan — May 10, 2026 — “Lines of Force” (Sunday Edition) */

:root {
  --bg-primary: #061018;
  --bg-secondary: #0a2430;
  --bg-surface: rgba(94, 234, 212, 0.06);
  --bg-elevated: rgba(245, 158, 11, 0.05);
  --text-primary: #eaf4f7;
  --text-secondary: #a8c4cf;
  --text-muted: #6b8a99;
  --accent-red: #fb7185;
  --accent-red-dim: rgba(251, 113, 133, 0.12);
  --accent-green: #34d399;
  --accent-green-dim: rgba(52, 211, 153, 0.12);
  --accent-gold: #f59e0b;
  --accent-gold-dim: rgba(245, 158, 11, 0.14);
  --accent-blue: #38bdf8;
  --glass: rgba(6, 16, 24, 0.92);
  --glass-border: rgba(94, 234, 212, 0.15);
  --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;
  --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;
  -moz-osx-font-smoothing: grayscale;
  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: 256px 256px;
}

.mono-legal {
  font-family: var(--font-mono);
  font-size: clamp(0.8rem, 1vw, 0.9rem);
  color: var(--text-muted);
}

.ticker {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  min-height: 44px;
  background: rgba(6, 16, 24, 0.94);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  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: ticker-marquee 46s linear infinite;
}

.ticker__dup {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
  padding: 0.55rem 0 0.55rem 1rem;
  white-space: nowrap;
}

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

.ticker__label {
  font-family: var(--font-mono);
  font-size: clamp(0.65rem, 1.5vw, 0.72rem);
  letter-spacing: 0.28em;
  color: var(--accent-gold);
}

.ticker__sep { color: var(--text-muted); opacity: 0.35; font-family: var(--font-mono); }
.ticker__item {
  font-family: var(--font-mono);
  font-size: clamp(0.68rem, 1.4vw, 0.78rem);
  color: var(--text-secondary);
}

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

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(94, 234, 212, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(94, 234, 212, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 75%);
  opacity: 0.5;
}

.hero__glow {
  position: absolute;
  width: min(90vw, 720px);
  height: min(90vw, 720px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.18) 0%, transparent 62%);
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  filter: blur(40px);
  pointer-events: none;
}

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

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

.hero__title {
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}

.hero__line {
  display: block;
  font-size: clamp(3.5rem, 12vw, 9.5rem);
  background: linear-gradient(120deg, #f8fafc 0%, #5eead4 45%, #f59e0b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__line--b { margin-top: -0.06em; opacity: 0.95; }

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

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

.hero__anchor {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.35rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  max-width: 44rem;
}

.hero__anchor-label {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(0.62rem, 1.2vw, 0.7rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.hero__anchor-val { font-size: clamp(0.88rem, 1.1vw, 0.98rem); color: var(--text-secondary); line-height: 1.55; }

.section {
  padding: clamp(3rem, 8vw, 5.5rem) clamp(1.1rem, 4vw, 2.5rem);
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
}

.section:nth-of-type(even)::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12%;
  width: 3px;
  height: 40%;
  background: linear-gradient(180deg, transparent, var(--accent-blue), transparent);
  opacity: 0.25;
  border-radius: 2px;
}

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

.section__title {
  font-size: clamp(2rem, 5vw, 3.35rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

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

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

.section__cite,
.section__cite--secondary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-mono);
  font-size: clamp(0.78rem, 1vw, 0.86rem);
  color: var(--accent-blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(56, 189, 248, 0.25);
  margin-right: 1.25rem;
  margin-top: 0.5rem;
  transition: color 0.2s var(--ease-out-quart), border-color 0.2s;
}

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

.section__cite--secondary { color: var(--text-muted); border-bottom-color: rgba(107, 138, 153, 0.35); }

/* COA PA233 — compare + meter */
.compare-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.75rem 0;
}

.compare-split__panel {
  padding: 1.35rem 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: var(--bg-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.compare-split__panel--trim {
  border-color: rgba(251, 113, 133, 0.25);
  background: var(--accent-red-dim);
}

.compare-split__tag {
  display: block;
  font-size: clamp(0.62rem, 1.1vw, 0.68rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
  color: var(--accent-green);
}

.compare-split__panel--trim .compare-split__tag { color: var(--accent-red); }

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

.meter-row { margin: 1.5rem 0 0.5rem; }
.meter-row__label { display: block; margin-bottom: 0.5rem; color: var(--text-muted); }
.meter-row__bar-wrap {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.meter-row__bar {
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-gold));
}
.meter-row__cap { margin-top: 0.65rem; font-size: clamp(0.85rem, 1vw, 0.95rem); color: var(--text-muted); line-height: 1.55; }

/* Bills — ribbon + pull quote */
.ribbon-argue {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
  border-left: 3px solid var(--accent-gold);
  padding-left: 1.1rem;
}

.ribbon-argue__node {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ribbon-argue__node:last-child { border-bottom: none; opacity: 0.85; }

.ribbon-argue__node span:last-child {
  font-size: clamp(0.88rem, 1.05vw, 0.98rem);
  color: var(--text-secondary);
  line-height: 1.55;
}

.pull-quote {
  margin: 1.75rem 0;
  padding: 1.5rem 1.35rem;
  background: var(--bg-elevated);
  border-radius: 0 18px 18px 0;
  border: 1px solid var(--glass-border);
  border-left: 4px solid var(--accent-blue);
}

.pull-quote p {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.55;
}

.pull-quote__attr { margin-top: 0.85rem; font-size: clamp(0.72rem, 1vw, 0.8rem); color: var(--text-muted); }

/* Courthouse — vote six */
.vote-six {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0;
}

.vote-six__major,
.vote-six__minor {
  flex: 1 1 200px;
  padding: 1.5rem;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.vote-six__major {
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.12), rgba(6, 16, 24, 0.9));
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.vote-six__minor {
  background: linear-gradient(135deg, rgba(251, 113, 133, 0.1), rgba(6, 16, 24, 0.9));
  border: 1px solid rgba(251, 113, 133, 0.22);
}

.vote-six__num {
  display: block;
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.vote-six__major .vote-six__num { color: var(--accent-green); }
.vote-six__minor .vote-six__num { color: var(--accent-red); }

.vote-six__major p,
.vote-six__minor p { font-size: clamp(0.88rem, 1.05vw, 0.98rem); color: var(--text-secondary); line-height: 1.55; }

/* Tariffs — timeline ledger */
.timeline-ledger {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
}

.timeline-ledger li {
  display: grid;
  grid-template-columns: minmax(7rem, 28%) 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.timeline-ledger__d { color: var(--accent-gold); }
.timeline-ledger__t { color: var(--text-secondary); font-size: clamp(0.9rem, 1.1vw, 1.02rem); line-height: 1.55; }

/* Google — receipt list */
.receipt-list {
  list-style: none;
  margin: 1.5rem 0;
  max-width: 36rem;
  border: 1px dashed rgba(148, 201, 211, 0.35);
  border-radius: 8px;
  padding: 0.5rem 0;
}

.receipt-list li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: clamp(0.88rem, 1.05vw, 0.98rem);
  color: var(--text-secondary);
  line-height: 1.55;
}

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

/* Purdue — big stat */
.big-stat {
  margin: 1.75rem 0;
  text-align: center;
  padding: 2rem 1rem;
  background: radial-gradient(ellipse at center, rgba(245, 158, 11, 0.12), transparent 65%);
}

.big-stat__label { display: block; margin-bottom: 0.5rem; }

.big-stat__num {
  font-size: clamp(3.5rem, 14vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent-gold);
  font-variant-numeric: tabular-nums;
}

.big-stat__cap {
  margin-top: 1rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(0.85rem, 1.05vw, 0.95rem);
  color: var(--text-muted);
  line-height: 1.6;
}

/* USPS */
.state-band {
  margin: 1.5rem 0;
  padding: 1.35rem 1.25rem;
  background: var(--glass);
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
}

.state-band__lede {
  flex: 0 0 auto;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  color: var(--accent-blue);
  line-height: 1;
}

.state-band__txt { flex: 1 1 220px; font-size: clamp(0.9rem, 1.1vw, 1.02rem); color: var(--text-secondary); line-height: 1.65; }

/* Swatting */
.flash-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin: 1.5rem 0;
  padding: 1rem 1.15rem;
  background: linear-gradient(90deg, rgba(251, 113, 133, 0.15), transparent);
  border-left: 4px solid var(--accent-red);
  border-radius: 4px;
}

.flash-bar__blink {
  padding: 0.35rem 0.55rem;
  background: rgba(251, 113, 133, 0.2);
  color: var(--accent-red);
  border-radius: 4px;
  font-size: clamp(0.62rem, 1.1vw, 0.68rem);
  letter-spacing: 0.18em;
}

.flash-bar p { flex: 1 1 240px; font-size: clamp(0.9rem, 1.05vw, 1rem); color: var(--text-secondary); line-height: 1.6; }

/* Emergency ladder */
.ladder-em {
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ladder-em__rung {
  padding: 1.1rem 1rem 1.1rem 2.5rem;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ladder-em__rung::before {
  content: '';
  position: absolute;
  left: 0.65rem;
  top: 1.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}

.ladder-em__rung span:first-child {
  display: inline-block;
  min-width: 4.5rem;
  margin-right: 0.5rem;
  color: var(--accent-blue);
}

.ladder-em__rung span:last-child { font-size: clamp(0.88rem, 1.05vw, 0.98rem); color: var(--text-secondary); line-height: 1.55; }

/* MiLEAP columns */
.rule-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.rule-columns__chunk {
  padding: 1.25rem;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.06);
  border: 1px solid rgba(56, 189, 248, 0.15);
}

.rule-columns__h {
  font-size: clamp(0.62rem, 1.1vw, 0.68rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
  color: var(--accent-gold);
}

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

/* Gov sign shield pair */
.shield-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0;
}

.shield-pair__plate {
  flex: 1 1 260px;
  padding: 1.5rem 1.25rem 1.5rem 1.5rem;
  border-radius: 4px 20px 20px 4px;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  transform: skewX(-0.5deg);
}

.shield-pair__plate--heritage {
  border-color: rgba(245, 158, 11, 0.3);
  background: linear-gradient(120deg, rgba(245, 158, 11, 0.08), rgba(10, 36, 48, 0.95));
}

.shield-pair__route {
  display: block;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

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

/* Week ahead */
.cal-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}

.cal-card {
  display: grid;
  grid-template-columns: minmax(7.5rem, 22%) 1fr;
  gap: 1rem;
  padding: 1.15rem 1.2rem;
  border-radius: 10px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cal-card__date { color: var(--accent-gold); font-weight: 600; }
.cal-card__text { font-size: clamp(0.88rem, 1.05vw, 0.98rem); color: var(--text-secondary); line-height: 1.6; }

.site-footer {
  padding: 3rem 1.25rem calc(2.5rem + env(safe-area-inset-bottom));
  text-align: center;
  border-top: 1px solid var(--glass-border);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35));
}

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

.site-footer__pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #17b26a;
  box-shadow: 0 0 0 6px rgba(23, 178, 106, 0.25);
  animation: pulse-foot 2.4s ease-in-out infinite;
}

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

.site-footer__regen,
.site-footer__session,
.site-footer__timestamp {
  font-size: clamp(0.82rem, 1.05vw, 0.92rem);
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0.35rem 0;
}

.site-footer__session { color: var(--accent-gold); font-family: var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; font-size: clamp(0.68rem, 1.1vw, 0.75rem); }

.site-footer .source {
  font-family: var(--font-mono);
  font-size: clamp(0.78rem, 1vw, 0.85rem);
  color: var(--accent-blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(56, 189, 248, 0.3);
  min-height: 44px;
  align-items: center;
}

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

@media (max-width: 768px) {
  .compare-split,
  .rule-columns,
  .cal-card { grid-template-columns: 1fr; }
  .ribbon-argue__node { grid-template-columns: 1fr; }
  .timeline-ledger li { grid-template-columns: 1fr; }
  .section:nth-of-type(even)::before { display: none; }
}

@media (max-width: 480px) {
  .hero__anchor { flex-direction: column; align-items: flex-start; }
  .vote-six__major,
  .vote-six__minor { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
  .site-footer__pulse { animation: none; }
}
