html, body {
  margin: 0;
  height: 100%;
  font: 15px/1.4 system-ui, sans-serif;
  color: #1a1a1a;
}

/* The page is the screen: the site's header, then the map area, which never
   scrolls; long panel stacks scroll on their own. */
body {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
}

/* The site's header, as on the server-rendered pages (src/site.rs). */
header.top {
  flex: none;
  background: #fff;
  border-bottom: 1px solid #e4e6ea;
  font: 15px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
}

header.top nav {
  max-width: 920px;
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: center;
}

header.top a {
  color: #0b57d0;
  text-decoration: none;
}

header.top .brand {
  font-weight: 800;
  font-size: 16px;
  color: #1d2330;
  margin-right: auto;
}

header.top a[aria-current="page"] {
  color: #1d2330;
  font-weight: 600;
}

/* Below the header: the panel bar, then the map. */
#map-area {
  --panel-bar: 44px;
  position: relative;
  flex: 1;
  min-height: 0;
}

#map {
  position: absolute;
  inset: var(--panel-bar) 0 0 0;
  z-index: 1;
}

/* Tiles still loading show the basemap's land colour, not Leaflet's grey. */
#map.leaflet-container {
  background: #fafaf8;
}

/* Far-out zooms show the globe (js/src/globe.js) over the flat map. */
/* Hidden, it keeps rendering (visibility, not display: none) so it can load
   before it shows; switches crossfade. --globe-fade matches globe.js fadeMs. */
#globe {
  --globe-fade: 200ms;
  position: absolute;
  inset: var(--panel-bar) 0 0 0;
  z-index: 2;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  background: #0a1a33;
  transition: opacity var(--globe-fade) ease, visibility 0s linear var(--globe-fade);
}

#globe.active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity var(--globe-fade) ease, visibility 0s;
}

/* Page load: space shows at once, the globe fades in once drawn. */
#globe.covering {
  visibility: visible;
  opacity: 1;
  transition: none;
}

#globe.active .maplibregl-canvas {
  transition: opacity var(--globe-fade) ease;
}

#globe.covering:not(.active) .maplibregl-canvas {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  #globe {
    --globe-fade: 0ms;
  }
}

#map.under-globe {
  visibility: hidden;
}

#globe .maplibregl-ctrl-top-right {
  top: 56px;
}

.globe-popup .maplibregl-popup-content {
  font: 13px/1.4 system-ui, sans-serif;
  padding: 6px 10px;
}

.globe-label span {
  transform: none;
}

#explorer {
  position: absolute;
  z-index: 500;
  inset: 0;
  pointer-events: none;
}

#explorer .explorer-root {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* The bar switching the side panels on and off. */
#explorer .panel-bar {
  flex: none;
  box-sizing: border-box;
  height: var(--panel-bar);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  background: #f6f6f3;
  border-bottom: 1px solid #e4e6ea;
  pointer-events: auto;
}

#explorer .panel-switches {
  flex: 1;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

#explorer .panel-bar button {
  flex: none;
  padding: 4px 11px;
  border: 1px solid #c9ced6;
  border-radius: 999px;
  background: #fff;
  color: #3b4250;
  font-size: 13px;
  white-space: nowrap;
}

#explorer .panel-bar button[aria-pressed="true"] {
  border-color: #0b57d0;
  background: #e8f0fe;
  color: #0b57d0;
  font-weight: 600;
}

#explorer .panel-bar .panel-all {
  border-color: transparent;
  background: transparent;
  color: #5f6672;
  font-weight: 400;
}

#explorer .overlay {
  flex: 1;
  min-height: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
}

#explorer .stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  /* Fixed width so collapsing a panel doesn't reflow the others. */
  width: 388px;
  max-width: 100%;
  max-height: 100%;
  overflow-y: auto;
  scrollbar-width: thin;
  /* Room for the panels' shadows inside the scrolling box. */
  box-sizing: border-box;
  padding: 2px 16px 16px 2px;
  margin: -2px -16px -16px -2px;
}

#explorer .right-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
}

