
:root {
  --ink: #1a2b42;
  --ink-soft: #2d3748;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --paper: #f5f7fb;
  --paper-2: #fafafa;
  --surface: #ffffff;
  --navy: #1a2b42;
  --blue: #3b82f6;
  --blue-deep: #2563eb;
  --emerald: #10b981;
  --up: #059669;
  --down: #dc2626;
  --max: 1180px;
  --display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.6;
  background:
    radial-gradient(900px 420px at 0% 0%, rgba(59, 130, 246, 0.10), transparent 55%),
    radial-gradient(700px 380px at 100% 8%, rgba(16, 185, 129, 0.08), transparent 50%),
    linear-gradient(180deg, #eef3fa 0%, var(--paper) 32%, var(--paper-2) 100%);
}

a { color: var(--blue-deep); text-decoration-thickness: 1px; text-underline-offset: 2px; }

.wrap {
  width: min(var(--max), calc(100% - 3rem));
  margin: 0 auto;
}

.masthead {
  background: linear-gradient(105deg, #132338 0%, var(--navy) 48%, #1e3a5f 100%);
  color: #f8fafc;
  padding: 1.1rem 0 1.2rem;
  border-bottom: 3px solid var(--blue);
}
.masthead-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand-name {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(1.55rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.brand-name a {
  color: inherit;
  text-decoration: none;
}
.brand-name a:hover { opacity: 0.92; }
.brand-name span { color: #93c5fd; font-weight: 500; }
.brand-tag {
  margin: 0.5rem 0 0;
  color: rgba(248, 250, 252, 0.68);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.masthead-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}
.masthead-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.95rem;
  border: 1px solid rgba(147, 197, 253, 0.45);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.22), rgba(16, 185, 129, 0.16));
  color: #f8fafc;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.masthead-cta.secondary {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.45);
}
.masthead-cta:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.35), rgba(16, 185, 129, 0.24));
  border-color: #93c5fd;
  text-decoration: none;
}
.masthead-cta.secondary:hover {
  background: rgba(255, 255, 255, 0.06);
}

.ticker-strip {
  background: #10233a;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}
.strip-inner {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}
.strip-item {
  flex: 1 0 auto;
  min-width: 6.6rem;
  padding: 0.45rem 0.85rem;
  border-right: 1px solid rgba(148, 163, 184, 0.18);
  color: #e2e8f0;
}
.strip-item:last-child { border-right: 0; }
.strip-sym {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #93c5fd;
  line-height: 1.2;
}
.strip-row {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin-top: 0.12rem;
  white-space: nowrap;
}
.strip-px {
  font-family: var(--mono);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  color: #fff;
  line-height: 1.2;
}
.strip-item .move {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
}
.move.up { color: #34d399; }
.move.down { color: #f87171; }
.move.flat { color: #94a3b8; }

.day-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.85fr);
  gap: 1.4rem;
  align-items: start;
  padding: 1.6rem 0 0.5rem;
}

.hero {
  padding: 0 0 1.35rem;
  animation: enter 0.5s ease both;
}
@keyframes enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.1rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: 0.85rem;
}
.session {
  color: var(--blue-deep);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.72rem;
}
.hero h1 {
  margin: 0;
  max-width: 18ch;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.85rem, 4vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--navy);
}
.hero-sub {
  margin: 0.9rem 0 0;
  max-width: 46ch;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.kicker {
  margin: 0;
  color: var(--blue-deep);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.section-head { margin-bottom: 1.15rem; }
.section-head.tight { margin-bottom: 1rem; }
.section-head h2,
.rail-head h2,
.headlines h2 {
  margin: 0.2rem 0 0;
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1.15;
}
.lede {
  margin: 0.55rem 0 0;
  max-width: none;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.headline-stack { display: grid; gap: 0.9rem; }
.headline-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  padding: 1.15rem 1.2rem 1.1rem;
  box-shadow: 0 1px 0 rgba(26, 43, 66, 0.03);
}
.headline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.7rem;
  align-items: center;
  margin-bottom: 0.4rem;
}
.rank {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue-deep);
}
.tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}
.tag.muted { color: var(--muted); font-weight: 600; }
.headline-card h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.015em;
}
.headline-lede {
  margin: 0.55rem 0 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.headline-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-top: 0.95rem;
}
.headline-split h4 {
  margin: 0 0 0.28rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.headline-split p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.hot-rail {
  position: sticky;
  top: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--emerald);
  padding: 1rem 1rem 1.05rem;
}
.rail-head h2 { font-size: 1.25rem; }
.hot-stack {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.85rem;
}
.hot-item {
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}
.hot-item:first-child {
  padding-top: 0;
  border-top: 0;
}
.hot-meta {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  margin-bottom: 0.25rem;
}
.hot-item h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.25;
}
.hot-item p {
  margin: 0.4rem 0 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.section {
  padding: 2.2rem 0;
  border-top: 1px solid var(--line);
  animation: enter 0.55s ease both;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}
.theme {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--emerald);
  padding: 1.1rem 1.15rem 1.05rem;
}
.theme h3 {
  margin: 0.35rem 0 0;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
}
.theme-body {
  margin: 0.65rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.theme-latest {
  margin: 0.75rem 0 0;
  color: var(--ink);
  font-size: 0.92rem;
}
.theme-latest strong { color: var(--navy); }

.tickers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.75rem;
}
.ticker {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--blue-deep);
  background: #eff6ff;
  padding: 0.16rem 0.42rem;
}

