:root {
  --bg: #f6f5f1; --panel: #ffffff; --fg: #17201c; --muted: #67706b; --line: #e3e1da;
  --accent: #0f5d4a; --accent-2: #b36b1f; --accent-3: #3a5fa8; --up: #13804f; --dn: #c0392b; --grid: #ecebe5;
  --sans: 'Inter', system-ui, -apple-system, sans-serif; --serif: 'Source Serif 4', Georgia, serif;
  --r: 10px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0e1311; --panel: #151c19; --fg: #e8ece9; --muted: #96a19b; --line: #26302c; --accent: #3fb68b; --accent-2: #e09a4c; --accent-3: #7ea2e8; --up: #3fbf7f; --dn: #ef6b5b; --grid: #1f2824; }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 15px; line-height: 1.45; }
a { color: inherit; }
.wrap { max-width: 1200px; margin-inline: auto; padding-inline: 16px; }
.muted { color: var(--muted); }
.up { color: var(--up); } .dn { color: var(--dn); } .flat { color: var(--muted); }
.r { text-align: right; }

.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; justify-content: space-between; align-items: center; height: 52px; }
.brand { font-family: var(--serif); font-size: 19px; text-decoration: none; font-weight: 600; }
.brand span { font-family: var(--sans); font-weight: 500; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-left: 6px; }
.status { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.dot.live { background: var(--up); box-shadow: 0 0 0 0 color-mix(in srgb, var(--up) 60%, transparent); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .dot.live { animation: none; } }

.tape { overflow: hidden; white-space: nowrap; border-top: 1px solid var(--line); padding: 7px 0; font-size: 13px; font-variant-numeric: tabular-nums; }
.tape-track { display: inline-flex; gap: 28px; padding-right: 28px; }
.tape.run .tape-track { animation: scroll 70s linear infinite; }
.tape:hover .tape-track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .tape.run .tape-track { animation: none; } .tape { overflow-x: auto; } }
.tick b { font-weight: 600; color: var(--muted); margin-right: 6px; letter-spacing: .03em; }

.hero { padding: 28px 0 8px; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 4vw, 38px); margin: 0 0 6px; line-height: 1.15; }
.lede { margin: 0; color: var(--muted); max-width: 70ch; }
.lede b { color: var(--fg); font-weight: 600; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 12px; margin: 18px 0; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.tile .lbl { font-size: 12px; color: var(--muted); }
.tile .num { font-family: var(--serif); font-size: 26px; font-variant-numeric: tabular-nums; margin: 4px 0 2px; }
.tile .chg { font-size: 13px; font-variant-numeric: tabular-nums; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; margin-bottom: 14px; }
.card h2, .cta h2 { font-size: 17px; font-weight: 600; margin: 0; }
.note { font-size: 13px; color: var(--muted); margin: 4px 0 12px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
select { font: inherit; font-size: 13px; padding: 5px 9px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); gap: 14px; margin-bottom: 14px; }
.grid .card { margin: 0; }

.index-card { border-top: 3px solid var(--accent); }
#ewi.index-card { border-top-color: var(--accent-2); }
#pli.index-card { border-top-color: var(--accent-3); }
.index-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.index-head > div:first-child { flex: 1 1 320px; }
.index-val { text-align: right; }
.index-val .big { font-family: var(--serif); font-size: 44px; line-height: 1; font-variant-numeric: tabular-nums; }
.index-val .sub { font-size: 13px; font-variant-numeric: tabular-nums; margin-top: 4px; }
.subs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr)); gap: 8px; margin: 14px 0; }
.subcard { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.subcard .lbl { font-size: 12px; color: var(--muted); }
.subcard .v { font-family: var(--serif); font-size: 20px; font-variant-numeric: tabular-nums; }
.subcard .c { font-size: 12px; font-variant-numeric: tabular-nums; }

.tw { overflow-x: auto; }
.tw.tall { max-height: 380px; overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
th { text-align: left; font-weight: 500; color: var(--muted); padding: 7px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; background: var(--panel); }
td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.nm { font-weight: 500; }
td.r, th.r { white-space: nowrap; }
td.src { color: var(--muted); font-size: 12px; min-width: 11rem; }
td.src a { color: var(--muted); }
.live-tag { display: inline-block; font-size: 10px; font-weight: 600; letter-spacing: .06em; color: var(--up); border: 1px solid currentColor; border-radius: 4px; padding: 0 4px; margin-left: 6px; vertical-align: 1px; }
@media (max-width: 640px) { .hide-sm { display: none; } .index-val { text-align: left; } }

.chart { position: relative; min-height: 240px; }
.chart svg { display: block; width: 100%; height: auto; }
.chart .empty { display: flex; align-items: center; justify-content: center; min-height: 240px; color: var(--muted); font-size: 13px; }
.tip { position: fixed; pointer-events: none; z-index: 10; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.12); padding: 6px 10px; font-size: 12px; font-variant-numeric: tabular-nums; }
.tip .d { color: var(--muted); }

.method p { font-size: 13px; color: var(--muted); margin: 8px 0; max-width: 95ch; }
.method b { color: var(--fg); }
.cta { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--accent); color: #fff; border-radius: var(--r); padding: 22px 24px; margin: 20px 0; }
.cta p { margin: 4px 0 0; opacity: .85; font-size: 14px; }
.btn { background: #fff; color: #0f3b30; text-decoration: none; font-weight: 600; padding: 10px 18px; border-radius: 8px; }
.foot { color: var(--muted); font-size: 12px; padding-bottom: 28px; }