#explorer .panel {
  pointer-events: auto;
  background: #fff;
  padding: 12px 14px;
  border-radius: 10px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
  max-width: 360px;
}

#explorer h1 {
  font-size: 1.05rem;
  margin: 0 0 8px;
}

#explorer form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

#explorer label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.75rem;
  color: #444;
}

#explorer .wide {
  grid-column: 1 / -1;
}

#explorer input {
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font: inherit;
}

#explorer button {
  grid-column: 1 / -1;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: #0b57d0;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

#explorer .panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

#explorer .panel-header h1 {
  margin: 0;
}

#explorer .panel.collapsed {
  padding-top: 8px;
  padding-bottom: 8px;
}

#explorer .panel.collapsed .panel-header {
  margin-bottom: 0;
}

#explorer button.panel-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  grid-column: auto;
  width: 26px;
  height: 26px;
  padding: 0;
  background: transparent;
  color: #555;
}

#explorer button.panel-toggle:hover {
  background: #f0f0f0;
}

#explorer .chevron {
  width: 7px;
  height: 7px;
  margin-top: 4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-135deg);
}

#explorer .panel.collapsed .chevron {
  margin-top: -4px;
  transform: rotate(45deg);
}

/* Keep Leaflet's zoom control below the top-right buttons. */
.leaflet-top.leaflet-right {
  top: 56px;
}

body:has(#explorer .ui-hidden) .leaflet-control-zoom,
body:has(#explorer .ui-hidden) #globe .maplibregl-ctrl-group {
  display: none;
}

#explorer .fiche p {
  margin: 4px 0;
}

#explorer .fiche a {
  display: inline-block;
  margin-right: 10px;
  margin-top: 8px;
}

#explorer .close {
  float: right;
  background: transparent;
  color: #333;
  padding: 0;
  grid-column: auto;
}

#explorer .status {
  max-width: 360px;
}

#explorer .status .muted,
#explorer .tools .hint,
#explorer .stat .muted,
#explorer .bookmark-menu .muted {
  margin: 2px 0;
  color: #555;
  font-size: 0.75rem;
}

#explorer .top-buttons {
  display: flex;
  gap: 8px;
  pointer-events: auto;
}

#explorer .bookmarks {
  position: relative;
  pointer-events: auto;
}

#explorer button.icon-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 10px;
  background: #fff;
  color: #0b57d0;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
}

#explorer button.icon-button.active {
  background: #0b57d0;
  color: #fff;
}

#explorer .bookmark-icon {
  width: 15px;
  height: 20px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%);
}

#explorer .bookmark-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 17px;
  height: 17px;
  padding: 0 3px;
  border-radius: 9px;
  background: #b3261e;
  color: #fff;
  font-size: 0.68rem;
  line-height: 17px;
  box-sizing: border-box;
}

#explorer .bookmark-menu {
  position: absolute;
  top: 50px;
  right: 0;
  width: min(330px, calc(100vw - 24px));
  box-sizing: border-box;
}

#explorer .bookmark-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#explorer .bookmark-header h1 {
  margin: 0;
}

#explorer .bookmark-header button.close {
  float: none;
  flex: 0 0 auto;
}

#explorer .bookmark-menu .bookmark-form {
  display: flex;
  grid-template-columns: none;
  gap: 6px;
  margin-top: 12px;
}

#explorer .bookmark-form input {
  min-width: 0;
  flex: 1;
}

#explorer .bookmark-form button {
  grid-column: auto;
  flex: 0 0 auto;
}

#explorer .bookmark-empty {
  margin: 12px 0 2px;
}

#explorer .bookmark-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: min(45vh, 320px);
  margin-top: 10px;
  overflow-y: auto;
}

#explorer .bookmark-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px;
}

#explorer .bookmark-row button {
  grid-column: auto;
}

#explorer .bookmark-row .bookmark-load {
  overflow: hidden;
  background: #e8eef9;
  color: #0b57d0;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#explorer .bookmark-row .bookmark-delete {
  width: 34px;
  padding: 6px;
  background: #f3f3f3;
  color: #b3261e;
}

