:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #101828;
  --muted: #667085;
  --line: #e4e7ec;
  --accent: #2f6fed;
  --card: #f9fafb;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101828;
    --fg: #f5f5f5;
    --muted: #98a2b3;
    --line: #344054;
    --accent: #7aa2f7;
    --card: #1a2333;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0 auto;
  padding: 16px;
  max-width: 880px;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

header h1 {
  font-size: 22px;
  margin: 0 0 4px;
}

h1 {
  font-size: 20px;
  margin: 0 0 4px;
}

.lede {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}

h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 8px 0 8px;
}

input {
  width: 100%;
  margin: 4px 0 10px;
  padding: 12px;
  font-size: 16px;
  color: inherit;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.count {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.chip {
  padding: 6px 10px;
  font-size: 13px;
  color: var(--fg);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.chip-on {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.views {
  margin: -8px 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.note {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.back {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
}

iframe {
  width: 100%;
  height: calc(100vh - 120px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

/* Hover (or tap) the small art on the right: it grows out of the card into a
   full-screen preview, then shrinks back to where it came from. */
.report .art {
  cursor: zoom-in;
  will-change: transform;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease;
}

.report:hover .art {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 10px 26px rgba(8, 12, 20, 0.22);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: radial-gradient(120% 120% at 50% 38%, rgba(12, 17, 28, 0.55) 0%, rgba(5, 8, 14, 0.92) 100%);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
  backdrop-filter: blur(10px) saturate(1.05);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s ease;
}

.lightbox.open {
  opacity: 1;
}

/* `hidden` must beat the display:flex above, or the overlay never hides. */
.lightbox[hidden] {
  display: none;
}

.lightbox img {
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08);
  pointer-events: auto;
  cursor: zoom-out;
  will-change: transform;
}

.lightbox-caption {
  margin: 16px 0 0;
  max-width: 82vw;
  color: #e9eef8;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease 0.14s, transform 0.36s cubic-bezier(0.16, 1, 0.3, 1) 0.14s;
}

.lightbox.open .lightbox-caption {
  opacity: 0.88;
  transform: translateY(0);
}

.lightbox-prompt {
  margin: 6px 0 0;
  max-width: 76vw;
  color: #93a4bd;
  font-size: 12px;
  font-style: italic;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease 0.24s, transform 0.36s cubic-bezier(0.16, 1, 0.3, 1) 0.24s;
}

.lightbox.open .lightbox-prompt {
  opacity: 0.9;
  transform: translateY(0);
}

/* Ken Burns: a still picture that keeps thinking while you look at it. */
.lightbox img.drift {
  animation: drift 7s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes drift {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.045);
  }
}

@media (prefers-reduced-motion: reduce) {
  .report .art,
  .lightbox,
  .lightbox-caption,
  .lightbox-prompt {
    transition: none;
  }

  .lightbox img.drift {
    animation: none;
  }
}

/* ---- Trend board ------------------------------------------------------ */

.trending {
  margin-top: 28px;
}

.trend-hero {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0 0 12px;
}

.trend-hero h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.trend-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 10px;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--fg);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px;
  cursor: pointer;
}

.chip[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--accent);
}

.trend-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.trend {
  border: 1px solid var(--line);
  border-left-width: 3px;
  border-radius: 10px;
  background: var(--card);
  padding: 10px 12px;
}

.trend[data-cat="tech"] { border-left-color: #38bdf8; }
.trend[data-cat="health"] { border-left-color: #4ade80; }
.trend[data-cat="beauty"] { border-left-color: #f472b6; }
.trend[data-cat="lifestyle"] { border-left-color: #c084fc; }
.trend[data-cat="politics"] { border-left-color: #f87171; }
.trend[data-cat="sports"] { border-left-color: #fb923c; }
.trend[data-cat="entertainment"] { border-left-color: #facc15; }
.trend[data-cat="science"] { border-left-color: #2dd4bf; }

.trend-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.trend-rank {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}

.trend-name {
  font-weight: 600;
  font-size: 15px;
  margin: 0;
  flex: 1;
}

.trend-tier {
  font-size: 12px;
  white-space: nowrap;
  color: var(--muted);
}

.trend-meta {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.trend-sources {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
}

.trend-sources a,
.trend-sources span {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
}

.trend-empty {
  color: var(--muted);
  font-size: 14px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 14px;
}

/* ---- Redesigned hub: one lead report, short rows ------------------------ */

.lead {
  display: grid;
  /* Without an explicit track the implicit one sizes to the image's intrinsic
     width, which pushed the whole page wider than a phone screen. */
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  margin-bottom: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.lead:hover,
.lead:focus-visible {
  border-color: var(--muted);
  transform: translateY(-2px);
}

.lead-art {
  order: -1;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
  background: var(--bg);
  cursor: zoom-in;
}

.lead-body h3 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.3;
}

.lead-body p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
}

.lead-body time,
.row time {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

/* Desktop: text is the wide column, the picture is the narrow one. The art is
   first in the DOM (order -1) so the phone shows it above the title; here it is
   pushed back to the second column, otherwise 1fr gives the image the whole
   page and the text a 200px strip. */
@media (min-width: 560px) {
  .lead.has-art {
    grid-template-columns: minmax(0, 1fr) 168px;
    align-items: center;
  }

  .lead-body {
    order: 1;
  }

  .lead-art {
    order: 2;
    aspect-ratio: 1;
    max-height: 168px;
  }
}

.row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: baseline;
  padding: 11px 12px;
  margin-bottom: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.row:hover,
.row:focus-visible {
  border-color: var(--muted);
}

.row-ord {
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.row-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.views {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

/* Filter and tags are tools, not content: collapsed until asked for. */
.tools {
  margin-top: 12px;
}

.tools summary,
.trending summary {
  cursor: pointer;
  padding: 8px 0;
  color: var(--muted);
  font-size: 13px;
}

.tools summary:hover,
.trending summary:hover {
  color: var(--fg);
}

.trending {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.trending summary {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.trending .count {
  color: var(--fg);
}

.trending-date {
  margin-left: auto;
  font-size: 12px;
}

/* ---- Report cards: number picture left, machine picture right ----------- */

.card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 96px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  margin-bottom: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:not(.has-art) {
  grid-template-columns: 56px minmax(0, 1fr);
}

.card:hover,
.card:focus-visible {
  border-color: var(--muted);
  transform: translateY(-2px);
}

.card .num,
.card .art {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  background: var(--bg);
}

/* The right-hand picture answers a tap: it zooms and tilts, and opens the
   lightbox. Kept to a transform so it composites on a phone. */
.card .art {
  cursor: zoom-in;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.card:hover .art,
.card:focus-visible .art {
  transform: scale(1.07) rotate(-1.2deg);
  filter: saturate(1.1);
}

.card .ord {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  background: var(--bg);
  color: var(--muted);
  font-size: 22px;
  font-weight: 700;
}

.card-body {
  min-width: 0;
}

.card-body h3 {
  margin: 0 0 4px;
  font-size: 15.5px;
  line-height: 1.35;
}

.card-body p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.4;
}

.card-body time {
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 559px) {
  /* Two pictures and text cannot share 390px: the title was wrapping to five
     lines. On a phone the number stays left and the machine picture becomes a
     full-width banner under the text, which is also a bigger tap target. */
  .card,
  .card:not(.has-art) {
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: start;
  }

  .card .art {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
    margin-top: 2px;
  }
}

@media (min-width: 560px) {
  .card {
    grid-template-columns: 72px minmax(0, 1fr) 132px;
  }

  .card:not(.has-art) {
    grid-template-columns: 72px minmax(0, 1fr);
  }
}

/* ---- Pager -------------------------------------------------------------- */

.pager {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  margin: 14px 0 4px;
}

.pager button {
  min-width: 36px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--fg);
  font-size: 13px;
  cursor: pointer;
}

.pager button[aria-current="page"] {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.pager button[disabled] {
  opacity: 0.4;
  cursor: default;
}

/* ---- Equal Earth map with trend pins ------------------------------------ */

.map {
  position: relative;
  margin: 10px 0 4px;
  padding: 6px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.map-svg {
  display: block;
  width: 100%;
  height: auto;
  color: var(--line);
}

.pin {
  position: absolute;
  transform: translate(-50%, -50%);
  display: block;
  width: 22px;
  height: 22px;
  text-decoration: none;
  animation: pin-in 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--i, 0) * 55ms);
}

.pin-dot {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: #94a3b8;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--bg) 65%, transparent);
}

.pin-warm .pin-dot {
  background: #38bdf8;
}

.pin-hot .pin-dot {
  background: #f97316;
  animation: pin-pulse 2.4s ease-in-out infinite;
}

.pin-down .pin-dot {
  background: #64748b;
}

.pin-card {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  width: max-content;
  max-width: 180px;
  padding: 7px 9px;
  border-radius: 9px;
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(8, 12, 20, 0.18);
  font-size: 12px;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 3;
}

.pin-card strong {
  display: block;
  font-size: 12.5px;
}

.pin-card em {
  display: block;
  color: var(--accent);
  font-style: normal;
  font-weight: 600;
}

.pin-card small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.pin:hover .pin-card,
.pin:focus-visible .pin-card {
  opacity: 1;
}

@keyframes pin-in {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.4);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes pin-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.5);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(249, 115, 22, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pin,
  .pin-hot .pin-dot,
  .card .art {
    animation: none;
    transition: none;
  }
}

.trend-more {
  margin-top: 10px;
}

.trend-more summary {
  cursor: pointer;
  padding: 8px 0;
  color: var(--muted);
  font-size: 13px;
}

/* ---- Guided tour: one pin at a time, a line drawn to the next ------------ */

.map-lines {
  position: absolute;
  inset: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  pointer-events: none;
  overflow: visible;
}

.map-line {
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  opacity: 0;
  transition: stroke-dashoffset 1.1s linear, opacity 0.35s ease;
}

.map-line.is-drawn {
  stroke-dashoffset: 0;
  opacity: 0.85;
}

/* The pin being talked about: bigger dot, visible card. */
.pin.is-active {
  z-index: 4;
}

.pin.is-active .pin-dot {
  transform: scale(1.7);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pin.is-active .pin-card {
  opacity: 1;
  pointer-events: auto;
}

.pin.below .pin-card {
  bottom: auto;
  top: 26px;
}

.pin-card .pin-time {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

/* Where the sun is overhead right now. Position is set by app.js from UTC. */
.map-sun {
  position: absolute;
  width: 120px;
  height: 120px;
  margin: -60px 0 0 -60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.34), rgba(250, 204, 21, 0) 68%);
  pointer-events: none;
  transition: left 1.2s linear, top 1.2s linear;
}

.local-time {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .map-line {
    transition: none;
  }

  .map-sun {
    transition: none;
  }
}

/* ---- Trending header: expands the list, never hides the map ------------- */

.trend-more > summary {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 6px;
  padding: 10px 0;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
}

.trend-more > summary::-webkit-details-marker {
  display: none;
}

.trend-more > summary::before {
  content: "▸";
  font-size: 11px;
}

.trend-more[open] > summary::before {
  content: "▾";
}

.trend-more > summary .count {
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
}

.trend-more > summary .trending-date {
  margin-left: auto;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
}

/* The list animates open rather than snapping, which makes the expansion read
   as the same element growing instead of a new panel appearing. */
.trend-more[open] .trend-list {
  animation: list-in 0.28s ease both;
}

@keyframes list-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .trend-more[open] .trend-list {
    animation: none;
  }
}

/* ---- The fun button ----------------------------------------------------- */

.fun {
  margin: 2px 0 12px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--fg);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.fun:hover:not([disabled]),
.fun:focus-visible:not([disabled]) {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.fun[disabled] {
  opacity: 0.55;
  cursor: default;
}

/* ---- Trending section: header above the map ----------------------------- */

.trending-all > summary {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 6px;
  padding: 10px 0;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
}

.trending-all > summary::-webkit-details-marker {
  display: none;
}

.trending-all > summary::before {
  content: "▾";
  font-size: 11px;
}

.trending-all:not([open]) > summary::before {
  content: "▸";
}

.trending-all > summary .count,
.trending-all > summary .trending-date {
  text-transform: none;
  letter-spacing: 0;
}

.trending-all > summary .trending-date {
  margin-left: auto;
  font-size: 12px;
}

.trending-all[open] .map,
.trending-all[open] .trend-list {
  animation: list-in 0.3s ease both;
}

/* ---- Trending header row: label, window, date, fun button --------------- */

.trend-head-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0 8px;
}

.trend-head-row .trend-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.trend-head-row .count {
  font-size: 13px;
  color: var(--muted);
}

.trend-head-row .trending-date {
  font-size: 12px;
  color: var(--muted);
  margin-left: auto;
}

.trend-head-row .fun {
  margin: 0;
  padding: 6px 12px;
  font-size: 12px;
  white-space: nowrap;
}

@media (max-width: 559px) {
  /* On a phone the row wraps: the button gets its own line under the date. */
  .trend-head-row .trending-date {
    margin-left: 0;
  }

  .trend-head-row .fun {
    width: 100%;
    text-align: center;
    margin-top: 4px;
  }
}

/* ---- Cooldown bar under the fun button ---------------------------------- */

.fun-wrap {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  align-items: stretch;
}

.fun-bar {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}

.fun-bar[hidden] {
  display: none;
}

.fun-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 2px;
  background: var(--accent);
  /* One step per second, easing into place rather than jumping. */
  transition: width 0.9s linear;
}

/* The moment it becomes clickable again. */
.fun-ready {
  animation: fun-pop 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  border-color: var(--accent);
  color: var(--accent);
}

@keyframes fun-pop {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.07);
  }
  100% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fun-fill {
    transition: none;
  }

  .fun-ready {
    animation: none;
  }
}

/* `hidden` must beat `.card { display: grid }`, or paginated cards stay on
   screen while the pager claims a second page. Same trap as the lightbox. */
.card[hidden] {
  display: none;
}

/* ---- The bird ----------------------------------------------------------- */

/* Curved legs are paths now, so they need an explicit empty fill. */
.map-line {
  fill: none;
}

.map-bird {
  position: absolute;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  will-change: left, top, transform;
}

.map-bird.is-flying {
  opacity: 0.95;
}

.map-bird svg {
  width: 100%;
  height: 100%;
  display: block;
}

.map-bird path {
  fill: var(--fg);
  opacity: 0.9;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.35));
}

@media (prefers-reduced-motion: reduce) {
  .map-bird {
    transition: none;
  }
}

/* The dove is the glyph itself: it already carries the olive branch, and it
   renders on every platform without shipping another asset. */
.map-bird-glyph {
  display: block;
  font-size: 24px;
  line-height: 26px;
  text-align: center;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}

.map-bird {
  transition: opacity 0.25s ease;
}

/* ---- Donate: QR on a desktop, a link on a phone ------------------------- */

header {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
}

.head-text {
  min-width: 0;
}

.kofi {
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: var(--muted);
  flex: 0 0 auto;
}

.kofi img {
  display: block;
  width: 92px;
  height: 92px;
  padding: 5px;
  border-radius: 10px;
  background: #fff;
}

.kofi-labels b {
  display: block;
  color: var(--fg);
  font-size: 13px;
}

.kofi-labels span {
  display: block;
  font-size: 12px;
  line-height: 1.3;
}

@media (max-width: 719px) {
  /* A phone cannot scan its own screen. The QR goes, the link stays. */
  header {
    flex-direction: column;
    align-items: stretch;
  }

  .kofi {
    align-self: flex-end;
  }

  .kofi img {
    display: none;
  }

  .kofi .kofi-labels b {
    display: none;
  }

  .kofi {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 12px;
    white-space: nowrap;
  }

  .kofi-labels span::before {
    content: "♡ ";
  }
}
