/* Rockies Paleo Hub: shared styles. Sister site to the Wyoming Geology Hub and Wyoming Cyber Hub.
   Concept: a field dig. Pale matrix-gray ground like the rock a fossil comes out of, a dark basalt header band,
   a strip of the international geologic time-scale colors across the top, and one signal color,
   survey flagging-tape orange, for "look here" states. Category lamps are square, like grid-square stakes.
   Layout: time strip + header band, then a single column (max 1160px) per page. */
:root {
  /* Neutrals: matrix gray with a green-olive bias */
  --bg: #E6E8E1;
  --surface: #F5F6F1;
  --sunk: #D7DAD0;
  --ink: #171A15;
  --muted: #4C5348;
  --line: #B3B9AA;
  /* Signal: flagging-tape orange, fills and underlines only, never as text on light */
  --signal: #FF6B1A;
  --signal-line: #D4520C;
  --on-signal: #171A15;
  --accent-soft: #FFD9C2;
  /* Header band stays dark in both themes */
  --chrome: #191D19;
  --chrome-line: #2D332C;
  --on-chrome: #E9ECE4;
  --on-chrome-muted: #9CA596;
  /* Caution */
  --warn-bg: #F6DDD6;
  --warn-ink: #84260F;
  --ok-bg: #DCEBD3;
  --ok-ink: #24561A;
  /* Category lamps */
  --c-museum: #2F66D0;
  --c-park: #138A6E;
  --c-dig: #C7365F;
  --c-quarry: #B9770E;
  --c-group: #7C4FD0;
  --c-online: #5E6B7A;
  --scrim: rgba(10, 12, 10, .72);
  --on-photo: #FFFFFF;
  /* Geologic periods, after the ICS chronostratigraphic chart colors (fixed in both themes) */
  --p-cam: #7FA056; --p-ord: #009270; --p-sil: #B3E1B6; --p-dev: #CB8C37; --p-carb: #67A599; --p-perm: #F04028;
  --p-tri: #812B92; --p-jur: #34B2C9; --p-cre: #7FC64E; --p-pal: #FD9A52; --p-neo: #FFE619; --p-qua: #F9F97F;
  /* Type: a lively grotesk for display, a sturdy sans for reading, a mono for catalog numbers and labels */
  --f-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F120F; --surface: #181C18; --sunk: #222721; --ink: #ECEFE7; --muted: #A0A99A; --line: #343B32;
    --signal: #FF7A2E; --signal-line: #B8571E; --on-signal: #0F120F; --accent-soft: #42230F;
    --chrome: #080A08; --chrome-line: #252A24; --on-chrome: #ECEFE7; --on-chrome-muted: #919A8C;
    --warn-bg: #3B1E17; --warn-ink: #F3A28E; --ok-bg: #1C3317; --ok-ink: #A8DC94;
    --c-museum: #6C9BFF; --c-park: #3CC9A2; --c-dig: #F0628C; --c-quarry: #E2A23B; --c-group: #A688F0; --c-online: #93A1B3;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F120F; --surface: #181C18; --sunk: #222721; --ink: #ECEFE7; --muted: #A0A99A; --line: #343B32;
  --signal: #FF7A2E; --signal-line: #B8571E; --on-signal: #0F120F; --accent-soft: #42230F;
  --chrome: #080A08; --chrome-line: #252A24; --on-chrome: #ECEFE7; --on-chrome-muted: #919A8C;
  --warn-bg: #3B1E17; --warn-ink: #F3A28E; --ok-bg: #1C3317; --ok-ink: #A8DC94;
  --c-museum: #6C9BFF; --c-park: #3CC9A2; --c-dig: #F0628C; --c-quarry: #E2A23B; --c-group: #A688F0; --c-online: #93A1B3;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 15.5px;
  line-height: 1.55;
}
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--ink); text-decoration-line: underline; text-decoration-color: var(--signal-line); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, .stage:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 5px var(--signal); }

/* ---------- Time strip + header band ----------
   The strip is the Phanerozoic, Cambrian (left) to Quaternary (right), each period as wide as it lasted. */