#explorer .stat .value {
  margin: 2px 0;
  font-size: 1.25rem;
  font-weight: 600;
}

#explorer .tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

#explorer .tools button {
  grid-column: auto;
  flex: 1;
  padding: 6px 8px;
  background: #e8eef9;
  color: #0b57d0;
}

#explorer .tools button.active {
  background: #0b57d0;
  color: #fff;
}

#explorer .tools button.ghost {
  background: #f3f3f3;
  color: #333;
}

#explorer .tools button:disabled {
  opacity: 0.45;
  cursor: default;
}

#explorer .tools .hint {
  flex-basis: 100%;
}

#explorer .tools .button-link {
  flex: 1;
  padding: 6px 8px;
  border-radius: 6px;
  background: #0b57d0;
  color: #fff;
  font-size: 0.85rem;
  text-align: center;
  text-decoration: none;
}

#explorer .tools .button-link.ghost {
  background: #e8eef9;
  color: #0b57d0;
}

.leaflet-container.is-drawing {
  cursor: crosshair;
}

.leaflet-popup-content .shape-remove {
  margin-top: 8px;
  padding: 6px 10px;
  border: 0;
  border-radius: 6px;
  background: #b3261e;
  color: #fff;
  cursor: pointer;
  font: inherit;
}

@media (max-width: 640px) {
  #explorer .overlay {
    position: relative;
    display: block;
  }

  #explorer .stack {
    width: auto;
    padding-top: 52px;
  }

  #explorer .stack > .panel {
    width: 100%;
    box-sizing: border-box;
  }

  #explorer .right-stack {
    position: absolute;
    top: 12px;
    right: 12px;
  }

  #explorer .fiche {
    width: calc(100vw - 24px);
  }
}

#explorer .zones {
  max-width: 360px;
}

#explorer .zone-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: min(40vh, 300px);
  overflow-y: auto;
}

#explorer .zone-row {
  display: grid;
  grid-template-columns: 14px auto 1fr;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
}

#explorer .zone-swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  opacity: 0.85;
}

#explorer .zone-median {
  font-weight: 600;
  white-space: nowrap;
}

#explorer .zone-row .muted {
  color: #555;
  font-size: 0.72rem;
  text-align: right;
}

.zone-label {
  pointer-events: none;
}

.zone-label span {
  display: inline-block;
  transform: translate(-50%, -50%);
  padding: 2px 7px;
  border: 2px solid #999;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: #1a1a1a;
  font: 600 12px/1.3 system-ui, sans-serif;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

#explorer .area-scale {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  white-space: nowrap;
}

#explorer .area-gradient {
  flex: 1;
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(to right, #1a9850, #66bd63, #a6d96a, #fee08b, #fdae61, #f46d43, #d73027);
}

#explorer .area-metrics {
  margin-top: 8px;
}

#explorer .trend-headline {
  margin: 0 0 6px;
  font-size: 0.85rem;
}

#explorer .trend-headline .up {
  color: #b3261e;
  font-weight: 600;
}

#explorer .trend-headline .down {
  color: #1a7f37;
  font-weight: 600;
}

#explorer .trend-scale {
  font-size: 0.7rem;
}

#explorer .trend-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 90px;
  padding-bottom: 14px;
  position: relative;
}

#explorer .trend-bar {
  position: relative;
  flex: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
}

#explorer .trend-fill {
  width: 100%;
  min-height: 2px;
  border-radius: 3px 3px 0 0;
  background: #0b57d0;
}

#explorer .trend-bar.partial .trend-fill {
  background: repeating-linear-gradient(45deg, #0b57d0 0 4px, #8fb3ee 4px 8px);
}

/* The S&P 500 over the bars (same base as the first year). */
#explorer .trend-benchmark {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 14px;
  left: 0;
  width: 100%;
  height: calc(100% - 14px);
  overflow: visible;
  pointer-events: none;
}

#explorer .trend-benchmark polyline {
  stroke: #f59e0b;
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

#explorer .trend-headline.benchmark {
  margin-top: -2px;
}

