@charset "UTF-8";
/* ============================================================
   Ice Age Floods Trail - shared detail-page styles
   Loaded by /erratics, /notes, /papers detail pages
   ============================================================ */
:root {
  --ink: #0a141d;
  --ink-2: #0e1c28;
  --ink-3: #122535;
  --surface: #11212e;
  --surface-2: #173042;
  --basalt: #2a2520;
  --basalt-2: #3a342a;
  --line: rgba(232, 238, 241, .09);
  --line-2: rgba(232, 238, 241, .14);
  --text: #e8eef1;
  --text-dim: #a9b6bf;
  --text-soft: #7a8a94;
  --accent: #c8a45c;
  --accent-deep: #a8853f;
  --water: #4a8db5;
  --ice: #d9e4ea;
  --orange: #cf7d44;
  --purple: #b070a8;
  --gold: #d99a4e;
  --serif: 'Source Serif 4', 'Iowan Old Style', Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Inter, Arial, sans-serif;
  --maxw: 1180px;
  --maxw-narrow: 760px;
  /* Type-specific accent - overridden by body[data-type] */
  --type-accent: var(--accent);
}
body[data-type="erratic"] { --type-accent: var(--purple); }
body[data-type="note"]    { --type-accent: var(--orange); }
body[data-type="site"]    { --type-accent: var(--gold); }
body[data-type="paper"]   { --type-accent: var(--water); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font-family: var(--sans); line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(200,164,92,.4); }
a:hover { color: var(--ice); }
::selection { background: var(--accent); color: var(--ink); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: var(--maxw-narrow); margin: 0 auto; padding: 0 28px; }
.eyebrow {
  font-family: var(--sans); font-size: 11px;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--type-accent); font-weight: 500;
}

/* ===== HEADER ===== */
header.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,20,29, .94);
  backdrop-filter: blur(12px);
}
.wordmark {
  font-family: var(--serif); font-size: 16px; font-weight: 600; color: var(--text);
  border: 0; display: flex; align-items: center; gap: 12px;
}
.wordmark .brand-icon {
  height: 32px; width: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}
.wordmark .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--accent) 0%, var(--accent-deep) 70%);
  flex-shrink: 0;
}
header nav { display: flex; gap: 22px; align-items: center; }
header nav a { font-size: 13px; color: var(--text-dim); border: 0; }
header nav a:hover { color: var(--text); }

/* ===== SEARCH BOX ===== */
.search-box { position: relative; display: flex; align-items: center; width: 240px; }
.search-box input {
  width: 100%; padding: 7px 12px 7px 32px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line-2); color: var(--text);
  font-family: var(--sans); font-size: 13px;
  border-radius: 4px; outline: none;
  transition: background .15s ease, border-color .15s ease;
}
.search-box input::placeholder { color: var(--text-soft); }
.search-box input:focus { border-color: var(--type-accent); background: rgba(255,255,255,.06); }
.search-box::before {
  content: ''; position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a8a94' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") center/contain no-repeat;
}
.search-results {
  position: absolute; top: 100%; left: 0; right: 0; margin-top: 6px;
  background: var(--ink-2); border: 1px solid var(--line-2);
  border-radius: 4px; max-height: 70vh; overflow-y: auto;
  z-index: 100; display: none;
}
.search-results.open { display: block; }
.search-results a {
  display: block; padding: 10px 14px;
  border: 0; border-bottom: 1px solid var(--line);
  color: var(--text); font-size: 13px;
}
.search-results a:hover { background: var(--surface-2); }
.search-results a:last-child { border-bottom: 0; }
.search-results .res-title { display: block; color: var(--text); margin-bottom: 2px; }
.search-results .res-meta { display: block; color: var(--text-soft); font-size: 11px; letter-spacing: .04em; }
.search-results .empty { padding: 14px; color: var(--text-soft); font-size: 13px; font-style: italic; }
@media (max-width: 720px) {
  header nav { gap: 14px; }
  header nav a:not(.search-box) { display: none; }
  .search-box { width: 180px; }
}

/* ===== CRUMB ===== */
.crumb {
  padding: 22px 0 8px;
  font-size: 12px; color: var(--text-soft);
  letter-spacing: .04em;
}
.crumb a { color: var(--text-dim); border: 0; }
.crumb a:hover { color: var(--text); }
.crumb .sep { margin: 0 6px; opacity: .5; }

/* ===== HERO ===== */
.detail-hero {
  position: relative;
  padding: 68px 0 56px;
  margin-bottom: 12px;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}
