:root {
  color-scheme: light;
  --paper: #f8f9f7;
  --field: #fff;
  --ink: #17191c;
  --muted: #555a60;
  --pine: #17191c;
  --rust: var(--ink-blue);
  --rule: #d2d4d3;
  --line: #797c80;
  --ink-blue: #285780;
  --wash: #edf3f8;
  --selection: #d1e1ef;
}

::selection { background: var(--selection); color: var(--ink); }
.edition-shell { background: var(--paper); }
.masthead { position: relative; margin-bottom: 0; border-bottom: 4px solid var(--ink); }
.masthead::after {
  content: ""; position: absolute; bottom: -4px; left: 0;
  width: 19%; height: 4px; background: var(--ink-blue);
}
.masthead .brand { color: var(--ink); font-style: normal; }
.masthead .brand::after {
  content: ""; width: .12em; height: .64em; margin-left: .10em;
  background: var(--ink-blue); transform: skew(-16deg);
}
.masthead a:not(.brand) { text-decoration-color: var(--line); }
#vote-cover .kicker { color: var(--ink-blue); }
#vote-cover .choice {
  border-radius: 0; border-color: #8c9094; background: var(--field);
  color: var(--ink);
}
#vote-cover .choice:has(:checked) {
  border-color: var(--ink-blue); color: var(--ink-blue);
  box-shadow: inset 4px 0 var(--ink-blue); background: var(--wash);
}
#vote-cover .choice input { accent-color: var(--ink-blue); }
#vote-cover .button, #new-comment, .discussion-form .button {
  background: var(--ink); border-color: var(--ink); border-radius: 1px; color: white;
}
#vote-cover .button:hover, #new-comment:hover, .discussion-form .button:hover {
  background: var(--ink-blue); border-color: var(--ink-blue);
}
#vote-cover .choice:has(:focus-visible), :is(button, a, select, input, textarea):focus-visible,
#discussion-thread :is(button, select, textarea, a):focus-visible {
  outline: 2px solid var(--ink-blue); outline-offset: 3px;
}
#discussion-cover #thread-vote-choice { color: var(--ink-blue); font-weight: 650; }
#thread-clock {
  --clock-paper: var(--field);
  color: var(--ink); border: 1px solid var(--ink); border-top-width: 4px; border-radius: 0;
}
.clock-digits b, #thread-clock .card-label { color: var(--ink-blue); }
#clock-deadline { color: var(--muted); }
.clock-digits > span + span::before { background: var(--line); box-shadow: 0 .34rem var(--line); }
.clock-dial { --dial-ink: var(--ink); --dial-fine: #6f7375; --dial-rest: #d8dada; }
.clock-dial::after { background: var(--ink-blue); }

#thread-reveal {
  background: var(--field); color: var(--ink); border: 1px solid var(--ink); border-radius: 0;
}
.reveal-print {
  background: var(--field); color: var(--ink); border-radius: 0;
  border-top: 5px solid var(--ink-blue); border-bottom: 1px solid var(--ink); box-shadow: none;
}
.reveal-meta .card-label {
  padding: .25em .5em; color: var(--ink); background: #f4ce6b;
  font-family: var(--sans); font-weight: 750; letter-spacing: .09em;
}
#thread-reveal-sample, .axis-ticks, .ordered-axis span { color: var(--muted); }
#thread-stat-question, #thread-reveal-value, #thread-reveal-caption { color: var(--ink); }
.reveal-print:has(.answer-check) #thread-reveal-value { color: var(--ink-blue); }
#thread-answer-chart { border-color: var(--rule); }
[data-chart=ranked] .answer-track { background: #e8eae9; }
[data-chart=ordered] .answer-track {
  border-color: var(--line);
  background: linear-gradient(to top, transparent 49%,var(--rule) 49% 50%,transparent 50%);
}
#thread-reveal .stack-piece + .stack-piece { box-shadow: inset 1px 0 #fff; }
.plot-answer:has(.answer-check) :is(.answer-label, .answer-share) {
  color: var(--answer-color); font-weight: 750;
}
.plot-answer .answer-check { color: var(--ink-blue); }
#thread-reveal .country-figure {
  --cc-paper: var(--field); --cc-ink: var(--ink); --cc-third-ink: white;
}
.country-figure figcaption p, .country-figure .cc-scale, .cc-n { color: var(--muted); }
#discussion-thread {
  --reply-rail: #92969b; --pine-rail: #858a90; --pine-wash: var(--wash);
  background: var(--field); border: 1px solid var(--ink); border-top-width: 4px; border-radius: 0;
}
#discussion-thread .comments-header { border-color: var(--ink); }
#discussion-title { color: var(--ink); }
#discussion-thread .thread-toggle, .thread-actions button:hover { color: var(--ink-blue); }
#follow-discussion { border-color: var(--line); border-radius: 1px; color: var(--ink); }
#follow-discussion:is(:hover,[aria-expanded=true]) { border-color: var(--ink-blue); background: var(--wash); }
#discussion-tools select, #discussion-thread .discussion-form textarea { border-color: var(--line); border-radius: 0; }
@media (forced-colors: active) {
  .plot-answer:has(.answer-check) .answer-label { text-decoration: underline; }
  #vote-cover .choice:has(:checked) { border: 2px solid Highlight; }
}
