/* Real Market Color — Closing Bell Apr 17, 2026 — amber on deep navy */

:root {
  --bg-primary: #070b14;
  --bg-secondary: #0c1220;
  --bg-surface: rgba(18, 28, 48, 0.82);
  --bg-elevated: rgba(26, 38, 62, 0.94);
  --text-primary: #eef2ff;
  --text-secondary: rgba(238, 242, 255, 0.82);
  --text-muted: rgba(238, 242, 255, 0.48);
  --accent-red: #ff7a8c;
  --accent-red-dim: rgba(255, 122, 140, 0.14);
  --accent-green: #5ee9b0;
  --accent-green-dim: rgba(94, 233, 176, 0.12);
  --accent-gold: #f5c76a;
  --accent-gold-dim: rgba(245, 199, 106, 0.16);
  --accent-blue: #8ab4ff;
  --glass: rgba(12, 20, 36, 0.78);
  --glass-border: rgba(245, 199, 106, 0.12);
  --glass-highlight: rgba(138, 180, 255, 0.22);
  --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 {
  box-sizing: border-box;
}

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

body.cb-body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  padding-top: calc(46px + 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);
}

body.cb-body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.038;
  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");
}

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

.cb-up {
  color: var(--accent-green);
}

.cb-down {
  color: var(--accent-red);
}

.ticker-strip {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding-top: env(safe-area-inset-top);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  background: rgba(7, 11, 20, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(245, 199, 106, 0.1);
}

.cb-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem) clamp(3rem, 8vw, 5rem);
}

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

.cb-hero__bg {
  position: absolute;
  inset: -30% -40%;
  background:
    radial-gradient(ellipse 50% 45% at 50% 0%, rgba(245, 199, 106, 0.14), transparent 55%),
    radial-gradient(ellipse 40% 35% at 20% 60%, rgba(94, 233, 176, 0.08), transparent 50%),
    radial-gradient(ellipse 45% 40% at 85% 55%, rgba(138, 180, 255, 0.1), transparent 52%),
    linear-gradient(180deg, #0a1020 0%, var(--bg-primary) 55%);
  pointer-events: none;
}

.cb-hero__beam {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 42%,
    rgba(245, 199, 106, 0.04) 50%,
    transparent 58%
  );
  pointer-events: none;
}

.cb-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 960px;
}

