/*
 * Warm off-white paper, a deep ink, orange for what is chosen or counted, blue for what can be
 * followed. Dense lists, small graphics, filters that are always in reach.
 */
:root {
  --paper: #f7f2e8;
  --raised: #fffcf6;
  --sunk: #efe7d8;
  --ink: #1d2230;
  --muted: #6e6658;
  --hair: #e2d8c6;
  --orange: #f5913e;
  --orange-soft: #fdebd8;
  /* Text on orange: the light orange needs ink, not white. */
  --on-orange: #1d2230;
  /* Orange as text (hovered links): darker, to read on paper. */
  --orange-text: #b65a12;
  --blue: #1f5bb8;
  --blue-soft: #dfe8f6;

  /* Kinds of story, in the two families plus neutrals. */
  --kind-n: #1f5bb8;
  --kind-k: #79a3e2;
  --kind-c: #f5913e;
  --kind-i: #f9c595;
  --kind-g: #8a4b1f;
  --kind-t: #13305e;
  --kind-f: #d6a03b;
  --kind-P: #6b4a3b;
  --kind-L: #b39983;
  --kind-x: #cbc1b0;

  --wide: 1120px;
  --measure: 68ch;
  --sans: 'Archivo', system-ui, sans-serif;
  /* Labels, box titles, table heads: a serif in true small caps (the face has no lower case). */
  --label: 'Alegreya SC', Georgia, serif;
  /* Fixed to the window, so the sticky filter bar's copy lines up with the page's. */
  --paper-grain: var(--paper) url('paper.png') repeat fixed;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  /* Light only, on purpose: form controls and scrollbars stay light in a dark system too. */
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  /* A slight paper grain (Groovepaper, see the README); boxes and tables sit on it flat. */
  background: var(--paper-grain);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.97rem;
  line-height: 1.45;
}

a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  color: var(--orange-text);
}
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.muted {
  color: var(--muted);
}
.nowrap {
  white-space: nowrap;
}
/* Codes keep their spacing: `I TL  100-AP` has two spaces on purpose. */
.code {
  font-family: var(--mono);
  font-size: 0.84em;
  white-space: pre;
  color: var(--muted);
}

/* Masthead */

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 14px 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 800;
  font-variation-settings: 'wdth' 118;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.brand::before {
  content: '';
  width: 24px;
  height: 24px;
  border-radius: 50%;
  /* The mark: blue over orange, a white circle at its heart. */
  /* The white circle is 41% of the mark's radius, as in public/favicon.svg. */
  background: radial-gradient(circle closest-side, #fff 0 41%, transparent 42%), linear-gradient(180deg, var(--blue) 50%, var(--orange) 50%);
}
.brand-high {
  font-variation-settings: 'wdth' 70;
  color: var(--blue);
}
.brand-ducks {
  color: var(--orange);
}
.brand:hover {
  color: var(--ink);
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-weight: 600;
  order: 2;
}
.nav a {
  color: var(--ink);
}
.nav a:hover {
  color: var(--orange-text);
}
.search {
  display: flex;
  order: 3;
  margin-left: auto;
  flex: 0 1 280px;
  min-width: 0;
}
.search input {
  flex: 1;
  min-width: 0;
  font: inherit;
  padding: 6px 12px;
  border: 1px solid var(--hair);
  border-right: 0;
  border-radius: 5px 0 0 5px;
  background: var(--raised);
  color: var(--ink);
}
.search input:focus-visible {
  outline: none;
  border-color: var(--blue);
}
.search button {
  font: inherit;
  font-weight: 600;
  padding: 6px 14px;
  border: 1px solid var(--blue);
  border-radius: 0 5px 5px 0;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
}
.search button:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--on-orange);
}
main {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 16px;
}

/* Section headings: a small title over a rule, with a way to see more */

.section {
  margin: 26px 0;
}
.section-head,
.panel > h2 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 6px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--hair);
}
.section-head h2,
.panel > h2 {
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.section-head a {
  font-size: 0.88rem;
  font-weight: 600;
}
.panel {
  margin: 30px 0;
  max-width: 52rem;
}
.panel.wide {
  max-width: none;
}
.panel > h2 {
  margin-bottom: 12px;
}
.panel > h2 .count {
  font-weight: 500;
}
.panel p {
  max-width: var(--measure);
}
.note {
  color: var(--muted);
  font-size: 0.9rem;
}
.empty {
  color: var(--muted);
  padding: 18px 0;
  max-width: var(--measure);
}
.columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0 32px;
}
.columns > .panel {
  margin-top: 20px;
}

/* Home */

.intro {
  margin: 18px 0 4px;
  color: var(--muted);
  max-width: var(--measure);
}
.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 0 44px;
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}
.pills a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 11px;
  border: 1px solid var(--hair);
  border-radius: 5px;
  background: var(--raised);
  color: var(--ink);
  font-size: 0.88rem;
}
.pills a:hover {
  border-color: var(--orange);
  color: var(--orange-text);
}

