.exv-statistics {
    --stats-background: #f3f2ed;
    --stats-surface: #fffdf9;
    --stats-ink: #1d3436;
    --stats-copy: #405b5d;
    --stats-border: #d4dcd4;
    --stats-accent: #815038;
    --stats-chart: #648c82;
    --stats-chart-last: #976146;
    --stats-tint: #e8eeea;
    background: var(--stats-background);
    color: var(--stats-ink);
    padding: 30px 0 72px;
}

.dark .exv-statistics {
    --stats-background: #1d2b2e;
    --stats-surface: #263a3d;
    --stats-ink: #f8f2eb;
    --stats-copy: #cedcda;
    --stats-border: #496164;
    --stats-accent: #ffba98;
    --stats-chart: #87b4a8;
    --stats-chart-last: #edaa87;
    --stats-tint: #304749;
}

.exv-statistics__wrap { width: min(1160px, calc(100% - 56px)); margin-inline: auto; }
.exv-statistics :is(a, summary, [tabindex]):focus-visible { outline: 2px solid var(--stats-accent); outline-offset: 4px; }
.exv-statistics p { margin: 0; line-height: 1.6; }
.exv-statistics h1, .exv-statistics h2 { color: var(--stats-ink); margin: 0; font-weight: 580; }
.exv-statistics__breadcrumb { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--stats-copy); }
.exv-statistics__breadcrumb a { color: inherit; text-decoration: underline; text-underline-offset: .2em; }
.exv-statistics__hero { display: flex; align-items: end; justify-content: space-between; gap: 32px; padding: 46px 0 32px; }
.exv-statistics .exv-statistics__eyebrow { margin-bottom: 8px; color: var(--stats-accent); font-size: 12px; font-weight: 700; letter-spacing: .105em; text-transform: uppercase; }
.exv-statistics h1 { font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.1; }
.exv-statistics .exv-statistics__lead { max-width: 58ch; margin-top: 16px; color: var(--stats-copy); font-size: clamp(15px, 1.4vw, 18px); }
.exv-statistics__period { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; padding: 13px 18px; border: 1px solid var(--stats-border); border-radius: 12px; background: var(--stats-tint); }
.exv-statistics__period svg, .exv-statistics__source svg { width: 21px; height: 21px; flex: 0 0 21px; color: var(--stats-accent); }
.exv-statistics__period span, .exv-statistics__change span { display: block; color: var(--stats-copy); font-size: 12px; }
.exv-statistics__period strong, .exv-statistics__change strong { color: var(--stats-ink); font-size: 17px; font-weight: 650; font-variant-numeric: tabular-nums; }

.exv-statistics__highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0 0 18px; }
.exv-statistics__highlights div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; border: 1px solid var(--stats-border); border-radius: 16px; padding: clamp(16px, 2.4vw, 28px); background: var(--stats-surface); }
.exv-statistics__highlights dt { margin: 0; color: var(--stats-copy); font-size: 14px; line-height: 1.4; }
.exv-statistics__highlights dd { margin: 0; color: var(--stats-ink); font-size: clamp(27px, 3.2vw, 44px); font-weight: 580; line-height: 1.1; font-variant-numeric: tabular-nums; }
.exv-statistics__highlights div:first-child { background: var(--stats-tint); }

.exv-statistics__chart { margin: 0; padding: clamp(18px, 3vw, 34px); border: 1px solid var(--stats-border); border-radius: 18px; background: var(--stats-surface); }
.exv-statistics__chart figcaption { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding: 0; text-align: left; }
.exv-statistics h2 { font-size: clamp(25px, 3vw, 36px); line-height: 1.15; }
.exv-statistics__chart figcaption p:not(.exv-statistics__eyebrow), .exv-statistics__reports header > p:last-child { color: var(--stats-copy); margin-top: 8px; font-size: 14px; }
.exv-statistics__change { flex: 0 0 auto; padding: 8px 12px; border: 1px solid var(--stats-border); border-radius: 8px; }
.exv-statistics__plot { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; margin: 26px 0 22px; }
.exv-statistics__scale { position: relative; top: -.65em; display: flex; flex-direction: column; justify-content: space-between; height: calc(100% + 1em); font-size: 11px; line-height: 1; color: var(--stats-copy); text-align: right; }
.exv-statistics__bars { display: grid; grid-template-columns: repeat(var(--bar-count), minmax(0, 1fr)); gap: clamp(4px, 2vw, 24px); align-items: end; height: clamp(128px, 19vw, 210px); border-bottom: 1px solid var(--stats-border); background: repeating-linear-gradient(to bottom, var(--stats-border) 0 1px, transparent 1px 20%); }
.exv-statistics__bar { position: relative; display: grid; align-items: end; height: 100%; padding-inline: 12%; }
.exv-statistics__bar-fill { height: var(--bar-height); border-radius: 5px 5px 0 0; background: var(--stats-chart); }
.exv-statistics__bar:last-child .exv-statistics__bar-fill { background: var(--stats-chart-last); }
.exv-statistics__bar-year { position: absolute; inset: calc(100% + 8px) 0 auto; color: var(--stats-copy); text-align: center; font-size: 11px; line-height: 1; }
.exv-statistics__bar:last-child .exv-statistics__bar-year { color: var(--stats-ink); font-weight: 700; }

