.yws-future { min-width: 0; container-type: inline-size; }
.yws-future :is(h2, h3) { box-sizing: border-box; max-width: 100%; }
.yws-future .yws-stat-values { gap: 12px; grid-auto-rows: 1fr; }
.yws-future .yws-stat-values > div { display: flex; flex-direction: column; }
.yws-future .yws-stat-values dt { text-align: left; }
.yws-future .yws-stat-values dd { margin-top: auto; white-space: nowrap; flex-wrap: nowrap; }
.yws-future .yws-stat-values .yws-stat-number { font-size: clamp(12px, 18cqi, 26px); }
.yws-future .yws-stat-values .yws-stat-unit { font-size: 12px; }
@container (max-width: 650px) {
	.yws-future .yws-stat-values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.yws-future .yws-stat-values .yws-stat-number { font-size: clamp(12px, 18cqi, 22px); }
	.yws-future .yws-analysis-hub-grid { grid-template-columns: minmax(0, 1fr); }
}
.yws-future .yws-future-chart { box-sizing: border-box; width: 100%; max-width: 100%; margin-inline: 0; }
.yws-future-chart figcaption { font-weight: 700; }
.yws-future-chart svg { max-width: 650px; margin-inline: auto; }
.yws-future-chart svg text { fill: #394b5f; font-size: 12px; }
.yws-future-chart .yws-analysis-legend { margin-bottom: 0; }
.yws-future-chart .yws-future-base-dot { border-radius: 50%; background: #245da3; }
.yws-future-chart .yws-future-dash { width: 1.1em; height: .35em; border-top: 2px dashed #245da3; }
.yws-future-age { --year-width: 4.2rem; margin-top: 10px; }
.yws-future-age-scale { display: flex; justify-content: space-between; margin-inline-start: var(--year-width); font-size: .75rem; }
.yws-future-age-row { display: grid; grid-template-columns: var(--year-width) minmax(0, 1fr); align-items: center; margin-block: 5px; font-size: .85rem; }
.yws-future-age-row small { font-size: .65rem; }
.yws-future-age-young_rate { background: #8bc34a; }
.yws-future-age-working_rate { background: #4f86f7; }
.yws-future-age-old_rate { background: #f29b77; }
.yws-future-year-table > summary { cursor: pointer; }
.post-content.yws-future h3.yws-analysis-hub-title { margin: 0 0 4px; padding: 0; border: 0; box-shadow: none; background: none; font-size: 20px; font-weight: 700; line-height: 1.4; }
.yws-future .yws-analysis-hub-title::before, .yws-future .yws-analysis-hub-title::after { content: none; }
.yws-future .yws-analysis-hub-cta { margin-top: 12px; }
.yws-future-year { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.yws-future-year button, .yws-future-year select { min-height: 44px; }
.yws-future-rank-populations { display: block; margin-top: 4px; color: #394b5f; font-size: .75rem; line-height: 1.5; font-weight: 400; }
.yws-future-ranking .yws-ranking-value { white-space: nowrap; }
.yws-future-ranking .yws-ranking-name { min-width: 0; }

.yws-future-interactive { min-width: 0; }
.yws-future-interactive .yws-change-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 12px; }
.yws-future-interactive .yws-filter-label { align-items: center; gap: 8px; white-space: nowrap; }
.yws-future-interactive .yws-filter-select { width: auto; }
.yws-future-interactive .yws-change-table-wrap { max-width: 100%; overflow-x: auto; }
.yws-future-interactive .yws-change-table-wrap table { width: 100%; min-width: 0; }
.yws-future-interactive .yws-change-table-wrap td { white-space: nowrap; }
.yws-future-interactive .yws-change-table-wrap th { min-width: 7em; }
.yws-future-interactive .yws-change-table-wrap tbody th { white-space: normal; }
.yws-future-interactive .yws-city-compare-pyramid { min-width: 0; border-radius: 4px; }
.yws-future-interactive .yws-city-compare-band { min-height: 19px; }
.yws-future-interactive .yws-city-compare-band.has-missing { background: #f4f6f8; }
.yws-future-interactive [data-scale-end] { font-size: .85em; overflow-wrap: anywhere; }
.yws-future-interactive [data-projection-chart] svg { display: block; width: 100%; height: auto; }
.yws-future-interactive [data-projection-chart] :is(path, circle) { stroke: var(--yws-series-color); }
.yws-future-highlight { fill: #e8f0fa; }
.yws-future-interactive .yws-future-chart-note { margin-block: .5em 0; font-size: .85em; }
.yws-future-interactive .yws-future-year-table { margin-block: 12px 24px; }
.yws-future-interactive [data-projection-share-status]:empty { display: none; }
.yws-future-interactive [data-projection-share-status] input { width: 100%; }
.yws-future-interactive .yws-analysis-legend li { list-style: none; }
@container (min-width: 494px) and (max-width: 1001px) {
	.yws-future-interactive .yws-city-compare-pyramids:has(> :nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.yws-future-interactive .yws-city-compare-pyramids { grid-template-columns: minmax(0, 1fr); }
}

.yws-future-analysis-year { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; padding: 12px 16px; }
.yws-future-analysis-year label { display: grid; gap: 4px; font-weight: 700; }
.yws-future-analysis .yws-stat-values dd { flex-wrap: wrap; gap: 0 3px; }
.yws-future-analysis .yws-stat-values .yws-stat-number { font-size: clamp(13px, 16cqi, 25px); }
.yws-future-analysis .yws-stat-values .yws-stat-note { font-size: .8rem; }
.yws-future-analysis .yws-future-chart g polyline { stroke: var(--yws-series-color); stroke-width: 2; }
.yws-future-analysis .yws-future-chart g circle { fill: #fff; stroke: var(--yws-series-color); stroke-width: 1.4; }
.yws-future-analysis .yws-analysis-scatter-controls label { min-width: 0; }
.yws-future-analysis .yws-analysis-scatter > label { display: grid; gap: 4px; }
.yws-future-analysis .yws-analysis-scatter :is(select,input,button) { min-height: 44px; }
@container (max-width: 600px) {
	.yws-future-analysis .yws-analysis-bars li { grid-template-columns: minmax(0, 1fr) max-content; gap: 4px 10px; }
	.yws-future-analysis .yws-analysis-track { grid-column: 1 / -1; grid-row: 2; height: 16px; }
}
