@import url("https://fonts.googleapis.com/css2?family=EB+Garamond:wght@500;600;700&display=swap");
:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #18202a; background: #f7f8fa; }
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; font-size: 14px; }
a { color: #175ca8; }
a:hover { color: #0b3d73; }
.skip-link { position: fixed; top: .5rem; left: .5rem; z-index: 20; padding: .5rem .75rem; background: white; transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 19rem; overflow-y: auto; padding: 1.5rem 1rem; color: #e9eef5; background: #172536; }
.site-title { display: block; margin: 0 0 1rem; color: white; font-family: "EB Garamond", Garamond, Georgia, serif; font-size: 1.3rem; font-weight: 600; line-height: 1.25; text-decoration: none; }
.sidebar ul { margin: 0; padding: 0; list-style: none; }
.sidebar ul ul { margin: .3rem 0 .8rem .75rem; border-left: 1px solid #4b5b6d; padding-left: .75rem; }
.sidebar a { display: block; border-radius: .3rem; padding: .25rem .45rem; color: #cbd7e5; text-decoration: none; }
.sidebar a:hover, .sidebar a[aria-current="page"] { color: white; background: #2b4159; }
.content { max-width: 78rem; margin-left: 19rem; padding: 2.25rem 3rem 4rem; }
h1, h2, h3 { font-family: "EB Garamond", Garamond, Georgia, serif; font-weight: 600; line-height: 1.2; text-wrap: balance; }
h1 { margin-top: 0; border-bottom: 2px solid #cfd6df; padding-bottom: .45rem; font-size: 2.3rem; }
h2 { margin-top: 2.5rem; border-bottom: 1px solid #dfe4ea; padding-bottom: .25rem; font-size: 1.75rem; }
h3 { margin-top: 1.75rem; font-size: 1.35rem; }
.eyebrow { margin-bottom: .35rem; color: #637083; font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.overview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.overview-card { border: 1px solid #d9e0e8; border-radius: .55rem; padding: 1rem; background: white; box-shadow: 0 1px 2px rgb(0 0 0 / 6%); }
.overview-card h2 { margin: 0 0 .25rem; border: 0; padding: 0; font-size: 1.35rem; }
.overview-card p { margin: .45rem 0; }
.announcement { margin-top: 1rem; border-left: 4px solid #377ca8; border-radius: .3rem; padding: .65rem 1rem; background: #eef5fa; overflow-wrap: anywhere; }
.announcement[data-announcement="testing"] { border-left-color: #b08732; background: #faf6eb; }
.announcement p { margin: .25rem 0; }
.module { color: #445164; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.meta, .caption { color: #687486; font-size: .88rem; }
.report-help { display: inline-block; position: relative; margin-left: .35rem; vertical-align: middle; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: .85rem; font-weight: 400; line-height: 1.5; }
.help-toggle { display: inline-flex; align-items: center; justify-content: center; width: 1.25rem; height: 1.25rem; border: 1px solid #7a8798; border-radius: 50%; padding: 0; color: #445164; background: #fff; font: inherit; cursor: help; }
.help-toggle:focus-visible { outline: 2px solid #175ca8; outline-offset: 2px; }
.help-text { display: none; position: absolute; top: 100%; left: 0; z-index: 40; width: max-content; max-width: min(30rem, 80vw); max-height: 65vh; overflow: auto; padding: .7rem .85rem; border: 1px solid #a8b3c2; border-radius: .35rem; color: #18202a; background: #fffdf5; box-shadow: 0 2px 8px rgb(0 0 0 / 18%); white-space: pre-line; overflow-wrap: anywhere; text-align: left; font-style: normal; }
.report-help:not(.help-dismissed):hover .help-text, .report-help:not(.help-dismissed):focus-within .help-text, .report-help.help-open .help-text { display: block; }
.caption { font-style: italic; }
.report-footer { margin-top: 2rem; border-top: 1px solid #d8dee6; padding-top: 1rem; color: #687486; font-size: .88rem; }
pre { max-width: 100%; overflow-x: auto; padding: 1rem; background: #f0f3f7; }
.empty { color: #778294; font-style: italic; }
figure { margin: 1.25rem 0 2rem; }
img { max-width: 100%; height: auto; border: 1px solid #e2e6eb; background: white; }
.interactive-figure { width: 100%; min-height: 700px; border: 1px solid #e2e6eb; background: white; }
.interactive-figure-link { margin: .4rem 0 0; font-size: .88rem; }
.table-scroll { max-width: 100%; overflow-x: auto; border: 1px solid #d8dee6; border-radius: .35rem; background: white; }
table { width: max-content; min-width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { border-bottom: 1px solid #e0e5eb; padding: .4rem .65rem; text-align: right; white-space: nowrap; }
th { background: #f0f3f7; }
td:first-child, th:first-child { text-align: left; }
.view-switch { display: none; gap: 0; margin: .75rem 0 .25rem; border: 1px solid #a8b3c2; border-radius: .4rem; overflow: hidden; }
.views-ready .view-switch { display: inline-flex; }
.view-button { border: 0; border-right: 1px solid #a8b3c2; padding: .35rem .8rem; color: #29384b; background: white; font: inherit; cursor: pointer; }
.view-button:last-child { border-right: 0; }
.view-button[aria-pressed="true"] { color: white; background: #29507a; }
.view-button:focus-visible { outline: 2px solid #175ca8; outline-offset: -2px; }
.views-ready .view-heading { display: none; }
details.downloads { margin: 1.25rem 0 2rem; border: 1px solid #d8dee6; border-radius: .4rem; padding: .65rem .8rem; background: #fbfcfd; }
details.downloads summary { cursor: pointer; font-weight: 650; }
details.downloads ul { margin-bottom: .25rem; }
/* controlled-seed report */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap; }
.controlled-content { max-width: 92rem; margin-left: auto; margin-right: auto; padding: 2.25rem 2rem 4rem; }
.page-nav { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-bottom: 1.25rem; }
.page-nav .return-link { font-weight: 650; }
.warning { margin: .6rem 0; border-left: 4px solid #c28e21; border-radius: .25rem; padding: .5rem .75rem; color: #6b5312; background: #fdf6e3; }
.heat-figure { margin: 1rem 0 1.75rem; }
.heat-figure figcaption { margin-bottom: .4rem; color: #445164; font-size: .92rem; font-weight: 650; }
table.heatmap { font-size: .85rem; }
table.heatmap th, table.heatmap td { text-align: center; white-space: nowrap; }
table.heatmap .row-label { text-align: left; white-space: normal; min-width: 13rem; }
.heat-cell { padding: 0; }
.heat-cell-link a { display: block; padding: .38rem .55rem; color: inherit; text-decoration: none; }
.heat-cell a:hover, .heat-cell a:focus-visible { outline: 2px solid #175ca8; outline-offset: -2px; }
.heat-cell-empty { background: transparent; }
.heat-cell-value { padding: .38rem .55rem; }
table.heatmap th.heat-group { border-left: 2px solid #b6c1cd; color: #445164; font-size: .8rem; letter-spacing: .03em; }
table.heatmap .row-label { position: sticky; left: 0; z-index: 1; background: #f0f3f7; }
table.heatmap tbody .row-label { background: #fbfcfd; }
table.heatmap .col-divider { border-right: 2px solid #b6c1cd; }
tbody.vanilla-body tr.vanilla-row th, tbody.vanilla-body tr.vanilla-row td { border-top: 3px double #8d99a9; border-bottom: 3px double #8d99a9; background: #f3f0e8; }
tbody.vanilla-body tr.vanilla-row .heat-cell { background-image: linear-gradient(rgba(255,255,255,.35), rgba(255,255,255,.35)); }
.heat-tooltip { position: absolute; z-index: 30; display: none; max-width: 22rem; border: 1px solid #445164; border-radius: .3rem; padding: .4rem .6rem; color: #18202a; background: #fffdf5; box-shadow: 0 2px 8px rgb(0 0 0 / 18%); font-size: .82rem; line-height: 1.35; pointer-events: none; }
.heat-tooltip > span { display: block; }
.heat-tooltip .tip-title { font-weight: 700; }
.heat-tooltip .tip-sub { color: #5b6778; }
.heat-tooltip .tip-grid { display: grid; grid-template-columns: auto auto; gap: .1rem .75rem; margin-top: .3rem; }
.heat-tooltip .tip-label { color: #5b6778; }
.heat-tooltip .tip-number { color: #6b3fa0; font-variant-numeric: tabular-nums; }
.heat-tooltip .tip-number-positive { color: #237a45; }
.heat-tooltip .tip-number-negative { color: #c0392b; }
.heat-tooltip .tip-number-unsigned { color: #6b3fa0; }
.heat-tooltip .tip-note { color: #5b6778; font-variant-numeric: tabular-nums; }
.heat-tooltip .tip-value > .tip-number + .tip-note { margin-left: .4rem; }
.heat-tooltip .tip-strong { font-weight: 700; }
.heat-tooltip .tip-list { margin: .25rem 0 0; padding-left: 1.1rem; }
.heat-tooltip .tip-list li { margin: .1rem 0; }
.heat-tooltip .tip-list li::marker { color: #8d99a9; }
.focus-legend { display: flex; flex-wrap: wrap; gap: .9rem; margin: .25rem 0 1.5rem; padding: 0; list-style: none; font-size: .85rem; }
.focus-legend .swatch { display: inline-block; width: .85rem; height: .85rem; margin-right: .3rem; border: 1px solid #44516433; border-radius: .15rem; vertical-align: -0.1em; }
.chart-controls { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; align-items: center; margin: .75rem 0; }
.chart-controls .controls-label { color: #445164; font-weight: 650; }
.chart-controls .strategist-check { display: inline-flex; align-items: center; gap: .3rem; }
.chart-controls .chart-presets { display: inline-flex; gap: .4rem; }
.chart-controls .chart-preset { padding: .1rem .55rem; border: 1px solid #a8b3c2; border-radius: .3rem; color: #18202a; background: #fff; font: inherit; font-size: .85rem; cursor: pointer; }
.chart-controls .chart-preset:hover { background: #eef2f6; }
.content.game-log { max-width: none; }
#game-log-table { width: 100%; }
#game-log-table th, #game-log-table td { vertical-align: top; }
#game-log-table th:nth-child(2), #game-log-table td:nth-child(2),
#game-log-table th:nth-child(6), #game-log-table td:nth-child(6),
#game-log-table th:nth-child(7), #game-log-table td:nth-child(7) {
  text-align: left; white-space: normal; overflow-wrap: anywhere;
}
.game-winner { display: block; color: #687486; font-size: .88em; }
.game-log-filters { display: flex; flex-wrap: wrap; gap: .7rem 1rem; align-items: center; margin: 1.2rem 0; }
.game-log-filters label { display: inline-flex; align-items: center; gap: .3rem; }
.game-log-filters select, .game-log-filters button { font: inherit; padding: .25rem; }
.game-log th button, th .sort-button { font: inherit; font-weight: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
th .sort-button:focus-visible { outline: 2px solid #175ca8; outline-offset: 2px; }
[aria-sort="descending"] > button::after { content: " ▾"; }
[aria-sort="ascending"] > button::after { content: " ▴"; }
.replay-link { white-space: nowrap; }
.muted { color: #64748b; }
.latest-game p:last-child { margin-bottom: 0; }
/* plain-language front page (report.intro) */
.hero h1 { margin: .2rem 0 1rem; border: 0; padding: 0; font-size: 2.75rem; line-height: 1.1; }
.hero .eyebrow { margin: 0; }
.lede { margin: 0 0 .8rem; font-size: 1.05rem; }
.section-lede { margin: 0 0 1rem; color: #445164; }
.term { border-bottom: 1.5px dotted #b08732; cursor: help; }
[data-tip]:focus-visible { outline: 2px solid #175ca8; outline-offset: 2px; }
.facts { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.facts li { display: flex; flex-direction: column; min-width: 7.5rem; border: 1px solid #d9e0e8; border-radius: .45rem; padding: .55rem .9rem; background: white; cursor: help; }
.facts b { font-family: "EB Garamond", Garamond, Georgia, serif; font-size: 1.75rem; font-weight: 600; line-height: 1.1; font-variant-numeric: lining-nums tabular-nums; }
.facts span { color: #637083; font-size: .85rem; }
.leader { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .75rem; margin: 1.2rem 0 0; border-left: 4px solid #b08732; border-radius: .3rem; padding: .65rem 1rem; background: #faf6eb; }
.leader .eyebrow { margin: 0; color: #8a6a24; }
.front-news .leader { margin-top: 1rem; }
.front-news .replay-link { font-weight: 650; }
.front-section .chart-link { margin: .5rem 0 0; font-size: .9rem; }
.front-legend { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.1rem; margin: 0 0 .75rem; padding: 0; list-style: none; color: #445164; font-size: .88rem; }
.front-legend li { display: inline-flex; align-items: center; gap: .4rem; }
.front-legend .sw { display: inline-block; width: .9rem; height: .9rem; border-radius: .15rem; }
.sw.up { background: #2c6aa8; }
.sw.down { background: #b4885a; }
.front-legend .sw.whisk { width: 1.1rem; height: 0; border-top: 2px solid #7a8798; border-radius: 0; }
.sw.dom, .seg.dom rect { background: #b5524a; fill: #b5524a; }
.sw.culture, .seg.culture rect { background: #7a55b0; fill: #7a55b0; }
.sw.diplo, .seg.diplo rect { background: #2f7fb8; fill: #2f7fb8; }
.sw.science, .seg.science rect { background: #2f8a6f; fill: #2f8a6f; }
.front-chart { overflow-x: auto; border: 1px solid #d8dee6; border-radius: .35rem; padding: 1rem 1rem .5rem; background: white; }
.front-chart svg { display: block; width: 100%; min-width: 720px; height: auto; font-size: 13px; }
.front-chart svg text { fill: #18202a; }
.front-chart .tick, .front-chart .axis, .front-chart .rank, .front-chart .sub, .front-chart .val, .front-chart .base-label, .front-chart .fit-label { fill: #687486; }
.front-chart .tick, .front-chart .val { font-size: 11.5px; font-variant-numeric: tabular-nums; }
.front-chart .base-label, .front-chart .fit-label { font-size: 12px; }
.front-chart .fit-label { font-style: italic; }
.front-chart .grid { stroke: #e9edf2; stroke-width: 1; }
.front-chart .base { stroke: #18202a; stroke-width: 1.5; stroke-dasharray: 4 3; }
.front-chart .fit { stroke: #687486; stroke-width: 1.5; stroke-dasharray: 6 4; }
.lb-row, .pt, .seg { outline: none; }
.lb-row .hit { fill: transparent; }
.lb-row:hover .hit, .lb-row:focus .hit { fill: #eef2f6; }
a.lb-row:hover .name, a.lb-row:focus .name, a.st-row:hover .name, a.st-row:focus .name { fill: #175ca8; text-decoration: underline; }
a.st-row:focus-visible { outline: 2px solid #175ca8; outline-offset: 2px; }
.lb-row.up .bar { fill: #2c6aa8; }
.lb-row.down .bar { fill: #b4885a; }
.lb-row.ref .dot { fill: #18202a; }
.lb-row.ref .name, .front-chart .refname { font-weight: 700; }
.lb-row .whisk { stroke: #18202a; stroke-opacity: .45; stroke-width: 1.5; }
.mode { cursor: help; }
.mode rect { fill: white; stroke: #c3ccd7; }
.mode.m1 rect, .mode.m2 rect, .mode.m3 rect { fill: #faf6eb; stroke: #b08732; }
.front-chart .mode text { fill: #445164; font-size: 11px; }
details.more-rows { margin-top: .5rem; }
details.more-rows summary { padding: .25rem 0; color: #175ca8; font-weight: 650; cursor: pointer; }
.pt circle, .pt rect, .pt path { fill: var(--c); stroke: white; stroke-width: 1.5; }
.pt:hover circle, .pt:hover rect, .pt:hover path, .pt:focus circle, .pt:focus rect, .pt:focus path { stroke: #18202a; }
.front-chart .pt-label { font-size: 12px; font-weight: 650; pointer-events: none; paint-order: stroke; stroke: white; stroke-width: 3px; stroke-linejoin: round; }
.pt-label.pick { display: none; }
.cost-chart.picking .pt:not(.on) { opacity: .15; }
.cost-chart.picking .pt-label.rest { display: none; }
.cost-chart.picking .pt-label.pick.on { display: inline; }
.series-key { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid #c3ccd7; border-radius: 1rem; padding: .1rem .6rem; color: #18202a; background: white; font: inherit; font-size: .85rem; cursor: pointer; }
.series-key:hover { background: #eef2f6; }
.series-key[aria-pressed="true"] { border-color: #18202a; font-weight: 650; }
.series-key .sw { width: .75rem; height: .75rem; border-radius: 50%; }
.shape-key svg { width: .9rem; height: .9rem; fill: #687486; }
.front-chart .seg text { fill: white; font-size: 11.5px; font-weight: 650; font-variant-numeric: tabular-nums; pointer-events: none; }
.seg:hover rect, .seg:focus rect { stroke: #18202a; stroke-width: 2; }
.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.project { display: flex; flex-direction: column; gap: .35rem; min-width: 0; border-top: 3px solid #b08732; border-radius: 0 0 .45rem .45rem; padding: .9rem 1.1rem; background: white; box-shadow: 0 1px 2px rgb(0 0 0 / 6%); }
.project h3 { margin: 0; }
.project p { flex: 1; margin: 0; }
.also { margin: 1rem 0 0; color: #445164; }
.findings { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1rem; }
.finding { display: flex; flex-direction: column; min-width: 0; border: 1px solid #d9e0e8; border-radius: .55rem; padding: 1rem; background: white; box-shadow: 0 1px 2px rgb(0 0 0 / 6%); }
.finding p { flex: 1; margin: .5rem 0; }
.finding-head { display: flex; align-items: center; gap: .55rem; }
.finding-head h3 { flex: 1; margin: 0; font-size: 1.25rem; }
.finding-head .report-help { margin-left: 0; }
.finding .icon svg { display: block; width: 1.4rem; height: 1.4rem; fill: #b08732; stroke: #b08732; stroke-width: 1.2; stroke-linejoin: round; }
.finding .icon svg .cut { fill: none; stroke: white; stroke-width: 1.8; stroke-linecap: round; }
.finding .icon svg .open { fill: none; stroke-width: 2; stroke-linecap: round; }
.finding > a { font-size: .9rem; font-weight: 650; text-decoration: none; }
@media (max-width: 820px) {
  .sidebar { position: static; width: auto; max-height: none; }
  .sidebar ul ul { display: none; }
  .content { margin-left: 0; padding: 1.5rem 1rem 3rem; }
  .hero h1 { font-size: 2.1rem; }
}