/* Browse pages */

.browse-head {
  padding: 0 0 6px;
}
.browse-head h1 {
  font-size: 1.7rem;
  line-height: 1.1;
  font-weight: 800;
  font-variation-settings: 'wdth' 112;
  letter-spacing: -0.02em;
}
.browser {
  margin: 10px 0 30px;
}
.filterbar {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--paper-grain);
  padding: 8px 0 6px;
  border-bottom: 1px solid var(--hair);
}
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
}
.filters-count {
  margin: 0;
  font-weight: 700;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}
/* The × on an active filter, and "Clear all" at the end of the row. */
.filter-x {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-right: 4px;
  border-radius: 3px;
  color: var(--orange-text);
  font-size: 0.95rem;
  line-height: 1;
}
.filter-x:hover {
  background: var(--orange);
  color: var(--on-orange);
}
.filters-clear {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0 4px;
}
.filters-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
.filter {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--hair);
  border-radius: 5px;
  background: var(--raised);
  font-size: 0.8rem;
  line-height: 1.3;
}
.filter > span {
  padding: 3px 0 3px 8px;
  color: var(--muted);
}
.filter select {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  background: transparent
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236e6658' stroke-width='1.5'/%3E%3C/svg%3E")
    no-repeat right 10px center / 9px 6px;
  border: 0;
  padding: 4px 26px 4px 6px;
  /* As wide as the chosen option, not the longest one, where the browser can. */
  field-sizing: content;
  max-width: 13rem;
  cursor: pointer;
}
.filter:hover {
  border-color: var(--blue);
}
.filter.on {
  border-color: var(--orange);
  background: var(--orange-soft);
}
.filter select:focus-visible {
  outline: none;
}
.filter:focus-within {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
}
.filters .apply {
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 5px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  font-size: 0.8rem;
}
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 4px 2px 10px;
  border-radius: 5px;
  background: var(--orange);
  color: var(--on-orange);
  font-weight: 600;
}
.chip-x {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: var(--on-orange);
  font-size: 1rem;
  line-height: 1;
}
.chip-x:hover {
  background: rgba(0, 0, 0, 0.12);
  color: var(--on-orange);
}
.chips .chips-clear {
  background: none;
  padding-left: 4px;
}
.paging {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  font-weight: 600;
}

/* List rows */

.rows {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rows > li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--hair);
}
.rows.stories > li {
  grid-template-columns: 12px minmax(0, 1fr) 92px;
}
.rows.people > li {
  grid-template-columns: minmax(0, 1fr) 140px 76px;
}
.rows > li:last-child {
  border-bottom: 0;
}
.rows .swatch {
  align-self: start;
  margin-top: 5px;
}
.row-title {
  color: var(--ink);
  font-weight: 650;
  font-size: 1.02rem;
}
.row-title:hover {
  color: var(--orange-text);
}
.row-year {
  margin-left: 7px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.row-sub {
  display: flex;
  flex-wrap: wrap;
  margin: 2px 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}
.row-sub > * + * {
  margin-left: 9px;
  padding-left: 9px;
  border-left: 1px solid var(--hair);
}
.row-stat {
  display: grid;
  justify-items: end;
  text-align: right;
  line-height: 1.2;
}
.row-n {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.row-unit {
  font-size: 0.75rem;
  color: var(--muted);
}
.meter {
  display: block;
  width: 100%;
  height: 3px;
  margin-top: 4px;
  background: var(--sunk);
  border-radius: 2px;
  overflow: hidden;
}
.meter span {
  display: block;
  height: 100%;
  background: var(--orange);
}

/* Small graphics */

.swatch,
.kind::before {
  content: '';
  display: inline-block;
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--kind-x);
}
.kind-n,
.kind-n::before {
  background-color: var(--kind-n);
}
.kind-k,
.kind-k::before {
  background-color: var(--kind-k);
}
.kind-c,
.kind-c::before {
  background-color: var(--kind-c);
}
.kind-i,
.kind-i::before {
  background-color: var(--kind-i);
}
.kind-g,
.kind-g::before {
  background-color: var(--kind-g);
}
.kind-t,
.kind-t::before {
  background-color: var(--kind-t);
}
.kind-f,
.kind-f::before {
  background-color: var(--kind-f);
}
.kind-P,
.kind-P::before {
  background-color: var(--kind-P);
}
.kind-L,
.kind-L::before {
  background-color: var(--kind-L);
}
/* Articles are printed text, not art: dots of ink on paper. */
.kind-a,
.kind-a::before {
  background: radial-gradient(var(--muted) 38%, transparent 42%) 0 0 / 4px 4px, var(--sunk);
}
.kind {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
}
span.kind {
  background: none !important;
}

.histogram {
  margin: 0;
}
.histogram svg {
  display: block;
  width: 100%;
  height: 64px;
}
.histogram .bar {
  fill: var(--blue);
}
.histogram .bar.on,
.histogram a:hover .bar {
  fill: var(--orange);
}
.histogram .hit {
  fill: transparent;
}
.histogram figcaption {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.spark {
  display: block;
  height: 18px;
}
.spark svg {
  display: block;
  width: 100%;
  height: 100%;
}
.spark path {
  stroke: var(--blue);
  stroke-width: 0.8;
  vector-effect: non-scaling-stroke;
  fill: none;
}
.mini-strip {
  display: flex;
  gap: 1px;
  height: 6px;
  max-width: 340px;
  margin-top: 7px;
  border-radius: 2px;
  overflow: hidden;
}
.mini-strip > span {
  flex-basis: 0;
  min-width: 1px;
}
.mini-strip.empty {
  border: 1px dashed var(--hair);
}

/* Detail pages */

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 0 44px;
  align-items: start;
}
.detail-side .panel {
  margin: 14px 0 26px;
}
.detail-side .ranked-note {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
details.panel > summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--muted);
  padding-bottom: 6px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--hair);
}
details.panel > summary::-webkit-details-marker {
  display: none;
}
details.panel > summary::after {
  content: ' +';
  color: var(--blue);
}
details.panel[open] > summary::after {
  content: ' −';
}
.detail-side .names {
  grid-template-columns: 1fr;
  gap: 0;
}
.detail-side .names dd {
  margin-bottom: 6px;
}

