:root {
  --spruce: #13261F;      /* night forest: header, map, dark bands */
  --spruce-2: #1C352C;
  --spruce-3: #27463A;
  --lichen: #C9D3A4;      /* text on dark */
  --lantern: #F2B33D;     /* pins, buttons, the one bright thing */
  --lantern-2: #FFD27A;
  --mist: #E4EBE6;        /* light reading areas */
  --mist-2: #D3DED7;
  --ink: #15241E;         /* text on light */
  --muted-d: #8FA394;
  --muted-l: #4D6157;
  --red: #E5483B;
  --c-hominid: #D9A05B; --c-canid: #D0633F; --c-winged: #B98ACB; --c-aquatic: #4FB3A9;
  --c-entity: #9CC46B; --c-ufo: #8E8CF0; --c-other: #E0C36A;
  --display: "Zilla Slab", Rockwell, "Roboto Slab", Georgia, serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-sm: 6px; --r-md: 12px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--spruce); color: var(--lichen); font: 400 1.0625rem/1.6 var(--body); }
a { color: var(--lantern); text-underline-offset: 3px; }
a:hover { color: var(--lantern-2); }
:focus-visible { outline: 3px solid var(--lantern); outline-offset: 2px; border-radius: 4px; }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); margin-top: 1.6em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.skip { position: absolute; left: -999px; top: 0; background: var(--lantern); color: var(--spruce); padding: .5em 1em; z-index: 99; }
.skip:focus { left: 8px; top: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.small { font-size: .875rem; }
.muted { color: var(--muted-d); }
.band-mist .muted { color: var(--muted-l); }

/* header */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem clamp(16px, 3vw, 28px); background: rgba(19, 38, 31, .94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--spruce-3); }
.brand { display: flex; align-items: center; gap: .55rem; font: 700 1.3rem var(--display); color: var(--lichen); text-decoration: none; white-space: nowrap; }
.brand:hover { color: #fff; }
.lantern { width: 14px; height: 14px; border-radius: 50%; background: var(--lantern);
  box-shadow: 0 0 0 4px rgba(242, 179, 61, .18), 0 0 18px 4px rgba(242, 179, 61, .55); flex: none; }
.nav { display: flex; gap: .2rem; overflow-x: auto; scrollbar-width: none; }
.nav a { color: var(--lichen); text-decoration: none; font-weight: 600; font-size: .95rem; padding: .45rem .7rem; border-radius: 999px; white-space: nowrap; }
.nav a:hover { background: var(--spruce-2); color: #fff; }
.nav a[aria-current] { color: var(--spruce); background: var(--lichen); }
@media (max-width: 720px) {
  .top { flex-wrap: wrap; padding-bottom: .4rem; }
  .nav { width: 100%; margin: 0 -6px; }
  .nav a { font-size: .9rem; padding: .35rem .6rem; }
}

/* bands */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 28px); }
.band { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.band-dark { background: var(--spruce); color: var(--lichen); }
.band-mist { background: var(--mist); color: var(--ink); }
.band-mist a { color: #7A4E00; }
.band-mist a:hover { color: #A86A00; }
.band-mist h2 { color: var(--spruce); }
.lede { font-size: clamp(1.1rem, 2.2vw, 1.3rem); max-width: 62ch; color: var(--lichen); }
.lede-dark { font-size: 1.15rem; max-width: 62ch; color: var(--muted-l); margin-top: -.3em; }
.crumb { font-size: .9rem; color: var(--muted-d); margin-bottom: .6rem; }
.crumb a { color: var(--muted-d); }
.btn { display: inline-flex; align-items: center; gap: .5rem; font: 700 1rem var(--body); background: var(--lantern); color: var(--spruce) !important;
  border: 0; border-radius: 999px; padding: .7rem 1.25rem; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--lantern-2); }
.btn-ghost { background: transparent; color: var(--lichen) !important; box-shadow: inset 0 0 0 2px var(--lichen); }
.btn-ghost:hover { background: var(--spruce-2); }

/* map hero */
.hero-map { position: relative; height: calc(100svh - 58px); min-height: 520px; background: #0E1D18; }
.hero-map.full { height: calc(100svh - 58px); }
.hero-map .map { position: absolute; inset: 0; }
.map-panel { position: absolute; left: clamp(12px, 3vw, 32px); bottom: clamp(12px, 4vw, 40px); max-width: 430px;
  background: rgba(19, 38, 31, .9); backdrop-filter: blur(6px); border: 1px solid var(--spruce-3); border-radius: var(--r-md);
  padding: 1.2rem 1.3rem 1.3rem; box-shadow: 0 18px 50px rgba(0, 0, 0, .45); }
.map-panel h1 { font-size: clamp(1.7rem, 4.2vw, 2.4rem); color: #F3F1DA; }
.map-panel p { color: var(--lichen); margin-bottom: .9rem; }
.map-panel.compact h1 { font-size: 1.5rem; }
.map-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
@media (max-width: 720px) {
  .hero-map { height: calc(100svh - 96px); }
  .map-panel { right: 12px; left: 12px; bottom: 12px; max-width: none; padding: 1rem; }
  .map-panel h1 { font-size: 1.55rem; }
}
.maplibregl-popup-content { background: var(--spruce); color: var(--lichen); border: 1px solid var(--spruce-3); border-radius: var(--r-md);
  font: 400 .95rem/1.45 var(--body); padding: .8rem 1rem; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.maplibregl-popup-tip { border-top-color: var(--spruce) !important; border-bottom-color: var(--spruce) !important; }
.maplibregl-popup-close-button { color: var(--lichen); font-size: 1.3rem; padding: 0 6px; }
.pop-h { font: 700 1.05rem var(--display); color: #F3F1DA; margin: 0 0 .15rem; }
.pop-kind { display: flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--muted-d); margin-bottom: .4rem; }
.pop-kind .ico { width: 18px; height: 18px; color: var(--c-ufo); --eye: var(--lantern); }
.pop a { font-weight: 600; }
.pop .approx { font-size: .8rem; color: var(--muted-d); }
.map-layers { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; z-index: 2; }
.layer-chip { display: inline-flex; align-items: center; gap: .5rem; font: 600 .85rem var(--body); color: var(--lichen);
  background: rgba(19,38,31,.92); border: 1px solid var(--spruce-3); border-radius: 999px; padding: .4rem .8rem; cursor: pointer; }
.layer-chip .swatch { width: .8rem; height: .8rem; border-radius: 50%; box-shadow: 0 0 8px currentColor; }
.layer-chip[aria-pressed="false"] { opacity: .55; }
.layer-chip[aria-pressed="false"] .swatch { background: transparent !important; box-shadow: inset 0 0 0 2px var(--muted-d); }
.pop-meta { margin: 0 0 .4rem; }
.me-dot { width: 16px; height: 16px; border-radius: 50%; background: #7FD3FF; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(127,211,255,.3); }
@media (max-width: 720px) { .map-layers { top: 8px; right: 8px; } .layer-chip { font-size: .78rem; padding: .3rem .6rem; } }
.maplibregl-ctrl-attrib { font-size: 11px; }

/* creature badges */
.ico { width: 100%; height: 100%; display: block; }
.art-ico { background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.ico-inline { display: inline-block; width: 1.3em; height: 1.3em; vertical-align: -.3em; margin-right: .2em; color: var(--c-ufo); }
.ico-lg { width: 64px; height: 64px; color: var(--lichen); --bg: var(--spruce); --eye: var(--lantern); margin-bottom: .6rem; }
.badge { display: inline-grid; place-items: center; border-radius: 50%; background: var(--spruce); flex: none;
  --bg: var(--spruce); --eye: var(--lantern); --eye-red: #FF5A44; }
.badge .ico { width: 70%; height: 70%; }
.badge-md { width: 64px; height: 64px; }
.badge-xl { width: clamp(110px, 18vw, 168px); height: clamp(110px, 18vw, 168px); box-shadow: 0 0 0 6px var(--spruce-2), 0 0 60px rgba(242,179,61,.18); }
.cat-hominid .ico, .badge.cat-hominid { color: var(--c-hominid); }
.cat-canid .ico, .badge.cat-canid { color: var(--c-canid); }
.cat-winged .ico, .badge.cat-winged { color: var(--c-winged); }
.cat-aquatic .ico, .badge.cat-aquatic { color: var(--c-aquatic); }
.cat-entity .ico, .badge.cat-entity { color: var(--c-entity); }
.cat-ufo .ico, .badge.cat-ufo { color: var(--c-ufo); }
.cat-other .ico, .badge.cat-other { color: var(--c-other); }
.dot { display: inline-block; width: .7em; height: .7em; border-radius: 50%; margin-right: .45em; vertical-align: .05em; }
.dot.cat-hominid { background: var(--c-hominid); } .dot.cat-canid { background: var(--c-canid); } .dot.cat-winged { background: var(--c-winged); }
.dot.cat-aquatic { background: var(--c-aquatic); } .dot.cat-entity { background: var(--c-entity); } .dot.cat-ufo { background: var(--c-ufo); }
.dot.cat-other { background: var(--c-other); }

/* creature list */
.crit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .9rem; margin: 1rem 0 1.4rem; }
.crit { display: flex; gap: 1rem; align-items: flex-start; padding: .9rem 1rem; background: #fff; border-radius: var(--r-md);
  color: var(--ink) !important; text-decoration: none; border: 1px solid var(--mist-2); transition: border-color .15s, transform .15s; }
.crit:hover { border-color: var(--spruce); transform: translateY(-2px); }
.crit-txt { display: flex; flex-direction: column; min-width: 0; }
.crit-name { font: 700 1.2rem/1.2 var(--display); color: var(--spruce); }
.aka { font-size: .82rem; color: var(--muted-l); font-style: italic; margin: .1rem 0 .3rem; }
.crit-sum { font-size: .93rem; line-height: 1.45; }
.band-dark .crit { background: var(--spruce-2); border-color: var(--spruce-3); color: var(--lichen) !important; }
.band-dark .crit-name { color: #F3F1DA; }
.cat-h { display: flex; align-items: center; margin-bottom: .15em; }
.cat-blurb { color: var(--muted-l); margin-bottom: .2rem; }
.index-head .lede { margin-bottom: 1.2rem; }
.search-row input { width: 100%; max-width: 560px; font: 400 1.1rem var(--body); padding: .85rem 1.1rem; border-radius: 999px;
  border: 2px solid var(--spruce-3); background: var(--spruce-2); color: #F3F1DA; }
.search-row input::placeholder { color: var(--muted-d); }
.search-row input:focus { outline: none; border-color: var(--lantern); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.chip { font: 600 .9rem var(--body); color: var(--lichen); background: var(--spruce-2); border: 1px solid var(--spruce-3);
  border-radius: 999px; padding: .4rem .85rem; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--lichen); color: var(--spruce); border-color: var(--lichen); }
.empty { font-size: 1.1rem; padding: 2rem 0; }

/* creature page */
.creature-head-in { display: flex; gap: clamp(1.2rem, 4vw, 2.6rem); align-items: center; }
.creature-head h1 { font-size: clamp(2.3rem, 6vw, 4rem); color: #F3F1DA; margin-bottom: .25rem; }
.aka-line { font-style: italic; color: var(--lantern-2); margin-bottom: .7rem; }
@media (max-width: 600px) { .creature-head-in { flex-direction: column; align-items: flex-start; } }
.creature-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(1.5rem, 4vw, 3.5rem); }
@media (max-width: 860px) { .creature-body { grid-template-columns: 1fr; } .facts { order: -1; } }
.prose { max-width: 68ch; font-size: 1.075rem; line-height: 1.7; }
.prose h2:first-child { margin-top: 0; }
.facts { background: #fff; border-radius: var(--r-md); padding: 1.1rem 1.2rem; align-self: start; border: 1px solid var(--mist-2); position: sticky; top: 76px; }
.facts dl { margin: 0; }
.facts div { padding: .55rem 0; border-bottom: 1px solid var(--mist); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-size: .82rem; font-weight: 700; color: var(--muted-l); }
.facts dd { margin: .1rem 0 0; font-size: .97rem; line-height: 1.45; }
.facts .more { margin: .8rem 0 0; font-weight: 600; }
.signs { list-style: none; padding: 0; margin: 0 0 1em; }
.signs li { position: relative; padding: .45rem 0 .45rem 1.9rem; border-bottom: 1px dashed var(--mist-2); }
.signs li::before { content: ""; position: absolute; left: .2rem; top: .95rem; width: .75rem; height: .75rem; border-radius: 50%;
  background: var(--lantern); box-shadow: 0 0 0 3px rgba(242, 179, 61, .25); }
.timeline { list-style: none; padding: 0; margin: 0 0 1em; border-left: 3px solid var(--mist-2); }
.timeline li { display: grid; grid-template-columns: 5.5rem 1fr; gap: .8rem; padding: .55rem 0 .55rem 1rem; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 1rem; width: 11px; height: 11px; border-radius: 50%; background: var(--spruce); }
.timeline .yr { font: 700 1rem var(--display); color: var(--spruce); }
.timeline.cases li { grid-template-columns: 9rem 1fr; padding-top: .35rem; padding-bottom: .35rem; }
.timeline.cases .yr { font: 600 .92rem var(--body); color: var(--muted-l); }
.callout { background: #fff; border-left: 4px solid var(--c-ufo); padding: .8rem 1rem; border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.rel-h { margin-top: 0; padding-top: 1rem; }

/* UFO files */
.bars { display: flex; align-items: flex-end; gap: 3px; height: 220px; padding: 1.4rem 0 1.6rem; margin: .5rem 0 1rem; }
.bar { flex: 1; height: var(--h); min-height: 2px; background: var(--spruce); border-radius: 3px 3px 0 0; position: relative; }
.bar:hover { background: #7A4E00; }
.bar-n { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); font-size: .7rem; color: var(--muted-l); padding-bottom: 2px; white-space: nowrap; }
.bar-y { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); font-size: .72rem; color: var(--muted-l); padding-top: 4px; }
@media (max-width: 720px) { .bar-n { display: none; } .bar:nth-child(even) .bar-y { display: none; } }
.cols { columns: 4 200px; padding: 0; list-style: none; margin: 0 0 1.5rem; }
.cols li { padding: .2rem 0; break-inside: avoid; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.split h2 { margin-top: 0; color: #F3F1DA; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

/* military */
.mil-list li { grid-template-columns: 4.5rem 1fr; }
.mil h3 { margin: 0 0 .1rem; color: var(--spruce); }
.mil p { margin: .2rem 0 .5rem; max-width: 70ch; }
.src { font-size: .85rem; }
.src a { margin-right: .7rem; }

/* footer */
.foot { background: #0E1D18; color: var(--muted-d); padding: 2.5rem 0 3rem; font-size: .95rem; }
.foot-in { max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 28px); }
.foot-brand { display: flex; align-items: center; gap: .5rem; font: 700 1.15rem var(--display); color: var(--lichen); }
.foot p { max-width: 70ch; }
.foot-links a { margin-right: 1.1rem; display: inline-block; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.band .wrap > :first-child, .band .wrap > .cat-group:first-child > h2 { margin-top: 0; }

/* Home: search-first hero, browse tiles, framed map */
.home-hero { padding: clamp(2rem, 6vw, 4rem) 0 1.5rem; background: radial-gradient(120% 90% at 85% 0%, #1E3A2F 0%, var(--spruce) 60%); }
.home-hero h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); color: #F3F1E4; max-width: 18ch; }
.search { position: relative; max-width: 40rem; margin: 1.4rem 0 1.6rem; }
.search input { width: 100%; box-sizing: border-box; font: 500 1.1rem var(--body); padding: .95rem 1.1rem .95rem 3rem; border-radius: 14px; border: 2px solid #3A5A4C;
  background: #0E1D18 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9D3A4' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m15.5 15.5 5 5'/%3E%3C/svg%3E") no-repeat 1rem center / 1.3rem;
  color: #F3F1E4; }
.search input:focus { border-color: var(--lantern); outline: none; }
.search input::placeholder { color: #8FA394; }
.search-results { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); list-style: none; margin: 0; padding: .35rem; background: #F3F1E4; border-radius: 14px; box-shadow: 0 18px 40px rgba(0,0,0,.45); max-height: 60vh; overflow: auto; }
.search-results a { display: flex; align-items: center; gap: .75rem; padding: .55rem .7rem; border-radius: 10px; color: var(--spruce); text-decoration: none; }
.search-results a:hover, .search-results a.on { background: var(--mist-2); }
.search-results b { display: block; font-weight: 700; }
.search-results small { color: #5A6B61; }
.search-results .none { padding: .8rem; color: #3D4A43; }
.mask-ico { flex: none; width: 30px; height: 30px; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.search-results .cat-hominid .mask-ico { color: #A86A1E; } .search-results .cat-canid .mask-ico { color: #B4472A; }
.search-results .cat-winged .mask-ico { color: #8A5C9E; } .search-results .cat-aquatic .mask-ico { color: #23827A; }
.search-results .cat-entity .mask-ico { color: #5D8A2E; } .search-results .cat-ufo .mask-ico { color: #5B58C9; }
.search-results .cat-other .mask-ico { color: #9A7E1C; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .6rem; }
.tile { display: flex; align-items: center; gap: .6rem; padding: .75rem .85rem; border-radius: 12px; background: #1A3229; color: #F3F1E4 !important; text-decoration: none; font-weight: 600; line-height: 1.2; border: 1px solid #2B4A3D; }
.tile .ico { width: 34px; height: 34px; flex: none; }
.tile:hover { background: #22402F; border-color: var(--lantern); }
.tile-mil .ico { color: #7FD3FF; }

.map-block { padding: 1.5rem 0 0; background: var(--spruce); }
.map-block-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem; }
.map-block-head h2 { margin: 0; color: #F3F1E4; }
.map-block-actions { display: flex; gap: .5rem; }
.btn-sm { font-size: .9rem; padding: .45rem .9rem; }
.map-frame { position: relative; height: min(68vh, 640px); min-height: 380px; margin-top: .8rem; }
.map-frame .map { position: absolute; inset: 0; }
.map-full { display: flex; flex-direction: column; height: calc(100svh - 58px); }
.map-full-bar { padding: .6rem 1rem; display: flex; gap: .6rem; align-items: flex-start; background: var(--spruce); }
.map-full-bar .filters { flex: 1; min-width: 0; }
.map-frame.full { flex: 1; height: auto; min-height: 0; margin: 0; }

.filters { margin-top: .9rem; }
.tchips { display: flex; flex-wrap: wrap; gap: .4rem; }
.tchip { font: 600 .92rem var(--body); padding: .4rem .85rem; border-radius: 999px; border: 1.5px solid #3A5A4C; background: transparent; color: var(--lichen); cursor: pointer; }
.tchip[aria-pressed="true"] { background: var(--lichen); color: var(--spruce); border-color: var(--lichen); }
.cchips { display: flex; gap: .4rem; overflow-x: auto; padding: .55rem 0 .4rem; scrollbar-width: thin; scroll-snap-type: x proximity; }
.cchip { flex: none; scroll-snap-align: start; display: flex; align-items: center; gap: .4rem; font: 600 .88rem var(--body); padding: .3rem .75rem .3rem .35rem; border-radius: 999px; border: 1.5px solid #2B4A3D; background: #1A3229; color: #E8ECDD; cursor: pointer; white-space: nowrap; }
.cchip .ico { width: 26px; height: 26px; }
.cchip[aria-pressed="true"] { border-color: var(--lantern); background: #2A3A22; }
.cchip.dim { opacity: .55; }
.cchip:hover { border-color: var(--lichen); }

.near, .this-month { margin-bottom: 2.2rem; }
.near small { color: var(--muted-l); }
@media (max-width: 600px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile { font-size: .92rem; padding: .6rem .65rem; }
  .map-frame { height: 65vh; }
  .map-full-bar { padding: .5rem .6rem; }
  .timeline.cases li { grid-template-columns: 6.5rem 1fr; }
}
@media (min-width: 1000px) { .tiles { grid-template-columns: repeat(7, 1fr); } .tile { flex-direction: column; align-items: flex-start; } }
@media (max-width: 600px) { .tile-mil { grid-column: 1 / -1; } .map-frame { max-height: 560px; } .search input { font-size: 1rem; } }

/* Creature pages: what-next sidebar and the "Seen one?" panel */
.side { align-self: start; display: grid; gap: 1rem; }
.side .facts { position: static; }
.next-card { display: flex; gap: .8rem; align-items: center; padding: .9rem 1rem; border-radius: var(--r-md); background: var(--spruce); color: #F3F1E4 !important; text-decoration: none; }
.next-card .ico { width: 44px; height: 44px; flex: none; }
.next-card b { display: block; font: 700 1.05rem var(--display); }
.next-card small { color: var(--lichen); font-size: .85rem; }
.next-card:hover { outline: 2px solid var(--lantern); }
.next-block { background: #fff; border: 1px solid var(--mist-2); border-radius: var(--r-md); padding: .9rem 1.1rem; }
.next-block h3 { font-size: 1.05rem; margin: 0 0 .4rem; color: var(--spruce); }
.next-list { list-style: none; margin: 0; padding: 0; }
.next-list li { padding: .45rem 0; border-top: 1px solid var(--mist); }
.next-list li:first-child { border-top: 0; }
.next-list a { font-weight: 600; }
.next-list small { display: block; color: var(--muted-l); font-size: .84rem; }
.seen-box { display: flex; gap: 1.1rem; align-items: flex-start; margin-top: 2.2rem; padding: 1.3rem 1.4rem; border-radius: var(--r-md); background: var(--spruce); color: var(--lichen); }
.seen-box > .ico { width: 64px; height: 64px; flex: none; }
.seen-box h2 { color: #F3F1E4 !important; margin: 0 0 .3rem; }
.seen-box p { margin: 0 0 .8rem; }
.seen-box a:not(.btn) { color: var(--lantern); }
.seen-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
@media (max-width: 600px) { .seen-box { flex-direction: column; } .seen-box > .ico { width: 48px; height: 48px; } }
.brand, .foot-brand { align-items: baseline; gap: 10px; }
/* Pines sit on the text baseline; mark is ~1.2x the wordmark's height so the eyes land at cap middle */
.brand .mark, .foot-brand .mark { height: 1.05em; width: auto; flex: none; align-self: baseline; }

/* Map popups: maplibre-gl.css loads after this file, so beat its white defaults with higher specificity */
.maplibregl-map .maplibregl-popup-content { background: var(--spruce); color: var(--lichen); border: 1px solid #3A5A4C; border-radius: 12px;
  font: 400 .95rem/1.45 var(--body); padding: .85rem 2.2rem .85rem 1rem; box-shadow: 0 12px 32px rgba(0,0,0,.55); }
.maplibregl-map .maplibregl-popup-anchor-bottom .maplibregl-popup-tip, .maplibregl-map .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip,
.maplibregl-map .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip { border-top-color: var(--spruce); }
.maplibregl-map .maplibregl-popup-anchor-top .maplibregl-popup-tip, .maplibregl-map .maplibregl-popup-anchor-top-left .maplibregl-popup-tip,
.maplibregl-map .maplibregl-popup-anchor-top-right .maplibregl-popup-tip { border-bottom-color: var(--spruce); }
.maplibregl-map .maplibregl-popup-anchor-left .maplibregl-popup-tip { border-right-color: var(--spruce); }
.maplibregl-map .maplibregl-popup-anchor-right .maplibregl-popup-tip { border-left-color: var(--spruce); }
.maplibregl-map .maplibregl-popup-close-button { color: #F3F1E4; font-size: 1.5rem; line-height: 1; width: 36px; height: 36px; top: 2px; right: 2px; border-radius: 8px; }
.maplibregl-map .maplibregl-popup-close-button:hover { background: #22402F; color: var(--lantern); }
.maplibregl-map .pop-h { color: #F3F1E4; font-size: 1.1rem; }
.maplibregl-map .pop-kind { color: #B7C6B9; font-weight: 600; }
.maplibregl-map .pop-meta { color: #D5DEC9; }
.maplibregl-map .pop a { color: var(--lantern); }
/* Phones: popup becomes a bottom sheet so it doesn't cover the pin */
@media (max-width: 600px) {
  .maplibregl-map .maplibregl-popup { transform: none !important; top: auto !important; left: 8px !important; right: 8px; bottom: 8px; max-width: none !important; }
  .maplibregl-map .maplibregl-popup-tip { display: none; }
  .maplibregl-map .maplibregl-popup-content { border-radius: 14px; padding-bottom: 1rem; }
}

/* Creature chips: fade at the right edge so it's clear the row scrolls; no visible scrollbar */
.cchips { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent);
  padding-right: 56px; scroll-padding-inline: 0 56px; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; }
.cchips::-webkit-scrollbar { display: none; }

/* Full-screen map page: header + filter bar + map exactly fill the screen, so nothing scrolls under the sticky header */
body.mapper { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
body.mapper main { flex: 1; min-height: 0; display: flex; }
body.mapper .foot { display: none; }
body.mapper .map-full { flex: 1; height: auto; min-height: 0; width: 100%; }
.map-full-bar { position: relative; display: block; box-shadow: 0 6px 14px rgba(0,0,0,.35); z-index: 3; }
.map-full-bar .tchips { padding-right: 7.5rem; }
.map-full-bar [data-locate] { position: absolute; top: .6rem; right: 1rem; }
@media (max-width: 600px) {
  .map-full-bar [data-locate] { right: .6rem; top: .5rem; }
  .map-full-bar .tchips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-right: 0; margin-right: 6.6rem;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
  .map-full-bar .tchips::-webkit-scrollbar { display: none; }
  .map-full-bar .tchip { flex: none; }
  .maplibregl-map .maplibregl-popup { bottom: 34px; }
}
@media (prefers-reduced-motion: reduce) { .cchips { scroll-behavior: auto; } }
.map-frame.full { max-height: none; }
.ufo-more { margin: 1.4rem 0 1.4rem; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)) !important; }
/* Header: the wordmark never shrinks; with 9 nav items the nav drops to its own row below ~1100px */
.brand { flex: none; }
.nav { min-width: 0; }
@media (max-width: 1100px) {
  .top { flex-wrap: wrap; padding-bottom: .4rem; row-gap: .3rem; }
  .nav { width: 100%; margin: 0 -6px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); padding-right: 28px; }
}

/* Park-poster creature art: dark silhouette on a disc of the category colour */
.badge.art { background: var(--c-other); box-shadow: inset 0 0 0 3px rgba(19,38,31,.35); }
.badge.art img, .mini.art img { width: 82%; height: 82%; object-fit: contain; display: block; }
.mini.art { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; flex: none; background: var(--c-other); }
.badge.art.cat-hominid, .mini.art.cat-hominid { background: var(--c-hominid); }
.badge.art.cat-canid, .mini.art.cat-canid { background: var(--c-canid); }
.badge.art.cat-winged, .mini.art.cat-winged { background: var(--c-winged); }
.badge.art.cat-aquatic, .mini.art.cat-aquatic { background: var(--c-aquatic); }
.badge.art.cat-entity, .mini.art.cat-entity { background: var(--c-entity); }
.badge.art.cat-ufo, .mini.art.cat-ufo { background: var(--c-ufo); }
.badge-xl.art { box-shadow: 0 0 0 6px var(--spruce-2), 0 0 60px rgba(242,179,61,.18); }
.poster { width: clamp(150px, 24vw, 230px); height: auto; flex: none; filter: drop-shadow(0 12px 30px rgba(0,0,0,.45)); }
