body[data-topic=structure] .viewport {background:#f8faf8;color:var(--ink)}
body[data-topic=structure] #stage {
  aspect-ratio:auto;
  min-height:320px;
  align-items:start;
}
.pyr-panel {
  --pyr-teal:#247b72;
  --pyr-purple:#775694;
  width:100%;
  padding:16px 18px 9px;
  color:#193c43;
}
.pyr-heading {
  display:flex;
  align-items:baseline;
  flex-wrap:wrap;
  gap:4px 12px;
  margin:0 40px 8px 1px;
}
.pyr-heading strong {font-size:clamp(18px,2.2vw,26px);font-weight:750;letter-spacing:-.045em}
.pyr-heading span {font-size:13px;color:#4a6067}
.pyr-plot {display:block;width:100%;height:auto;overflow:visible}
.pyr-plot text {font-family:inherit;font-variant-numeric:tabular-nums}
.pyr-male {fill:var(--pyr-teal)}
.pyr-female {fill:var(--pyr-purple)}
.pyr-sex-male,.pyr-sex-female {font-size:15px;font-weight:750}
.pyr-sex-male {fill:#195a53}
.pyr-sex-female {fill:#5c4176}
.pyr-age {fill:#2c474d;font-size:13px;font-weight:600}
.pyr-age-gutter {fill:#eaf0ed}
.pyr-tick {fill:#435b61;font-size:12px}
.pyr-zero {font-weight:750}
.pyr-axis-title {fill:#395059;font-size:13px;font-weight:650}
.pyr-grid {stroke:#d5e0db}
.pyr-axis {stroke:#799290}
.pyr-age-rule {stroke:#bdcdc6}
.pyr-row {cursor:pointer}
.pyr-row-hit {fill:transparent}
.pyr-row:not(.is-picked):hover .pyr-row-hit {fill:#e5efeb}
.pyr-row.is-picked .pyr-row-hit {fill:#f5e9ce;stroke:#ad7830;stroke-width:1}
.pyr-row.is-picked .pyr-age {fill:#683c09;font-weight:800}
.pyr-row.is-picked .pyr-male {fill:#145c54}
.pyr-row.is-picked .pyr-female {fill:#593a75}
body[data-topic=structure] .viewport .expand {
  top:9px;right:9px;bottom:auto;
  color:#274e57;background:#f6fbf8;border-color:#afc6be;
}
body[data-topic=structure] .viewport .expand:hover {background:#e2eee8}
.pyr-units {
  display:inline-flex;gap:3px;padding:3px;border:1px solid #d2dedb;
  border-radius:8px;background:#f7faf9;
}
.pyr-units button {
  appearance:none;border:0;padding:5px 10px;border-radius:5px;background:transparent;
  color:#42575e;font:inherit;font-size:13px;cursor:pointer;
}
.pyr-units button[aria-pressed=true] {color:#fff;background:#244a56}
.pyr-facts {margin:0 0 14px;font-variant-numeric:tabular-nums}
.pyr-facts div {display:flex;justify-content:space-between;gap:8px;border-bottom:1px solid #e0e8e6;padding:8px 0}
.pyr-facts dt,.pyr-facts dd {margin:0;font-size:14px}
.pyr-facts dt {color:#486068}
.pyr-facts dd {font-weight:650;color:#163941}
.pyr-age-control select {font:inherit;color:#183942}
.pyr-follow {cursor:pointer}
.pyr-follow input {margin:0}
.pyr-reading {flex-basis:100%;display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 16px}
.pyr-reading .pyr-description {width:100%}
.pyr-value-male,.pyr-value-female {
  display:flex;align-items:baseline;gap:6px;
  font-size:13px;font-variant-numeric:tabular-nums;white-space:nowrap;
}
.pyr-value-male {color:#195a53}
.pyr-value-female {color:#5c4176}
.pyr-message {color:#34565b;padding:25px;text-align:center;align-self:center}
@media(max-width:499px) {
  .pyr-panel {padding:13px 10px 5px}
  .pyr-heading {margin-bottom:7px}
  .pyr-heading span {font-size:12px}
  .pyr-sex-male,.pyr-sex-female {font-size:14px}
}
body[data-topic=structure] .workspace.expanded #stage,
body[data-topic=structure] .workspace:fullscreen #stage {
  height:100%;min-height:0;overflow:auto;
}

.pyr-settings {display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.pyr-group-toggle {
  min-height:33px;
  padding:5px 9px;
  border:1px solid #bacdc5;
  border-radius:7px;
  background:#f7faf9;
  color:#234b47;
  font-size:13px;
  font-weight:650;
}
.pyr-group-toggle:hover {border-color:#5c9386}
.pyr-group-toggle[aria-pressed=true] {background:#d8eee5;border-color:#4b8978;color:#18483c}
.pyr-group-youth {--age-background:#faf0d7;--age-edge:#95671e}
.pyr-group-working {--age-background:#e7eef8;--age-edge:#466991}
.pyr-group-older {--age-background:#f5e7ed;--age-edge:#925775}
.pyr-group-band {fill:var(--age-background)}
.pyr-group-edge {fill:var(--age-edge)}
.pyr-group-boundary {stroke:#687f85;stroke-width:1;stroke-dasharray:4 3}
.has-age-groups .pyr-age-gutter {fill:#fff;fill-opacity:.41}
.has-age-groups .pyr-row.is-picked .pyr-row-hit {fill:#fff;fill-opacity:.48;stroke:#426458}
.has-age-groups .pyr-row.is-picked .pyr-age {fill:#253f36}
.pyr-groups {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:6px;
  list-style:none;
  padding:0;
  margin:2px 0 4px;
}
.pyr-groups li {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:baseline;
  column-gap:6px;
  padding:6px 8px;
  border-top:3px solid var(--age-edge);
  background:var(--age-background);
  color:#273f49;
}
.pyr-group-name {font-size:13px;font-weight:700;line-height:1.25}
.pyr-group-share {font-size:17px;font-variant-numeric:tabular-nums;letter-spacing:-.035em}
.pyr-groups small {grid-column:1 / -1;font-size:11px;color:#405661}
@media(max-width:599px){
  .pyr-groups li {grid-template-columns:1fr;padding:5px 6px}
  .pyr-group-name {font-size:11.5px}
  .pyr-group-share {grid-row:2;font-size:16px}
}
