/* ==========================================================================
   Kelvane Club — design system
   Fintech-grade editorial UI: hairline rules, tabular numbers, calm color,
   one confident accent. Light + dark themes.
   ========================================================================== */

@font-face {
  font-family: 'BBH Bogle';
  src: url('/assets/fonts/bbh-bogle.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --display: 'BBH Bogle', 'Arial Narrow', Impact, sans-serif;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #fafafa;
  --surface-3: #f4f4f5;
  --ink: #09090b;
  --ink-2: #414141;
  --muted: #747474;
  --faint: #a4a4a4;
  --line: #e4e4e7;
  --line-2: #f1f1f3;
  --brand: #09090b;
  --brand-ink: #000000;
  --brand-soft: #f4f4f5;
  --on-brand: #ffffff;
  --mint: #09090b;
  --up: #059669;
  --up-soft: #ecfdf5;
  --down: #dc2626;
  --down-soft: #fef2f2;
  --live: #dc2626;
  --gold: #a16207;
  --tape: #09090b;
  --tape-ink: #fafafa;
  --tape-muted: #8e8e8e;
  --shadow-sm: 0 1px 1px rgba(9, 9, 11, 0.04);
  --shadow: 0 1px 2px rgba(9, 9, 11, 0.04), 0 4px 16px -8px rgba(9, 9, 11, 0.1);
  --shadow-lg: 0 20px 50px -24px rgba(9, 9, 11, 0.3);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --serif: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --max: 1320px;
  --gutter: clamp(16px, 3vw, 32px);
  color-scheme: light;

  /* desks share one color: the design is black and white */
  --c-ai: #09090b;
  --c-models: #09090b;
  --c-markets: #09090b;
  --c-policy: #09090b;
  --c-startups: #09090b;
  --c-mainstreet: #09090b;
  --c-research: #09090b;
  --c-tech: #09090b;
  --c-desk: #09090b;
}

/* Dark is the default. The light theme applies only when someone picks it. */
:root:not([data-theme='light']),
:root[data-theme='dark'] {
  --bg: #000000;
  --surface: #0a0a0a;
  --surface-2: #111111;
  --surface-3: #181818;
  --ink: #fafafa;
  --ink-2: #d4d4d4;
  --muted: #a3a3a3;
  --faint: #737373;
  --line: #232323;
  --line-2: #161616;
  --brand: #ffffff;
  --brand-ink: #ffffff;
  --brand-soft: #1a1a1a;
  --on-brand: #000000;
  --mint: #ffffff;
  --up: #34d399;
  --up-soft: #062a1e;
  --down: #f87171;
  --down-soft: #2b1013;
  --live: #ff4d4d;
  --tape: #000000;
  --tape-ink: #fafafa;
  --shadow-sm: none;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 20px 40px -28px rgba(0, 0, 0, 0.9);
  --shadow-lg: 0 30px 70px -30px rgba(0, 0, 0, 0.95);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --c-ai: #ffffff; --c-models: #ffffff; --c-markets: #ffffff; --c-policy: #ffffff; --c-startups: #ffffff; --c-mainstreet: #ffffff; --c-research: #ffffff; --c-tech: #ffffff; --c-desk: #fafafa;
  color-scheme: dark;
}

/* ---------- Base ---------- */
[hidden] {
  display: none !important;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}
::selection {
  background: var(--brand);
  color: var(--on-brand);
}
.num,
.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 8px 12px;
  border-radius: 8px;
}
.skip:focus {
  left: 8px;
}

/* ---------- Ticker tape ---------- */
.tape {
  background: var(--tape);
  color: var(--tape-ink);
  height: 38px;
  display: flex;
  align-items: center;
  font-size: 12.5px;
  position: relative;
  z-index: 30;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.tape-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
}
.tape-label {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--tape-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-right: 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  height: 100%;
}
.tape-label b {
  color: var(--tape-ink);
  font-weight: 600;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22d38b;
  box-shadow: 0 0 0 0 rgba(34, 211, 139, 0.6);
  animation: pulse 2s infinite;
  flex: none;
}
.dot.closed {
  background: #8b8b8b;
  animation: none;
}
.dot.red {
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.6);
  animation: pulse-red 1.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 211, 139, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(34, 211, 139, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 211, 139, 0); }
}
@keyframes pulse-red {
  0% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(255, 59, 48, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); }
}
.tape-track {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
}
.tape-rail {
  display: flex;
  width: max-content;
  animation: tape 70s linear infinite;
}
.tape:hover .tape-rail {
  animation-play-state: paused;
}
@keyframes tape {
  to { transform: translateX(-50%); }
}
.tq {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  white-space: nowrap;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.tq .sym {
  color: var(--tape-ink);
  font-weight: 600;
}
.tq .px {
  color: #c4c4c4;
}
.tq .up {
  color: #2fd08f;
}
.tq .down {
  color: #ff6b71;
}
.tq svg {
  width: 44px;
  height: 16px;
}
.tq.index .sym {
  color: #e4e4e7;
}
.tape-clock {
  flex: none;
  font-family: var(--mono);
  color: var(--tape-muted);
  font-size: 11.5px;
  padding-left: 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}
@media (prefers-reduced-motion: reduce) {
  .tape-rail { animation: none; }
  .tape-track { overflow-x: auto; }
}

/* ---------- Header ---------- */
.masthead {
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 25;
}
.mast-row {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  font-weight: 700;
  letter-spacing: -0.035em;
  font-size: 21px;
}
.logo svg {
  width: 30px;
  height: 30px;
  flex: none;
}
.logo .street {
  color: var(--brand);
}
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar {
  display: none;
}
.nav a {
  padding: 8px 11px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.nav a:hover {
  color: var(--ink);
  background: var(--surface-3);
}
.nav a[aria-current='page'] {
  color: var(--ink);
  background: var(--surface-3);
}
.mast-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}
.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-2);
  transition: background 0.15s, border-color 0.15s;
}
.icon-btn:hover {
  background: var(--surface-3);
}
.icon-btn svg {
  width: 19px;
  height: 19px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  transition: transform 0.12s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.btn:hover {
  border-color: var(--faint);
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--ink-2);
  border-color: var(--ink-2);
}
.btn-brand {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--on-brand);
}
.btn-brand:hover {
  background: var(--brand-ink);
  border-color: var(--brand-ink);
}
.btn-ghost {
  background: transparent;
  border-color: transparent;
}
.btn-ghost:hover {
  background: var(--surface-3);
  border-color: transparent;
}
.btn-sm {
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
  border-radius: 8px;
}
.btn svg {
  width: 16px;
  height: 16px;
}
.btn[disabled] {
  opacity: 0.55;
  pointer-events: none;
}
.menu-btn {
  display: none;
}

