/* Migration Space
   A dark ground, one accent for arrivals and one for departures, and as little
   furniture as the interface can survive on. Everything floats over the canvas;
   nothing gets a box unless it needs one to stay readable. */

:root {
  --ink:    #e9effb;
  --ink-2:  #94a3be;
  --ink-3:  #5e6c86;
  --ink-4:  #3d4859;
  --warm:   #ffb866;
  --cool:   #7cacff;
  --line:   rgba(140, 172, 224, 0.14);
  --ground: #05070d;
  --serif:  'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --sans:   'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --edge:   clamp(20px, 3.4vw, 46px);
  --ease:   cubic-bezier(0.22, 0.61, 0.29, 1);
  --panel-bg: rgba(8, 11, 20, 0.55);
  --panel-border: rgba(140, 172, 224, 0.11);
  --overlay-bg: rgba(9, 13, 23, 0.94);
  --overlay-strong: rgba(9, 13, 23, 0.92);
  --zoomreset-bg: rgba(9, 13, 23, 0.6);
  --fade-mid: rgba(4, 7, 14, 0.78);
  --fade-strong: rgba(4, 7, 14, 0.9);
  --select-bg: #0b1120;
}

:root[data-theme="light"] {
  --ink: #2b2620;
  --ink-2: #5c5648;
  --ink-3: #8a8272;
  --ink-4: #b6ac96;
  --warm: #b5651d;
  --cool: #2f5f8f;
  --line: rgba(60, 50, 30, 0.14);
  --ground: #f7f6f3;
  --panel-bg: rgba(255, 255, 255, 0.72);
  --panel-border: rgba(60, 55, 45, 0.14);
  --overlay-bg: rgba(253, 252, 250, 0.96);
  --overlay-strong: rgba(253, 252, 250, 0.94);
  --zoomreset-bg: rgba(253, 252, 250, 0.7);
  --fade-mid: rgba(247, 246, 243, 0.8);
  --fade-strong: rgba(247, 246, 243, 0.92);
  --select-bg: #f7f6f3;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

body { overflow: hidden; }

#sky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: manipulation;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ── shared idioms ─────────────────────────────────────────────────────── */

.k, .mark, .switch button, .back, .result em, .tie em {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

a { color: var(--ink-2); text-decoration-color: var(--ink-4); text-underline-offset: 2px; }
a:hover { color: var(--ink); }

/* ── top left ──────────────────────────────────────────────────────────── */

/* One column from top edge to bottom edge. Normal flow keeps the name, the back
   link and the numbers from ever landing on top of each other, whatever the
   length of the county name. When a county's story is taller than the screen
   the column scrolls on its own rather than running off the bottom. The box
   starts 8px left of the text so hover fills and focus rings are not clipped,
   and keeps 12px on the right for the scrollbar. */
.rail {
  position: fixed;
  top: var(--edge);
  bottom: var(--edge);
  left: calc(var(--edge) - 8px);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: min(392px, 80vw);
  padding: 0 12px 0 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  /* The bar's room is always kept, so a column that starts or stops
     scrolling never rewraps its text, and the bar itself only shows while
     the reader is on the column. The soft edge below says "more" the rest of
     the time. */
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  transition: scrollbar-color 0.25s var(--ease);
}

.rail:hover, .rail:focus-within { scrollbar-color: var(--ink-4) transparent; }

/* Over the map and the chart the rail is mostly empty air, and the country
   runs under it: only its words and controls take the pointer, so a county
   under the rail's empty space can still be hovered and clicked. A county's
   story fills the rail, so there the whole column scrolls as one. */
body:not([data-view="system"]) .rail { pointer-events: none; }
body:not([data-view="system"]) :is(.finder, .lede, .foot) { pointer-events: auto; }

/* A soft edge where the column runs on below the screen, so a cut line reads
   as "more below". Driven by the rail's own scroll: when everything fits the
   timeline is inactive and the edge never shows, and it fades out as the
   reader reaches the end. */
@supports (animation-timeline: scroll()) {
  .rail::after {
    content: '';
    position: sticky;
    bottom: 0;
    flex: none;
    align-self: stretch;
    height: 32px;
    margin-top: -32px;
    background: linear-gradient(to bottom, transparent, var(--ground));
    pointer-events: none;
    opacity: 0;
    animation: rail-more linear both;
    animation-timeline: scroll();
  }
}

@keyframes rail-more {
  0%, 92% { opacity: 1; }
  100% { opacity: 0; }
}

.rail-foot { margin-top: auto; padding-top: 16px; width: 100%; }



.brand { pointer-events: none; }
/* Inside a county its own name heads the rail, and the room goes to its story. */
body[data-view="system"] .brand { display: none; }
.brand .mark { color: var(--ink-2); letter-spacing: 0.18em; }

#theme { margin: 10px -13px 0 0; }

.finder { position: relative; margin-top: 26px; width: min(340px, 70vw); }

#search {
  width: 100%;
  padding: 8px 0 9px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: 400 17px/1.2 var(--sans);
  outline: none;
  transition: border-color 0.35s var(--ease);
  -webkit-appearance: none;
}

#search::placeholder { color: var(--ink-4); }
#search:focus { border-bottom-color: rgba(160, 195, 250, 0.4); }
#search::-webkit-search-cancel-button { display: none; }

.results {
  margin-top: 6px;
  padding: 4px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--overlay-bg);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.result {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 8px 12px;
  border: 0;
  background: none;
  color: var(--ink-2);
  font: 400 15px/1.3 var(--sans);
  text-align: left;
  cursor: pointer;
}

.result em { font-style: normal; color: var(--ink-4); }
.result.on, .result:hover { background: rgba(124, 172, 255, 0.09); color: var(--ink); }
.result.on em, .result:hover em { color: var(--ink-3); }

/* ── the selected place ────────────────────────────────────────────────── */

.title {
  margin-top: 22px;
  width: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.7s var(--ease);
}

/* A fade only, never a slide: inside a scrolling column a box moved by a
   transform counts toward the overflow, so a slide-in briefly makes the
   column scrollable and flashes its bar. */
body[data-view="system"] .title { opacity: 1; transition-delay: 0.25s; }

.title h1 {
  margin: 0;
  font: 400 clamp(34px, 4.2vw, 50px)/1.02 var(--serif);
  letter-spacing: -0.005em;
  color: var(--ink);
}

.title p {
  margin: 8px 0 0;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.back {
  display: block;
  margin-bottom: 18px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-3);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease), color 0.25s var(--ease);
}