.timestrip {
  display: grid; height: 7px;
  grid-template-columns: 53.4fr 41.6fr 24.6fr 60.3fr 60fr 47fr 50.6fr 56.3fr 79.5fr 43fr 20.4fr 2.6fr;
}
.timestrip span:nth-child(1) { background: var(--p-cam); }
.timestrip span:nth-child(2) { background: var(--p-ord); }
.timestrip span:nth-child(3) { background: var(--p-sil); }
.timestrip span:nth-child(4) { background: var(--p-dev); }
.timestrip span:nth-child(5) { background: var(--p-carb); }
.timestrip span:nth-child(6) { background: var(--p-perm); }
.timestrip span:nth-child(7) { background: var(--p-tri); }
.timestrip span:nth-child(8) { background: var(--p-jur); }
.timestrip span:nth-child(9) { background: var(--p-cre); }
.timestrip span:nth-child(10) { background: var(--p-pal); }
.timestrip span:nth-child(11) { background: var(--p-neo); }
.timestrip span:nth-child(12) { background: var(--p-qua); }
.topbar { background: var(--chrome); border-bottom: 1px solid var(--chrome-line); }
.topbar-in {
  max-width: 1160px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 0;
  display: flex; flex-wrap: wrap; gap: 0 24px; align-items: stretch; justify-content: space-between;
}
.brand {
  display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--on-chrome);
  font-family: var(--f-display); font-stretch: 87.5%; font-weight: 700; font-size: 15px; letter-spacing: -.01em;
  padding-block: 14px;
}
/* Brand mark: a survey stake with flagging tape */
.brand-mark { position: relative; width: 16px; height: 20px; flex: none; }
.brand-mark::before { content: ""; position: absolute; left: 2px; top: 0; bottom: 0; width: 2px; background: var(--on-chrome); }
.brand-mark::after { content: ""; position: absolute; left: 4px; top: 1px; width: 11px; height: 8px; background: var(--signal); clip-path: polygon(0 0, 100% 15%, 80% 55%, 100% 100%, 0 85%); }
.topnav { display: flex; flex-wrap: wrap; gap: 0; }
.topnav a {
  text-decoration: none; color: var(--on-chrome-muted);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
  padding: 16px 14px 13px; border-bottom: 3px solid transparent;
}
.topnav a:hover { color: var(--on-chrome); }
.topnav a[aria-current="page"] { color: var(--on-chrome); border-bottom-color: var(--signal); }

/* ---------- Page shell ---------- */
.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 40px 72px;
  display: grid;
  gap: 44px;
}
.eyebrow {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 12px; display: flex; gap: 8px; align-items: center;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--signal); flex: none; }
h1 {
  font-family: var(--f-display); font-stretch: 87.5%; font-weight: 750;
  font-size: clamp(30px, 5vw, 50px); line-height: 1.04; letter-spacing: -.035em;
  margin: 0; text-wrap: balance;
}
h2 {
  font-family: var(--f-display); font-stretch: 87.5%; font-weight: 700; font-size: 17px;
  letter-spacing: -.01em; margin: 0 0 14px; text-wrap: balance;
}
.lede { margin: 16px 0 0; max-width: 64ch; color: var(--muted); font-size: 17px; line-height: 1.5; }
.readout {
  margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 6px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; font-variant-numeric: tabular-nums;
}
.readout span { border: 1px solid var(--line); background: var(--surface); padding: 4px 8px; }
.readout b { font-weight: 700; }
.crumbs { font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.crumbs a { color: var(--muted); }
.site-foot {
  font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; max-width: 84ch;
}
.site-foot p { margin: 0 0 8px; }

/* ---------- Event bar: one lamp per dated event, grouped by type ---------- */
.strata { margin-top: 24px; display: grid; gap: 8px; }
.strata-bar { display: grid; grid-template-columns: repeat(var(--n, 1), minmax(0, 1fr)); gap: 2px; height: 14px; }
.strata-bar span { display: block; background: var(--c); }
.strata-cap { font-family: var(--f-mono); font-size: 10.5px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }

/* ---------- Faceplate cards (hub + events landing) ---------- */
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.doors.two-up { grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.door {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 2px;
  text-decoration: none; color: var(--ink);
}
.door:hover { border-color: var(--ink); }
.door-k {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 7px 16px; background: var(--sunk); border-bottom: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted);
}
.door-k::after { content: ""; width: 8px; height: 8px; background: var(--signal); flex: none; }
.door-t { padding: 16px 16px 0; font-family: var(--f-display); font-stretch: 87.5%; font-weight: 750; font-size: 22px; line-height: 1.15; letter-spacing: -.02em; }
.door-d { color: var(--muted); font-size: 15px; margin: 0; padding: 8px 16px 0; }
.door-list { list-style: none; margin: 0; padding: 12px 16px 0; display: grid; gap: 6px; font-size: 14px; }
.door-list li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; }
.door-list .when { font-family: var(--f-mono); font-size: 11px; color: var(--muted); padding-top: 3px; text-transform: uppercase; }
.door-go {
  margin-top: auto; padding: 16px; font-family: var(--f-mono); font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}