.detail-hero::before {
  /* Topographic contour SVG wash */
  content: ''; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(circle at 80% 20%, rgba(200,164,92,.06) 0%, transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(74,141,181,.05) 0%, transparent 50%),
    linear-gradient(180deg, var(--ink-3) 0%, var(--ink) 100%);
}
.detail-hero::after {
  /* Topo line pattern overlay */
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 600' fill='none' stroke='%23c8a45c' stroke-width='.4' opacity='.08'%3E%3Cpath d='M-50 100 Q200 80 400 120 T850 90'/%3E%3Cpath d='M-50 150 Q200 130 400 170 T850 140'/%3E%3Cpath d='M-50 220 Q200 200 400 240 T850 210'/%3E%3Cpath d='M-50 300 Q200 280 400 320 T850 290'/%3E%3Cpath d='M-50 380 Q200 360 400 400 T850 370'/%3E%3Cpath d='M-50 460 Q200 440 400 480 T850 450'/%3E%3Cpath d='M-50 540 Q200 520 400 560 T850 530'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  opacity: .9;
  pointer-events: none;
}
.detail-hero .hero-inner { position: relative; max-width: 880px; }
.detail-hero .hero-accent {
  /* Left rule that picks up the type-accent color */
  width: 36px; height: 3px;
  background: var(--type-accent);
  margin-bottom: 18px;
}
.detail-hero h1 {
  font-family: var(--serif); font-size: clamp(34px, 5vw, 56px);
  font-weight: 600; line-height: 1.08;
  margin: 14px 0 22px; letter-spacing: -.015em;
  color: var(--text);
}
.detail-hero .sub {
  font-family: var(--serif); font-size: clamp(18px, 1.8vw, 21px);
  line-height: 1.55; color: var(--text-dim);
  max-width: 740px;
}
.detail-hero .facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 22px 32px;
  margin-top: 38px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.detail-hero .fact .l {
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-soft); margin-bottom: 8px;
}
.detail-hero .fact .v {
  font-family: var(--serif); font-size: 18px; color: var(--text);
  line-height: 1.3; font-weight: 500;
}
.detail-hero .fact .v small {
  display: block; font-family: var(--sans); font-size: 12px; color: var(--text-dim);
  margin-top: 3px; letter-spacing: 0; font-weight: 400;
}

/* ===== TWO-COLUMN BODY ===== */
.detail-body { padding: 48px 0 60px; }
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 64px;
  align-items: start;
}
@media (max-width: 980px) {
  .detail-grid { grid-template-columns: 1fr; gap: 36px; }
}

.detail-grid .prose { max-width: 720px; }
.detail-grid .prose > p:first-of-type::first-letter {
  font-family: var(--serif); font-weight: 600;
  font-size: 3.4em; line-height: .9;
  float: left; padding: 6px 10px 0 0;
  color: var(--type-accent);
}
.detail-grid .prose p {
  font-size: 17px; line-height: 1.7; margin: 0 0 20px;
  color: var(--text);
}
.detail-grid .prose h2 {
  font-family: var(--serif); font-size: 26px; font-weight: 600;
  margin: 42px 0 16px;
  letter-spacing: -.005em;
  position: relative; padding-left: 18px;
}
.detail-grid .prose h2::before {
  content: ''; position: absolute; left: 0; top: 13px;
  width: 4px; height: 22px;
  background: var(--type-accent);
  border-radius: 1px;
}
.detail-grid .prose h2:first-child { margin-top: 0; }

/* Field-notebook quote treatment */
.detail-grid .prose blockquote {
  position: relative;
  margin: 28px 0;
  padding: 28px 32px 28px 56px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.025) 0%, rgba(255,255,255,.01) 100%),
    var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--type-accent);
  border-radius: 4px;
  font-family: var(--serif); font-size: 19px; line-height: 1.55;
  color: var(--ice);
  font-style: italic;
}
.detail-grid .prose blockquote::before {
  content: '\201C';
  position: absolute; left: 14px; top: -2px;
  font-family: var(--serif); font-size: 64px; line-height: 1;
  color: var(--type-accent);
  opacity: .35;
}
.detail-grid .prose blockquote .cite {
  display: block; margin-top: 16px;
  font-family: var(--sans); font-size: 12px;
  color: var(--text-soft); letter-spacing: .12em;
  font-style: normal; text-transform: uppercase;
}

