.data-chart{margin:30px 0 18px;padding:30px 28px;background:#fff;border:1px solid #d6e8ec;border-radius:8px;--label-width:150px;--series-width:32px;--value-width:74px;--bar-gap:10px}
.chart-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:26px}
.chart-heading figcaption{font-family:var(--serif);font-size:21px;color:#8e6f40;font-weight:500;line-height:1.7}
.chart-legend{display:flex;gap:22px;flex-shrink:0;font-size:14px;color:#664b3a}
.chart-legend span{display:flex;gap:9px;align-items:center}
.chart-legend span:before{content:'';width:15px;height:15px;background:#168aa4;border-radius:2px}
.chart-legend .female-key:before{background:#ca628b}
.chart-axis{display:flex;justify-content:space-between;font-size:12px;color:#766658;margin-left:calc(var(--label-width) + var(--series-width) + var(--bar-gap));margin-right:calc(var(--value-width) + var(--bar-gap));line-height:1.5;margin-bottom:10px}
.chart-axis span{width:0;white-space:nowrap;text-align:center;display:flex;justify-content:center}
.chart-axis span:last-child{justify-content:flex-end}
.chart-axis span:first-child{justify-content:flex-start}
.chart-group{display:grid;grid-template-columns:var(--label-width) minmax(0,1fr);padding:17px 0;border-bottom:1px solid #eef4f5;align-items:center}
.chart-group:last-child{border-bottom:0}
.chart-group-label{font-size:14px;padding-right:15px;line-height:1.7;color:#664b3a}
.chart-series{display:grid;gap:11px;min-width:0}
.chart-bar-row{display:grid;grid-template-columns:var(--series-width) minmax(0,1fr) var(--value-width);gap:var(--bar-gap);align-items:center;line-height:1.5}
.chart-series-label{font-size:13px;color:#766658;white-space:nowrap}
.chart-track{height:21px;background-color:#f2f7f9;background-image:repeating-linear-gradient(to right,transparent 0,transparent calc(var(--chart-grid) - 1px),#dce9ed calc(var(--chart-grid) - 1px),#dce9ed var(--chart-grid));border-left:1px solid #bed6de;position:relative;border-radius:0 3px 3px 0}
.chart-bar{display:block;height:100%;background:#168aa4;border-radius:0 3px 3px 0}
.female .chart-bar{background:#ca628b}
.chart-value{font-size:15px;font-weight:500;text-align:right;color:#664b3a;white-space:nowrap;font-variant-numeric:tabular-nums}
.chart-note{margin-top:22px!important;padding-top:17px;border-top:1px solid #e4eef0;font-size:13px!important;color:#766658;line-height:1.8!important}
.total-chart{--series-width:0px;--bar-gap:10px}
.total-chart .chart-series-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.total-chart .chart-bar-row{grid-template-columns:minmax(0,1fr) var(--value-width)}
.total-chart .chart-track{height:35px}
.total-chart .chart-group-label{font-family:var(--serif);font-size:19px}
.total-chart .chart-axis{margin-left:var(--label-width)}
.total-chart .chart-group{padding-block:23px}
.chart-table-details{margin:0 0 30px;border-bottom:1px solid #d6e8ec}
.chart-table-details summary{cursor:pointer;font-size:14px;color:#087c91;padding:12px 0;width:fit-content}
.chart-table-details .data-table{margin-top:8px}
.member-source{border-top:1px solid #d6e8ec;padding-top:22px;margin-top:35px;font-size:13px;color:#766658}
.member-source a{border-bottom:1px solid #8bcfdb}
.age-chart .chart-track{height:28px;background-image:none;border-left:0}
.age-chart .age-highlight{background:#ca628b}
.age-values{display:flex;flex-wrap:wrap;gap:6px 20px;margin-bottom:10px;font-size:14px;font-variant-numeric:tabular-nums}
.age-values span{white-space:nowrap}
@media(max-width:680px){
 .data-chart{padding:22px 16px;--label-width:0px;--value-width:66px;--series-width:28px;--bar-gap:7px}
 .chart-heading{display:block;margin-bottom:22px}
 .chart-heading figcaption{font-size:19px}
 .chart-legend{margin-top:13px;gap:22px}
 .chart-axis{font-size:12px;margin-top:28px;margin-bottom:4px}
 .chart-axis span:not(:first-child):not(:last-child){visibility:hidden}
 .chart-group{grid-template-columns:minmax(0,1fr);padding:18px 0;gap:12px}
 .chart-group-label{font-size:15px;padding:0}
 .chart-value{font-size:14px}
 .chart-track{height:20px}
 .chart-note{font-size:13px!important}
 .total-chart .chart-group-label{font-size:17px}
 .total-chart .chart-axis{margin-left:0}
 .total-chart .chart-track{height:30px}
 .chart-table-details .data-table{font-size:13px}
 .chart-table-details .data-table th,.chart-table-details .data-table td{padding-inline:5px}
}
