/* Legally Brief: Texas — May 31, 2026 — "Seesaw Friday" Sunday Edition */
:root {
  --bg-primary: #06080c;
  --bg-secondary: #0c1018;
  --bg-surface: rgba(255, 248, 235, 0.04);
  --bg-elevated: rgba(196, 30, 58, 0.08);
  --text-primary: #f2f0eb;
  --text-secondary: #a8a49c;
  --text-muted: #6b6760;
  --accent-red: #e8354f;
  --accent-red-dim: rgba(232, 53, 79, 0.18);
  --accent-green: #3ecf8e;
  --accent-green-dim: rgba(62, 207, 142, 0.14);
  --accent-gold: #d4a24a;
  --accent-gold-dim: rgba(212, 162, 74, 0.16);
  --accent-blue: #5b9fd4;
  --accent-blue-dim: rgba(91, 159, 212, 0.14);
  --glass: rgba(12, 16, 24, 0.78);
  --glass-border: rgba(212, 162, 74, 0.16);
  --glass-highlight: rgba(232, 53, 79, 0.28);
  --font-sans: 'IBM Plex Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Instrument Serif', Georgia, 'Times New Roman', 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: 46px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  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.7;
  padding-top: calc(var(--ticker-h) + env(safe-area-inset-top));
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
  -webkit-tap-highlight-color: transparent;
}

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 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: 180px 180px;
}

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

/* 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, 6, 10, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(232, 53, 79, 0.35);
  z-index: 9999;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ticker-track { display: flex; width: max-content; animation: ticker-scroll 55s linear infinite; }

.ticker-content {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0 1.5rem;
  white-space: nowrap;
}

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

.ticker-item {
  font-size: clamp(0.7rem, 1.8vw, 0.82rem);
  color: var(--text-secondary);
}

.ticker-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-red);
  margin-right: 0.45rem;
}

.ticker-divider { color: var(--text-muted); opacity: 0.45; font-size: 0.65rem; }

/* Hero */
.sw-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
  padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 5vw, 3.5rem);
  padding-top: calc(clamp(2rem, 6vw, 4rem) + var(--ticker-h));
  overflow: hidden;
}

.sw-hero__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, rgba(232, 53, 79, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 75%, rgba(212, 162, 74, 0.12), transparent 50%),
    linear-gradient(165deg, #06080c 0%, #121820 45%, #06080c 100%);
  z-index: 0;
}

.sw-hero__gridline {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black 30%, transparent 95%);
  z-index: 1;
  pointer-events: none;
}

.sw-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 72rem;
  margin: 0 auto;
  width: 100%;
}

.sw-hero__kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-bottom: 1.5rem;
}

.sw-hero__kicker span {
  font-family: var(--font-mono);
  font-size: clamp(0.62rem, 1.4vw, 0.72rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.sw-hero__kicker span:first-child { color: var(--accent-gold); }

.sw-hero__statute {
  font-family: var(--font-mono);
  font-size: clamp(4rem, 18vw, 11rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 240, 235, 0.35);
  margin-bottom: 0.25rem;
}

.sw-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 7vw, 4.5rem);
  font-weight: 400;
  line-height: 1.05;
  max-width: 18ch;
  margin-bottom: 1.25rem;
}

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

.sw-hero__deck {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  color: var(--text-secondary);
  max-width: 52ch;
  margin-bottom: 2rem;
}

.sw-hero__panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  max-width: 36rem;
  padding: 1.25rem 1.5rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  backdrop-filter: blur(12px);
}

.sw-hero__panel-num {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 800;
  color: var(--accent-red);
  line-height: 1;
}

.sw-hero__panel-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;
}

.sw-hero__panel p {
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  color: var(--text-secondary);
  grid-column: 1 / -1;
}

.sw-hero__sources {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Sections base */
.sw-section {
  padding: clamp(3.5rem, 10vw, 6rem) clamp(1.25rem, 5vw, 3.5rem);
  max-width: 72rem;
  margin: 0 auto;
}

.sw-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(0.62rem, 1.4vw, 0.72rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.sw-h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.12;
  margin-bottom: 1.25rem;
}

.sw-h2 em { font-style: italic; }

.sw-body {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  color: var(--text-secondary);
  margin-bottom: 1rem;
  max-width: 65ch;
}

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

/* Seesaw horizontal scroll */
.sw-seesaw-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
  margin: 2rem 0;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-red-dim) transparent;
}

.sw-seesaw {
  display: flex;
  gap: 0;
  min-width: min(900px, 200%);
  padding: 0 clamp(1.25rem, 5vw, 3.5rem);
}

.sw-seesaw__node {
  flex: 1;
  min-width: 200px;
  padding: 1.25rem 1.5rem;
  border-left: 2px solid var(--glass-border);
  position: relative;
}

.sw-seesaw__node:first-child { border-left: none; }

.sw-seesaw__node--up { background: var(--accent-green-dim); }
.sw-seesaw__node--down { background: var(--accent-red-dim); }