.dateline {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.dateline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 40px;
  font-size: 12.5px;
  color: var(--muted);
}
.dateline-row b {
  color: var(--ink);
  font-weight: 600;
}
.dateline .live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.dl-right {
  display: flex;
  gap: 18px;
  align-items: center;
}
.dl-right a:hover {
  color: var(--ink);
}

/* Mobile nav drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
}
.drawer.open {
  display: block;
}
.drawer-bg {
  position: absolute;
  inset: 0;
  background: rgba(9, 9, 9, 0.5);
  backdrop-filter: blur(3px);
}
.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 88vw);
  background: var(--surface);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: slidein 0.22s ease-out;
}
@keyframes slidein {
  from { transform: translateX(30px); opacity: 0; }
}
.drawer-panel a {
  padding: 12px 10px;
  border-radius: 10px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}
.drawer-panel a:hover {
  background: var(--surface-3);
}

/* ---------- Breaking ---------- */
.breaking {
  background: #09090b;
  color: #fff;
  border-bottom: 1px solid #27272a;
}
.breaking-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 46px;
  font-size: 14px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.breaking-tag {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--live);
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 4px 9px;
  border-radius: 6px;
}
.breaking-tag .dot {
  background: #fff;
  animation: none;
}
.breaking a.bk-title {
  font-weight: 600;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  min-height: 44px;
}
.breaking a.bk-title:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.breaking .bk-meta {
  color: #ffb4b0;
  font-size: 12.5px;
  flex: none;
}
.breaking .icon-btn {
  color: #ffb4b0;
  width: 30px;
  height: 30px;
}
.breaking .icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ---------- Layout ---------- */
main {
  padding: 24px 0 64px;
  min-height: 60vh;
}
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}
.col-12 { grid-column: span 12; }
.col-9 { grid-column: span 9; }
.col-8 { grid-column: span 8; }
.col-6 { grid-column: span 6; }
.col-4 { grid-column: span 4; }
.col-3 { grid-column: span 3; }
.stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.panel-pad {
  padding: 20px;
}
.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
}
.sec-head h2,
.sec-title {
  margin: 0;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sec-head h2 .bar {
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: var(--sec, var(--brand));
}
.sec-head a.more {
  font-size: 13px;
  font-weight: 550;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.sec-head a.more:hover {
  color: var(--ink);
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 40px 0 28px;
  border: 0;
}

/* ---------- Chips & meta ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--sec, var(--brand));
}
.chip::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: currentColor;
}
.chip.solid {
  background: color-mix(in srgb, var(--sec, var(--brand)) 12%, transparent);
  padding: 4px 8px;
  border-radius: 6px;
}
.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-size: 12.5px;
  color: var(--muted);
}
.meta .src {
  color: var(--ink-2);
  font-weight: 550;
}
.meta .sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--faint);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--ink-2);
}
.pill.live {
  background: color-mix(in srgb, var(--live) 12%, transparent);
  color: var(--live);
}
.pill.brand {
  background: var(--brand-soft);
  color: var(--brand-ink);
}

/* desk color hooks */
[data-sec='ai'] { --sec: var(--c-ai); }
[data-sec='models'] { --sec: var(--c-models); }
[data-sec='markets'] { --sec: var(--c-markets); }
[data-sec='policy'] { --sec: var(--c-policy); }
[data-sec='startups'] { --sec: var(--c-startups); }
[data-sec='mainstreet'] { --sec: var(--c-mainstreet); }
[data-sec='research'] { --sec: var(--c-research); }
[data-sec='tech'] { --sec: var(--c-tech); }
[data-sec='desk'] { --sec: var(--brand); }

/* ---------- Media ---------- */
.media {
  position: relative;
  overflow: hidden;
  background: var(--surface-3);
  border-radius: var(--radius-sm);
  aspect-ratio: 16 / 9;
  isolation: isolate;
}
.media img,
.media svg.cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
a:hover .media img,
a:hover .media svg.cover {
  transform: scale(1.035);
}
.media.logo {
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}
.media.logo img {
  object-fit: contain;
  padding: 12% 16%;
}
.media.r43 { aspect-ratio: 4 / 3; }
.media.r11 { aspect-ratio: 1; }
.media.r32 { aspect-ratio: 3 / 2; }
.media .badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
}
.media .badge.live {
  background: #fff;
  color: var(--live);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* ---------- Story cards ---------- */
.story {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.story h3 {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.3;
  font-weight: 620;
  letter-spacing: -0.012em;
  text-wrap: pretty;
}
.story:hover h3,
.row-story:hover h3,
.lead:hover h2 {
  color: var(--brand);
}
.story p.sum {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Lead story */
.lead {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lead .media {
  border-radius: var(--radius);
}
.lead h2 {
  margin: 4px 0 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 680;
  text-wrap: balance;
  transition: color 0.15s;
}
.lead p.sum {
  margin: 0;
  font-size: 16.5px;
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 62ch;
}
.lead .also {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 12.5px;
  color: var(--muted);
}

/* Compact row story */
.row-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 16px;
  align-items: start;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.row-story:first-child {
  border-top: 0;
  padding-top: 0;
}
.row-story .media {
  aspect-ratio: 1;
  border-radius: 10px;
}
.row-story h3 {
  margin: 6px 0 6px;
  font-size: 15.5px;
  line-height: 1.32;
  font-weight: 620;
  letter-spacing: -0.01em;
  transition: color 0.15s;
}
.row-story.big {
  grid-template-columns: 240px minmax(0, 1fr);
  padding: 20px 0;
}
.row-story.big .media {
  aspect-ratio: 16/10;
  order: -1;
}
.row-story.big h3 {
  font-size: 18.5px;
}
.row-story .sum {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Text-only headline list */
.hl-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.hl-list li + li {
  border-top: 1px solid var(--line);
}
.hl-list a {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  padding: 13px 0;
}
.hl-list .n {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--faint);
  font-weight: 500;
  padding-top: 1px;
}
.hl-list h4 {
  margin: 0 0 4px;
  font-size: 14.5px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.hl-list a:hover h4 {
  color: var(--brand);
}

.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* ---------- Markets widget ---------- */
.mkt-head {
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--line);
}
.mkt-head .row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}
.mkt-head .row svg {
  width: 96px;
  height: 40px;
  flex: none;
  margin-bottom: 6px;
}
.mkt-head .label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 550;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.mkt-head .big {
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -0.03em;
  margin-top: 2px;
}
.mkt-head .sub {
  font-size: 12px;
  color: var(--faint);
}
.mkt-list {
  list-style: none;
  margin: 0;
  padding: 6px 8px 8px;
}
.mkt-list li a {
  display: grid;
  grid-template-columns: 1fr 64px 82px;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
}
.mkt-list li a:hover {
  background: var(--surface-2);
}
.mkt-list .sym {
  font-weight: 650;
  font-size: 13.5px;
  font-family: var(--mono);
}
.mkt-list .nm {
  font-size: 12px;
  color: var(--muted);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mkt-list svg {
  width: 64px;
  height: 26px;
}
.chg {
  text-align: right;
  font-family: var(--mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.chg .p {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.chg-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 12.5px;
}
.up { color: var(--up); }
.down { color: var(--down); }
.chg-badge.up { background: var(--up-soft); }
.chg-badge.down { background: var(--down-soft); }
.mkt-foot {
  padding: 10px 18px 14px;
  font-size: 11.5px;
  color: var(--faint);
  border-top: 1px solid var(--line);
}

/* ---------- The Brief ---------- */
.brief {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #0c0c0c;
  color: #f2f2f2;
  padding: clamp(22px, 3.2vw, 40px);
  isolation: isolate;
}
.brief::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(700px 300px at 100% 0%, rgba(47, 84, 255, 0.35), transparent 60%),
    radial-gradient(500px 260px at 0% 100%, rgba(0, 184, 156, 0.18), transparent 60%);
}
.brief::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, #000, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.brief-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
  align-items: flex-end;
  margin-bottom: 26px;
}
.brief .kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e4e4e7;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brief h2 {
  margin: 8px 0 0;
  font-size: clamp(26px, 3.4vw, 40px);
  letter-spacing: -0.035em;
  line-height: 1.05;
  font-weight: 680;
}
.brief h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: #e4e4e7;
}
.brief .intro {
  max-width: 520px;
  color: #c4c4c4;
  font-size: 15px;
  margin: 0;
}
.brief-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
}
.brief-item {
  background: rgba(17, 17, 17, 0.92);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.2s;
  min-width: 0;
}
.brief-item:hover {
  background: rgba(31, 31, 31, 0.95);
}
.brief-item .n {
  font-family: var(--mono);
  font-size: 12px;
  color: #808080;
  display: flex;
  justify-content: space-between;
}
.brief-item h3 {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.3;
  font-weight: 620;
  letter-spacing: -0.01em;
  color: #fff;
}
.brief-item p {
  margin: 0;
  font-size: 13.5px;
  color: #b0b0b0;
  line-height: 1.5;
}
.brief-item .why {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  font-size: 12.5px;
  color: #d4d4d4;
}
.brief-item .why b {
  color: #0a0a0a;
  font-weight: 600;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-right: 4px;
}
.brief .chip {
  --sec: #e4e4e7;
}

/* ---------- Desk (own posts) ---------- */
.desk-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.desk-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.18;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.desk-card:hover h3 {
  color: var(--brand);
}
.desk-card .dek {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}
.desk-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  align-items: center;
}
.desk-row:first-of-type {
  border-top: 0;
  padding-top: 4px;
}
.desk-row .media {
  aspect-ratio: 1;
  border-radius: 10px;
}
.desk-row h4 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.2;
}
.desk-row:hover h4 {
  color: var(--brand);
}

/* ---------- Newsletter ---------- */
.signup {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: var(--radius);
  background: #09090b;
  border: 1px solid #27272a;
  color: #fff;
}
.signup::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 30px rgba(255, 255, 255, 0.04), 0 0 0 60px rgba(255, 255, 255, 0.03);
}
.signup h3 {
  margin: 0 0 6px;
  font-size: 20px;
  letter-spacing: -0.02em;
  font-weight: 650;
  position: relative;
}
.signup p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  position: relative;
}
.signup form {
  display: flex;
  gap: 8px;
  position: relative;
}
.signup input[type='email'] {
  flex: 1;
  min-width: 0;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 0 14px;
  outline: none;
}
.signup input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}
.signup input:focus {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.18);
}
.signup button {
  height: 42px;
  border-radius: 10px;
  border: 0;
  background: #fff;
  color: #111111;
  font-weight: 650;
  padding: 0 16px;
}
.signup .msg {
  font-size: 13px;
  margin-top: 10px;
  min-height: 1em;
  position: relative;
}
.signup .alt {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  position: relative;
}
.signup .alt a {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.signup .alt a:hover {
  background: rgba(255, 255, 255, 0.22);
}
.hp {
  position: absolute !important;
  left: -9999px !important;
}

/* ---------- Learn promo ---------- */
.promo {
  display: block;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  position: relative;
  overflow: hidden;
}
.promo h3 {
  margin: 8px 0 6px;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.promo p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.promo:hover {
  border-color: var(--faint);
}
.terms {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.terms span {
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--surface-3);
  color: var(--ink-2);
}

/* ---------- Tabs / filters ---------- */
.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface-3);
  border-radius: 10px;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs button {
  border: 0;
  background: transparent;
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 550;
  color: var(--muted);
  white-space: nowrap;
}
.tabs button[aria-selected='true'] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

/* ---------- Page header (section/search/etc) ---------- */
.page-head {
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.page-head h1 {
  margin: 8px 0 8px;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 700;
}
.page-head p {
  margin: 0;
  color: var(--muted);
  font-size: 16.5px;
  max-width: 60ch;
}
.crumbs {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: center;
}
.crumbs a:hover {
  color: var(--ink);
}

/* ---------- Article (story + post) ---------- */
.article {
  max-width: 760px;
  margin: 0 auto;
}
.article-head h1 {
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 14px 0 14px;
  text-wrap: balance;
}
.article-head .dek {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0 0 20px;
}
.byline {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.byline .avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  flex: none;
}
.byline .who {
  font-weight: 600;
  font-size: 14px;
}
.byline .when {
  font-size: 13px;
  color: var(--muted);
}
.byline .share {
  margin-left: auto;
  display: flex;
  gap: 4px;
}
.article-figure {
  margin: 0 0 32px;
}
.article-figure .media {
  border-radius: var(--radius);
}
.article-figure figcaption {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 10px;
}
.prose {
  font-size: 18px;
  line-height: 1.72;
  color: var(--ink-2);
}
.prose > * + * {
  margin-top: 1.1em;
}
.prose p {
  margin: 0;
}
.prose h2 {
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 1.8em 0 0.2em;
  font-weight: 650;
}
.prose h3 {
  font-size: 20px;
  color: var(--ink);
  margin: 1.6em 0 0.2em;
  font-weight: 650;
}
.prose a {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.prose strong {
  color: var(--ink);
}
.prose ul,
.prose ol {
  padding-left: 1.3em;
}
.prose li + li {
  margin-top: 0.4em;
}
.prose li::marker {
  color: var(--brand);
}
.prose blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--brand);
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.45;
  color: var(--ink);
}
.prose blockquote p {
  margin: 0;
}
.prose code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--surface-3);
  padding: 2px 6px;
  border-radius: 5px;
}
.prose pre {
  background: #111111;
  color: #ebebeb;
  padding: 18px;
  border-radius: 12px;
  overflow-x: auto;
  font-size: 14px;
}
.prose pre code {
  background: none;
  padding: 0;
}
.prose hr {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 2.4em 0;
}
.prose .md-fig {
  margin: 1.8em 0;
}
.prose .md-fig img {
  border-radius: 12px;
  width: 100%;
}
.prose figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}
.prose .md-embed {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
}
.prose .md-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.prose > p:first-child {
  display: flow-root;
}
.prose > p:first-child::first-letter {
  font-family: var(--serif);
  float: left;
  font-size: 3.6em;
  line-height: 0.9;
  padding: 0.06em 0.1em 0 0;
  color: var(--ink);
}

