/* Layout: the first page of a conference paper that keeps going. Title between rules, a justified
   Computer Modern column, contents in the left margin and notes in the right. Links use hyperref's colors. */
@font-face { font-family: "Latin Modern Roman"; src: url("fonts/LM-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Latin Modern Roman"; src: url("fonts/LM-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Latin Modern Roman"; src: url("fonts/LM-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Latin Modern Roman"; src: url("fonts/LM-bold-italic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "CMU Typewriter"; src: url("fonts/CMU-typewriter.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Latin Modern Math"; src: url("fonts/LM-math.woff2") format("woff2"); font-display: swap; }

:root {
  --serif: "Latin Modern Roman", "CMU Serif", "Times New Roman", Times, serif;
  --mono: "CMU Typewriter", "Latin Modern Mono", ui-monospace, Menlo, Consolas, monospace;
  --math: "Latin Modern Math", "STIX Two Math", "Cambria Math", math;

  --paper: #ffffff;
  --ink: #111111;
  --ink-2: #4c4c48;
  --ink-3: #8b8b84;
  --hair: #dddcd6;
  --fill: #f2f1ec;
  --fill-2: #e6e5de;
  --ref: #a80f0f;
  --cite: #0a6e2c;
  --url: #99107e;
  --stamp: #8a8a8a;

  --s1: #2a78d6;
  --s2: #eb6834;
  --s3: #1baf7a;
  --s4: #eda100;
  --s1-ink: #ffffff;

  --q1: #cde2fb; --q1i: #111111;
  --q2: #9ec5f4; --q2i: #111111;
  --q3: #6da7ec; --q3i: #111111;
  --q4: #3987e5; --q4i: #111111;
  --q5: #1c5cab; --q5i: #ffffff;
  --q6: #0d366b; --q6i: #ffffff;

  --t0: color-mix(in srgb, var(--s1) 15%, var(--paper));
  --t1: color-mix(in srgb, var(--s2) 15%, var(--paper));
  --m: var(--fill);
  color-scheme: only light; /* light always, and "only" also opts out of browsers' automatic dark mode */
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  padding-block: 0 48px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.42 var(--serif);
  font-variant-ligatures: common-ligatures;
  font-synthesis: none;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--url); text-decoration: none; }
a:hover { text-decoration: underline; }
a.ref { color: var(--ref); }
a.cite { color: var(--cite); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 1px; }
math { font-family: var(--math); font-size: 1.02em; }
code, pre { font-family: var(--mono); }

/* Title page */
.titlepage { position: relative; max-width: 760px; margin-inline: auto; padding-top: clamp(28px, 6vw, 72px); }
.titlerules { border-top: 4px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 0.85em 0.5em 0.95em; text-align: center; }
h1 { margin: 0; font-size: clamp(25px, 3.7vw, 34px); line-height: 1.16; font-weight: 700; text-wrap: balance; letter-spacing: -0.003em; }
.authors { margin-top: 1.5em; text-align: center; }
.authors p { margin: 0; }
.author { font-weight: 700; }
.affil { font-size: 0.94em; color: var(--ink-2); }
.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.15em 0.9em; margin: 0.95em 0 0; font-size: 0.97em; }
.abstract { max-width: 640px; margin: 1.8em auto 0; }
.abstract h2 { margin: 0 0 0.45em; text-align: center; font-size: 1em; font-weight: 700; }
.abstract p { margin: 0; font-size: 0.95em; text-align: justify; hyphens: auto; text-wrap: pretty; }
.stamp { display: none; }
@media (min-width: 1080px) {
  .stamp {
    display: block; position: absolute; top: clamp(28px, 6vw, 72px); left: -96px; margin: 0;
    writing-mode: vertical-rl; transform: rotate(180deg);
    font-family: "Times New Roman", Times, var(--serif); font-size: 20px; line-height: 1; color: var(--stamp); white-space: nowrap;
  }
}

/* Page frame */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 700px) minmax(0, 1fr); column-gap: 32px; margin-top: 2.2em; }
article { grid-column: 2; min-width: 0; }
.toc { grid-column: 1; justify-self: end; align-self: start; position: sticky; top: 20px; width: 178px; margin-right: 104px; font-size: 0.78em; line-height: 1.3; }
.tochead { margin: 0 0 0.5em; font-weight: 700; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.32em; }
.toc a { display: grid; grid-template-columns: 1.4em minmax(0, 1fr); color: var(--ink-2); }
.toc a.current { color: var(--ink); font-weight: 700; }
@media (max-width: 1359px) {
  .layout { display: block; max-width: 700px; margin-inline: auto; }
  .toc { position: static; width: auto; margin: 0 0 1.6em; padding-block: 0.7em; border-block: 1px solid var(--hair); font-size: 0.88em; }
  .toc ol { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
}

/* Running text */
article p { margin: 0; text-align: justify; hyphens: auto; text-wrap: pretty; }
article p + p { text-indent: 1.5em; }
article p.noindent { text-indent: 0; }
article h2 { margin: 1.9em 0 0.55em; font-size: 1.24em; line-height: 1.2; font-weight: 700; text-wrap: balance; }
article h3 { margin: 1.35em 0 0.4em; font-size: 1.04em; line-height: 1.25; font-weight: 700; text-wrap: balance; }
.secnum { display: inline-block; margin-right: 0.85em; }
q { quotes: "\201C" "\201D" "\2018" "\2019"; }
ul.contrib { margin: 0.7em 0 0.9em; padding-left: 1.3em; display: grid; gap: 0.4em; }
ul.contrib li { text-align: justify; hyphens: auto; }
ul.files { margin: 0.4em 0 0; padding-left: 1.3em; display: grid; gap: 0.3em; font-size: 0.97em; }
sup { font-size: 0.68em; line-height: 0; }
.fnm a { color: var(--ref); }
.sn { display: none; }
.footnotes { margin: 2em 0 0; padding: 0.8em 0 0 1.2em; border-top: 1px solid var(--ink); width: 40%; min-width: 260px; font-size: 0.82em; line-height: 1.3; }
@media (min-width: 1320px) {
  .sn {
    display: block; float: right; clear: right; width: 214px; margin: 0.15em -246px 0.6em 0;
    font-size: 13px; line-height: 1.3; text-align: left; text-indent: 0; color: var(--ink-2); hyphens: manual;
  }
  .fnm a { pointer-events: none; }
  .footnotes { display: none; }
}

/* Equations */
.equation { display: grid; grid-template-columns: 3em minmax(0, 1fr) 3em; align-items: center; margin: 0.9em 0; overflow-x: auto; }
.equation math { grid-column: 2; }
.eqno { grid-column: 3; text-align: right; }

/* Figures and tables */
figure { margin: 1.7em 0; }
figcaption { margin-top: 0.75em; font-size: 0.85em; line-height: 1.32; text-align: justify; hyphens: auto; text-wrap: pretty; }
figure.table figcaption, figure.transcript figcaption { margin-top: 0; margin-bottom: 0.55em; }
figure.narrow { max-width: 420px; margin-inline: auto; }
figure.narrow figcaption { text-align: center; }
.scroll { overflow-x: auto; }
.fig { display: block; width: 100%; height: auto; }
.fig text { font-family: var(--serif); font-size: 13.5px; fill: var(--ink); }
.fig .small { font-size: 13px; fill: var(--ink-2); }
.fig .tick { font-size: 13px; fill: var(--ink-2); font-variant-numeric: tabular-nums lining-nums; }
.fig .panel { font-weight: 700; font-size: 14px; }
.fig .label { font-size: 13.5px; paint-order: stroke; stroke: var(--paper); stroke-width: 3px; stroke-linejoin: round; }
.fig .label.strong { font-weight: 700; }
.fig .label.quietlabel { fill: var(--ink-2); }
.fig .boxhead { font-weight: 700; font-size: 14px; }
.hair { stroke: var(--hair); stroke-width: 1; }
.zero { stroke: var(--ink-3); stroke-width: 1; }
.ci { stroke: var(--ink-2); stroke-width: 1.5; }
.pt { fill: var(--s1); stroke: var(--paper); stroke-width: 2; }
.hit { fill: transparent; }
.mark { cursor: default; outline: none; }
.mark:focus-visible .pt { stroke: var(--ink); }
.mark:focus-visible .ln { stroke-width: 3.5; }
.s1 { fill: var(--s1); } .s2 { fill: var(--s2); } .s3 { fill: var(--s3); } .s4 { fill: var(--s4); }
.fig .inbar { font-size: 12px; fill: #0b0b0b; font-variant-numeric: tabular-nums lining-nums; }
.fig .inbar.s1ink { fill: var(--s1-ink); }
.ln { fill: none; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.ln.quiet { stroke: var(--ink-3); }
.ln.s1 { stroke: var(--s1); fill: none; stroke-width: 2.5; }
.ln.s2 { stroke: var(--s2); fill: none; stroke-width: 2.5; }
.ln-hit { fill: none; stroke: transparent; stroke-width: 14; }
.end { stroke: var(--paper); stroke-width: 2; }
.end.quiet { fill: var(--ink-3); }
.endcross { fill: none; stroke-width: 2; stroke-linecap: round; }
.endcross.quiet { stroke: var(--ink-3); fill: none; }
.endcross.s1 { stroke: var(--s1); fill: none; }
.endcross.s2 { stroke: var(--s2); fill: none; }

/* Diagrams in a TikZ hand */
.diagram .scroll + .scroll { margin-top: 1.1em; }
.tikz { min-width: 560px; }
.box { fill: none; stroke: var(--ink); stroke-width: 1; }
.box.paid { fill: var(--fill-2); }
.arrow { stroke: var(--ink); stroke-width: 1; fill: none; }
.arrowhead { fill: var(--ink); }
.bracket { fill: none; stroke: var(--ink-2); stroke-width: 1; }
.legendback { fill: var(--paper); }
.dot.tribe-a { fill: var(--s1); }
.dot.tribe-b { fill: var(--s2); }
.dot.merged { fill: var(--ink); }
.dot.juror { fill: var(--paper); stroke: var(--ink); stroke-width: 1.2; }
.cross { stroke: var(--ink); stroke-width: 1.3; fill: none; stroke-linecap: round; }

/* Tables with booktabs rules */
.booktabs { width: 100%; border-collapse: collapse; font-size: 0.84em; line-height: 1.25; font-variant-numeric: tabular-nums lining-nums; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.booktabs thead th { border-bottom: 0.75px solid var(--ink); vertical-align: bottom; }
.booktabs th, .booktabs td { padding: 0.27em 0.42em; text-align: left; white-space: nowrap; }
.booktabs.wrap th, .booktabs.wrap td { white-space: normal; vertical-align: top; }
.booktabs tbody th { font-weight: 400; }
.booktabs th:first-child, .booktabs td:first-child { padding-left: 0.15em; }
.booktabs th:last-child, .booktabs td:last-child { padding-right: 0.15em; }
.booktabs .num { text-align: right; }
.booktabs .nowrap { white-space: nowrap; }

.heat { width: 100%; border-collapse: separate; border-spacing: 2px; font-size: 0.86em; line-height: 1.2; font-variant-numeric: tabular-nums lining-nums; }
.heat thead th { font-weight: 400; color: var(--ink-2); text-align: center; padding-bottom: 0.2em; }
.heat thead .corner { text-align: left; }
.heat tbody th { font-weight: 400; text-align: left; white-space: nowrap; padding-right: 0.8em; }
.heat td { height: 1.9em; min-width: 2.2em; text-align: center; background: var(--fill); }
.heat .mean { background: none; text-align: right; padding-left: 0.6em; width: 3.2em; }
.heat td.q1 { background: var(--q1); color: var(--q1i); } .heat td.q2 { background: var(--q2); color: var(--q2i); } .heat td.q3 { background: var(--q3); color: var(--q3i); }
.heat td.q4 { background: var(--q4); color: var(--q4i); } .heat td.q5 { background: var(--q5); color: var(--q5i); } .heat td.q6 { background: var(--q6); color: var(--q6i); }

/* The still that opens the report */
.still { margin-top: 0; }
.still > a { position: relative; display: block; }
.play {
  position: absolute; left: 2.5%; top: 69%; display: inline-flex; align-items: center; gap: 0.55em;
  padding: 0.38em 0.8em 0.42em 0.7em; background: #111; color: #fff; font-size: 0.86em; line-height: 1; border-radius: 2px;
}
.play svg { width: 0.72em; height: 0.84em; fill: #fff; }
.still > a:hover .play { background: #000; text-decoration: underline; }

/* Transcripts */
.transcript table { width: 100%; border-collapse: collapse; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); font-size: 0.92em; line-height: 1.34; }
.transcript th { width: 8.6em; padding: 0.42em 1em 0.42em 0.1em; font-weight: 700; font-size: 0.92em; text-align: left; vertical-align: top; }
.transcript th small { display: block; font-weight: 400; font-size: 0.86em; color: var(--ink-2); line-height: 1.2; }
.transcript td { padding: 0.42em 0.1em; vertical-align: top; }
.transcript tr + tr > * { border-top: 1px solid var(--hair); }
.transcript .outcome > * { border-top: 0.75px solid var(--ink); }

/* Voting history */
figure.wide { position: relative; left: 50%; transform: translateX(-50%); width: min(940px, calc(100vw - 32px)); }
figure.wide figcaption { max-width: 700px; margin-inline: auto; }
.gridcontrols { display: flex; align-items: baseline; gap: 0.5em; margin-bottom: 0.5em; font-size: 0.9em; }
select { font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--ink-3); border-radius: 2px; padding: 0.1em 0.3em; }
.gridnote { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.2em 1.5em; margin: 0 0 0.45em; font-size: 0.86em; }
.legend { color: var(--ink-2); white-space: nowrap; }
.swatch { display: inline-block; width: 0.8em; height: 0.8em; margin: 0 0.3em 0 0.8em; vertical-align: -0.05em; border: 0.5px solid var(--ink-3); }
.swatch.t0 { background: var(--t0); } .swatch.t1 { background: var(--t1); } .swatch.m { background: var(--m); }
.votes { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 2px; font-size: 0.78em; line-height: 1.22; font-variant-numeric: lining-nums; }
.votes th, .votes td { padding: 0.32em 0.35em; text-align: center; white-space: nowrap; font-weight: 400; }
.votes thead th { color: var(--ink-2); vertical-align: bottom; padding-bottom: 0.55em; }
.votes thead b { color: var(--ink); }
.votes tbody th { text-align: left; padding-left: 0; }
.votes tbody th small { display: block; font-size: 0.84em; color: var(--ink-2); }
.votes td { background: transparent; }
.votes td.t0 { background: var(--t0); }
.votes td.t1 { background: var(--t1); }
.votes td.m { background: var(--m); }
.votes td.hit { font-weight: 700; }
.votes td.out { background: var(--ink); color: var(--paper); }
.votes td s { font-weight: 400; color: var(--ink-3); text-decoration-thickness: 1.5px; }
.votes td.out s { color: var(--hair); }
.votes td.final { font-weight: 700; background: var(--fill-2); }
.votes td.final.won { background: var(--ink); color: var(--paper); }
.votes td.juror { background: var(--fill); }
.votes .finalcol { box-shadow: inset 2px 0 0 var(--paper), inset 3px 0 0 var(--ink-3); padding-left: 0.6em; }
.votes .mergecol { box-shadow: inset 2px 0 0 var(--paper), inset 3px 0 0 var(--ink-3); padding-left: 0.6em; }
.votes .lit { outline: 2px solid var(--ref); outline-offset: -2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* Leaderboard and metric tables */
.leaderboard tbody th { white-space: nowrap; }
.leaderboard .rank { color: var(--ink-2); width: 1.6em; }
.leaderboard .small { font-size: 0.9em; color: var(--ink-2); }
.leaderboard .cipcell { padding-right: 0; }
.cip { width: 190px; height: 16px; }
.leaderboard .unranked > * { color: var(--ink-2); }
.leaderboard .unranked:first-of-type > * { border-top: 0; }
.leaderboard tr:not(.unranked) + .unranked > * { border-top: 0.75px solid var(--hair); }
.metrics thead th { vertical-align: bottom; line-height: 1.12; font-size: 0.92em; }
.metrics td { min-width: 3.1em; }
.metrics tr.quiet th, .metrics tr.quiet td:not([class*="q"]) { color: var(--ink-2); }
.heat td.q0 { background: var(--fill); color: var(--ink-2); }

/* Real seasons beside ours */
.compare .grouphead th { padding-top: 0.55em; font-weight: 700; }
.compare tbody tr:not(.grouphead) th { padding-left: 0.7em; }
.compare td, .compare tbody th { vertical-align: top; }
.compare .iv { display: block; font-size: 0.86em; color: var(--ink-2); }
.band { fill: var(--s1); fill-opacity: 0.16; stroke: none; }
#fig-unanimous .chart { min-width: 520px; }

/* The game, drawn */
.flow h4 { margin: 0.5em 0 0.15em; font-size: 0.98em; font-weight: 700; }
.flow p, .rail span { text-align: left; hyphens: manual; text-indent: 0; }
.stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2em 2.2em; margin: 0; padding: 0; list-style: none; }
.stages li { position: relative; min-width: 0; }
.stages p { margin: 0; font-size: 0.86em; line-height: 1.3; color: var(--ink-2); }
.stages li + li::before { content: "\2192"; position: absolute; left: -1.5em; top: 0.55em; color: var(--ink-3); }
.fig.stage { width: 100%; max-width: 210px; }
.fig.stage .small { font-size: 11px; }
.dot.winner { fill: var(--s4); }
.rail { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.rail li { position: relative; min-width: 0; padding: 1.5em 0.9em 0 0; }
.rail li::before { content: ""; position: absolute; z-index: 1; top: 0.22em; left: 0; width: 0.7em; height: 0.7em; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--ink); }
.rail li.free::before { background: var(--paper); }
.rail li::after { content: ""; position: absolute; top: 0.56em; left: 0.3em; right: -0.3em; height: 1px; background: var(--ink-3); }
.rail li:last-child::after { right: 0; }
.rail b { display: block; font-size: 0.94em; line-height: 1.2; }
.rail span { display: block; margin-top: 0.2em; font-size: 0.8em; line-height: 1.28; color: var(--ink-2); }
.spots { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 0.8em; }
.spot { padding: 0.45em 0.7em 0.55em; border: 1px solid var(--ink-3); border-radius: 2px; }
.spot.apart { border-style: dashed; color: var(--ink-2); }
.spot h4 { margin: 0 0 0.25em; font-size: 0.88em; }
.spot ul { margin: 0; padding: 0; list-style: none; font-size: 0.86em; line-height: 1.3; }
.transcript figcaption b:first-child { font-weight: 700; }
@media (max-width: 760px) {
  .rail { grid-template-columns: minmax(0, 1fr); gap: 0.55em; }
  .rail li { padding: 0 0 0 1.5em; }
  .rail li::before { top: 0.26em; }
  .rail li::after { top: 0.6em; bottom: -1.2em; left: 0.34em; right: auto; width: 1px; height: auto; }
  .rail li:last-child::after { display: none; }
  .rail span { margin-top: 0; }
}
@media (max-width: 640px) {
  .leaderboard .cipcell { display: none; }
  .stages { grid-template-columns: minmax(0, 1fr); }
  .stages li + li::before { display: none; }
}

/* Listings */
pre.listing { margin: 0.8em 0; padding: 0.55em 0; overflow-x: auto; border-block: 0.75px solid var(--ink); font-size: 0.72em; line-height: 1.42; }
.bibwrap { position: relative; }
.copy { position: absolute; top: 0.35em; right: 0; font: inherit; font-size: 0.8em; color: var(--url); background: var(--paper); border: 0; padding: 0.1em 0.3em; cursor: pointer; }
.copy:hover { text-decoration: underline; }
.rulebook summary { cursor: pointer; margin-top: 0.6em; color: var(--url); }
.rulebook pre { max-height: 34em; overflow: auto; white-space: pre-wrap; }

/* References */
.refs { margin: 0; padding-left: 2em; font-size: 0.92em; line-height: 1.32; display: grid; gap: 0.32em; }
.refs li { padding-left: 0.2em; }
.refs li:target { background: var(--fill); }

.sitefoot { max-width: 700px; margin: 3.2em auto 0; padding-top: 0.8em; border-top: 1px solid var(--hair); font-size: 0.8em; line-height: 1.32; color: var(--ink-2); }
.sitefoot p { margin: 0 0 0.4em; }

#tip {
  position: fixed; z-index: 10; max-width: 300px; padding: 0.3em 0.55em; background: var(--ink); color: var(--paper);
  font-size: 13.5px; line-height: 1.25; border-radius: 2px; pointer-events: none;
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  article p, ul.contrib li, .abstract p, figcaption { text-align: left; hyphens: manual; }
  article p + p { text-indent: 0; margin-top: 0.7em; }
  .transcript th { width: auto; display: block; padding-bottom: 0; }
  .transcript td { display: block; padding-top: 0.1em; }
  .transcript tr + tr > td { border-top: 0; }
  .transcript tr { display: block; }
  .transcript tr + tr { border-top: 1px solid var(--hair); }
  .transcript tr + tr > th { border-top: 0; }
  .transcript .outcome { border-top: 0.75px solid var(--ink); }
  .transcript .outcome > * { border-top: 0; }
  .play { display: none; }
}

@media print {
  .toc, .links, .play, .copy, .gridcontrols, #tip { display: none !important; }
  body { font-size: 11pt; padding: 0; }
  .layout { display: block; max-width: none; }
  figure.wide { left: 0; transform: none; width: 100%; }
  .rulebook pre { max-height: none; }
  a { color: inherit; }
}
