:root{
  --paper:#f3eee3;
  --paper-deep:#ebe4d4;
  --white:#fffcf5;
  --ink:#2c3228;
  --green:#3a5345;
  --green-deep:#2d4236;
  --muted:#7a7568;
  --line:#d9d0c0;
  --line-soft:#e8e0d0;
  --yellow:#e0b35a;
  --tape:#e8d9a8;
  --tape-edge:#d4c28a;
  --stamp:#a65d3f;
  --stamp-ink:#8b4a32;
  --light:#efe8d8;
  --shadow:0 10px 28px -18px #3a322244;
  --serif:"Noto Serif SC","Songti SC","STSong","SimSun",serif;
  --sans:"Microsoft YaHei","PingFang SC",system-ui,sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:36px}
body{
  margin:0;
  color:var(--ink);
  font:14px/1.75 var(--sans);
  -webkit-font-smoothing:antialiased;
  background-color:var(--paper);
  background-image:
    radial-gradient(ellipse at 12% 8%, #f8f3e8 0%, transparent 42%),
    radial-gradient(ellipse at 88% 18%, #efe6d2 0%, transparent 38%),
    radial-gradient(ellipse at 50% 100%, #e8dfcc 0%, transparent 45%),
    repeating-linear-gradient(0deg, transparent, transparent 3px, #00000003 3px, #00000003 4px),
    repeating-linear-gradient(90deg, transparent, transparent 3px, #00000002 3px, #00000002 4px);
  background-attachment:fixed;
}
a{color:inherit;text-decoration:none}
button,input,select{font:inherit;color:inherit}
button,summary,select{cursor:pointer}
button{border:0}
img{display:block;max-width:100%}
h1,h2,h3,h4,p,dl,dd{margin:0}
[hidden]{display:none!important}
:focus-visible{outline:3px solid #bd8733;outline-offset:4px}
::selection{background:#eccc81;color:var(--ink)}
.wrap{width:min(1180px,calc(100% - 80px));margin-inline:auto}
.muted{color:var(--muted)}
.skip-link{position:fixed;top:-100px;left:12px;z-index:100;padding:10px 20px;background:var(--green);color:white}
.skip-link:focus{top:12px}

/* —— Header —— */
.site-header{
  border-bottom:1px solid var(--line);
  background:linear-gradient(180deg,#fffcf5ee,#f3eee3cc);
  backdrop-filter:blur(6px);
}
.masthead{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:88px}
.brand{display:flex;align-items:center;gap:12px;font:700 21px/1.2 var(--serif);white-space:nowrap}
.brand-dot{margin:0 5px;color:var(--stamp)}
.brand small{display:block;font:9px/1.5 var(--sans);letter-spacing:2.4px;margin-top:6px;color:var(--muted)}
nav{display:flex;gap:26px;font-size:13px}
nav a{
  padding:6px 2px 8px;
  border-bottom:1.5px dashed transparent;
  color:#4a5344;
}
nav a:hover{border-color:var(--stamp);color:var(--stamp-ink)}
.fan-badge{
  border:1.5px dashed var(--stamp);
  border-radius:2px;
  padding:4px 10px;
  font-size:10px;
  letter-spacing:.4px;
  white-space:nowrap;
  color:var(--stamp-ink);
  background:#f7efe4;
  transform:rotate(-1.5deg);
}

/* —— Cover opening (scrapbook front) —— */
.cover{
  padding: 28px 0 8px;
  position: relative;
}
.cover-sheet{
  position: relative;
}
.cover-photo{
  position: relative;
  min-height: min(78vh, 640px);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #2a3328;
  box-shadow:
    0 24px 48px -28px #2a241866,
    0 0 0 10px #fffcf5,
    0 0 0 11px var(--line);
  transform: rotate(-0.4deg);
}
.cover-photo.is-empty{ min-height: 420px; }
.cover-bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.04);
}
.cover-wash{
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, #1a2218ee 0%, #1a2218bb 38%, #1a221866 58%, #1a221822 78%, transparent 100%),
    linear-gradient(0deg, #1a2218cc 0%, transparent 42%);
  pointer-events: none;
}
.cover-tapes{
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.cover-tapes span{
  position: absolute;
  width: 88px;
  height: 20px;
  background: linear-gradient(180deg, var(--tape), var(--tape-edge));
  opacity: .88;
  box-shadow: 0 1px 2px #0002;
}
.cover-tapes span:first-child{ top: 18px; left: 14%; transform: rotate(-8deg); }
.cover-tapes span:last-child{ top: 22px; right: 18%; transform: rotate(6deg); width: 72px; }
.cover-front{
  position: relative;
  z-index: 3;
  color: #f7f1e4;
  padding: clamp(28px, 6vw, 56px);
  max-width: min(560px, 92%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: min(78vh, 640px);
}
.cover-eyebrow{
  color: #dcc9a4 !important;
  margin-bottom: 14px;
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 11px;
}
.cover-eyebrow .little-sun{ color: var(--yellow); }
.cover h1{
  font: 700 clamp(32px, 5.2vw, 52px)/1.45 var(--serif);
  letter-spacing: -1.4px;
  color: #fffcf5;
  text-shadow: 0 2px 18px #0006;
}
.cover .headline-mark{ position: relative; z-index: 0; }
.cover .headline-mark::after{
  content: "";
  position: absolute;
  inset: auto -4px 4px;
  height: 12px;
  background: var(--yellow);
  opacity: .8;
  z-index: -1;
  transform: rotate(-2deg);
  border-radius: 1px;
}
.cover-line{
  margin-top: 22px;
  font: 500 clamp(16px, 2.4vw, 22px)/1.7 var(--serif);
  color: #f0e6d2;
  max-width: 28em;
  border-left: 3px solid var(--yellow);
  padding-left: 14px;
  text-shadow: 0 1px 10px #0005;
}
.cover .creator{ margin-top: 26px; }
.cover .creator strong{ color: #fffcf5; }
.cover .creator p{ color: #cfc3a8; }
.cover .avatar{
  border-color: #fffcf5;
  box-shadow: 0 0 0 1px #0003;
}
.cover .hero-actions{
  margin-top: 28px;
  flex-wrap: wrap;
  gap: 14px 18px;
}
.button.ghost{
  background: #fffcf522;
  color: #fffcf5;
  border: 1.5px dashed #e8d9a8;
  box-shadow: none;
  backdrop-filter: blur(4px);
}
.button.ghost:hover{ background: #fffcf533; border-style: solid; }
.cover .text-link{
  color: #e8dcc0;
  border-bottom-color: #c4b089;
}
.cover-credit{
  margin-top: 22px;
  font-size: 10px;
  color: #cfc3a8;
  line-height: 1.7;
}
.cover-credit .cover-go{
  color: #f0d9a0;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-left: 4px;
}
.cover .field-stamp{
  right: 20px;
  top: 28px;
  background: #faf6eecc;
  backdrop-filter: blur(2px);
}
.cover-footnote{
  margin: 16px 4px 0;
  font: 11px/1.6 var(--serif);
  color: #7f7868;
  text-align: right;
}
.cover-footnote span{ font-size: 15px; margin-right: 6px; }

/* legacy hero bits kept for safety */
.hero{ display:none; }
.eyebrow{
  font-size:10px;
  letter-spacing:1.6px;
  font-weight:600;
  color:#7d7464;
  margin-bottom:16px;
}
.little-sun{font-size:22px;line-height:1;color:var(--stamp)}
.button{
  display:inline-flex;align-items:center;justify-content:center;gap:14px;
  min-height:46px;padding:12px 22px;
  border-radius:3px;font-size:12px;font-weight:600;
  transition:background .18s,transform .18s,box-shadow .18s;
  box-shadow:var(--shadow);
}
.button:hover{transform:translateY(-2px)}
.primary{background:var(--green);color:var(--white)}
.primary:hover{background:var(--green-deep)}
.text-link{font-size:11px;border-bottom:1.5px dashed #b0a890;padding-block:4px}
.text-link span{margin-left:5px}

/* —— Sticky-note KPIs —— */
.sticky-band{margin:28px auto 8px;overflow:visible;padding-top:10px}
.stats-strip.sticky-notes{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  border:0;
  padding:8px 0 4px;
  overflow:visible;
  align-items:stretch;
}
.sticky-notes .kpi{
  background:linear-gradient(165deg,#fff9e8 0%,#f7efd0 100%);
  border:1px solid #e5d7a8;
  border-radius:2px;
  padding:16px 14px 14px;
  box-shadow:var(--shadow);
  transform:rotate(-.8deg);
  position:relative;
  min-width:0;
  overflow:visible;
  box-sizing:border-box;
}
.sticky-notes .kpi:nth-child(2){transform:rotate(1deg);background:linear-gradient(165deg,#f4f7ec,#e8efd8)}
.sticky-notes .kpi:nth-child(3){transform:rotate(-.4deg);background:linear-gradient(165deg,#faf3e6,#f0e4cc)}
.sticky-notes .kpi:nth-child(4){transform:rotate(.7deg)}
.sticky-notes .kpi::before{
  content:"";
  position:absolute;top:-6px;left:50%;transform:translateX(-50%) rotate(-2deg);
  width:42px;height:12px;
  background:linear-gradient(180deg,var(--tape),var(--tape-edge));
  opacity:.8;
  box-shadow:0 1px 1px #0001;
  pointer-events:none;
}
.kpi dt{
  font-size:10px;color:var(--muted);letter-spacing:.4px;margin-bottom:6px;
  line-height:1.4;white-space:normal;overflow-wrap:anywhere;
}
.kpi dd{
  font:500 26px/1.3 Georgia,var(--serif);font-variant-numeric:tabular-nums;
  min-width:0;overflow-wrap:anywhere;word-break:break-word;
}
.kpi dd small{
  display:block;font:10px/1.55 var(--sans);margin:4px 0 0;color:var(--muted);
  white-space:normal;overflow-wrap:anywhere;
}
.kpi:last-child dd,.kpi.kpi-play dd{font-size:22px}
.freshness{
  color:var(--muted);font-size:10px;margin-top:14px;
  display:flex;align-items:center;gap:7px;
}
.freshness::before{content:"";width:5px;height:5px;border-radius:50%;background:#81916d;flex-shrink:0}
.freshness.has-warning{color:#986627}
.freshness.has-warning::before{background:#ae7739}

/* —— Sections —— */
.section{padding-block:60px}
.section-heading{
  display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:26px;
}
.section-heading .eyebrow{margin-bottom:8px}
.section-heading h2,.about h2{
  font:700 30px/1.5 var(--serif);letter-spacing:-.5px;
}
.heading-dot{color:var(--stamp);margin-left:3px}
.section-aside{font-size:11px;text-align:right;color:var(--muted);line-height:1.9}

.toolbar.scrap-toolbar{
  border:1px solid var(--line);
  border-radius:2px;
  background:var(--white);
  padding:14px 16px 12px;
  margin-bottom:28px;
  box-shadow:0 1px 0 #fff8;
}
.filter-line{display:flex;justify-content:space-between;align-items:center;gap:16px}
.chips{display:flex;gap:7px;flex-wrap:wrap}
.chip{
  padding:7px 14px;
  border:1px dashed #cfc5b0;
  background:transparent;
  border-radius:2px;
  font-size:11px;
  display:flex;align-items:center;gap:8px;
}
.chip em{font:10px Georgia;opacity:.65}
.chip[aria-pressed="true"]{
  background:var(--green);color:var(--white);
  border-style:solid;border-color:var(--green);
}
.chip:hover{border-color:var(--green);border-style:solid}
.search-wrap{
  display:flex;align-items:center;gap:9px;
  border:1px solid #d4cbb8;border-radius:2px;
  padding:8px 12px;background:#fffcf7;
  max-width:310px;width:39%;
}
.search-wrap:focus-within{outline:2px solid #bd8733;outline-offset:2px}
.search-wrap svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;flex-shrink:0;color:#8a8374}
.search-wrap input{width:100%;padding:0;border:0;outline:0;background:transparent;font-size:11px}
.search-wrap input::placeholder{color:#9a9282}
.secondary-filters{margin-top:14px;font-size:10px;color:var(--muted)}
.selects{display:flex;gap:20px;align-items:center;flex-wrap:wrap}
.selects label{display:flex;align-items:center;gap:7px}
.selects select{
  border:0;border-bottom:1px dashed #cfc5b0;border-radius:0;
  background:transparent;padding:3px 18px 3px 2px;font-size:10px;
}
.reset{background:transparent;text-decoration:underline;text-underline-offset:4px;font-size:10px;padding:4px}

/* —— Scrapbook photo cards —— */
.timeline.scrap-pages{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:36px 22px;
}
.month{
  grid-column:1/-1;
  display:flex;align-items:center;gap:12px;
  margin-top:10px;
}
.month:first-child{margin-top:0}
.month h3{font:500 14px/1.5 var(--serif);white-space:nowrap}
.month .rule{
  height:0;flex:1;
  border-top:1.5px dashed #cfc5b0;
}
.month em{
  font-style:normal;font-size:9px;color:var(--muted);
  padding:2px 8px;
  border:1px solid var(--tape-edge);
  background:linear-gradient(180deg,var(--tape),#e2d4a4);
  border-radius:1px;
}
.card{
  min-width:0;
  display:flex;flex-direction:column;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:2px;
  padding:10px 10px 14px;
  box-shadow:var(--shadow);
  position:relative;
  transition:transform .2s,box-shadow .2s;
}
.card:nth-child(3n+1){transform:rotate(-.4deg)}
.card:nth-child(3n+2){transform:rotate(.35deg)}
.card:nth-child(3n){transform:rotate(-.2deg)}
.card:hover{
  transform:rotate(0) translateY(-3px);
  box-shadow:0 14px 32px -16px #3a322255;
}
.card::before{
  content:"";
  position:absolute;top:-5px;left:18%;
  width:36px;height:11px;
  background:linear-gradient(180deg,var(--tape),var(--tape-edge));
  opacity:.75;
  transform:rotate(-4deg);
  pointer-events:none;
  z-index:2;
}
.card:nth-child(3n+2)::before{left:auto;right:16%;transform:rotate(5deg)}
.card:nth-child(3n)::before{left:42%;opacity:.55;transform:rotate(-1deg)}
.thumb-wrap{
  display:block;position:relative;
  aspect-ratio:4/3;
  overflow:hidden;
  border-radius:1px;
  background:var(--light);
  border:1px solid #e5dcc8;
}
.thumb{width:100%;height:100%;object-fit:cover;transition:transform .4s}
.thumb-wrap:hover .thumb{transform:scale(1.04)}
.dur{
  position:absolute;right:8px;bottom:8px;
  background:#1a241dcc;color:#fff;
  font-size:9px;line-height:1.5;padding:2px 6px;border-radius:2px;
}
.cover-placeholder{height:100%;background:url('assets/landscape.svg') center/cover}
.card-body{padding:12px 2px 0;display:flex;flex-direction:column;flex:1}
.card-top{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  font-size:9px;color:#7f7868;
}
.tag{
  color:var(--stamp-ink);
  letter-spacing:.4px;
  font-weight:600;
}
.card h4{font-size:14px;font-weight:600;line-height:1.75;margin-top:6px;font-family:var(--serif)}
.card h4 a:hover{text-decoration:underline;text-underline-offset:3px}
.sum{
  font-size:10px;line-height:1.8;color:#858075;margin-top:7px;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.card-foot{
  display:flex;justify-content:space-between;align-items:center;gap:10px;
  margin-top:auto;padding-top:12px;
  font-size:9px;color:#858075;
  border-top:1px dashed var(--line-soft);
}
.card-foot .go{color:var(--green);white-space:nowrap;font-weight:600}
.card-foot .go:hover{text-decoration:underline}
.card-foot .stats{display:flex;gap:10px;flex-wrap:wrap}
.load-more{display:flex;align-items:center;flex-direction:column;margin-top:36px;gap:12px}
.outline{
  border:1.5px dashed #a89f88;background:transparent;padding-inline:30px;
  box-shadow:none;
}
.outline:hover{background:var(--light);border-style:solid}
.load-more p{font-size:10px;color:var(--muted)}
.empty,.fatal{
  grid-column:1/-1;text-align:center;padding:56px 24px;
  background:var(--light);border:1.5px dashed #c5b89e;border-radius:2px;color:#65715d;
}
.empty h3,.fatal h3{font:700 22px var(--serif);margin:12px 0}
.empty p,.fatal p{font-size:12px;line-height:2}
.empty .button,.fatal .button{margin-top:18px}
.empty-symbol{font-size:40px;color:#9aab80}
.fatal{background:#f1e6cc;border-color:#bf9f63}

/* —— Stamp-like platform pills —— */
.plat-icos{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.plat-ico{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:24px;min-width:24px;padding:3px 9px;
  border:1.5px solid var(--stamp);
  border-radius:999px;
  font-size:9px;line-height:1.3;
  color:var(--stamp-ink);
  background:#faf6ee;
  letter-spacing:.3px;
  transform:rotate(-2deg);
  transition:background .15s,color .15s,transform .15s;
}
.plat-ico:nth-child(2){transform:rotate(1.5deg)}
.plat-ico:nth-child(3){transform:rotate(-1deg)}
.plat-ico:hover{
  background:var(--stamp);color:#fff;
  transform:rotate(0) scale(1.04);
}
.plat-ico.is-primary{
  background:var(--stamp);border-color:var(--stamp);color:#fff;
  transform:rotate(0);
}
.version-dates{margin-top:6px;font-size:9px;line-height:1.7;color:var(--muted)}
.multi-badge{
  position:absolute;left:8px;top:8px;z-index:1;
  padding:3px 8px;
  border-radius:2px;
  background:#f7efe4ee;
  color:var(--stamp-ink);
  font-size:9px;letter-spacing:.3px;
  border:1px solid #e0c9a8;
}
.card-multi .tag{color:var(--stamp)}

.cover-note{
  position:absolute;left:8px;bottom:8px;max-width:calc(100% - 16px);
  padding:3px 7px;border-radius:2px;
  background:var(--paper);color:var(--muted);font-size:9px;line-height:1.6;
}
.archive-status{
  font-size:11px;line-height:1.8;color:var(--muted);
  margin:0 0 20px;padding:10px 14px;
  border-left:3px solid var(--yellow);
  background:var(--light);
}

/* —— Glossary fold + index cards —— */
.glossary-section{padding-block:28px}
.glossary-panel{
  border:1.5px dashed #c5b89e;border-radius:3px;
  background:linear-gradient(180deg,#fffcf5,#f3eee3);
  overflow:hidden;
  box-shadow:var(--shadow);
}
.glossary-panel[open] .places-toggle,
.glossary-panel[open] .fold-chevron{transform:rotate(45deg);background:#f7f1e4;border-style:solid;border-color:#aeb89a}
.glossary-panel .memes{margin-top:16px}
.memes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.meme{
  background:var(--white);
  border:1px solid #d4cbb8;
  border-radius:2px;
  padding:22px;
  display:flex;flex-direction:column;
  box-shadow:var(--shadow);
  transform:rotate(-.3deg);
}
.meme:nth-child(3n+2){transform:rotate(.4deg)}
.meme:nth-child(3n){transform:rotate(-.15deg)}
.meme-index{font:italic 24px Georgia;color:#b5a88e;margin-bottom:10px}
.meme-top{display:flex;align-items:center;gap:7px;justify-content:space-between;margin-bottom:10px}
.meme h3{font:700 17px/1.7 var(--serif)}
.risk{
  font-size:8px;white-space:nowrap;letter-spacing:.5px;
  color:#657351;border:1px dashed #c5b89e;padding:2px 6px;border-radius:2px;
}
.risk[data-r="medium"]{color:#98712e;border-color:#d6c49b}
.meme p{font-size:11px;line-height:1.9;color:#736c5e}
.meme .why{margin-top:15px;font-size:10px;border-top:1px dashed #e0d8c4;padding-top:12px;color:#89907d}
.meme-source{margin-top:auto;padding-top:16px;font-size:9px;color:#7f7868;line-height:1.8}
.source-links{display:flex;gap:10px;margin-top:5px}
.source-links a{text-decoration:underline;text-underline-offset:3px}
.unverified{color:#9b7237;margin-left:7px}

/* —— About —— */
.about{display:grid;grid-template-columns:1fr 1.25fr;gap:80px}
.about h2{margin-bottom:20px}
.about-copy>p:not(.eyebrow){font-size:11px;color:#7a7366;margin-top:13px;line-height:2}
.about .about-footnote{
  font-size:10px;border-top:1px dashed var(--line);padding-top:15px;margin-top:22px;
}
.about-details>h3{font:700 20px var(--serif);margin:7px 0 8px}
.about-details>.muted{font-size:10px;margin-bottom:18px}
.src{
  display:flex;align-items:center;justify-content:space-between;
  padding:13px 0;border-bottom:1px dashed var(--line);gap:15px;
}
.src-name{font-size:11px;display:flex;align-items:center;gap:9px;white-space:nowrap}
.src-status{
  font-size:8px;background:#efe8d8;border-radius:2px;padding:1px 5px;color:#5e7151;
  border:1px solid #d9d0c0;
}
.src[data-status="pending"] .src-status{background:#efead4;color:#927c48}
.src[data-status="error"] .src-status{background:#f1e2c5;color:#986627}
.src-note{font-size:9px;color:#89907d;text-align:right}
.collection-boundaries{margin-top:20px}
.collection-boundaries>summary{
  display:flex;justify-content:space-between;align-items:center;
  list-style:none;font-size:11px;
}
.collection-boundaries>summary::-webkit-details-marker{display:none}
.collection-boundaries[open]>summary span{transform:rotate(45deg)}
.bounds{margin-top:15px}
.bounds details{border-top:1px dashed var(--line);font-size:10px}
.bounds summary{padding-block:10px;color:#73806a}
.bounds .body{padding-bottom:12px;font-size:10px;line-height:1.9;color:#8a917d}
.src-note small{display:block;font-size:8px;margin-top:3px}
.source-time{font-size:9px;line-height:1.6;color:var(--muted)}
.card-top time{white-space:nowrap}
.src[data-status="historical"] .src-status,
.src[data-status="snapshot"] .src-status{background:#efead4;color:#927c48}

.site-footer{
  border-top:1px solid var(--line);
  padding:26px 0 32px;
  background:linear-gradient(180deg,transparent,#ebe4d488);
}
.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:20px}
.footer-brand{font:700 16px var(--serif);white-space:nowrap}
.footer-brand span{margin-left:10px}
.site-footer p{font-size:9px;color:#89917e;line-height:1.8}
.footer-note{font-size:10px;color:#7c876e;display:flex;gap:15px;align-items:center;white-space:nowrap}
.footer-note span{font-size:24px;color:var(--stamp)}

/* —— Radar / Places / Map foldout —— */
.bookmark-page,.fold-section{position:relative}
.radar-layout{display:grid;grid-template-columns:1.55fr .9fr;gap:24px;align-items:start}
.radar-summary{display:flex;flex-wrap:wrap;gap:10px 16px;font-size:10px;color:var(--muted);margin-bottom:16px}
.radar-summary span{display:inline-flex;align-items:center;gap:6px}
.radar-summary span::before{content:"";width:4px;height:4px;border-radius:50%;background:#81916d}
.radar-warn{color:#986627!important}
.radar-warn::before{background:#ae7739!important}
.radar-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px;counter-reset:radar}
.radar-list li{counter-increment:radar}
.radar-item{
  display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;
  gap:2px 12px;padding:12px 14px;
  border:1px solid var(--line);
  border-left:3px solid var(--stamp);
  border-radius:2px;
  background:var(--white);
  box-shadow:var(--shadow);
  transition:border-color .15s,transform .15s;
  position:relative;
}
.radar-item::after{
  content:"";
  position:absolute;right:0;top:0;bottom:0;width:10px;
  background:repeating-linear-gradient(180deg, transparent 0 6px, #d9d0c0 6px 7px);
  opacity:.5;pointer-events:none;
}
.radar-item:hover{border-color:#c4b89e;transform:translateY(-1px)}
.radar-item::before{
  content:counter(radar, decimal-leading-zero);
  grid-row:1/3;align-self:center;
  font:italic 17px Georgia;color:#b5a88e;
}
.radar-plat{font-size:9px;letter-spacing:.4px;color:var(--stamp-ink)}
.radar-when{font-size:9px;color:var(--muted);justify-self:end}
.radar-title{grid-column:2;font-size:12px;font-weight:600;line-height:1.7;color:var(--ink)}
.radar-gaps{
  border:1.5px dashed #c5b89e;border-radius:2px;
  background:#f7f1e4;padding:18px 16px;
}
.radar-gaps-title{font:700 14px/1.5 var(--serif);margin-bottom:12px}
.radar-ok{font-size:11px;color:#5e7151;line-height:1.8}
.gap-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.gap-list li{display:grid;grid-template-columns:auto 1fr;gap:8px 10px;align-items:start}
.gap-kind{
  font-size:8px;letter-spacing:.5px;padding:2px 6px;border-radius:2px;
  border:1px solid #cad2b9;color:#657351;white-space:nowrap;margin-top:2px;
}
.gap-list li[data-severity="warn"] .gap-kind{color:#98712e;border-color:#d6c49b;background:#f7efd8}
.gap-list li[data-severity="error"] .gap-kind{color:#986627;border-color:#e0c08a;background:#f1e2c5}
.gap-list li[data-severity="info"] .gap-kind{background:#e6e9d8}
.gap-list p{font-size:11px;line-height:1.75;color:#6f685c;margin:0}

.places-section,.radar-section,.glossary-section{padding-block:28px}
.places-panel,.radar-panel,.glossary-panel,.map-fold{
  border:1.5px dashed #c5b89e;border-radius:3px;
  background:var(--white);overflow:hidden;
  box-shadow:var(--shadow);
}
.radar-panel{background:linear-gradient(180deg,#fffcf5,#f7f1e4)}
.places-summary,.map-fold-summary,.radar-summary-bar{
  display:grid;grid-template-columns:1fr auto auto;
  gap:18px 28px;align-items:center;list-style:none;
  padding:18px 22px;cursor:pointer;
}
.places-summary::-webkit-details-marker,
.radar-summary-bar::-webkit-details-marker,
.map-fold-summary::-webkit-details-marker{display:none}
.places-summary-main .eyebrow{margin-bottom:6px}
.places-summary-main h2,.radar-summary-bar h2{font:700 26px/1.4 var(--serif);letter-spacing:-.4px}
.places-summary-meta{margin-top:6px;font-size:11px;color:var(--muted);line-height:1.7}
.places-summary-aside{margin:0;align-self:center}
.places-toggle,.fold-chevron{
  width:28px;height:28px;display:grid;place-items:center;
  border:1.5px dashed #c5b89e;border-radius:50%;
  font-size:16px;line-height:1;color:#687259;
  transition:transform .18s,background .18s,border-color .18s;
  justify-self:end;
}
.places-panel[open] .places-toggle,
.radar-panel[open] .fold-chevron,
.map-fold[open] .fold-chevron{transform:rotate(45deg);background:#f7f1e4;border-style:solid;border-color:#aeb89a}
.places-summary:hover .places-toggle,
.radar-summary-bar:hover .fold-chevron{border-color:var(--stamp);color:var(--stamp);border-style:solid}
.places-body,.map-fold-body,.radar-body{padding:0 22px 22px;border-top:1px dashed #e0d8c4}
.places-lead{font-size:11px;color:var(--muted);margin:16px 0 14px;line-height:1.8}

/* Map foldout canvas */
.route-map-wrap{margin-bottom:18px}
.route-map{
  position:relative;
  border:1px solid #d4cbb8;
  border-radius:2px;
  background:#f4efe3;
  overflow:hidden;
  min-height:280px;
  box-shadow:inset 0 0 0 8px #fffcf5aa;
}
.map-svg{display:block;width:100%;height:auto;aspect-ratio:1000/560}
.map-title-svg{font:700 22px var(--serif);fill:#6f685c}
.map-sub-svg{font:12px var(--sans);fill:#9a9282}
.map-pins{position:absolute;inset:0;pointer-events:none}
.map-pins .pin{
  pointer-events:auto;
  position:absolute;
  transform:translate(-50%,-90%);
  background:transparent;border:0;padding:0;
  display:flex;flex-direction:column;align-items:center;gap:3px;
  cursor:pointer;z-index:2;
}
.pin-dot{
  width:12px;height:12px;border-radius:50% 50% 50% 0;
  transform:rotate(-45deg);
  border:2px solid #fffcf5;
  box-shadow:0 2px 6px #2a241855;
}
.pin.high .pin-dot{background:var(--stamp)}
.pin.mid .pin-dot{background:#c4a574;border-style:dashed}
.pin-label{
  font-size:9px;line-height:1.3;white-space:nowrap;
  background:#fffcf5ee;border:1px solid #d4cbb8;
  padding:2px 6px;border-radius:2px;color:var(--ink);
  transform:rotate(-2deg);
  max-width:7.5em;overflow:hidden;text-overflow:ellipsis;
}
.pin-label em{font-style:normal;margin-left:4px;color:var(--muted);font-size:8px}
.pin:hover .pin-label{border-color:var(--stamp);color:var(--stamp-ink);transform:rotate(0)}
.pin:hover .pin-dot{transform:rotate(-45deg) scale(1.15)}
.map-legend{
  display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;
  margin:10px 2px 0;font-size:10px;color:var(--muted);
}
.leg-dot{
  display:inline-block;width:8px;height:8px;border-radius:50%;
  margin-right:5px;vertical-align:middle;border:1px solid #fffcf5;
}
.leg-dot.high{background:var(--stamp)}
.leg-dot.mid{background:#c4a574}
.leg-note{margin-left:auto;font-size:9px;opacity:.85}
.map-empty{padding:40px 20px;text-align:center}

.places-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.place-card{
  border:1px solid #d4cbb8;border-radius:2px;
  background:var(--paper);padding:14px 14px 12px;
  display:flex;flex-direction:column;gap:8px;min-width:0;
}
.place-card[data-uncertain="true"]{background:#faf8f0;border-style:dashed}
.place-hit{display:block;width:100%;text-align:left;background:transparent;padding:0;border:0}
.place-hit:hover .place-top h3{text-decoration:underline;text-underline-offset:3px}
.place-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.place-top h3{font:700 16px/1.5 var(--serif)}
.place-badge{
  font-size:8px;letter-spacing:.4px;padding:2px 6px;border-radius:2px;
  border:1px solid #cad2b9;color:#5e7151;white-space:nowrap;
}
.place-badge.uncertain{color:#98712e;border-color:#d6c49b;background:#f7efd8}
.place-meta{font-size:10px;color:#89907d;line-height:1.6;margin-top:4px}
.place-count{font-size:10px;color:var(--muted);margin-top:2px}
.place-sources{display:flex;flex-direction:column;gap:4px;padding-top:8px;border-top:1px dashed #e0d8c4;margin-top:auto}
.place-source{font-size:9px;color:#51694c;line-height:1.6;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.place-source:hover{text-decoration:underline;text-underline-offset:2px}

/* Mobile dock */
.dock{
  display:none;
  position:fixed;left:50%;bottom:calc(10px + env(safe-area-inset-bottom,0px));
  transform:translateX(-50%);
  z-index:40;
  background:#fffcf5f2;
  border:1.5px solid var(--line);
  border-radius:999px;
  padding:8px 10px;
  gap:4px;
  box-shadow:0 10px 28px -14px #2a241866;
  backdrop-filter:blur(8px);
}
.dock a{
  display:flex;flex-direction:column;align-items:center;gap:2px;
  min-width:58px;padding:6px 8px;font-size:10px;color:#5a6354;
  border-radius:999px;
}
.dock a span{font-size:14px;line-height:1;color:var(--stamp)}
.dock a:hover{background:#f3eee3;color:var(--stamp-ink)}

/* —— Responsive —— */
@media(max-width:1100px){
  .wrap{width:calc(100% - 64px)}
  .hero{gap:32px;padding-block:52px 40px}
  .hero h1{font-size:38px}
  .about{gap:40px}
  .fan-badge{display:none}
  .meme{padding:18px}
}
@media(max-width:820px){
  .wrap{width:calc(100% - 48px)}
  .masthead{min-height:78px}
  .brand{font-size:18px;gap:9px}
  .brand img{width:32px;height:32px}
  nav{gap:16px;font-size:12px}
  .cover-photo,.cover-front{min-height:min(70vh,560px)}
  .cover h1{font-size:clamp(30px,4.5vw,42px)}
  .cover-line{font-size:17px}
  .cover .field-stamp{width:64px;height:64px;font-size:7px}
  .places-summary,.radar-summary-bar{grid-template-columns:1fr auto;gap:12px 16px;padding:16px 18px}
  .places-summary-aside{display:none}
  .places-summary-main h2,.radar-summary-bar h2{font-size:23px}
  .places-body,.map-fold-body,.radar-body{padding:0 18px 18px}
  .radar-layout{grid-template-columns:1fr;gap:18px}
  .places-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .stats-strip.sticky-notes{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
  .sticky-notes .kpi{transform:none;padding:12px 10px 10px}
  .sticky-notes .kpi:nth-child(n){transform:none}
  .kpi dt{font-size:9px}
  .kpi dd{font-size:20px}
  .kpi:last-child dd,.kpi.kpi-play dd{font-size:18px}
  .kpi dd small{font-size:9px;margin-top:2px}
  .timeline.scrap-pages,.memes{grid-template-columns:repeat(2,minmax(0,1fr))}
  .section{padding-block:46px}
  .about{grid-template-columns:1fr 1.1fr;gap:28px}
  .footer-note{display:none}
  .radar-layout{grid-template-columns:1fr;gap:18px}
  .places-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .places-summary{grid-template-columns:1fr auto;gap:12px 16px;padding:16px 18px}
  .places-summary-aside{display:none}
  .places-summary-main h2{font-size:23px}
  .places-body{padding:0 18px 18px}
  .card:nth-child(n){transform:none}
  .card:hover{transform:translateY(-2px)}
}
@media(max-width:600px){
  .wrap{width:calc(100% - 32px)}
  .masthead{min-height:72px;gap:10px}
  .brand{font-size:16px}
  .brand small{font-size:7px;letter-spacing:1.2px}
  .brand img{width:30px;height:30px}
  nav{gap:12px;font-size:11px}
  nav a:nth-child(4),nav a:last-child{display:none}
  /* cover mobile handled below */

  .sticky-band{padding-top:12px;margin-top:20px}
  .stats-strip.sticky-notes{
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:0;
    padding:0;
    border:1px solid #e5d7a8;
    border-radius:4px;
    background:linear-gradient(180deg,#fffaf0,#f7efd8);
    box-shadow:var(--shadow);
    overflow:hidden;
  }
  .sticky-notes .kpi{
    padding:12px 8px 10px;
    transform:none;
    background:transparent;
    border:0;
    border-radius:0;
    box-shadow:none;
    border-right:1px dashed #e0d2a4;
  }
  .sticky-notes .kpi:last-child{border-right:0}
  .sticky-notes .kpi:nth-child(n){transform:none;background:transparent}
  .sticky-notes .kpi::before{display:none}
  .kpi dt{font-size:8px;letter-spacing:.1px;margin-bottom:4px;line-height:1.35}
  .kpi dd{font-size:16px;line-height:1.2}
  .kpi:last-child dd,.kpi.kpi-play dd{font-size:15px}
  .kpi dd small{display:block;white-space:normal;margin:2px 0 0;font-size:8px;line-height:1.35}
  .kpi.kpi-play{grid-column:auto}
  .freshness{font-size:9px;line-height:1.8;align-items:flex-start;overflow-wrap:anywhere}
  .section-heading{align-items:flex-start;gap:10px;flex-direction:column;margin-bottom:20px}
  .section-heading h2,.about h2{font-size:26px}
  .section-aside{text-align:left;font-size:10px}
  .section-aside br{display:none}
  .toolbar.scrap-toolbar{padding:12px}
  .filter-line{align-items:stretch;flex-direction:column;gap:12px}
  .search-wrap{width:100%;max-width:none;padding:10px 12px}
  .search-wrap input{font-size:12px}
  .chip{padding:8px 14px}
  .secondary-filters{gap:12px;margin-top:12px;align-items:flex-start}
  .selects{gap:14px}
  .secondary-filters #timelineCount{font-size:9px}
  .timeline.scrap-pages{
    grid-template-columns:1fr;
    gap:22px;
  }
  .card{padding:12px 12px 16px}
  .card::before{width:44px;left:22%}
  .thumb-wrap{aspect-ratio:16/11}
  .card h4{font-size:15px;line-height:1.7}
  .card-top{font-size:9px}
  .card-foot{font-size:9px;gap:6px;flex-wrap:wrap}
  .card-foot .stats{gap:8px}
  .sum{display:none}
  .card-body{padding-top:12px}
  .month{margin-top:4px}
  .month h3{font-size:13px}
  .load-more{margin-top:24px}
  .memes{gap:12px;grid-template-columns:1fr}
  .meme{padding:20px;transform:none!important}
  .about{grid-template-columns:1fr;gap:32px}
  .src-note{max-width:58%}
  .footer-inner{align-items:flex-start;flex-direction:column;gap:12px}
  .section{padding-block:38px}
  .empty,.fatal{padding:36px 14px}
  .radar-item{padding:11px 12px;gap:2px 10px}
  .radar-title{font-size:12px}
  .places-section,.glossary-section{padding-block:24px}
  .places-summary{padding:14px;gap:10px}
  .places-summary-main h2{font-size:22px}
  .places-summary-meta{font-size:10px}
  .places-body{padding:0 14px 14px}
  .glossary-panel .memes{margin-top:12px}
  .places-grid{grid-template-columns:1fr}
  .place-top h3{font-size:15px}
  .cover{padding-top:16px}
  .cover-photo,.cover-front{min-height:min(72vh,560px)}
  .cover-front{padding:22px 18px 26px;max-width:100%}
  .cover h1{font-size:clamp(28px,8vw,40px);letter-spacing:-1px}
  .cover-line{font-size:15px;margin-top:16px}
  .cover .field-stamp{width:62px;height:62px;font-size:7px;right:12px;top:16px}
  .cover-tapes span{width:64px;height:16px}
  .cover .hero-actions{gap:12px}
  .cover .button{min-height:44px;font-size:12px;padding:10px 16px}
  .route-map{min-height:220px;box-shadow:inset 0 0 0 5px #fffcf5aa}
  .pin-label{font-size:8px}
  .leg-note{margin-left:0;width:100%}
  .radar-summary-bar,.places-summary{grid-template-columns:1fr auto;padding:14px;gap:10px}
  .places-summary-aside{display:none}
  .dock{display:flex}
  body.journal{padding-bottom:76px}
  .radar-layout{grid-template-columns:1fr}
}
@media(max-width:350px){
  nav{gap:8px}
  .brand{font-size:14px;gap:6px}
  .brand img{width:28px;height:28px}
  .hero h1{font-size:26px}
  .card h4{font-size:14px}
  .kpi dd{font-size:14px}
  .kpi:last-child dd,.kpi.kpi-play dd{font-size:13px}
  .kpi dt{font-size:7px}
  .kpi dd small{font-size:7px}
  .sticky-notes .kpi{padding:10px 6px 8px}
  .stats-strip.sticky-notes{gap:0}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{transition:none!important}
}