.credit {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--muted);
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: 10px;
  background: var(--surface);
  margin: -12px 0 28px;
}
.credit a {
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.credit a svg {
  width: 13px;
  height: 13px;
}
.credit a:hover {
  color: var(--brand);
}
.takebox {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 0 28px;
}
.takebox-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.takebox-body {
  padding: 20px;
  display: grid;
  gap: 16px;
}
.takebox-body p {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
.takebox h4 {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}
.takebox ul {
  margin: 0;
  padding-left: 1.2em;
  color: var(--ink-2);
  font-size: 15.5px;
}
.takebox li + li {
  margin-top: 6px;
}
.readout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--bg);
  margin: 0 0 32px;
}
.readout .t {
  font-size: 13px;
  opacity: 0.7;
}
.readout .s {
  font-weight: 650;
  font-size: 16px;
}
.readout .btn {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--bg);
}
.coverage {
  list-style: none;
  margin: 0;
  padding: 0;
}
.coverage li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.coverage a {
  font-weight: 550;
}
.coverage a:hover {
  color: var(--brand);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tags a,
.tags span {
  font-size: 12.5px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-2);
}
.ai-note {
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px dashed var(--line);
}

/* ---------- Skeletons ---------- */
.sk {
  background: linear-gradient(90deg, var(--surface-3), var(--surface-2), var(--surface-3));
  background-size: 200% 100%;
  animation: sk 1.3s ease-in-out infinite;
  border-radius: 8px;
}
@keyframes sk {
  to { background-position: -200% 0; }
}
.sk-line {
  height: 14px;
  margin: 8px 0;
}
.sk-title {
  height: 26px;
  margin: 10px 0;
}
.empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