.sw-seesaw__date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.sw-seesaw__court {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.sw-seesaw__text {
  font-size: clamp(0.88rem, 1.1vw, 1rem);
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Studio E split */
.sw-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--glass-border);
  margin: 2rem 0;
  border-radius: 4px;
  overflow: hidden;
}

.sw-split__col {
  padding: 1.75rem;
  background: var(--bg-secondary);
}

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

.sw-split__col--before .sw-split__label { color: var(--accent-red); }
.sw-split__col--after .sw-split__label { color: var(--accent-green); }

/* Pull quote */
.sw-quote {
  padding: clamp(2rem, 6vw, 4rem) clamp(1.5rem, 8vw, 5rem);
  background: linear-gradient(135deg, var(--accent-red-dim), transparent 60%);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  margin: 0;
  max-width: none;
}

.sw-quote__text {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2.75rem);
  font-style: italic;
  line-height: 1.35;
  max-width: 28ch;
  margin: 0 auto 1.5rem;
  text-align: center;
  color: var(--text-primary);
}

.sw-quote__attr {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Big number */
.sw-bignum {
  text-align: center;
  padding: 3rem 1rem;
}

.sw-bignum__val {
  font-family: var(--font-mono);
  font-size: clamp(4rem, 20vw, 9rem);
  font-weight: 800;
  color: var(--accent-red);
  line-height: 0.9;
}

.sw-bignum__ctx {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  color: var(--text-secondary);
  max-width: 40ch;
  margin: 1rem auto 0;
}

/* Data bars */
.sw-bars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
  max-width: 28rem;
}

.sw-bars__row {
  display: grid;
  grid-template-columns: 7rem 1fr 3rem;
  align-items: center;
  gap: 0.75rem;
}

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

.sw-bars__track {
  height: 8px;
  background: var(--bg-secondary);
  border-radius: 2px;
  overflow: hidden;
}

.sw-bars__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-red));
  width: 0;
  transition: width 1.2s var(--ease-out-expo);
}

.sw-bars__pct {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-gold);
  text-align: right;
}

/* Pipeline */
.sw-pipe {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0;
  align-items: stretch;
}

.sw-pipe__step {
  flex: 1 1 120px;
  padding: 1rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  position: relative;
}

.sw-pipe__step--done {
  border-color: var(--accent-green);
  background: var(--accent-green-dim);
}

.sw-pipe__step--active {
  border-color: var(--accent-gold);
  box-shadow: 0 0 24px var(--accent-gold-dim);
}

.sw-pipe__name {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.sw-pipe__bar {
  height: 4px;
  background: var(--bg-primary);
  border-radius: 2px;
  margin-top: 0.75rem;
  overflow: hidden;
}

.sw-pipe__bar-inner {
  height: 100%;
  background: var(--accent-gold);
  width: 0;
}

/* Timeline GVR */
.sw-timeline {
  position: relative;
  padding-left: 2rem;
  margin: 2rem 0;
  border-left: 2px solid var(--glass-border);
}

.sw-timeline__item {
  position: relative;
  padding-bottom: 2rem;
  padding-left: 1.5rem;
}

.sw-timeline__item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-blue);
  transform: translateX(-5px);
  border: 2px solid var(--bg-primary);
}

.sw-timeline__date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-gold);
  margin-bottom: 0.35rem;
}

/* Opinion card */
.sw-card {
  padding: 2rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  backdrop-filter: blur(10px);
  margin: 1.5rem 0;
}

.sw-card__cite {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent-blue);
  margin-bottom: 0.75rem;
}

/* Impact grid */
.sw-impact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.sw-impact__cell {
  padding: 1.25rem;
  border: 1px solid var(--glass-border);
  background: var(--bg-secondary);
}

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

/* Week ahead */
.sw-ahead {
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  padding: clamp(3.5rem, 10vw, 6rem) clamp(1.25rem, 5vw, 3.5rem);
}

.sw-ahead__grid {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

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

.sw-cal__date {
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  font-weight: 700;
  color: var(--accent-gold);
  min-width: 5.5rem;
}

.sw-cal__what {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
}

.sw-cal__detail {
  font-size: clamp(0.88rem, 1.1vw, 0.98rem);
  color: var(--text-secondary);
}

/* Sources */
.source {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
  padding: 0 0.15rem;
}

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

.sw-sources {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 1.25rem;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 3rem 1.5rem 4rem;
  padding-bottom: calc(4rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--glass-border);
}

.site-footer__brand {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

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

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

.site-footer__regen,
.site-footer__session,
.site-footer__timestamp {
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.site-footer__legal {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.site-footer__legal a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  min-height: 44px;
  line-height: 44px;
}

/* Full bleed sections */
.sw-full {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.sw-full .sw-h2,
.sw-full .sw-eyebrow,
.sw-full .sw-body {
  padding-left: clamp(1.25rem, 5vw, 3.5rem);
  padding-right: clamp(1.25rem, 5vw, 3.5rem);
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
}

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

@media (max-width: 480px) {
  .sw-bars__row { grid-template-columns: 1fr; gap: 0.35rem; }
  .sw-pipe__step { flex: 1 1 100%; }
}
