/* Baseball Salary Cap — "Sandlot" theme */
:root {
  --sky: #2f8fe0;
  --grass: #2e9e3f;
  --grass-2: #279036;
  --sun: #ffcc1a;
  --red: #e8322a;
  --dirt: #c9813f;
  --ink: #141414;
  --bg: #fff7e0;
  --surface: #f2dfc2;
  --text: #1c1c1c;
  --muted: #5c5546;
  --link: #1565b8;
  --against: #1f8a35;
  --for: #d9561b;
  --radius: 16px;
  --shadow: 5px 5px 0 var(--ink);
  --display: "Luckiest Guy", "Arial Black", Impact, sans-serif;
  --body: "Nunito", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f2238;
    --surface: #6e4424;
    --text: #f6f0dc;
    --muted: #b8c4d6;
    --link: #8cc8ff;
    --against: #5fd47a;
    --for: #ff9a5c;
    --ink: #050a12;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--body); }
a { color: var(--link); font-weight: 700; }
.wrap { max-width: 900px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { background: linear-gradient(180deg, #2f8fe0 0, #3d97e3 calc(100% - 20px), #8cc3ee calc(100% - 10px), #ffc56b 100%); border-bottom: 5px solid var(--ink); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { width: 54px; height: 54px; flex: none; }
.logo b { display: block; font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1; color: var(--sun); -webkit-text-stroke: 2px #141414; paint-order: stroke fill; text-shadow: 3px 3px 0 #141414; letter-spacing: .02em; }
.logo small { display: block; font-weight: 900; font-size: 11px; color: #fff; letter-spacing: .1em; margin-top: 5px; text-shadow: 1px 1px 0 rgba(0,0,0,.4); }
.site-header nav { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.site-header nav a { color: #fff; text-decoration: none; font-weight: 900; font-size: 15px; text-shadow: 1px 1px 0 rgba(0,0,0,.35); }
.site-header nav a[aria-current] { color: var(--sun); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; }

main { padding-top: 28px; padding-bottom: 48px; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: .01em; color: var(--text); }
h1 { font-size: clamp(30px, 5.4vw, 46px); line-height: 1.05; margin: 0 0 16px; }
h2 { font-size: 28px; line-height: 1.1; margin: 42px 0 12px; }
main h2::before { content: ""; display: inline-block; width: 34px; height: 22px; margin-right: 10px; vertical-align: -2px; background: url(/pennant.svg) left center / contain no-repeat; }
.sources h2::before { display: none; }
h3 { font-size: 18px; line-height: 1.35; margin: 6px 0; font-weight: 900; }
.kicker { text-transform: uppercase; letter-spacing: .1em; font-size: 13px; font-weight: 900; color: var(--red); margin: 0 0 8px; }

/* Home hero on the field */
.hero { position: relative; overflow: hidden; background: var(--grass) repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 44px, transparent 44px 88px); border: 5px solid var(--ink); border-radius: 22px; padding: 18px 18px 52px; }
.hero::before { content: ""; position: absolute; left: 50%; top: -240px; width: 1100px; height: 1100px; margin-left: -550px; border-radius: 50%; background: repeating-conic-gradient(rgba(255,215,120,.22) 0 8deg, transparent 8deg 20deg); pointer-events: none; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34px; border-top: 4px solid var(--ink); background: repeating-linear-gradient(90deg, #a9713f 0 22px, var(--ink) 22px 25px); }
.hero-card { position: relative; background: #fff7e0; color: #1c1c1c; border: 4px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; }
.hero-card h1 { color: #141414; }
.hero-card .answer { background: none; border: 0; box-shadow: none; padding: 0; margin: 0 0 14px; color: #1c1c1c; }
.countdown { display: inline-flex; flex-direction: column; background: #141414; color: #fff; border-radius: 12px; padding: 8px 16px; }
.cd-label { font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; color: var(--sun); }
.cd-value { font-family: var(--display); font-size: 22px; letter-spacing: .02em; }

.answer { font-size: 19px; background: var(--surface); border: 4px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 18px; margin: 0 0 24px; }

/* Scoreboard tally: painted-scoreboard numbers */
.scoreboard { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 8px 0 8px; }
.score { background: #1b2a4a; border: 4px solid var(--ink); border-radius: 14px; padding: 10px 14px 12px; text-align: center; color: #fff; }
.score .n { display: block; font-family: "Graduate", Georgia, serif; font-size: 60px; line-height: 1.05; color: #fff; -webkit-text-stroke: 2px var(--red); paint-order: stroke fill; text-shadow: 3px 3px 0 #000; }
.score.for .n { color: #ffb347; }
.score .l { display: block; font-weight: 900; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; }
.small { font-size: 14px; color: var(--muted); }

/* Tracker entries */
.entry { background: var(--surface); border: 4px solid var(--ink); border-radius: var(--radius); padding: 12px 16px; margin: 14px 0; }
.entry-meta { font-size: 13px; color: var(--muted); font-weight: 700; }
.entry .tag { display: inline-block; background: var(--against); color: #fff; font-weight: 900; font-size: 11px; padding: 2px 9px; border-radius: 999px; border: 2px solid var(--ink); text-transform: uppercase; letter-spacing: .03em; }
.entry.for .tag { background: var(--for); }
.entry p { margin: 6px 0; }
.entry .src { font-size: 14px; color: var(--muted); }

.btn { display: inline-block; font-family: var(--display); font-weight: 400; font-size: 20px; letter-spacing: .03em; background: var(--red); color: #fff; text-decoration: none; border: 4px solid var(--ink); border-radius: 999px; padding: 9px 22px 5px; box-shadow: 4px 4px 0 var(--ink); }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--ink); }

/* Fact cards */
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.cards li a { display: block; height: 100%; background: var(--surface); border: 4px solid var(--ink); border-radius: var(--radius); padding: 14px 16px; color: var(--text); text-decoration: none; font-weight: 400; font-size: 15px; transition: transform .1s, box-shadow .1s; }
.cards li a:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow); }
.cards strong { display: block; font-size: 17px; font-weight: 900; margin-bottom: 4px; }
.cards li:nth-child(4n+1) a { border-top: 10px solid var(--sky); }
.cards li:nth-child(4n+2) a { border-top: 10px solid var(--sun); }
.cards li:nth-child(4n+3) a { border-top: 10px solid var(--red); }
.cards li:nth-child(4n+4) a { border-top: 10px solid var(--grass); }

.fair { background: var(--surface); border: 4px dashed var(--ink); border-radius: var(--radius); padding: 4px 18px 10px; margin-top: 36px; }
.opinion { background: var(--surface); border: 4px solid var(--ink); border-radius: var(--radius); padding: 4px 18px 10px; }
.opinion::before { content: "Opinion"; display: inline-block; margin-top: 12px; background: var(--sun); color: #141414; border: 2px solid var(--ink); border-radius: 999px; padding: 1px 10px; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }

table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; margin: 14px 0; display: block; overflow-x: auto; background: var(--surface); border: 3px solid var(--ink); border-radius: 12px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid rgba(127,127,127,.25); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { background: var(--sun); color: #141414; font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.sources { margin-top: 40px; font-size: 14px; }
.sources h2 { font-size: 22px; }
.updated { font-size: 13px; color: var(--muted); margin-top: 32px; font-weight: 700; }

.site-footer { background: var(--ink); color: #d8d2c0; font-size: 14px; padding: 22px 0 40px; border-top: 5px solid var(--sun); }
.site-footer a { color: var(--sun); }
@media (prefers-color-scheme: dark) { .site-footer { background: #08111d; } }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .logo b { font-size: 23px; }
  .logo img { width: 40px; height: 40px; }
  .score .n { font-size: 46px; }
  .hero { padding: 10px 10px 46px; border-width: 4px; }
  .hero-card { padding: 14px; }
  .answer { font-size: 17px; }
}

/* Landing-page sections */
.lp-hero { background: var(--surface); border: 4px solid var(--ink); border-radius: 22px; box-shadow: var(--shadow); padding: 20px 22px; margin-bottom: 24px; }
.lp-lead { font-size: 19px; margin: 0 0 12px; }
.lp-who { font-size: 15px; color: var(--muted); margin: 0 0 18px; }
.lp-narrate { margin: 8px 0 0; }
.lp-close { text-align: center; margin-top: 44px; }
.lp-close h2::before { display: none; }

/* Fan check quiz */
.quiz { background: var(--grass) repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 44px, transparent 44px 88px); border: 5px solid var(--ink); border-radius: 22px; padding: 18px; margin: 28px 0; scroll-margin-top: 12px; }
.quiz-head h2 { color: #fff; margin: 0 0 10px; font-size: 24px; text-shadow: 2px 2px 0 var(--ink); }
.quiz-head h2::before { display: none; }
.quiz-progress { height: 12px; background: rgba(0,0,0,.25); border: 3px solid var(--ink); border-radius: 999px; overflow: hidden; margin-bottom: 14px; }
.quiz-progress span { display: block; height: 100%; width: 0; background: var(--sun); transition: width .25s; }
.quiz-step, .quiz-result { background: #fff7e0; color: #1c1c1c; border: 4px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; }
.quiz-count { margin: 0; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; color: var(--red); }
.quiz-text { font-size: 21px; margin: 4px 0 12px; }
.quiz-choices { display: grid; gap: 10px; }
.quiz-choice { text-align: left; font: 700 16px/1.3 var(--body); color: #141414; background: #fff; border: 3px solid var(--ink); border-radius: 12px; padding: 12px 14px; cursor: pointer; }
.quiz-choice:hover, .quiz-choice:focus { background: var(--sun); outline: none; }
.quiz-select { width: 100%; font: 700 16px var(--body); padding: 10px; border: 3px solid var(--ink); border-radius: 10px; margin-bottom: 12px; background: #fff; color: #141414; }
.quiz-next[disabled] { opacity: .5; cursor: not-allowed; }
.quiz-back { margin-top: 12px; background: none; border: 0; color: #1565b8; font: 700 14px var(--body); cursor: pointer; padding: 0; }
.quiz-fact { background: #fff; border: 3px solid var(--ink); border-left: 10px solid var(--sky); border-radius: 12px; padding: 10px 14px; margin: 12px 0; }
.quiz-result .btn { margin-top: 8px; }
.quiz-result a:not(.btn) { color: #1565b8; }

/* Timeline (History & other leagues) */
.tl-legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 6px; }
.tl-tag { display: inline-block; font-weight: 900; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 1px 9px; }
.tl-tag.mlb { background: var(--red); }
.tl-tag.nba { background: #d9561b; }
.tl-tag.nfl { background: #5b3a8c; }
.tl-tag.nhl { background: #1565b8; }
.tl-tag.fans { background: var(--sun); color: #141414; }
.timeline { list-style: none; margin: 18px 0 8px; padding: 0 0 0 26px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 5px; border-radius: 3px; background: var(--ink); }
@media (prefers-color-scheme: dark) { .timeline::before { background: #42526e; } }
.timeline li { position: relative; background: var(--surface); border: 3px solid var(--ink); border-radius: 14px; padding: 10px 14px; margin: 0 0 12px; }
.timeline li::before { content: ""; position: absolute; left: -27px; top: 14px; width: 16px; height: 16px; border-radius: 50%; border: 3px solid var(--ink); background: #fff; }
.timeline li.mlb::before { background: var(--red); }
.timeline li.nba::before { background: #d9561b; }
.timeline li.nfl::before { background: #5b3a8c; }
.timeline li.nhl::before { background: #1565b8; }
.timeline li.fans::before { background: var(--sun); }
.timeline li.big { border-width: 4px; box-shadow: var(--shadow); }
.timeline li.fans.big { background: #fff4c7; color: #1c1c1c; }
.tl-year { font-family: var(--display); font-size: 20px; letter-spacing: .02em; margin-right: 8px; }
.timeline p { margin: 6px 0 0; }
.quiz-multi { position: relative; padding-left: 44px; }
.quiz-multi::before { content: ""; position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border: 3px solid var(--ink); border-radius: 5px; background: #fff; }
.quiz-multi.is-on { background: var(--sun); }
.quiz-multi.is-on::before { background: var(--grass); box-shadow: inset 0 0 0 3px #fff; }
.quiz-choices + .quiz-next { margin-top: 14px; }
.quiz-pick { background: #fff; border: 3px solid var(--ink); border-radius: 12px; padding: 10px 14px; margin: 12px 0; }
.quiz-pick p { margin: 6px 0; }
.quiz-pick-title { font-size: 17px; }
.quiz-step .quiz-back { display: block; }

/* Tracker statements and videos */
.entry .kind { font-weight: 900; color: var(--text); }
.entry-quote { margin: 8px 0; padding: 8px 14px; border-left: 5px solid var(--sun); background: rgba(255,204,26,.12); border-radius: 0 10px 10px 0; font-size: 17px; font-weight: 700; color: var(--text); }
.entry-quote cite { display: block; font-style: normal; font-weight: 700; font-size: 13px; color: var(--muted); margin-top: 4px; }
.entry-video { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 10px 0; border: 3px solid var(--ink); border-radius: 12px; overflow: hidden; background: #000; }
.entry-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.quiz-fact.quiz-alert { border-left-color: var(--red); background: #fff1ef; }

/* Facts hub + breadcrumbs */
.crumbs { font-size: 14px; font-weight: 700; color: var(--muted); margin: 0 0 8px; }
.crumbs a { text-decoration: none; }
.fact-group { margin-top: 28px; }
.fact-group h2 { margin-top: 0; }
.fact-group .cards { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.site-header nav a { font-size: 16px; }

/* Fan vote */
.quiz-vote { margin-top: 18px; padding-top: 14px; border-top: 3px dashed var(--ink); }
.vote-choices { display: grid; gap: 10px; margin-bottom: 12px; }
.vote-choice.is-on { background: var(--sun); }
.vote-form label { display: block; margin: 8px 0 6px; }
.vote-optin { font-weight: 700; font-size: 15px; }
.vote-optin input { margin-right: 6px; }
#vote-turnstile { margin: 10px 0; min-height: 0; }
.vote-msg { color: var(--red); font-weight: 700; margin: 8px 0 0; }
.vote-done { background: #e6f3ec; border: 3px solid var(--ink); border-radius: 12px; padding: 10px 14px; color: #1c1c1c; }
.vote-status { font-size: 15px; margin: 4px 0 10px; }
.vote-status:empty { display: none; }

/* Make fact cards read as links */
.cards li a strong { color: var(--link); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.cards li a::after { content: "Read more →"; display: block; margin-top: 10px; font-weight: 900; font-size: 14px; color: var(--red); }
.cards li a:hover strong, .cards li a:focus strong { color: var(--red); }
.cards li a { cursor: pointer; }
.quiz-result .small, .quiz-result .lp-narrate, .quiz-step .small { color: #5c5546; }
.quiz-result .btn-share { background: #fff; color: #141414; box-shadow: none; font-size: 17px; }

/* Infield-clay cards: keep links and small text readable on the clay */
@media (prefers-color-scheme: dark) {
  :root { --link: #ffd45c; --muted: #e6d3b8; }
  .cards li a strong { color: #ffd45c; }
}
@media (prefers-color-scheme: light) {
  .cards li a strong, .entry a, .answer a, table a { color: #0d4a8c; }
}
@media (prefers-color-scheme: dark) { .cards li a::after { color: #f6f0dc; } .cards li a:hover strong { color: #ffffff; } }
@media (prefers-color-scheme: light) { .cards li a::after { color: #a8180f; } }

/* Space between the menu and the page (the .wrap rule was overriding main padding) */
main.wrap { padding-top: 32px; padding-bottom: 56px; }
@media (max-width: 560px) { main.wrap { padding-top: 22px; } }

/* 9th slot in the home facts grid: a plain text link, not a card */
.cards li.cards-more { display: flex; align-items: center; }
.cards li.cards-more a { height: auto; background: none; border: 0; padding: 8px 4px; box-shadow: none; transform: none; font-weight: 900; font-size: 17px; color: var(--link); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.cards li.cards-more a::after { content: none; }
.cards li.cards-more a:hover { box-shadow: none; transform: none; }

/* Charts (palette validated: 3 categorical slots, all pairs, light + dark) */
.chart { --chart-surface: #fcfcfb; --g-cap: #2a78d6; --g-mid: #1baf7a; --g-floor: #eb6834; --c-ink: #0b0b0b; --c-ink2: #52514e; --c-grid: #e4e2dc;
  margin: 18px 0; background: var(--chart-surface); color: var(--c-ink); border: 3px solid var(--ink); border-radius: 14px; padding: 12px 12px 8px; }
@media (prefers-color-scheme: dark) {
  .chart { --chart-surface: #1a1a19; --g-cap: #3987e5; --g-mid: #199e70; --g-floor: #d95926; --c-ink: #f0efec; --c-ink2: #c3c2b7; --c-grid: #33332f; }
}
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: var(--c-grid); stroke-width: 1; }
.chart .axis { stroke: var(--c-ink2); stroke-width: 1; }
.chart .tick, .chart .ylabel { fill: var(--c-ink2); font: 600 12px var(--body); }
.chart .axis-title { fill: var(--c-ink2); font: 800 12px var(--body); letter-spacing: .03em; }
.chart .dlabel, .chart .vlabel { fill: var(--c-ink); font: 800 12px var(--body); }
.chart .trend { stroke: var(--c-ink2); stroke-width: 2; stroke-dasharray: 6 5; }
.chart .hit { fill: transparent; }
.chart .pt { cursor: pointer; outline: none; }
.chart .pt:focus .hit, .chart .pt:hover .hit { fill: rgba(127,127,127,.12); }
.chart figcaption { color: var(--c-ink2) !important; margin: 6px 2px 0; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 8px 2px 0; font: 700 13px var(--body); color: var(--c-ink); }
.lg-item { display: inline-flex; align-items: center; gap: 6px; }
.chart-tip { position: absolute; z-index: 50; max-width: 280px; background: #141414; color: #fff; font: 600 13px/1.4 var(--body); padding: 8px 10px; border-radius: 8px; pointer-events: none; }
.chart-table { margin: 4px 0 20px; }
.chart-table summary { cursor: pointer; font-weight: 900; color: var(--link); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 14px 0; }
.stat { background: var(--surface); border: 3px solid var(--ink); border-radius: 14px; padding: 10px 14px; }
.stat b { display: block; font-family: var(--display); font-size: 30px; line-height: 1.1; }
.stat span { font-size: 14px; font-weight: 700; }
.chart .chart-legend svg { width: 16px; height: 16px; flex: none; display: inline-block; }

/* Team check on the analysis page */
.team-check { background: var(--surface); border: 4px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 18px 8px; margin: 14px 0 24px; }
.tc-label { display: block; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; font-size: 13px; margin-bottom: 6px; }
.tc-card h3 { margin: 6px 0 10px; }
.tc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.tc-stat { background: #1b2a4a; color: #fff; border: 3px solid var(--ink); border-radius: 12px; padding: 8px 10px; text-align: center; }
.tc-n { display: block; font-family: "Graduate", Georgia, serif; font-size: 28px; line-height: 1.1; color: #ffd45c; }
.tc-l { display: block; font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }
.tc-s { display: block; font-size: 12px; opacity: .85; margin-top: 2px; }
.tc-tag { display: inline-block; margin: 4px 0 0; padding: 3px 10px; border: 2px solid var(--ink); border-radius: 999px; font-weight: 900; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; background: #fff; color: #141414; }
.tc-owner { background: #ffd45c; } .tc-cap { background: #f6b3a8; } .tc-money { background: #b9d7f5; } .tc-run { background: #e3d3f5; } .tc-win { background: #bfe8d2; } .tc-mixed { background: #e8e2d6; }
.tc-title { margin: 8px 0 4px; font-size: 18px; }
.tc-plan { font-weight: 700; }
.tc-note { margin-top: 8px; }
@media (max-width: 640px) { .tc-stats { grid-template-columns: 1fr 1fr; } .tc-n { font-size: 24px; } }

/* Definitions list */
.defs { background: var(--surface); border: 4px solid var(--ink); border-radius: var(--radius); padding: 12px 18px; margin: 12px 0 18px; }
.defs dt { font-weight: 900; margin-top: 10px; }
.defs dt:first-child { margin-top: 0; }
.defs dd { margin: 2px 0 0; }

.tc-market { margin: -4px 0 12px; font-weight: 600; }
.tc-mkt { display: inline-block; padding: 2px 10px; margin-right: 6px; border: 2px solid var(--ink); border-radius: 999px; font-weight: 900; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #141414; }
.tc-mkt-large { background: #b9d7f5; } .tc-mkt-small { background: #ffd45c; }

.chart { --c-profit: #52514e; --c-loss: #b3261e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chart { --c-profit: #c3c2b7; --c-loss: #f2867c; } }
:root[data-theme="dark"] .chart { --c-profit: #c3c2b7; --c-loss: #f2867c; }
.chart .profit, .chart-legend .lg-profit { fill: var(--c-profit); }
.chart .loss, .chart-legend .lg-loss { fill: var(--c-loss); }
.chart .plabel { fill: var(--c-ink2); font: 700 10.5px var(--body); }

.chart { --band-top: rgba(179,38,30,.07); --band-bot: rgba(27,175,122,.09); }
.chart .band-top { fill: var(--band-top); } .chart .band-bot { fill: var(--band-bot); }
.chart-head { font: 900 17px/1.35 var(--body); color: var(--c-ink); margin: 2px 2px 8px; }
.chart-call { font: 800 14px/1.4 var(--body); color: var(--c-ink); margin: 4px 2px; padding: 6px 10px; border-radius: 8px; }
.chart-call.call-top { background: var(--band-top); border-left: 4px solid var(--c-loss); }
.chart-call.call-bot { background: var(--band-bot); border-left: 4px solid var(--g-mid); }

.chart .share-line { fill: none; stroke: var(--c-ink2); stroke-width: 2; }
.chart .abbr { font-size: 10.5px; font-weight: 800; }
.chart-calls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 6px; }
.chart-calls .chart-call { margin: 0; }
.chart-scroll { overflow-x: auto; }
@media (max-width: 640px) { .chart-scroll svg { min-width: 640px; } .chart-calls { grid-template-columns: 1fr; } }

/* Hero card is always light cream, so keep its secondary text and links dark in both themes */
.hero-card { --muted: #4a4335; --link: #0d4a8c; }
.hero-card .lp-who, .hero-card .small, .hero-card .lp-narrate { color: #4a4335; }
.hero-card a:not(.btn) { color: #0d4a8c; }