/* ===== SITE HERO IMAGE / YOUTUBE / GALLERY ===== */
.site-hero-figure {
  margin: 0 0 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.site-hero-figure img {
  width: 100%; height: auto;
  display: block;
  max-height: 480px;
  object-fit: cover;
}
.site-hero-figure figcaption {
  padding: 12px 18px 16px;
  font-size: 13px; line-height: 1.5;
  color: var(--text-dim); font-family: var(--sans);
  border-top: 1px solid var(--line);
  background: var(--ink-2);
}

.yt-embed {
  position: relative;
  width: 100%; padding-bottom: 56.25%;
  margin: 16px 0 28px;
  background: var(--ink-2);
  border-radius: 4px; overflow: hidden;
  border: 1px solid var(--line);
}
.yt-embed iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}

.iafi-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  margin: 16px 0 28px;
}
.iafi-gallery .gal-item {
  display: block; border: 1px solid var(--line); border-radius: 3px;
  overflow: hidden; aspect-ratio: 4 / 3;
}
.iafi-gallery .gal-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.iafi-gallery .gal-item:hover img { transform: scale(1.04); }

/* ===== MINI-MAP SIDEBAR ===== */
.detail-sidebar { position: sticky; top: 90px; }
@media (max-width: 980px) { .detail-sidebar { position: static; } }
.mini-map {
  width: 100%; height: 260px;
  background:
    linear-gradient(135deg, rgba(74,141,181,.06) 0%, transparent 50%),
    var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.mini-map .map-loading {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-soft); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase;
}
.mini-map-caption {
  font-size: 11px; color: var(--text-soft);
  margin-top: 10px; line-height: 1.45;
}
.mini-map-caption a { color: var(--text-dim); border: 0; text-decoration: underline; text-decoration-color: rgba(169,182,191,.3); }

/* "View on the interactive map" CTA in detail-page sidebar */
.view-on-map-btn {
  display: flex; align-items: center; gap: 14px;
  margin-top: 14px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(74,141,181,.18) 0%, rgba(200,164,92,.14) 100%);
  border: 1px solid rgba(200,164,92,.42);
  border-radius: 4px;
  text-decoration: none; color: var(--text);
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.view-on-map-btn:hover {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(74,141,181,.26) 0%, rgba(200,164,92,.20) 100%);
  transform: translateY(-1px);
}
.view-on-map-btn .vom-icon {
  width: 28px; height: 28px; flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8a45c' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 6v15l7-3 8 3 7-3V3l-7 3-8-3-7 3z'/%3E%3Cpath d='M8 3v15'/%3E%3Cpath d='M16 6v15'/%3E%3C/svg%3E") center/contain no-repeat;
}
.view-on-map-btn .vom-text { flex: 1; min-width: 0; }
.view-on-map-btn .vom-label { display: block; font-family: var(--serif); font-weight: 600; font-size: 14px; color: var(--ice); }
.view-on-map-btn .vom-sub { display: block; font-size: 11px; color: var(--text-soft); letter-spacing: .04em; margin-top: 2px; }
.view-on-map-btn .vom-arrow { color: var(--accent); font-size: 18px; flex-shrink: 0; transition: transform .15s ease; }
.view-on-map-btn:hover .vom-arrow { transform: translateX(3px); }

.metadata {
  margin-top: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 22px 24px;
}
.metadata::before {
  /* small ornamental hairline */
  content: ''; display: block; width: 24px; height: 2px;
  background: var(--type-accent); margin-bottom: 16px;
  opacity: .7;
}
.metadata dl { margin: 0; display: grid; grid-template-columns: 1fr 1.6fr; gap: 12px 16px; }
.metadata dt {
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-soft); align-self: center;
}
.metadata dd { margin: 0; font-size: 14px; color: var(--text); line-height: 1.4; }
.metadata dd em { color: var(--text-dim); font-style: normal; font-size: 13px; }

