* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: #f0f6f3; color: #172d28; font: 1rem/1.55 system-ui, sans-serif; }
a { color: #155d49; text-underline-offset: .17em; }
.top, footer { padding: 18px max(5vw, calc((100vw - 1080px) / 2)); background: #12382e; color: white; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; }
.top nav, footer { display: flex; flex-wrap: wrap; gap: 16px; }
.top a, footer a { color: #ecfff2; }
footer { justify-content: flex-start; }
main { max-width: 1120px; margin: auto; padding: 32px 20px 64px; }
.intro { overflow: hidden; isolation: isolate; position: relative; padding: clamp(24px, 6vw, 70px); border-radius: 28px; background: #143c31; color: white; }
.intro::after { content: ''; position: absolute; z-index: -1; inset: 0; background: repeating-radial-gradient(ellipse at 83% 102%, transparent 0 22px, #a8e2b93d 23px 24px, transparent 25px 36px), linear-gradient(115deg, #143c31 32%, #2a664a); mask-image: linear-gradient(90deg, transparent 26%, black); }
.intro a { color: #c6efb7; font-weight: 700; }
.intro h1 { font-size: clamp(3rem, 8vw, 6.5rem); letter-spacing: -.075em; line-height: .92; margin: 16px 0 22px; }
.intro p { max-width: 49ch; margin-bottom: 0; font-size: 1.1rem; }
h2, h3 { line-height: 1.2; margin: 0; }
h2 { font-size: clamp(1.45rem, 4vw, 2.15rem); letter-spacing: -.04em; }
p { margin: .65rem 0; }
.card { min-width: 0; background: white; border: 1px solid #cbdcd3; border-radius: 18px; padding: clamp(14px, 3vw, 24px); }
.finder, .timeline, #explorer, .sources { margin-top: 24px; }
label { display: block; margin: 12px 0 5px; font-weight: 700; }
.row { display: flex; flex-wrap: wrap; gap: 8px; }
input, select, button { font: inherit; border-radius: 8px; min-height: 44px; }
input, select { padding: 9px 12px; border: 1px solid #648276; background: #fff; color: #172d28; }
input { flex: 1 1 220px; min-width: 0; }
select { max-width: 100%; }
button { padding: 9px 16px; border: 1px solid transparent; font-weight: 700; background: #154938; color: #fff; cursor: pointer; }
.secondary { background: white; border-color: #8aa99a; color: #164b3a; }
:focus-visible { outline: 3px solid #287d6c; outline-offset: 4px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); gap: 8px; }
.steps button { display: grid; align-content: center; text-align: left; background: white; color: #174d3b; border: 1px solid #aac4b5; }
.steps button span { font-size: .875rem; font-weight: 500; }
.steps [aria-pressed="true"] { background: #154938; color: white; border-color: #154938; }
.section-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 0 0 14px; }
.eyebrow { font-weight: 750; color: #356352; margin: 0 0 5px; }
.share p { margin: 0; }
.finding { background: #e1f1e4; border-left: 4px solid #398163; border-radius: 10px; padding: 14px 17px; margin-bottom: 14px; }
.finding strong { font-size: 1.2rem; }
.finding p { margin-bottom: 0; }
.maps, .evidence { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.evidence { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 14px 0; }
figure { margin: 0; }
figcaption { font-weight: 750; margin-bottom: 10px; }
canvas { width: 100%; height: auto; background: #ced6d6; border-radius: 10px; display: block; }
.muted { color: #405b52; font-size: .925rem; }
.legend { display: flex; flex-wrap: wrap; gap: 5px 12px; margin-top: 8px; font-size: .875rem; }
.legend span { display: inline-flex; align-items: center; gap: 4px; }
.legend i { width: .9em; height: .9em; border: 1px solid #647d75; border-radius: 3px; }
.fact { background: #e7f2e8; }
details { margin-top: 14px; }
summary { font-weight: 750; cursor: pointer; }
details img { width: 100%; height: auto; background: #d4e4e3; }
.sources li, .fossils li { margin-bottom: .55rem; }
.fossils ul:empty { display: none; }
.regional-note { margin-top: 14px; }
@media (max-width: 700px) { .evidence { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .maps { grid-template-columns: 1fr; } main { padding: 20px 14px 48px; } }
.top, footer { background: #e8f1ea; color: #234537; }
.top a, footer a { color: #174a39; }
.map-mode { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.map-mode button { background: #fff; color: #174d3b; border-color: #aac4b5; font-size: .9rem; padding: 7px 11px; }
.map-mode button[aria-pressed="true"] { background: #154938; color: #fff; border-color: #154938; }
