:root, :root[data-theme="light"], :root[data-theme="warm"] {
  /* Light (default): cream, soft sand land, black text, burnt-orange pins with black rings.
     This is the live look. data-theme="warm" is kept as an alias. */
  color-scheme: light;
  --bg: #f5ecdc;
  --paper: #fbf5ea;
  --land: #e4d1b0;
  --land-ca: #ede1ca;
  --name: rgba(94, 74, 52, .55);
  --country-name: rgba(94, 74, 52, .42);
  --water: #fbf5ea;
  --inner-line: rgba(255, 250, 240, .95);
  --country-line: #8c6c45;
  --ink: #1b1612;
  --ink-2: #5e5246;
  --ink-3: #6f6358; /* was #94857a; darkened 20261127b so small secondary text meets WCAG AA (4.5:1) */
  --on-ink: #ffffff;
  --ink-hover: #3a3129;
  --line: #e8dcc6;
  --accent: #c2410c;
  --pin: #c2410c;
  --ring: #1b1612;
  --dot-stroke: #fbf5ea;
  --leader: #94857a;
  --legend-bg: rgba(251, 245, 234, .9);
  --pin-lo: #e8923a; --pin-mid: #c2410c; --pin-hi: #6b1d08; --pin-none: #9a9088;
  --chip: #f3e9d7;
  --chip-hover: #ecdfc8;
  --hover: rgba(27, 22, 18, .05);
  --active: rgba(194, 65, 12, .13);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 20, 20, .06), 0 8px 24px rgba(20, 20, 20, .08);
  --shadow-lg: 0 2px 6px rgba(20, 20, 20, .08), 0 18px 48px rgba(20, 20, 20, .16);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}
/* Dark: near-black, charcoal land, orange accents, light text (body text meets WCAG AA). */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d0d0d;
  --paper: #151515;
  --land: #2a2a2a;
  --land-ca: #222222;
  --name: rgba(255, 255, 255, .42);
  --country-name: rgba(255, 255, 255, .34);
  --water: #151515;
  --inner-line: rgba(255, 255, 255, .16);
  --country-line: #8a8a8a;
  --ink: #f4f4f2;
  --ink-2: #c4c1bc;
  --ink-3: #9c9893;
  --on-ink: #111111;
  --ink-hover: #d6d4d0;
  --line: #2b2b2b;
  --accent: #ff7a1a;
  --pin: #ff7a1a;
  --ring: #ffffff;
  --dot-stroke: #151515;
  --leader: #8a8a8a;
  --legend-bg: rgba(21, 21, 21, .88);
  --chip: #1f1f1f;
  --chip-hover: #2a2a2a;
  --hover: rgba(255, 255, 255, .06);
  --active: rgba(255, 122, 26, .18);
  --pin-lo: #ffb070; --pin-mid: #ff7a1a; --pin-hi: #c44708; --pin-none: #8a8a8a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .5), 0 18px 48px rgba(0, 0, 0, .55);
}
/* Unused leftover palette (not in the toggle). Kept so a data-theme="bold" preview still works. */
:root[data-theme="bold"] {
  color-scheme: light;
  --bg: #f4efe7; --paper: #f8f4ee; --land: #161616; --land-ca: #262422; --name: rgba(255, 255, 255, .4); --country-name: rgba(255, 255, 255, .32); --water: #f8f4ee;
  --inner-line: rgba(255, 255, 255, .16); --country-line: #8a8580;
  --ink: #141414; --ink-2: #55524d; --ink-3: #8c8882; --on-ink: #ffffff; --ink-hover: #343230;
  --line: #e2dcd2; --accent: #ff6a13; --pin: #ff6a13; --ring: #ff6a13; --dot-stroke: #161616; --leader: #ff6a13;
  --legend-bg: rgba(248, 244, 238, .92); --chip: #efe9e0; --chip-hover: #e6dfd4; --hover: rgba(20, 20, 20, .05); --active: rgba(255, 106, 19, .14);
  --pin-lo: #ff9a55; --pin-mid: #ff6a13; --pin-hi: #b33a00; --pin-none: #9a9088;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; padding: 10px 14px; background: var(--ink); color: var(--on-ink); border-radius: 8px; z-index: 50; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Header */
.site-header, main, .site-footer { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.site-header { padding-top: 44px; padding-bottom: 22px; }
.header-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.title { margin: 0; font-size: 40px; line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; flex: 1; min-width: 0; }
.theme-toggle {
  flex: none;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}
.theme-toggle:hover { background: var(--chip-hover); }
.theme-toggle .theme-icon { width: 22px; height: 22px; display: none; }
.theme-toggle .theme-icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .theme-icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .theme-icon-sun { display: block; }
.theme-toggle .theme-icon-fun { display: none; }
:root[data-fun] .theme-toggle .theme-icon { display: none; }
:root[data-fun] .theme-toggle .theme-icon-fun { display: block; }
body.still .theme-toggle, body.print .theme-toggle,
body.still .theme-picker, body.print .theme-picker { display: none !important; }

/* Theme picker: the header button opens a small menu built from the THEMES list in index.html */
.site-header { position: relative; z-index: 26; }
.theme-picker { position: relative; flex: none; margin: -2px -4px 0 0; }
.theme-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  width: 216px; padding: 6px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg);
}
.theme-menu[hidden] { display: none; }
.theme-opt {
  display: flex; align-items: center; gap: 12px;
  width: 100%; min-height: 48px; padding: 6px 10px;
  border: 0; border-radius: 10px; background: transparent; color: var(--ink);
  font-size: 15px; font-weight: 600; text-align: left; cursor: pointer;
}
.theme-opt:hover, .theme-opt:focus-visible { background: var(--hover); outline: none; }
.theme-opt[aria-checked="true"] { background: var(--active); }
.theme-sw {
  flex: none; width: 32px; height: 32px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 8px;
  font: 700 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.theme-opt-label { flex: 1; min-width: 0; }
.theme-opt-check { flex: none; width: 16px; height: 16px; }
.theme-opt[aria-checked="true"] .theme-opt-check {
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.8' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.8' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.theme-sep { height: 1px; margin: 4px 6px; background: var(--line); }
/* two groups: Theme (Default, Terminal, Notebook) and Mode (Auto, Light, Dark) */
.theme-menu { width: 236px; }
.theme-group { display: block; }
.theme-lab { display: block; padding: 6px 10px 2px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.mode-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 2px 2px 4px; }
.mode-opt {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-width: 0; min-height: 52px; padding: 6px 4px; margin: 0;
  border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--ink);
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.mode-ico svg { display: block; width: 18px; height: 18px; }
.mode-opt:hover, .mode-opt:focus-visible { background: var(--hover); outline: none; }
.mode-opt:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.mode-opt[aria-checked="true"] { background: var(--active); border-color: var(--accent); }
.theme-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.subtitle {
  display: inline-block; margin-top: 8px; font-size: 15px; color: var(--ink-2);
  text-decoration: none; letter-spacing: .01em;
  border-bottom: 1px solid transparent; transition: color .15s, border-color .15s;
}
.subtitle:hover { color: var(--ink); border-bottom-color: var(--country); }

/* Map panel */
.map-panel {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.map-wrap { position: relative; width: 100%; aspect-ratio: 1114 / 717.25; overflow: hidden; border-radius: 0; }
@media (min-width: 1180px) {
  .map-panel { height: 956.25px; display: flex; flex-direction: column; }
  .map-wrap { flex: 1 1 auto; min-height: 0; aspect-ratio: auto; }
}
#map { display: block; width: 100%; height: 100%; touch-action: manipulation; }

.land { fill: var(--land); stroke: none; }
.land-ca { fill: var(--land-ca, var(--land)); }
.region-label { fill: var(--name); font-weight: 600; pointer-events: none; user-select: none; }
.country-name-label { fill: var(--country-name); font-weight: 700; pointer-events: none; user-select: none; }
.inner-line { fill: none; stroke: var(--inner-line); stroke-linejoin: round; }
.country-border { fill: none; stroke: var(--country-line); stroke-linejoin: round; stroke-linecap: round; }
.lake { fill: var(--water); stroke: none; }

.hi-inset-frame { fill: var(--paper); stroke: var(--line); stroke-width: 1.25; }
.hi-inset-land { fill: var(--land); stroke: none; }
.hi-inset-label {
  fill: var(--name); font-weight: 700; font-size: 9px; letter-spacing: .14em;
  pointer-events: none; user-select: none;
}

.leader { stroke: var(--leader); stroke-width: 1; fill: none; }
.anchor { fill: var(--leader); }

.pin { cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; }
.pin .hit { fill: transparent; }
.pin .dot { fill: var(--pin); stroke: var(--dot-stroke); stroke-width: 1.5; transition: r .2s ease; }
.pin.inactive .dot { fill: var(--paper); stroke: var(--pin); stroke-width: 2; }
.pin .star-mark {
  display: none; transform-box: fill-box; transform-origin: center;
  transition: transform .2s ease;
}
.pin.fav .star-mark { display: block; }
.pin.fav .dot, .pin.fav .ring { display: none; }
.pin .star-border {
  fill: var(--paper); stroke: var(--ring); stroke-width: 1.5;
  stroke-linejoin: round;
}
.pin .star { fill: var(--pin); stroke: none; stroke-linejoin: round; }
.pin.fav.inactive .star { fill: var(--paper); stroke: var(--pin); stroke-width: 1.25; }
.pin .ring { fill: none; stroke: var(--ring); stroke-width: 1.5; }
.bean-g { display: none; } /* coffee-bean pin shape, shown only by the Coffee theme */
.pin .focus-ring { fill: none; stroke: var(--accent); stroke-width: 3; opacity: 0; transition: opacity .15s; }
.pin:focus-visible .focus-ring, .pin.active .focus-ring { opacity: 1; }
.pin:hover:not(.active) .dot { r: 8; }
.pin.fav:hover:not(.active) .star-mark { transform: scale(1.12); }
.pin .body { transition: opacity .35s ease, transform .45s cubic-bezier(.2, .9, .3, 1.3); transform-box: fill-box; transform-origin: center; }
.pin.hidden { pointer-events: none; }
.pin.hidden .body { opacity: 0; transform: scale(0.2); }
.pin.faded .body { opacity: .45; }

.leaders g.hidden { opacity: 0; }
.leaders g { transition: opacity .35s ease; }

.pin-label { font-size: 16px; font-weight: 600; fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; pointer-events: none; display: none; }
.pin-label .sub { font-weight: 400; fill: var(--ink-2); font-size: 11.5px; }

/* Legend */
.legend {
  position: absolute; left: 232px; bottom: 18px;
  display: grid; gap: 7px; padding: 12px 14px;
  background: var(--legend-bg); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--line); border-radius: 12px;
  font-size: 12px; color: var(--ink-2); line-height: 1.2;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.legend-row { display: flex; align-items: center; gap: 8px; }
.legend-icon { width: 18px; height: 18px; flex: none; color: var(--ink); }

.still-tag { display: none; }

/* Card: popover on desktop */
.card {
  position: absolute; z-index: 20; width: 280px;
  padding: 16px 16px 14px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  animation: pop .16s ease-out;
}
.card[hidden] { display: none; }
@keyframes pop { from { opacity: 0; transform: translateY(4px) scale(.98); } to { opacity: 1; transform: none; } }
.card-close {
  position: absolute; top: 6px; right: 6px; width: 36px; height: 36px;
  display: grid; place-items: center; border: 0; background: transparent; border-radius: 10px;
  color: var(--ink-3); cursor: pointer;
}
.card-close:hover { background: var(--chip); color: var(--ink); }
.card-close svg { width: 18px; height: 18px; }
.card-name { margin: 0 80px 2px 0; font-size: 17px; line-height: 1.3; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.card-name .ring-icon { width: 16px; height: 16px; flex: none; color: var(--ink); }
.card-tag {
  display: inline-block; margin: 2px 0 8px; padding: 1px 8px;
  font-size: 11.5px; font-weight: 600; line-height: 1.5;
  color: var(--ink-2); background: var(--chip);
  border: 1px solid var(--line); border-radius: 999px;
}
.card-tag[hidden], .card-note[hidden] { display: none; }
/* Coffee's order ticket (see the Coffee theme block); inert in every other theme. */
.card-order, .card-stamp { display: none; }
.card-meta { margin: 0 0 12px; font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.card-meta .loc { margin: 0; }
.card-meta .founded, .card-meta .price, .card-meta .pen { margin: 1px 0 0; }
.card-meta .prev { margin: 8px 0 0; font-size: 13px; line-height: 1.4; }
.card-meta .prev .k { font-weight: 600; color: var(--ink-3); }
.card-meta .list-credit { margin: 6px 0 0; font-size: 13px; color: var(--ink); }
.card-meta .list-credit a { color: var(--accent); font-weight: 600; text-decoration: none; }
.card-meta .list-credit a:hover { text-decoration: underline; }
.card-note { margin: -4px 0 12px; font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.card-links { display: flex; flex-wrap: wrap; gap: 8px; }
.card-links a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 13.5px; font-weight: 600; text-decoration: none; color: var(--ink);
  background: var(--chip); transition: background .15s, border-color .15s;
}
.card-links a:hover { background: var(--chip-hover); border-color: var(--ink-3); }
.card-links a.primary { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.card-links a.primary:hover { background: var(--ink-hover); }
.card-links svg { width: 13px; height: 13px; }
.card-update { margin: 10px 0 0; }
.card-update[hidden] { display: none; }
.card-update a {
  font-size: 12.5px; font-weight: 500; color: var(--ink-3);
  text-decoration: none; text-underline-offset: 3px;
}
.card-update a:hover { color: var(--ink-2); text-decoration: underline; }

/* Discover bar (search + quick chips + Filters button + status line above the map) */
.discover-bar {
  position: relative;
  z-index: 12;
  flex: none;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  border-radius: 20px 20px 0 0;
  padding: 10px 18px 7px;
}
.discover-bar[hidden] { display: none !important; }
.discover-main {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
}
.discover-search-row { display: contents; }
.discover-search-box {
  position: relative;
  order: 1;
  flex: 0 1 300px;
  min-width: 210px;
  width: 300px;
  height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 6px 0 10px;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 10px;
}
.discover-search-box:focus-within {
  box-shadow: 0 0 0 2px rgba(27, 22, 18, .12);
}
.discover-search-ico {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--ink-2);
  display: block;
}
.discover-search-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  padding: 0;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.discover-search-input::placeholder { color: var(--ink-3); font-weight: 400; }
.discover-search-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.discover-search-clear {
  flex: none;
  width: 22px;
  height: 22px;
  border: 0;
  background: transparent;
  color: var(--ink-3);
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
}
.discover-search-clear[hidden] { display: none; }
.discover-search-clear:hover { background: var(--hover); color: var(--ink); }
.discover-search-clear svg { width: 12px; height: 12px; display: block; }
.discover-search-box .filter-suggest {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  margin: 0;
  max-height: 240px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 35;
}
.discover-chip-scroll {
  order: 2;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  height: 32px;
}
.discover-chip-scroll::-webkit-scrollbar { display: none; }
.filters-btn {
  order: 3;
  margin-left: auto;
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 12px 0 10px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font-size: 13px; font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  flex: none;
}
.filters-btn:hover { background: var(--hover); }
.filters-btn[aria-expanded="true"] {
  background: var(--ink); color: var(--on-ink); border-color: var(--ink);
}
.filters-btn[aria-expanded="true"]:hover { background: var(--ink-hover, var(--ink)); }
.filters-btn .funnel { width: 14px; height: 14px; flex: none; }
.filters-badge {
  display: none;
  position: absolute; top: -7px; right: -7px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px;
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 18px;
  text-align: center;
  border: 2px solid var(--paper);
  font-variant-numeric: tabular-nums;
}
.filters-badge:not([hidden]) { display: block; }
:root[data-theme="dark"] .filters-badge { color: #111111; } /* white on orange was 2.6:1 */

.discover-status {
  display: flex;
  align-items: center;
  height: 24px;
  margin-top: 6px;
  min-width: 0;
  overflow: hidden;
}
.discover-hint {
  font-size: 12px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}
.discover-hint[hidden] { display: none; }
.discover-showing {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  width: 100%;
  min-width: 0;
  height: 100%;
}
.discover-showing[hidden] { display: none; }
.showing-count {
  flex: none;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.showing-dot {
  flex: none;
  color: var(--ink-3);
  font-weight: 600;
  font-size: 12.5px;
}
.showing-dot[hidden] { display: none; }
.showing-clear {
  flex: none;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 600;
  padding: 2px 0;
  cursor: pointer;
  white-space: nowrap;
}
.showing-clear:hover { color: var(--ink); }
.showing-offmap {
  flex: none;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 600;
  padding: 2px 0;
  cursor: pointer;
  white-space: nowrap;
}
.showing-offmap:hover { color: var(--ink); }
.showing-offmap .offmap-short { display: none; }
.showing-offmap[hidden] { display: none; }

/* Timeline */
.timeline {
  display: flex; align-items: center; gap: 18px;
  padding: 10px 22px 16px;
}
.timeline[hidden] { display: none !important; }
.play {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--ink); background: var(--ink); color: var(--on-ink);
  display: grid; place-items: center; cursor: pointer; transition: transform .1s, background .15s;
}
.play:hover { background: var(--ink-hover); }
.play:active { transform: scale(.95); }
.play svg { width: 20px; height: 20px; }
.play .icon-pause { display: none; }
.play.playing .icon-pause { display: block; }
.play.playing .icon-play { display: none; }
.slider-wrap { flex: 1; min-width: 0; }
.slider-ends { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; margin-top: 2px; }
.year-readout { flex: none; display: flex; flex-direction: column; align-items: flex-end; min-width: 120px; }
.year-value { font-size: 26px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.year-count { margin-top: 4px; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }

/* Fixed slot so the timeline never resizes the enclosing panel. */
.map-controls {
  box-sizing: border-box;
  height: 96px;
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.timeline {
  box-sizing: border-box;
  height: 100%;
}

.af-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  min-width: 0;
  flex: 0 1 auto;
  scrollbar-width: none;
}
.af-chips[hidden] { display: none; }
.af-chips::-webkit-scrollbar { display: none; }
.af-chip {
  display: inline-flex; align-items: center; gap: 2px;
  min-height: 22px; padding: 0 2px 0 8px;
  border: 1px solid var(--accent); border-radius: 999px;
  background: var(--active); color: var(--accent);
  font-size: 12px; font-weight: 600; white-space: nowrap;
  flex: none;
}
.af-x {
  width: 18px; height: 18px; border: 0; background: transparent;
  color: inherit; border-radius: 50%;
  display: grid; place-items: center;
  padding: 0;
  cursor: pointer;
}
.af-x:hover { background: var(--hover); }
.af-x svg { width: 10px; height: 10px; display: block; }

input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 0;
  background: transparent; cursor: pointer; --fill: 100%;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, var(--accent) 0 var(--fill), var(--line) var(--fill) 100%);
}
input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--line); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--accent); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink);
}
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--active); }

/* List */
.list-panel { margin-top: 40px; }
.list-title { margin: 0 0 6px; font-size: 22px; letter-spacing: -0.01em; }
.list-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin: 10px 0 18px;
}
.list-search-wrap { flex: 1 1 200px; min-width: 0; }
.list-search {
  display: block;
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  -webkit-appearance: none;
  appearance: none;
}
.list-search::placeholder { color: var(--ink-3); }
.list-search:focus { outline: none; border-color: var(--ink); }
.list-search::-webkit-search-decoration,
.list-search::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.list-sort {
  display: flex;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper);
}
.list-sort-btn {
  min-height: 40px;
  padding: 0 13px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.list-sort-btn:last-child { border-right: 0; }
.list-sort-btn:hover { background: var(--hover); color: var(--ink); }
.list-sort-btn[aria-pressed="true"] {
  background: var(--ink);
  color: var(--on-ink);
}
.list-sort-btn[aria-pressed="true"]:hover { background: var(--ink); color: var(--on-ink); }
.list-empty {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--ink-3);
}
.list-empty[hidden] { display: none; }
.list-empty-reset,
.map-empty-reset {
  margin-left: 8px;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
}
.map-empty-reset { margin-left: 0; }