/* ---------- Search overlay ---------- */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  background: rgba(9, 9, 9, 0.5);
  backdrop-filter: blur(4px);
  padding: 10vh 16px 16px;
}
.search-overlay.open {
  display: block;
}
.search-box {
  max-width: 680px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}
.search-box form {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}
.search-box input {
  flex: 1;
  height: 60px;
  border: 0;
  background: transparent;
  font-size: 18px;
  outline: none;
}
.search-box .hint {
  padding: 16px 18px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.search-box .hint a {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--ink-2);
}
kbd {
  font-family: var(--mono);
  font-size: 11px;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--tape);
  color: #c4c4c4;
  padding: 56px 0 28px;
  font-size: 14px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 32px;
}
.site-footer .logo {
  color: #fff;
}
.site-footer .logo .street {
  color: #e4e4e7;
}
.site-footer h4 {
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
}
.site-footer a:hover {
  color: #fff;
}
.foot-note {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 44px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: #8b8b8b;
}
.socials {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}
.socials a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.socials a:hover {
  background: rgba(255, 255, 255, 0.12);
}
.socials svg {
  width: 18px;
  height: 18px;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--bg);
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 550;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s;
  z-index: 90;
  max-width: calc(100vw - 32px);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%);
}

/* ---------- Glossary ---------- */
.gloss {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.gloss .term {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.gloss .term h3 {
  margin: 0 0 6px;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.gloss .term p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14.5px;
}
.gloss .term .eg {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}
.letter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav a {
    padding: 8px 8px;
    font-size: 13.5px;
  }
}
@media (max-width: 1080px) {
  .col-9, .col-8 { grid-column: span 12; }
  .col-3, .col-4 { grid-column: span 6; }
  .brief-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .menu-btn { display: grid; }
  .mast-row { justify-content: space-between; }
}
@media (max-width: 720px) {
  body { font-size: 15px; }
  .grid { gap: 20px; }
  .col-6, .col-3, .col-4 { grid-column: span 12; }
  .cards-3 { grid-template-columns: 1fr; }
  .cards-4 { grid-template-columns: 1fr 1fr; gap: 18px; }
  .brief-grid { grid-template-columns: 1fr; }
  .row-story.big { grid-template-columns: 1fr; }
  .row-story { grid-template-columns: minmax(0, 1fr) 92px; }
  .gloss { grid-template-columns: 1fr; }
  .dl-right, .tape-clock { display: none; }
  .breaking-row { font-size: 13.5px; gap: 10px; }
  .tape-label span.full { display: none; }
  .mast-actions .btn-subscribe { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
  .prose { font-size: 17px; }
  .breaking .bk-meta { display: none; }
  .mast-row { height: 58px; }
}
@media (max-width: 460px) {
  .cards-4 { grid-template-columns: 1fr; }
}

/* ---------- Touch screens: comfortable tap targets ---------- */
/* Small text links get a bigger invisible hit area (padding + matching negative margin) so layout doesn't move. */
@media (pointer: coarse) {
  .icon-btn { width: 44px; height: 44px; }
  .btn { min-height: 44px; }
  .btn-sm { min-height: 40px; }
  .tabs button { padding: 10px 14px; }
  .drawer-panel a { padding: 14px 12px; }
  .hl-list a { padding: 15px 0; }
  .nav a { padding: 12px 12px; }
  .tags a, .tags span { padding: 9px 14px; }
  .crumbs a, .sec-head a.more, .dl-right a, .credit a { display: inline-flex; align-items: center; padding: 13px 8px; margin: -13px -8px; }
  .site-footer ul { gap: 0; }
  .site-footer li a { display: inline-block; padding: 12px 0; }
  .site-footer .socials a { width: 44px; height: 44px; }
  .meta a { padding: 12px 4px; margin: -12px -4px; }
}

/* ---------- Small phones (iPhone SE and narrower): header must not overlap ---------- */
@media (max-width: 400px) {
  .mast-row { gap: 8px; }
  .logo { font-size: 19px; gap: 8px; min-width: 0; }
  .logo svg { width: 27px; height: 27px; }
  .mast-actions { gap: 0; }
  .mast-actions .icon-btn { width: 40px; height: 40px; }
}
@media (max-width: 340px) {
  .logo { font-size: 17px; }
  .mast-actions .icon-btn { width: 38px; height: 38px; }
}
@media (pointer: coarse) {
  .coverage li { padding: 0; }
  .coverage a { display: block; padding: 13px 0 3px; }
  .site-footer li a { min-width: 44px; }
}

@media (pointer: coarse) {
  .logo { min-height: 44px; }
}

/* ==========================================================================
   Kelvane Club look: dark, cinematic, fintech. Deep navy-black, one mint accent,
   big photo-led cards, glass panels, pill controls.
   ========================================================================== */
:root:not([data-theme='light']) body,
:root[data-theme='dark'] body {
  background:
    radial-gradient(900px 520px at 0% 100%, rgba(150, 150, 150, 0.22), transparent 62%),
    radial-gradient(700px 420px at 100% 0%, rgba(255, 255, 255, 0.07), transparent 60%),
    var(--bg);
}
:root:not([data-theme='light']) .panel,
:root[data-theme='dark'] .panel,
:root:not([data-theme='light']) .story-glass,
:root[data-theme='dark'] .story-glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: var(--shadow);
}

/* Masthead */
.masthead { background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.mast-row { height: 72px; }
.logo { font-size: 26px; font-weight: 700; letter-spacing: -0.04em; gap: 12px; }
.logo svg { width: 34px; height: 34px; }
.nav { gap: 6px; justify-content: center; }
.nav a { border-radius: 999px; padding: 10px 18px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.nav a:hover { background: rgba(255, 255, 255, 0.06); color: var(--ink); }
.nav a[aria-current='page'] { background: rgba(255, 255, 255, 0.1); color: var(--ink); }
.btn { border-radius: 999px; }
.btn-primary { background: #fff; border-color: #fff; color: #000000; font-weight: 600; }
.btn-primary:hover { background: #e5e5e5; border-color: #e5e5e5; }
.icon-btn { border-radius: 999px; }

/* Top tape: LIVE MARKETS strip */
.tape { border-bottom: 1px solid rgba(255, 255, 255, 0.08); background: transparent; }
.tape-label b { letter-spacing: 0.04em; }
.dateline { background: transparent; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }

/* Breaking: a rounded alert bar inside the page */
.breaking { background: transparent; border: 0; padding-top: 16px; }
.breaking-row { background: linear-gradient(90deg, rgba(255, 77, 77, 0.12), rgba(255, 77, 77, 0.04)); border: 1px solid rgba(255, 77, 77, 0.35); border-radius: 14px; padding: 6px 18px; min-height: 52px; }
.breaking-tag { background: none; color: #ff6b6b; padding: 0 12px 0 0; border-right: 1px solid rgba(255, 255, 255, 0.14); border-radius: 0; font-size: 12px; letter-spacing: 0.14em; }
.breaking-tag .dot { background: #ff4d4d; }
.breaking a.bk-title { font-weight: 500; }

/* Section heads, chips, tags */
.sec-head h2 { font-size: 12.5px; letter-spacing: 0.14em; color: var(--ink-2); }
.sec-head h2 .bar { width: 10px; height: 10px; border-radius: 3px; background: var(--brand); }
.chip { color: var(--brand); }
.chip::before { display: none; }
.chip.solid { background: rgba(255, 255, 255, 0.1); padding: 5px 11px; border-radius: 999px; }
.tags a, .pill { border-radius: 999px; }

/* HERO: photo card with the headline on top of it */
.hero { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 460px; border-radius: 22px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.1); isolation: isolate; background: var(--surface-2); }
.hero .media { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; z-index: -2; background: #0d0d0d; }

.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.7) 42%, rgba(0, 0, 0, 0.1) 78%), linear-gradient(0deg, rgba(0, 0, 0, 0.75), transparent 55%); }
.hero-body { padding: clamp(22px, 3.2vw, 44px); max-width: 720px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.hero h2 { margin: 0; font-size: clamp(34px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 700; text-wrap: balance; }
.hero h2 em { font-style: normal; color: var(--brand); }
.hero .sum { margin: 0; font-size: 17px; line-height: 1.5; color: var(--ink-2); max-width: 52ch; }
.hero .hero-cta { display: flex; align-items: center; gap: 16px; font-size: 14.5px; color: var(--ink-2); }
.hero .read { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 500; }
.hero .read i { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.5); display: grid; place-items: center; }
.hero .read svg { width: 15px; height: 15px; }
.hero .hero-cta .sep { width: 1px; height: 18px; background: rgba(255, 255, 255, 0.25); }
.hero .chip-pill { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.07); backdrop-filter: blur(8px); font-size: 13px; font-weight: 600; color: var(--ink); }
.hero .badge { position: absolute; top: 18px; right: 18px; }

/* Photo cards with the title laid over the picture */
.pcard { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px; border-radius: 20px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.1); isolation: isolate; background: var(--surface-2); }
.pcard .media { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; z-index: -2; background: #0d0d0d; }
.pcard::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0, 0, 0, 0.96) 6%, rgba(0, 0, 0, 0.72) 48%, rgba(0, 0, 0, 0.05) 85%); }
.pcard .tagpill { position: absolute; top: 16px; left: 16px; padding: 6px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600; border: 1px solid rgba(255, 255, 255, 0.55); background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(8px); color: var(--brand); text-transform: uppercase; letter-spacing: 0.04em; }
.pcard-body { padding: 18px 20px 18px; display: flex; flex-direction: column; gap: 8px; }
.pcard h3 { margin: 0; font-size: 21px; line-height: 1.12; letter-spacing: -0.035em; font-weight: 650; text-wrap: balance; }
.pcard .sum { margin: 0; font-size: 14px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .meta { color: var(--muted); font-size: 12.5px; }
a:hover .media img { transform: scale(1.04); }

/* Promo / signup card */
.promo-card { border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 12px; justify-content: center; background: radial-gradient(420px 260px at 100% 0%, rgba(255, 255, 255, 0.16), transparent 70%), linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)); border: 1px solid rgba(255, 255, 255, 0.22); min-height: 300px; }
.promo-card .ic { width: 46px; height: 46px; border-radius: 14px; background: rgba(255, 255, 255, 0.14); color: var(--brand); display: grid; place-items: center; }
.promo-card .ic svg { width: 22px; height: 22px; }
.promo-card h3 { margin: 0; font-size: 30px; letter-spacing: -0.04em; line-height: 1.05; }
.promo-card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.promo-card .btn { align-self: flex-start; margin-top: 6px; background: var(--brand); border-color: var(--brand); color: var(--on-brand); font-weight: 650; padding: 0 22px; height: 44px; }
.signup { background: radial-gradient(420px 260px at 100% 0%, rgba(255, 255, 255, 0.16), transparent 70%), linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)) !important; border: 1px solid rgba(255, 255, 255, 0.22) !important; border-radius: 20px; }