/* ---------- Next up ---------- */
.next { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.next-item {
  appearance: none; text-align: left; font: inherit; color: inherit; cursor: pointer; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 2px;
  padding: 12px 14px 14px; display: grid; gap: 5px; min-width: 0; align-content: start;
}
.next-item:hover { border-color: var(--ink); }
.next-when { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.next-title { font-weight: 600; font-size: 15px; line-height: 1.35; }
.next-org { font-size: 13px; color: var(--muted); }
.today-pill { background: var(--signal); color: var(--on-signal); padding: 1px 6px; font-weight: 700; letter-spacing: .06em; }

/* ---------- Filters ---------- */
.filters { display: grid; gap: 12px; background: var(--surface); border: 1px solid var(--line); padding: 16px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-label { font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); min-width: 72px; }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); background: var(--bg); }
.seg button {
  appearance: none; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 14px;
  padding: 6px 14px; cursor: pointer;
}
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--signal); color: var(--on-signal); font-weight: 600; }
.chip, .toggle {
  appearance: none; font: inherit; font-size: 13.5px; cursor: pointer; color: var(--ink);
  border: 1px solid var(--line); background: var(--bg); border-radius: 2px;
  padding: 5px 10px 5px 8px; display: inline-flex; gap: 8px; align-items: center;
}
.chip .sw { width: 10px; height: 10px; background: var(--c); }
.chip .n, .toggle .n { font-family: var(--f-mono); font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.chip[aria-pressed="false"] { opacity: .5; }
.chip[aria-pressed="false"] .sw { background: transparent; box-shadow: inset 0 0 0 1.5px var(--c); }
.toggle .box { width: 12px; height: 12px; box-shadow: inset 0 0 0 1.5px var(--muted); }
.toggle[aria-pressed="true"] { border-color: var(--ink); }
.toggle[aria-pressed="true"] .box { background: var(--signal); box-shadow: inset 0 0 0 1.5px var(--ink); }
.search {
  font: inherit; font-size: 14px; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 2px; padding: 7px 12px; width: min(340px, 100%);
}
.result-line { font-family: var(--f-mono); font-size: 11px; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.linkbtn { appearance: none; border: 0; background: none; color: var(--ink); font: inherit; text-decoration: underline; text-decoration-color: var(--signal-line); text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: pointer; padding: 0; }

/* ---------- Mini months ---------- */
.months { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 10px; }
.month { background: var(--surface); border: 1px solid var(--line); padding: 0 12px 12px; min-width: 0; }
.month h3 {
  font-family: var(--f-mono); font-weight: 700; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  margin: 0 -12px 10px; padding: 7px 12px; background: var(--sunk); border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: baseline;
}
.month h3 .n { font-weight: 400; color: var(--muted); letter-spacing: .04em; }
.dows, .days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dows span { font-family: var(--f-mono); font-size: 9.5px; color: var(--muted); text-align: center; padding-bottom: 4px; text-transform: uppercase; }
.day {
  appearance: none; border: 0; font: inherit; color: inherit; background: transparent;
  min-height: 40px; border-radius: 1px; padding: 5px 0 4px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-family: var(--f-mono); font-size: 11px; font-variant-numeric: tabular-nums;
}
.day.out { color: var(--muted); opacity: .4; }
.day.has { background: var(--sunk); cursor: pointer; }
.day.has:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.day.today { box-shadow: inset 0 0 0 2px var(--signal); }
.dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; max-width: 30px; }
.dot { width: 6px; height: 6px; background: var(--c); }

/* ---------- Agenda ---------- */
.agenda { display: grid; gap: 32px; }
.agenda-month { display: grid; }
.agenda-month > h2 { display: flex; gap: 12px; align-items: baseline; font-size: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); margin-bottom: 0; }
.agenda-month > h2 .n { font-family: var(--f-mono); font-weight: 400; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.dayrow {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 22px;
  border-bottom: 1px solid var(--line); padding-block: 18px; scroll-margin-top: 16px;
}
.datecol { display: grid; align-content: start; gap: 2px; font-family: var(--f-mono); }
.datecol .dw { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.datecol .dn { font-stretch: 87.5%; font-weight: 750; font-size: 34px; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.datecol .mn { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.evs { display: grid; min-width: 0; }
.ev { display: grid; gap: 6px; padding-block: 2px 16px; min-width: 0; scroll-margin-top: 16px; }
.ev + .ev { border-top: 1px dotted var(--line); padding-top: 16px; }
.ev:last-child { padding-bottom: 0; }
.ev-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.ev-time { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.ev-cat { display: inline-flex; gap: 7px; align-items: center; }
.ev-cat::before { content: ""; width: 10px; height: 10px; background: var(--c); }
.ev-title { margin: 0; font-size: 18px; font-weight: 650; line-height: 1.3; text-wrap: pretty; }
.ev-org { margin: 0; font-size: 14px; }
.ev-where { color: var(--muted); }
.ev-note { margin: 0; font-size: 14px; color: var(--muted); max-width: 70ch; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .04em; text-transform: uppercase;
  border-radius: 1px; padding: 2px 7px; border: 1px solid var(--line); color: var(--ink); background: var(--surface);
}
.tag.wy { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tag.warn { background: var(--warn-bg); color: var(--warn-ink); border-color: transparent; }
.tag.online { border-color: var(--ink); }
.tag.ot { background: var(--signal); color: var(--on-signal); border-color: var(--signal); font-weight: 700; }
.ev-links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; margin-top: 2px; }
.ev-links .join { font-weight: 650; }
.past { opacity: .5; }
.flash { animation: flash 1.8s ease-out; }
@keyframes flash { from { background: var(--accent-soft); } to { background: transparent; } }
.empty { padding: 28px 0; color: var(--muted); border-top: 1px solid var(--line); margin: 0; }

/* ---------- Expected (dates not announced) ---------- */
.radar { display: grid; border-top: 2px solid var(--ink); }
.radar-row {
  display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px;
  border-bottom: 1px solid var(--line); padding-block: 12px;
}
.radar-when { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.radar-t { font-weight: 600; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.radar-d { margin: 2px 0 0; font-size: 14px; color: var(--muted); }

/* ---------- Notes ---------- */
.notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 28px; }
.notes ul { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 10px; font-size: 14px; }
.notes li { padding-left: 16px; position: relative; }
.notes li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; background: var(--muted); }
.notes li span { color: var(--muted); }

/* ---------- Carousel (hub): photo with a side readout panel ---------- */
.carousel { display: grid; gap: 10px; }
.stage {
  position: relative; overflow: hidden; background: var(--chrome); border: 1px solid var(--chrome-line);
  aspect-ratio: 16 / 7; max-width: 100%;
}
.slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease;
  display: grid; grid-template-columns: minmax(0, 1fr) 340px;
}
.slide.on { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 0; }
.cap {
  background: var(--chrome); color: var(--on-chrome); border-left: 1px solid var(--chrome-line);
  padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0; overflow: auto;
}
.cap-n { margin: 0; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--on-chrome-muted); display: flex; gap: 8px; align-items: center; }
.cap-n::before { content: ""; width: 8px; height: 8px; background: var(--signal); }
.cap-place { font-family: var(--f-display); font-stretch: 87.5%; font-weight: 750; font-size: 19px; line-height: 1.2; letter-spacing: -.02em; margin: 0; }
.cap-geo { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--on-chrome); }
.cap-credit { margin: auto 0 0; font-size: 12px; color: var(--on-chrome-muted); }
.cap-credit a { color: var(--on-chrome); }
.nav-btn {
  position: absolute; bottom: 12px;
  width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.35); cursor: pointer;
  background: var(--scrim); color: var(--on-photo); font-size: 18px; line-height: 1;
  display: grid; place-items: center;
}
.nav-btn.back { left: 12px; }
.nav-btn.fwd { left: 56px; }
.car-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.car-dots { display: flex; flex-wrap: wrap; gap: 4px; }
.car-dot {
  appearance: none; cursor: pointer; padding: 3px 6px; border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  font-family: var(--f-mono); font-size: 10.5px; font-variant-numeric: tabular-nums;
}
.car-dot[aria-current="true"] { background: var(--signal); border-color: var(--signal); color: var(--on-signal); font-weight: 700; }
.car-play { appearance: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; cursor: pointer; }
.credits { columns: 2 300px; column-gap: 28px; font-size: 13px; color: var(--muted); margin: 0; padding-left: 22px; }
.credits li { break-inside: avoid; margin-bottom: 6px; }
.credits a { color: var(--muted); }

/* ---------- Organizations: panels in a grid ---------- */
.org-group { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 10px; }
.org-group > h2 { grid-column: 1 / -1; display: flex; gap: 12px; align-items: baseline; padding-bottom: 10px; border-bottom: 2px solid var(--ink); margin: 0 0 4px; }
.org-group > h2 .n { font-family: var(--f-mono); font-weight: 400; font-size: 11px; color: var(--muted); }
.org {
  display: flex; flex-direction: column; gap: 6px; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); padding: 12px 14px;
}
.org-city { order: -1; font-family: var(--f-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.org-name { font-weight: 650; font-size: 15.5px; line-height: 1.3; margin: 0; }
.org-desc { margin: 0; font-size: 14px; color: var(--muted); }
.org-link { margin-top: auto; font-family: var(--f-mono); font-size: 10.5px; overflow-wrap: anywhere; }

@media (max-width: 760px) {
  .slide { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .cap { border-left: 0; border-top: 1px solid var(--chrome-line); padding: 14px 16px; gap: 6px; overflow: visible; }
  .cap-place { font-size: 17px; }
  .cap-geo { font-size: 13.5px; }
  .stage { aspect-ratio: 3 / 4.3; }
  .nav-btn { top: 12px; bottom: auto; width: 34px; height: 34px; }
  .nav-btn.back { left: 12px; }
  .nav-btn.fwd { left: auto; right: 12px; }
}
@media (max-width: 620px) {
  .wrap { gap: 34px; padding-block: 26px 56px; }
  .dayrow { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .datecol { display: flex; gap: 10px; align-items: baseline; }
  .datecol .dn { font-size: 24px; }
  .filter-label { min-width: 100%; }
  .radar-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .strata-bar { gap: 1px; }
  .topnav a { padding: 12px 10px 9px; }
  .brand { padding-block: 12px 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .flash { animation: none; background: var(--accent-soft); }
  .slide { transition: none; }
}

/* ---------- Home: split hero with the "coming up" feed ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.hero-next { border: 1px solid var(--line); background: var(--surface); min-width: 0; display: grid; }
.hero-next > h2 {
  margin: 0; padding: 7px 14px; background: var(--sunk); border-bottom: 1px solid var(--line);
  font-family: var(--f-mono); font-stretch: 100%; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  display: flex; justify-content: space-between; align-items: center;
}
.hero-next > h2::after { content: ""; width: 8px; height: 8px; background: var(--signal); }
.hero-next .next { grid-template-columns: minmax(0, 1fr); gap: 0; }
.hero-next .next-item { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; padding: 11px 14px; }
.hero-next .next-item:hover { background: var(--sunk); }
.hero-all { padding: 10px 14px; font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.hero-all::before { content: "▸ "; color: var(--signal-line); }
@media (max-width: 860px) { .hero { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* ======================================================================
   Paleo Hub additions
   ====================================================================== */

/* Carousel slide without a photo yet: a colored panel named for the rock unit */
.ph {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  padding: 22px 24px; color: var(--on-photo); min-height: 0; overflow: hidden;
}
.ph-unit { position: relative; font-family: var(--f-display); font-stretch: 80%; font-weight: 800; font-size: clamp(30px, 5.4vw, 64px); line-height: .95; letter-spacing: -.035em; margin: 0; text-wrap: balance; }
.ph-age { position: relative; font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; margin: 0; opacity: .9; }
.ph::before { /* faint bedding lines */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(176deg, rgba(255,255,255,.07) 0 2px, transparent 2px 26px);
}

/* Quick answers panel on home sits in .hero-next */
.qa { display: grid; }
.qa-item { padding: 11px 14px; border-bottom: 1px solid var(--line); display: grid; gap: 4px; text-decoration: none; color: var(--ink); }
.qa-item:hover { background: var(--sunk); }
.qa-q { font-weight: 650; font-size: 15px; line-height: 1.3; }
.qa-a { font-size: 13.5px; color: var(--muted); }
.verdict { font-family: var(--f-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; padding: 1px 6px; justify-self: start; }
.verdict.yes { background: var(--ok-bg); color: var(--ok-ink); }
.verdict.no { background: var(--warn-bg); color: var(--warn-ink); }
.verdict.maybe { background: var(--accent-soft); color: var(--ink); }

/* Sister-site strip */
.sisters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 10px; }
.sister { display: grid; gap: 4px; padding: 12px 14px; border: 1px dashed var(--line); text-decoration: none; color: var(--ink); }
.sister:hover { border-style: solid; border-color: var(--ink); }
.sister b { font-family: var(--f-display); font-stretch: 87.5%; font-size: 17px; letter-spacing: -.01em; }
.sister span { font-size: 13.5px; color: var(--muted); }

/* Cards for sites and digs */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 10px; }
.cards > h2 { grid-column: 1 / -1; display: flex; gap: 12px; align-items: baseline; padding-bottom: 10px; border-bottom: 2px solid var(--ink); margin: 0 0 4px; }
.cards > h2 .n { font-family: var(--f-mono); font-weight: 400; font-size: 11px; color: var(--muted); }
.card {
  display: flex; flex-direction: column; gap: 8px; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); padding: 0 0 14px;
}
.card-k {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 6px 14px; background: var(--sunk); border-bottom: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.card-k .lamp { display: inline-flex; gap: 7px; align-items: center; color: var(--ink); }
.card-k .lamp::before { content: ""; width: 9px; height: 9px; background: var(--c); }
.card > :not(.card-k) { margin-inline: 14px; }
.card-name { font-weight: 700; font-size: 16.5px; line-height: 1.25; margin-block: 4px 0; text-wrap: pretty; }
.card-desc { margin-block: 0; font-size: 14px; color: var(--muted); }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 12px; margin-block: 2px 0; font-size: 13.5px; }
.facts dt { font-family: var(--f-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.facts dd { margin: 0; }
.card-link { margin-top: auto; font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere; }
.tag.yes { background: var(--ok-bg); color: var(--ok-ink); border-color: transparent; }
.tag.no { background: var(--warn-bg); color: var(--warn-ink); border-color: transparent; }
.tag.age { border-color: transparent; color: #111; background: var(--pc, var(--sunk)); }

/* ---------- Formations: a stratigraphic column, youngest on top ---------- */
.column { display: grid; border-top: 2px solid var(--ink); }
.period { display: grid; grid-template-columns: 150px minmax(0, 1fr); border-bottom: 1px solid var(--line); scroll-margin-top: 16px; }
.period-band {
  background: var(--pc); color: #111; padding: 14px; display: flex; flex-direction: column; gap: 4px;
}
.period-name { font-family: var(--f-display); font-stretch: 87.5%; font-weight: 800; font-size: 19px; line-height: 1.05; letter-spacing: -.02em; margin: 0; }
.period-age { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .03em; margin: 0; font-variant-numeric: tabular-nums; }
.period-body { padding: 14px 0 16px 20px; display: grid; gap: 14px; min-width: 0; align-content: start; }
.period-intro { margin: 0; font-size: 14.5px; color: var(--muted); max-width: 72ch; }
.unit { display: grid; gap: 4px; padding-left: 14px; border-left: 3px solid var(--pc); min-width: 0; }
.unit-name { margin: 0; font-weight: 700; font-size: 16.5px; line-height: 1.3; }
.unit-meta { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.unit p { margin: 0; font-size: 14.5px; max-width: 72ch; }
.unit .see { font-size: 13.5px; color: var(--muted); }
.jump { display: flex; flex-wrap: wrap; gap: 4px; }
.jump a {
  text-decoration: none; color: #111; background: var(--pc); padding: 4px 9px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .03em;
}
.jump a:hover { box-shadow: inset 0 -3px 0 rgba(0,0,0,.35); }

/* ---------- Collecting rules ---------- */
.guide { border: 1px solid var(--line); background: var(--surface); display: grid; }
.guide-head { padding: 7px 14px; background: var(--sunk); border-bottom: 1px solid var(--line); font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.guide-body { padding: 18px 16px 20px; display: grid; gap: 16px; }
.guide-step { display: grid; gap: 10px; }
.guide-q { margin: 0; font-family: var(--f-display); font-stretch: 87.5%; font-weight: 750; font-size: 21px; line-height: 1.2; letter-spacing: -.015em; text-wrap: balance; }
.guide-hint { margin: 0; font-size: 14px; color: var(--muted); max-width: 70ch; }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 8px; }
.opt {
  appearance: none; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; color: var(--ink); text-align: left;
  border: 1px solid var(--line); background: var(--bg); padding: 10px 14px; border-radius: 2px; display: grid; gap: 2px; min-width: 0;
}
.opt small { color: var(--muted); font-size: 13px; font-weight: 400; }
.opt:hover { border-color: var(--ink); }
.trail { display: flex; flex-wrap: wrap; gap: 6px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.trail span { border: 1px solid var(--line); padding: 2px 7px; }
.answer { display: grid; gap: 10px; padding: 16px; border-left: 6px solid var(--ac); background: var(--bg); }
.answer h3 { margin: 0; font-family: var(--f-display); font-stretch: 87.5%; font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.answer p, .answer ul { margin: 0; font-size: 15px; max-width: 72ch; }
.answer ul { padding-left: 20px; display: grid; gap: 4px; }
.answer.yes { --ac: var(--ok-ink); }
.answer.no { --ac: var(--warn-ink); }
.answer.maybe { --ac: var(--signal); }
.guide-actions { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.btn { appearance: none; cursor: pointer; font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; border: 1px solid var(--ink); background: var(--surface); color: var(--ink); padding: 7px 12px; }
.btn:hover { background: var(--signal); color: var(--on-signal); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--surface); }
.rules { border-collapse: collapse; width: 100%; min-width: 760px; font-size: 14px; }
.rules th, .rules td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.rules thead th { font-family: var(--f-mono); font-weight: 500; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--sunk); }
.rules tbody th { font-weight: 700; width: 20%; }
.rules tbody th small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.rules td .verdict { display: inline-block; margin-bottom: 4px; }
.prose { display: grid; gap: 12px; max-width: 76ch; }
.prose p, .prose ul { margin: 0; }
.prose ul { padding-left: 20px; display: grid; gap: 6px; }
.callout { border: 1px solid var(--line); border-left: 6px solid var(--signal); background: var(--surface); padding: 14px 16px; display: grid; gap: 6px; max-width: 84ch; }
.callout p { margin: 0; }
.callout b { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; }

@media (max-width: 620px) {
  .period { grid-template-columns: minmax(0, 1fr); }
  .period-band { flex-direction: row; justify-content: space-between; align-items: baseline; padding: 10px 14px; }
  .period-body { padding: 14px 0 16px; }
  .ph { padding: 16px; }
}

/* Slide caption: formation line above the place name */
.cap-unit { margin: 0; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--on-chrome-muted); }
.cap-more { margin: 0; font-size: 13.5px; }
.cap-more a { color: var(--on-chrome); }

.topnav a.rmg-back{font-weight:600;opacity:.85}
.topnav a.rmg-back:hover{opacity:1}