.maker-flat {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 3;
  column-gap: 40px;
  column-fill: balance;
}
.maker-flat li {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  border-top: 1px solid var(--line);
}
.country { margin-top: 28px; }
.country-name {
  margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
}
.regions {
  columns: 3;
  column-gap: 40px;
  column-fill: balance;
}
.region {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  padding: 0 0 16px;
  border-top: 1px solid var(--line);
}
.region-name {
  margin: 11px 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.region ul { list-style: none; margin: 0; padding: 0; }
.maker-btn {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 1px;
  align-items: start;
  min-height: 44px;
  padding: 7px 8px; margin: 0 -8px; width: calc(100% + 16px);
  border: 0; background: transparent; border-radius: 10px; text-align: left; cursor: pointer;
  transition: background .15s;
}
.maker-btn:hover { background: var(--hover); }
.maker-btn.active { background: var(--active); }
.maker-btn svg { width: 20px; height: 20px; grid-row: 1 / span 2; margin-top: 2px; }
.maker-btn .m-name { grid-column: 2; font-weight: 600; font-size: 15.5px; line-height: 1.3; }
.maker-btn .m-meta {
  grid-column: 2; font-size: 12.5px; line-height: 1.3; color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.maker-btn.dimmed .m-name { color: var(--ink-3); }
/* Coffee-only parts (menu-board row, cup mode icons); hidden in every other theme */
.maker-btn .m-lead, .maker-btn .m-price, .maker-btn .m-sub, .mode-cup { display: none; }

/* Two columns on tablet-ish / small desktop widths; mobile is reset below. */
@media (min-width: 641px) and (max-width: 1099px) {
  .regions, .maker-flat { columns: 2; column-gap: 36px; }
}

/* Footer */
.site-footer { padding-top: 40px; padding-bottom: 48px; font-size: 13.5px; color: var(--ink-3); }
.site-footer p { margin: 0; }
.site-footer p:first-child { border-top: 1px solid var(--line); padding-top: 18px; }
.site-footer a { color: var(--ink-2); text-underline-offset: 3px; }
.site-footer .suggest-wrap { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
/* Provenance line: which build is live, when it deployed, and how fresh the maker data is.
   Values are derived (asset stamp + Last-Modified + makers.json), never typed by hand. */
.site-version {
  margin: 12px 0 0;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 7px;
  font-size: 12px; color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.site-version time { white-space: nowrap; }
.site-version-sep { opacity: .55; }
.site-version #site-version { font-weight: 700; color: var(--ink-2); letter-spacing: .01em; }
.noscript { text-align: center; padding: 24px; }

/* Tablet and down */
@media (max-width: 860px) {
  .map-wrap { aspect-ratio: 4 / 3; }
}

/* Mobile */
@media (max-width: 640px) {
  .site-header, main, .site-footer { padding-left: 16px; padding-right: 16px; }
  .site-header { padding-top: 28px; padding-bottom: 16px; }
  .title { font-size: 28px; }
  .map-panel { border-radius: 16px; }
  .discover-bar { border-radius: 16px 16px 0 0; padding: 8px 10px 5px; }
  .discover-main { height: auto; flex-direction: column; align-items: stretch; gap: 6px; }
  .discover-search-row { display: flex; align-items: center; gap: 8px; height: 36px; flex: none; }
  .discover-search-box { order: 0; flex: 1 1 auto; width: auto; min-width: 0; height: 36px; }
  .discover-search-input { font-size: 16px; }
  .discover-search-input::placeholder { font-size: 13px; }
  .filters-btn {
    order: 0; margin-left: 0;
    width: 36px; height: 36px; padding: 0;
    display: inline-grid; place-items: center;
  }
  .filters-btn .filters-label { display: none; }
  .filters-btn .funnel { width: 16px; height: 16px; }
  .filters-badge { top: -6px; right: -6px; }
  .discover-chip-scroll {
    order: 0; flex: none; width: 100%; height: 26px; gap: 6px; padding-right: 16px;
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 24px), transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 24px), transparent 100%);
  }
  .discover-chip-scroll .filter-chip { min-height: 26px; padding: 0 9px; font-size: 12px; gap: 5px; }
  .discover-chip-scroll .filter-chip .chip-n { font-size: 10px; padding: 1px 5px; }
  .discover-status { height: 22px; margin-top: 5px; }
  .discover-hint { font-size: 11.5px; }
  .discover-showing { gap: 5px; }
  .showing-count { font-size: 12px; }
  .showing-dot { display: none; }
  .af-chips {
    flex: 1 1 auto;
    min-width: 48px;
    gap: 5px;
    padding-right: 12px;
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 16px), transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 16px), transparent 100%);
  }
  .showing-offmap { font-size: 12px; }
  .showing-offmap .offmap-full { display: none; }
  .showing-offmap .offmap-short { display: inline; }
  .showing-clear { font-size: 12px; margin-left: auto; padding-left: 2px; }
  .showing-offmap:not([hidden]) { margin-left: auto; }
  .showing-offmap:not([hidden]) ~ .showing-clear { margin-left: 0; padding-left: 2px; }
  .af-chip { font-size: 11.5px; min-height: 20px; padding: 0 2px 0 7px; }
  .map-wrap { aspect-ratio: auto; border-radius: 0; }
  #map { height: 80vw; }
  .legend {
    position: static; display: grid; gap: 8px 16px;
    padding: 12px 16px; border: 0; border-top: 1px solid var(--line); border-radius: 0;
    background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; font-size: 12.5px;
  }
  .map-controls { height: 92px; }
  .timeline { flex-wrap: wrap; gap: 4px 12px; padding: 8px 14px 14px; }
  .year-readout { min-width: 0; }
  .year-count { text-align: right; line-height: 1.3; }
  .year-count .extra { display: block; color: var(--ink-3); }
  .year-value { font-size: 22px; }
  .year-count { font-size: 11.5px; }
  .pin:hover .dot { r: inherit; }
  .pin.fav:hover:not(.active) .star-mark { transform: none; }
  .hi-inset-label { font-size: 8px; letter-spacing: .12em; }
  .region-label { fill-opacity: .85; font-weight: 500; }

  /* Card becomes a bottom sheet */
  .card {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto !important; width: auto;
    padding: 22px 20px calc(20px + env(safe-area-inset-bottom));
    border-radius: 20px 20px 0 0; border-bottom: 0;
    box-shadow: 0 -8px 40px rgba(0,0,0,.2);
    animation: sheet .24s cubic-bezier(.2,.8,.2,1);
    left: 0 !important;
  }
  .card::before {
    content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px;
    border-radius: 2px; background: var(--line);
  }
  .card-close { top: 10px; right: 10px; width: 44px; height: 44px; }
  .card-star { top: 10px; right: 54px; width: 44px; height: 44px; }
  .card-name { font-size: 20px; margin-right: 100px; }
  .card-tag { margin-bottom: 10px; font-size: 12.5px; }
  .card-meta { font-size: 15px; margin-bottom: 16px; }
  .card-meta .prev, .card-note { font-size: 14px; }
  .card-links { gap: 10px; }
  .card-links a { min-height: 48px; padding: 0 18px; font-size: 15px; flex: 1 1 auto; justify-content: center; }
  .card-update { margin-top: 8px; }
  .card-update a { display: inline-flex; align-items: center; min-height: 36px; font-size: 13.5px; }
  .regions { grid-template-columns: 1fr; }
  .maker-btn .m-name { font-size: 16px; }
  .list-panel { margin-top: 32px; }
  .list-controls { flex-direction: column; align-items: stretch; gap: 8px; margin: 10px 0 16px; }
  .list-search-wrap { flex: none; width: 100%; }
  .list-search { font-size: 16px; height: 40px; }
  .list-sort { width: 100%; }
  .list-sort-btn { flex: 1; min-height: 40px; padding: 0 6px; font-size: 12.5px; }
  .maker-flat {
    display: grid;
    gap: 0;
    column-count: auto;
    column-width: auto;
    column-fill: initial;
  }

  /* Restore the original mobile list layout (do not change the look). */
  .country { margin-top: 22px; }
  .country-name { margin: 0 0 4px; }
  .regions {
    display: grid;
    gap: 4px 28px;
    column-count: auto;
    column-width: auto;
    column-fill: initial;
  }
  .region { padding: 10px 0 6px; }
  .region-name {
    margin: 0 0 2px; font-size: 14px; font-weight: 600;
    letter-spacing: normal; text-transform: none; color: var(--ink-2);
  }
  .maker-btn {
    display: flex; align-items: center; gap: 10px;
    grid-template-columns: none; grid-template-rows: none;
    padding: 6px 8px;
  }
  .maker-btn svg { grid-row: auto; margin-top: 0; flex: none; }
  .maker-btn .m-name { line-height: inherit; }
  .maker-btn .m-meta {
    margin-left: auto; font-size: 13px; line-height: inherit; white-space: nowrap;
  }
}
@keyframes sheet { from { transform: translateY(100%); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Still mode (for the Substack image) */
body.still { background: var(--paper); }
body.still .skip, body.still .site-header, body.still .timeline, body.still .map-controls, body.still .discover-bar, body.still .filter-panel, body.still .filter-scrim, body.still .map-empty, body.still .list-panel, body.still .site-footer, body.still .card,
body.still .card-update, body.still .suggest-wrap, body.still .fav-banner, body.still .fav-bar, body.still .print-toolbar,
body.still .world-btn, body.still .world-back,
body.still .print-list, body.still .print-footer, body.still .title-print, body.still .card-star, body.still .maker-star, body.still .fav-limit-note, body.still .share-toast,
body.still .list-controls, body.still .list-empty, body.still .untagged-note, body.still .discover-bar { display: none !important; }
body.still main { max-width: none; padding: 0; margin: 0; }
body.still .map-panel { display: block; height: auto; border: 0; border-radius: 0; box-shadow: none; }
body.still .map-wrap { aspect-ratio: auto; height: 100vh; border-radius: 0; overflow: hidden; }
body.still .pin-label { display: block; }
body.still .legend { left: auto; right: 40px; bottom: 40px; padding: 16px 18px; gap: 10px; font-size: 15px; border-radius: 14px; }
body.still .hi-inset-label { font-size: 11px; letter-spacing: .16em; }
body.still .hi-inset-frame { stroke-width: 1.5; }
body.still .legend-icon { width: 22px; height: 22px; }
body.still .still-tag {
  display: block; position: absolute; left: 44px; top: 38px;
  font-size: 34px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink);
}
body.still .still-tag span { font-weight: 400; color: var(--ink-2); }


.title-print { display: none; }

/* Card favorite star */
.card-star {
  position: absolute; top: 6px; right: 42px; width: 36px; height: 36px;
  display: grid; place-items: center; border: 0; background: transparent; border-radius: 10px;
  color: var(--ink-3); cursor: pointer;
}
.card-star:hover { background: var(--chip); color: var(--accent); }
.card-star[aria-pressed="true"] { color: var(--accent); }
.card-star svg { width: 18px; height: 18px; display: block; }
.card-star path { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.card-star[aria-pressed="true"] path { fill: currentColor; stroke: currentColor; }

/* Shared-link banner */
.fav-banner {
  width: 100%; max-width: 1180px; margin: 0 auto 16px; padding: 10px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow);
}
.fav-banner[hidden] { display: none; }
.fav-banner-text { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.fav-banner-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fav-banner-actions button {
  min-height: 36px; padding: 0 12px; border-radius: 999px; cursor: pointer;
  font-size: 13.5px; font-weight: 600;
}
.fav-banner-save { border: 1px solid var(--ink); background: var(--ink); color: var(--on-ink); }
.fav-banner-save:hover { background: var(--ink-hover); }
.fav-banner-exit { border: 1px solid var(--line); background: var(--chip); color: var(--ink); }
.fav-banner-exit:hover { background: var(--chip-hover); }

/* Favorites control, under the timeline */
.fav-bar {
  position: relative; z-index: 11;
  display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap;
  padding: 8px 22px 12px; border-top: 1px solid var(--line);
}
.fav-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 0 12px 0 10px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--chip); font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.fav-toggle:hover { background: var(--chip-hover); }
.fav-toggle[aria-pressed="true"] {
  background: var(--active); border-color: var(--accent); color: var(--accent);
}
.fav-toggle:disabled { opacity: .5; cursor: default; }
.fav-star-icon { width: 14px; height: 14px; flex: none; }
.fav-star-icon path { fill: currentColor; }
.fav-actions { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.fav-action {
  min-height: 36px; padding: 0 10px; border: 0; background: transparent;
  color: var(--ink-2); font-size: 13.5px; font-weight: 600; cursor: pointer; border-radius: 8px;
}
.fav-action:hover:not(:disabled) { color: var(--ink); background: var(--hover); }
.fav-action:disabled { opacity: .4; cursor: default; }
.fav-action.is-copied { color: var(--accent); }
.fav-actions { gap: 8px; }
.fav-btn {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 38px; padding: 0 14px 0 12px;
  border: 1px solid var(--ink); border-radius: 999px;
  background: transparent; color: var(--ink);
  font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.fav-btn-icon { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fav-btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.fav-btn:hover:not(:disabled) { filter: brightness(1.06); }
.fav-btn:not(.fav-btn-primary):hover:not(:disabled) { background: var(--hover); }
.fav-btn:disabled { opacity: .4; cursor: default; }
.fav-btn.is-copied { border-color: var(--accent); color: var(--accent); }
.fav-edit {
  min-height: 38px; padding: 0 8px; border: 0; background: transparent;
  color: var(--ink-2); font-size: 13px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.fav-edit:disabled { opacity: .4; cursor: default; }

.fav-panel {
  position: absolute; z-index: 12; left: 22px; top: calc(100% + 8px);
  width: min(320px, calc(100% - 44px));
  padding: 12px 12px 10px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg);
}
.fav-panel[hidden] { display: none; }
.fav-panel-empty { margin: 0 0 4px; font-size: 13.5px; color: var(--ink-2); }
.fav-panel-empty[hidden] { display: none; }
.fav-panel-list { list-style: none; margin: 0; padding: 0; max-height: 240px; overflow: auto; }
.fav-panel-list li {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 0; border-top: 1px solid var(--line);
}
.fav-panel-list li:first-child { border-top: 0; }
.fav-panel-name {
  flex: 1; min-width: 0; border: 0; background: transparent; text-align: left;
  font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; padding: 6px 0;
  border-radius: 6px;
}
.fav-panel-name:hover { color: var(--accent); }
.fav-panel-remove {
  flex: none; width: 32px; height: 32px; border: 0; background: transparent;
  color: var(--ink-3); border-radius: 8px; cursor: pointer; font-size: 18px; line-height: 1;
}
.fav-panel-remove:hover { background: var(--chip); color: var(--ink); }
.fav-clear {
  display: block; width: 100%; margin-top: 8px; min-height: 36px;
  border: 0; background: transparent; color: var(--ink-3);
  font-size: 13px; font-weight: 600; cursor: pointer; border-radius: 8px;
}
.fav-clear:hover { color: var(--ink); background: var(--hover); }
.fav-clear[hidden] { display: none; }

/* List row with a trailing star (star is a sibling, not nested in the row button) */
.maker-row {
  display: flex; align-items: stretch;
  margin: 0 -8px; width: calc(100% + 16px);
  border-radius: 10px;
}
.maker-row:hover { background: var(--hover); }
.maker-row.is-active { background: var(--active); }
.maker-row .maker-btn {
  margin: 0; width: auto; flex: 1; min-width: 0;
}
.maker-row:hover .maker-btn, .maker-btn:hover { background: transparent; }
.maker-row.is-active .maker-btn, .maker-btn.active { background: transparent; }
.maker-star {
  flex: none; width: 36px; min-height: 36px; margin: 4px 2px;
  border: 0; background: transparent; border-radius: 8px;
  color: var(--ink-3); cursor: pointer;
  display: grid; place-items: center; align-self: center;
}
.maker-star:hover { color: var(--accent); background: var(--chip); }
.maker-star[aria-pressed="true"] { color: var(--accent); }
.maker-star svg { width: 15px; height: 15px; display: block; }
.maker-star path { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.maker-star[aria-pressed="true"] path { fill: currentColor; }
.maker-row.fav-hidden { display: none; }


.maker-star.is-muted,
.card-star.is-muted {
  opacity: .34;
  color: var(--ink-3);
}
.maker-star.is-muted:hover,
.card-star.is-muted:hover {
  background: transparent;
  color: var(--ink-3);
}

.fav-limit-note {
  flex-basis: 100%;
  margin: 2px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-2);
}
.fav-limit-note[hidden] { display: none; }
.card-fav-limit {
  flex-basis: auto;
  margin: 8px 0 0;
  font-size: 12.5px;
}

/* Print view (on-screen ?print=1 and paper) */
.print-toolbar { display: none; }
.print-footer { display: none; }
.print-list { display: none; }

body.print .print-toolbar {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 16px 0;
}
body.print .print-toolbar[hidden] { display: flex; }
body.print .print-now, body.print .print-back {
  min-height: 36px; padding: 0 14px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center;
  cursor: pointer;
}
body.print .print-now { border: 1px solid var(--ink); background: var(--ink); color: var(--on-ink); }
body.print .print-back { border: 1px solid var(--line); background: var(--chip); color: var(--ink); }

body.print {
  background: #e8e0d2;
}
body.print .skip, body.print .subtitle, body.print .timeline, body.print .map-controls, body.print .discover-bar, body.print .filter-panel, body.print .filter-scrim, body.print .map-empty, body.print .fav-bar, body.print .fav-banner,
body.print .legend, body.print .card, body.print .list-panel, body.print .site-footer,
body.print .suggest-wrap, body.print .card-update, body.print .card-star, body.print .maker-star, body.print .fav-limit-note,
body.print .list-controls, body.print .list-empty {
  display: none !important;
}
body.print .title-live { display: none; }
body.print .title-print { display: inline; }
body.print .site-header, body.print main, body.print .print-footer {
  max-width: 7.5in; padding-left: 0; padding-right: 0;
}
body.print .site-header { padding: 0.45in 0 14px; }
body.print .title { font-size: 28px; }
body.print main { padding-bottom: 0; }
body.print .map-panel {
  display: block; height: auto; border-radius: 0; box-shadow: none; border: 1px solid var(--line);
}
body.print .map-wrap { aspect-ratio: auto; height: 5.15in; border-radius: 0; }
body.print .print-list {
  display: grid !important; grid-template-columns: 1fr 1fr; gap: 0 28px;
  margin-top: 16px;
}
body.print .print-list[hidden] { display: grid !important; }
body.print .print-item {
  break-inside: avoid; -webkit-column-break-inside: avoid;
  padding: 0 0 12px; margin: 0;
}
body.print .print-item h3 {
  margin: 0; font-size: 14px; font-weight: 700; letter-spacing: -0.01em;
}
body.print .print-item p {
  margin: 1px 0 0; font-size: 12px; color: var(--ink-2); line-height: 1.35;
}
body.print .print-item .print-url { word-break: break-all; color: var(--ink-3); }
body.print .print-footer {
  display: block; max-width: 7.5in; margin: 18px auto 0;
  padding: 10px 0 0; border-top: 1px solid var(--line);
  font-size: 11px; color: var(--ink-3); letter-spacing: .02em;
}
body.print .print-footer[hidden] { display: block; }
@media screen {
  body.print { padding: 20px 16px 48px; }
  body.print .print-sheet {
    width: 8.5in; min-height: 11in; margin: 16px auto 0; padding: 0.5in 0.5in 0.45in;
    background: var(--paper); box-shadow: 0 2px 16px rgba(0,0,0,.12);
  }
}

@media print {
  @page { size: letter; margin: 0.5in; }
  body { background: white !important; padding: 0 !important; }
  .print-sheet { width: auto !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; box-shadow: none !important; background: transparent !important; }
  .print-toolbar, .skip, .subtitle, .timeline, .map-controls, .discover-bar, .filter-panel, .filter-scrim, .map-empty, .fav-bar, .fav-banner, .legend, .card,
  .list-panel, .site-footer, .suggest-wrap, .card-update, .card-star, .maker-star, .fav-limit-note,
  .list-controls, .list-empty, .untagged-note { display: none !important; }
  .title-live { display: none !important; }
  .title-print { display: inline !important; }
  .site-header, main, .print-footer { max-width: none; padding-left: 0; padding-right: 0; margin: 0; }
  .site-header { padding: 0 0 12px; }
  .title { font-size: 26px; }
  .map-panel { border-radius: 0; box-shadow: none; border: 1px solid #d9cbb0; break-inside: avoid; }
  .map-wrap { aspect-ratio: auto !important; height: 5.15in !important; border-radius: 0 !important; }
  .print-list { display: grid !important; grid-template-columns: 1fr 1fr; gap: 0 28px; margin-top: 14px; }
  .map-panel { break-inside: avoid; }
  .print-footer { break-inside: avoid; }
  .print-item { break-inside: avoid; padding: 0 0 11px; margin: 0; }
  .print-item h3 { margin: 0; font-size: 13px; font-weight: 700; }
  .print-item p { margin: 1px 0 0; font-size: 11.5px; color: #5e5246; line-height: 1.35; }
  .print-item .print-url { word-break: break-all; color: #94857a; }
  .print-footer { display: block !important; margin-top: 14px; padding-top: 8px; border-top: 1px solid #e8dcc6; font-size: 11px; color: #94857a; }
  a { color: inherit; text-decoration: none; }
}

@media (max-width: 640px) {
  .fav-banner { margin-bottom: 12px; padding: 10px 12px; }
  .fav-bar { padding: 8px 14px 12px; }
  .fav-panel { left: 14px; width: calc(100% - 28px); }
  .maker-star { width: 40px; min-height: 40px; }
}
@media screen and (max-width: 860px) {
  body.print { padding: 0; background: var(--paper); }
  body.print .site-header, body.print main, body.print .print-footer { max-width: none; padding-left: 16px; padding-right: 16px; }
  body.print .map-wrap { height: 62vw; min-height: 260px; }
  body.print .print-list { grid-template-columns: 1fr; }
}


/* World view */
.world-btn,
.world-back {
  position: absolute; z-index: 6;
  border: 1px solid var(--ink); border-radius: 999px;
  background: var(--paper); color: var(--ink);
  font-weight: 700; cursor: pointer;
  box-shadow: var(--shadow, 0 4px 16px rgba(0,0,0,.08));
}
.world-btn {
  top: 12px; right: 12px;
  min-height: 28px; padding: 0 10px;
  font-size: 12px; letter-spacing: 0.03em;
  white-space: nowrap;
}
.world-back {
  top: 12px; left: 12px;
  min-height: 36px; padding: 0 12px;
  font-size: 13px; font-weight: 600;
}
.world-btn:hover, .world-btn:focus-visible {
  background: var(--accent); border-color: var(--accent); color: #fff; outline: none;
}
.world-back:hover { background: var(--ink); color: var(--on-ink); }
.world-btn[hidden], .world-back[hidden] { display: none !important; }
.country-pin { cursor: pointer; }
.country-pin .hit { fill: transparent; }
.country-pin .dot { fill: var(--pin); stroke: none; }
.country-pin .pin-halo { fill: var(--pin); opacity: .16; }
.country-pin-label {
  font-family: inherit; font-weight: 700; fill: var(--ink);
  paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round;
  pointer-events: auto;
}
.country-pin:hover .dot, .country-pin:focus .dot { fill: var(--ink); }
.country-pin:focus { outline: none; }
.country-pin:focus-visible .pin-halo { opacity: .28; }
body[data-view="world"] .legend { display: none; }
.list-filter-wrap { display: flex; min-width: 0; }
.list-filter {
  min-height: 36px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--paper); color: var(--ink);
  font: inherit; font-size: 13px; font-weight: 600;
  max-width: 100%;
}
@media (max-width: 640px) {
  .world-btn { top: 10px; right: 10px; min-height: 26px; font-size: 11.5px; padding: 0 9px; }
  .world-back { top: 10px; left: 10px; min-height: 34px; font-size: 12.5px; }
  .list-filter { width: 100%; }
}

.list-filter-wrap { flex: 1 1 140px; }
@media (max-width: 640px) {
  .list-filter-wrap { flex: none; width: 100%; }
}
.fav-bar:has(.fav-toggle:only-child),
.fav-bar { justify-content: flex-start; }

.simple-label {
  font-size: 12px; font-weight: 600; fill: var(--ink);
  paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round;
  pointer-events: none;
}


/* ---- Filter drawer (desktop) and bottom sheet (phone) ---- */
.filter-scrim {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(27, 22, 18, .18);
  z-index: 25;
  border-radius: inherit;
}
.filter-scrim:not([hidden]) { display: block; }

.filter-panel {
  display: none;
  position: absolute;
  top: 12px;
  right: 12px;
  width: 360px;
  max-height: calc(100% - 24px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  z-index: 30;
  flex-direction: column;
  overflow: hidden;
}
.filter-panel:not([hidden]) { display: flex; }
.filter-panel .sheet-handle { display: none; }

.drawer-head {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 12px 8px 16px;
  flex: none;
}
.drawer-title {
  margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -0.02em;
  flex: 1;
}
.icon-btn {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: 0; background: transparent; border-radius: 8px;
  color: var(--ink-3);
  flex: none;
  cursor: pointer;
}
.icon-btn:hover { background: var(--hover); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; display: block; }
.drawer-sub {
  display: flex; align-items: center;
  padding: 0 16px 12px;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.drawer-count { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.clear-btn {
  margin-left: auto;
  border: 0; background: transparent;
  color: var(--ink-2); font-size: 13px; font-weight: 600;
  padding: 4px 0;
  cursor: pointer;
}
.clear-btn:hover { color: var(--ink); }
.clear-btn[disabled] { opacity: .4; cursor: default; }
.drawer-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 10px 16px 20px;
}
.filter-search-wrap { margin: 0 0 14px; position: relative; }
.filter-search {
  display: block;
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--chip);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  -webkit-appearance: none;
  appearance: none;
}
.filter-search::placeholder { color: var(--ink-3); }
.filter-search:focus { outline: none; border-color: var(--ink); }
.filter-showing {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.4;
}
.filter-showing[hidden] { display: none; }
.filter-suggest {
  list-style: none;
  margin: 8px 0 0;
  padding: 4px;
  max-height: 168px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}
.filter-suggest[hidden] { display: none; }
.filter-suggest li {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.filter-suggest li:hover,
.filter-suggest li[aria-selected="true"] { background: var(--hover); }
.filter-suggest-name { font-size: 14px; font-weight: 650; color: var(--ink); }
.filter-suggest-place { font-size: 12px; color: var(--ink-2); }

.fg { margin: 0 0 14px; }
.fg:last-child { margin-bottom: 0; }
.fg-label {
  margin: 0 0 8px;
  font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3);
}
.fg-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; }
.fg-chips[hidden], .fg-sublabel[hidden], .untagged-note[hidden] { display: none; }
.fg-sublabel {
  margin: 12px 0 6px;
  font-size: 11px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-3);
}
/* "N makers not yet tagged": shown under the Filters count and above the list while a
   Mechanism or Material chip is on. */
.untagged-note {
  margin: 0; padding: 8px 16px;
  font-size: 12.5px; color: var(--ink-2);
  border-bottom: 1px solid var(--line);
  flex: none;
}
.list-panel .untagged-note { padding: 0; margin: 0 0 12px; border: 0; }
/* Subscribe prompt at the end of the list. Reuses the card's .card-links a.primary button,
   so it already has the Terminal / Notebook / Coffee and mobile styling. */
.subscribe {
  margin: 28px 0 0;
  padding: 22px 24px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--chip);
  display: grid;
  gap: 6px;
  justify-items: start;
}
.subscribe-kicker {
  margin: 0;
  font-size: 11px; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  /* Plain --accent measured 4.3:1 on the chip surface in Default light (AA wants 4.5);
     mixing 16% ink darkens it just enough. Browsers without color-mix() keep the line
     above and inherit, which also passes. */
  color: var(--ink-2);
  color: color-mix(in oklab, var(--accent) 84%, var(--ink) 16%);
}
.subscribe-title { margin: 0; font-size: 20px; line-height: 1.25; letter-spacing: -0.01em; font-weight: 700; }
.subscribe-what { margin: 2px 0 0; max-width: 60ch; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.subscribe-actions { margin: 12px 0 0; }
.subscribe[hidden] { display: none; }
/* Terminal is a text idiom with no rounded panels or filled buttons. */
:root[data-theme="terminal"] .subscribe { border-radius: 0; border-style: dashed; background: transparent; padding: 18px 0 4px; }
/* Mechanism and material tags on a maker card */
/* Two columns sized by content: the label column is as wide as its widest label, so the
   word can never be overrun by the chips. A fixed 66px was narrower than "Mechanism"
   renders (76px), which pushed the text underneath the first tag. `display: contents`
   keeps the markup as rows while the label and tags land in the shared columns. */
.card-attrs {
  margin: 10px 0 0;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: 8px; row-gap: 6px;
  align-items: baseline;
}
.attr-row { display: contents; }
.attr-k {
  min-width: 66px; white-space: nowrap;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3);
}
.attr-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.attr-tag {
  margin: 0; padding: 1px 8px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--chip); color: var(--ink-2);
  font-size: 11.5px; font-weight: 600; line-height: 1.5; white-space: nowrap;
}
.attr-mech .attr-tag { border-color: var(--accent); color: var(--accent); background: transparent; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 30px; padding: 0 11px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--chip); color: var(--ink);
  font-size: 13px; font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.filter-chip:hover { background: var(--chip-hover); }
.filter-chip[aria-pressed="true"] {
  background: var(--active);
  border-color: var(--accent);
  color: var(--accent);
}
.filter-chip.is-zero:not([aria-pressed="true"]) {
  color: var(--ink-3);
  background: var(--paper);
  opacity: .55;
}
.filter-chip .chip-n {
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(27, 22, 18, .08);
  color: var(--ink-2);
}
.filter-chip[aria-pressed="true"] .chip-n {
  background: var(--paper);
  color: var(--accent);
}
/* Default light: the pressed chip sits on a tinted orange, so its text uses a deeper orange to keep 4.5:1 */
:root[data-theme="light"] .filter-chip[aria-pressed="true"], :root[data-theme="light"] .af-chip, :root[data-theme="light"] .filter-chip[aria-pressed="true"] .chip-n { color: #a8390c; }
.filter-chip.is-zero:not([aria-pressed="true"]) .chip-n {
  background: rgba(27, 22, 18, .06);
  color: var(--ink-3);
}
.filter-chip .chip-ico {
  width: 12px;
  height: 12px;
  flex: none;
  display: block;
}
.filter-chip .chip-label-short,
.af-chip .chip-label-short {
  display: none;
}
.filter-chip.chip-curated {
  background: var(--ink);
  color: var(--on-ink);
  border-color: var(--ink);
}
.filter-chip.chip-curated:hover {
  background: var(--ink-hover, var(--ink));
}
.filter-chip.chip-curated .chip-ico {
  color: var(--accent);
}
.filter-chip.chip-curated .chip-n {
  background: rgba(255, 255, 255, .18);
  color: var(--on-ink);
}
.filter-chip.chip-curated[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.filter-chip.chip-curated[aria-pressed="true"]:hover {
  background: var(--accent);
}
.filter-chip.chip-curated[aria-pressed="true"] .chip-ico {
  color: #fff;
}
.filter-chip.chip-curated[aria-pressed="true"] .chip-n {
  background: rgba(255, 255, 255, .22);
  color: #fff;
}
.filter-chip.chip-curated.is-zero:not([aria-pressed="true"]) {
  background: var(--ink);
  color: var(--on-ink);
  border-color: var(--ink);
  opacity: .55;
}
.filter-chip.chip-curated.is-zero:not([aria-pressed="true"]) .chip-n {
  background: rgba(255, 255, 255, .14);
  color: var(--on-ink);
}

.map-empty {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  z-index: 8;
  text-align: center;
  padding: 14px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  pointer-events: auto;
}
.map-empty[hidden] { display: none; }
.map-empty-text {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

@media (max-width: 640px) {
  .filter-chip .chip-label-full, .af-chip .chip-label-full { display: none; }
  .filter-chip .chip-label-short, .af-chip .chip-label-short { display: inline; }
  body.filters-open { overflow: hidden; }
  .filter-scrim {
    position: fixed;
    inset: 0;
    border-radius: 0;
    background: rgba(27, 22, 18, .28);
    z-index: 40;
  }
  .filter-panel {
    position: fixed;
    top: auto;
    right: 0;
    left: 0;
    bottom: 0;
    width: auto;
    max-height: 72vh;
    border-radius: 20px 20px 0 0;
    z-index: 50;
    animation: sheet .24s cubic-bezier(.2,.8,.2,1);
  }
  .filter-panel .sheet-handle {
    display: block;
    flex: none;
    width: 40px; height: 4px;
    margin: 8px auto 0;
    border-radius: 2px; background: var(--line);
  }
  .filter-search { font-size: 16px; height: 42px; }
  .map-empty { top: 40vw; }
}

@media (prefers-reduced-motion: reduce) {
  .filter-panel { animation: none; }
}

/* === Seasonal: Thanksgiving 2026 (removable) ===
   Auto-on in America/New_York from 25 Nov 2026 00:00 through 27 Nov 2026 23:59.
   Preview with ?theme=thanksgiving; force off with ?theme=off.
   Delete this block plus the matching marked blocks in index.html to remove. */
:root[data-season="thanksgiving"]:not([data-theme="dark"]):not([data-fun]) {
  --bg: #f4e4cc;
  --paper: #fbf1e0;
  --land: #e8c894;
  --land-ca: #f0d6ae;
  --water: #fbf1e0;
  --line: #e8d4b0;
}
:root[data-season="thanksgiving"][data-theme="dark"] {
  --bg: #14110d;
  --paper: #1c1813;
  --land: #3a3024;
  --land-ca: #322a20;
  --water: #1c1813;
  --line: #3a342c;
}
:root[data-season="thanksgiving"] {
  --thanks-amber: #c4842a;
  --thanks-brown: #5c3a22;
  --thanks-cranberry: #8b2e2e;
}
:root[data-season="thanksgiving"] .title-live::after {
  content: "";
  display: inline-block;
  width: .55em;
  height: .55em;
  margin-left: .3em;
  vertical-align: .06em;
  background-color: var(--thanks-cranberry);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2.1c.3 1.4.9 2.5 1.8 3.1-.8.5-1.3 1.3-1.3 2.2 1.2-.3 2.4.2 3.2 1.3-.1-1.3.5-2.4 1.5-3.1.3 1.4 1.2 2.5 2.4 2.9-.3-1.2.2-2.5 1.3-3.2-.1 1.5.6 2.9 2 3.5-1.3.5-2.1 1.7-2 3.1 1-.1 2 .3 2.6 1.2-1.5.4-2.4 1.7-2.3 3.2 1.1.1 1.8.7 2.2 1.6-1.8.2-3.1 1.4-3.4 3 .7-.1 1.4 0 2 .6-1.6 1-3.5.8-4.9-1.1-.2 1.2-.9 2.2-1.9 2.8V22h-1.6v-3.4c-1-.6-1.7-1.6-1.9-2.8-1.4 1.9-3.3 2.1-4.9 1.1.6-.6 1.3-.7 2-.6-.3-1.6-1.6-2.8-3.4-3 .4-.9 1.1-1.5 2.2-1.6.1-1.5-.8-2.8-2.3-3.2.6-.9 1.6-1.3 2.6-1.2.1-1.4-.7-2.6-2-3.1 1.4-.6 2.1-2 2-3.5 1.1.7 1.6 2 1.3 3.2 1.2-.4 2.1-1.5 2.4-2.9 1 .7 1.6 1.8 1.5 3.1.8-1.1 2-1.6 3.2-1.3 0-.9-.5-1.7-1.3-2.2.9-.6 1.5-1.7 1.8-3.1z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2.1c.3 1.4.9 2.5 1.8 3.1-.8.5-1.3 1.3-1.3 2.2 1.2-.3 2.4.2 3.2 1.3-.1-1.3.5-2.4 1.5-3.1.3 1.4 1.2 2.5 2.4 2.9-.3-1.2.2-2.5 1.3-3.2-.1 1.5.6 2.9 2 3.5-1.3.5-2.1 1.7-2 3.1 1-.1 2 .3 2.6 1.2-1.5.4-2.4 1.7-2.3 3.2 1.1.1 1.8.7 2.2 1.6-1.8.2-3.1 1.4-3.4 3 .7-.1 1.4 0 2 .6-1.6 1-3.5.8-4.9-1.1-.2 1.2-.9 2.2-1.9 2.8V22h-1.6v-3.4c-1-.6-1.7-1.6-1.9-2.8-1.4 1.9-3.3 2.1-4.9 1.1.6-.6 1.3-.7 2-.6-.3-1.6-1.6-2.8-3.4-3 .4-.9 1.1-1.5 2.2-1.6.1-1.5-.8-2.8-2.3-3.2.6-.9 1.6-1.3 2.6-1.2.1-1.4-.7-2.6-2-3.1 1.4-.6 2.1-2 2-3.5 1.1.7 1.6 2 1.3 3.2 1.2-.4 2.1-1.5 2.4-2.9 1 .7 1.6 1.8 1.5 3.1.8-1.1 2-1.6 3.2-1.3 0-.9-.5-1.7-1.3-2.2.9-.6 1.5-1.7 1.8-3.1z'/%3E%3C/svg%3E") center / contain no-repeat;
  pointer-events: none;
}
.thanks-banner {
  display: none;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  min-height: 36px;
  box-sizing: border-box;
  padding: 6px 44px 6px 16px;
  background: #f3ddc0;
  color: #1b1612;
  border-bottom: 1px solid #e0b56a;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.3;
  text-align: center;
}
:root[data-season="thanksgiving"]:not([data-thanks-banner="off"]) .thanks-banner {
  display: flex;
}
:root[data-theme="dark"][data-season="thanksgiving"] .thanks-banner {
  background: #3a2a18;
  color: #f6e8d0;
  border-bottom-color: #8a6230;
}
:root[data-theme="dark"][data-season="thanksgiving"] .thanks-banner-dismiss:hover {
  background: rgba(246, 232, 208, .12);
}
.thanks-banner-text { margin: 0; }
.thanks-banner-dismiss {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.thanks-banner-dismiss:hover { background: rgba(92, 58, 34, .1); }
.thanks-banner-dismiss svg { width: 14px; height: 14px; display: block; }
.thanks-leaves {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 150px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
:root[data-season="thanksgiving"] .thanks-leaves { display: block; }
:root[data-season="thanksgiving"] .site-header { position: relative; z-index: 26; }
.thanks-leaf {
  position: absolute;
  top: -18px;
  width: 16px;
  height: 16px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2.1c.3 1.4.9 2.5 1.8 3.1-.8.5-1.3 1.3-1.3 2.2 1.2-.3 2.4.2 3.2 1.3-.1-1.3.5-2.4 1.5-3.1.3 1.4 1.2 2.5 2.4 2.9-.3-1.2.2-2.5 1.3-3.2-.1 1.5.6 2.9 2 3.5-1.3.5-2.1 1.7-2 3.1 1-.1 2 .3 2.6 1.2-1.5.4-2.4 1.7-2.3 3.2 1.1.1 1.8.7 2.2 1.6-1.8.2-3.1 1.4-3.4 3 .7-.1 1.4 0 2 .6-1.6 1-3.5.8-4.9-1.1-.2 1.2-.9 2.2-1.9 2.8V22h-1.6v-3.4c-1-.6-1.7-1.6-1.9-2.8-1.4 1.9-3.3 2.1-4.9 1.1.6-.6 1.3-.7 2-.6-.3-1.6-1.6-2.8-3.4-3 .4-.9 1.1-1.5 2.2-1.6.1-1.5-.8-2.8-2.3-3.2.6-.9 1.6-1.3 2.6-1.2.1-1.4-.7-2.6-2-3.1 1.4-.6 2.1-2 2-3.5 1.1.7 1.6 2 1.3 3.2 1.2-.4 2.1-1.5 2.4-2.9 1 .7 1.6 1.8 1.5 3.1.8-1.1 2-1.6 3.2-1.3 0-.9-.5-1.7-1.3-2.2.9-.6 1.5-1.7 1.8-3.1z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2.1c.3 1.4.9 2.5 1.8 3.1-.8.5-1.3 1.3-1.3 2.2 1.2-.3 2.4.2 3.2 1.3-.1-1.3.5-2.4 1.5-3.1.3 1.4 1.2 2.5 2.4 2.9-.3-1.2.2-2.5 1.3-3.2-.1 1.5.6 2.9 2 3.5-1.3.5-2.1 1.7-2 3.1 1-.1 2 .3 2.6 1.2-1.5.4-2.4 1.7-2.3 3.2 1.1.1 1.8.7 2.2 1.6-1.8.2-3.1 1.4-3.4 3 .7-.1 1.4 0 2 .6-1.6 1-3.5.8-4.9-1.1-.2 1.2-.9 2.2-1.9 2.8V22h-1.6v-3.4c-1-.6-1.7-1.6-1.9-2.8-1.4 1.9-3.3 2.1-4.9 1.1.6-.6 1.3-.7 2-.6-.3-1.6-1.6-2.8-3.4-3 .4-.9 1.1-1.5 2.2-1.6.1-1.5-.8-2.8-2.3-3.2.6-.9 1.6-1.3 2.6-1.2.1-1.4-.7-2.6-2-3.1 1.4-.6 2.1-2 2-3.5 1.1.7 1.6 2 1.3 3.2 1.2-.4 2.1-1.5 2.4-2.9 1 .7 1.6 1.8 1.5 3.1.8-1.1 2-1.6 3.2-1.3 0-.9-.5-1.7-1.3-2.2.9-.6 1.5-1.7 1.8-3.1z'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0;
  animation: thanks-fall 16s linear infinite;
}
.thanks-leaf-1 { left: 12%; background-color: var(--thanks-amber, #c4842a); animation-duration: 15s; animation-delay: -2s; }
.thanks-leaf-2 { left: 68%; width: 13px; height: 13px; background-color: var(--thanks-cranberry, #8b2e2e); animation-duration: 18s; animation-delay: -8s; }
.thanks-leaf-3 { left: 88%; width: 15px; height: 15px; background-color: var(--thanks-brown, #5c3a22); animation-duration: 17s; animation-delay: -5s; }
@keyframes thanks-fall {
  0%   { transform: translate3d(0, -8px, 0) rotate(-16deg); opacity: 0; }
  10%  { opacity: .7; }
  50%  { transform: translate3d(16px, 64px, 0) rotate(18deg); opacity: .65; }
  100% { transform: translate3d(-10px, 140px, 0) rotate(-12deg); opacity: 0; }
}
@media (max-width: 640px) {
  .thanks-banner { font-size: 13px; min-height: 34px; padding-right: 40px; }
  /* Keep the header tidy on small screens; the title leaf is enough. */
  .thanks-leaves { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .thanks-leaves { display: none !important; }
  .thanks-leaf { animation: none !important; }
}
body.still .thanks-banner,
body.still .thanks-leaves,
body.print .thanks-banner,
body.print .thanks-leaves { display: none !important; }
@media print {
  .thanks-banner, .thanks-leaves { display: none !important; }
}
/* Seasonal on top of a fun theme (Terminal): keep the greeting, restyle it as a comment line. */
:root[data-season="thanksgiving"][data-fun] {
  --thanks-amber: #ff8a1f;
  --thanks-brown: #b9722a;
  --thanks-cranberry: #ff6b57;
}
:root[data-season="thanksgiving"][data-theme="terminal"] .thanks-banner {
  background: #141414; color: var(--ink); border-bottom: 1px dashed var(--accent);
  font-weight: 400; font-size: 13px; letter-spacing: .01em;
}
:root[data-season="thanksgiving"][data-theme="terminal"] .thanks-banner-text::before { content: "// "; color: var(--ink-3); }
:root[data-season="thanksgiving"][data-theme="terminal"] .thanks-banner-dismiss { color: var(--ink-3); }
:root[data-season="thanksgiving"][data-theme="terminal"] .thanks-banner-dismiss:hover { background: var(--accent); color: #141414; }
:root[data-season="thanksgiving"][data-theme="terminal"] .title-live::after {
  -webkit-mask: none; mask: none; content: ""; background: var(--accent); width: .55ch; height: .95em; margin-left: .35ch; vertical-align: -.1em;
}
/* === End seasonal block === */

/* ==========================================================================
   Fun theme: Terminal   (:root[data-theme="terminal"], data-fun="1")
   Inspired by the look of plain-text terminal sites: monospace type, bracketed
   [links], a blinking cursor, dashed rules and inverted-block hover. Brand kept:
   orange on black. Adds nothing to light or dark. To add another fun theme,
   copy this variable block, change the values, and add a THEMES entry in
   index.html (set fun: true). Everything below the variable block is the
   Terminal "flavor" and is optional for a simple recolor theme.
   ========================================================================== */
@font-face { font-family: "IBM Plex Mono"; font-weight: 300; font-style: normal; font-display: swap;
  src: url("vendor/ibm-plex-mono-latin-300-normal.woff2?v=20261204f") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("vendor/ibm-plex-mono-latin-400-normal.woff2?v=20261204f") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: italic; font-display: swap;
  src: url("vendor/ibm-plex-mono-latin-400-italic.woff2?v=20261204f") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("vendor/ibm-plex-mono-latin-600-normal.woff2?v=20261204f") format("woff2"); }

:root[data-theme="terminal"] {
  color-scheme: dark;
  --font: "IBM Plex Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "DejaVu Sans Mono", "Courier New", monospace;
  --bg: #141414;
  --paper: #141414;
  --land: #1b1b1b;
  --land-dot: #565656;
  --land-ca: #1b1b1b;
  --name: rgba(225, 225, 225, .42);
  --country-name: rgba(225, 225, 225, .34);
  --water: #141414;
  --inner-line: rgba(225, 225, 225, .2);
  --country-line: #8a8a8a;
  --ink: #e1e1e1;
  --ink-2: #b9b4aa;
  --ink-3: #8f8f8f;
  --on-ink: #141414;
  --ink-hover: #ffffff;
  --line: #3b3b3b;
  --accent: #ff8a1f;
  --pin: #ff8a1f;
  --ring: #1beb9e;
  --dot-stroke: #141414;
  --leader: #8a8a8a;
  --legend-bg: rgba(20, 20, 20, .94);
  --pin-lo: #ffbd7a; --pin-mid: #ff8a1f; --pin-hi: #d4560a; --pin-none: #6f6f6f;
  --chip: transparent;
  --chip-hover: rgba(255, 138, 31, .16);
  --hover: rgba(255, 138, 31, .12);
  --active: rgba(255, 138, 31, .2);
  --radius: 0;
  --shadow: none;
  --shadow-lg: 0 0 0 1px rgba(255, 138, 31, .25), 0 12px 40px rgba(0, 0, 0, .7);
  --country: #8f8f8f;
  /* flavor palette (the colors of the reference: green, blue, yellow, magenta) */
  --t-green: #1beb9e;
  --t-blue: #18b6ff;
  --t-yellow: #dddd25;
  --t-pink: #ff45b4;
  --t-glow: 0 0 .9em rgba(255, 138, 31, .35);
  --t-scroll: #444; --t-track: #2a2a2a; --t-pin-glow: rgba(255, 138, 31, .75); --t-focus: rgba(255, 138, 31, .35); --t-scrim: rgba(0, 0, 0, .55);
  --drop-live: #c6e04a; --drop-soon: #2ec8e4; --drop-on-live: #141414; --drop-on-soon: #062026;
}

/* ---- base ---- */
:root[data-theme="terminal"] body { font: 14px/1.65 var(--font); letter-spacing: .01em; -webkit-font-smoothing: auto; }
:root[data-theme="terminal"] ::selection { background: var(--accent); color: var(--on-ink); }
:root[data-theme="terminal"] :focus-visible { outline: 1px dashed var(--accent); outline-offset: 3px; }
:root[data-theme="terminal"] * { border-radius: 0 !important; box-shadow: none; text-shadow: none; }
:root[data-theme="terminal"] { scrollbar-color: var(--t-scroll) var(--bg); scrollbar-width: thin; }
:root[data-theme="terminal"] a { text-decoration: none; }
:root[data-theme="terminal"] .discover-search-input:focus-visible, :root[data-theme="terminal"] .list-search:focus-visible, :root[data-theme="terminal"] .filter-search:focus-visible { outline: none; }

/* shared "bracket" idiom: [label]. Each control sets --c, its color. */
:root[data-theme="terminal"] .filter-chip, :root[data-theme="terminal"] .af-chip, :root[data-theme="terminal"] .filters-btn, :root[data-theme="terminal"] .list-sort-btn, :root[data-theme="terminal"] .card-links a, :root[data-theme="terminal"] .fav-toggle,
:root[data-theme="terminal"] .fav-btn, :root[data-theme="terminal"] .fav-banner-actions button, :root[data-theme="terminal"] .world-btn, :root[data-theme="terminal"] .world-back, :root[data-theme="terminal"] .print-now, :root[data-theme="terminal"] .print-back,
:root[data-theme="terminal"] .showing-clear, :root[data-theme="terminal"] .showing-offmap, :root[data-theme="terminal"] .clear-btn, :root[data-theme="terminal"] .list-empty-reset, :root[data-theme="terminal"] .map-empty-reset,
:root[data-theme="terminal"] .fav-action, :root[data-theme="terminal"] .fav-clear, :root[data-theme="terminal"] .fav-edit, :root[data-theme="terminal"] .card-tag {
  --c: var(--accent);
  background: transparent; border: 0; color: var(--c);
  padding: 0 .2ch; min-height: 0;
  font: inherit; font-size: 13px; font-weight: 400; letter-spacing: .01em;
  text-transform: lowercase; text-decoration: none; white-space: nowrap;
  filter: none; opacity: 1;
}
:root[data-theme="terminal"] .filter-chip::before, :root[data-theme="terminal"] .af-chip::before, :root[data-theme="terminal"] .filters-btn::before, :root[data-theme="terminal"] .list-sort-btn::before,
:root[data-theme="terminal"] .card-links a::before, :root[data-theme="terminal"] .fav-toggle::before, :root[data-theme="terminal"] .fav-btn::before, :root[data-theme="terminal"] .fav-banner-actions button::before,
:root[data-theme="terminal"] .world-btn::before, :root[data-theme="terminal"] .world-back::before, :root[data-theme="terminal"] .print-now::before, :root[data-theme="terminal"] .print-back::before,
:root[data-theme="terminal"] .showing-clear::before, :root[data-theme="terminal"] .showing-offmap::before, :root[data-theme="terminal"] .clear-btn::before, :root[data-theme="terminal"] .list-empty-reset::before,
:root[data-theme="terminal"] .map-empty-reset::before, :root[data-theme="terminal"] .fav-action::before, :root[data-theme="terminal"] .fav-clear::before, :root[data-theme="terminal"] .card-tag::before { content: "["; color: var(--ink-3); margin-right: .15ch; }
:root[data-theme="terminal"] .filter-chip::after, :root[data-theme="terminal"] .af-chip::after, :root[data-theme="terminal"] .filters-btn::after, :root[data-theme="terminal"] .list-sort-btn::after,
:root[data-theme="terminal"] .card-links a::after, :root[data-theme="terminal"] .fav-toggle::after, :root[data-theme="terminal"] .fav-btn::after, :root[data-theme="terminal"] .fav-banner-actions button::after,
:root[data-theme="terminal"] .world-btn::after, :root[data-theme="terminal"] .world-back::after, :root[data-theme="terminal"] .print-now::after, :root[data-theme="terminal"] .print-back::after,
:root[data-theme="terminal"] .showing-clear::after, :root[data-theme="terminal"] .showing-offmap::after, :root[data-theme="terminal"] .clear-btn::after, :root[data-theme="terminal"] .list-empty-reset::after,
:root[data-theme="terminal"] .map-empty-reset::after, :root[data-theme="terminal"] .fav-action::after, :root[data-theme="terminal"] .fav-clear::after, :root[data-theme="terminal"] .card-tag::after { content: "]"; color: var(--ink-3); margin-left: .15ch; }
/* hover / pressed = inverted block, like the reference */
:root[data-theme="terminal"] .filter-chip:hover, :root[data-theme="terminal"] .af-chip:hover, :root[data-theme="terminal"] .filters-btn:hover, :root[data-theme="terminal"] .list-sort-btn:hover,
:root[data-theme="terminal"] .card-links a:hover, :root[data-theme="terminal"] .fav-toggle:hover, :root[data-theme="terminal"] .fav-btn:hover:not(:disabled), :root[data-theme="terminal"] .fav-banner-actions button:hover,
:root[data-theme="terminal"] .world-btn:hover, :root[data-theme="terminal"] .world-back:hover, :root[data-theme="terminal"] .print-now:hover, :root[data-theme="terminal"] .print-back:hover, :root[data-theme="terminal"] .showing-clear:hover,
:root[data-theme="terminal"] .showing-offmap:hover, :root[data-theme="terminal"] .clear-btn:hover:not([disabled]), :root[data-theme="terminal"] .list-empty-reset:hover, :root[data-theme="terminal"] .map-empty-reset:hover,
:root[data-theme="terminal"] .fav-action:hover:not(:disabled), :root[data-theme="terminal"] .fav-clear:hover, :root[data-theme="terminal"] .filter-chip[aria-pressed="true"], :root[data-theme="terminal"] .list-sort-btn[aria-pressed="true"],
:root[data-theme="terminal"] .filters-btn[aria-expanded="true"], :root[data-theme="terminal"] .fav-toggle[aria-pressed="true"], :root[data-theme="terminal"] .world-btn:focus-visible {
  background: var(--c); color: var(--on-ink); opacity: 1;
}
:root[data-theme="terminal"] .filter-chip:hover::before, :root[data-theme="terminal"] .filter-chip:hover::after, :root[data-theme="terminal"] .filter-chip[aria-pressed="true"]::before, :root[data-theme="terminal"] .filter-chip[aria-pressed="true"]::after,
:root[data-theme="terminal"] .list-sort-btn:hover::before, :root[data-theme="terminal"] .list-sort-btn:hover::after, :root[data-theme="terminal"] .list-sort-btn[aria-pressed="true"]::before, :root[data-theme="terminal"] .list-sort-btn[aria-pressed="true"]::after,
:root[data-theme="terminal"] .filters-btn:hover::before, :root[data-theme="terminal"] .filters-btn:hover::after, :root[data-theme="terminal"] .filters-btn[aria-expanded="true"]::before, :root[data-theme="terminal"] .filters-btn[aria-expanded="true"]::after,
:root[data-theme="terminal"] .fav-toggle:hover::before, :root[data-theme="terminal"] .fav-toggle:hover::after, :root[data-theme="terminal"] .fav-toggle[aria-pressed="true"]::before, :root[data-theme="terminal"] .fav-toggle[aria-pressed="true"]::after,
:root[data-theme="terminal"] .card-links a:hover::before, :root[data-theme="terminal"] .card-links a:hover::after, :root[data-theme="terminal"] .af-chip:hover::before, :root[data-theme="terminal"] .af-chip:hover::after,
:root[data-theme="terminal"] .world-btn:hover::before, :root[data-theme="terminal"] .world-btn:hover::after, :root[data-theme="terminal"] .world-back:hover::before, :root[data-theme="terminal"] .world-back:hover::after,
:root[data-theme="terminal"] .fav-btn:hover::before, :root[data-theme="terminal"] .fav-btn:hover::after, :root[data-theme="terminal"] .fav-banner-actions button:hover::before, :root[data-theme="terminal"] .fav-banner-actions button:hover::after { color: var(--on-ink); }
:root[data-theme="terminal"] .filter-chip[aria-pressed="true"] .chip-n, :root[data-theme="terminal"] .filter-chip:hover .chip-n { color: var(--on-ink); background: transparent; }
:root[data-theme="terminal"] .is-zero:not([aria-pressed="true"]) { opacity: .5; }
:root[data-theme="terminal"] .fav-toggle:disabled, :root[data-theme="terminal"] .fav-btn:disabled, :root[data-theme="terminal"] .fav-action:disabled, :root[data-theme="terminal"] .clear-btn[disabled] { opacity: .4; }

/* colors by role */
:root[data-theme="terminal"] .card-links a, :root[data-theme="terminal"] .world-btn, :root[data-theme="terminal"] .world-back, :root[data-theme="terminal"] .print-back { --c: var(--t-blue); }
:root[data-theme="terminal"] .card-links a.primary, :root[data-theme="terminal"] .fav-banner-save, :root[data-theme="terminal"] .fav-btn-primary, :root[data-theme="terminal"] .print-now, :root[data-theme="terminal"] .filter-chip.chip-curated { --c: var(--t-green); }
:root[data-theme="terminal"] .fav-toggle, :root[data-theme="terminal"] .fav-banner-exit { --c: var(--t-yellow); }
:root[data-theme="terminal"] .list-sort-btn, :root[data-theme="terminal"] .showing-clear, :root[data-theme="terminal"] .showing-offmap, :root[data-theme="terminal"] .clear-btn, :root[data-theme="terminal"] .fav-action, :root[data-theme="terminal"] .fav-clear, :root[data-theme="terminal"] .list-empty-reset, :root[data-theme="terminal"] .map-empty-reset { --c: var(--ink-2); }
:root[data-theme="terminal"] .card-tag { --c: var(--t-pink); padding: 0; margin: 2px 0 8px; font-size: 12px; }
:root[data-theme="terminal"] .filter-chip .chip-n { background: transparent; color: var(--ink-3); padding: 0; margin-left: .6ch; font-size: 12px; }
:root[data-theme="terminal"] .filter-chip .chip-ico { display: none; }
:root[data-theme="terminal"] .filter-chip.chip-curated, :root[data-theme="terminal"] .filter-chip.chip-curated.is-zero:not([aria-pressed="true"]) { background: transparent; color: var(--c); border: 0; }
:root[data-theme="terminal"] .filter-chip.chip-curated:hover, :root[data-theme="terminal"] .filter-chip.chip-curated[aria-pressed="true"] { background: var(--c); color: var(--on-ink); }
:root[data-theme="terminal"] .filter-chip.chip-curated .chip-n { background: transparent; color: var(--ink-3); }
:root[data-theme="terminal"] .filter-chip.chip-curated[aria-pressed="true"] .chip-n, :root[data-theme="terminal"] .filter-chip.chip-curated:hover .chip-n { color: var(--on-ink); background: transparent; }
:root[data-theme="terminal"] .af-chip { background: transparent; border: 0; min-height: 22px; }
:root[data-theme="terminal"] .af-x { width: auto; height: auto; padding: 0 .3ch; color: inherit; }
:root[data-theme="terminal"] .af-x:hover { background: transparent; color: var(--on-ink); }
:root[data-theme="terminal"] .filters-btn { min-height: 36px; padding: 0 .4ch; display: inline-flex; align-items: center; gap: .6ch; }
:root[data-theme="terminal"] .filters-badge { background: var(--accent); color: var(--on-ink); border: 0; top: -6px; right: -8px; min-width: 0; height: auto; padding: 0 .6ch; line-height: 1.5; }
:root[data-theme="terminal"] .filters-btn[aria-expanded="true"] .filters-badge { background: var(--paper); color: var(--accent); }

/* ---- header ---- */
:root[data-theme="terminal"] .site-header::before {
  content: "~/machined-pens $ ./maker-map";
  content: "~/machined-pens $ ./maker-map" / "";
  display: block; margin: 0 0 14px; font-size: 12.5px; color: var(--ink-3);
}
:root[data-theme="terminal"] .site-header { padding-bottom: 8px; }
:root[data-theme="terminal"] .site-header::after {
  content: "------------------------------------------------------------------------------------------------------------------------------------------------------------";
  content: "------------------------------------------------------------------------------------------------------------------------------------------------------------" / "";
  display: block; overflow: hidden; white-space: nowrap; margin-top: 14px; color: var(--t-green); opacity: .85; line-height: 1;
}
:root[data-theme="terminal"] .title { font-weight: 300; font-size: 38px; letter-spacing: -.01em; line-height: 1.15; color: var(--ink); }
:root[data-theme="terminal"] .title-live::after {
  content: ""; display: inline-block; width: .55ch; height: .95em; margin-left: .35ch; vertical-align: -.1em;
  background: var(--accent); animation: t-blink 1s steps(1, end) infinite;
  -webkit-mask: none; mask: none;
}
@keyframes t-blink { 50% { opacity: 0; } }
:root[data-theme="terminal"] .subtitle { color: var(--t-blue); margin-top: 6px; font-size: 13px; border: 0; padding: 0 .2ch; }
:root[data-theme="terminal"] .subtitle::before { content: "["; color: var(--ink-3); margin-right: .15ch; }
:root[data-theme="terminal"] .subtitle::after { content: "]"; color: var(--ink-3); margin-left: .15ch; }
:root[data-theme="terminal"] .subtitle:hover { background: var(--t-blue); color: var(--on-ink); }
:root[data-theme="terminal"] .subtitle:hover::before, :root[data-theme="terminal"] .subtitle:hover::after { color: var(--on-ink); }
:root[data-theme="terminal"] .theme-toggle { background: transparent; border: 1px dashed var(--accent); color: var(--accent); }
:root[data-theme="terminal"] .theme-toggle:hover, :root[data-theme="terminal"] .theme-toggle[aria-expanded="true"] { background: var(--accent); color: var(--on-ink); }
:root[data-theme="terminal"] .theme-menu { border: 1px dashed var(--accent); background: var(--paper); width: 252px; }
:root[data-theme="terminal"] .theme-opt { font-size: 14px; font-weight: 400; text-transform: lowercase; }
:root[data-theme="terminal"] .theme-opt:hover, :root[data-theme="terminal"] .theme-opt:focus-visible { background: var(--accent); color: var(--on-ink); }
:root[data-theme="terminal"] .theme-opt:hover .theme-opt-check, :root[data-theme="terminal"] .theme-opt:focus-visible .theme-opt-check { background: var(--on-ink); }
:root[data-theme="terminal"] .theme-opt[aria-checked="true"] { background: transparent; color: var(--accent); }
:root[data-theme="terminal"] .theme-opt[aria-checked="true"]:hover, :root[data-theme="terminal"] .theme-opt[aria-checked="true"]:focus-visible { background: var(--accent); color: var(--on-ink); }
:root[data-theme="terminal"] .theme-opt-label::before { content: "["; color: var(--ink-3); margin-right: .2ch; }
:root[data-theme="terminal"] .theme-opt-label::after { content: "]"; color: var(--ink-3); margin-left: .2ch; }
:root[data-theme="terminal"] .theme-opt:hover .theme-opt-label::before, :root[data-theme="terminal"] .theme-opt:hover .theme-opt-label::after,
:root[data-theme="terminal"] .theme-opt:focus-visible .theme-opt-label::before, :root[data-theme="terminal"] .theme-opt:focus-visible .theme-opt-label::after { color: var(--on-ink); }
:root[data-theme="terminal"] .theme-sw { border: 1px dashed var(--line); text-transform: none; }
:root[data-theme="terminal"] .theme-sep { background: transparent; border-top: 1px dashed var(--line); }
:root[data-theme="terminal"] .theme-lab { font-size: 12px; font-weight: 400; letter-spacing: .02em; text-transform: lowercase; color: var(--ink-3); }
:root[data-theme="terminal"] .theme-lab::before { content: "# "; }
:root[data-theme="terminal"] .mode-opt { border: 1px dashed var(--line); background: transparent; color: var(--ink); font-size: 13px; font-weight: 400; text-transform: lowercase; }
:root[data-theme="terminal"] .mode-opt:hover, :root[data-theme="terminal"] .mode-opt:focus-visible { background: var(--accent); color: var(--on-ink); box-shadow: none; }
:root[data-theme="terminal"] .mode-opt[aria-checked="true"] { border: 1px solid var(--accent); color: var(--accent); background: transparent; }
:root[data-theme="terminal"] .mode-opt[aria-checked="true"]:hover, :root[data-theme="terminal"] .mode-opt[aria-checked="true"]:focus-visible { background: var(--accent); color: var(--on-ink); }

/* ---- map panel ---- */
:root[data-theme="terminal"] .map-panel { border: 1px dashed var(--line); background: var(--paper); }
:root[data-theme="terminal"] .land, :root[data-theme="terminal"] .land-ca { fill: url(#t-dots); }
:root[data-theme="terminal"] .hi-inset-land { fill: url(#t-dots); }
:root[data-theme="terminal"] .country-border { stroke-dasharray: 5 3; stroke-width: .9px; }
:root[data-theme="terminal"] .inner-line { stroke-dasharray: 1 3; stroke-linecap: round; }
:root[data-theme="terminal"] .hi-inset-frame { stroke-dasharray: 4 3; fill: var(--paper); }
:root[data-theme="terminal"] .region-label, :root[data-theme="terminal"] .country-name-label { font-family: var(--font); font-weight: 400; letter-spacing: .08em; text-transform: uppercase; }
:root[data-theme="terminal"] .pin .dot { filter: drop-shadow(0 0 3px var(--t-pin-glow)); }
:root[data-theme="terminal"] .pin.inactive .dot { filter: none; fill: var(--paper); }
:root[data-theme="terminal"] .pin .ring { stroke-width: 1.6; }
:root[data-theme="terminal"] .country-pin .dot { filter: drop-shadow(0 0 3px var(--t-pin-glow)); }
:root[data-theme="terminal"] .legend { background: var(--legend-bg); border: 1px dashed var(--line); backdrop-filter: none; -webkit-backdrop-filter: none; color: var(--ink-2); font-size: 12px; }
:root[data-theme="terminal"] .legend-row span { text-transform: lowercase; }
:root[data-theme="terminal"] .world-btn, :root[data-theme="terminal"] .world-back { background: var(--paper); padding: 0 .4ch; min-height: 28px; font-weight: 400; }
:root[data-theme="terminal"] .world-back { min-height: 32px; }
:root[data-theme="terminal"] .world-btn, :root[data-theme="terminal"] .world-back { text-transform: none; }
:root[data-theme="terminal"] .world-btn:hover, :root[data-theme="terminal"] .world-back:hover { background: var(--c); color: var(--on-ink); }

/* ---- search / discover bar ---- */
:root[data-theme="terminal"] .discover-bar { background: var(--paper); border-bottom: 1px dashed var(--line); }
:root[data-theme="terminal"] .discover-search-box { background: transparent; border: 1px dashed var(--ink-3); gap: .6ch; padding-left: 10px; }
:root[data-theme="terminal"] .discover-search-box:focus-within { border: 1px solid var(--accent); }
:root[data-theme="terminal"] .discover-search-ico { display: none; }
:root[data-theme="terminal"] .discover-search-box::before { content: ">"; color: var(--accent); font-weight: 600; font-size: 14px; flex: none; text-shadow: var(--t-glow); }
:root[data-theme="terminal"] .discover-search-input { order: 2; font-size: 13px; font-weight: 400; font-family: var(--font); color: var(--ink); caret-color: var(--accent); caret-shape: block; }
:root[data-theme="terminal"] .discover-search-input::placeholder { color: var(--ink-3); font-style: italic; }
:root[data-theme="terminal"] .discover-search-box::after {
  content: ""; order: 1; flex: none; width: .55ch; height: 1.05em; margin-right: -.4ch;
  background: var(--accent); animation: t-blink 1s steps(1, end) infinite;
}
:root[data-theme="terminal"] .discover-search-box:focus-within::after,
:root[data-theme="terminal"] .discover-search-box:has(.discover-search-input:not(:placeholder-shown))::after { display: none; }
:root[data-theme="terminal"] .discover-search-clear { order: 3; color: var(--ink-3); }
:root[data-theme="terminal"] .discover-search-clear:hover { background: var(--accent); color: var(--on-ink); }
:root[data-theme="terminal"] .discover-search-box .filter-suggest { order: 4; }
:root[data-theme="terminal"] .filter-suggest { background: var(--paper); border: 1px dashed var(--accent); padding: 2px; }
:root[data-theme="terminal"] .filter-suggest li { padding: 6px 10px; }
:root[data-theme="terminal"] .filter-suggest li:hover, :root[data-theme="terminal"] .filter-suggest li[aria-selected="true"] { background: var(--accent); }
:root[data-theme="terminal"] .filter-suggest li:hover .filter-suggest-name, :root[data-theme="terminal"] .filter-suggest li:hover .filter-suggest-place,
:root[data-theme="terminal"] .filter-suggest li[aria-selected="true"] .filter-suggest-name, :root[data-theme="terminal"] .filter-suggest li[aria-selected="true"] .filter-suggest-place { color: var(--on-ink); }
:root[data-theme="terminal"] .filter-suggest-name { font-weight: 600; }
:root[data-theme="terminal"] .discover-hint, :root[data-theme="terminal"] .showing-count, :root[data-theme="terminal"] .showing-dot { font-size: 12px; color: var(--ink-3); }
:root[data-theme="terminal"] .showing-count { color: var(--ink-2); font-weight: 400; }
:root[data-theme="terminal"] .showing-count::before, :root[data-theme="terminal"] .discover-hint::before { content: "// "; color: var(--ink-3); }

/* ---- timeline ---- */
:root[data-theme="terminal"] .map-controls, :root[data-theme="terminal"] .fav-bar { border-top: 1px dashed var(--line); }
:root[data-theme="terminal"] .play {
  --c: var(--t-green);
  width: auto; height: auto; min-height: 36px; padding: 0 .4ch; border: 0; background: transparent; color: var(--c);
  display: inline-flex; align-items: center; font: inherit; font-size: 13px; transform: none;
}
:root[data-theme="terminal"] .play svg { display: none !important; }
:root[data-theme="terminal"] .play::before { content: "[play]"; }
:root[data-theme="terminal"] .play.playing::before { content: "[pause]"; }
:root[data-theme="terminal"] .play:hover { background: var(--c); color: var(--on-ink); }
:root[data-theme="terminal"] input[type="range"]::-webkit-slider-runnable-track { height: 8px; background: linear-gradient(90deg, var(--accent) 0 var(--fill), var(--t-track) var(--fill) 100%); border: 1px solid var(--line); }
:root[data-theme="terminal"] input[type="range"]::-moz-range-track { height: 8px; background: var(--t-track); border: 1px solid var(--line); }
:root[data-theme="terminal"] input[type="range"]::-moz-range-progress { height: 8px; background: var(--accent); }
:root[data-theme="terminal"] input[type="range"]::-webkit-slider-thumb { width: 12px; height: 26px; margin-top: -10px; background: var(--accent); border: 0; box-shadow: var(--t-glow); }
:root[data-theme="terminal"] input[type="range"]::-moz-range-thumb { width: 12px; height: 26px; background: var(--accent); border: 0; }
:root[data-theme="terminal"] input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--t-focus); }
:root[data-theme="terminal"] .year-value { font-weight: 300; font-size: 30px; color: var(--accent); text-shadow: var(--t-glow); letter-spacing: -.02em; }
:root[data-theme="terminal"] .year-count { color: var(--ink-2); }
:root[data-theme="terminal"] .slider-ends { color: var(--ink-3); }

/* ---- card ---- */
:root[data-theme="terminal"] .card { background: var(--paper); border: 1px dashed var(--accent); box-shadow: var(--shadow-lg); animation: none; }
:root[data-theme="terminal"] .card-name { font-weight: 600; font-size: 16px; }
:root[data-theme="terminal"] .card-name::before { content: ">"; color: var(--accent); margin-right: .2ch; flex: none; }
:root[data-theme="terminal"] .card-meta { color: var(--ink-2); }
:root[data-theme="terminal"] .card-meta .prev .k { color: var(--ink-3); font-weight: 400; }
:root[data-theme="terminal"] .card-meta .list-credit a { color: var(--t-blue); font-weight: 400; }
:root[data-theme="terminal"] .card-meta .list-credit a:hover { background: var(--t-blue); color: var(--on-ink); }
:root[data-theme="terminal"] .card-note { color: var(--ink-2); }
:root[data-theme="terminal"] .card-close, :root[data-theme="terminal"] .card-star { color: var(--ink-3); }
:root[data-theme="terminal"] .card-close:hover { background: var(--accent); color: var(--on-ink); }
:root[data-theme="terminal"] .card-star:hover { background: transparent; color: var(--t-yellow); }
:root[data-theme="terminal"] .card-star[aria-pressed="true"] { color: var(--t-yellow); }
:root[data-theme="terminal"] .card-update a { color: var(--ink-3); }
:root[data-theme="terminal"] .card-update a:hover { color: var(--accent); }
:root[data-theme="terminal"] .card-links a svg { display: none; }
:root[data-theme="terminal"] .card-links a.primary { background: transparent; }
:root[data-theme="terminal"] .card-links a.primary:hover { background: var(--c); }
:root[data-theme="terminal"] .fav-limit-note { color: var(--ink-3); }

/* ---- list ---- */
:root[data-theme="terminal"] .list-title { font-weight: 300; font-size: 24px; letter-spacing: -.01em; }
:root[data-theme="terminal"] .list-title::before { content: "$ ls "; color: var(--accent); }
:root[data-theme="terminal"] .list-search, :root[data-theme="terminal"] .list-filter, :root[data-theme="terminal"] .filter-search { background: transparent; border: 1px dashed var(--ink-3); color: var(--ink); font-family: var(--font); font-size: 13px; caret-color: var(--accent); caret-shape: block; }
:root[data-theme="terminal"] .list-search:focus, :root[data-theme="terminal"] .filter-search:focus { border: 1px solid var(--accent); outline: none; }
:root[data-theme="terminal"] .list-search::placeholder, :root[data-theme="terminal"] .filter-search::placeholder { font-style: italic; color: var(--ink-3); }
:root[data-theme="terminal"] .list-search-wrap { position: relative; }
:root[data-theme="terminal"] .list-search { padding-left: 2.6ch; }
:root[data-theme="terminal"] .list-search-wrap::before { content: ">"; position: absolute; left: 1.1ch; top: 0; height: 40px; line-height: 40px; color: var(--accent); font-weight: 600; z-index: 1; pointer-events: none; }
:root[data-theme="terminal"] .list-filter option { background: var(--paper); color: var(--ink); }
:root[data-theme="terminal"] .list-sort-btn[aria-pressed="true"], :root[data-theme="terminal"] .list-sort-btn[aria-pressed="true"]:hover { background: var(--accent); color: var(--on-ink); }
:root[data-theme="terminal"] .list-filter { font-weight: 400; }
:root[data-theme="terminal"] .list-sort { border: 0; background: transparent; gap: 1.2ch; }
:root[data-theme="terminal"] .list-sort-btn { min-height: 36px; padding: 0 .4ch; border: 0; }
:root[data-theme="terminal"] .list-empty { color: var(--ink-3); }
:root[data-theme="terminal"] .list-empty::before { content: "// "; }
:root[data-theme="terminal"] .country-name { color: var(--accent); font-size: 13px; letter-spacing: .04em; font-weight: 600; text-transform: uppercase; }
:root[data-theme="terminal"] .country-name::before { content: "## "; color: var(--ink-3); }
:root[data-theme="terminal"] .region, :root[data-theme="terminal"] .maker-flat li { border-top: 1px dashed var(--line); }
:root[data-theme="terminal"] .region-name { color: var(--ink-3); font-weight: 400; font-size: 12px; letter-spacing: 0; text-transform: lowercase; }
:root[data-theme="terminal"] .region-name::before { content: "// "; }
:root[data-theme="terminal"] .maker-btn .m-name { font-weight: 400; }
:root[data-theme="terminal"] .maker-btn .m-meta { color: var(--ink-3); }
:root[data-theme="terminal"] .maker-btn:hover, :root[data-theme="terminal"] .maker-row:hover { background: transparent; }
:root[data-theme="terminal"] .maker-row:hover, :root[data-theme="terminal"] .maker-btn.active, :root[data-theme="terminal"] .maker-row.is-active { background: var(--accent); }
:root[data-theme="terminal"] .maker-row:hover .m-name, :root[data-theme="terminal"] .maker-row:hover .m-meta, :root[data-theme="terminal"] .maker-row.is-active .m-name, :root[data-theme="terminal"] .maker-row.is-active .m-meta,
:root[data-theme="terminal"] .maker-btn.active .m-name, :root[data-theme="terminal"] .maker-btn.active .m-meta { color: var(--on-ink); }
:root[data-theme="terminal"] .maker-row:hover .maker-star, :root[data-theme="terminal"] .maker-row.is-active .maker-star { color: var(--on-ink); }
:root[data-theme="terminal"] .maker-row:hover .maker-star:hover { background: var(--paper); color: var(--t-yellow); }
:root[data-theme="terminal"] .maker-btn.dimmed .m-name { color: var(--ink-3); }
:root[data-theme="terminal"] .maker-star { color: var(--ink-3); }
:root[data-theme="terminal"] .maker-star:hover, :root[data-theme="terminal"] .maker-star[aria-pressed="true"] { color: var(--t-yellow); background: transparent; }
:root[data-theme="terminal"] .maker-btn svg circle { vector-effect: non-scaling-stroke; }

/* ---- favorites ---- */
:root[data-theme="terminal"] .fav-banner { background: transparent; border: 1px dashed var(--accent); }
:root[data-theme="terminal"] .fav-banner-text::before { content: "// "; color: var(--ink-3); }
:root[data-theme="terminal"] .fav-banner-save { background: transparent; border: 0; color: var(--c); }
:root[data-theme="terminal"] .fav-banner-save:hover { background: var(--c); }
:root[data-theme="terminal"] .fav-banner-exit, :root[data-theme="terminal"] .fav-btn { border: 0; background: transparent; color: var(--c); }
:root[data-theme="terminal"] .fav-btn { --c: var(--t-yellow); min-height: 32px; }
:root[data-theme="terminal"] .fav-btn-icon, :root[data-theme="terminal"] .fav-star-icon { display: none; }
:root[data-theme="terminal"] .fav-toggle .fav-star-icon { display: none; }
:root[data-theme="terminal"] .fav-toggle { min-height: 36px; }
:root[data-theme="terminal"] .fav-panel { background: var(--paper); border: 1px dashed var(--accent); }
:root[data-theme="terminal"] .fav-panel-list li { border-top: 1px dashed var(--line); }
:root[data-theme="terminal"] .fav-panel-name { font-weight: 400; }
:root[data-theme="terminal"] .fav-panel-name:hover, :root[data-theme="terminal"] .fav-panel-remove:hover { background: var(--accent); color: var(--on-ink); }

/* ---- filters drawer / bottom sheet ---- */
:root[data-theme="terminal"] .filter-scrim { background: var(--t-scrim); }
:root[data-theme="terminal"] .filter-panel { background: var(--paper); border: 1px dashed var(--accent); }
:root[data-theme="terminal"] .drawer-title { font-weight: 300; font-size: 20px; letter-spacing: 0; }
:root[data-theme="terminal"] .drawer-title::before { content: "$ "; color: var(--accent); }
:root[data-theme="terminal"] .drawer-sub { border-bottom: 1px dashed var(--line); }
:root[data-theme="terminal"] .drawer-count { color: var(--ink-2); }
:root[data-theme="terminal"] .drawer-count::before { content: "// "; color: var(--ink-3); }
:root[data-theme="terminal"] .icon-btn { color: var(--ink-3); }
:root[data-theme="terminal"] .icon-btn:hover { background: var(--accent); color: var(--on-ink); }
:root[data-theme="terminal"] .fg-label { color: var(--ink-3); font-weight: 400; font-size: 12px; letter-spacing: 0; text-transform: lowercase; }
:root[data-theme="terminal"] .fg-label::before { content: "// "; }
:root[data-theme="terminal"] .fg-sublabel { color: var(--ink-3); font-weight: 400; font-size: 12px; letter-spacing: 0; text-transform: lowercase; margin: 10px 0 6px; }
:root[data-theme="terminal"] .fg-sublabel::before { content: "-- "; }
:root[data-theme="terminal"] .untagged-note { border-bottom: 1px dashed var(--line); color: var(--ink-3); font-size: 12px; }
:root[data-theme="terminal"] .untagged-note::before { content: "// "; }
:root[data-theme="terminal"] .list-panel .untagged-note { border: 0; }
:root[data-theme="terminal"] .attr-tags { gap: 2px 1.4ch; }
:root[data-theme="terminal"] .attr-k { color: var(--ink-3); font-weight: 400; font-size: 12px; letter-spacing: 0; text-transform: lowercase; min-width: 74px; }
:root[data-theme="terminal"] .attr-k::after { content: ":"; }
:root[data-theme="terminal"] .attr-tag { border: 0; background: transparent; padding: 0; font-size: 12px; font-weight: 400; color: var(--t-blue); }
:root[data-theme="terminal"] .attr-tag::before { content: "["; color: var(--ink-3); margin-right: .15ch; }
:root[data-theme="terminal"] .attr-tag::after { content: "]"; color: var(--ink-3); margin-left: .15ch; }
:root[data-theme="terminal"] .attr-mech .attr-tag { color: var(--accent); background: transparent; }
:root[data-theme="terminal"] .fg-chips { gap: 4px 1.2ch; }
:root[data-theme="terminal"] .filter-panel .filter-chip { min-height: 32px; }
:root[data-theme="terminal"] .filter-panel .sheet-handle { background: var(--accent); height: 2px; width: 32px; }
:root[data-theme="terminal"] .map-empty { background: var(--paper); border: 1px dashed var(--accent); }
:root[data-theme="terminal"] .map-empty-text { font-weight: 400; }
:root[data-theme="terminal"] .map-empty-text::before { content: "! "; color: var(--accent); }

/* ---- footer ---- */
:root[data-theme="terminal"] .site-footer { color: var(--ink-3); font-size: 12.5px; }
:root[data-theme="terminal"] .site-footer p:first-child { border-top: 0; padding-top: 0; }
:root[data-theme="terminal"] .site-footer p:first-child::before { content: "// "; }
:root[data-theme="terminal"] .site-footer a { color: var(--t-blue); text-decoration: none; }
:root[data-theme="terminal"] .site-footer a::before { content: "["; color: var(--ink-3); }
:root[data-theme="terminal"] .site-footer a::after { content: "]"; color: var(--ink-3); }
:root[data-theme="terminal"] .site-footer a:hover { background: var(--t-blue); color: var(--on-ink); }
:root[data-theme="terminal"] .site-footer a:hover::before, :root[data-theme="terminal"] .site-footer a:hover::after { color: var(--on-ink); }
:root[data-theme="terminal"] .site-footer::after { content: "-- EOF --"; display: block; margin-top: 22px; color: var(--ink-3); }
:root[data-theme="terminal"] .site-footer::before {
  content: "------------------------------------------------------------------------------------------------------------------------------------------------------------";
  content: "------------------------------------------------------------------------------------------------------------------------------------------------------------" / "";
  display: block; overflow: hidden; white-space: nowrap; margin-bottom: 18px; color: var(--t-green); opacity: .85; line-height: 1;
}
:root[data-theme="terminal"] .skip { background: var(--accent); color: var(--on-ink); }

@media (max-width: 640px) {
  :root[data-theme="terminal"] body { font-size: 14px; }
  :root[data-theme="terminal"] .title { font-size: 21px; }
  :root[data-theme="terminal"] .site-header::before { margin-bottom: 10px; font-size: 12px; }
  :root[data-theme="terminal"] .discover-bar { padding: 8px 10px 5px; }
  :root[data-theme="terminal"] .filters-btn { width: 40px; height: 36px; padding: 0; border: 1px dashed var(--accent); }
  :root[data-theme="terminal"] .filters-btn::before, :root[data-theme="terminal"] .filters-btn::after { display: none; }
  :root[data-theme="terminal"] .filters-btn[aria-expanded="true"] { border-style: solid; }
  :root[data-theme="terminal"] .discover-chip-scroll .filter-chip { min-height: 28px; padding: 0 .2ch; font-size: 12.5px; gap: 0; }
  :root[data-theme="terminal"] .discover-chip-scroll .filter-chip .chip-n { font-size: 11px; padding: 0; }
  :root[data-theme="terminal"] .discover-chip-scroll { gap: 1.2ch; }
  :root[data-theme="terminal"] .filter-panel { border-width: 1px 0 0; border-style: dashed; }
  :root[data-theme="terminal"] .filter-panel .filter-chip { min-height: 38px; font-size: 14px; }
  :root[data-theme="terminal"] .filter-panel .fg-chips { gap: 2px 1.6ch; }
  :root[data-theme="terminal"] .card { border-width: 1px 0 0; border-style: dashed; box-shadow: none; }
  :root[data-theme="terminal"] .card::before { display: none; }
  :root[data-theme="terminal"] .card-links a { min-height: 44px; padding: 0 1ch; font-size: 14px; }
  :root[data-theme="terminal"] .list-sort-btn { font-size: 13px; padding: 0; }
  :root[data-theme="terminal"] .list-sort { justify-content: space-between; }
  :root[data-theme="terminal"] .legend { border: 0; border-top: 1px dashed var(--line); }
  :root[data-theme="terminal"] .timeline { gap: 4px 10px; }
  :root[data-theme="terminal"] .year-value { font-size: 24px; }
  :root[data-theme="terminal"] .region-name { font-size: 12px; font-weight: 400; color: var(--ink-3); }
  :root[data-theme="terminal"] .world-btn { min-height: 28px; }
  /* monospace is wider: let list rows shrink and wrap instead of stretching the page */
  :root[data-theme="terminal"] .regions, :root[data-theme="terminal"] .maker-flat { grid-template-columns: minmax(0, 1fr); }
  :root[data-theme="terminal"] .maker-btn { min-width: 0; align-items: flex-start; gap: 8px; }
  :root[data-theme="terminal"] .maker-btn .m-name { min-width: 0; flex: 1 1 auto; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
  :root[data-theme="terminal"] .maker-btn .m-meta { flex: 0 1 auto; max-width: 42%; white-space: normal; text-align: right; font-size: 12px; line-height: 1.4; }
  :root[data-theme="terminal"] .maker-btn svg { margin-top: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  :root[data-theme="terminal"] .title-live::after, :root[data-theme="terminal"] .discover-search-box::after { animation: none !important; }
}
:root[data-theme="terminal"] body.still .site-header::before, :root[data-theme="terminal"] body.still .site-header::after { display: none; }
/* ---- Terminal, light mode: a paper teletype. Same monospace and [bracket] idiom, amber-brown ink on cream,
   darker versions of the green, blue, yellow and pink so every color still reads at AA. ---- */
:root[data-theme="terminal"][data-mode="light"] {
  color-scheme: light;
  --bg: #f5efdf;
  --paper: #f5efdf;
  --land: #ebe3cc;
  --land-dot: #a99a78;
  --land-ca: #ebe3cc;
  --name: rgba(43, 36, 25, .5);
  --country-name: rgba(43, 36, 25, .4);
  --water: #f5efdf;
  --inner-line: rgba(43, 36, 25, .22);
  --country-line: #8c7b5c;
  --ink: #2b2419;
  --ink-2: #54493a;
  --ink-3: #6b5f4d;
  --on-ink: #f5efdf;
  --ink-hover: #000000;
  --line: #cbbd9c;
  --accent: #a84300;
  --pin: #c25200;
  --ring: #0b6e46;
  --dot-stroke: #f5efdf;
  --leader: #8c7b5c;
  --legend-bg: rgba(245, 239, 223, .94);
  --pin-lo: #e9964a; --pin-mid: #c25200; --pin-hi: #6e2a00; --pin-none: #a89c86;
  --chip-hover: rgba(168, 67, 0, .1);
  --hover: rgba(168, 67, 0, .08);
  --active: rgba(168, 67, 0, .14);
  --shadow-lg: 0 0 0 1px rgba(168, 67, 0, .25), 0 12px 40px rgba(60, 40, 10, .2);
  --country: #6b5f4d;
  --t-green: #0b6e46;
  --t-blue: #0a5c9c;
  --t-yellow: #7d5f00;
  --t-pink: #a8206f;
  --t-glow: none;
  --t-scroll: #b9ab8e; --t-track: #e2d8bf; --t-pin-glow: rgba(168, 67, 0, .3); --t-focus: rgba(168, 67, 0, .3); --t-scrim: rgba(43, 36, 25, .35);
  --drop-live: #3f6a10; --drop-soon: #0a6480; --drop-on-live: #ffffff; --drop-on-soon: #ffffff;
}
/* === End fun theme: Terminal === */

/* === Fun themes (more) === */
/* Shared by every fun theme except Terminal (which has its own flavor block above). */
.theme-menu { max-height: calc(100vh - 150px); overflow-y: auto; }
.theme-toggle .theme-icon-palette { display: none; }
:root[data-fun]:not([data-theme="terminal"]) .theme-toggle .theme-icon-fun { display: none; }
:root[data-fun]:not([data-theme="terminal"]) .theme-toggle .theme-icon-palette { display: block; }
/* Wider type must never stretch the phone layout. */
@media (max-width: 640px) {
  :root[data-fun]:not([data-theme="terminal"]) .regions,
  :root[data-fun]:not([data-theme="terminal"]) .maker-flat { grid-template-columns: minmax(0, 1fr); }
  :root[data-fun]:not([data-theme="terminal"]) .maker-btn { min-width: 0; }
  :root[data-fun]:not([data-theme="terminal"]) .maker-btn .m-name { min-width: 0; flex: 1 1 auto; overflow-wrap: anywhere; }
  :root[data-fun]:not([data-theme="terminal"]) .maker-btn .m-meta { flex: 0 1 auto; max-width: 44%; white-space: normal; text-align: right; line-height: 1.3; }
}

/* ==== Theme: Notebook (dot-grid paper, Architect handwriting). Light = blue pen on cream; Dark = fluorescent markers on black ==== */
/* Architects Daughter, Latin subset, SIL OFL. Loads only when Notebook is on. size-adjust keeps its wide caps in step with the layout. */
@font-face { font-family: "Architects Daughter"; font-weight: 400 700; font-style: normal; font-display: swap; size-adjust: 80%;
  src: url("vendor/architects-daughter-latin-400-normal.woff2?v=20261204f") format("woff2"); }
:root[data-theme="notebook"] {
  color-scheme: light;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --hand: "Architects Daughter", "Segoe Print", "Bradley Hand", "Marker Felt", cursive;
  --bg: #f1ecdd; --paper: #fbf9f1; --land: #f0ead6; --land-dot: rgba(36, 54, 130, .3); --land-ca: #f0ead6;
  --name: rgba(27, 35, 82, .7); --country-name: rgba(27, 35, 82, .55);
  --water: #fbf9f1; --inner-line: rgba(36, 54, 130, .32); --country-line: #1f2d78;
  --ink: #1b2352; --ink-2: #3d4778; --ink-3: #59638a; --on-ink: #fbf9f1; --ink-hover: #2d3877;
  --line: rgba(27, 35, 82, .3); --accent: #2540c8; --pin: #1b2352; --ring: #d1332e;
  --dot-stroke: #fbf9f1; --leader: #6d77a6; --legend-bg: rgba(251, 249, 241, .94);
  --pin-lo: #6a78c8; --pin-mid: #1b2352; --pin-hi: #0b1030; --pin-none: #9aa2c2;
  --chip: transparent; --chip-hover: rgba(37, 64, 200, .08); --hover: rgba(37, 64, 200, .07); --active: rgba(255, 226, 90, .5);
  --radius: 8px; --shadow: 2px 3px 0 rgba(27, 35, 82, .14); --shadow-lg: 3px 5px 0 rgba(27, 35, 82, .2), 0 12px 30px rgba(27, 35, 82, .15);
  --country: #3d4778;
  --nb-dots: radial-gradient(circle, rgba(36, 54, 130, .3) 1.1px, transparent 1.5px);
  --nb-size: 22px 22px; --nb-pos: 11px 11px;
  --blob: 255px 18px 225px 18px / 18px 225px 18px 255px;
  --hl: #ffe35c;
  /* pen, accent and highlighter as rgb triples so the rules below can mix alphas; the dark mode swaps them */
  --nb-pen: #1b2352; --nb-pen-rgb: 27, 35, 82; --nb-acc-rgb: 37, 64, 200; --nb-hl-rgb: 255, 227, 92; --nb-on-hl: #1b2352;
  --nb-tape: rgba(255, 214, 102, .72); --nb-glow: none;
  --drop-live: #3f6c10; --drop-soon: #0c6a84; --drop-on-live: #ffffff; --drop-on-soon: #ffffff;
}
:root[data-theme="notebook"] body { background-color: var(--bg); background-image: var(--nb-dots); background-size: var(--nb-size); background-position: var(--nb-pos); }
:root[data-theme="notebook"] .map-panel, :root[data-theme="notebook"] .card, :root[data-theme="notebook"] .filter-panel, :root[data-theme="notebook"] .fav-panel, :root[data-theme="notebook"] .theme-menu, :root[data-theme="notebook"] .legend, :root[data-theme="notebook"] .map-empty { background-image: var(--nb-dots); background-size: var(--nb-size); }
:root[data-theme="notebook"] .discover-bar { background-image: var(--nb-dots); background-size: var(--nb-size); }
:root[data-theme="notebook"] ::selection { background: var(--hl); color: var(--nb-on-hl); }
:root[data-theme="notebook"] .map-panel, :root[data-theme="notebook"] .card, :root[data-theme="notebook"] .filter-panel, :root[data-theme="notebook"] .fav-panel, :root[data-theme="notebook"] .fav-banner, :root[data-theme="notebook"] .map-empty, :root[data-theme="notebook"] .legend, :root[data-theme="notebook"] .theme-menu, :root[data-theme="notebook"] .filter-suggest { border: 1.5px solid var(--nb-pen); border-radius: 10px; box-shadow: var(--shadow); }
:root[data-theme="notebook"] .legend { background-color: var(--legend-bg); }
:root[data-theme="notebook"] .discover-bar { border-bottom: 1.5px solid var(--nb-pen); }
:root[data-theme="notebook"] .map-controls, :root[data-theme="notebook"] .fav-bar { border-top: 1.5px solid rgba(var(--nb-pen-rgb), .5); }

/* handwriting */
:root[data-theme="notebook"] .title, :root[data-theme="notebook"] .list-title, :root[data-theme="notebook"] .drawer-title, :root[data-theme="notebook"] .card-name, :root[data-theme="notebook"] .country-name, :root[data-theme="notebook"] .year-value, :root[data-theme="notebook"] .drawer-count, :root[data-theme="notebook"] .region-name, :root[data-theme="notebook"] .fg-label, :root[data-theme="notebook"] .maker-btn .m-name, :root[data-theme="notebook"] .subtitle, :root[data-theme="notebook"] .theme-opt-label { font-family: var(--hand); letter-spacing: 0; }
:root[data-theme="notebook"] .title { font-weight: 700; font-size: 50px; line-height: 1; letter-spacing: 0; }
:root[data-theme="notebook"] .title-live { background: linear-gradient(transparent 62%, rgba(var(--nb-hl-rgb), .85) 62% 88%, transparent 88%); padding: 0 .1em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
:root[data-theme="notebook"] .site-header::before { content: "✎ my pen makers notebook"; content: "✎ my pen makers notebook" / ""; display: block; font-family: var(--hand); font-size: 21px; color: var(--ink-2); transform: rotate(-1.2deg); transform-origin: left; margin-bottom: 2px; }
:root[data-theme="notebook"] .subtitle { font-size: 22px; font-weight: 500; color: var(--accent); border-bottom: 2px wavy rgba(var(--nb-acc-rgb), .45); padding-bottom: 0; text-decoration: none; }
:root[data-theme="notebook"] .list-title { font-size: 36px; font-weight: 700; }
:root[data-theme="notebook"] .drawer-title { font-size: 32px; font-weight: 700; }
:root[data-theme="notebook"] .card-name { font-size: 28px; font-weight: 700; }
:root[data-theme="notebook"] .country-name { font-size: 24px; font-weight: 700; color: var(--ink); text-transform: none; letter-spacing: 0; border-bottom: 2px solid var(--ink); display: inline-block; padding-right: 10px; }
:root[data-theme="notebook"] .region-name { font-size: 21px; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--accent); }
:root[data-theme="notebook"] .fg-label { font-size: 22px; font-weight: 700; text-transform: none; letter-spacing: 0; color: var(--ink); }
:root[data-theme="notebook"] .maker-btn .m-name { font-size: 24px; font-weight: 500; line-height: 1.1; }
:root[data-theme="notebook"] .maker-btn .m-meta { color: var(--ink-3); }
:root[data-theme="notebook"] .year-value { font-weight: 700; font-size: 38px; color: var(--ink); }
:root[data-theme="notebook"] .drawer-count { font-size: 20px; }
:root[data-theme="notebook"] .site-footer { color: var(--ink-2); }
:root[data-theme="notebook"] .site-footer a { color: var(--accent); text-decoration: underline wavy rgba(var(--nb-acc-rgb), .5); text-underline-offset: 4px; }
:root[data-theme="notebook"] .site-footer p:first-child { border-top: 2px dashed rgba(var(--nb-pen-rgb), .4); }
:root[data-theme="notebook"] .region, :root[data-theme="notebook"] .maker-flat li { border-top: 1.5px dashed rgba(var(--nb-pen-rgb), .3); }

/* controls: pen-drawn pills, highlighter when on */
:root[data-theme="notebook"] .filter-chip, :root[data-theme="notebook"] .af-chip, :root[data-theme="notebook"] .list-sort-btn, :root[data-theme="notebook"] .card-links a, :root[data-theme="notebook"] .fav-toggle, :root[data-theme="notebook"] .fav-btn, :root[data-theme="notebook"] .fav-banner-actions button, :root[data-theme="notebook"] .world-btn, :root[data-theme="notebook"] .world-back, :root[data-theme="notebook"] .print-now, :root[data-theme="notebook"] .print-back, :root[data-theme="notebook"] .filters-btn { border: 1.5px solid var(--nb-pen); border-radius: var(--blob); background: transparent; color: var(--ink); font-family: var(--hand); font-weight: 700; font-size: 19px; letter-spacing: 0; min-height: 34px; }
:root[data-theme="notebook"] .filter-chip:hover, :root[data-theme="notebook"] .af-chip:hover, :root[data-theme="notebook"] .list-sort-btn:hover, :root[data-theme="notebook"] .card-links a:hover, :root[data-theme="notebook"] .fav-toggle:hover, :root[data-theme="notebook"] .fav-btn:hover, :root[data-theme="notebook"] .fav-banner-actions button:hover, :root[data-theme="notebook"] .world-btn:hover, :root[data-theme="notebook"] .world-back:hover, :root[data-theme="notebook"] .print-now:hover, :root[data-theme="notebook"] .print-back:hover, :root[data-theme="notebook"] .filters-btn:hover { background: rgba(var(--nb-acc-rgb), .08); }
:root[data-theme="notebook"] .filter-chip[aria-pressed="true"], :root[data-theme="notebook"] .list-sort-btn[aria-pressed="true"], :root[data-theme="notebook"] .fav-toggle[aria-pressed="true"], :root[data-theme="notebook"] .filters-btn[aria-expanded="true"] { background: var(--hl); color: var(--nb-on-hl); border-color: var(--nb-pen); }
:root[data-theme="notebook"] .filter-chip[aria-pressed="true"] .chip-n { background: rgba(var(--nb-pen-rgb), .12); color: var(--nb-on-hl); }
:root[data-theme="notebook"] .filter-chip .chip-n { font-family: var(--font); background: rgba(var(--nb-pen-rgb), .08); color: var(--ink-2); }
:root[data-theme="notebook"] .filter-chip.chip-curated { background: transparent; color: var(--ink); border-style: dashed; }
:root[data-theme="notebook"] .filter-chip.chip-curated .chip-ico { color: var(--accent); }
:root[data-theme="notebook"] .filter-chip.chip-curated[aria-pressed="true"] { background: var(--hl); border-style: solid; color: var(--nb-on-hl); }
:root[data-theme="notebook"] .af-chip { background: var(--hl); color: var(--nb-on-hl); border-color: var(--nb-pen); font-size: 17px; }
:root[data-theme="notebook"] .card-links a { font-size: 20px; }
:root[data-theme="notebook"] .card-links a.primary { background: var(--nb-pen); color: var(--on-ink); }
:root[data-theme="notebook"] .card-links a.primary:hover { background: var(--accent); }
:root[data-theme="notebook"] .play { background: var(--nb-pen); color: var(--on-ink); border-color: var(--nb-pen); }
:root[data-theme="notebook"] .list-sort { border: 1.5px solid var(--nb-pen); border-radius: var(--blob); background: transparent; }
:root[data-theme="notebook"] .list-sort-btn { border-radius: 0; border: 0; border-right: 1.5px solid var(--nb-pen); }
:root[data-theme="notebook"] .list-sort-btn[aria-pressed="true"] { background: var(--hl); color: var(--nb-on-hl); }
:root[data-theme="notebook"] .filters-badge { background: var(--ring); border-color: var(--paper); }
:root[data-theme="notebook"] .discover-search-box, :root[data-theme="notebook"] .list-search, :root[data-theme="notebook"] .list-filter, :root[data-theme="notebook"] .filter-search { background-color: var(--paper); border: 1.5px solid var(--nb-pen); border-radius: 10px; color: var(--ink); }
:root[data-theme="notebook"] .discover-search-box { border-radius: 10px; }
:root[data-theme="notebook"] .discover-search-box:focus-within { box-shadow: 0 0 0 3px rgba(var(--nb-hl-rgb), .7); }
:root[data-theme="notebook"] .discover-search-input { font-size: 16px; }
:root[data-theme="notebook"] .list-search:focus, :root[data-theme="notebook"] .filter-search:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--nb-hl-rgb), .7); }
:root[data-theme="notebook"] .discover-search-ico { color: var(--ink); }
:root[data-theme="notebook"] .theme-toggle { border: 1.5px solid var(--nb-pen); background: var(--paper); border-radius: var(--blob); box-shadow: 2px 2px 0 rgba(var(--nb-pen-rgb), .2); }
:root[data-theme="notebook"] .theme-opt { font-size: 20px; }
:root[data-theme="notebook"] .theme-opt-label { font-size: 24px; font-weight: 700; }
:root[data-theme="notebook"] .theme-opt[aria-checked="true"] { background: var(--hl); color: var(--nb-on-hl); }
:root[data-theme="notebook"] .theme-sw { border-color: var(--nb-pen); border-radius: 6px; font-family: var(--hand); font-size: 17px; }
:root[data-theme="notebook"] .theme-menu { width: 250px; }
:root[data-theme="notebook"] .theme-sep { background: transparent; border-top: 1.5px dashed rgba(var(--nb-pen-rgb), .35); }
:root[data-theme="notebook"] .theme-lab { font-family: var(--hand); font-size: 17px; font-weight: 700; letter-spacing: .03em; color: var(--ink-2); }
:root[data-theme="notebook"] .mode-opt { border: 1.5px solid var(--nb-pen); border-radius: var(--blob); font-family: var(--hand); font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
:root[data-theme="notebook"] .mode-opt:hover { background: rgba(var(--nb-acc-rgb), .08); }
:root[data-theme="notebook"] .mode-opt:focus-visible { box-shadow: 0 0 0 3px rgba(var(--nb-hl-rgb), .7); }
:root[data-theme="notebook"] .mode-opt[aria-checked="true"] { background: var(--hl); color: var(--nb-on-hl); border-color: var(--nb-pen); }
:root[data-theme="notebook"] .filter-suggest li:hover, :root[data-theme="notebook"] .filter-suggest li[aria-selected="true"] { background: rgba(var(--nb-hl-rgb), .55); }
:root[data-theme="notebook"] .filter-suggest-name { font-family: var(--hand); font-size: 22px; font-weight: 700; }
:root[data-theme="notebook"] .maker-btn:hover, :root[data-theme="notebook"] .maker-row:hover { background: rgba(var(--nb-acc-rgb), .06); }
:root[data-theme="notebook"] .maker-row.is-active, :root[data-theme="notebook"] .maker-btn.active { background: rgba(var(--nb-hl-rgb), .5); }
:root[data-theme="notebook"] .card-tag { font-family: var(--hand); font-size: 18px; background: var(--hl); color: var(--nb-on-hl); border: 1.5px solid var(--nb-pen); border-radius: var(--blob); }
:root[data-theme="notebook"] .card-close:hover, :root[data-theme="notebook"] .icon-btn:hover { background: rgba(var(--nb-hl-rgb), .7); }
:root[data-theme="notebook"] .card { box-shadow: var(--shadow-lg); }
:root[data-theme="notebook"] .filter-scrim { background: rgba(var(--nb-pen-rgb), .28); }

/* map: pencil-shaded land, ink dots, red-pen circles */
:root[data-theme="notebook"] .land, :root[data-theme="notebook"] .land-ca, :root[data-theme="notebook"] .hi-inset-land { fill: url(#t-hatch); }
:root[data-theme="notebook"] .country-border { stroke-width: 1.8px; }
:root[data-theme="notebook"] .inner-line { stroke-width: 1px; }
:root[data-theme="notebook"] .region-label, :root[data-theme="notebook"] .country-name-label, :root[data-theme="notebook"] .hi-inset-label { font-family: var(--hand); font-weight: 700; font-size: 15px; letter-spacing: .02em; }
:root[data-theme="notebook"] .hi-inset-frame { stroke: var(--nb-pen); stroke-dasharray: 5 4; }
:root[data-theme="notebook"] .pin .dot { fill: var(--nb-pen); stroke: var(--paper); stroke-width: 1.8px; }
:root[data-theme="notebook"] .pin.inactive .dot { fill: var(--paper); stroke: var(--nb-pen); stroke-width: 2.4px; }
:root[data-theme="notebook"] .pin .ring { stroke: var(--ring); stroke-width: 2.2px; stroke-dasharray: 66 5; }
:root[data-theme="notebook"] .pin .focus-ring { stroke: var(--accent); }
:root[data-theme="notebook"] .pin .star-border { fill: var(--paper); stroke: var(--nb-pen); }
:root[data-theme="notebook"] .pin .star { fill: var(--nb-pen); }
:root[data-theme="notebook"] .country-pin .dot { fill: var(--nb-pen); }
:root[data-theme="notebook"] .country-pin .pin-halo { fill: var(--hl); opacity: .8; }
:root[data-theme="notebook"] .world-btn, :root[data-theme="notebook"] .world-back { background: var(--paper); font-size: 19px; }
:root[data-theme="notebook"] .world-btn:hover, :root[data-theme="notebook"] .world-btn:focus-visible { background: var(--hl); color: var(--nb-on-hl); }
:root[data-theme="notebook"] .legend, :root[data-theme="notebook"] .legend-row span { font-family: var(--hand); font-size: 18px; color: var(--ink); }

/* a strip of tape on the map page */
:root[data-theme="notebook"] .map-panel::before { content: ""; position: absolute; z-index: 30; pointer-events: none; top: -11px; left: 28px; width: 92px; height: 24px; background: var(--nb-tape); transform: rotate(-3deg); box-shadow: 0 1px 2px rgba(var(--nb-pen-rgb), .18); }
:root[data-theme="notebook"] .discover-chip-scroll { height: 36px; padding: 2px 1px; }
:root[data-theme="notebook"] .discover-chip-scroll .filter-chip { min-height: 30px; }
@media (min-width: 641px) { :root[data-theme="notebook"] .card { transform: rotate(-.5deg); } }
@media (max-width: 640px) {
  :root[data-theme="notebook"] .title { font-size: 40px; }
  :root[data-theme="notebook"] .discover-chip-scroll { height: 38px; }
  :root[data-theme="notebook"] .discover-chip-scroll .filter-chip { font-size: 18px; min-height: 32px; }
  :root[data-theme="notebook"] .card { border-width: 1.5px 0 0; border-radius: 18px 18px 0 0; }
  :root[data-theme="notebook"] .filter-panel { border-width: 1.5px 0 0; border-radius: 18px 18px 0 0; }
  :root[data-theme="notebook"] .maker-btn .m-name { font-size: 24px; }
  :root[data-theme="notebook"] .card-links a { font-size: 21px; }
  :root[data-theme="notebook"] .map-panel::before { left: 20px; }
}
/* Architect hand: drafting caps everywhere the handwriting is used (map labels included; they read well at 15px) */
:root[data-theme="notebook"] .title, :root[data-theme="notebook"] .subtitle, :root[data-theme="notebook"] .theme-opt-label, :root[data-theme="notebook"] .theme-lab, :root[data-theme="notebook"] .filters-label, :root[data-theme="notebook"] .filter-chip, :root[data-theme="notebook"] .af-chip, :root[data-theme="notebook"] .list-sort-btn, :root[data-theme="notebook"] .card-links a, :root[data-theme="notebook"] .world-btn, :root[data-theme="notebook"] .world-back, :root[data-theme="notebook"] .fav-toggle, :root[data-theme="notebook"] .fav-btn, :root[data-theme="notebook"] .fav-banner-actions button, :root[data-theme="notebook"] .print-now, :root[data-theme="notebook"] .print-back, :root[data-theme="notebook"] .filters-btn, :root[data-theme="notebook"] .drawer-title, :root[data-theme="notebook"] .list-title, :root[data-theme="notebook"] .fg-label, :root[data-theme="notebook"] .country-name, :root[data-theme="notebook"] .region-name, :root[data-theme="notebook"] .maker-btn .m-name, :root[data-theme="notebook"] .card-name, :root[data-theme="notebook"] .card-tag, :root[data-theme="notebook"] .legend-row span, :root[data-theme="notebook"] .filter-suggest-name, :root[data-theme="notebook"] .region-label, :root[data-theme="notebook"] .country-name-label, :root[data-theme="notebook"] .hi-inset-label { text-transform: uppercase; letter-spacing: .03em; }
:root[data-theme="notebook"] .site-header::before { text-transform: uppercase; }
:root[data-theme="notebook"] .filter-chip .chip-n { text-transform: none; letter-spacing: 0; }
/* ==== Notebook, dark mode: black paper, a dim dot grid, fluorescent highlighter and marker ink ====
   Body text is a chalky off-white so long lists stay easy to read; the neon colors are kept for
   headings, labels, accents and the "highlighted" (pressed or active) states. */
:root[data-theme="notebook"][data-mode="dark"] {
  color-scheme: dark;
  --nb-y: #f4ff52; --nb-p: #ff6ccb; --nb-g: #5cff9d; --nb-o: #ff8f3a; --nb-c: #4fe9ff;
  --bg: #0a0a0a; --paper: #111111; --land: #141414; --land-dot: rgba(79, 233, 255, .2); --land-ca: #141414;
  --name: rgba(240, 238, 228, .6); --country-name: rgba(240, 238, 228, .5);
  --water: #111111; --inner-line: rgba(79, 233, 255, .22); --country-line: rgba(79, 233, 255, .6);
  --ink: #f1efe4; --ink-2: #cfccbf; --ink-3: #a9a698; --on-ink: #0a0a0a; --ink-hover: #ffffff;
  --line: rgba(241, 239, 228, .28); --accent: var(--nb-o); --pin: var(--nb-o); --ring: var(--nb-p);
  --dot-stroke: #0a0a0a; --leader: #8d8a80; --legend-bg: rgba(17, 17, 17, .94);
  --pin-lo: #ffc07a; --pin-mid: var(--nb-o); --pin-hi: #ff4d1a; --pin-none: #77746c;
  --chip: transparent; --chip-hover: rgba(255, 143, 58, .12); --hover: rgba(255, 143, 58, .1); --active: rgba(244, 255, 82, .16);
  --shadow: 2px 3px 0 rgba(255, 143, 58, .22); --shadow-lg: 3px 5px 0 rgba(255, 108, 203, .28), 0 12px 30px rgba(0, 0, 0, .6);
  --country: #cfccbf;
  --nb-dots: radial-gradient(circle, rgba(241, 239, 228, .13) 1.1px, transparent 1.5px);
  --hl: var(--nb-y);
  --nb-pen: #d9d6c9; --nb-pen-rgb: 217, 214, 201; --nb-acc-rgb: 255, 143, 58; --nb-hl-rgb: 244, 255, 82; --nb-on-hl: #0a0a0a;
  --nb-tape: rgba(255, 108, 203, .5);
  --nb-glow: 0 0 .45em rgba(255, 143, 58, .45);
  --drop-live: #d4f06a; --drop-soon: #2ec8e0; --drop-on-live: #111111; --drop-on-soon: #062026;
}
:root[data-theme="notebook"][data-mode="dark"] ::selection { background: var(--nb-y); color: #0a0a0a; }
/* headings and labels in marker colors */
:root[data-theme="notebook"][data-mode="dark"] .title { color: var(--nb-o); text-shadow: var(--nb-glow); }
:root[data-theme="notebook"][data-mode="dark"] .title-live { background: linear-gradient(transparent 70%, rgba(255, 108, 203, .38) 70% 92%, transparent 92%); }
:root[data-theme="notebook"][data-mode="dark"] .site-header::before { color: var(--nb-p); }
:root[data-theme="notebook"][data-mode="dark"] .subtitle { color: var(--nb-c); border-bottom-color: rgba(79, 233, 255, .5); }
:root[data-theme="notebook"][data-mode="dark"] .country-name { color: var(--nb-y); border-bottom-color: var(--nb-y); }
:root[data-theme="notebook"][data-mode="dark"] .region-name { color: var(--nb-c); }
:root[data-theme="notebook"][data-mode="dark"] .fg-label { color: var(--nb-g); }
:root[data-theme="notebook"][data-mode="dark"] .list-title, :root[data-theme="notebook"][data-mode="dark"] .drawer-title { color: var(--nb-y); }
:root[data-theme="notebook"][data-mode="dark"] .card-name { color: var(--nb-y); }
:root[data-theme="notebook"][data-mode="dark"] .year-value { color: var(--nb-o); text-shadow: var(--nb-glow); }
:root[data-theme="notebook"][data-mode="dark"] .site-footer a { color: var(--nb-c); text-decoration-color: rgba(79, 233, 255, .55); }
:root[data-theme="notebook"][data-mode="dark"] .site-footer p:first-child { border-top-color: rgba(241, 239, 228, .3); }
/* highlighted states: a solid neon swipe with black ink, never translucent yellow under white text */
:root[data-theme="notebook"][data-mode="dark"] .maker-row.is-active, :root[data-theme="notebook"][data-mode="dark"] .maker-btn.active { background: rgba(244, 255, 82, .14); box-shadow: inset 3px 0 0 var(--nb-y); }
:root[data-theme="notebook"][data-mode="dark"] .filter-suggest li:hover, :root[data-theme="notebook"][data-mode="dark"] .filter-suggest li[aria-selected="true"] { background: rgba(244, 255, 82, .16); }
:root[data-theme="notebook"][data-mode="dark"] .card-close:hover, :root[data-theme="notebook"][data-mode="dark"] .icon-btn:hover { background: rgba(244, 255, 82, .18); }
:root[data-theme="notebook"][data-mode="dark"] .discover-search-box:focus-within, :root[data-theme="notebook"][data-mode="dark"] .list-search:focus, :root[data-theme="notebook"][data-mode="dark"] .filter-search:focus { box-shadow: 0 0 0 3px rgba(79, 233, 255, .45); }
:root[data-theme="notebook"][data-mode="dark"] .filter-chip.chip-curated .chip-ico { color: var(--nb-p); }
:root[data-theme="notebook"][data-mode="dark"] .filter-chip .chip-n { background: rgba(241, 239, 228, .1); color: var(--ink-2); }
:root[data-theme="notebook"][data-mode="dark"] .filter-chip[aria-pressed="true"] .chip-n { background: rgba(0, 0, 0, .14); color: #0a0a0a; }
:root[data-theme="notebook"][data-mode="dark"] .card-links a.primary { background: var(--nb-o); color: #0a0a0a; border-color: var(--nb-o); }
:root[data-theme="notebook"][data-mode="dark"] .card-links a.primary:hover { background: var(--nb-y); border-color: var(--nb-y); }
:root[data-theme="notebook"][data-mode="dark"] .play { background: var(--nb-o); border-color: var(--nb-o); color: #0a0a0a; }
:root[data-theme="notebook"][data-mode="dark"] .filters-badge { background: var(--nb-p); color: #0a0a0a; }
:root[data-theme="notebook"][data-mode="dark"] .theme-toggle { box-shadow: 2px 2px 0 rgba(255, 143, 58, .35); }
:root[data-theme="notebook"][data-mode="dark"] .filter-scrim { background: rgba(0, 0, 0, .6); }
/* map: neon ink dots with black edges, pink circles */
:root[data-theme="notebook"][data-mode="dark"] .pin .dot { fill: var(--nb-o); stroke: #0a0a0a; }
:root[data-theme="notebook"][data-mode="dark"] .pin.inactive .dot { fill: #111111; stroke: var(--nb-o); }
:root[data-theme="notebook"][data-mode="dark"] .pin .focus-ring { stroke: var(--nb-c); }
:root[data-theme="notebook"][data-mode="dark"] .pin .star-border { fill: #111111; stroke: var(--nb-y); }
:root[data-theme="notebook"][data-mode="dark"] .pin .star { fill: var(--nb-y); }
:root[data-theme="notebook"][data-mode="dark"] .country-pin .dot { fill: var(--nb-o); }
:root[data-theme="notebook"][data-mode="dark"] .country-pin .pin-halo { fill: var(--nb-y); opacity: .35; }
:root[data-theme="notebook"][data-mode="dark"] .hi-inset-frame { stroke: rgba(79, 233, 255, .6); }
:root[data-theme="notebook"][data-mode="dark"] .map-panel::before { box-shadow: 0 0 10px rgba(255, 108, 203, .35); }
/* ==== End Notebook ==== */

/* ==== Theme: Coffee (v2, "roaster label"). Light = a morning cafe (oat and cream paper, espresso ink, burnt orange);
   Dark = an espresso bar at night (brown-black, crema gold, warm lamp glow on what's active).
   GENERATED by tools/themes/src/coffee_gen.py; edit that, not this file.
   Art direction: a specialty roaster's bag. Kraft and cream paper with a faint grain (tiny SVG noise tile, no images),
   one serif voice (Fraunces, SIL OFL, loaded only when Coffee is on), tracked small capitals for labels,
   cards set as a bag label (stamped band, tasting-notes rows, sticker chips), roasted map with coffee-bean pins.
   Decoration is limited to: a stamped roaster seal by the title (wide screens), the cup with a slow steam wisp
   (static under prefers-reduced-motion), and one faint coffee-ring on the map's ocean corner. */
@font-face { font-family: "Fraunces"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("vendor/fraunces-latin-600-normal.woff2?v=20261204f") format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 400; font-style: italic; font-display: swap;
  src: url("vendor/fraunces-latin-400-italic.woff2?v=20261204f") format("woff2"); }
:root[data-theme="coffee"] {
  color-scheme: light;
  --cf-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --bg: #efe5d3; --paper: #fbf5ea; --land: #d4b184; --land-ca: #efe3cc;
  --cf-land-1: #e3c89e; --cf-land-2: #d4b184; --cf-land-3: #b88957;
  --name: rgba(61, 36, 20, .62); --country-name: rgba(61, 36, 20, .5);
  --water: #fbf5ea; --inner-line: rgba(251, 245, 234, .9); --country-line: #8f673f;
  --ink: #22150d; --ink-2: #4e3a2b; --ink-3: #634b39; --on-ink: #fbf5ea; --ink-hover: #3b2113;
  --line: #dccab0; --accent: #a3420c; --pin: #3b2113; --ring: #c27a1f;
  --dot-stroke: #fbf5ea; --leader: #9a7e63; --legend-bg: rgba(251, 245, 234, .94);
  --pin-lo: #c08a52; --pin-mid: #7a4421; --pin-hi: #2e170a; --pin-none: #a99a8b;
  --chip: #ead9bb; --chip-hover: #e2cda8; --hover: rgba(163, 66, 12, .07); --active: rgba(194, 122, 31, .18);
  --radius: 4px;
  --shadow: 0 1px 0 rgba(255, 252, 245, .7) inset, 0 1px 1px rgba(59, 33, 19, .06), 0 14px 32px -18px rgba(74, 40, 16, .35);
  --shadow-lg: 0 2px 4px rgba(34, 21, 13, .08), 0 24px 52px -20px rgba(74, 40, 16, .45);
  --country: #4e3a2b;
  --cf-kraft: #e4cfac; --cf-kraft-line: #c9ad84; --cf-rule: #d2bb98; --cf-dots: #b99a73;
  --cf-press: #22150d; --cf-on-press: #f7e7cc; --cf-press-glow: none;
  --cf-label: #8a3a0e; --cf-on-accent: #fff6ea;
  --cf-band: #22150d; --cf-on-band: #f2d9b0;
  --cf-bean: #3b2113; --cf-bean-edge: #1e0f07; --cf-crease: #e6c08c; --cf-crema: rgba(214, 160, 82, .26);
  --cf-pin-shadow: drop-shadow(0 1px .6px rgba(34, 21, 13, .35));
  --cf-stamp: rgba(163, 66, 12, .5); --cf-stain: rgba(110, 66, 32, .10);
  --cf-steam: rgba(78, 58, 43, .55);
  --cf-glow: 0 1px 0 rgba(255, 252, 245, .85);
  --cf-lamp: none;
  --cf-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E %3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='3' stitchTiles='stitch'/%3E %3CfeColorMatrix values='0 0 0 0 0.33 0 0 0 0 0.2 0 0 0 0 0.1 0 0 0 0.2 0'/%3E%3C/filter%3E %3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.008 .42' numOctaves='2' seed='8' stitchTiles='stitch'/%3E %3CfeColorMatrix values='0 0 0 0 0.33 0 0 0 0 0.2 0 0 0 0 0.1 0 0 0 0.12 -0.054'/%3E%3C/filter%3E %3Crect width='220' height='220' filter='url(%23a)'/%3E%3Crect width='220' height='220' filter='url(%23f)'/%3E%3C/svg%3E");
  --cf-leg-bean: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cellipse cx='12' cy='12' rx='6.6' ry='4.8' transform='rotate(-32 12 12)' fill='%233b2113'/%3E%3Cpath d='M7.9 14.7C10 13.1 10.2 11 12 10.3s2.8-.7 4.1-1' fill='none' stroke='%23e6c08c' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E");
  --cf-leg-feat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9.6' fill='none' stroke='%23c27a1f' stroke-width='1.6'/%3E%3Cellipse cx='12' cy='12' rx='6.6' ry='4.8' transform='rotate(-32 12 12)' fill='%233b2113'/%3E%3Cpath d='M7.9 14.7C10 13.1 10.2 11 12 10.3s2.8-.7 4.1-1' fill='none' stroke='%23e6c08c' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E");
  --cf-leg-gone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cellipse cx='12' cy='12' rx='6.6' ry='4.8' transform='rotate(-32 12 12)' fill='none' stroke='%233b2113' stroke-width='1.6'/%3E%3Cpath d='M7.9 14.7C10 13.1 10.2 11 12 10.3s2.8-.7 4.1-1' fill='none' stroke='%233b2113' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E");
  --cf-wet: rgba(150, 88, 38, .30);
  --drop-live: #365f0e; --drop-soon: #0a5e76; --drop-on-live: #ffffff; --drop-on-soon: #ffffff;
  --cf-cup-latte: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 34'%3E%3Cellipse cx='19' cy='30.5' rx='15' ry='2.6' fill='none' stroke='%233b2113' stroke-width='1.5'/%3E %3Cpath d='M6 12h24v3.5a12 12 0 0 1-12 12a12 12 0 0 1-12-12z' fill='%23f6ead6' stroke='%233b2113' stroke-width='1.5' stroke-linejoin='round'/%3E %3Cpath d='M30 14.5h1.8a3.4 3.4 0 0 1 0 6.8h-3' fill='none' stroke='%233b2113' stroke-width='1.5'/%3E%3Cellipse cx='18' cy='12' rx='12' ry='2.8' fill='%23c99a63' stroke='%233b2113' stroke-width='1.2'/%3E%3Cpath d='M18 14c-2.6-1.4-3.6-2.4-2.6-3.4c.7-.6 1.9-.3 2.6.6c.7-.9 1.9-1.2 2.6-.6c1 1-.0 2-2.6 3.4z' fill='%23fbf3e4'/%3E%3C/svg%3E"); --cf-cup-espresso: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 34'%3E%3Cellipse cx='19' cy='30.5' rx='15' ry='2.6' fill='none' stroke='%233b2113' stroke-width='1.5'/%3E %3Cpath d='M11.5 15h15v5.5a7.5 7.5 0 0 1-7.5 7.5a7.5 7.5 0 0 1-7.5-7.5z' fill='%233b2113' stroke='%233b2113' stroke-width='1.5' stroke-linejoin='round'/%3E %3Cpath d='M26.5 17.5h1.4a2.6 2.6 0 0 1 0 5.2h-1.8' fill='none' stroke='%233b2113' stroke-width='1.5'/%3E %3Cellipse cx='19' cy='15' rx='7.5' ry='1.9' fill='%23c8853a' stroke='%233b2113' stroke-width='1.2'/%3E%3C/svg%3E"); --cf-cup-auto: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 34'%3E%3Cdefs%3E%3ClinearGradient id='h'%3E%3Cstop offset='.5' stop-color='%23f6ead6'/%3E%3Cstop offset='.5' stop-color='%233b2113'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cellipse cx='19' cy='30.5' rx='15' ry='2.6' fill='none' stroke='%233b2113' stroke-width='1.5'/%3E %3Cpath d='M6 12h24v3.5a12 12 0 0 1-12 12a12 12 0 0 1-12-12z' fill='url(%23h)' stroke='%233b2113' stroke-width='1.5' stroke-linejoin='round'/%3E %3Cpath d='M30 14.5h1.8a3.4 3.4 0 0 1 0 6.8h-3' fill='none' stroke='%233b2113' stroke-width='1.5'/%3E%3Cellipse cx='18' cy='12' rx='12' ry='2.8' fill='%23c99a63' stroke='%233b2113' stroke-width='1.2'/%3E%3C/svg%3E");
}
:root[data-theme="coffee"][data-mode="dark"] {
  color-scheme: dark;
  --bg: #0e0907; --paper: #19110c; --land: #2c1f17; --land-ca: #241912;
  --cf-land-1: #45311f; --cf-land-2: #31231a; --cf-land-3: #1e1510;
  --name: rgba(244, 230, 208, .5); --country-name: rgba(244, 230, 208, .38);
  --water: #19110c; --inner-line: rgba(244, 230, 208, .1); --country-line: #7a5c45;
  --ink: #f4e6d0; --ink-2: #d8c2a6; --ink-3: #b39a80; --on-ink: #120b07; --ink-hover: #ffffff;
  --line: #3a2a1f; --accent: #e9a857; --pin: #d99a4e; --ring: #f2c66d;
  --dot-stroke: #0e0907; --leader: #7d6452; --legend-bg: rgba(25, 17, 12, .92);
  --pin-lo: #f4d3a3; --pin-mid: #e08f45; --pin-hi: #a9561f; --pin-none: #6f6359;
  --chip: #241912; --chip-hover: #2f2219; --hover: rgba(233, 168, 87, .08); --active: rgba(233, 168, 87, .16);
  --shadow: 0 1px 0 rgba(255, 220, 170, .05) inset, 0 18px 40px -18px rgba(0, 0, 0, .75);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .5), 0 28px 64px -22px rgba(0, 0, 0, .85);
  --country: #d8c2a6;
  --cf-kraft: #2a1d15; --cf-kraft-line: #4b3626; --cf-rule: #4a3727; --cf-dots: #5e4734;
  --cf-press: #e9b066; --cf-on-press: #1a0f08; --cf-press-glow: 0 0 0 1px rgba(242, 198, 109, .5), 0 0 18px rgba(233, 168, 87, .35);
  --cf-label: #e7ad65; --cf-on-accent: #160d07;
  --cf-band: #e1a457; --cf-on-band: #1a0f08;
  --cf-bean: #d99a4e; --cf-bean-edge: #6b3f18; --cf-crease: #2a170c; --cf-crema: rgba(242, 198, 109, .16);
  --cf-pin-shadow: drop-shadow(0 0 3px rgba(233, 168, 87, .35));
  --cf-stamp: rgba(233, 168, 87, .34); --cf-stain: rgba(233, 176, 102, .075);
  --cf-steam: rgba(244, 230, 208, .45);
  --cf-glow: 0 0 26px rgba(233, 168, 87, .28);
  --cf-lamp: radial-gradient(1000px 560px at 50% -180px, rgba(233, 168, 87, .13), transparent 70%);
  --cf-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E %3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='3' stitchTiles='stitch'/%3E %3CfeColorMatrix values='0 0 0 0 0.95 0 0 0 0 0.82 0 0 0 0 0.62 0 0 0 0.07 0'/%3E%3C/filter%3E %3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.008 .42' numOctaves='2' seed='8' stitchTiles='stitch'/%3E %3CfeColorMatrix values='0 0 0 0 0.95 0 0 0 0 0.82 0 0 0 0 0.62 0 0 0 0.045 -0.020'/%3E%3C/filter%3E %3Crect width='220' height='220' filter='url(%23a)'/%3E%3Crect width='220' height='220' filter='url(%23f)'/%3E%3C/svg%3E");
  --cf-leg-bean: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cellipse cx='12' cy='12' rx='6.6' ry='4.8' transform='rotate(-32 12 12)' fill='%23d99a4e'/%3E%3Cpath d='M7.9 14.7C10 13.1 10.2 11 12 10.3s2.8-.7 4.1-1' fill='none' stroke='%232a170c' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E");
  --cf-leg-feat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9.6' fill='none' stroke='%23f2c66d' stroke-width='1.6'/%3E%3Cellipse cx='12' cy='12' rx='6.6' ry='4.8' transform='rotate(-32 12 12)' fill='%23d99a4e'/%3E%3Cpath d='M7.9 14.7C10 13.1 10.2 11 12 10.3s2.8-.7 4.1-1' fill='none' stroke='%232a170c' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E");
  --cf-leg-gone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cellipse cx='12' cy='12' rx='6.6' ry='4.8' transform='rotate(-32 12 12)' fill='none' stroke='%23d99a4e' stroke-width='1.6'/%3E%3Cpath d='M7.9 14.7C10 13.1 10.2 11 12 10.3s2.8-.7 4.1-1' fill='none' stroke='%23d99a4e' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E");
  --cf-wet: rgba(233, 168, 87, .26);
  --drop-live: #c6e85a; --drop-soon: #3ec8e0; --drop-on-live: #19110c; --drop-on-soon: #062026;
  --cf-cup-latte: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 34'%3E%3Cellipse cx='19' cy='30.5' rx='15' ry='2.6' fill='none' stroke='%23ecd3ad' stroke-width='1.5'/%3E %3Cpath d='M6 12h24v3.5a12 12 0 0 1-12 12a12 12 0 0 1-12-12z' fill='%23f6ead6' stroke='%23ecd3ad' stroke-width='1.5' stroke-linejoin='round'/%3E %3Cpath d='M30 14.5h1.8a3.4 3.4 0 0 1 0 6.8h-3' fill='none' stroke='%23ecd3ad' stroke-width='1.5'/%3E%3Cellipse cx='18' cy='12' rx='12' ry='2.8' fill='%23c99a63' stroke='%23ecd3ad' stroke-width='1.2'/%3E%3Cpath d='M18 14c-2.6-1.4-3.6-2.4-2.6-3.4c.7-.6 1.9-.3 2.6.6c.7-.9 1.9-1.2 2.6-.6c1 1-.0 2-2.6 3.4z' fill='%23fbf3e4'/%3E%3C/svg%3E"); --cf-cup-espresso: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 34'%3E%3Cellipse cx='19' cy='30.5' rx='15' ry='2.6' fill='none' stroke='%23ecd3ad' stroke-width='1.5'/%3E %3Cpath d='M11.5 15h15v5.5a7.5 7.5 0 0 1-7.5 7.5a7.5 7.5 0 0 1-7.5-7.5z' fill='%233b2113' stroke='%23ecd3ad' stroke-width='1.5' stroke-linejoin='round'/%3E %3Cpath d='M26.5 17.5h1.4a2.6 2.6 0 0 1 0 5.2h-1.8' fill='none' stroke='%23ecd3ad' stroke-width='1.5'/%3E %3Cellipse cx='19' cy='15' rx='7.5' ry='1.9' fill='%23c8853a' stroke='%23ecd3ad' stroke-width='1.2'/%3E%3C/svg%3E"); --cf-cup-auto: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 34'%3E%3Cdefs%3E%3ClinearGradient id='h'%3E%3Cstop offset='.5' stop-color='%23f6ead6'/%3E%3Cstop offset='.5' stop-color='%233b2113'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cellipse cx='19' cy='30.5' rx='15' ry='2.6' fill='none' stroke='%23ecd3ad' stroke-width='1.5'/%3E %3Cpath d='M6 12h24v3.5a12 12 0 0 1-12 12a12 12 0 0 1-12-12z' fill='url(%23h)' stroke='%23ecd3ad' stroke-width='1.5' stroke-linejoin='round'/%3E %3Cpath d='M30 14.5h1.8a3.4 3.4 0 0 1 0 6.8h-3' fill='none' stroke='%23ecd3ad' stroke-width='1.5'/%3E%3Cellipse cx='18' cy='12' rx='12' ry='2.8' fill='%23c99a63' stroke='%23ecd3ad' stroke-width='1.2'/%3E%3C/svg%3E");
}
:root[data-theme="coffee"] body { background-color: var(--bg); background-image: var(--cf-lamp), var(--cf-grain); background-repeat: no-repeat, repeat; }
:root[data-theme="coffee"] ::selection { background: var(--cf-press); color: var(--cf-on-press); }

/* surfaces: cream paper with grain, crisp label corners */
:root[data-theme="coffee"] .map-panel, :root[data-theme="coffee"] .card, :root[data-theme="coffee"] .filter-panel, :root[data-theme="coffee"] .fav-panel, :root[data-theme="coffee"] .fav-banner, :root[data-theme="coffee"] .map-empty, :root[data-theme="coffee"] .legend, :root[data-theme="coffee"] .theme-menu, :root[data-theme="coffee"] .filter-suggest { border: 1px solid var(--line); border-radius: 4px; background-color: var(--paper); background-image: var(--cf-grain); box-shadow: var(--shadow); }
:root[data-theme="coffee"] .map-panel { border-radius: 6px; border-color: var(--cf-rule); }
:root[data-theme="coffee"] .legend { border-radius: 3px; box-shadow: none; background-color: var(--legend-bg); border-color: var(--cf-rule); }
:root[data-theme="coffee"] .theme-menu, :root[data-theme="coffee"] .filter-suggest { box-shadow: var(--shadow-lg); }

/* type: Fraunces for the wordmark and names; tracked small capitals for every label */
:root[data-theme="coffee"] .title, :root[data-theme="coffee"] .list-title, :root[data-theme="coffee"] .drawer-title, :root[data-theme="coffee"] .card-name, :root[data-theme="coffee"] .year-value { font-family: var(--cf-display); font-weight: 600; letter-spacing: -.014em; }
:root[data-theme="coffee"] .site-header::before { content: "Single-origin pen makers" / ""; display: block; margin: 0 0 10px;
  font-size: 11px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--cf-label); }
:root[data-theme="coffee"] .title { font-size: 52px; line-height: 1.02; color: var(--ink); text-shadow: var(--cf-glow); }
:root[data-theme="coffee"] .subtitle { font-family: var(--cf-display); font-style: italic; font-weight: 400; font-size: 18px; color: var(--ink-2); margin-top: 8px;
  border-bottom: 1px solid var(--cf-rule); padding-bottom: 2px; }
:root[data-theme="coffee"] .subtitle:hover { color: var(--accent); border-bottom-color: var(--accent); }
:root[data-theme="coffee"] .list-title { font-size: 34px; }
:root[data-theme="coffee"] .drawer-title { font-size: 28px; }
:root[data-theme="coffee"] .card-name { font-size: 23px; line-height: 1.12; }
:root[data-theme="coffee"] .year-value { font-size: 36px; color: var(--ink); }
:root[data-theme="coffee"] .country-name { font-family: var(--cf-display); font-weight: 600; font-size: 24px; letter-spacing: -.008em; text-transform: none; color: var(--ink); }
:root[data-theme="coffee"] .region-name, :root[data-theme="coffee"] .fg-label, :root[data-theme="coffee"] .theme-lab { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--cf-label); }
:root[data-theme="coffee"] .region, :root[data-theme="coffee"] .maker-flat li { border-top-color: var(--line); }
:root[data-theme="coffee"] .site-footer p:first-child { border-top-color: var(--cf-rule); }
:root[data-theme="coffee"] .site-footer a { color: var(--accent); }

/* chips and buttons: kraft stock with grain; pressed = an espresso stamp (light) or lit crema (dark) */
:root[data-theme="coffee"] .filter-chip, :root[data-theme="coffee"] .af-chip, :root[data-theme="coffee"] .list-sort-btn, :root[data-theme="coffee"] .card-links a, :root[data-theme="coffee"] .fav-toggle, :root[data-theme="coffee"] .fav-btn, :root[data-theme="coffee"] .fav-banner-actions button, :root[data-theme="coffee"] .world-btn, :root[data-theme="coffee"] .world-back, :root[data-theme="coffee"] .print-now, :root[data-theme="coffee"] .print-back, :root[data-theme="coffee"] .filters-btn { border-radius: 3px; border: 1px solid var(--cf-kraft-line); background-color: var(--chip); background-image: var(--cf-grain); color: var(--ink); box-shadow: 0 1px 0 rgba(34, 21, 13, .06); }
:root[data-theme="coffee"] .filter-chip:hover, :root[data-theme="coffee"] .af-chip:hover, :root[data-theme="coffee"] .list-sort-btn:hover, :root[data-theme="coffee"] .card-links a:hover, :root[data-theme="coffee"] .fav-toggle:hover, :root[data-theme="coffee"] .fav-btn:hover, :root[data-theme="coffee"] .fav-banner-actions button:hover, :root[data-theme="coffee"] .world-btn:hover, :root[data-theme="coffee"] .world-back:hover, :root[data-theme="coffee"] .print-now:hover, :root[data-theme="coffee"] .print-back:hover, :root[data-theme="coffee"] .filters-btn:hover { background-color: var(--chip-hover); }
:root[data-theme="coffee"] .filter-chip[aria-pressed="true"], :root[data-theme="coffee"] .list-sort-btn[aria-pressed="true"], :root[data-theme="coffee"] .filters-btn[aria-expanded="true"], :root[data-theme="coffee"] .fav-toggle[aria-pressed="true"] { background-color: var(--cf-press); background-image: none; color: var(--cf-on-press); border-color: var(--cf-press); box-shadow: var(--cf-press-glow); }
:root[data-theme="coffee"] .filter-chip .chip-n { background: rgba(34, 21, 13, .09); color: var(--ink-2); border-radius: 2px; }
:root[data-theme="coffee"][data-mode="dark"] .filter-chip .chip-n { background: rgba(244, 230, 208, .08); }
:root[data-theme="coffee"] .filter-chip[aria-pressed="true"] .chip-n { background: rgba(255, 255, 255, .15); color: var(--cf-on-press); }
:root[data-theme="coffee"][data-mode="dark"] .filter-chip[aria-pressed="true"] .chip-n { background: rgba(26, 15, 8, .14); }
:root[data-theme="coffee"] .filter-chip.chip-curated { border-style: dashed; }
:root[data-theme="coffee"] .filter-chip.chip-curated .chip-ico { color: var(--accent); }
:root[data-theme="coffee"] .af-chip { background: var(--cf-press); color: var(--cf-on-press); border-color: var(--cf-press); }
:root[data-theme="coffee"] .list-sort { border-radius: 3px; border-color: var(--cf-kraft-line); background-color: var(--chip); background-image: var(--cf-grain); }
:root[data-theme="coffee"] .list-sort-btn { border-radius: 2px; border: 0; background: transparent; box-shadow: none; }
:root[data-theme="coffee"] .list-sort-btn[aria-pressed="true"] { background: var(--cf-press); color: var(--cf-on-press); }
:root[data-theme="coffee"] .card-links a.primary { background: var(--cf-press); background-image: none; color: var(--cf-on-press); border-color: var(--cf-press); box-shadow: var(--cf-press-glow); }
:root[data-theme="coffee"] .card-links a.primary:hover { background: var(--accent); border-color: var(--accent); color: var(--cf-on-accent); }
:root[data-theme="coffee"] .play { background: var(--cf-press); color: var(--cf-on-press); border-color: var(--cf-press); box-shadow: var(--cf-press-glow); }
:root[data-theme="coffee"] .filters-badge { background: var(--accent); color: var(--cf-on-accent); }
:root[data-theme="coffee"] .discover-search-box, :root[data-theme="coffee"] .list-search, :root[data-theme="coffee"] .list-filter, :root[data-theme="coffee"] .filter-search { border-radius: 3px; border-color: var(--cf-kraft-line); background-color: var(--paper); }
:root[data-theme="coffee"] .discover-search-box:focus-within, :root[data-theme="coffee"] .list-search:focus, :root[data-theme="coffee"] .filter-search:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(194, 122, 31, .28); }
:root[data-theme="coffee"] .theme-toggle { border-radius: 3px; border-color: var(--cf-kraft-line); background-color: var(--chip); background-image: var(--cf-grain); }
:root[data-theme="coffee"] .theme-opt { border-radius: 3px; }
:root[data-theme="coffee"] .theme-opt-label { font-family: var(--cf-display); font-weight: 600; font-size: 17px; letter-spacing: -.005em; }
:root[data-theme="coffee"] .theme-sw { border-radius: 3px; }
:root[data-theme="coffee"] .mode-opt { border-radius: 3px; border-color: var(--cf-kraft-line); }
:root[data-theme="coffee"] .mode-opt[aria-checked="true"] { background: var(--cf-press); color: var(--cf-on-press); border-color: var(--cf-press); box-shadow: var(--cf-press-glow); }
:root[data-theme="coffee"] .maker-row.is-active, :root[data-theme="coffee"] .maker-btn.active { background: var(--active); }

/* card: a roaster's bag label. Stamped band on top, double hairline frame, tasting-notes rows, sticker chips */
:root[data-theme="coffee"] .card { border-radius: 4px; padding: 0 18px 16px; overflow: hidden;
  box-shadow: inset 0 0 0 5px var(--paper), inset 0 0 0 6px var(--cf-rule), var(--shadow-lg); }
:root[data-theme="coffee"] .card::before { content: "Maker\2019s notes" / ""; display: block; margin: 0 -18px 14px; padding: 0 18px; height: 30px; line-height: 30px;
  background: var(--cf-band); color: var(--cf-on-band); font-size: 10.5px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; }
:root[data-theme="coffee"] .card-close, :root[data-theme="coffee"] .card-star { top: 36px; }
@media (max-width: 640px) {
  :root[data-theme="coffee"] .card { padding: 0 20px calc(20px + env(safe-area-inset-bottom)); border-radius: 10px 10px 0 0; }
  :root[data-theme="coffee"] .card::before { position: static; left: auto; top: auto; width: auto; margin: 0 -20px 14px; padding: 0 20px; height: 36px; line-height: 36px; border-radius: 0; }
  :root[data-theme="coffee"] .card-close, :root[data-theme="coffee"] .card-star { top: 40px; }
}
:root[data-theme="coffee"] .card-name .ring-icon { color: var(--ring); }
:root[data-theme="coffee"] .card-tag { background: transparent; color: var(--cf-label); border: 1.5px solid currentColor; border-radius: 3px; font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; transform: rotate(-2deg); }
:root[data-theme="coffee"] .card-meta { margin-top: 10px; border-top: 1px solid var(--cf-rule); }
:root[data-theme="coffee"] .card-meta .loc, :root[data-theme="coffee"] .card-meta .founded, :root[data-theme="coffee"] .card-meta .price, :root[data-theme="coffee"] .card-meta .pen { display: grid; grid-template-columns: 106px minmax(0, 1fr); align-items: baseline;
  margin: 0; padding: 5px 0; border-bottom: 1px dotted var(--cf-dots); color: var(--ink); font-weight: 600; }
:root[data-theme="coffee"] .card-meta .loc::before { content: "Origin" / ""; }
:root[data-theme="coffee"] .card-meta .loc::before, :root[data-theme="coffee"] .card-meta .founded .k, :root[data-theme="coffee"] .card-meta .price .k, :root[data-theme="coffee"] .card-meta .pen .k, :root[data-theme="coffee"] .attr-k {
  font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--cf-label); }
:root[data-theme="coffee"] .card-attrs { margin-top: 8px; gap: 7px; }
:root[data-theme="coffee"] .attr-k { min-width: 98px; }
:root[data-theme="coffee"] .attr-tag { border-radius: 2px; border: 1px solid var(--cf-kraft-line); background-color: var(--cf-kraft); background-image: var(--cf-grain); color: var(--ink);
  font-weight: 700; box-shadow: 0 1px 0 rgba(34, 21, 13, .12); }
:root[data-theme="coffee"] .attr-mech .attr-tag { background: var(--accent); color: var(--cf-on-accent); border-color: transparent; }

/* map: roasted land (radial gradient, darker at the edges), coffee-bean pins, crema / gold rings */
:root[data-theme="coffee"] .land { fill: url(#cf-roast); }
:root[data-theme="coffee"] .land-ca { fill: var(--land-ca); }
:root[data-theme="coffee"] .country-border { stroke-width: 1.2px; }
:root[data-theme="coffee"] .country-name-label { letter-spacing: .26em; font-weight: 600; }
:root[data-theme="coffee"] .region-label { letter-spacing: .06em; }
:root[data-theme="coffee"] .pin .dot, :root[data-theme="coffee"] .country-pin .dot { display: none; }
:root[data-theme="coffee"] .bean-g { display: inline; transform-box: fill-box; transform-origin: center; transition: transform .2s ease; filter: var(--cf-pin-shadow); }
:root[data-theme="coffee"] .bean { fill: var(--cf-bean); stroke: var(--cf-bean-edge); stroke-width: .8px; }
:root[data-theme="coffee"] .bean-crease { fill: none; stroke: var(--cf-crease); stroke-width: 1.25px; stroke-linecap: round; }
:root[data-theme="coffee"] .pin.inactive .bean { fill: var(--paper); stroke: var(--cf-bean); stroke-width: 1.6px; }
:root[data-theme="coffee"] .pin.inactive .bean-crease { stroke: var(--cf-bean); }
:root[data-theme="coffee"] .pin.fav .bean-g { display: none; }
:root[data-theme="coffee"] .pin:hover:not(.active) .bean-g { transform: scale(1.22); }
:root[data-theme="coffee"] .pin.active .bean-g { transform: scale(1.25); }
:root[data-theme="coffee"][data-mode="dark"] .pin.active .bean-g { filter: drop-shadow(0 0 6px rgba(242, 198, 109, .7)); }
:root[data-theme="coffee"] .pin .ring { stroke: var(--ring); stroke-width: 2.2px; fill: var(--cf-crema); }
:root[data-theme="coffee"] .pin .star { fill: var(--ring); }
:root[data-theme="coffee"] .country-pin .pin-halo { fill: var(--ring); opacity: .28; }
:root[data-theme="coffee"] .hi-inset-frame { stroke: var(--cf-rule); }
:root[data-theme="coffee"] .legend-row .legend-icon { background: center / contain no-repeat; }
:root[data-theme="coffee"] .legend-row .legend-icon circle { display: none; }
:root[data-theme="coffee"] .legend-row:nth-child(1) .legend-icon { background-image: var(--cf-leg-bean); }
:root[data-theme="coffee"] .legend-row:nth-child(2) .legend-icon { background-image: var(--cf-leg-feat); }
:root[data-theme="coffee"] .legend-row:nth-child(3) .legend-icon { background-image: var(--cf-leg-gone); }
/* list markers: the same beans (the featured ring circle stays) */
:root[data-theme="coffee"] .maker-btn .m-sw { background: var(--cf-leg-bean) center / 15px no-repeat; }
:root[data-theme="coffee"] .maker-btn .m-sw.is-gone { background-image: var(--cf-leg-gone); }
:root[data-theme="coffee"] .maker-btn .m-sw circle:first-child { display: none; }
/* the one coffee ring: on the map's lower-right ocean corner, under the map art */
:root[data-theme="coffee"] #map { position: relative; z-index: 1; }
:root[data-theme="coffee"] .map-wrap::before { content: ""; position: absolute; z-index: 0; pointer-events: none; right: -46px; bottom: -40px; width: 250px; height: 250px;
  background-color: var(--cf-stain); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E %3Ccircle cx='50' cy='50' r='42' fill='none' stroke='black' stroke-width='1.4' opacity='.9'/%3E %3Ccircle cx='50.8' cy='49.4' r='40.4' fill='none' stroke='black' stroke-width='4.6' opacity='.22'/%3E %3Cpath d='M12.5 60a39 39 0 0 0 31 28' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' opacity='.55'/%3E %3Cpath d='M83 30a38 38 0 0 0-14-14' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' opacity='.4'/%3E %3Ccircle cx='22' cy='88' r='2.2' fill='black' opacity='.35'/%3E%3Ccircle cx='15' cy='93' r='1.2' fill='black' opacity='.3'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E %3Ccircle cx='50' cy='50' r='42' fill='none' stroke='black' stroke-width='1.4' opacity='.9'/%3E %3Ccircle cx='50.8' cy='49.4' r='40.4' fill='none' stroke='black' stroke-width='4.6' opacity='.22'/%3E %3Cpath d='M12.5 60a39 39 0 0 0 31 28' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' opacity='.55'/%3E %3Cpath d='M83 30a38 38 0 0 0-14-14' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' opacity='.4'/%3E %3Ccircle cx='22' cy='88' r='2.2' fill='black' opacity='.35'/%3E%3Ccircle cx='15' cy='93' r='1.2' fill='black' opacity='.3'/%3E%3C/svg%3E") center / contain no-repeat; transform: rotate(24deg); }
@media (max-width: 640px) { :root[data-theme="coffee"] .map-wrap::before { width: 150px; height: 150px; right: -34px; bottom: -30px; } }
:root[data-theme="coffee"] body.still .map-wrap::before, :root[data-theme="coffee"] body.print .map-wrap::before { display: none; }

/* the roaster's seal: a stamped round mark to the right of the wordmark (wide screens only) */
:root[data-theme="coffee"] .site-header::after { content: ""; position: absolute; z-index: -1; pointer-events: none; top: 18px; right: 78px; width: 120px; height: 120px;
  background-color: var(--cf-stamp); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E %3Cdefs%3E%3Cpath id='c' d='M60 60m-43 0a43 43 0 1 1 86 0a43 43 0 1 1-86 0'/%3E%3C/defs%3E %3Ccircle cx='60' cy='60' r='56' fill='none' stroke='black' stroke-width='2'/%3E %3Ccircle cx='60' cy='60' r='52' fill='none' stroke='black' stroke-width='.8'/%3E %3Ccircle cx='60' cy='60' r='33' fill='none' stroke='black' stroke-width='.8'/%3E %3Ctext font-family='Georgia, serif' font-size='10.4' font-weight='700' letter-spacing='3.1' fill='black'%3E %3CtextPath href='%23c'%3ESMALL BATCH %C2%B7 MACHINED PENS %C2%B7 FRESH MAPPED %C2%B7%3C/textPath%3E%3C/text%3E %3Cg transform='translate(60 57) rotate(-32)'%3E%3Cellipse rx='13' ry='9.2' fill='black'/%3E %3Cpath d='M-10 1.6C-4 -6 4 6 10 -1.6' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'/%3E%3C/g%3E %3Ctext x='60' y='83' text-anchor='middle' font-family='Georgia, serif' font-size='8' font-weight='700' letter-spacing='2' fill='black'%3EMAKER MAP%3C/text%3E %3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E %3Cdefs%3E%3Cpath id='c' d='M60 60m-43 0a43 43 0 1 1 86 0a43 43 0 1 1-86 0'/%3E%3C/defs%3E %3Ccircle cx='60' cy='60' r='56' fill='none' stroke='black' stroke-width='2'/%3E %3Ccircle cx='60' cy='60' r='52' fill='none' stroke='black' stroke-width='.8'/%3E %3Ccircle cx='60' cy='60' r='33' fill='none' stroke='black' stroke-width='.8'/%3E %3Ctext font-family='Georgia, serif' font-size='10.4' font-weight='700' letter-spacing='3.1' fill='black'%3E %3CtextPath href='%23c'%3ESMALL BATCH %C2%B7 MACHINED PENS %C2%B7 FRESH MAPPED %C2%B7%3C/textPath%3E%3C/text%3E %3Cg transform='translate(60 57) rotate(-32)'%3E%3Cellipse rx='13' ry='9.2' fill='black'/%3E %3Cpath d='M-10 1.6C-4 -6 4 6 10 -1.6' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'/%3E%3C/g%3E %3Ctext x='60' y='83' text-anchor='middle' font-family='Georgia, serif' font-size='8' font-weight='700' letter-spacing='2' fill='black'%3EMAKER MAP%3C/text%3E %3C/svg%3E") center / contain no-repeat; transform: rotate(-12deg); }
@media (max-width: 1099px) { :root[data-theme="coffee"] .site-header::after { display: none; } }
:root[data-theme="coffee"] body.still .site-header::after, :root[data-theme="coffee"] body.print .site-header::after, :root[data-theme="coffee"] body.still .site-header::before, :root[data-theme="coffee"] body.print .site-header::before { display: none; }

/* the cup after the title, with a slow steam wisp (fixed box, so no layout shift) */
.title-cup { display: none; }
:root[data-theme="coffee"] .title-cup { display: inline-block; position: relative; width: .58em; height: .58em; margin-left: .22em; vertical-align: -.02em; color: var(--accent); }
:root[data-theme="coffee"] .title-cup::before { content: ""; position: absolute; inset: 0; background-color: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E %3Cpath d='M5.5 15h17v4.5a7.5 7.5 0 0 1-7.5 7.5h-2a7.5 7.5 0 0 1-7.5-7.5z' fill='black'/%3E %3Cpath d='M22.5 17.2h1.6a3.1 3.1 0 0 1 0 6.2h-2.4' fill='none' stroke='black' stroke-width='2'/%3E %3Cpath d='M3.5 30h21' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center bottom / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E %3Cpath d='M5.5 15h17v4.5a7.5 7.5 0 0 1-7.5 7.5h-2a7.5 7.5 0 0 1-7.5-7.5z' fill='black'/%3E %3Cpath d='M22.5 17.2h1.6a3.1 3.1 0 0 1 0 6.2h-2.4' fill='none' stroke='black' stroke-width='2'/%3E %3Cpath d='M3.5 30h21' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center bottom / contain no-repeat; }
:root[data-theme="coffee"] .title-cup::after { content: ""; position: absolute; left: -4%; right: 4%; bottom: 46%; height: 70%; background-color: var(--cf-steam);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E %3Cpath d='M10.5 30c-2.4-3 2.4-5.5 0-9s2.4-6 0-9M16 30c-2.4-3 2.4-5.5 0-9s2.4-6 0-9.5M21.5 30c-2.4-3 2.4-5.5 0-9s2.4-6 0-9' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center bottom / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E %3Cpath d='M10.5 30c-2.4-3 2.4-5.5 0-9s2.4-6 0-9M16 30c-2.4-3 2.4-5.5 0-9s2.4-6 0-9.5M21.5 30c-2.4-3 2.4-5.5 0-9s2.4-6 0-9' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center bottom / contain no-repeat;
  opacity: 0; animation: cf-steam 6.5s ease-in-out infinite; }
@keyframes cf-steam { 0% { opacity: 0; transform: translateY(4px) scaleY(.85); } 35% { opacity: 1; } 70% { opacity: .55; } 100% { opacity: 0; transform: translateY(-5px) scaleY(1.08); } }
@media (prefers-reduced-motion: reduce) { :root[data-theme="coffee"] .title-cup::after { animation: none; opacity: .8; transform: none; } :root[data-theme="coffee"] .bean-g { transition: none; } }
:root[data-theme="coffee"] body.still .title-cup, :root[data-theme="coffee"] body.print .title-cup { display: none; }
@media (max-width: 640px) { :root[data-theme="coffee"] .title { font-size: 36px; } :root[data-theme="coffee"] .list-title { font-size: 28px; } :root[data-theme="coffee"] .site-header::before { font-size: 10px; letter-spacing: .2em; margin-bottom: 8px; } }
:root[data-theme="coffee"][data-fun] .theme-toggle .theme-icon-palette { display: none; }
:root[data-theme="coffee"][data-fun] .theme-toggle .theme-icon-cup { display: block; color: var(--accent); }
:root[data-theme="coffee"] input[type="range"]::-webkit-slider-thumb { background: var(--paper); border-color: var(--accent); box-shadow: 0 1px 6px rgba(34, 21, 13, .28); }
:root[data-theme="coffee"] input[type="range"]::-moz-range-thumb { background: var(--paper); border-color: var(--accent); }
/* ---- v20261127d (1): the pour. Each card open, the label fills top to bottom behind a wavy coffee line (clip-path, 420 ms,
   once per open; map.js adds .cf-pour), and one drop falls from the "Maker's notes" band. Off under reduced motion. */
@property --cf-y { syntax: "<length-percentage>"; inherits: false; initial-value: 140%; }
:root[data-theme="coffee"] .card.cf-pour { animation: cf-pour .42s linear both, cf-wet .42s linear both;
  background-image: linear-gradient(to bottom, transparent calc(var(--cf-y) - 34px), var(--cf-wet) calc(var(--cf-y) - 3px), transparent var(--cf-y)), var(--cf-grain); }
@keyframes cf-pour { 0% { clip-path: polygon(-40px -40px, calc(100% + 40px) -40px, calc(100% + 40px) calc(0% + -0.0px), 100.00% calc(0% + -0.0px), 95.83% calc(0% + -2.5px), 91.67% calc(0% + -4.3px), 87.50% calc(0% + -5.0px), 83.33% calc(0% + -4.3px), 79.17% calc(0% + -2.5px), 75.00% calc(0% + 0.0px), 70.83% calc(0% + 2.5px), 66.67% calc(0% + 4.3px), 62.50% calc(0% + 5.0px), 58.33% calc(0% + 4.3px), 54.17% calc(0% + 2.5px), 50.00% calc(0% + -0.0px), 45.83% calc(0% + -2.5px), 41.67% calc(0% + -4.3px), 37.50% calc(0% + -5.0px), 33.33% calc(0% + -4.3px), 29.17% calc(0% + -2.5px), 25.00% calc(0% + 0.0px), 20.83% calc(0% + 2.5px), 16.67% calc(0% + 4.3px), 12.50% calc(0% + 5.0px), 8.33% calc(0% + 4.3px), 4.17% calc(0% + 2.5px), 0.00% calc(0% + 0.0px), -40px calc(0% + 0.0px)); } 25% { clip-path: polygon(-40px -40px, calc(100% + 40px) -40px, calc(100% + 40px) calc(36% + 8.0px), 100.00% calc(36% + 8.0px), 95.83% calc(36% + 6.9px), 91.67% calc(36% + 4.0px), 87.50% calc(36% + -0.0px), 83.33% calc(36% + -4.0px), 79.17% calc(36% + -6.9px), 75.00% calc(36% + -8.0px), 70.83% calc(36% + -6.9px), 66.67% calc(36% + -4.0px), 62.50% calc(36% + 0.0px), 58.33% calc(36% + 4.0px), 54.17% calc(36% + 6.9px), 50.00% calc(36% + 8.0px), 45.83% calc(36% + 6.9px), 41.67% calc(36% + 4.0px), 37.50% calc(36% + -0.0px), 33.33% calc(36% + -4.0px), 29.17% calc(36% + -6.9px), 25.00% calc(36% + -8.0px), 20.83% calc(36% + -6.9px), 16.67% calc(36% + -4.0px), 12.50% calc(36% + 0.0px), 8.33% calc(36% + 4.0px), 4.17% calc(36% + 6.9px), 0.00% calc(36% + 8.0px), -40px calc(36% + 8.0px)); } 50% { clip-path: polygon(-40px -40px, calc(100% + 40px) -40px, calc(100% + 40px) calc(64% + 0.0px), 100.00% calc(64% + 0.0px), 95.83% calc(64% + 4.5px), 91.67% calc(64% + 7.8px), 87.50% calc(64% + 9.0px), 83.33% calc(64% + 7.8px), 79.17% calc(64% + 4.5px), 75.00% calc(64% + -0.0px), 70.83% calc(64% + -4.5px), 66.67% calc(64% + -7.8px), 62.50% calc(64% + -9.0px), 58.33% calc(64% + -7.8px), 54.17% calc(64% + -4.5px), 50.00% calc(64% + 0.0px), 45.83% calc(64% + 4.5px), 41.67% calc(64% + 7.8px), 37.50% calc(64% + 9.0px), 33.33% calc(64% + 7.8px), 29.17% calc(64% + 4.5px), 25.00% calc(64% + -0.0px), 20.83% calc(64% + -4.5px), 16.67% calc(64% + -7.8px), 12.50% calc(64% + -9.0px), 8.33% calc(64% + -7.8px), 4.17% calc(64% + -4.5px), 0.00% calc(64% + 0.0px), -40px calc(64% + 0.0px)); } 75% { clip-path: polygon(-40px -40px, calc(100% + 40px) -40px, calc(100% + 40px) calc(86% + -7.0px), 100.00% calc(86% + -7.0px), 95.83% calc(86% + -6.1px), 91.67% calc(86% + -3.5px), 87.50% calc(86% + 0.0px), 83.33% calc(86% + 3.5px), 79.17% calc(86% + 6.1px), 75.00% calc(86% + 7.0px), 70.83% calc(86% + 6.1px), 66.67% calc(86% + 3.5px), 62.50% calc(86% + -0.0px), 58.33% calc(86% + -3.5px), 54.17% calc(86% + -6.1px), 50.00% calc(86% + -7.0px), 45.83% calc(86% + -6.1px), 41.67% calc(86% + -3.5px), 37.50% calc(86% + 0.0px), 33.33% calc(86% + 3.5px), 29.17% calc(86% + 6.1px), 25.00% calc(86% + 7.0px), 20.83% calc(86% + 6.1px), 16.67% calc(86% + 3.5px), 12.50% calc(86% + -0.0px), 8.33% calc(86% + -3.5px), 4.17% calc(86% + -6.1px), 0.00% calc(86% + -7.0px), -40px calc(86% + -7.0px)); } 100% { clip-path: polygon(-40px -40px, calc(100% + 40px) -40px, calc(100% + 40px) calc(100% + 60px + -0.0px), 100.00% calc(100% + 60px + -0.0px), 95.83% calc(100% + 60px + -1.5px), 91.67% calc(100% + 60px + -2.6px), 87.50% calc(100% + 60px + -3.0px), 83.33% calc(100% + 60px + -2.6px), 79.17% calc(100% + 60px + -1.5px), 75.00% calc(100% + 60px + 0.0px), 70.83% calc(100% + 60px + 1.5px), 66.67% calc(100% + 60px + 2.6px), 62.50% calc(100% + 60px + 3.0px), 58.33% calc(100% + 60px + 2.6px), 54.17% calc(100% + 60px + 1.5px), 50.00% calc(100% + 60px + -0.0px), 45.83% calc(100% + 60px + -1.5px), 41.67% calc(100% + 60px + -2.6px), 37.50% calc(100% + 60px + -3.0px), 33.33% calc(100% + 60px + -2.6px), 29.17% calc(100% + 60px + -1.5px), 25.00% calc(100% + 60px + 0.0px), 20.83% calc(100% + 60px + 1.5px), 16.67% calc(100% + 60px + 2.6px), 12.50% calc(100% + 60px + 3.0px), 8.33% calc(100% + 60px + 2.6px), 4.17% calc(100% + 60px + 1.5px), 0.00% calc(100% + 60px + -0.0px), -40px calc(100% + 60px + -0.0px)); } }
@keyframes cf-wet { 0% { --cf-y: calc(0%); } 25% { --cf-y: calc(36%); } 50% { --cf-y: calc(64%); } 75% { --cf-y: calc(86%); } 100% { --cf-y: calc(100% + 60px); } }
:root[data-theme="coffee"] .card.cf-pour::after { content: ""; position: absolute; z-index: 3; pointer-events: none; left: 34px; top: 26px; width: 9px; height: 9px;
  background: var(--cf-band); border-radius: 0 50% 50% 50%; transform: rotate(45deg); opacity: 0; animation: cf-drip .4s ease-in .04s both; }
@keyframes cf-drip { 0% { opacity: 0; transform: translateY(-3px) rotate(45deg) scale(.4); } 25% { opacity: 1; transform: translateY(2px) rotate(45deg) scale(1); }
  100% { opacity: 0; transform: translateY(30px) rotate(45deg) scale(.85); } }
@media (max-width: 640px) {
  :root[data-theme="coffee"] .card.cf-pour { animation: sheet .24s cubic-bezier(.2, .8, .2, 1), cf-pour .42s linear both, cf-wet .42s linear both; }
  :root[data-theme="coffee"] .card.cf-pour::after { top: 32px; left: 38px; }
}
@media (prefers-reduced-motion: reduce) { :root[data-theme="coffee"] .card.cf-pour { animation: none; } :root[data-theme="coffee"] .card.cf-pour::after { display: none; } }

/* ---- v20261127d (2): the list as a cafe menu. Light = a printed menu card; Dark = a chalkboard in a wooden frame.
   Each row: name, dotted leader, price range on the right; a small line under it with place and mechanisms. */
:root[data-theme="coffee"] .list-panel { --cf-lead: var(--cf-dots); position: relative; margin-top: 44px; padding: 30px 34px 26px; border-radius: 4px;
  background-color: #fdf9f1; background-image: var(--cf-grain); border: 1px solid var(--cf-rule);
  box-shadow: inset 0 0 0 7px #fdf9f1, inset 0 0 0 8px var(--cf-rule), inset 0 0 0 10px #fdf9f1, inset 0 0 0 11px var(--cf-rule), var(--shadow); }
:root[data-theme="coffee"] .list-panel::before { content: "Menu" / ""; display: block; text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .34em; text-transform: uppercase; color: var(--cf-label); margin: 4px 0 2px; }
:root[data-theme="coffee"] .list-title { text-align: center; font-size: 40px; margin-bottom: 14px; }
:root[data-theme="coffee"] .list-controls { justify-content: center; }
:root[data-theme="coffee"] .country-name { display: flex; align-items: center; gap: 16px; font-style: italic; font-weight: 400; font-size: 26px; margin-bottom: 6px; }
:root[data-theme="coffee"] .country-name::before, :root[data-theme="coffee"] .country-name::after { content: ""; flex: 1 1 0; height: 0; border-top: 1px solid var(--cf-rule); border-bottom: 1px solid var(--cf-rule); padding-top: 2px; }
:root[data-theme="coffee"] .region { border-top: 0; padding-bottom: 14px; }
:root[data-theme="coffee"] .region-name { margin: 12px 0 4px; padding-bottom: 4px; border-bottom: 1px solid var(--cf-rule); }
:root[data-theme="coffee"] .maker-flat li { border-top: 0; }
:root[data-theme="coffee"] .maker-row { border-radius: 3px; }
:root[data-theme="coffee"] .maker-btn { display: grid; grid-template-columns: auto minmax(14px, 1fr) auto; grid-template-areas: "name lead price" "sub sub sub";
  column-gap: 6px; row-gap: 0; align-items: baseline; align-items: last baseline; min-height: 44px; padding: 6px 8px; }
:root[data-theme="coffee"] .maker-btn .m-sw, :root[data-theme="coffee"] .maker-btn .m-meta { display: none; }
:root[data-theme="coffee"] .maker-btn .m-name { grid-area: name; min-width: 0; font-family: var(--cf-display); font-size: 17px; font-weight: 600; line-height: 1.25; letter-spacing: -.005em; color: var(--ink); }
:root[data-theme="coffee"] .maker-btn .m-lead { display: block; grid-area: lead; align-self: end; height: 0; margin-bottom: calc(.5em + 9px); border-bottom: 2px dotted var(--cf-lead); }
:root[data-theme="coffee"] .maker-btn .m-price { display: block; grid-area: price; font-size: 14.5px; font-weight: 700; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; color: var(--accent); }
:root[data-theme="coffee"] .maker-btn .m-sub { display: block; grid-area: sub; margin-top: 1px; font-size: 12.5px; line-height: 1.35; color: var(--ink-3); }
:root[data-theme="coffee"] .maker-btn.is-indexed .m-name::after { content: ""; display: inline-block; width: .7em; height: .7em; margin-left: .3em; vertical-align: .02em;
  background-color: var(--ring); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='7.6' fill='none' stroke='black' stroke-width='1.8'/%3E%3Ccircle cx='10' cy='10' r='3.4' fill='black'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='7.6' fill='none' stroke='black' stroke-width='1.8'/%3E%3Ccircle cx='10' cy='10' r='3.4' fill='black'/%3E%3C/svg%3E") center / contain no-repeat; }
:root[data-theme="coffee"] .maker-btn.dimmed .m-price { color: var(--ink-3); }
:root[data-theme="coffee"] .maker-star { align-self: flex-start; margin-top: 7px; }
@media (max-width: 640px) {
  :root[data-theme="coffee"] .list-panel { margin-left: -6px; margin-right: -6px; padding: 24px 18px 20px; }
  :root[data-theme="coffee"] .list-title { font-size: 32px; }
  :root[data-theme="coffee"] .country-name { font-size: 23px; }
  :root[data-theme="coffee"] .maker-btn { display: grid; padding: 7px 6px; }
  :root[data-theme="coffee"] .region-name { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--cf-label); }
}
/* Dark: a chalkboard. The board resets the ink colors for everything inside it (inputs, sort, empty state too). */
:root[data-theme="coffee"][data-mode="dark"] .list-panel { --ink: #f1ede4; --ink-2: #d9d4c8; --ink-3: #bfb9ad; --accent: #f2d38a; --cf-label: #f0b46a; --ring: #f2d38a;
  --line: rgba(241, 237, 228, .18); --cf-rule: rgba(241, 237, 228, .28); --cf-lead: rgba(241, 237, 228, .42); --paper: #232724; --chip: #2a2f2b; --chip-hover: #323833;
  --cf-kraft-line: rgba(241, 237, 228, .3); --cf-press: #f2d38a; --cf-on-press: #1b1f1c; --hover: rgba(241, 237, 228, .06); --active: rgba(242, 211, 138, .12);
  color: var(--ink); border: 0; border-radius: 6px;
  background-color: #1d211e;
  background-image: radial-gradient(60% 40% at 22% 18%, rgba(255, 255, 255, .045), transparent 70%), radial-gradient(50% 35% at 80% 70%, rgba(255, 255, 255, .035), transparent 70%), var(--cf-grain);
  box-shadow: 0 0 0 9px #4a2e1a, 0 0 0 10px #2a190d, inset 0 0 0 1px rgba(0, 0, 0, .5), inset 0 0 40px rgba(0, 0, 0, .45), 0 22px 50px -18px rgba(0, 0, 0, .9); }
:root[data-theme="coffee"][data-mode="dark"] .list-panel::before { color: var(--cf-label); }
:root[data-theme="coffee"][data-mode="dark"] .list-panel .list-title, :root[data-theme="coffee"][data-mode="dark"] .list-panel .country-name, :root[data-theme="coffee"][data-mode="dark"] .maker-btn .m-name { text-shadow: 0 0 1px rgba(241, 237, 228, .35); }
:root[data-theme="coffee"][data-mode="dark"] .list-panel .list-title, :root[data-theme="coffee"][data-mode="dark"] .list-panel .country-name { color: var(--ink); }
:root[data-theme="coffee"][data-mode="dark"] .list-panel .country-name::before, :root[data-theme="coffee"][data-mode="dark"] .list-panel .country-name::after { border-top: 1px dashed var(--cf-rule); border-bottom: 0; padding-top: 0; }
:root[data-theme="coffee"][data-mode="dark"] .maker-btn .m-price { text-shadow: 0 0 1px rgba(242, 211, 138, .4); }
:root[data-theme="coffee"][data-mode="dark"] .list-panel .list-search, :root[data-theme="coffee"][data-mode="dark"] .list-panel .list-filter { background-color: rgba(241, 237, 228, .05); color: var(--ink); }
@media (max-width: 640px) { :root[data-theme="coffee"][data-mode="dark"] .list-panel { margin-left: 4px; margin-right: 4px; } }

/* ---- v20261127d (3): the Light / Dark switch as cups. Auto = a half-and-half cup, Light = a latte, Dark = an espresso.
   Picking one sends up a small steam puff (index.html adds .is-puff for 1.2 s). Labels and keyboard use are unchanged. */
:root[data-theme="coffee"] .mode-opt .mode-ico { display: none; }
:root[data-theme="coffee"] .mode-cup { display: block; position: relative; width: 40px; height: 34px; background: var(--cf-cup-auto) center bottom / contain no-repeat; }
:root[data-theme="coffee"] .mode-opt[data-mode-choice="light"] .mode-cup { background-image: var(--cf-cup-latte); }
:root[data-theme="coffee"] .mode-opt[data-mode-choice="dark"] .mode-cup { background-image: var(--cf-cup-espresso); }
:root[data-theme="coffee"] .mode-opt { min-height: 70px; gap: 2px; }
:root[data-theme="coffee"] .mode-opt[aria-checked="true"] { background: var(--active); color: var(--ink); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent), var(--cf-press-glow); }
:root[data-theme="coffee"] .mode-cup::after { content: ""; position: absolute; left: 14%; width: 62%; bottom: 58%; height: 95%; background-color: var(--cf-steam);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E %3Cpath d='M10.5 30c-2.4-3 2.4-5.5 0-9s2.4-6 0-9M16 30c-2.4-3 2.4-5.5 0-9s2.4-6 0-9.5M21.5 30c-2.4-3 2.4-5.5 0-9s2.4-6 0-9' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center bottom / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E %3Cpath d='M10.5 30c-2.4-3 2.4-5.5 0-9s2.4-6 0-9M16 30c-2.4-3 2.4-5.5 0-9s2.4-6 0-9.5M21.5 30c-2.4-3 2.4-5.5 0-9s2.4-6 0-9' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center bottom / contain no-repeat; opacity: 0; pointer-events: none; }
:root[data-theme="coffee"] .mode-opt.is-puff .mode-cup::after { animation: cf-puff 1.1s ease-out 1 both; }
@keyframes cf-puff { 0% { opacity: 0; transform: translateY(8px) scale(.6); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px) scale(1.2); } }
@media (prefers-reduced-motion: reduce) { :root[data-theme="coffee"] .mode-opt.is-puff .mode-cup::after { animation: none; } }
/* the picker swatch for Coffee (shown in every theme's menu): a kraft label with a bean */
.theme-opt[data-theme-choice="coffee"] .theme-sw { border-radius: 4px; border-color: rgba(58, 33, 20, .35); box-shadow: inset 0 0 0 2px rgba(255, 246, 230, .35); }
:root[data-mode="dark"] .theme-opt[data-theme-choice="coffee"] .theme-sw { border-color: rgba(233, 168, 87, .45); --cf-sw-crease: #1a0f08; box-shadow: inset 0 0 10px rgba(233, 168, 87, .18); }
/* ==== End Coffee ==== */

/* ---- v20261203e: Coffee signature. Three surfaces, all Coffee-only.
   (1) the year slider is a roast profile, (2) the card reads as an order ticket,
   (3) beans settle when you point at them. Nothing here touches other themes, adds a
   font, or changes the map-panel size. Motion is off under prefers-reduced-motion. ---- */
:root[data-theme="coffee"] {
  --cf-roast: linear-gradient(90deg, #97a05e 0%, #c3b06a 15%, #cb8f49 36%, #a85f2b 58%, #7a4021 78%, #3b2113 100%);
  --cf-veil: rgba(251, 245, 234, .82);
  --cf-bean-thumb: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cellipse cx='16' cy='16' rx='9.4' ry='6.6' transform='rotate(-32 16 16)' fill='%233b2113' stroke='%23fbf5ea' stroke-width='1.7'/%3E%3Cpath d='M10 20c3-2.3 3.2-5.2 6-6.2s3.8-1 5.6-1.4' fill='none' stroke='%23e6c08c' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
}
:root[data-theme="coffee"][data-mode="dark"] {
  --cf-roast: linear-gradient(90deg, #5d6438 0%, #8d7b45 15%, #b26f36 36%, #c0642a 58%, #8f4620 78%, #4a2413 100%);
  --cf-veil: rgba(25, 17, 12, .8);
  --cf-bean-thumb: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cellipse cx='16' cy='16' rx='9.4' ry='6.6' transform='rotate(-32 16 16)' fill='%23e9b066' stroke='%2319110c' stroke-width='1.7'/%3E%3Cpath d='M10 20c3-2.3 3.2-5.2 6-6.2s3.8-1 5.6-1.4' fill='none' stroke='%232a170c' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* (1) roast profile. The un-swept part of the track is veiled, so dragging right roasts it. */
:root[data-theme="coffee"] input[type="range"]::-webkit-slider-runnable-track {
  height: 8px; border-radius: 4px;
  background-image: linear-gradient(90deg, transparent 0 var(--fill), var(--cf-veil) var(--fill) 100%), var(--cf-roast);
  box-shadow: inset 0 0 0 1px rgba(34, 21, 13, .18);
}
:root[data-theme="coffee"] input[type="range"]::-moz-range-track {
  height: 8px; border-radius: 4px; background: var(--cf-roast);
  box-shadow: inset 0 0 0 1px rgba(34, 21, 13, .18);
}
:root[data-theme="coffee"] input[type="range"]::-moz-range-progress { background: transparent; }
:root[data-theme="coffee"] input[type="range"]::-webkit-slider-thumb {
  width: 30px; height: 30px; margin-top: -11px;
  border: 0; border-radius: 50%;
  background: transparent var(--cf-bean-thumb) center / 27px 27px no-repeat;
  box-shadow: none;
}
:root[data-theme="coffee"] input[type="range"]::-moz-range-thumb {
  width: 27px; height: 27px; border: 0; border-radius: 50%;
  background: transparent var(--cf-bean-thumb) center / 26px 26px no-repeat;
}
:root[data-theme="coffee"] input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--active); }

/* (2) order ticket: sequence line, tear line, and the status as a rubber stamp. */
:root[data-theme="coffee"] .card-order {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  margin: 2px 0 10px; padding-bottom: 7px;
  border-bottom: 1px dashed var(--cf-rule);
  font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--cf-label);
}
:root[data-theme="coffee"] .card-order b {
  font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .08em; color: var(--ink-3);
}
:root[data-theme="coffee"] .card-meta { border-top: 0; padding-top: 0; }
:root[data-theme="coffee"] .card-stamp {
  /* In flow, not absolute: overlapping the order line looked like a mistake. Sitting under
     the tear line, slightly rotated, reads as a stamp on the ticket. */
  display: inline-block; margin: 0 0 10px 2px; padding: 3px 8px;
  max-width: 100%;
  border: 2px solid var(--accent); border-radius: 3px;
  color: var(--accent); background: transparent; opacity: .82;
  transform: rotate(-8deg);
  font-size: 9.5px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase;
  line-height: 1.3; text-align: center; pointer-events: none;
}
:root[data-theme="coffee"] .card-stamp[hidden] { display: none; }
/* the stamp carries the status in Coffee, so the pill would be a duplicate */
:root[data-theme="coffee"] .card-tag { display: none; }

/* (3) beans settle when you point at them, and the menu's dotted leader warms up. */
:root[data-theme="coffee"] .pin:hover:not(.active) .bean-g,
:root[data-theme="coffee"] .pin:focus-visible:not(.active) .bean-g { transform: rotate(-9deg) scale(1.16); }
:root[data-theme="coffee"] .pin:hover .bean-crease,
:root[data-theme="coffee"] .pin:focus-visible .bean-crease { stroke-width: 1.8px; }
:root[data-theme="coffee"] .maker-btn .m-lead { transition: border-color .2s ease; }
:root[data-theme="coffee"] .maker-row:hover .m-lead { border-bottom-color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  :root[data-theme="coffee"] .pin:hover:not(.active) .bean-g,
  :root[data-theme="coffee"] .pin:focus-visible:not(.active) .bean-g { transform: none; }
  :root[data-theme="coffee"] .maker-btn .m-lead { transition: none; }
}

/* ---- v20261203e: (3) the brew-in reveal, (5) chalkboard Filters drawer in dark,
   and the rest of (4): the list's bean markers lean when you point at a row. ---- */

/* (3) One pour-over pass over the map on first paint. map.js sets body[data-brew] once
   (so it cannot re-run) and .cf-brew for the length of the animation. */
@keyframes cf-brew { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
:root[data-theme="coffee"] body.cf-brew #map {
  animation: cf-brew .85s cubic-bezier(.33, .06, .22, 1) both;
}
@media (prefers-reduced-motion: reduce) {
  :root[data-theme="coffee"] body.cf-brew #map { animation: none; }
}
body.still.cf-brew #map, body.print.cf-brew #map { animation: none; }

/* (4) the list's bean markers answer the pointer, like the map pins do. */
:root[data-theme="coffee"] .maker-btn .m-sw { transition: transform .18s ease; }
:root[data-theme="coffee"] .maker-row:hover .m-sw,
:root[data-theme="coffee"] .maker-btn:focus-visible .m-sw { transform: rotate(-9deg) scale(1.1); }
@media (prefers-reduced-motion: reduce) {
  :root[data-theme="coffee"] .maker-btn .m-sw { transition: none; }
  :root[data-theme="coffee"] .maker-row:hover .m-sw,
  :root[data-theme="coffee"] .maker-btn:focus-visible .m-sw { transform: none; }
}

/* (5) Dark: the Filters drawer is the same chalkboard as the "All makers" list, so the two
   panels agree at night. The token reset mirrors the list board; the frame is inset only,
   because the drawer sits 12px from the right edge and an outer ring would be clipped. */
:root[data-theme="coffee"][data-mode="dark"] .filter-panel {
  --ink: #f1ede4; --ink-2: #d9d4c8; --ink-3: #bfb9ad; --accent: #f2d38a; --cf-label: #f0b46a;
  --line: rgba(241, 237, 228, .18); --cf-rule: rgba(241, 237, 228, .28); --cf-kraft-line: rgba(241, 237, 228, .3);
  --paper: #232724; --chip: #2a2f2b; --chip-hover: #323833;
  --cf-press: #f2d38a; --cf-on-press: #1b1f1c;
  --hover: rgba(241, 237, 228, .06); --active: rgba(242, 211, 138, .12);
  color: var(--ink);
  border: 1px solid rgba(0, 0, 0, .55);
  background-color: #1d211e;
  background-image:
    radial-gradient(60% 40% at 22% 18%, rgba(255, 255, 255, .045), transparent 70%),
    radial-gradient(50% 35% at 80% 70%, rgba(255, 255, 255, .035), transparent 70%),
    var(--cf-grain);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), inset 0 0 44px rgba(0, 0, 0, .5), 0 30px 60px -24px rgba(0, 0, 0, .9);
}
/* chalk lines: group rules and the drawer's own dividers */
:root[data-theme="coffee"][data-mode="dark"] .filter-panel .fg + .fg,
:root[data-theme="coffee"][data-mode="dark"] .filter-panel .fg { border-top-color: rgba(241, 237, 228, .16); border-top-style: dashed; }
:root[data-theme="coffee"][data-mode="dark"] .filter-panel .fg-label { color: #f0b46a; }
:root[data-theme="coffee"][data-mode="dark"] .filter-panel .filter-chip {
  border-style: dashed; border-color: rgba(241, 237, 228, .3); background: transparent; color: var(--ink);
}
:root[data-theme="coffee"][data-mode="dark"] .filter-panel .filter-chip:hover { background: rgba(241, 237, 228, .07); }
:root[data-theme="coffee"][data-mode="dark"] .filter-panel .filter-chip[aria-pressed="true"] {
  background: var(--cf-press); border-style: solid; border-color: var(--cf-press); color: var(--cf-on-press);
}
:root[data-theme="coffee"][data-mode="dark"] .filter-panel .filter-chip[aria-pressed="true"] .chip-n { color: var(--cf-on-press); background: rgba(0, 0, 0, .12); }
:root[data-theme="coffee"][data-mode="dark"] .filter-panel .drawer-count,
:root[data-theme="coffee"][data-mode="dark"] .filter-panel .drawer-title { color: var(--ink); }
:root[data-theme="coffee"][data-mode="dark"] .filter-panel .sheet-handle { background: rgba(241, 237, 228, .35); }

/* ---- v20261203e: subtle motion, all 17 items. Only transform/opacity animate; every
   rule is off under prefers-reduced-motion at the bottom of this block.
   (1) pins fading on filter changes and (5) on timeline play already existed:
   `.pin .body` transitions opacity + scale and `.pin.hidden` drives it. ---- */

/* (2) a pin lifts a hair on hover, on top of the existing dot radius growth */
.pin:hover:not(.active) .body { transform: translateY(-1.5px); }

/* (3) fade-through when the map switches view (home <-> world <-> country) */
@keyframes view-in { from { opacity: .3; } to { opacity: 1; } }
#map.view-in { animation: view-in 200ms ease-out both; }

/* (4) the star settles when a maker is starred */
@keyframes fav-pop { 0% { transform: scale(1); } 45% { transform: scale(1.45); } 100% { transform: scale(1); } }
.pin.just-fav .star-mark { animation: fav-pop 280ms cubic-bezier(.2, .9, .3, 1.35); transform-box: fill-box; transform-origin: center; }

/* (6) only a count that moved bumps */
@keyframes chip-bump { 0% { transform: scale(1); } 40% { transform: scale(1.22); } 100% { transform: scale(1); } }
.filter-chip .chip-n { display: inline-block; }
.filter-chip.chip-bump .chip-n { animation: chip-bump 200ms ease-out; }

/* (7) active-filter pills ease in rather than appearing */
@keyframes af-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.af-chip { animation: af-in 160ms ease-out both; }

/* (8) the Filters count badge nudges */
@keyframes badge-bump { 0% { transform: scale(1); } 45% { transform: scale(1.28); } 100% { transform: scale(1); } }
#filters-badge.bump { animation: badge-bump 220ms ease-out; }

/* (9) the theme menu grows out of its button */
@keyframes menu-in { from { opacity: 0; transform: scale(.96) translateY(-3px); } to { opacity: 1; transform: none; } }
.theme-menu:not([hidden]) { animation: menu-in 140ms ease-out both; transform-origin: top right; }

/* (10) the big year pops when it changes */
@keyframes year-tick { 0% { transform: scale(1.07); } 100% { transform: scale(1); } }
.year-value.tick { animation: year-tick 160ms ease-out; transform-origin: 100% 50%; }

/* (11) play / pause cross-fade in place instead of swapping */
.play { position: relative; }
.play .icon-play, .play .icon-pause, .play.playing .icon-play, .play.playing .icon-pause {
  display: block; position: absolute; inset: 0; margin: auto; width: 22px; height: 22px;
  transition: opacity .14s ease, transform .14s ease;
}
.play .icon-play { opacity: 1; transform: scale(1); }
.play .icon-pause { opacity: 0; transform: scale(.85); }
.play.playing .icon-play { opacity: 0; transform: scale(.85); }
.play.playing .icon-pause { opacity: 1; transform: scale(1); }

/* (12) card lines stagger in (Coffee's pour already owns the card, so it is exempt) */
@keyframes meta-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.card:not(.cf-pour) .card-meta > * { animation: meta-in 200ms ease-out both; }
.card:not(.cf-pour) .card-meta > *:nth-child(2) { animation-delay: 25ms; }
.card:not(.cf-pour) .card-meta > *:nth-child(3) { animation-delay: 50ms; }
.card:not(.cf-pour) .card-meta > *:nth-child(4) { animation-delay: 75ms; }
.card:not(.cf-pour) .card-meta > *:nth-child(5) { animation-delay: 100ms; }
.card:not(.cf-pour) .card-meta > *:nth-child(n+6) { animation-delay: 125ms; }

/* (13) empty states fade in */
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.map-empty:not([hidden]), .list-empty:not([hidden]) { animation: fade-in 180ms ease-out both; }

/* (14) the subscribe prompt rises once, the first time it is scrolled into view */
@keyframes cta-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.subscribe.cta-in { animation: cta-in 320ms cubic-bezier(.2, .8, .2, 1) both; }

/* (15) Notebook: the underline draws itself under a section head */
@keyframes nb-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
:root[data-family="notebook"] .list-title, :root[data-family="notebook"] .drawer-title { position: relative; }
:root[data-family="notebook"] .list-title::after,
:root[data-family="notebook"] .drawer-title::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 2px;
  background: var(--nb-pen, currentColor); opacity: .55;
  transform-origin: left center;
  animation: nb-draw 420ms 240ms cubic-bezier(.3, .7, .3, 1) both;
}

/* (16) Terminal: a ticked chip catches like typing */
@keyframes t-catch { 0% { opacity: .2; } 60% { opacity: 1; } 100% { opacity: 1; } }
:root[data-family="terminal"] .filter-chip[aria-pressed="true"]::before,
:root[data-family="terminal"] .filter-chip[aria-pressed="true"]::after { animation: t-catch 160ms steps(2, jump-none); }

/* (17) Coffee: a faint wisp of steam over the card's name only (not every card's chrome) */
@keyframes cf-card-steam {
  0% { opacity: 0; transform: translateY(5px) scale(.92); }
  30% { opacity: .24; }
  70% { opacity: .12; }
  100% { opacity: 0; transform: translateY(-9px) scale(1.16); }
}
:root[data-theme="coffee"] .card-name { position: relative; }
:root[data-theme="coffee"] .card-name::after {
  content: ""; position: absolute; left: 0; top: -15px; width: 56px; height: 26px; z-index: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 100%, var(--cf-steam) 0%, transparent 72%);
  filter: blur(3px); opacity: 0; pointer-events: none;
  animation: cf-card-steam 7s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .pin:hover:not(.active) .body { transform: none; }
  #map.view-in, .pin.just-fav .star-mark, .filter-chip.chip-bump .chip-n,
  #filters-badge.bump, .theme-menu:not([hidden]), .year-value.tick,
  .af-chip, .card .card-meta > *, .map-empty:not([hidden]), .list-empty:not([hidden]),
  .subscribe.cta-in { animation: none !important; }
  .play .icon-play, .play .icon-pause { transition: none; }
  :root[data-family="notebook"] .list-title::after,
  :root[data-family="notebook"] .drawer-title::after { animation: none !important; transform: scaleX(1); }
  :root[data-family="terminal"] .filter-chip[aria-pressed="true"]::before,
  :root[data-family="terminal"] .filter-chip[aria-pressed="true"]::after { animation: none !important; }
  :root[data-theme="coffee"] .card-name::after { animation: none !important; opacity: 0; }
}

/* ---- v20261203e: coffee-craft motion. All Coffee-only; nothing here changes .map-panel
   geometry, and every continuous/decorative animation is off under reduced motion.
   (1) crema ripple + steam on pins, (2) bean-hopper drop, (3) set-down mug + roast bloom,
   (4) card stamp + tasting notes, (5) timeline ticks/shimmer, (6) café-menu wipe. ---- */

/* (1a) crema ripple — a ring that leaves the pin when it is selected, and a fainter one
   on hover. Hidden outside Coffee so other themes keep their plain pins. */
.crema-ring, .pin-steam { display: none; }
:root[data-theme="coffee"] .crema-ring {
  display: block; fill: none; stroke: var(--cf-crema-ring, var(--ring));
  stroke-width: 1.6px; opacity: 0; pointer-events: none;
  transform-box: fill-box; transform-origin: center;
}
:root[data-theme="coffee"] .pin.active .crema-ring {
  animation: crema-ripple 520ms cubic-bezier(.16, 1, .3, 1) both;
}
:root[data-theme="coffee"] .pin:hover:not(.active) .crema-ring {
  animation: crema-hover 300ms cubic-bezier(.16, 1, .3, 1) both;
}
@keyframes crema-ripple {
  0% { transform: scale(.8); opacity: .6; }
  100% { transform: scale(2.2); opacity: 0; }
}
@keyframes crema-hover {
  0% { transform: scale(.85); opacity: .32; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* (1b) two steam wisps on the active or a favourited pin, slow and low-contrast */
:root[data-theme="coffee"] .pin-steam { display: block; pointer-events: none; }
:root[data-theme="coffee"] .pin-steam-wisp {
  fill: none; stroke: var(--cf-steam); stroke-width: 1.1px; stroke-linecap: round;
  opacity: 0; transform-box: fill-box; transform-origin: bottom center;
}
:root[data-theme="coffee"] .pin.active .pin-steam-wisp,
:root[data-theme="coffee"] .pin.fav .pin-steam-wisp { animation: steam-rise 2.8s ease-in-out infinite; }
:root[data-theme="coffee"] .pin-steam-wisp.w1 { animation-delay: 0s; }
:root[data-theme="coffee"] .pin-steam-wisp.w2 { animation-delay: 1.3s; }
@keyframes steam-rise {
  0% { opacity: 0; transform: translateY(1.5px) scaleY(.72); }
  35% { opacity: .55; }
  70% { opacity: .22; transform: translateY(-2px) scaleY(1); }
  100% { opacity: 0; transform: translateY(-4.5px) scaleY(1.1); }
}

/* (2) bean-hopper drop: a pin that reappears after a filter, timeline step or view change
   drops in and settles. --hop-delay is written per pin by applyYear(). */
:root[data-theme="coffee"] .pin.pin-hop .bean-g {
  animation: hop-drop 200ms cubic-bezier(.2, .9, .3, 1.25) both;
  animation-delay: var(--hop-delay, 0ms);
}
@keyframes hop-drop {
  0% { transform: translateY(-6px) scale(.75) rotate(-12deg); }
  100% { transform: none; }
}

/* (3) entering Coffee: the mug is set down (the ocean-corner ring) and the roast blooms */
@keyframes mug-set-down {
  0% { opacity: 0; transform: scale(.93); }
  100% { opacity: 1; transform: scale(1); }
}
body.cf-warming .map-wrap::before { animation: mug-set-down 500ms ease-out both; }
@keyframes roast-bloom {
  0% { stop-opacity: .25; }
  100% { stop-opacity: 1; }
}
body.cf-warming #cf-roast stop { animation: roast-bloom 700ms ease-out both; }

/* (4) after the pour lands: the band takes an ink stamp, then the tasting notes arrive */
@keyframes band-press {
  0% { transform: scale(1.05); }
  100% { transform: scale(1); }
}
/* The pour already owns the card's entrance in Coffee. Leaving the base `pop` on .card
   means every change to the animation list (adding .cf-pour, then removing it) RESTARTS
   pop from opacity 0 — the card poured in, then blinked out and popped back. Measured:
   opacity 0 at t=900ms. So Coffee drops pop and lets the pour be the entrance. */
:root[data-theme="coffee"] .card { animation: none; }
/* Rows stay hidden until the wave lands, so the tasting notes arrive once instead of
   being visible during the pour and then re-fading from zero (a flicker). */
:root[data-theme="coffee"] .card.cf-pour .card-meta > * { opacity: 0; }
:root[data-theme="coffee"] .card.cf-notes::before { animation: band-press 180ms ease-out both; }
@keyframes note-in {
  0% { opacity: 0; transform: translateY(3px); }
  100% { opacity: 1; transform: none; }
}
:root[data-theme="coffee"] .card.cf-notes .card-meta > * { animation: note-in 200ms ease-out both; }
:root[data-theme="coffee"] .card.cf-notes .card-meta > *:nth-child(2) { animation-delay: 35ms; }
:root[data-theme="coffee"] .card.cf-notes .card-meta > *:nth-child(3) { animation-delay: 70ms; }
:root[data-theme="coffee"] .card.cf-notes .card-meta > *:nth-child(4) { animation-delay: 105ms; }
:root[data-theme="coffee"] .card.cf-notes .card-meta > *:nth-child(n+5) { animation-delay: 140ms; }

/* (5) roast ticks along the timeline, then a warm shimmer while it plays */
:root[data-theme="coffee"] .slider-wrap { position: relative; }
:root[data-theme="coffee"] .slider-wrap::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 12px;
  transform: translateY(-50%); pointer-events: none; opacity: .5;
  background-image: repeating-linear-gradient(90deg, var(--cf-rule) 0 1px, transparent 1px 12.5%);
  -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
:root[data-theme="coffee"] body.is-playing .year-value {
  animation: year-glow 2.4s ease-in-out infinite;
}
@keyframes year-glow {
  0%, 100% { text-shadow: none; }
  50% { text-shadow: 0 0 14px rgba(233, 168, 87, .45); }
}
/* The shimmer is a sweep on an author pseudo-element, not on the slider's UA track
   pseudo: getComputedStyle cannot report animations on ::-webkit-slider-runnable-track,
   so an effect built there would be unverifiable. */
:root[data-theme="coffee"] .slider-wrap::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 8px;
  transform: translateY(-50%); border-radius: 4px; pointer-events: none;
  opacity: 0; background-repeat: no-repeat; background-size: 38% 100%;
  background-image: linear-gradient(90deg, transparent, rgba(255, 214, 160, .5), transparent);
  background-position: -40% 0;
}
:root[data-theme="coffee"] body.is-playing .slider-wrap::after {
  opacity: 1; animation: track-shimmer 2.6s linear infinite;
}
@keyframes track-shimmer {
  0% { background-position: -40% 0; }
  100% { background-position: 140% 0; }
}

/* (6) café menu: the dotted leaders wipe in left-to-right when the list renders */
:root[data-theme="coffee"] .list-panel.cf-wipe .maker-btn .m-lead {
  animation: lead-wipe 220ms ease-out both;
}
@keyframes lead-wipe {
  0% { clip-path: inset(0 100% 0 0); }
  100% { clip-path: inset(0 0 0 0); }
}

@media (prefers-reduced-motion: reduce) {
  :root[data-theme="coffee"] .pin.active .crema-ring,
  :root[data-theme="coffee"] .pin:hover:not(.active) .crema-ring,
  :root[data-theme="coffee"] .pin.active .pin-steam-wisp,
  :root[data-theme="coffee"] .pin.fav .pin-steam-wisp,
  :root[data-theme="coffee"] .pin.pin-hop .bean-g,
  body.cf-warming .map-wrap::before,
  body.cf-warming #cf-roast stop,
  :root[data-theme="coffee"] .card.cf-notes::before,
  :root[data-theme="coffee"] .card.cf-notes .card-meta > *,
  :root[data-theme="coffee"] body.is-playing .year-value,
  :root[data-theme="coffee"] body.is-playing .slider-wrap::after,
  :root[data-theme="coffee"] .list-panel.cf-wipe .maker-btn .m-lead { animation: none !important; }
  :root[data-theme="coffee"] .crema-ring { opacity: 0; }
  :root[data-theme="coffee"] .pin.active .pin-steam-wisp,
  :root[data-theme="coffee"] .pin.fav .pin-steam-wisp { opacity: .3; transform: none; }
}


/* ---------- Upcoming drops (specs/upcoming-drops.md, Phase 3) ----------
   One quiet band under the discover bar: a count, a label, a chevron. Open, it is a
   typographic list (tag · maker · product · timing); on phones it opens as a sheet
   over the map. Pins with a drop carry a 6.5px accent dot. Text on accent uses
   --drop-on-accent (the theme's on-accent ink), never --paper.
   Ongoing markers are a warm yellow-green (--drop-live); upcoming markers are a cool
   blue-teal (--drop-soon). Each theme sets both so they stay apart and meet AA.
   Default light: live #3f6b12, soon #0c6e86. */
:root, :root[data-theme="light"] {
  --drop-on-accent: var(--on-ink);
  --drop-live: #3f6b12;
  --drop-soon: #0c6e86;
  --drop-on-live: #ffffff;
  --drop-on-soon: #ffffff;
}
:root[data-theme="dark"] {
  --drop-live: #c6e35a;
  --drop-soon: #3ec8e0;
  --drop-on-live: #111111;
  --drop-on-soon: #062026;
}
:root[data-theme="coffee"] { --drop-on-accent: var(--cf-on-accent); }

.drops-panel { flex: none; min-width: 0; max-width: 100%; margin: 0; padding: 0 14px; background: var(--paper); border-bottom: 1px solid var(--line); }
.drops-panel[hidden] { display: none; }
.drops-toggle { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 4px; border: 0; background: none; font: inherit; color: var(--ink); cursor: pointer; text-align: left; border-radius: 8px; }
.drops-toggle:hover .drops-toggle-label { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.drops-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--drop-soon); color: var(--drop-on-soon); font-size: 11px; font-weight: 700; line-height: 20px; text-align: center; font-variant-numeric: tabular-nums; flex: none; }
.drops-count.is-ongoing { background: var(--drop-live); color: var(--drop-on-live); }
.drops-count[hidden], .drops-toggle-sub[hidden] { display: none; }
.drops-toggle-label { font-size: 13.5px; font-weight: 600; letter-spacing: .01em; }
.drops-toggle-sub { font-size: 13px; color: var(--ink-2); }
.drops-toggle-sub::before { content: "\00b7\00a0"; color: var(--ink-3); }
.drops-chevron { width: 16px; height: 16px; margin-left: auto; color: var(--ink-3); flex: none; transition: transform .15s ease; }
.drops-toggle[aria-expanded="true"] .drops-chevron { transform: rotate(180deg); }
.drops-scrim, .drops-sheet-head { display: none; }
.drops-body { padding: 0 4px 6px; }
.drops-body[hidden] { display: none; }
.drops-list { list-style: none; margin: 0; padding: 0; }
.drops-group[hidden] { display: none; }
.drops-group-label { margin: 10px 0 0; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.drop-row { position: relative; display: grid; grid-template-columns: 10px minmax(0, 1fr) max-content; column-gap: 16px; align-items: baseline; min-width: 0; min-height: 40px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.35; }
.drop-mark { width: 7px; height: 7px; margin-top: .35em; border-radius: 50%; background: var(--ink-3); justify-self: center; }
.drop-row.is-ongoing .drop-mark { background: var(--drop-live); }
.drop-row.is-upcoming .drop-mark { background: var(--drop-soon); }
.drop-tag { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.drop-what { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop-maker { font-weight: 600; color: var(--ink); text-decoration: none; }
/* the whole row is the link's hit area */
.drop-maker::after { content: ""; position: absolute; inset: 0; border-radius: 6px; }
.drop-row:hover .drop-maker { text-decoration: underline; text-underline-offset: 3px; }
.drop-maker:focus-visible { outline: none; }
.drop-maker:focus-visible::after { outline: 2px solid var(--ink); outline-offset: -2px; }
.drop-product { color: var(--ink-2); }
.drop-sep { color: var(--ink-3); }
.drop-meta { font-size: 13px; color: var(--ink-2); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; min-width: max-content; }
.drop-unsure { font-style: italic; color: var(--ink-3); }
.drop-timer { font-size: 12.5px; font-weight: 600; color: var(--drop-live); font-variant-numeric: tabular-nums; white-space: nowrap; }
.card-meta .drop .drop-timer { font-size: 12.5px; font-weight: 600; }
.drop-date-note { margin: 6px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--ink-3); }
.drops-past { border-top: 1px solid var(--line); }
.drops-past-summary { display: flex; align-items: center; min-height: 40px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink-2); list-style: none; }
.drops-past-summary::-webkit-details-marker { display: none; }
.drops-past-summary::after { content: ""; width: 6px; height: 6px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s ease; }
.drops-past[open] .drops-past-summary::after { transform: translateY(1px) rotate(-135deg); }
.drops-past .drop-maker { color: var(--ink-2); }
body.still .drops-panel, body.print .drops-panel { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  .drops-body:not([hidden]) { animation: none; }
  .drops-chevron, .drops-past-summary::after { transition: none; }
}

/* Card: "Drop" in the key column, product, then one quiet line */
.card-meta .drop { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 6px; align-items: baseline; margin: 8px 0 0; color: var(--ink-2); }
.card-meta .drop .k { font-weight: 600; color: var(--ink-3); }
.card-meta .drop .drop-name { color: var(--ink); font-weight: 600; }
.card-meta .drop .drop-sub { display: block; font-size: 13px; color: var(--ink-2); margin-top: 1px; }

/* Pin dot: decorative, not a link; the pin opens the card */
g.pin .drop-badge { fill: var(--drop-soon); stroke: var(--paper); stroke-width: 1.5; pointer-events: none; }
g.pin .drop-badge.is-ongoing { fill: var(--drop-live); }
#legend-drop .legend-drop-dot { fill: var(--drop-soon); }
#legend-drop.is-ongoing .legend-drop-dot { fill: var(--drop-live); }
body.still g.pin .drop-badge, body.print g.pin .drop-badge, body.still #legend-drop, body.print #legend-drop { display: none; }
#legend-drop[hidden] { display: none; }

@media (max-width: 640px) {
  .drops-panel { padding: 0 10px; }
  .drops-toggle { min-height: 44px; }
  .drop-row { grid-template-columns: 10px minmax(0, 1fr); row-gap: 2px; min-height: 44px; padding: 11px 0; font-size: 15px; }
  .drops-group-label { margin-top: 12px; }
  .drop-meta { grid-column: 2; text-align: left; white-space: normal; }
  .drop-what { white-space: normal; }
  .drops-past-summary { min-height: 44px; font-size: 14px; }
  body.drops-sheet-open { overflow: hidden; }
  .drops-scrim:not([hidden]) { display: block; position: fixed; inset: 0; background: rgba(27, 22, 18, .28); z-index: 40; }
  .drops-body:not([hidden]) {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    max-height: 72vh; overflow: auto; overscroll-behavior: contain;
    padding: 0 18px calc(18px + env(safe-area-inset-bottom));
    background: var(--paper); border-radius: 20px 20px 0 0; box-shadow: var(--shadow-lg);
    animation: sheet .24s cubic-bezier(.2, .8, .2, 1);
  }
  .drops-sheet-head { display: flex; align-items: center; gap: 8px; position: sticky; top: 0; z-index: 1; padding: 14px 0 6px; background: inherit; }
  .drops-sheet-head .sheet-handle { position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--line); }
  .drops-sheet-title { flex: 1; margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
  .drops-close { width: 44px; height: 44px; margin-right: -10px; }
}

/* Terminal (light + dark): dashed rules, bracketed count, lowercase labels */
:root[data-theme="terminal"] .drops-panel { border-bottom: 1px dashed var(--line); }
:root[data-theme="terminal"] .drops-count { min-width: 0; height: auto; padding: 0; border-radius: 0; background: transparent; color: var(--drop-soon); font-size: 13px; line-height: 1.4; }
:root[data-theme="terminal"] .drops-count.is-ongoing { background: transparent; color: var(--drop-live); }
:root[data-theme="terminal"] .drops-count::before { content: "["; color: var(--ink-3); }
:root[data-theme="terminal"] .drops-count::after { content: "]"; color: var(--ink-3); }
:root[data-theme="terminal"] .drops-toggle-label { font-weight: 400; text-transform: lowercase; letter-spacing: 0; }
:root[data-theme="terminal"] .drops-toggle-sub::before { content: "//\00a0"; }
:root[data-theme="terminal"] .drops-chevron { color: var(--accent); }
:root[data-theme="terminal"] .drop-row, :root[data-theme="terminal"] .drops-past { border-top: 1px dashed var(--line); }
:root[data-theme="terminal"] .drop-row { font-size: 13px; }
:root[data-theme="terminal"] .drop-tag, :root[data-theme="terminal"] .drops-group-label { font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: lowercase; }
:root[data-theme="terminal"] .drop-mark { border-radius: 50% !important; }
:root[data-theme="terminal"] .drop-maker { font-weight: 700; }
:root[data-theme="terminal"] .drop-unsure { font-style: normal; }
:root[data-theme="terminal"] .drop-unsure::before { content: "~"; }
:root[data-theme="terminal"] .drops-past-summary { font-weight: 400; text-transform: lowercase; }
:root[data-theme="terminal"] .card-meta .drop .k { font-weight: 400; color: var(--ink-3); text-transform: lowercase; }
:root[data-theme="terminal"] .card-meta .drop .k::after { content: ":"; }
:root[data-theme="terminal"] .card-meta .drop .drop-name { font-weight: 700; }
:root[data-theme="terminal"] .card-meta .drop .drop-unsure { font-style: normal; }
@media (max-width: 640px) {
  :root[data-theme="terminal"] .drops-body:not([hidden]) { border-radius: 0; border-top: 1px dashed var(--accent); box-shadow: none; }
  :root[data-theme="terminal"] .drops-scrim:not([hidden]) { background: var(--t-scrim); }
  :root[data-theme="terminal"] .drops-sheet-head .sheet-handle { background: var(--accent); height: 2px; width: 32px; margin-left: -16px; }
  :root[data-theme="terminal"] .drops-sheet-title { font-weight: 400; text-transform: lowercase; letter-spacing: 0; }
}

/* Notebook (light + dark): hand lettering, pen rules, a blob for the count */
:root[data-theme="notebook"] .drops-panel { border-bottom: 1.5px solid var(--nb-pen); }
:root[data-theme="notebook"] .drops-toggle-label, :root[data-theme="notebook"] .drops-sheet-title, :root[data-theme="notebook"] .drops-group-label, :root[data-theme="notebook"] .drop-tag, :root[data-theme="notebook"] .drops-past-summary, :root[data-theme="notebook"] .card-meta .drop .k { font-family: var(--hand); text-transform: uppercase; letter-spacing: .03em; }
:root[data-theme="notebook"] .drops-toggle-label { font-size: 17px; font-weight: 700; }
:root[data-theme="notebook"] .drops-count { border-radius: var(--blob); font-family: var(--hand); font-size: 14px; }
:root[data-theme="notebook"] .drop-row, :root[data-theme="notebook"] .drops-past { border-top: 1.5px dashed rgba(var(--nb-pen-rgb), .3); }
:root[data-theme="notebook"] .drop-tag { font-size: 15px; font-weight: 700; color: var(--ink-2); }
:root[data-theme="notebook"] .drops-past-summary { font-size: 16px; }
:root[data-theme="notebook"] .card-meta .drop .k { font-size: 16px; font-weight: 700; }
@media (max-width: 640px) {
  :root[data-theme="notebook"] .drops-body:not([hidden]) { border-top: 1.5px solid var(--nb-pen); }
  :root[data-theme="notebook"] .drops-scrim:not([hidden]) { background: rgba(var(--nb-pen-rgb), .28); }
  :root[data-theme="notebook"] .drops-sheet-title { font-size: 22px; }
}
:root[data-theme="notebook"][data-mode="dark"] .drops-scrim:not([hidden]) { background: rgba(0, 0, 0, .6); }

/* Coffee (light + dark): order-ticket labels, dotted rules, a square stamp for the count */
:root[data-theme="coffee"] .drops-toggle-label, :root[data-theme="coffee"] .drops-sheet-title { font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--cf-label); }
:root[data-theme="coffee"] .drops-count { border-radius: 2px; }
:root[data-theme="coffee"] .drop-row, :root[data-theme="coffee"] .drops-past { border-top: 1px dotted var(--cf-dots); }
:root[data-theme="coffee"] .drop-tag, :root[data-theme="coffee"] .drops-group-label { font-size: 10px; letter-spacing: .16em; color: var(--cf-label); }
:root[data-theme="coffee"] .drop-row.is-ongoing .drop-tag { color: var(--drop-live); }
:root[data-theme="coffee"] .drops-past-summary { font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--cf-label); }
:root[data-theme="coffee"] .card-meta .drop { grid-template-columns: 106px minmax(0, 1fr); column-gap: 0; margin: 0; padding: 5px 0; border-bottom: 1px dotted var(--cf-dots); color: var(--ink); font-weight: 600; }
:root[data-theme="coffee"] .card-meta .drop .k { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--cf-label); }
:root[data-theme="coffee"] .card-meta .drop .drop-sub { font-weight: 400; }
:root[data-theme="coffee"] #legend-drop .legend-icon { background-image: var(--cf-leg-bean); }
:root[data-theme="coffee"] #legend-drop .legend-icon circle:last-child { display: inline; }

/* Tag, timer, and group label colors come last, and outrank each theme's .drop-tag ink. */
:root .drop-row.is-ongoing .drop-tag,
:root .drop-kind.is-ongoing,
:root #drops-ongoing .drops-group-label { color: var(--drop-live); }
:root .drop-row.is-upcoming .drop-tag,
:root .drop-kind.is-upcoming,
:root .drop-opens,
:root #drops-upcoming-group .drops-group-label { color: var(--drop-soon); }

@media (prefers-reduced-motion: reduce) {
  .drops-chevron, .drops-past-summary::after { transition: none; }
  .drops-body:not([hidden]) { animation: none !important; }
}

/* ---------- Maker pages (makers/<slug>/, generated by tools/build-maker-pages.mjs) ----------
   The map's header (compact), then one narrow column: back link, name, the drop as a
   small dossier, About as a label/value list. Themes reuse the same tokens as the map. */
.maker-page .site-header, .maker-page .maker-wrap, .maker-page .site-footer { max-width: 808px; padding-left: 24px; padding-right: 24px; }
.maker-page .site-header { padding-top: 28px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
:root body.maker-page .site-header .title { font-size: 17px; line-height: 1.3; letter-spacing: -.01em; }
.maker-page .site-header .subtitle { font-size: 13px; }
.title-link { color: inherit; text-decoration: none; }
.title-link:hover { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.maker-wrap { padding-top: 14px; padding-bottom: 56px; }
.maker-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-left: -2px; color: var(--accent); font-size: 14px; font-weight: 600; text-decoration: none; }
.maker-back:hover { text-decoration: underline; text-underline-offset: 3px; }
.maker-name { margin: 10px 0 4px; font-size: 40px; line-height: 1.1; letter-spacing: -.02em; font-weight: 700; color: var(--ink); }
.maker-loc { margin: 0 0 32px; color: var(--ink-2); }
.maker-section { margin: 36px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.maker-section.maker-drops { margin-top: 0; padding-top: 0; border-top: 0; }
.maker-kicker { margin: 0 0 12px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.drop-card { margin: 0 0 12px; padding: 20px 22px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.drop-title { margin: 0 0 4px; font-size: 22px; line-height: 1.25; letter-spacing: -.01em; color: var(--ink); }
.drop-line { margin: 0 0 14px; font-size: 13.5px; color: var(--ink-2); }
.drop-card .drop-state { font-weight: 700; color: var(--ink); }
.drop-card.is-open .drop-state { color: var(--drop-live); }
.drop-card.is-upcoming .drop-state,
.maker-page .drop-opens { color: var(--drop-soon); }
.drop-facts { display: grid; gap: 6px; margin: 0 0 16px; }
.drop-facts > div { display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 12px; align-items: baseline; }
.drop-facts dt, .maker-about dt { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.drop-facts dd, .maker-about dd { margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; }
.maker-page .mute { color: var(--ink-2); font-size: 14px; }
.drop-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 0; }
.drop-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--accent); color: var(--drop-on-accent); font-size: 14px; font-weight: 600; text-decoration: none; }
.drop-btn:hover { background: var(--ink); color: var(--on-ink); }
.drop-src { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); font-size: 14px; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.drop-src:hover { color: var(--ink); text-decoration-color: currentColor; }
.drop-caveat { margin: 12px 0 0; font-size: 13px; font-style: italic; color: var(--ink-2); }
.maker-empty { margin: 0; padding: 18px 22px; border: 1px dashed var(--line); border-radius: 14px; color: var(--ink-2); font-size: 15px; }
.maker-past { margin: 4px 0 0; }
.maker-past summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.maker-past ul { list-style: none; margin: 0; padding: 0; }
.maker-past li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.maker-past li b { font-weight: 600; color: var(--ink); }
.maker-about { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px 16px; margin: 0; }
.maker-about dt { padding-top: 3px; }
.maker-links { margin: 0; }
.maker-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-weight: 600; text-decoration: none; }
.maker-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.maker-foot { padding-top: 8px; padding-bottom: 48px; font-size: 13px; color: var(--ink-2); }
.maker-foot a { color: var(--ink); }
@media (max-width: 640px) {
  .maker-page .site-header, .maker-page .maker-wrap, .maker-page .site-footer { padding-left: 20px; padding-right: 20px; }
  .maker-page .site-header { padding-top: 18px; }
  .maker-name { font-size: 32px; }
  .drop-card { padding: 18px 18px 16px; }
  .drop-facts > div { grid-template-columns: 64px minmax(0, 1fr); }
  .maker-about { grid-template-columns: 104px minmax(0, 1fr); column-gap: 12px; }
}
/* Terminal */
:root[data-theme="terminal"] .maker-page .site-header, :root[data-theme="terminal"] .maker-section { border-color: var(--line); border-style: dashed; }
:root[data-theme="terminal"] .maker-page .site-header { border-width: 0 0 1px; }
:root[data-theme="terminal"] .maker-name { font-weight: 300; font-size: 36px; letter-spacing: -.01em; }
:root[data-theme="terminal"] .maker-kicker { font-weight: 400; letter-spacing: 0; text-transform: lowercase; font-size: 13px; }
:root[data-theme="terminal"] .maker-kicker::before { content: "//\00a0"; }
:root[data-theme="terminal"] .drop-card, :root[data-theme="terminal"] .maker-empty { border-radius: 0; border-style: dashed; }
:root[data-theme="terminal"] .drop-title { font-weight: 400; }
:root[data-theme="terminal"] .drop-facts dt, :root[data-theme="terminal"] .maker-about dt { font-weight: 400; letter-spacing: 0; text-transform: lowercase; font-size: 12px; }
:root[data-theme="terminal"] .drop-facts dt::after, :root[data-theme="terminal"] .maker-about dt::after { content: ":"; }
:root[data-theme="terminal"] .drop-btn { border-radius: 0; }
:root[data-theme="terminal"] .drop-unsure, :root[data-theme="terminal"] .drop-caveat { font-style: normal; }
:root[data-theme="terminal"] .maker-past li { border-top-style: dashed; }
/* Notebook */
:root[data-theme="notebook"] .maker-page .site-header { border-bottom: 1.5px solid var(--nb-pen); }
:root[data-theme="notebook"] .maker-section { border-top: 1.5px dashed rgba(var(--nb-pen-rgb), .3); }
:root[data-theme="notebook"] .maker-name, :root[data-theme="notebook"] .drop-title, :root[data-theme="notebook"] .maker-kicker, :root[data-theme="notebook"] .drop-facts dt, :root[data-theme="notebook"] .maker-about dt, :root[data-theme="notebook"] .drop-btn, :root[data-theme="notebook"] .maker-back, :root[data-theme="notebook"] .maker-past summary { font-family: var(--hand); text-transform: uppercase; letter-spacing: .03em; }
:root[data-theme="notebook"] .maker-name { font-size: 44px; line-height: 1; }
:root[data-theme="notebook"] .maker-kicker, :root[data-theme="notebook"] .drop-facts dt, :root[data-theme="notebook"] .maker-about dt { font-size: 15px; color: var(--ink-2); }
:root[data-theme="notebook"] .drop-title { font-size: 24px; }
:root[data-theme="notebook"] .drop-card, :root[data-theme="notebook"] .maker-empty { background: transparent; border: 1.5px solid var(--nb-pen); border-radius: var(--blob); }
:root[data-theme="notebook"] .maker-empty { border-style: dashed; }
:root[data-theme="notebook"] .drop-btn { border-radius: var(--blob); font-size: 18px; font-weight: 700; }
:root[data-theme="notebook"] .maker-back { font-size: 17px; }
:root[data-theme="notebook"] .maker-past li { border-top: 1.5px dashed rgba(var(--nb-pen-rgb), .3); }
/* Coffee */
:root[data-theme="coffee"] .maker-page .site-header { border-bottom: 1px solid var(--cf-rule); }
:root[data-theme="coffee"] .maker-name, :root[data-theme="coffee"] .drop-title { font-family: var(--cf-display); font-weight: 600; letter-spacing: -.014em; }
:root[data-theme="coffee"] .maker-name { font-size: 44px; line-height: 1.04; }
:root[data-theme="coffee"] .maker-section { border-top: 1px solid var(--cf-rule); }
:root[data-theme="coffee"] .maker-kicker, :root[data-theme="coffee"] .drop-facts dt, :root[data-theme="coffee"] .maker-about dt { font-size: 10px; letter-spacing: .16em; color: var(--cf-label); }
:root[data-theme="coffee"] .drop-card { border-radius: 4px; border-color: var(--cf-rule); box-shadow: 0 1px 0 rgba(34, 21, 13, .06); }
:root[data-theme="coffee"] .drop-facts { gap: 0; }
:root[data-theme="coffee"] .drop-facts > div { padding: 6px 0; border-bottom: 1px dotted var(--cf-dots); grid-template-columns: 96px minmax(0, 1fr); }
:root[data-theme="coffee"] .maker-about { row-gap: 0; }
:root[data-theme="coffee"] .maker-about dt, :root[data-theme="coffee"] .maker-about dd { padding: 6px 0; border-bottom: 1px dotted var(--cf-dots); }
:root[data-theme="coffee"] .drop-btn { border-radius: 3px; }
:root[data-theme="coffee"] .maker-empty { border-radius: 4px; border-color: var(--cf-dots); }
:root[data-theme="coffee"] .maker-past li { border-top: 1px dotted var(--cf-dots); }