/* Markets panel */
.mkt-head .big { letter-spacing: -0.04em; }
.mkt-list .chg .c, .mkt-list .chg span + span { border-radius: 999px; }

/* Trending topics bar */
.topics-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 28px; padding: 6px 0 0; }
.topics-bar .lbl { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; letter-spacing: 0.16em; font-weight: 600; color: var(--ink-2); text-transform: uppercase; margin-right: 6px; }
.topics-bar .lbl svg { width: 22px; height: 22px; color: var(--brand); }
.topics-bar a.t { padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.08); font-size: 14px; color: var(--ink-2); }
.topics-bar a.t:hover { color: var(--ink); background: rgba(255, 255, 255, 0.1); }
.topics-bar .follow { margin-left: auto; display: inline-flex; align-items: center; gap: 14px; font-size: 14px; color: var(--ink-2); }
.topics-bar .follow a { display: grid; place-items: center; color: var(--ink); }
.topics-bar .follow svg { width: 20px; height: 20px; }

/* Rows and cards further down the page */
.story .media, .row-story .media, .desk-card .media { border-radius: 16px; }
.brief { background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)); border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 22px; }
.page-head h1 { letter-spacing: -0.045em; }
.site-footer { background: rgba(0, 0, 0, 0.35); border-top: 1px solid rgba(255, 255, 255, 0.08); }