.head-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: end;
  gap: 16px 40px;
}
.head-graph {
  padding-bottom: 22px;
}
.page-head {
  padding: 0 0 18px;
  max-width: 52rem;
}
.kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin: 0 0 8px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}
.page-head h1 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.1;
  font-weight: 800;
  font-variation-settings: 'wdth' 110;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.lede {
  margin: 10px 0 0;
  font-size: 1.08rem;
  max-width: var(--measure);
}
.page-head .pager {
  margin-top: 12px;
}
.pager {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin: 0 0 6px;
  padding: 12px 0;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.facts:empty {
  display: none;
}
.facts dt {
  font-size: 0.8rem;
  color: var(--muted);
}
.facts dd {
  margin: 0;
  font-weight: 600;
}
.comment {
  max-width: var(--measure);
  margin: 16px 0;
}
.credits,
.names {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 22px;
  margin: 0;
}
.credits > div,
.names > div {
  display: contents;
}
.credits dt,
.names dt {
  color: var(--muted);
}
.credits dd,
.names dd {
  margin: 0;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.tags li {
  padding: 2px 10px;
  border-radius: 5px;
  background: var(--raised);
  border: 1px solid var(--hair);
}
.tags .lead {
  border-color: var(--blue);
  background: var(--blue-soft);
  font-weight: 650;
}
.plain {
  list-style: none;
  margin: 0;
  padding: 0;
}
.plain li + li {
  margin-top: 4px;
}
.prose p {
  margin: 0 0 0.9em;
}
.prose h2 {
  font-size: 1.15rem;
  margin: 1.6em 0 0.5em;
}
.prose-page .prose {
  max-width: var(--measure);
  padding-bottom: 20px;
}

.ranked {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ranked li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 12px;
  padding: 5px 0;
  border-bottom: 1px solid var(--hair);
}
.ranked li:last-child {
  border-bottom: 0;
}
.ranked-n {
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.ranked-note {
  grid-column: 1 / -1;
  font-size: 0.78rem;
}

/* Tables: a header band, an outline, alternate rows */

.scroll {
  overflow-x: auto;
}
.list {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.93rem;
  background: var(--raised);
  border: 1px solid var(--hair);
  border-radius: 4px;
  overflow: hidden;
}
.list th {
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--sunk);
  padding: 8px 12px;
  border-bottom: 1px solid var(--hair);
  white-space: nowrap;
}
.list td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--hair);
  vertical-align: top;
}
.list td + td,
.list th + th {
  border-left: 1px solid var(--hair);
}
.list tbody tr:nth-child(even) td {
  background: rgba(239, 231, 216, 0.38);
}
.list tbody tr:hover td {
  background: var(--blue-soft);
}
.list tr:last-child td {
  border-bottom: 0;
}
.list .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* An issue's contents */

.contents-table td.main {
  min-width: 14rem;
}
.contents-table .entry-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 650;
}
.contents-table .entry-title .swatch {
  flex: none;
  align-self: center;
}
.contents-table .code {
  display: block;
  margin: 2px 0 0 20px;
}
.contents-table .entry-note {
  display: block;
  margin: 3px 0 0 20px;
  font-size: 0.85rem;
  color: var(--muted);
}
.contents-table .cast {
  font-size: 0.86rem;
  min-width: 12rem;
}
.contents-table tr.nested td.main {
  padding-left: 32px;
}
.contents-table tr.nested .entry-title {
  font-weight: 500;
}
.contents-table tr:target td {
  background: var(--orange-soft);
}