/* ===== CAPTURE ROADMAP ===== */
.capture-band {
  padding: 72px 0 84px;
  position: relative;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(200,164,92,.04) 0%, transparent 60%),
    var(--ink);
  border-top: 1px solid var(--line);
}
.capture-band::before {
  content: ''; position: absolute; left: 50%; top: 0; transform: translate(-50%, -1px);
  width: 60px; height: 2px;
  background: var(--type-accent);
}
.capture-band .band-head { max-width: 720px; margin-bottom: 36px; }
.capture-band .band-head .eyebrow { color: var(--accent); }
.capture-band .band-head h2 {
  font-family: var(--serif); font-size: clamp(26px, 3vw, 32px); font-weight: 600;
  margin: 14px 0 14px; letter-spacing: -.005em;
}
.capture-band .band-head p {
  color: var(--text-dim); font-size: 15px; line-height: 1.65;
  max-width: 640px;
}
.capture-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.capture-card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,.02) 0%, transparent 100%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 320px;
  transition: border-color .2s ease, transform .2s ease;
}
.capture-card:hover { border-color: rgba(200,164,92,.3); transform: translateY(-2px); }
.capture-card.captured { border-color: rgba(200,164,92,.3); }
.capture-card .preview {
  aspect-ratio: 16/10;
  background:
    radial-gradient(circle at 30% 30%, rgba(74,141,181,.12) 0%, transparent 55%),
    linear-gradient(135deg, var(--basalt) 0%, var(--basalt-2) 50%, var(--ink-3) 100%);
  position: relative;
  overflow: hidden;
}
.capture-card.captured .preview { cursor: pointer; }
.capture-card .preview .icon {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: .85;
}
.capture-card .preview .icon svg {
  width: 72px; height: 72px;
  filter: drop-shadow(0 0 24px rgba(200,164,92,.35));
}
.capture-card .preview .icon svg,
.capture-card .preview .icon svg * {
  stroke: #c8a45c !important;
  fill: none !important;
  stroke-width: 1.3;
}
.capture-card .preview iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.capture-card.empty .preview::before {
  content: 'Phase 1 capture target';
  position: absolute; bottom: 14px; left: 16px;
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); font-weight: 500;
  background: rgba(10,20,29,.85); padding: 5px 10px; border-radius: 2px;
}
.capture-card .body { padding: 20px 22px; flex: 1; display: flex; flex-direction: column; }
.capture-card .label { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 8px; }
.capture-card h3 {
  font-family: var(--serif); font-size: 18px; font-weight: 500; margin: 0 0 10px;
  color: var(--text);
}
.capture-card .desc { font-size: 13.5px; color: var(--text-dim); line-height: 1.55; margin: 0 0 12px; }
.capture-card .status {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-soft); margin-top: auto; padding-top: 10px;
}
.capture-card.captured .preview .icon { display: none; }
.capture-card .open-btn {
  display: inline-block;
  margin-top: 12px; padding: 7px 14px;
  background: rgba(200,164,92,.14);
  border: 1px solid rgba(200,164,92,.4);
  color: var(--accent);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; border-radius: 3px;
  align-self: flex-start;
}
.capture-card .open-btn:hover { background: rgba(200,164,92,.22); color: var(--ice); }

/* ===== MODERN CONTEXT BAND ===== */
.modern-band {
  background:
    radial-gradient(ellipse at 30% 0%, rgba(74,141,181,.05) 0%, transparent 55%),
    var(--ink-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 72px 0;
}
.modern-band .wrap-narrow { max-width: 780px; }
.modern-band .eyebrow { color: var(--water); }
.modern-band h2 {
  font-family: var(--serif); font-size: clamp(26px, 3vw, 32px); font-weight: 600;
  margin: 14px 0 22px; letter-spacing: -.005em;
}
.modern-band p {
  font-size: 16px; line-height: 1.7; color: var(--text-dim);
  margin: 0 0 18px;
}
.modern-band .pull {
  font-family: var(--serif); font-style: italic;
  font-size: 20px; color: var(--ice);
  border-left: 2px solid var(--accent);
  padding-left: 20px;
  margin: 24px 0;
}

/* ===== NEARBY / RELATED ===== */
.nearby-band { padding: 64px 0; background: var(--ink); }
.nearby-band h2 {
  font-family: var(--serif); font-size: 26px; font-weight: 600;
  margin-top: 8px; margin-bottom: 20px; letter-spacing: -.005em;
}
.nearby-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.nearby-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 4px; padding: 20px 22px;
  display: block;
  transition: border-color .15s ease, background .15s ease;
}
.nearby-card:hover { border-color: var(--line-2); background: var(--surface-2); }
.nearby-card .ny-eyebrow {
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-soft); margin-bottom: 8px;
}
.nearby-card h4 {
  font-family: var(--serif); font-size: 17px; font-weight: 500;
  margin: 0 0 10px; line-height: 1.3; color: var(--text);
}
.nearby-card .ny-meta { font-size: 12px; color: var(--text-dim); }