@media (max-width: 900px) {
  .hero { min-height: 420px; }
  .hero::after { background: linear-gradient(0deg, rgba(0, 0, 0, 0.95) 8%, rgba(0, 0, 0, 0.55) 60%, rgba(0, 0, 0, 0.2)); }
  .hero-body { padding: 22px; }
  .topics-bar .follow { margin-left: 0; width: 100%; }
}
@media (max-width: 400px) {
  .nav a { padding: 10px 14px; }
}
.hero .media .badge { left: auto; right: 18px; top: 18px; width: auto; }
#lead { display: flex; }
#lead > .hero { flex: 1; }
.badge.live { background: rgba(255, 77, 77, 0.16) !important; border: 1px solid rgba(255, 77, 77, 0.5); color: #ff8a8a !important; backdrop-filter: blur(8px); }
.breaking-row.wrap { width: min(calc(100% - 2 * var(--gutter)), calc(var(--max) - 2 * var(--gutter))); padding-left: 18px; padding-right: 18px; margin: 0 auto; max-width: none; }
.hero .read { white-space: nowrap; }
@media (max-width: 600px) { .hero .hero-cta > span:last-child, .hero .hero-cta .sep { display: none; } }
.brief .why b, .brief-item .why b { display: block; color: var(--brand); font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; }
.brief .why { color: var(--ink-2); }
.topics-bar .follow a { width: 44px; height: 44px; margin: -8px 0; }
.topics-bar .follow { gap: 4px; }

/* ==========================================================================
   KELVANE CLUB display layer: BBH Bogle for the wordmark, every headline,
   navigation and labels. Paragraph text stays in Geist so it reads easily.
   ========================================================================== */
.logo .wm { display: flex; flex-direction: column; font-family: var(--display); font-weight: 400; font-size: 25px; line-height: 0.8; letter-spacing: 0.01em; text-transform: uppercase; color: var(--ink); }
.logo .wm span + span { color: var(--brand); }
.site-footer .logo .wm { font-size: 34px; }
.drawer-panel .logo .wm { font-size: 22px; }

h1, h2, h3, h4,
.hero h2, .lead h2, .pcard h3, .story h3, .row-story h3, .desk-card h3, .hl-list h4, .brief h2, .brief-item h3,
.article-head h1, .page-head h1, .promo-card h3, .gloss h3, .prose h2, .prose h3 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}
.hero h2 { font-size: clamp(40px, 5.6vw, 82px); line-height: 0.9; }
.pcard h3 { font-size: 25px; line-height: 0.98; }
.story h3 { font-size: 22px; line-height: 1; }
.row-story h3 { font-size: 20px; line-height: 1.02; margin: 6px 0 8px; }
.row-story.big h3 { font-size: 25px; }
.hl-list h4 { font-size: 18px; line-height: 1.04; }
.desk-card h3 { font-size: 26px; line-height: 0.98; }
.brief h2 { font-size: clamp(34px, 4.4vw, 60px); line-height: 0.92; }
.brief h2 em { font-family: var(--display); font-style: normal; color: var(--brand); }
.brief-item h3 { font-size: 22px; line-height: 1; }
.article-head h1 { font-size: clamp(42px, 6.4vw, 92px); line-height: 0.9; letter-spacing: 0.005em; }
.article-head .dek { font-size: 20px; line-height: 1.45; color: var(--ink-2); }
.page-head h1 { font-size: clamp(48px, 8vw, 120px); line-height: 0.86; letter-spacing: 0.005em; }
.promo-card h3 { font-size: 38px; line-height: 0.92; }
.prose h2 { font-size: 32px; line-height: 1; margin-top: 2em; color: var(--ink); }
.prose h2::before { content: ''; display: block; width: 36px; height: 3px; border-radius: 3px; background: var(--brand); margin-bottom: 14px; }
.prose h3 { font-size: 24px; }