.exv-statistics__reports { margin-top: clamp(32px, 5vw, 64px); }
.exv-statistics__reports header { margin-bottom: 22px; }
.exv-statistics__report { margin-bottom: 8px; border: 1px solid var(--stats-border); border-radius: 12px; background: var(--stats-surface); scroll-margin-top: 100px; }
.exv-statistics__report summary { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto 30px; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 12px; list-style: none; cursor: pointer; }
.exv-statistics__report summary::-webkit-details-marker { display: none; }
.exv-statistics__report summary:hover, .exv-statistics__report[open] summary { background: var(--stats-tint); }
.exv-statistics__report-index { display: grid; place-items: center; aspect-ratio: 1; border-radius: 8px; background: var(--stats-tint); color: var(--stats-accent); font-size: 12px; font-weight: 700; }
.exv-statistics__report-title { font-size: clamp(15px, 1.5vw, 19px); font-weight: 650; line-height: 1.35; }
.exv-statistics__report-metric { color: var(--stats-copy); font-size: 12px; text-align: right; }
.exv-statistics__report-metric strong { color: var(--stats-ink); font-size: 15px; font-weight: 650; }
.exv-statistics__report-toggle { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--stats-border); border-radius: 50%; color: var(--stats-accent); }
.exv-statistics__report-toggle::before { content: ""; width: 8px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
.exv-statistics__report[open] .exv-statistics__report-toggle::before { transform: translateY(2px) rotate(225deg); }
.exv-statistics__report-content { display: grid; gap: 20px; padding: 14px 20px 22px; }
.exv-statistics .exv-statistics__scroll-hint { display: none; }
.exv-statistics__table-wrap { min-width: 0; overflow-x: auto; }
.exv-statistics table { width: 100%; margin: 0; border-collapse: collapse; text-align: left; font-size: 14px; font-variant-numeric: tabular-nums; }
.exv-statistics caption { caption-side: top; padding: 5px 0 9px; color: var(--stats-ink); font-weight: 650; text-align: left; }
.exv-statistics .exv-statistics__table-wrap :is(th, td) { padding: 8px 12px; border: 0; border-bottom: 1px solid var(--stats-border); line-height: 1.45; text-align: right; text-transform: none; }
.exv-statistics thead { background: var(--stats-tint); color: var(--stats-ink); }
.exv-statistics th { font-weight: 600; }
.exv-statistics .exv-statistics__table-wrap th:first-child { text-align: left; }
.exv-statistics td { white-space: nowrap; }
.exv-statistics .exv-statistics__note { color: var(--stats-copy); font-size: 13px; }

.exv-statistics__source { display: flex; align-items: flex-start; gap: 10px; margin-top: 24px; color: var(--stats-copy); font-size: 13px; }
.exv-statistics__source strong { color: var(--stats-ink); font-weight: 650; }

@media (max-width: 680px) {
    .exv-statistics { padding: 22px 0 50px; }
    .exv-statistics__wrap { width: calc(100% - 32px); }
    .exv-statistics__hero { align-items: start; flex-direction: column; gap: 16px; padding: 28px 0 22px; }
    .exv-statistics__period { padding: 7px 12px; }
    .exv-statistics__period > div { display: flex; align-items: baseline; gap: 8px; }
    .exv-statistics__highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
    .exv-statistics__highlights div:first-child { grid-column: 1 / -1; }
    .exv-statistics__highlights dt { font-size: 12px; }
    .exv-statistics__chart figcaption { flex-wrap: wrap; gap: 12px; }
    .exv-statistics__change { display: flex; align-items: baseline; gap: 8px; padding: 5px 10px; }
    .exv-statistics__bar-year, .exv-statistics__scale { font-size: 9px; }
    .exv-statistics__plot { gap: 7px; }
    .exv-statistics__report summary { grid-template-columns: 25px minmax(0, 1fr) 27px; gap: 6px 10px; padding: 12px; }
    .exv-statistics__report-index { grid-row: span 2; align-self: start; }
    .exv-statistics__report-metric { grid-column: 2; text-align: left; }
    .exv-statistics__report-toggle { grid-area: 1 / 3 / span 2; width: 27px; height: 27px; }
    .exv-statistics__report-content { padding: 10px 12px 16px; }
    .exv-statistics .exv-statistics__scroll-hint { display: block; margin-bottom: -14px; color: var(--stats-copy); font-size: 12px; }
    .exv-statistics table { font-size: 13px; }
}