/* ===== BROWSE-PAGE FILTERS ===== */
.browse-filters {
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  position: sticky; top: 65px; z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(14,28,40,.96);
}
.bf-row {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.bf-search-wrap { width: 100%; max-width: 520px; }
.bf-count { position: absolute; top: 12px; right: 0; }
@media (max-width: 720px) { .bf-count { position: static; align-self: flex-end; } }
.bf-search-wrap {
  position: relative;
}
.bf-search-wrap::before {
  content: ''; position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a8a94' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") center/contain no-repeat;
  pointer-events: none;
}
.bf-search {
  width: 100%; padding: 10px 14px 10px 36px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  color: var(--text);
  font-family: var(--sans); font-size: 14px;
  border-radius: 4px; outline: none;
}
.bf-search::placeholder { color: var(--text-soft); }
.bf-search:focus { border-color: var(--type-accent); }

.bf-filters {
  display: flex; flex-wrap: wrap; gap: 16px;
}
.bf-filter-group {
  display: flex; align-items: center; gap: 10px;
}
.bf-filter-label {
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-soft);
}
.bf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bf-chip {
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--text-dim);
  font-family: var(--sans); font-size: 12px;
  padding: 5px 11px;
  border-radius: 14px;
  cursor: pointer;
  letter-spacing: .04em;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.bf-chip:hover { color: var(--text); border-color: var(--type-accent); }
.bf-chip.active {
  background: var(--type-accent);
  border-color: var(--type-accent);
  color: var(--ink);
  font-weight: 500;
}
.bf-count {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-soft);
  white-space: nowrap;
}

/* ===== FOOTER ===== */
footer.site {
  padding: 44px 0 56px;
  border-top: 1px solid var(--line);
  color: var(--text-soft); font-size: 12px;
  letter-spacing: .04em;
}
footer.site .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
footer.site a { color: var(--text-dim); border: 0; }
footer.site a:hover { color: var(--text); }

/* ===== INJECTED RESEARCH BODIES ===== */
/* Used by site research, lithology overviews, regional context, researcher bios */
.detail-grid .prose .research-body {
  margin: 0 0 18px;
  padding: 6px 0 0;
  border-top: 1px solid var(--line);
  border-top-color: rgba(232, 238, 241, .055);
}
.detail-grid .prose .research-body > p:first-child {
  margin-top: 14px;
}
.detail-grid .prose .research-body p {
  font-size: 16px; line-height: 1.7; margin: 0 0 16px;
  color: var(--text);
}
.detail-grid .prose .research-body p:last-child { margin-bottom: 0; }
.detail-grid .prose .research-body h3,
.detail-grid .prose .research-body h4 {
  font-family: var(--serif); font-weight: 600;
  margin: 26px 0 10px;
  letter-spacing: -.003em;
  color: var(--ice);
}
.detail-grid .prose .research-body h3 { font-size: 19px; }
.detail-grid .prose .research-body h4 {
  font-size: 14px;
  font-family: var(--sans);
  letter-spacing: .04em;
  color: var(--type-accent);
  text-transform: uppercase;
  margin-top: 22px;
}
.detail-grid .prose .research-body ul,
.detail-grid .prose .research-body ol {
  margin: 0 0 18px;
  padding-left: 22px;
}
.detail-grid .prose .research-body li {
  font-size: 16px; line-height: 1.65;
  margin-bottom: 8px;
  color: var(--text);
}
.detail-grid .prose .research-body li::marker { color: var(--type-accent); }
.detail-grid .prose .research-body strong {
  color: var(--ice); font-weight: 600;
}
.detail-grid .prose .research-body em {
  color: var(--ice); font-style: italic;
}
.detail-grid .prose .research-body a {
  color: var(--type-accent);
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.detail-grid .prose .research-body a:hover {
  border-bottom-color: var(--type-accent);
}
.detail-grid .prose .research-body hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 28px 0;
}

/* Researcher bio block — subtle card to distinguish from regional context */
.detail-grid .prose .researcher-bio-rich {
  background: linear-gradient(180deg, rgba(255,255,255,.018) 0%, rgba(255,255,255,.005) 100%);
  border: 1px solid var(--line);
  border-left: 3px solid var(--type-accent);
  border-radius: 4px;
  padding: 22px 26px 8px;
  margin-top: 0;
}

/* Lithology body — slightly bolder lede paragraph */
.detail-grid .prose .lithology-body > p:first-child {
  font-size: 17px;
  color: var(--ice);
}

/* Print: trim research bodies */
@media print {
  .detail-grid .prose .research-body { break-inside: avoid-page; }
}