/* Nav, labels, chips, buttons */
.nav a { font-family: var(--display); font-size: 17px; letter-spacing: 0.04em; text-transform: uppercase; padding: 10px 16px 8px; }
.sec-head h2, .sec-title { font-family: var(--display); font-size: 20px; letter-spacing: 0.04em; color: var(--ink); }
.chip, .chip-pill, .tagpill, .breaking-tag, .topics-bar .lbl { font-family: var(--display); font-weight: 400; letter-spacing: 0.06em; }
.chip { font-size: 14px; }
.hero .chip-pill { font-size: 15px; padding: 7px 14px 5px; }
.pcard .tagpill { font-size: 14px; padding: 6px 13px 4px; }
.breaking-tag { font-size: 15px; }
.topics-bar .lbl { font-size: 18px; }
.btn { font-family: var(--display); font-weight: 400; font-size: 16px; letter-spacing: 0.05em; text-transform: uppercase; }
.tabs button, .tabs a { font-family: var(--display); font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; }
.mkt-head .big, .stat .v { font-family: var(--display); font-weight: 400; font-size: 46px; letter-spacing: 0.01em; }
.crumbs { font-family: var(--display); letter-spacing: 0.06em; text-transform: uppercase; font-size: 14px; }
.hero .read, .meta .src { font-weight: 600; }

/* Motion: images drift slowly, cards lift and glow */
@keyframes kb { from { transform: scale(1.02); } to { transform: scale(1.1); } }
.hero .media img { animation: kb 12s ease-out both; }
.pcard, .hero, .story, .desk-card, .promo-card { transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
.pcard:hover, .promo-card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.5); box-shadow: 0 24px 50px -30px rgba(255, 255, 255, 0.45); }
.hero:hover { border-color: rgba(255, 255, 255, 0.4); }
.pcard:hover h3, .row-story:hover h3, .story:hover h3, .hl-list a:hover h4, .desk-card:hover h3 { color: var(--brand); }
@media (prefers-reduced-motion: reduce) { .hero .media img { animation: none; } .pcard:hover, .promo-card:hover { transform: none; } }

/* Reading progress bar on articles */
.read-progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--brand), #d4d4d4); z-index: 60; box-shadow: 0 0 12px rgba(255, 255, 255, 0.7); }

/* Article page: source line, key points, keep-reading grid */
.src-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 20px 0 28px; padding: 14px 18px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.09); background: rgba(255, 255, 255, 0.03); font-size: 14px; color: var(--ink-2); }
.src-line b { color: var(--ink); }
.src-line .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 10px var(--brand); }
.keypoints { border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.25); background: radial-gradient(400px 200px at 100% 0%, rgba(255, 255, 255, 0.1), transparent 70%), rgba(255, 255, 255, 0.02); padding: 22px 24px; margin: 0 0 32px; }
.keypoints h4 { margin: 0 0 12px; font-family: var(--display); font-weight: 400; font-size: 20px; letter-spacing: 0.04em; color: var(--brand); text-transform: uppercase; }
.keypoints ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.keypoints li { position: relative; padding-left: 22px; font-size: 16px; line-height: 1.5; color: var(--ink); }
.keypoints li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 9px; height: 9px; border-radius: 2px; background: var(--brand); }
.also-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.also-list li { padding: 7px 13px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); font-size: 13.5px; color: var(--ink-2); }
.keep-reading { margin-top: 56px; }
.keep-reading .cards-3 { gap: 20px; }
.writing { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.writing .pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.25; transform: scale(0.7); } }