/* The issue's contents strip */

.strip {
  display: flex;
  gap: 2px;
  height: 46px;
  margin: 4px 0 10px;
  border-radius: 4px;
  overflow: hidden;
}
.seg {
  flex-basis: 0;
  min-width: 2px;
}
.seg:hover,
.seg:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -2px;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  font-size: 0.86rem;
}
.legend li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
/* Publication: issues by year */

.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-bottom: 14px;
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
}
.year {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--hair);
}
.year h3 {
  font-size: 0.95rem;
  font-weight: 750;
  padding-top: 3px;
}
.issues {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.issues a {
  display: block;
  min-width: 2.5rem;
  padding: 2px 6px;
  border: 1px solid var(--hair);
  border-radius: 4px;
  background: var(--raised);
  color: var(--ink);
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-size: 0.86rem;
}
.issues a:hover {
  border-color: var(--orange);
  color: var(--orange-text);
}
.issues .unindexed a {
  background: none;
  border-style: dashed;
  color: var(--muted);
}

/* Countries */

.countries {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2 300px;
  column-gap: 40px;
}
.countries li {
  padding: 6px 0;
  break-inside: avoid;
  border-bottom: 1px solid var(--hair);
}
.countries a {
  font-weight: 600;
}
.countries .bar {
  display: block;
  height: 4px;
  width: var(--w);
  background: var(--blue);
  border-radius: 2px;
  margin: 4px 0 2px;
}
.countries .muted {
  font-size: 0.82rem;
}

/* Search results */

.hits {
  list-style: none;
  margin: 0;
  padding: 0;
}
.hits li {
  padding: 6px 0;
  border-bottom: 1px solid var(--hair);
}
.hits li:last-child {
  border-bottom: 0;
}
.hits a {
  font-weight: 600;
}
.more {
  margin: 10px 0 0;
  font-weight: 600;
}

/* Footer */

/* Footer: who made this and where everything is, then the credit the Inducks licence asks for. */
.footer {
  max-width: var(--wide);
  margin: 56px auto 0;
  padding: 28px 16px 36px;
  border-top: 1px solid var(--hair);
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px 88px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.footer .brand {
  font-size: 1.5rem;
}
.footer .brand::before {
  width: 30px;
  height: 30px;
}
.footer-credit {
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}
.hijink-logo {
  height: 1.35em;
  width: auto;
  vertical-align: -0.3em;
}
.hijink-link:hover .hijink-logo {
  opacity: 0.7;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 64px;
}
.footer-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 5px;
}
.footer-title {
  margin: 0 0 8px;
  font-family: var(--label);
  font-weight: 500;
  text-transform: lowercase;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
  color: var(--muted);
}
.footer-group a {
  color: var(--ink);
}
.footer-group a:hover {
  color: var(--orange-text);
}
.footer-note {
  color: var(--muted);
}
.footer-licence {
  margin: 28px 0 0;
  max-width: var(--measure);
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 860px) {
  .home-grid,
  .detail-grid,
  .head-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .head-graph {
    padding-bottom: 8px;
  }
  .search {
    flex: 1 1 100%;
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .rows.people > li {
    grid-template-columns: minmax(0, 1fr) 70px;
  }
  .rows.people .spark {
    display: none;
  }
  .rows.stories > li {
    grid-template-columns: 12px minmax(0, 1fr) 64px;
    gap: 4px 10px;
  }
  .meter {
    display: none;
  }
  .filterbar {
    position: static;
  }
  .year {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .credits,
  .names {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .credits dd,
  .names dd {
    margin-bottom: 8px;
  }
  /* Tables become stacked rows: the main cell on its own line, the rest wrapping under it. */
  .list.stack thead {
    display: none;
  }
  .list.stack td + td {
    border-left: 0;
  }
  .list.stack tbody tr:nth-child(even) td,
  .list.stack tbody tr:hover td {
    background: none;
  }
  .list.stack .hide-stacked,
  .list.stack td:empty {
    display: none;
  }
  /* A stacked cell names what it holds, since the header row is gone. */
  .list.stack td[data-label]::before {
    content: attr(data-label) ' ';
    color: var(--muted);
  }
  .list.stack td.cast {
    flex-basis: 100%;
  }
  .list.stack tr {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 12px;
    padding: 9px 12px;
    border-bottom: 1px solid var(--hair);
  }
  .list.stack tr:last-child {
    border-bottom: 0;
  }
  .list.stack td {
    padding: 0;
    border: 0;
    color: var(--muted);
    font-size: 0.9rem;
  }
  .list.stack td.main {
    order: -1;
    flex-basis: 100%;
    color: var(--ink);
    font-size: 0.97rem;
  }
  .list.stack td.wide-cell {
    flex-basis: 100%;
    color: var(--ink);
  }
}

/* Advanced search, top of the front page */

.advanced {
  margin: 0 0 6px;
  padding: 16px 18px 18px;
  background: var(--raised);
  border: 1px solid var(--hair);
  border-radius: 6px;
}
.adv-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px 12px;
}
.adv-row + .adv-row {
  margin-top: 12px;
}
.adv-words > label {
  flex: 1 1 200px;
}
.adv-words > label:first-child {
  flex-grow: 2;
}
.advanced label {
  display: grid;
  gap: 3px;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}
.advanced input,
.advanced select {
  height: 2.4rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: 6px;
  padding: 7px 10px;
  min-width: 0;
}
.advanced input:focus-visible,
.advanced select:focus-visible {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}
.advanced select {
  max-width: 12rem;
  field-sizing: content;
}
.adv-years {
  display: grid;
  gap: 3px;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}
.adv-range {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}
.adv-range input {
  width: 5.2rem;
}
.advanced .adv-submit {
  font: inherit;
  font-weight: 700;
  padding: 8px 18px;
  border: 0;
  border-radius: 6px;
  background: var(--orange);
  color: var(--on-orange);
  cursor: pointer;
  margin-left: auto;
}
.advanced .adv-submit:hover {
  background: var(--blue);
  color: #fff;
}
@media (max-width: 640px) {
  .adv-row > label,
  .adv-years,
  .advanced select {
    flex: 1 1 100%;
    max-width: none;
  }
  .adv-range input {
    flex: 1;
  }
  .advanced .adv-submit {
    width: 100%;
  }
}

.adv-words > .adv-multi {
  flex: 1 1 260px;
  display: grid;
  gap: 3px;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}
.adv-picked {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  min-height: 2.4rem;
  padding: 3px 6px;
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: 6px;
}
.adv-picked:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}
.adv-picked .chips {
  margin: 0;
}
.adv-picked .chips:empty {
  display: none;
}
.adv-picked .chip-x {
  border: 0;
  background: none;
  cursor: pointer;
  padding: 0;
}
.adv-picked input {
  flex: 1 1 8rem;
  border: 0;
  background: none;
  height: 2rem;
  padding: 0 4px;
}
.adv-picked input:focus-visible {
  box-shadow: none;
}
.filter-add input {
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: 0;
  padding: 3px 8px 3px 4px;
  width: 8.5rem;
}
.filter-add input:focus-visible {
  outline: none;
}

/* Flags, and the countries map */

.flag {
  display: inline-block;
  width: 20px;
  height: 15px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(29, 34, 48, 0.12);
  object-fit: cover;
  vertical-align: -2px;
}
.flag-big {
  width: 36px;
  height: 27px;
  border-radius: 3px;
  vertical-align: 0;
}
.country-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
h1.with-flag {
  display: flex;
  align-items: center;
  gap: 14px;
}
.tabs {
  display: flex;
  gap: 4px;
  margin: 4px 0 0;
  font-weight: 650;
}
.tabs > * {
  padding: 5px 14px;
  border-radius: 5px;
  border: 1px solid var(--hair);
  background: var(--raised);
  color: var(--ink);
}
.tabs strong {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.tabs a:hover {
  border-color: var(--orange);
  color: var(--orange-text);
}
.world {
  margin: 0;
}
.world svg {
  display: block;
  width: 100%;
  height: auto;
}
.world .land {
  fill: var(--sunk);
  stroke: var(--paper);
  stroke-width: 0.6;
}
.world .s1 { fill: #dbe5f4; }
.world .s2 { fill: #b3c9ea; }
.world .s3 { fill: #7fa3dc; }
.world .s4 { fill: #4a7ccb; }
.world .s5 { fill: #1f5bb8; }
.world .s6 { fill: #123a7a; }
.world a:hover .land,
.world a:focus-visible .land {
  fill: var(--orange);
}
.world a:focus-visible {
  outline: none;
}
.map-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}
.map-legend li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.map-legend .key {
  width: 18px;
  height: 10px;
  border-radius: 2px;
}
.map-legend .s1 { background: #dbe5f4; }
.map-legend .s2 { background: #b3c9ea; }
.map-legend .s3 { background: #7fa3dc; }
.map-legend .s4 { background: #4a7ccb; }
.map-legend .s5 { background: #1f5bb8; }
.map-legend .s6 { background: #123a7a; }

/* Custom dropdowns (public/app.js), over the native selects */

.dd-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.dd {
  position: relative;
  display: inline-block;
}
.dd-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 5px;
  padding: 3px 7px 3px 4px;
  cursor: pointer;
  white-space: nowrap;
  max-width: 14rem;
}
.dd-button > span:not(.dd-chev) {
  overflow: hidden;
  text-overflow: ellipsis;
}
.dd-button:focus-visible {
  outline: none;
}
.filter:has(.dd-button:focus-visible) {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
}
.dd-panel {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: -8px;
  min-width: 15rem;
  max-width: 22rem;
  padding: 6px;
  background: var(--raised);
  border: 1px solid var(--hair);
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(29, 34, 48, 0.14);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
}
.dd-search {
  width: 100%;
  font: inherit;
  padding: 6px 10px;
  margin-bottom: 6px;
  border: 1px solid var(--hair);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
}
.dd-search:focus-visible {
  outline: none;
  border-color: var(--blue);
}
.dd-sort {
  display: flex;
  gap: 4px;
  margin-bottom: 6px;
}
.dd-sort button {
  flex: 1;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 5px;
  border: 1px solid var(--hair);
  background: var(--paper);
  color: var(--muted);
  cursor: pointer;
}
.dd-sort button[aria-pressed='true'] {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.dd-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 18rem;
  overflow-y: auto;
}
.dd-list:focus-visible {
  outline: none;
}
.dd-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  border-radius: 6px;
  cursor: pointer;
}
.dd-list li.active {
  background: var(--blue-soft);
}
.dd-list li[aria-selected='true'] {
  font-weight: 700;
}
.dd-list li[aria-selected='true']::after {
  content: '';
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--orange);
}
.dd-label {
  flex: 1;
}
.dd-count {
  color: var(--muted);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}
.dd-list li[aria-selected='true'] .dd-count {
  margin-right: 4px;
}
.dd-list .dd-none {
  color: var(--muted);
  cursor: default;
}
.advanced .dd {
  display: block;
}
.advanced .dd-button {
  width: 100%;
  max-width: none;
  height: 2.4rem;
  padding: 0 12px 0 10px;
  border: 1px solid var(--hair);
  border-radius: 6px;
  background-color: var(--paper);
  font-weight: 500;
  font-size: 0.95rem;
}
.advanced .dd-button:focus-visible {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}
.advanced label:has(.dd) {
  min-width: 9rem;
}

.dd-chev {
  display: inline-grid;
  place-items: center;
  margin-left: auto;
  padding-left: 2px;
  color: var(--muted);
  transition: transform 0.15s ease;
}
.dd-button[aria-expanded='true'] .dd-chev {
  transform: rotate(180deg);
  color: var(--orange-text);
}
.dd-button:hover .dd-chev {
  color: var(--blue);
}
@media (prefers-reduced-motion: reduce) {
  .dd-chev {
    transition: none;
  }
}

/* Ranges: years and length, as a button and a popover with fields and a gauge */

.range {
  --thumb: 16px;
  position: relative;
  display: grid;
  gap: 3px;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}
.range.filter {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 400;
}
.range-prefix {
  color: var(--muted);
  font-weight: 400;
  margin-right: 4px;
}
.range.filter .range-button {
  padding-left: 8px;
}
.advanced .range-button {
  width: 100%;
  min-width: 11rem;
  height: 2.4rem;
  padding: 0 12px 0 10px;
  border: 1px solid var(--hair);
  border-radius: 6px;
  background: var(--paper);
  font-weight: 500;
  font-size: 0.95rem;
}
.advanced .range-button[aria-expanded='true'],
.advanced .range-button:focus-visible {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}
.range-panel {
  display: grid;
  gap: 10px;
  min-width: 17rem;
  color: var(--ink);
  font-weight: 500;
}
.range-js .range-panel {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: -8px;
  padding: 12px 14px 12px;
  background: var(--raised);
  border: 1px solid var(--hair);
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(29, 34, 48, 0.14);
  font-size: 0.9rem;
}
.range-js .range-panel[hidden] {
  display: none;
}
.range-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.range-fields label {
  display: grid;
  gap: 3px;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}
.range-fields input {
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  width: 100%;
  height: 2.2rem;
  padding: 0 9px;
  border: 1px solid var(--hair);
  border-radius: 6px;
  background: var(--paper);
  font-variant-numeric: tabular-nums;
}
.range-fields input:focus-visible {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}
.range-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.range-actions button {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 650;
  padding: 5px 14px;
  border-radius: 5px;
  cursor: pointer;
}
.range-clear {
  border: 1px solid var(--hair);
  background: var(--paper);
  color: var(--ink);
}
.range-clear:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.range-apply {
  border: 0;
  background: var(--orange);
  color: var(--on-orange);
}
.range-apply:hover {
  background: var(--blue);
  color: #fff;
}
.gauge-track {
  position: relative;
  height: var(--thumb);
  margin-top: 4px;
}
.gauge-track::before,
.gauge-fill {
  content: '';
  position: absolute;
  top: 50%;
  height: 6px;
  margin-top: -3px;
  border-radius: 3px;
}
.gauge-track::before {
  left: 0;
  right: 0;
  background: var(--sunk);
  box-shadow: inset 0 0 0 1px var(--hair);
}
.gauge-fill {
  left: calc(var(--thumb) / 2 + (100% - var(--thumb)) * var(--lo-n, 0));
  right: calc(var(--thumb) / 2 + (100% - var(--thumb)) * (1 - var(--hi-n, 1)));
  background: var(--orange);
}
.range input[type='range'] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}
.range input[type='range']:focus-visible {
  outline: none;
}
.range input[type='range']::-webkit-slider-runnable-track {
  background: none;
  height: var(--thumb);
}
.range input[type='range']::-moz-range-track {
  background: none;
}
.range input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  pointer-events: auto;
  width: var(--thumb);
  height: var(--thumb);
  border-radius: 50%;
  background: var(--raised);
  border: 2px solid var(--blue);
  box-shadow: 0 1px 3px rgba(29, 34, 48, 0.2);
  cursor: grab;
}
.range input[type='range']::-moz-range-thumb {
  pointer-events: auto;
  width: var(--thumb);
  height: var(--thumb);
  border-radius: 50%;
  background: var(--raised);
  border: 2px solid var(--blue);
  box-shadow: 0 1px 3px rgba(29, 34, 48, 0.2);
  cursor: grab;
}
.gauge-ticks {
  position: relative;
  height: 1.1em;
  margin: 0 calc(var(--thumb) / 2);
  font-size: 0.72rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.gauge-ticks span {
  position: absolute;
  transform: translateX(-50%);
}

/* Number fields without the browser's spinners: the gauge is the stepper. */
.range-fields input::-webkit-inner-spin-button,
.range-fields input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.range-fields input {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* Characters: a picture from topolino.it, a quote from Wikipedia */

.character-head {
  max-width: none;
}
/* The picture takes the header's free top-right corner, the histogram under it. */
.head-grid.with-picture {
  align-items: stretch;
}
.with-picture .head-graph {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding-top: 18px;
}
.character-picture {
  margin: 0;
  text-align: right;
}
.character-picture img {
  display: inline-block;
  max-width: 100%;
  max-height: 300px;
  width: auto;
  height: auto;
}
.character-picture figcaption {
  margin-top: 2px;
  font-size: 0.75rem;
  color: var(--muted);
}
.wiki {
  margin: 14px 0 0;
  padding: 2px 0 2px 14px;
  border-left: 3px solid var(--blue-soft);
  max-width: var(--measure);
}
.wiki p {
  margin: 0;
}
.wiki footer {
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--muted);
}
.rows.people > li.with-pic {
  grid-template-columns: 40px minmax(0, 1fr) 140px 76px;
}
.thumb {
  display: block;
  width: 40px;
  height: 40px;
}
.thumb:empty {
  border-radius: 4px;
  background: var(--sunk);
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
@media (max-width: 640px) {
  /* On a phone the picture leads, above the name; the histogram stays under the text. */
  .with-picture .head-graph {
    display: contents;
  }
  .character-picture {
    order: -1;
    text-align: center;
    padding-top: 18px;
  }
  .character-picture img {
    max-height: 200px;
  }
  .with-picture .page-head {
    padding-top: 6px;
  }
  .rows.people > li.with-pic {
    grid-template-columns: 40px minmax(0, 1fr) 70px;
  }
}

/* Listings as tables */

.list th a {
  color: var(--ink);
}
.list th a::after {
  content: ' ↕';
  color: var(--muted);
  font-weight: 400;
}
.list th a.sorted {
  color: var(--blue);
}
.list th[aria-sort='descending'] a::after {
  content: ' ↓';
  color: var(--blue);
}
.list th[aria-sort='ascending'] a::after {
  content: ' ↑';
  color: var(--blue);
}
.list th a:hover {
  color: var(--orange-text);
}
.cell-title {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 650;
}
.cell-title .swatch {
  align-self: center;
}
.cell-title a,
.cell-strong {
  color: var(--ink);
  font-weight: 650;
}
.cell-title a:hover,
.cell-strong:hover {
  color: var(--orange-text);
}
.cell-sub {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
}
.cell-title-text {
  color: var(--muted);
  font-size: 0.88rem;
}
.list td.stat .meter {
  width: 72px;
  margin-left: auto;
}
.list td.main a {
  font-weight: 650;
}
.strip-cell {
  min-width: 140px;
  vertical-align: middle !important;
}
.strip-cell .mini-strip {
  margin-top: 0;
}
.spark-cell {
  width: 140px;
  vertical-align: middle !important;
}
.thumb-cell {
  width: 56px;
  padding-top: 4px !important;
  padding-bottom: 4px !important;
}
.characters-table td {
  vertical-align: middle;
}
@media (max-width: 640px) {
  .list.stack td.stat .meter {
    display: none;
  }
  .list.stack .strip-cell {
    flex-basis: 100%;
  }
  .list.stack .thumb-cell {
    order: -2;
    width: auto;
    padding: 0 !important;
  }
}

/* Home: four boxes, something new each visit. Each has the same frame: a graphic of a fixed
   height, then the name, then a line of detail, so the names line up across the row. */

.discover {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 0;
}
.box {
  display: grid;
  grid-template-rows: 88px auto auto;
  align-content: start;
  gap: 4px;
  padding: 10px 12px 11px;
  background: var(--raised);
  border: 1px solid var(--hair);
  border-radius: 6px;
  color: var(--ink);
}
a.box:hover {
  border-color: var(--orange);
  color: var(--ink);
}
.box-art {
  display: flex;
  align-items: flex-end;
  min-height: 0;
}
.box-art-picture {
  justify-content: flex-start;
}
.box-art-picture img {
  max-width: 100%;
  max-height: 88px;
  object-fit: contain;
}
.box-art-flag .flag-big {
  width: 72px;
  height: 54px;
  border-radius: 3px;
}
.box-art-spark .spark {
  width: 100%;
  height: 48px;
}
.box-name {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 4px;
  color: var(--ink);
  font-weight: 750;
  font-size: 0.98rem;
  line-height: 1.2;
}
.box-name .swatch {
  align-self: center;
}
a.box-name:hover,
a.box:hover .box-name {
  color: var(--orange-text);
}
.box-meta {
  display: grid;
  gap: 1px;
  font-size: 0.8rem;
  color: var(--muted);
}
/* Every card: a name and exactly two lines under it, each on one line, so the cards match. */
.box-name,
.box-meta > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.box-name {
  display: block;
}
.box-name .swatch {
  margin-right: 7px;
  vertical-align: 1px;
}
@media (max-width: 1000px) {
  .discover {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .discover {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .discover {
    gap: 8px;
  }
  .box {
    grid-template-rows: 72px auto auto;
    padding: 9px 10px;
  }
  .box-art-picture img {
    max-height: 72px;
  }
  .box-art-flag .flag-big {
    width: 60px;
    height: 45px;
  }
}

/* Home: small sections about today, two by two */

.today {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
}
.section.small {
  margin: 22px 0 6px;
}
.mini-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}
.mini-rows li {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid var(--hair);
}
.mini-rows li:last-child {
  border-bottom: 0;
}
.mini-rows a {
  color: var(--ink);
  font-weight: 650;
}
.mini-rows a:hover {
  color: var(--orange-text);
}
.mini-rows .muted a {
  color: var(--blue);
  font-weight: 400;
}
.mini-year {
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.mini-note {
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 3px;
  background: var(--orange-soft);
  color: var(--orange-text);
  font-size: 0.76rem;
  font-weight: 650;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .today {
    grid-template-columns: 1fr;
  }
}

.box-country {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Home: every section a box, like the cards above it */

.home .section {
  margin: 14px 0 0;
  padding: 10px 14px 12px;
  background: var(--raised);
  border: 1px solid var(--hair);
  border-radius: 6px;
}
.home .section-head {
  margin-bottom: 4px;
}
.home .today {
  gap: 14px;
}
.home .today .section.small {
  margin: 0;
}
.home .today {
  margin-top: 14px;
}
.home-grid {
  gap: 0 14px;
}
.home .rows > li:last-child,
.home .mini-rows li:last-child {
  border-bottom: 0;
}
.home .intro {
  margin: 22px 0 0;
}

/*
 * Small caps for everything that names a field, a box or a column, not for the values in them.
 * Lower-cased, so every letter is a small cap: as tall as the text's x-height, no taller.
 */
.section-head h2,
.panel > h2,
details.panel > summary,
.advanced label > span,
.adv-multi > label,
.range-name,
.range-fields label > span,
.kicker,
.filter > span,
.range-prefix,
.list th {
  font-family: var(--label);
  font-weight: 500;
  font-variation-settings: normal;
  text-transform: lowercase;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
}

/* Kinds that are several kinds: comics are stories and strips, everything is all of them. */
.swatch.kind-comics {
  background: linear-gradient(135deg, var(--kind-n) 50%, var(--kind-k) 50%);
}
.swatch.kind-all {
  background: conic-gradient(var(--kind-n) 0 25%, var(--kind-c) 0 50%, var(--kind-g) 0 75%, var(--kind-L) 0);
}

/* Suggestions under a text field, in the dropdowns' panel. */
.suggest-host {
  position: relative;
}
.dd-panel.suggest {
  top: calc(100% + 4px);
  left: 0;
  min-width: max(100%, 15rem);
}