#explorer .benchmark-swatch {
  display: inline-block;
  width: 14px;
  height: 3px;
  margin: 0 6px 3px 0;
  border-radius: 2px;
  background: #f59e0b;
  vertical-align: middle;
}

#explorer .benchmark-change {
  font-weight: 600;
}

#explorer .trend-year {
  position: absolute;
  bottom: -14px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.62rem;
  color: #555;
}

.sparkline {
  display: block;
  margin-top: 4px;
}

/* Active listings: a chip with the gap to the market. */
.listing-pin span.rough {
  border-style: dashed;
  opacity: 0.8;
}

.listing-pin span {
  display: inline-block;
  transform: translate(-50%, -100%);
  padding: 1px 6px;
  border: 2px solid #fff;
  border-radius: 9px;
  color: #fff;
  font: 700 11px/1.4 system-ui, sans-serif;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.gap-great { background: #0f7a32; }
.gap-good { background: #4caf50; }
.gap-fair { background: #607d8b; }
.gap-high { background: #f08c00; }
.gap-expensive { background: #c62828; }
.gap-unknown { background: #8e6fb5; }

.leaflet-popup-content .gap {
  padding: 0 5px;
  border-radius: 6px;
  color: #fff;
  font-weight: 700;
}

#explorer .listing-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 6px;
  align-items: center;
  width: 100%;
  padding: 4px 6px;
  background: #f3f6fb;
  color: #1a1a1a;
  text-align: left;
  font-size: 0.78rem;
}

#explorer .listing-row .gap {
  padding: 0 5px;
  border-radius: 6px;
  color: #fff;
  font-weight: 700;
}

#explorer .listing-row .listing-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#explorer .listing-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
}

/* Viewed Leboncoin listings (js/src/viewed.js): the listing chip with
   Leboncoin's orange ring; placed at their town's centre, dashed. */
.viewed-pin span {
  border-color: #ff6e14;
}

#explorer .viewed-list {
  max-height: 260px;
  overflow-y: auto;
}

#explorer .account-line {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaflet-popup-content button.link {
  padding: 0;
  border: 0;
  background: none;
  color: #0b57d0;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* Points of interest (js/src/pois.js): a white pictogram (frontend/icons)
   on a coloured badge; attractors are round, detractors are squares with a
   red ring. */
.poi-pin {
  background: none;
  border: 0;
}

.poi-icon {
  --poi-color: #475569;
  display: inline-block;
  box-sizing: border-box;
  width: 28px;
  height: 28px;
  flex: none;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--poi-color) var(--poi-glyph) center / 72% no-repeat;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.35);
}

.detractor .poi-icon,
.poi-icon.poi-nightclub,
.poi-icon.poi-noisy_bar,
.poi-icon.poi-bar {
  border-radius: 7px;
  box-shadow: 0 0 0 2px #dc2626, 0 1px 4px rgba(15, 23, 42, 0.35);
}

.poi-pin:hover .poi-icon {
  transform: scale(1.15);
}

.poi-school_maternelle { --poi-color: #0f766e; --poi-glyph: url("icons/school-maternelle.svg"); }
.poi-school_primaire { --poi-color: #2563eb; --poi-glyph: url("icons/school-primaire.svg"); }
.poi-school_secondaire { --poi-color: #4338ca; --poi-glyph: url("icons/school-secondaire.svg"); }
.poi-bakery { --poi-color: #ca8a04; --poi-glyph: url("icons/bakery.svg"); }
.poi-nightclub { --poi-color: #a21caf; --poi-glyph: url("icons/nightclub.svg"); }
.poi-noisy_bar { --poi-color: #be123c; --poi-glyph: url("icons/noisy-bar.svg"); }
.poi-bar { --poi-color: #9f1239; --poi-glyph: url("icons/bar.svg"); }

.poi-effect {
  font-size: 12px;
  font-weight: 600;
}

.poi-effect.attractor {
  color: #15803d;
}

.poi-effect.detractor {
  color: #b91c1c;
}

.poi-group {
  margin: 6px 0 2px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

#explorer button.poi-toggle {
  display: flex;
  color: inherit;
  font-weight: 400;
  min-height: 0;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 3px 0;
  padding: 4px 6px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

#explorer button.poi-toggle:hover {
  background: #f1f5f9;
}

.poi-toggle .poi-icon {
  width: 22px;
  height: 22px;
}

.poi-toggle.off .poi-icon {
  filter: grayscale(1);
  opacity: 0.4;
}

.poi-toggle.off .poi-label {
  color: #94a3b8;
  text-decoration: line-through;
}

.poi-label {
  flex: 1;
}

.poi-count {
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

.muted.small {
  font-size: 12px;
  line-height: 1.35;
}

/* Points drawn by WebGL (js/src/pointlayer.js) have no DOM node: the map
   shows a pointer while one is under the mouse. */
.leaflet-container.point-hover {
  cursor: pointer;
}

/* The rings of the sale under the mouse and of the selected sale
   (js/src/selection.js): the halo pops in, a ring pulses out of it. */
.sale-selected,
.sale-pulse,
.sale-hover {
  transform-box: fill-box;
  transform-origin: center;
}

.sale-hover {
  animation: sale-hover-in 120ms ease-out;
}

.sale-selected {
  animation: sale-select-in 220ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sale-pulse {
  animation: sale-pulse 1.6s ease-out infinite;
}

@keyframes sale-hover-in {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
}

@keyframes sale-select-in {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
}

@keyframes sale-pulse {
  from {
    opacity: 0.7;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(2.2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sale-hover,
  .sale-selected {
    animation: none;
  }

  .sale-pulse {
    display: none;
  }
}

/* Recorded crime (js/src/crime.js). */
#explorer select.crime-indicator {
  width: 100%;
  margin: 6px 0;
  font: inherit;
}

.crime-scale {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 4px 0;
  font-size: 12px;
}

.crime-class {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.crime-swatch,
.crime-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 2px;
  border: 1px solid rgba(15, 23, 42, 0.3);
  background-color: #fff;
}

.crime-dot {
  width: 12px;
  height: 12px;
  margin-right: 4px;
  border-radius: 50%;
  vertical-align: -2px;
}

.crime-popup table {
  margin-top: 6px;
  border-collapse: collapse;
  font-size: 12px;
}

.crime-popup th,
.crime-popup td {
  padding: 2px 6px;
  text-align: right;
  white-space: nowrap;
}

.crime-popup tbody th {
  text-align: left;
  font-weight: normal;
  white-space: normal;
  max-width: 200px;
}

.crime-popup tbody th small {
  display: block;
  color: #64748b;
}

.crime-popup tr.chosen {
  background: #fef9c3;
  font-weight: 600;
}

.crime-popup tr.crime-trend td {
  text-align: left;
  color: #b45309;
  font-size: 11px;
}

.crime-spark {
  vertical-align: middle;
}

.crime-popup p.muted {
  max-width: 460px;
  margin: 6px 0 0;
  font-size: 11px;
  color: #64748b;
}

/* The sector layer's popup (js/src/sector.js): rents, DPE, risks. */
.sector-popup h4 {
  margin: 10px 0 2px;
  font-size: 13px;
}

.sector-popup h4 small {
  font-weight: normal;
  color: #64748b;
}

.sector-popup ul {
  margin: 4px 0;
  padding-left: 18px;
  font-size: 12px;
}

.sector-popup li small {
  display: block;
  color: #64748b;
}

.sector-popup p {
  margin: 4px 0;
  font-size: 12px;
}

.dpe-bar {
  display: flex;
  height: 16px;
  margin: 4px 0;
  border-radius: 3px;
  overflow: hidden;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  color: #1f2937;
}

/* A point under the mouse wins over the crime area around it. */
.point-hover .crime-tooltip {
  display: none;
}

/* Sales capped to the newest ones (js/src/map.js matchingTotal). */
#explorer p.capped {
  margin: 4px 0;
  padding: 6px 8px;
  border-radius: 6px;
  background: #fef3c7;
  color: #92400e;
  font-size: 12px;
}


/* Small screens: the header's links scroll sideways, on one line. */
@media (max-width: 640px) {
  header.top nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }
}