.cb-kicker {
  font-family: var(--font-mono);
  font-size: clamp(0.65rem, 1.1vw, 0.75rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.cb-hero__title {
  font-size: clamp(3.5rem, 12vw, 9.5rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.045em;
  margin: 0 0 1.1rem;
}

.cb-hero__lede {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 38rem;
  margin: 0 0 2rem;
}

.cb-score {
  display: grid;
  gap: 0.35rem;
  padding: 1.4rem 1.5rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  max-width: min(100%, 620px);
}

.cb-score__label {
  font-family: var(--font-mono);
  font-size: clamp(0.65rem, 1vw, 0.72rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cb-score__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.85rem;
  margin: 0.2rem 0 0;
  font-size: clamp(2.2rem, 10vw, 4.2rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.cb-score__chip {
  font-size: clamp(0.95rem, 2.8vw, 1.25rem);
  font-weight: 700;
  padding: 0.28rem 0.6rem;
  border-radius: 8px;
  background: var(--accent-green-dim);
  border: 1px solid rgba(94, 233, 176, 0.28);
}

.cb-score__note {
  margin: 0.55rem 0 0;
  font-size: clamp(0.82rem, 1vw, 0.92rem);
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 36rem;
}

.cb-cites {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

a.cb-cite {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 199, 106, 0.28);
  padding-bottom: 0.1rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

a.cb-cite:hover {
  color: var(--text-primary);
  border-color: var(--accent-gold);
}

/* Sections */
.cb-section {
  padding: clamp(2.5rem, 7vw, 5rem) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.cb-eyebrow {
  font-family: var(--font-mono);
  font-size: clamp(0.65rem, 1vw, 0.72rem);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent-blue);
  display: block;
  margin-bottom: 0.75rem;
}

.cb-hed {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.cb-prose {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 42rem;
  margin: 0;
}

/* Follow-up rail */
.cb-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem 0;
}

.cb-rail__tag {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 800;
  line-height: 1;
  color: rgba(245, 199, 106, 0.35);
  letter-spacing: -0.03em;
}

.cb-rail__body {
  flex: 1 1 280px;
  min-width: 0;
}

/* Index board */
.cb-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.cb-board__cell {
  padding: 1.2rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: center;
}

.cb-board__k {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cb-board__v {
  font-size: clamp(1.25rem, 3.2vw, 1.65rem);
  font-weight: 700;
  margin: 0.5rem 0 0.15rem;
}

.cb-board__pct {
  font-size: 0.82rem;
  margin: 0;
}

/* Pull quote */
.cb-pull {
  margin: 0;
  padding: 2.25rem 1.75rem;
  border-radius: 0 20px 20px 0;
  background: linear-gradient(100deg, rgba(245, 199, 106, 0.1), transparent 65%);
  border-left: 3px solid var(--accent-gold);
}

.cb-pull blockquote {
  margin: 0;
  font-size: clamp(1.15rem, 2.5vw, 1.65rem);
  font-weight: 500;
  line-height: 1.55;
}

.cb-pull__src {
  margin: 1.1rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Oil mega */
.cb-oil {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1.25rem 2rem;
  padding: 2rem 0;
}

.cb-oil__pct {
  font-size: clamp(4.5rem, 20vw, 10rem);
  font-weight: 800;
  line-height: 0.85;
  margin: 0;
  letter-spacing: -0.05em;
  color: var(--accent-blue);
}

.cb-oil__copy {
  flex: 1 1 260px;
  min-width: 0;
  padding-bottom: 0.5rem;
}

/* Sector tension */
.cb-sectors {
  display: flex;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

.cb-sectors__half {
  flex: 1 1 280px;
  padding: 1.6rem 1.5rem;
  min-width: 0;
}

.cb-sectors__half--hot {
  background: linear-gradient(160deg, rgba(94, 233, 176, 0.08), transparent);
}

.cb-sectors__half--cold {
  background: linear-gradient(160deg, rgba(255, 122, 140, 0.07), transparent);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (min-width: 769px) {
  .cb-sectors__half--cold {
    border-top: none;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
  }
}

.cb-sectors__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-gold);
}

/* Side story row */
.cb-sideways {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.25rem;
  align-items: stretch;
}

.cb-sideways__main {
  flex: 1 1 320px;
  min-width: 0;
}

.cb-sideways__aside {
  flex: 0 1 220px;
  padding: 1.25rem;
  border-radius: 14px;
  border: 1px dashed rgba(138, 180, 255, 0.25);
  background: rgba(138, 180, 255, 0.04);
  align-self: flex-start;
}

.cb-sideways__aside strong {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--accent-blue);
}

/* Ring row */
.cb-ringrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.75rem;
  margin-top: 1.25rem;
}

.cb-ring {
  width: min(160px, 40vw);
  height: min(160px, 40vw);
  flex-shrink: 0;
}

.cb-ring__bg {
  stroke: rgba(255, 255, 255, 0.08);
}

.cb-ring__fg {
  stroke: var(--accent-gold);
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50px 50px;
}

/* Momentum bar */
.cb-momo {
  margin-top: 1.25rem;
}

.cb-momo__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  margin-top: 0.85rem;
}

.cb-momo__track {
  flex: 1 1 200px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.cb-momo__fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-green));
}

/* Event stack */
.cb-stack {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  border-left: 2px solid rgba(245, 199, 106, 0.25);
}

.cb-stack li {
  position: relative;
  padding: 0.85rem 0 0.85rem 1.35rem;
  margin: 0;
}

.cb-stack li::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 1.1rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 0 4px rgba(245, 199, 106, 0.2);
}

.cb-stack time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--accent-blue);
  display: block;
  margin-bottom: 0.35rem;
}

/* Timeline WTW */
.cb-wtw {
  padding: clamp(2.5rem, 7vw, 4.5rem) 0 clamp(3rem, 9vw, 6rem);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cb-wtw__inner {
  max-width: 760px;
}

.cb-wtw__list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.cb-wtw__list > li {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cb-wtw__list > li:last-child {
  border-bottom: none;
}

.cb-wtw__list time {
  flex: 0 0 8rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--accent-gold);
  min-height: 44px;
  display: flex;
  align-items: flex-start;
}

.cb-wtw__list strong {
  display: block;
  font-size: clamp(1rem, 2vw, 1.12rem);
  margin-bottom: 0.25rem;
}

.cb-micro {
  text-align: center;
  font-size: 0.68rem;
  padding: 1.25rem;
  color: var(--text-muted);
  opacity: 0.45;
}

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

.site-footer__brand {
  font-weight: 700;
  font-size: clamp(1rem, 2vw, 1.15rem);
  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.2);
  animation: cb-pulse 2.4s ease-in-out infinite;
}

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

.site-footer__regen,
.site-footer__session,
.site-footer__timestamp {
  color: var(--text-secondary);
  font-size: clamp(0.88rem, 1.1vw, 0.98rem);
  margin: 0.35rem 0;
  line-height: 1.6;
}

.site-footer__session {
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--accent-gold);
}

a.source {
  color: var(--accent-blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(138, 180, 255, 0.3);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

a.source:hover {
  color: var(--text-primary);
  border-color: var(--accent-blue);
}

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

  .cb-rail {
    flex-direction: column;
  }

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

@media (max-width: 480px) {
  .cb-board {
    gap: 0.65rem;
  }
}
