:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #202b2b;
  background: #f6f7f3;
  --ink: #202b2b;
  --muted: #536463;
  --line: #dfe6df;
  --accent: #276b61;
  --blue: #287970;
  --gold: #b87e27;
  --up: #ac4034;
  --down: #14705e;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
h1, h2, h3, p { margin: 0; }
button, select { font: inherit; }
button, select, canvas, .range label { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
:focus-visible { outline: 2px solid #14796c; outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 36px, 930px); margin-inline: auto; }
.masthead { height: 62px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.wordmark { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 720; }
.brand-icon { width: 26px; height: 26px; display: flex; align-items: flex-end; justify-content: center; gap: 2px; padding-bottom: 6px; border-radius: 8px; background: #315e50; }
.brand-icon i { width: 3px; border-radius: 2px; background: #fbf6df; height: 6px; }
.brand-icon i:nth-child(2) { height: 10px; }
.brand-icon i:nth-child(3) { height: 14px; }
.market-tag { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.market-tag i { height: 6px; width: 6px; border-radius: 50%; background: #4d8b6b; }
.intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px 20px; margin: 26px 0 19px; }
h1 { font-size: clamp(26px, 5.5vw, 40px); font-weight: 760; letter-spacing: -.04em; line-height: 1.16; }
.intro p { font-size: 13px; color: var(--muted); margin-top: 7px; }
.intro .refresh-date { font-size: 11px; }
.hero { padding: 17px 19px; color: #f7fbf6; background: linear-gradient(120deg, #203c35, #31594b); border-radius: 19px; }
.hero-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.hero h2 { font-size: 13px; font-weight: 620; }
.date-chip { padding: 5px 8px; border-radius: 7px; color: #f2efde; background: #ffffff1f; font-size: 11px; font-variant-numeric: tabular-nums; }
.hero-primary { margin: 18px 0; }
.hero-primary, .estimate-values, .cost-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hero-primary > div + div, .hero-periods > div + div { border-left: 1px solid #ffffff33; padding-left: 12px; }
.hero p { font-size: 12px; color: #d9e9df; }
.hero .number { color: white; margin-top: 4px; font-size: clamp(18px, 4.7vw, 35px); font-weight: 760; letter-spacing: -.04em; }
.hero .number small { font-size: .45em; margin-left: 3px; color: #d9e9df; }
.hero-periods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 12px; border-top: 1px solid #ffffff33; }
.hero-periods strong { display: block; font-size: clamp(12px, 3.5vw, 16px); margin-top: 4px; }
strong, .number { font-variant-numeric: tabular-nums; }
.timing, .note { margin: 11px 2px 16px; font-size: 12px; line-height: 1.65; color: var(--muted); }
.timing:empty { display: none; }
.panel, .fund { border: 1px solid var(--line); background: #fff; border-radius: 16px; }
.trend { margin: 14px 0; padding: 16px 13px 11px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
h2 { font-size: 17px; letter-spacing: -.02em; }
.panel-heading p, .section-heading p { color: var(--muted); font-size: 11px; margin-top: 4px; }
.range { display: flex; gap: 2px; border: 0; background: #eff3ee; padding: 2px; margin: 0; border-radius: 8px; min-width: 0; }
.range label { position: relative; cursor: pointer; }
.range input, .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.range span { display: grid; place-items: center; min-height: 38px; padding: 0 7px; color: #465c55; font-size: 12px; border-radius: 6px; white-space: nowrap; }
.range input:checked + span { background: #fff; font-weight: 700; color: #25584a; box-shadow: 0 1px 3px #233e3421; }
.range input:focus-visible + span { outline: 2px solid var(--accent); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 11px 0 0; }
.select-group { display: inline-flex; align-items: center; max-width: 100%; padding: 0 6px 0 9px; background: #f6f8f4; border-radius: 8px; border: 1px solid #e2e9e1; }
select { min-height: 38px; min-width: 0; max-width: 100%; padding: 0 3px; border: 0; background: transparent; color: var(--ink); font-size: 12px; }
.blue-dot, .gold-dot { display: inline-block; flex-shrink: 0; width: 8px; height: 8px; margin-right: 4px; border-radius: 50%; background: var(--blue); }
.gold-dot { background: var(--gold); }
.chart { display: block; width: 100%; height: clamp(210px, 36vw, 300px); touch-action: pan-y; }
.chart-caption { min-height: 35px; display: flex; gap: 4px 11px; align-items: center; flex-wrap: wrap; border-top: 1px solid #edf0ea; padding: 8px 0 0; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart-caption b { color: var(--ink); }
.estimates { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 12px; }
.estimate { padding: 15px; }
.estimate .eyebrow { font-size: 11px; font-weight: 660; color: #365e50; margin-bottom: 6px; }
.estimate h2 { font-size: 14px; margin-bottom: 10px; }
.estimate strong, .cost-summary strong { display: block; font-size: 19px; margin-top: 4px; }
.estimate-values p, .cost-summary p, .caption, .cost-summary small { font-size: 11px; color: var(--muted); }
.caption { margin-top: 10px; }
.section-heading { margin-bottom: 12px; }
.fund-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fund { padding: 14px; }
.fund-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.fund h3 { font-size: 14px; }
.fund-top p, .fund time { color: var(--muted); font-size: 11px; margin-top: 4px; }
.fund time { white-space: nowrap; }
.fund dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin: 12px 0 0; }
.fund dt { font-size: 11px; color: var(--muted); }
.fund dd { font-size: clamp(12px, 3.4vw, 15px); font-weight: 700; margin: 4px 0 0; font-variant-numeric: tabular-nums; }
.up { color: var(--up); }
.down { color: var(--down); }
.cost-summary { border-block: 1px solid var(--line); margin-top: 12px; padding: 10px 0; }
.cost-summary small { display: block; margin-top: 3px; }
.cost-legend { display: flex; gap: 13px; font-size: 11px; color: var(--muted); margin-top: 12px; }
.method { padding: 18px; line-height: 1.7; }
.method h3 { font-size: 14px; margin: 18px 0 5px; }
.method p, .method li { font-size: 13px; color: var(--muted); }
.method p + p { margin-top: 6px; }
.method a { color: var(--accent); text-underline-offset: 3px; }
.method-funds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; gap: 3px 9px; }
.method-funds code { margin-right: 5px; }
.formulas { padding-left: 1.2em; margin: 5px 0; }
.notice { padding: 12px; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); font-size: 13px; background: #fff; margin-bottom: 14px; }
.bottom-nav { position: fixed; bottom: 0; inset-inline: 0; z-index: 2; padding-bottom: env(safe-area-inset-bottom, 0px); background: #fff; border-top: 1px solid var(--line); }
.nav-inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); min-height: 59px; align-items: stretch; }
.nav-inner button { background: transparent; border: 0; color: var(--muted); display: grid; justify-items: center; align-content: center; gap: 5px; padding: 6px 4px; font-size: 11px; }
.nav-inner button[aria-selected="true"] { color: var(--accent); font-weight: 760; background: #edf4ef; border-radius: 10px; margin-block: 4px; }
.nav-icon { display: block; width: 16px; height: 15px; position: relative; }
.grid-icon { background: conic-gradient(currentColor 25%, transparent 0) 0 0 / 8px 8px; }
.list-icon { background: repeating-linear-gradient(to bottom, currentColor 0 2px, transparent 2px 5px); }
.line-icon { background: currentColor; clip-path: polygon(0 72%, 30% 36%, 55% 55%, 89% 11%, 100% 21%, 57% 76%, 32% 55%, 0 92%); }
.info-icon { border: 1.5px solid currentColor; border-radius: 50%; text-align: center; font-weight: 700; line-height: 12px; }
@media (max-width: 560px) {
  .masthead { height: 52px; }
  .intro { margin-top: 19px; margin-bottom: 15px; flex-wrap: wrap; }
  .intro .refresh-date { margin-top: 0; }
  .fund-list, .estimates { grid-template-columns: 1fr; }
}