.cross-current {
  background: linear-gradient(125deg, #132338 0%, #1a2b42 45%, #1e3a5f 100%);
  color: #f8fafc;
  padding: clamp(1.4rem, 3vw, 2.1rem);
  border-top: 3px solid var(--emerald);
}
.cross-current .kicker { color: #93c5fd; }
.cross-current h2 {
  margin: 0.3rem 0 0;
  font-family: var(--display);
  font-size: clamp(1.55rem, 2.8vw, 2.1rem);
  font-weight: 600;
}
.cross-summary {
  margin: 0.9rem 0 0;
  max-width: 58ch;
  color: rgba(248, 250, 252, 0.88);
  font-size: 1.05rem;
}
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.3rem;
}
.case-grid > div {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.95rem 1rem;
}
.case-grid h3 {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #93c5fd;
}
.case-grid p {
  margin: 0;
  color: rgba(248, 250, 252, 0.9);
  font-size: 0.94rem;
}
.cross-current .ticker {
  background: rgba(59, 130, 246, 0.22);
  color: #dbeafe;
}

.watch-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.watch-list li {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 0.95rem 1.05rem;
}
.watch-index {
  font-family: var(--mono);
  color: var(--blue-deep);
  font-weight: 600;
  padding-top: 0.12rem;
}
.watch-list h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
}
.watch-list p {
  margin: 0.3rem 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.site-footer {
  border-top: 1px solid var(--line-strong);
  padding: 1.8rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.84rem;
}
.site-footer p { margin: 0.3rem 0; max-width: 68ch; }
.site-footer a { color: var(--blue-deep); }
.site-links { margin-top: 0.65rem !important; }
.permalink {
  margin: 0.85rem 0 0;
  font-size: 0.84rem;
}
.permalink a {
  color: var(--blue-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(59, 130, 246, 0.35);
}
.permalink a:hover { border-bottom-color: var(--blue-deep); }
.breadcrumbs {
  font-size: 0.84rem;
  color: var(--muted);
  margin: 0 0 1rem;
}
.breadcrumbs a { color: var(--blue-deep); text-decoration: none; }
.ad-slot {
  margin: 1rem 0 1.25rem;
}
.ad-label {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.ad-box {
  min-height: 90px;
  border: 1px dashed var(--line-strong);
  background: rgba(26, 43, 66, 0.03);
}
.ad-sidebar { margin-bottom: 1rem; }
.topic-list {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.topic-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
}
.topic-link {
  color: var(--blue-deep);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.35;
  flex: 1 1 16rem;
}
.topic-link:hover { text-decoration: underline; }
.topic-date {
  color: var(--muted);
  font-size: 0.84rem;
  font-family: var(--mono);
  white-space: nowrap;
}
.related-stories {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.related-stories h2 {
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--navy);
  margin: 0 0 0.35rem;
}

@media (max-width: 960px) {
  .day-layout { grid-template-columns: 1fr; }
  .hot-rail { position: static; order: -1; }
  .headline-split,
  .theme-grid,
  .case-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { width: min(var(--max), calc(100% - 1.35rem)); }
  .masthead-inner { flex-direction: column; align-items: flex-start; }
  .masthead-meta { justify-content: flex-start; }
  .masthead-cta { white-space: normal; max-width: 14rem; }
}
