:root {
  --wh-paper: #f8f9f7;
  --wh-ink: #17191c;
  --wh-muted: #555a60;
  --wh-line: #d2d4d3;
  --wh-teal: #00b8a6;
  --wh-teal-ink: #006c62;
  --wh-teal-display: #008477;
  --wh-wash: #e2f7f3;
  --wh-gold: #f4ce6b;
  --wh-ochre: #a26414;
  --wh-leaf: #506e39;
  --wh-violet: #80558b;
  /* Historical poll series keep their original green, purple, gold and slate order. */
  --cc-series-0: var(--wh-teal-ink);
  --cc-series-1: var(--wh-violet);
  --cc-series-2: var(--wh-ochre);
  --cc-series-3: #42667b;
  --cc-third-ink: white;
}

::selection { background: var(--wh-wash); color: var(--wh-ink); }

.masthead, .top, .shell > header {
  position: relative;
  border-bottom: 4px solid var(--ink, var(--wh-ink));
}
.masthead::after, .top::after, .shell > header::after {
  content: "";
  position: absolute;
  inset: auto auto -4px 0;
  width: 19%;
  height: 4px;
  background: var(--wh-teal);
  pointer-events: none;
}
.masthead .brand, .shell > header .brand, .top .wordmark {
  color: var(--ink, var(--wh-ink));
  font: 650 clamp(2rem,8vw,2.7rem)/1 "Fraunces", Georgia, serif;
  letter-spacing: -.05em;
  text-decoration: none;
  white-space: nowrap;
}

:where(button, input, select, textarea, a):focus-visible {
  outline: 2px solid var(--accent, var(--wh-teal-ink));
  outline-offset: 3px;
}
.country-figure {
  --cc-paper: white;
  --cc-ink: var(--wh-ink);
  border-color: var(--wh-line);
  border-radius: 2px;
}
.country-figure figcaption p, .country-figure .cc-scale, .country-figure .cc-n { color: var(--wh-muted); }
.country-figure .cc-download { color: var(--wh-teal-ink); }

.press-page code { white-space: normal; overflow-wrap: anywhere; }

.utility-page form { display: flex; gap: .75rem; flex-wrap: wrap; align-items: end; margin-block: 1rem; }
.utility-page form label { display: grid; gap: .3rem; }
.utility-page form :is(button, input, select) { font: inherit; min-height: 2.75rem; padding: .45rem .75rem; }
.utility-page form button {
  background: var(--ink); color: var(--paper); border: 1px solid var(--ink);
  border-radius: 2px; cursor: pointer;
}
