.age-pyramid{margin:var(--space-6,1.5rem) 0}.age-pyramid .ap-controls,.age-pyramid .ap-reader{display:none}.js .age-pyramid .ap-controls{background:var(--bg-subtle);border:1px solid var(--border);border-radius:var(--radius);flex-wrap:wrap;align-items:center;gap:.75rem 1.5rem;margin:0 0 1rem;padding:.75rem 1rem;display:flex}.js .age-pyramid .ap-reader{border-top:1px solid var(--border);margin-top:1rem;padding-top:1rem;display:block}.age-pyramid .ap-control{border:0;flex-wrap:wrap;align-items:center;gap:.5rem;min-width:0;margin:0;padding:0;font-size:.95rem;display:flex}.age-pyramid .ap-control[hidden]{display:none}.age-pyramid .ap-control>label,.age-pyramid .ap-control legend,.age-pyramid .ap-reader>label{color:var(--text);font-weight:600}.age-pyramid .ap-measure legend{float:left;margin-right:.5rem;padding:0}.age-pyramid .ap-measure label,.age-pyramid .ap-ew{align-items:center;gap:.35rem;min-height:44px;font-weight:400;display:inline-flex}.age-pyramid .ap-year{flex:18rem}.age-pyramid input[type=range]{min-width:0;min-height:44px;accent-color:var(--accent);flex:9rem}.age-pyramid .ap-reader input[type=range]{width:100%;display:block}.age-pyramid output{font-variant-numeric:tabular-nums;font-weight:600}.age-pyramid .ap-year output{min-width:5.2rem}.age-pyramid .ap-reader output{color:var(--text);font-weight:400;display:block}.age-pyramid select,.age-pyramid .ap-button{min-height:44px;font:inherit;color:var(--text);background:var(--bg-card);border:1px solid var(--border-strong);border-radius:var(--radius-sm);padding:.3rem .8rem}.age-pyramid .ap-button{cursor:pointer;min-width:4.5rem;font-weight:600}.age-pyramid .ap-button:hover{border-color:var(--accent);background:color-mix(in srgb, var(--accent) 8%, transparent)}.age-pyramid :is(input,select,button,summary):focus-visible{outline:2px solid var(--accent);outline-offset:2px}.age-pyramid .ap-layout{grid-template-columns:minmax(0,1fr);gap:1.25rem;display:grid}.age-pyramid .ap-figure{min-width:0;margin:0}.age-pyramid .ap-figure .chart-source{opacity:1}.age-pyramid .ap-plot{max-width:34rem;margin:0 auto}.age-pyramid .ap-plot svg{touch-action:pan-y;width:100%;height:100%;display:block}.age-pyramid .ap-ground{fill:#0000}.age-pyramid .ap-m{fill:var(--series-1)}.age-pyramid .ap-f{fill:var(--series-2)}.age-pyramid .ap-t{fill:var(--text)}.age-pyramid .ap-sub,.age-pyramid .ap-tick,.age-pyramid .ap-axis,.age-pyramid .ap-source{fill:var(--text-muted)}.age-pyramid .ap-grid{stroke:var(--border)}.age-pyramid .ap-outline,.age-pyramid .ap-key-line{stroke:var(--text)}.age-pyramid .ap-cursor{fill:var(--text)}.age-pyramid.ap-js [data-ap-bar]{transition:x .35s ease-out,width .35s ease-out}@media (prefers-reduced-motion:reduce){.age-pyramid.ap-js [data-ap-bar]{transition:none}}.age-pyramid .ap-panel-heading{margin:0 0 .75rem;font-size:1.15rem}.age-pyramid .ap-readout{grid-template-columns:repeat(auto-fit,minmax(9.5rem,1fr));gap:.75rem;margin:0;display:grid}.age-pyramid .ap-readout>div{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);padding:.7rem .8rem}.age-pyramid .ap-readout dt{color:var(--text-muted);font-size:.85rem}.age-pyramid .ap-readout dd{font-variant-numeric:tabular-nums;color:var(--text);margin:0;font-size:1.3rem;font-weight:600}.age-pyramid .ap-readout .ap-share{color:var(--text-muted);font-size:.85rem;font-weight:400;display:block}.age-pyramid .ap-readout dd.ap-delta{color:var(--text-muted);font-size:.85rem;font-weight:400}.age-pyramid .ap-note{color:var(--text-muted);margin:.75rem 0 0;font-size:.85rem}.age-pyramid .ap-details{margin-top:1.25rem}.age-pyramid .ap-details summary{cursor:pointer;color:var(--accent);min-height:44px;padding:.6rem 0;font-weight:600}.age-pyramid .ap-scroll{max-width:100%;overflow-x:auto}.age-pyramid .ap-table{border-collapse:collapse;font-variant-numeric:tabular-nums;min-width:18rem;font-size:.9rem}.age-pyramid .ap-table caption{caption-side:bottom;text-align:left;color:var(--text-muted);padding-top:.5rem;font-size:.8rem}.age-pyramid .ap-table th,.age-pyramid .ap-table td{border-bottom:1px solid var(--border);text-align:right;padding:.25rem .75rem}.age-pyramid .ap-table tbody th,.age-pyramid .ap-table thead th:first-child{text-align:left;font-weight:400}.age-pyramid .ap-table thead th{color:var(--text-muted);font-weight:600}@media (width>=60rem){.age-pyramid .ap-layout{grid-template-columns:minmax(0,34rem) minmax(0,1fr);align-items:start;gap:2rem}.age-pyramid .ap-plot{margin:0}}@media print{.age-pyramid .ap-controls,.age-pyramid .ap-reader{display:none!important}}