.back::before { content: '\2190\00a0\00a0'; }
.back:hover { color: var(--ink); }
body[data-view="system"] .back { opacity: 1; pointer-events: auto; }

/* ── summary ───────────────────────────────────────────────────────────── */

.summary {
  width: 100%;
  opacity: 0;
  transition: opacity 0.7s var(--ease);
}

body[data-view="system"] .summary {
  opacity: 1;
  transition-delay: 0.35s;
}

.k { display: block; color: var(--ink-4); margin-bottom: 8px; }

/* A dotted underline marks a label as having a definition on hover, without
   spending any space on the definition itself. */
.stat .k[title] {
  width: fit-content;
  border-bottom: 1px dotted var(--ink-4);
  cursor: help;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.stat b {
  display: block;
  font: 400 clamp(30px, 2.6vw, 38px)/1 var(--serif);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.stat em {
  display: block;
  margin-top: 7px;
  font: 500 13px/1 var(--sans);
  font-style: normal;
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
}

.stat.in b { color: var(--warm); }
.stat.out b { color: var(--cool); }
.stat.net.up b, .stat.net.up em { color: var(--warm); }
.stat.net.down b, .stat.net.down em { color: var(--cool); }
.stat.net em { opacity: 0.72; }

.ties {
  display: grid;
  /* minmax(0, ...) so a long name ("San Bernardino, CA") shortens to an
     ellipsis instead of widening its column and pushing the count off the
     rail's edge. */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.ties i { font-size: 13px; color: var(--ink-4); font-style: normal; }

.tie {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  margin-left: -6px;
  padding: 3px 6px;
  border: 0;
  border-radius: 5px;
  background: none;
  color: var(--ink-2);
  font: 400 14px/1.4 var(--sans);
  text-align: left;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.tie span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tie em { font-style: normal; color: var(--ink-4); flex: none; font-variant-numeric: tabular-nums; }
.tie:hover { background: rgba(124, 172, 255, 0.1); color: var(--ink); }

.fine {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-4);
}


/* ── the dark / light switch ───────────────────────────────────────────── */

.switch { display: flex; gap: 2px; }

.switch button {
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: none;
  color: var(--ink-4);
  cursor: pointer;
  transition: color 0.28s var(--ease), background 0.28s var(--ease),
              border-color 0.28s var(--ease);
}

.switch button:hover { color: var(--ink-2); }

.switch button.on {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(140, 172, 224, 0.08);
}


/* ── the two switches, top and centre ──────────────────────────────────── */

/* Every choice the app offers lives here: what to look at, and on the chart,
   what "grew" is measured in. Big enough to read as the controls they are,
   not as labels. */
.topbar {
  position: fixed;
  top: var(--edge);
  left: var(--bar-x, 50%);
  z-index: 6;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.views {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: var(--panel-bg);
}

.views button {
  min-width: 118px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: none;
  color: var(--ink-3);
  font: 600 13px/1 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.28s var(--ease), background 0.28s var(--ease),
              border-color 0.28s var(--ease);
}

.views button:hover { color: var(--ink); }

.views button.on {
  color: var(--ink);
  border-color: rgba(255, 184, 102, 0.5);
  background: rgba(255, 184, 102, 0.16);
}

:root[data-theme="light"] .views button.on {
  border-color: rgba(181, 101, 29, 0.45);
  background: rgba(181, 101, 29, 0.1);
}

.views button:focus-visible { outline: 2px solid var(--warm); outline-offset: 2px; }

/* Each screen's second row only exists on that screen: what the map is
   coloured by, and what "grew" means on the chart. Inside a county the colours
   are that county's own flows, so neither row applies. */
.views.sub { display: none; }
.views.sub button { min-width: 98px; padding: 8px 15px; font-size: 12px; letter-spacing: 0.1em; white-space: nowrap; }
body[data-view="chart"] #chart-mode,
body[data-view="map"] #map-mode,
body[data-view="system"] #map-mode { display: grid; }

/* ── the headline for the map and the chart ───────────────────────────── */

.lede {
  margin-top: 30px;
  width: 100%;
  transition: opacity 0.5s var(--ease);
}

body[data-view="system"] .lede { display: none; }

.lede h2 {
  margin: 0;
  font: 400 clamp(28px, 2.8vw, 38px)/1.08 var(--serif);
  letter-spacing: -0.005em;
  color: var(--ink);
  text-wrap: balance;
}

.lede p {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}

.lede b { font-weight: 600; }
.lede .do { margin-top: 12px; color: var(--ink-3); font-size: 14.5px; }

.w { color: var(--warm); }
.c { color: var(--cool); }

/* ── a county's answer ─────────────────────────────────────────────────── */

.answer {
  margin: 14px 0 0;
  width: 100%;
  font: 400 clamp(20px, 1.9vw, 25px)/1.32 var(--serif);
  color: var(--ink-2);
  text-wrap: pretty;
  opacity: 0;
  transition: opacity 0.7s var(--ease);
}

.answer b { font-weight: 400; color: var(--ink); }
.answer b.w { color: var(--warm); }
.answer b.c { color: var(--cool); }
body[data-view="system"] .answer { opacity: 1; transition-delay: 0.3s; }
body:not([data-view="system"]) .answer { display: none; }

/* ── where this county's movers came from and went, politically ───────── */

/* Deliberately no warm/cool here. The app's orange and blue already sit close
   enough to partisan red and blue without putting them on a margin. */
.exchange {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.exchange > .k { margin-bottom: 12px; }
.exchange > .k em { font-style: normal; color: var(--ink-3); margin-left: 6px; }

/* Here orange and blue mean Republican and Democratic, as on the map's vote
   view, so the bar and the lights agree. */
.split-row { margin-top: 10px; }
.split-row .k { margin-bottom: 7px; }

.split {
  display: flex;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
  background: var(--line);
}

.split i { display: block; height: 100%; }
.split .r { background: var(--warm); }
.split .d { background: var(--cool); }

.split-nums {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.split-nums b { font-weight: 600; }

.exchange-note {
  margin: 12px 0 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-3);
  text-wrap: pretty;
}

.exchange-note b { color: var(--ink-2); font-weight: 500; }

/* ── the key under the picture ─────────────────────────────────────────── */

/* The only legend: what the colours and sizes mean on whatever is on screen,
   and what a click does. Always visible, never behind a toggle. */
.key {
  position: fixed;
  left: var(--center-x, 50%);
  bottom: var(--edge);
  z-index: 3;
  margin: 0;
  width: max-content;
  /* No wider than the picture's own band, so a long key wraps to two lines
     instead of sliding under the rail. */
  max-width: min(900px, calc(100vw - 2 * var(--edge)),
                 calc(2 * (100vw - var(--center-x, 50vw) - 24px)));
  transform: translateX(-50%);
  padding: 9px 18px;
  border: 1px solid var(--panel-border);
  border-radius: 22px;
  background: var(--panel-bg);
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  text-wrap: balance;
  pointer-events: none;
}

.key .item { display: inline-block; white-space: nowrap; margin: 0 10px; }

.dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin: 0 7px 0 0;
  border-radius: 50%;
  vertical-align: 0;
}

.dot.w { background: var(--warm); box-shadow: 0 0 8px var(--warm); }
.dot.c { background: var(--cool); box-shadow: 0 0 8px var(--cool); }

body.zoomed .key { opacity: 0; }

/* The country is centred on the window, so its key and zoom reset are too. */
body[data-view="map"] :is(.key, .zoomreset) { left: var(--map-x, 50%); }
body[data-view="map"] .key { max-width: min(900px, calc(100vw - 2 * var(--edge))); }

/* Over the map, the rail's words and the notes in the corner sit on the
   country's west and north-east edges. A halo of the ground colour keeps
   them readable over the lights without putting them in a box. */
@media (min-width: 900px) {
  body[data-view="map"] :is(.lede, .foot) {
    text-shadow: 0 0 3px var(--ground), 0 0 8px var(--ground), 0 0 16px var(--ground);
  }
}

/* ── top right: sources, freshness, theme ─────────────────────────────── */

/* Out of the way of the picture and of the key under it: the corner the map
   leaves empty. As wide as the room right of the switches allows (they sit
   on --center-x and reach about 200px either side of it), so the two never
   touch however wide the rail makes the left inset. */
.foot {
  position: fixed;
  top: var(--edge);
  right: var(--edge);
  z-index: 4;
  width: clamp(180px, calc(100vw - var(--edge) - var(--bar-x, 50vw) - 214px), 290px);
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.credit {
  margin: 10px 0 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-4);
  text-wrap: pretty;
}

/* The shared freshness bar, dressed down for a dark room: the module's default
   is a lit box with a status-coloured edge, which reads as an alert here. The
   colour survives on the dots, where it still does its job. */
/* Selectors are by id: mountFreshnessBar assigns className outright, which
   wipes any class put on the element, so a class hook here never matches. */
#freshness {
  --df-border: transparent;
  --df-text: var(--ink-3);
  display: inline-flex;
  justify-content: flex-end;
  gap: 14px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  font-size: 12px;
}

#freshness .df-dot { width: 6px; height: 6px; box-shadow: none; opacity: 0.7; }
#freshness .df-item { gap: 6px; }
#freshness .df-age { opacity: 0.85; }
#freshness .df-note { margin-left: 0; width: 100%; text-align: right; opacity: 1; }

/* On the chart the corner is part of the plot, so the notes move down under
   the headline, where the rail is empty. */
body[data-view="chart"] .foot {
  top: auto;
  bottom: var(--edge);
  left: var(--edge);
  right: auto;
  width: min(372px, 76vw);
  text-align: left;
  align-items: flex-start;
}
body[data-view="chart"] #freshness { justify-content: flex-start; }
body[data-view="chart"] #freshness .df-note { text-align: left; }
body[data-view="chart"] #theme { margin: 10px 0 0 -13px; }

/* ── incidentals ───────────────────────────────────────────────────────── */

/* Only present once the reader has actually moved the view. */
.zoomreset {
  position: fixed;
  left: var(--center-x, 50%);
  bottom: var(--edge);
  z-index: 4;
  transform: translateX(-50%);
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--zoomreset-bg);
  color: var(--ink-3);
  font: 500 11.5px/1 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.zoomreset:hover { color: var(--ink); border-color: rgba(160, 195, 250, 0.34); }

.chip {
  position: fixed;
  z-index: 6;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--overlay-strong);
  backdrop-filter: blur(10px);
  color: var(--ink-2);
  font-size: 13.5px;
  white-space: nowrap;
  pointer-events: none;
}

.loading {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 22px;
  background: var(--ground);
  transition: opacity 0.65s var(--ease);
}

.loading.gone { opacity: 0; pointer-events: none; }

.loading-mark {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.loading-bar { width: 128px; height: 1px; background: rgba(140, 172, 224, 0.16); overflow: hidden; }
.loading-bar i { display: block; width: 40%; height: 100%; background: var(--warm); animation: sweep 1.15s var(--ease) infinite; }

@keyframes sweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(320%); }
}

/* ── narrow screens ────────────────────────────────────────────────────── */

/* The credit starts below the switches' second row, so it may reach further
   left than the freshness lines above it: three lines instead of five, and
   less of the map's north-east corner under text. */
@media (min-width: 1280px) {
  body:not([data-view="chart"]) .credit { width: min(300px, 30vw); }
}

/* Too narrow for the corner beside the switches: the notes drop below them. */
@media (min-width: 721px) and (max-width: 1279px) {
  .foot { top: calc(var(--edge) + 104px); width: min(260px, 28vw); }
  /* Here the corner is the country's north-east, so over the map only the
     data's age stays there; the sources wait on the chart. */
  body[data-view="map"] .credit { display: none; }
}

@media (max-width: 900px) {
  .credit { display: none; }
}

/* A phone: the picture takes the top half and everything the rail holds
   (search, headline, a county's story, the sources) becomes a sheet under it
   that scrolls on its own. Nothing floats over anything else. */
@media (max-width: 720px) {
  #sky { height: 54vh; }
  .topbar { top: 10px; left: 50%; gap: 6px; }
  .views button { min-width: 96px; padding: 10px 14px; font-size: 13px; letter-spacing: 0.1em; }
  .views.sub button { min-width: 0; padding: 7px 12px; font-size: 12px; letter-spacing: 0.08em; }
  .rail {
    top: 54vh; bottom: 0; left: 0;
    width: 100%;
    padding: 18px var(--edge) 32px;
    overflow-y: auto;
    pointer-events: auto;
    background: var(--ground);
    border-top: 1px solid var(--line);
  }
  /* The sheet sits under the picture, not over it, so all of it scrolls. */
  body:not([data-view="system"]) .rail { pointer-events: auto; }
  .rail-foot { margin-top: 0; }
  .brand { display: none; }
  .finder { margin-top: 0; width: 100%; }
  .lede { margin-top: 16px; }
  .lede h2 { font-size: 28px; }
  .lede p { font-size: 16px; margin-top: 10px; }
  .title { margin-top: 16px; }
  .title h1 { font-size: 36px; }
  .answer { font-size: 20px; margin-top: 10px; }
  .back { margin-bottom: 14px; }
  .stats { gap: 12px; }
  .stat b { font-size: 34px; }
  .key {
    bottom: calc(46vh + 8px);
    font-size: 13px;
    border-radius: 14px;
    padding: 6px 10px;
  }
  .key .item { margin: 0 5px; }
  .dot { width: 10px; height: 10px; margin-right: 6px; }
  .foot, body[data-view="chart"] .foot {
    position: static;
    width: 100%;
    margin-top: 22px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    text-align: left;
    align-items: flex-start;
  }
  #freshness, body[data-view="chart"] #freshness { justify-content: flex-start; flex-wrap: wrap; }
  #freshness .df-note { text-align: left; }
  .credit { display: block; }
  .foot #theme { margin: 10px 0 0 -13px; }
}

@media (prefers-reduced-motion: reduce) {
  .loading-bar i { animation: none; width: 100%; }
}