/* Instant search results */
.search-box { border-radius: 20px; }
.sr-list { list-style: none; margin: 8px 0 0; padding: 0; max-height: min(60vh, 520px); overflow: auto; }
.sr-list a { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px; border-radius: 12px; }
.sr-list a:hover, .sr-list a.on { background: rgba(255, 255, 255, 0.06); }
.sr-list .th { width: 64px; height: 48px; border-radius: 8px; overflow: hidden; background: var(--surface-3); }
.sr-list .th img, .sr-list .th svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.sr-list b { display: block; font-family: var(--display); font-weight: 400; font-size: 18px; line-height: 1.02; text-transform: uppercase; color: var(--ink); }
.sr-list small { color: var(--muted); font-size: 12.5px; }
.sr-list mark, .results mark { background: none; color: var(--brand); }
.sr-topic { display: inline-flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 4px; }
.sr-topic a { padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.4); color: var(--brand); font-family: var(--display); letter-spacing: 0.04em; font-size: 15px; text-transform: uppercase; }
.sr-empty { padding: 18px 10px; color: var(--muted); font-size: 14px; }
.search-big { display: flex; gap: 10px; max-width: 760px; margin-top: 22px; padding: 6px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.04); }
.search-big:focus-within { border-color: rgba(255, 255, 255, 0.6); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12); }
.search-big input { flex: 1; min-width: 0; height: 52px; border: 0; background: transparent; padding: 0 18px; font-size: 17px; color: var(--ink); outline: none; }
.search-big .btn { height: 52px; padding: 0 26px; }
/* BBH Bogle has one weight: never let the browser fake a bold version */
html { font-synthesis: none; }
.logo .wm, .nav a, .btn, .chip, .chip-pill, .tagpill, .sec-head h2, .breaking-tag, .crumbs, .tabs button, .tabs a, .sr-topic a, .topics-bar .lbl, h1, h2, h3, h4 { font-weight: 400; }
.prose strong, .prose b { font-family: var(--font); }
.logo .wm { font-size: 30px; }
mark { background: none; color: var(--brand); }
.brief::before { background: radial-gradient(700px 300px at 100% 0%, rgba(255, 255, 255, 0.14), transparent 60%), radial-gradient(500px 260px at 0% 100%, rgba(150, 150, 150, 0.2), transparent 60%); }
.brief .kicker { font-family: var(--display); font-size: 16px; letter-spacing: 0.08em; color: var(--brand); }
@media (max-width: 400px) { .logo .wm { font-size: 24px; } }
.prose > p:first-of-type::first-letter { font-family: var(--display); font-weight: 400; color: var(--brand); }

/* ==========================================================================
   Black and white. No accent color: contrast does the work.
   Green and red appear only on prices going up or down.
   ========================================================================== */
.logo .wm span + span { color: #8f8f8f; }
:root[data-theme='light'] .logo .wm span + span { color: #6b6b6b; }
.hero h2 em, .brief h2 em { color: inherit; }
.hero h2 em { background: none; }
.breaking-row { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.14); }
.breaking-tag { color: #fff; }
.breaking-tag .dot { background: #ff3b30; box-shadow: 0 0 10px rgba(255, 59, 48, 0.8); }
.breaking .bk-meta { color: var(--muted) !important; }
.badge.live { background: rgba(0, 0, 0, 0.55) !important; border-color: rgba(255, 255, 255, 0.3); color: #fff !important; }
.chip, .chip.solid { color: var(--ink); }
.chip.solid { background: rgba(255, 255, 255, 0.08); }
:root[data-theme='light'] .chip.solid { background: rgba(0, 0, 0, 0.06); }
.pcard .tagpill { color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.promo-card .btn { background: #fff; border-color: #fff; color: #000; }
.promo-card .ic { color: #fff; }
.src-line .dot { background: #fff; box-shadow: none; }
.read-progress { background: #fff; box-shadow: none; }
.sec-head h2 .bar { background: var(--ink); }
.topics-bar .lbl svg { color: var(--ink); }
.pcard:hover, .promo-card:hover { box-shadow: 0 24px 50px -30px rgba(255, 255, 255, 0.25); }
.keypoints h4, .prose > p:first-of-type::first-letter { color: var(--ink); }
.prose h2::before { background: var(--ink); }
.live .dot, .dot.green { background: #fff; }
.logo { gap: 12px; align-items: center; }
.logo svg.mk { width: 46px; height: 46px; flex: none; }
.site-footer .logo svg.mk { width: 54px; height: 54px; }
@media (max-width: 400px) { .logo svg.mk { width: 38px; height: 38px; } .logo { gap: 9px; } }
.site-footer .logo svg.mk rect { fill: #fff !important; }
.site-footer .logo svg.mk path { fill: #000 !important; }

/* Fast scrolling: no blur, no fixed-background repaints. The page glow sits on its
   own fixed layer so the browser never repaints it while you scroll. */
.masthead, .chip-pill, .tagpill, .badge, .badge.live, .hero .chip-pill, .pcard .tagpill { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.masthead { background: rgba(0, 0, 0, 0.94); }
:root[data-theme='light'] .masthead { background: rgba(255, 255, 255, 0.96); }
:root:not([data-theme='light']) body, :root[data-theme='dark'] body { background: var(--bg); }
:root:not([data-theme='light']) body::before, :root[data-theme='dark'] body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(900px 520px at 0% 100%, rgba(150, 150, 150, 0.14), transparent 62%), radial-gradient(700px 420px at 100% 0%, rgba(255, 255, 255, 0.05), transparent 60%);
}
.hero .media img, .pcard .media img { will-change: transform; }
.pcard .tagpill, .hero .chip-pill { background: rgba(0, 0, 0, 0.6); }
