@font-face {
  font-family: Instrument;
  src: url('assets/instrument-serif-1.ttf');
  font-display: swap;
}
@font-face {
  font-family: DM Sans;
  src: url('assets/dm-sans-0.ttf');
  font-display: swap;
}
:root {
  color: #251d2a;
  background: #fffefd;
  font: 17px/1.6 'DM Sans', system-ui, sans-serif;
  --purple: #553377;
  --teal: #236e66;
  --rule: #ded5e3;
}
* { box-sizing: border-box; }
body { margin: 0; }
main { width: min(1120px, 100% - 48px); margin: auto; }
nav { border-bottom: 1px solid var(--rule); padding: 16px 0; }
a { color: var(--teal); text-underline-offset: 4px; }
header { padding: clamp(36px, 7vw, 90px) 0 34px; }
.kicker { color: var(--purple); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 700; }
h1, h2, h3 { font-family: Instrument, Georgia, serif; font-weight: 400; line-height: 1.04; }
h1 { font-size: clamp(52px, 8.4vw, 102px); margin: 12px 0 18px; }
h1 em { color: var(--purple); }
h2 { font-size: clamp(34px, 5vw, 48px); margin: 0 0 20px; }
h3 { font-size: 34px; margin: 10px 0 28px; }
.lede { font-size: 21px; max-width: 660px; margin: 0; }
section { padding: 32px 0 42px; border-top: 1px solid var(--rule); }
.controls { display: flex; flex-wrap: wrap; gap: 12px 25px; align-items: end; }
.controls label { display: block; }
select { display: block; background: white; border: 1px solid #8e789f; color: inherit; padding: 9px 14px; font: inherit; width: min(320px, 100%); min-height: 44px; }
input[type=checkbox] { accent-color: var(--purple); width: 17px; height: 17px; vertical-align: middle; }
.filter { min-height: 44px; align-content: center; }
.finding { margin: 26px 0 20px; padding: 14px 16px; border-left: 3px solid var(--teal); background: #eaf6f2; }
.charts { display: grid; grid-template-columns: 1fr 1fr; border-block: 1px solid var(--rule); }
figure { margin: 0; min-width: 0; padding: 24px 24px 16px 0; }
figure + figure { border-left: 1px solid var(--rule); padding: 24px 0 16px 24px; }
.bar-row { display: grid; grid-template-columns: 62px 1fr 66px; gap: 10px; align-items: center; margin: 11px 0; font-variant-numeric: tabular-nums; }
.track { background: #f1edf3; height: 28px; }
.bar { display: block; height: 100%; background: var(--purple); }
.men .bar { background: var(--teal); }
.annotation { margin: 18px 0 0; color: #49364f; }
.denominators { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; padding: 18px 0; font-variant-numeric: tabular-nums; }
.denominators strong { display: block; }
.note, .sources { color: #514959; font-size: 14px; max-width: 78ch; }
summary { color: var(--purple); font-weight: 700; cursor: pointer; padding-block: 10px; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: 15px; }
th, td { padding: 9px 10px; border-bottom: 1px solid var(--rule); }
td button { background: transparent; border: 0; color: var(--teal); text-decoration: underline; font: inherit; text-align: left; cursor: pointer; padding: 5px 0; }
tr.flip { background: #eff7f4; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
@media (max-width: 640px) {
  main { width: calc(100% - 34px); }
  .charts { grid-template-columns: 1fr; }
  figure, figure + figure { border-left: 0; padding: 19px 0; }
  figure + figure { border-top: 1px solid var(--rule); }
  .denominators { font-size: 14px; }
}

/* 2026-11-10: uncertainty, forest plot, reaction types */
nav { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.track { position: relative; }
.whisker { position: absolute; top: 50%; height: 2px; margin-top: -1px; background: #251d2a; }
.whisker::before, .whisker::after { content: ''; position: absolute; top: -6px; width: 2px; height: 14px; background: #251d2a; }
.whisker::before { left: 0; }
.whisker::after { right: 0; }
.bar-row { grid-template-columns: 62px 1fr 92px; }
.bar-row strong small { display: block; font-weight: 400; font-size: 12px; color: #625a69; }
.legend-line { font-size: 13px; color: #514959; margin: 6px 0 0; display: flex; align-items: center; gap: 8px; }
.whisker-key { display: inline-block; width: 28px; height: 10px; border-inline: 2px solid #251d2a; background: linear-gradient(#251d2a, #251d2a) center / 100% 2px no-repeat; }
.finding[data-verdict="can't tell"] { border-left-color: #8e8796; background: #f3f1f5; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; letter-spacing: .02em; white-space: nowrap; }
.tag.women-higher, .tag.women { background: #ece4f4; color: #553377; }
.tag.men-higher, .tag.men { background: #dff2ee; color: #1d5c55; }
.tag.can-t-tell, .tag.same { background: #efedf1; color: #5b5463; }
.key { list-style: none; padding: 0; margin: 14px 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; }
.key li { display: flex; align-items: center; gap: 8px; }
.swatch { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.swatch.women-higher, .swatch.women { background: var(--purple); }
.swatch.men-higher, .swatch.men { background: var(--teal); }
.swatch.can-t-tell { background: #fff; border: 2px solid #8e8796; }
.forest-summary { font-weight: 700; margin: 4px 0 12px; }
.forest { border-block: 1px solid var(--rule); padding: 4px 0 10px; margin-bottom: 18px; }
.forest-axis, .forest-row { display: grid; grid-template-columns: 170px 1fr; gap: 12px; align-items: center; }
.forest-axis { position: sticky; top: 0; background: #fffefd; z-index: 1; padding: 6px 0; border-bottom: 1px solid var(--rule); }
.ticks { position: relative; height: 18px; font-size: 12px; color: #625a69; }
.ticks span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.ticks .equal { font-weight: 700; color: #251d2a; }
.forest-row { width: 100%; background: none; border: 0; padding: 1px 0; font: inherit; font-size: 14px; color: inherit; cursor: pointer; text-align: left; min-height: 22px; }
.forest-row:hover, .forest-row[aria-pressed="true"] { background: #f4f0f8; }
.forest-row .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plot { position: relative; height: 18px; }
.plot .one { position: absolute; top: -3px; bottom: -3px; width: 1px; background: #251d2a; opacity: .45; }
.plot .ci { position: absolute; top: 50%; height: 2px; margin-top: -1px; background: currentColor; opacity: .55; }
.plot .dot { position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: currentColor; }
.forest-row.women-higher { color: var(--purple); }
.forest-row.men-higher { color: var(--teal); }
.forest-row.can-t-tell { color: #8e8796; }
.forest-row.can-t-tell .dot { background: #fff; border: 2px solid currentColor; }
.forest-row .name { color: #251d2a; }
.type-guide { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: 15px; margin: 18px 0 26px; }
.type-guide dt { font-weight: 700; }
.type-guide dd { margin: 0; color: #514959; }
.reaction-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.reaction-card { border: 1px solid var(--rule); border-top: 4px solid #b9a6d3; padding: 16px 18px; background: #fff; min-width: 0; }
.reaction-card h3 { font-size: 28px; margin: 0 0 4px; }
.reaction-card .small { font-size: 13px; color: #625a69; margin: 0 0 12px; }
.type-row { margin: 10px 0 14px; }
.type-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.mini { display: grid; grid-template-columns: 18px 1fr 40px; gap: 8px; align-items: center; font-size: 13px; font-variant-numeric: tabular-nums; margin: 2px 0; }
.mini .track { height: 12px; }
.mini.men .bar { background: var(--teal); }
.mini strong { text-align: right; }
.skews { font-size: 13px; margin: 14px 0 0; border-top: 1px solid var(--rule); padding-top: 10px; }
.skews dt { font-weight: 700; margin-top: 6px; }
.skews dt.women { color: var(--purple); }
.skews dt.men { color: var(--teal); }
.skews dd { margin: 2px 0 0; }
@media (max-width: 640px) {
  .forest-axis, .forest-row { grid-template-columns: 112px 1fr; gap: 8px; }
  .forest-row { font-size: 13px; }
  .bar-row { grid-template-columns: 60px 1fr 80px; gap: 8px; }
  .type-guide { grid-template-columns: 1fr; }
  .type-guide dd { margin-bottom: 6px; }
  .reaction-grid { grid-template-columns: 1fr; }
}

/* ft-rounded */
select{border-radius:10px}
