/* Howardites — shared styles. Clean white pages, black text, ember-orange accents. */
:root {
  /* --ink is the page background and --paper the text colour. */
  --ink: #ffffff;
  --panel: #f7f5f2;
  --raised: #efebe5;
  --line: #ddd6cc;
  --mist: #5c554d;
  --paper: #111111;
  /* Accent: spaceship grey (named "ember" for history). Orange is kept for meteorites and fireballs. */
  --ember: #2b3442;
  --ember-soft: #2b3442;
  --holo: #64748b;
  --steel: #334155;
  --rock: #ea580c;
  --good: #2e7d32;
  --bad: #c62828;
  --sky: #65a30d; /* olivine green for stony-irons (no blue on the site) */
  --radius: 18px;
  --display: "Michroma", "Eurostile", "Arial Narrow", Arial, sans-serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --max: 1180px;
  --header-h: 64px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  background-image:
    radial-gradient(900px 600px at 85% -10%, rgba(100, 116, 139, .16), transparent 62%),
    radial-gradient(800px 600px at -10% 45%, rgba(100, 116, 139, .22), transparent 60%),
    radial-gradient(700px 500px at 70% 110%, rgba(100, 116, 139, .08), transparent 60%),
    linear-gradient(180deg, #f3f6f9, #ffffff 55%);
  background-attachment: fixed;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: var(--ember-soft); text-underline-offset: 3px; }
a:hover { color: var(--paper); }
h1, h2, .display { font-family: var(--display); font-weight: 400; line-height: 1.22; margin: 0 0 .5em; letter-spacing: 0; }
h3 { font-family: var(--sans); font-weight: 600; line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(1.7rem, 4.4vw, 2.75rem); }
h2 { font-size: clamp(1.25rem, 2.8vw, 1.7rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.muted { color: var(--mist); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--ember-soft); font-weight: 600; margin-bottom: .6rem; display: block; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
main { flex: 1; }
.section { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--line); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ember); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--ember-soft); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .62);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border-bottom: 1px solid rgba(43, 52, 66, .18);
  box-shadow: 0 1px 0 rgba(100, 116, 139, .55), 0 8px 22px -14px rgba(100, 116, 139, .9);
  padding-top: env(safe-area-inset-top);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--paper); font-family: var(--display); font-size: 1.12rem; font-weight: 400; letter-spacing: .02em; }
.brand svg { width: 30px; height: 30px; flex: none; }
.nav { margin-left: auto; display: flex; gap: 4px; order: 1; }
.sound-btn { order: 2; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(17,17,17,.1); background: rgba(255,255,255,.6); color: var(--paper); cursor: pointer; }
.sound-btn svg { width: 20px; height: 20px; }
.sound-btn[aria-pressed="true"] .mute, .sound-btn[aria-pressed="false"] .wave { display: none; }
.sound-btn[aria-pressed="false"] { color: var(--mist); }
.menu-btn { order: 3; }
.nav a { color: var(--paper); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: .97rem; }
.nav a:hover { background: var(--raised); }
.nav a[aria-current="page"] { background: var(--ember); color: #fff; font-weight: 600; }
.menu-btn { display: none; background: var(--raised); border: 1px solid var(--line); color: var(--paper); border-radius: 999px; padding: 8px 14px; font: inherit; }
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; align-items: center; gap: 8px; }
  .sound-btn { margin-left: auto; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: calc(var(--header-h) + env(safe-area-inset-top)); flex-direction: column; background: var(--ink); border-bottom: 1px solid var(--line); padding: 10px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 1.05rem; }
}

/* ---------- Footer ---------- */
.site-footer { margin-top: 48px; padding: 18px 0 calc(18px + env(safe-area-inset-bottom)); color: var(--mist); font-size: .86rem;
  background: rgba(255, 255, 255, .55); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-top: 1px solid rgba(17, 17, 17, .07); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.site-footer .brand { font-size: 1.05rem; }
.site-footer .brand svg { width: 22px; height: 22px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.site-footer a { color: var(--mist); text-decoration: none; }
.site-footer a:hover { color: var(--paper); text-decoration: underline; }
.site-footer .fine { margin: 0 0 0 auto; }
.site-footer [data-status]:empty { display: none; }
@media (max-width: 760px) { .site-footer .fine { margin-left: 0; width: 100%; } }

/* ---------- Buttons, chips, inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--raised); color: var(--paper);
  font: inherit; font-weight: 500; text-decoration: none; cursor: pointer;
}
.btn:hover { border-color: var(--mist); color: var(--paper); }
.btn.primary { background: var(--ember); border-color: var(--ember); color: #fff; font-weight: 600; }
.btn.primary:hover { background: var(--ember-soft); }
.btn.small { min-height: 38px; padding: 0 14px; font-size: .92rem; }
.btn[disabled] { opacity: .55; cursor: default; }
.btn svg { width: 18px; height: 18px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--paper); font: inherit; font-size: .95rem; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ember); border-color: var(--ember); color: #fff; font-weight: 600; }
.field { width: 100%; min-height: 46px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); color: var(--paper); font: inherit; }
.field::placeholder { color: #857d74; }
select.field { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--mist) 50%), linear-gradient(135deg, var(--mist) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
textarea.field { padding: 12px 16px; min-height: 120px; }
label.lbl { display: block; font-size: .9rem; color: var(--mist); margin-bottom: 6px; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 18px; }
.grid.cols-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.glass, .card {
  background: rgba(255, 255, 255, .58);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, .05), 0 12px 40px -18px rgba(40, 24, 10, .22);
}
.card { border-radius: var(--radius); padding: 22px; }
.card h3 { margin-bottom: .35em; }
a.card { text-decoration: none; color: var(--paper); display: block; transition: transform .15s ease, border-color .15s ease; }
a.card:hover { transform: translateY(-2px); border-color: var(--ember); }
.card .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--raised); color: var(--ember-soft); margin-bottom: 14px; font-size: 1.4rem; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; letter-spacing: .03em; padding: 3px 10px; border-radius: 999px; background: var(--raised); color: var(--mist); border: 1px solid var(--line); }
.badge.new { background: rgba(100, 116, 139, .12); color: var(--ember-soft); border-color: rgba(43, 52, 66, .4); }
.badge.ok { color: var(--good); }
.badge.warn { color: #b45309; }
.stat { font-family: var(--display); font-size: 1.6rem; line-height: 1.1; }
.stat-label { color: var(--mist); font-size: .9rem; }
.notice { border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; background: var(--panel); color: var(--mist); font-size: .95rem; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 64px; border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(1200px 500px at 85% -10%, rgba(232, 93, 4, .12), transparent 60%), radial-gradient(800px 400px at 0% 110%, rgba(100, 116, 139, .10), transparent 60%); pointer-events: none; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .7; pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.hero .lead { font-size: 1.2rem; color: var(--mist); max-width: 36ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding: 48px 0; } }

/* ---------- Page header ---------- */
.page-head { padding: 44px 0 26px; border-bottom: 1px solid var(--line); }
.page-head p { color: var(--mist); max-width: 62ch; font-size: 1.08rem; margin: 0; }

/* ---------- Tables / definition grids ---------- */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; margin: 18px 0; }
.facts dt { color: var(--mist); font-size: .88rem; }
.facts dd { margin: 0; font-size: 1.05rem; overflow-wrap: anywhere; }

/* ---------- Utility ---------- */
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.stack > * + * { margin-top: 14px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.list-reset { list-style: none; margin: 0; padding: 0; }
.tabular { font-variant-numeric: tabular-nums; }
hr.soft { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--ember); animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table.data { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
table.data th, table.data td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
table.data th { color: var(--mist); font-weight: 500; background: var(--panel); position: sticky; top: 0; }
table.data tr:last-child td { border-bottom: 0; }

/* ---------- Home ---------- */
#motd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 28px; align-items: center; }
.motd-photo { aspect-ratio: 4 / 3; border-radius: var(--radius); background: var(--raised); border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; position: relative; }
.motd-photo img { width: 100%; height: 100%; object-fit: cover; }
.motd-photo small { position: absolute; left: 10px; bottom: 8px; background: rgba(255,255,255,.88); padding: 2px 8px; border-radius: 6px; }
@media (max-width: 760px) { #motd { grid-template-columns: 1fr; } }
.map-box { height: 420px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--raised); position: relative; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- Learn ---------- */
details.myth summary { cursor: pointer; list-style: none; display: flex; gap: 10px; align-items: baseline; }
details.myth summary::-webkit-details-marker { display: none; }
details.myth[open] { border-color: var(--ember); }
.timeline { display: grid; gap: 4px; margin-top: 16px; position: relative; }
.tl { display: grid; grid-template-columns: 90px 1fr; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.tl-year { font-family: var(--display); font-size: 1.6rem; color: var(--ember-soft); }
.tl h3 { margin: 0 0 .2em; font-size: 1.15rem; }
.tl p { margin: 0; }
@media (max-width: 560px) { .tl { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Ads ---------- */
.ad-slot { margin: 28px auto; max-width: var(--max); padding: 0 20px; min-height: 0; }
.ad-label { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mist); margin-bottom: 6px; }
.grid.fixed-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid.fixed-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid.fixed-3 { grid-template-columns: 1fr; } }
.card .icon svg { width: 24px; height: 24px; }
.mini-list li { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.mini-list li span { color: var(--mist); font-size: .9rem; text-align: right; white-space: nowrap; }
.photo-fallback { display: grid; place-items: center; gap: 10px; text-align: center; padding: 20px; color: var(--mist); }
.photo-fallback img { width: 120px; height: 120px; opacity: .9; }

/* ---------- SEO / browse pages ---------- */
.seo-page { padding-top: 28px; padding-bottom: 40px; }
.seo-article { max-width: 820px; }
.seo-page .lead { font-size: 1.15rem; color: var(--paper); max-width: 70ch; }
.crumbs { font-size: .9rem; color: var(--mist); margin-bottom: 18px; }
.crumbs a { color: var(--mist); }
.seo-page h2 { margin-top: 32px; font-size: 1.6rem; }
.link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.az-list, .col-list { columns: 4 200px; padding: 0; list-style: none; margin: 12px 0; }
.az-list li, .col-list li { break-inside: avoid; padding: 3px 0; }
.az-nav a { display: inline-block; min-width: 34px; text-align: center; padding: 6px 4px; margin: 2px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; }
.source-note { margin-top: 30px; font-size: .9rem; }

/* ---------- Home: hero with a fireball behind frosted glass ---------- */
.home-hero { position: relative; overflow: hidden; padding: clamp(48px, 9vw, 110px) 0 clamp(36px, 6vw, 70px); }
.fireball { position: absolute; inset: 0; pointer-events: none; }
.fireball .trail, .fireball .head { position: absolute; top: 34%; left: 58%; transform: rotate(24deg); transform-origin: right center; }
.fireball .trail { width: min(78vw, 980px); height: 46px; margin-left: calc(-1 * min(78vw, 980px)); border-radius: 50px;
  background: linear-gradient(90deg, rgba(234, 88, 12, 0), rgba(234, 88, 12, .35) 55%, rgba(251, 146, 60, .9) 88%, #fff7ed);
  filter: blur(6px); animation: fireball-in 1.6s cubic-bezier(.2, .7, .2, 1) both; }
.fireball .head { width: 120px; height: 120px; margin: -37px 0 0 -60px; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 14%, rgba(253, 186, 116, .95) 30%, rgba(234, 88, 12, .55) 55%, rgba(234, 88, 12, 0) 72%);
  animation: fireball-in 1.6s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes fireball-in { from { opacity: 0; translate: -38vw -18vw; } to { opacity: 1; translate: 0 0; } }
.home-hero .wrap { position: relative; }
.hero-glass { max-width: 760px; padding: clamp(26px, 5vw, 52px); border-radius: 30px; background: rgba(255, 255, 255, .45); }
.hero-glass h1 { font-size: clamp(1.8rem, 5vw, 3.3rem); line-height: 1.16; margin-bottom: .45em; max-width: 17ch; }
.hero-glass .lead { font-size: clamp(1.05rem, 2.2vw, 1.22rem); color: #3d3934; max-width: 46ch; margin: 0 0 26px; }
.hero-search { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 18px; border-radius: 999px; background: rgba(255, 255, 255, .85); border: 1px solid rgba(17, 17, 17, .1); box-shadow: 0 6px 24px -10px rgba(40, 24, 10, .25); }
.hero-search svg { width: 20px; height: 20px; color: var(--mist); flex: none; }
.hero-search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 1.05rem; color: var(--paper); padding: 10px 4px; outline: none; }
.hero-search:focus-within { outline: 3px solid var(--ember-soft); outline-offset: 2px; }
.hero-meta { margin: 16px 0 0; color: var(--mist); font-size: .95rem; }

/* ---------- Home: doorways into each part of the site ---------- */
.doors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding-bottom: 24px; }
.door { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 22px; color: var(--paper); text-decoration: none; min-height: 190px; transition: background .2s ease, box-shadow .2s ease; }
.door:hover { background: rgba(255, 255, 255, .8); box-shadow: inset 0 0 0 1px rgba(100, 116, 139, .6), 0 16px 44px -18px rgba(40, 24, 10, .3); }
.door h2 { font-size: 1.08rem; margin: 0; letter-spacing: .02em; }
.door p { margin: 0; color: var(--mist); font-size: .97rem; line-height: 1.5; }
.door-live { margin-top: auto; padding-top: 12px; font-size: .88rem; color: var(--ember); font-weight: 500; }
.door-map { grid-column: span 2; grid-row: span 2; padding: 0; overflow: hidden; }
.door-map .dotmap { width: 100%; flex: 1; min-height: 220px; display: block; }
.door-map .door-text { padding: 0 24px 24px; display: flex; flex-direction: column; gap: 6px; }
.door-map h2 { font-size: 1.5rem; }
.door-today { grid-column: span 2; flex-direction: row; gap: 18px; align-items: stretch; padding: 14px; }
.door-today > div:last-child { padding: 8px 6px 8px 0; display: flex; flex-direction: column; gap: 6px; }
.today-locator { flex: 0 0 48%; min-height: 150px; border-radius: 14px; background: rgba(255, 255, 255, .6); box-shadow: inset 0 0 0 1px rgba(17, 17, 17, .06); }
@media (max-width: 1000px) { .doors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .doors { grid-template-columns: 1fr; }
  .door-map, .door-today { grid-column: auto; grid-row: auto; }
  .door-today { flex-direction: column; }
  .today-locator { flex: none; width: 100%; aspect-ratio: 2 / 1; min-height: 0; }
  .door { min-height: 0; }
}

/* ---------- Spaceship console details ---------- */
/* Corner brackets on console panels, like instrument bezels. */
.door { position: relative; }
.door::before, .door::after { content: ""; position: absolute; width: 18px; height: 18px; border: 0 solid rgba(43, 52, 66, .55); pointer-events: none; transition: width .2s ease, height .2s ease, border-color .2s ease; }
.door::before { top: 10px; left: 10px; border-top-width: 2px; border-left-width: 2px; border-top-left-radius: 6px; }
.door::after { bottom: 10px; right: 10px; border-bottom-width: 2px; border-right-width: 2px; border-bottom-right-radius: 6px; }
.door:hover::before, .door:hover::after, .door:focus-visible::before, .door:focus-visible::after { width: 30px; height: 30px; border-color: var(--ember); }
.door:active { transform: scale(.985); }
/* Status light beside live readouts. */
.door-live { display: flex; align-items: center; gap: 8px; }
.door-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, .18), 0 0 10px rgba(22, 163, 74, .7); flex: none; animation: led 2.4s ease-in-out infinite; }
.door-live:empty::before, .door-live:has(> :empty) { display: none; }
@keyframes led { 50% { opacity: .45; } }
/* Fine instrument grid behind the home hero. */
.home-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(17, 17, 17, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(17, 17, 17, .045) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse at 40% 40%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 40% 40%, #000 30%, transparent 75%); }
.hero-glass { border-radius: 28px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), inset 0 1px 0 rgba(255, 255, 255, 1), 0 30px 80px -30px rgba(40, 24, 10, .35); }
.btn, .chip { transition: background .15s ease, box-shadow .15s ease, transform .08s ease; }
.btn:active, .chip:active { transform: scale(.97); }

/* ---------- Bridge look: holo panels, light strips, globe ---------- */
.glass, .card { border-color: rgba(255, 255, 255, .85); box-shadow: inset 0 0 0 1px rgba(43, 52, 66, .14), inset 0 1px 0 #fff, 0 14px 40px -20px rgba(15, 40, 60, .35); }
.door { background: linear-gradient(180deg, rgba(241, 245, 249, .55), rgba(255, 255, 255, .5) 40%); }
/* Each panel title sits on a lit header bar, like the screens on a ship's bridge. */
.door h2 { position: relative; padding-bottom: 10px; margin-bottom: 4px; }
.door h2::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--holo), rgba(100, 116, 139, .25) 45%, rgba(100, 116, 139, 0)); box-shadow: 0 0 10px rgba(100, 116, 139, .6); }
.door-map .door-text h2::after { right: 30%; }
.door:hover { box-shadow: inset 0 0 0 1px rgba(100, 116, 139, .7), 0 0 0 4px rgba(100, 116, 139, .12), 0 18px 44px -18px rgba(15, 40, 60, .4); }
.btn.primary { box-shadow: 0 0 0 1px rgba(255, 255, 255, .4) inset, 0 6px 18px -6px rgba(43, 52, 66, .7); }
.nav a[aria-current="page"] { box-shadow: 0 0 14px -2px rgba(100, 116, 139, .8); }
.hero-search:focus-within { outline-color: var(--holo); }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.holo { margin: 0; position: relative; aspect-ratio: 1; max-height: 560px; }
.holo .globe { width: 100%; height: 100%; display: block; }
.holo::before { content: ""; position: absolute; left: 18%; right: 18%; bottom: 4%; height: 10%; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(100, 116, 139, .35), rgba(100, 116, 139, 0) 70%); filter: blur(4px); }
.holo figcaption { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-size: .85rem; color: var(--ember); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .holo { max-width: 420px; width: 100%; margin: 0 auto; }
}

/* ---------- Door effect: a shutter slides shut across the clicked panel and stays shut ---------- */
/* Timing is a share of --door-ms: shutting for the first 85%, then the next page opens. */
.frosting { position: relative; overflow: hidden; isolation: isolate; }
.frost { position: absolute; inset: 0; z-index: 5; pointer-events: none; border-radius: inherit; overflow: hidden; }
/* Two panes of pure frosted glass that slide shut and meet in the middle: a strong blur of
   what's behind, a soft white frost, a gentle sheen, and a bright edge where they meet. */
.frost-l, .frost-r { position: absolute; top: 0; bottom: 0; width: 50.5%;
  -webkit-backdrop-filter: blur(18px) saturate(125%) brightness(1.04); backdrop-filter: blur(18px) saturate(125%) brightness(1.04);
  background: linear-gradient(180deg, rgba(255, 255, 255, .42), rgba(241, 245, 249, .30) 55%, rgba(226, 232, 240, .36));
  animation: shutter var(--door-ms) cubic-bezier(.55, 0, .75, .45) both; }
.frost-l { box-shadow: inset -1px 0 0 rgba(255, 255, 255, .95), inset -3px 0 6px -2px rgba(148, 163, 184, .35), 6px 0 22px rgba(43, 52, 66, .10); }
.frost-r { box-shadow: inset 1px 0 0 rgba(255, 255, 255, .95), inset 3px 0 6px -2px rgba(148, 163, 184, .35), -6px 0 22px rgba(43, 52, 66, .10); }
.frost-l::before, .frost-r::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .38) 42%, rgba(255, 255, 255, 0) 54%),
              linear-gradient(115deg, rgba(255, 255, 255, 0) 58%, rgba(255, 255, 255, .16) 63%, rgba(255, 255, 255, 0) 68%); }
.frost-r::before { transform: scaleX(-1); }
.frost-l { left: 0; --dir: -1; }
.frost-r { right: 0; --dir: 1; }
@keyframes shutter {
  0% { transform: translateX(calc(var(--dir) * 102%)); }
  74% { transform: translateX(0); }
  80% { transform: translateX(calc(var(--dir) * 2.5%)); }
  86%, 100% { transform: translateX(0); }
}
.doors-busy, .doors-busy * { cursor: progress !important; }

/* ---------- Identification guide ---------- */
.id-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.id-step { position: relative; padding-top: 26px; }
.id-step h2 { font-size: 1.15rem; padding-right: 48px; }
.id-step ul { padding-left: 20px; margin: 0 0 1em; display: grid; gap: 6px; }
.step-no { position: absolute; top: 18px; right: 20px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); color: var(--ember); box-shadow: inset 0 0 0 1px rgba(43, 52, 66, .35), 0 0 12px rgba(100, 116, 139, .35); }
@media (max-width: 760px) { .id-steps { grid-template-columns: 1fr; } }
.timeline-mini { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 8px; border-left: 2px solid rgba(100, 116, 139, .6); }
.timeline-mini li { padding-left: 14px; color: var(--mist); }
.timeline-mini strong { color: var(--paper); font-family: var(--display); font-weight: 400; margin-right: 8px; }

/* ---------- Automatic sections ---------- */
.seo-article.wide { max-width: 1100px; }
.year-block { margin: 10px 0; padding: 14px 18px; }
.year-block summary { cursor: pointer; display: flex; gap: 12px; align-items: baseline; }
.year-block .table-wrap { margin-top: 12px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin: 20px 0; }
.gallery-tile { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--paper); }
.gallery-tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--raised); }
.gallery-tile span { padding: 10px 12px; font-size: .9rem; line-height: 1.35; }
.gallery-hero { margin: 0 0 20px; }
.gallery-hero img { width: 100%; max-height: 70vh; object-fit: contain; border-radius: 18px; background: #f1f4f7; }
.gallery-hero figcaption { color: var(--mist); font-size: .85rem; margin-top: 6px; }

.story-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 12px 0 28px; }
.story { min-height: 0; }
.story h3 { font-size: 1.02rem; margin: 0 0 4px; }

/* ---------- Back button (every page) ---------- */
.back-bar { padding-top: 14px; padding-bottom: 0; }
.back-link { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px 7px 10px; border-radius: 999px; text-decoration: none; color: var(--paper); font-weight: 500; font-size: .95rem;
  background: rgba(255, 255, 255, .6); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(43, 52, 66, .2), 0 6px 18px -10px rgba(15, 23, 42, .35); }
.back-link svg { width: 18px; height: 18px; }
.back-link:hover { background: rgba(255, 255, 255, .9); }
body:has(.back-bar) .cat-shell { height: calc(100vh - var(--header-h) - 56px - env(safe-area-inset-top)); }

/* ---------- Meteorite pages and types ---------- */
.stone-photo { margin: 6px 0 24px; }
.stone-photo img { width: 100%; max-height: 520px; object-fit: contain; border-radius: 18px; background: #f1f4f7; }
.stone-photo figcaption { color: var(--mist); font-size: .82rem; margin-top: 6px; }
.stone-photo.typical img { max-height: 380px; }
.type-photo img { max-height: 440px; }
.card-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; margin-bottom: 10px; background: #e2e8f0; display: block; }
.seo-article .mini-map { height: 320px; border-radius: 18px; overflow: hidden; margin: 10px 0 12px; background: #eceae6; box-shadow: inset 0 0 0 1px rgba(43, 52, 66, .15); }
.stone-article h2 { margin-top: 1.4em; }
.share-bar { display: flex; height: 40px; border-radius: 12px; overflow: hidden; margin: 22px 0 6px; font-size: .78rem; font-weight: 600; color: #fff; }
.share-bar span { display: flex; align-items: center; padding: 0 10px; white-space: nowrap; overflow: hidden; min-width: 0; }
.sb-ch { background: #ea580c; } .sb-ac { background: #7c3aed; } .sb-ir { background: #2b3442; } .sb-si { background: #65a30d; }
.type-tree ul { list-style: none; margin: 0; padding-left: 18px; border-left: 1px solid rgba(43, 52, 66, .25); }
.type-tree > ul { padding-left: 0; border: 0; margin-bottom: 14px; }
.type-tree li { margin: 6px 0; }
.type-tree a { font-weight: 500; }
.type-list { padding-left: 20px; display: grid; gap: 8px; }
.type-facts { margin-bottom: 26px; }

.badge.part { color: #b45309; border-color: rgba(180, 83, 9, .35); }

/* ---------- Quiz ---------- */
.quiz-wrap { max-width: 760px; }
.level-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.level-door { text-align: left; font: inherit; cursor: pointer; border: 0; }
@media (max-width: 600px) { .level-grid { grid-template-columns: 1fr; } }

/* ---------- Language picker ---------- */
.lang-btn { order: 2; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(17,17,17,.1); background: rgba(255,255,255,.6); color: var(--paper); cursor: pointer; margin-left: 6px; }
.lang-btn svg { width: 20px; height: 20px; }
.lang-box { position: absolute; right: 16px; top: calc(var(--header-h) + 6px); z-index: 50; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.95); box-shadow: 0 12px 30px -12px rgba(15,23,42,.35); }
.lang-box select { font: inherit; padding: 8px; border-radius: 10px; border: 1px solid var(--line); }
.site-header .wrap { position: relative; }
@media (max-width: 860px) { .lang-btn { margin-left: auto; } .sound-btn { margin-left: 6px; } }
/* Hide Google's banner bar so the page doesn't jump. */
.goog-te-banner-frame, .skiptranslate iframe, #goog-gt-tt, .goog-te-balloon-frame { display: none !important; }
body { top: 0 !important; }
.goog-logo-link, .goog-te-gadget > span { display: none !important; }
.goog-te-gadget { color: transparent !important; font-size: 0 !important; }
.goog-te-gadget select { font-size: 15px !important; color: var(--paper); }

.licence { font-size: .72rem; color: #8b929c; margin: 4px 0 14px; }

/* ---------- Home: centred globe ---------- */
/* Home hero: the Meteorite map tile on the left, the globe on the right at the same height as the tile. */
.globe-hero { padding-top: clamp(10px, 3vw, 30px); padding-bottom: 16px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(12px, 3vw, 36px); align-items: stretch; }
.globe-hero .door-map { grid-column: auto; grid-row: auto; min-height: 0; }
.globe-hero .door-map .dotmap { min-height: 180px; aspect-ratio: 2 / 1; flex: none; }
.globe-box { position: relative; min-height: 0; container-type: size; display: grid; place-items: center; }
.globe-box .globe { width: min(100cqw, 100cqh); height: min(100cqw, 100cqh); display: block; }
@media (max-width: 760px) {
  .globe-hero { grid-template-columns: 1fr; }
  .globe-box { order: -1; height: min(86vw, 440px); }
}

/* ---------- "We're back" box (first visit only) ---------- */
.welcome-box { position: fixed; z-index: 60; right: 16px; bottom: 16px; width: min(340px, calc(100vw - 32px)); padding: 16px 18px 14px; border-radius: 18px;
  background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 12px 40px rgba(15, 23, 42, .18), inset 0 0 0 1px rgba(100, 116, 139, .35); animation: wb-in .45s cubic-bezier(.2, .8, .2, 1) both; }
.welcome-box strong { font-family: var(--display); font-weight: 400; font-size: 1.05rem; color: var(--ember); display: block; margin-bottom: 4px; padding-right: 24px; }
.welcome-box p { margin: 0 0 10px; font-size: .92rem; color: var(--paper); }
.welcome-box .wb-how { font-size: .86rem; color: var(--ember); font-weight: 500; }
.welcome-box .wb-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.wb-close { position: absolute; top: 8px; right: 10px; width: 30px; height: 30px; border: 0; background: none; font-size: 1.4rem; line-height: 1; color: var(--mist); cursor: pointer; border-radius: 50%; }
.wb-close:hover { background: rgba(100, 116, 139, .15); }
.welcome-box.wb-out { opacity: 0; transform: translateY(12px); transition: opacity .3s, transform .3s; }
@keyframes wb-in { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) { .welcome-box { animation: none; } }

/* ---------- Cookie consent ---------- */
.consent { position: fixed; z-index: 70; left: 16px; right: 16px; bottom: 16px; margin: 0 auto; max-width: 620px; padding: 16px 18px; border-radius: 18px;
  background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 12px 40px rgba(15, 23, 42, .2), inset 0 0 0 1px rgba(100, 116, 139, .35); animation: wb-in .45s cubic-bezier(.2, .8, .2, 1) both; }
.consent strong { font-family: var(--display); font-weight: 400; color: var(--ember); display: block; margin-bottom: 4px; }
.consent p { margin: 0 0 10px; font-size: .92rem; color: var(--paper); }
.consent-opts[hidden] { display: none; }
.consent-opts { display: grid; gap: 6px; margin: 0 0 12px; font-size: .92rem; }
.consent-opts label { display: flex; gap: 8px; align-items: center; }
.consent-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.consent-btns .btn { flex: 1 1 auto; justify-content: center; }
/* ---------- Footer: legal links and copyright ---------- */
.site-footer nav[aria-label="Legal"] { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; }
.site-footer .wrap { justify-content: center; text-align: center; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: none; }
.link-btn:hover { text-decoration: underline; }
/* ---------- Copy protection ---------- */
.no-copy body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.no-copy input, .no-copy textarea, .no-copy select, .no-copy [contenteditable=true] { -webkit-user-select: text; user-select: text; }
.no-copy img { -webkit-user-drag: none; }
/* ---------- Legal pages ---------- */
.legal h2 { margin-top: 1.6em; }
.legal table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.legal th, .legal td { text-align: left; padding: 8px 10px; border-bottom: 1px solid rgba(100, 116, 139, .25); vertical-align: top; }
@media (max-width: 640px) { .legal table, .legal thead, .legal tbody, .legal tr, .legal th, .legal td { display: block; } .legal thead { display: none; } .legal td { border: 0; padding: 2px 0; } .legal tr { padding: 10px 0; border-bottom: 1px solid rgba(100, 116, 139, .25); } }

/* ---------- Notice banner (admin panel) ---------- */
.notice-bar { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 8px 44px; background: var(--ember); color: #fff; font-size: .92rem; text-align: center; position: relative; }
.notice-bar button { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #fff; font-size: 1.3rem; cursor: pointer; width: 30px; height: 30px; border-radius: 50%; }

/* ---------- Live meteor news ticker ---------- */
.ticker { display: flex; align-items: center; gap: 0; height: 34px; overflow: hidden; text-decoration: none; color: var(--paper);
  background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(100, 116, 139, .22); font-size: .86rem; }
.tk-label { flex: none; display: flex; align-items: center; gap: 8px; height: 100%; padding: 0 14px; background: var(--ember); color: #fff; font-family: var(--display); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; }
.tk-dot { width: 8px; height: 8px; border-radius: 50%; background: #f97316; box-shadow: 0 0 0 3px rgba(249, 115, 22, .25); animation: led 1.6s ease-in-out infinite; }
.tk-view { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 30px, #000 calc(100% - 30px), transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 30px, #000 calc(100% - 30px), transparent); }
.tk-track { display: inline-flex; align-items: center; white-space: nowrap; animation: tk-scroll 60s linear infinite; }
.ticker:hover .tk-track, .ticker:focus .tk-track { animation-play-state: paused; }
.tk-item { padding: 0 6px; } .tk-item small { color: var(--mist); margin-left: 4px; }
.tk-sep { color: #f97316; font-size: .6rem; padding: 0 12px; }
@keyframes tk-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 600px) { .tk-label { font-size: 0; gap: 0; padding: 0 12px; } }
@media (prefers-reduced-motion: reduce) { .tk-track { animation: none; } }
.news-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.news-list li { padding: 10px 0; border-bottom: 1px solid rgba(100, 116, 139, .18); display: flex; gap: 14px; justify-content: space-between; align-items: baseline; }
.news-list small { color: var(--mist); white-space: nowrap; }

/* ---------- Endorsement (home) ---------- */
.endorse { padding-block: 8px 28px; }
.endorse-card { margin: 0; padding: clamp(20px, 4vw, 34px); border-radius: 22px; text-align: center; }
.endorse-card blockquote { margin: 0 auto 14px; max-width: 760px; font-size: clamp(1.02rem, 2.2vw, 1.22rem); line-height: 1.6; color: var(--paper); }
.endorse-card figcaption { display: grid; gap: 2px; }
.endorse-card figcaption strong { font-family: var(--display); font-weight: 400; color: var(--ember); letter-spacing: .03em; }
.endorse-card figcaption span { font-size: .86rem; color: var(--mist); }
/* Endorsement card: same frosted-glass finish and greys as the homepage tiles. */
.endorse-card { background: linear-gradient(180deg, rgba(241, 245, 249, .55), rgba(255, 255, 255, .5) 40%); box-shadow: 0 10px 30px -18px rgba(15, 23, 42, .35), inset 0 0 0 1px rgba(100, 116, 139, .28); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
.endorse-card blockquote { color: var(--ember); font-style: normal; }
.endorse-card figcaption strong { color: #b08a2e; background: linear-gradient(100deg, #9a7420 0%, #d9b45a 30%, #f3dc93 48%, #c79a3a 66%, #9a7420 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-size: 1.12em; }
.endorse-card figcaption span { color: #64748b; }

/* ---------- "Updated" pill ---------- */
.brand.has-updated { display: grid; grid-template-columns: auto; gap: 1px; line-height: 1.15; }
.updated-pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--body, "Outfit", system-ui, sans-serif); font-size: .64rem; letter-spacing: .01em; color: #64748b; white-space: nowrap; }
.updated-pill i { width: 6px; height: 6px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, .18); flex: none; }

/* News flash: a major event reported by many outlets */
.ticker.flash .tk-label { background: #b91c1c; animation: flash-pulse 1.6s ease-in-out infinite; }
.ticker.flash .tk-item:first-child { font-weight: 600; color: #b91c1c; }
@keyframes flash-pulse { 50% { background: #7f1d1d; } }
@media (prefers-reduced-motion: reduce) { .ticker.flash .tk-label { animation: none; } }

/* Ticker on the homepage: a frosted strip above the Meteorite map tile (left column). */


/* ---------- Learn sections: glossary, questions, famous meteorites, showers, craters, Start here (scripts/build-content.mjs) ---------- */
.cx [hidden] { display: none !important; }
.cx [id] { scroll-margin-top: calc(var(--header-h) + 16px); }
.cx h1 { overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 600px) { .seo-page.cx { padding-left: 16px; padding-right: 16px; } }
.cx-filter { margin: 22px 0 10px; max-width: 520px; }
.cx-count { margin: 6px 0 0; font-size: .9rem; min-height: 1.4em; }
.cx-chips { flex-wrap: wrap; margin: 6px 0 14px; }
.cx-chips a.chip { display: inline-flex; align-items: center; text-decoration: none; }
.cx-az { margin: 8px 0 6px; }
.cx-letter h2 { font-size: 1.4rem; margin-top: 28px; }
.cx-terms { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 0 30px; margin: 0; }
.cx-term { padding: 12px 0; border-bottom: 1px solid rgba(100, 116, 139, .22); }
.cx-term dt { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.cx-term dt a { font-weight: 600; }
.cx-term dd { margin: 4px 0 0; color: var(--mist); font-size: .95rem; line-height: 1.5; }
.cx-level { font-size: .72rem; padding: 2px 9px; }
.cx-related { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cx-related a, .cx-explore-links a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 15px; border-radius: 999px; text-decoration: none; color: var(--ember); background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px rgba(43, 52, 66, .2); }
.cx-related a:hover, .cx-explore-links a:hover { background: #fff; box-shadow: inset 0 0 0 1px var(--ember); }
.cx-note { font-size: .92rem; margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.cx-answer, .cx-try { margin: 20px 0 24px; padding: 18px 22px; box-shadow: inset 3px 0 0 var(--ember), inset 0 0 0 1px rgba(43, 52, 66, .14), 0 14px 40px -24px rgba(15, 40, 60, .35); }
.cx-answer p, .cx-try p { margin: 0; }
.cx-facts { padding: 18px 20px; border-radius: 18px; background: rgba(255, 255, 255, .62); box-shadow: inset 0 0 0 1px rgba(43, 52, 66, .14); }
.cx-dyk { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 12px 0 8px; }
.cx-dyk-card { padding: 18px 20px; }
.cx-dyk-card p { margin: 0; }
.cx-tips { padding-left: 22px; display: grid; gap: 8px; }
.cx-pager { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: stretch; margin: 36px 0 8px; }
.cx-pager .btn { align-self: center; }
.cx-pg { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 14px; text-decoration: none; color: var(--paper); background: rgba(255, 255, 255, .6); box-shadow: inset 0 0 0 1px rgba(43, 52, 66, .16); min-width: 0; }
.cx-pg:hover { background: #fff; box-shadow: inset 0 0 0 1px var(--ember); color: var(--paper); }
.cx-pg small { color: var(--mist); font-size: .82rem; }
.cx-pg span { overflow-wrap: anywhere; }
.cx-pg.next { text-align: right; }
@media (max-width: 600px) { .cx-pager { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .cx-pager .btn { grid-column: 1 / -1; grid-row: 2; justify-self: center; } }
.cx-explore { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(100, 116, 139, .25); }
.cx-explore-links { display: flex; flex-wrap: wrap; gap: 8px; }
.cx-faqs { display: grid; gap: 10px; }
.cx-faq { padding: 14px 18px; }
.cx-faq summary { cursor: pointer; font-weight: 600; }
.cx-faq[open] { box-shadow: inset 0 0 0 1px var(--ember), 0 14px 40px -24px rgba(15, 40, 60, .35); }
.cx-faq p { margin: 10px 0 8px; color: var(--mist); }
.cx-n { font-family: var(--sans); font-size: .9rem; }
.cx-card .cx-meta { margin-top: auto; padding-top: 10px; font-size: .86rem; color: var(--mist); }
.cx-card h3 { margin-bottom: 2px; }
.cx-meta { font-size: .88rem; color: var(--mist); }
.cx-tiles { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.cx-tiles .cx-meta { margin-top: auto; padding-top: 10px; }
/* Lesson quiz */
.cx-quiz { margin-top: 34px; }
.cx-qs { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 14px; }
.cx-q { padding: 18px 20px; }
.cx-qtext { font-weight: 600; margin: 0 0 12px; }
.cx-qn { display: block; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mist); font-weight: 600; margin-bottom: 4px; }
.cx-opts { display: grid; gap: 8px; }
.cx-opts button { min-height: 48px; text-align: left; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .78); color: var(--paper); font: inherit; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.cx-opts button:hover:not([disabled]) { border-color: var(--ember); background: #fff; }
.cx-opts button[disabled] { cursor: default; }
.cx-opts button.right { background: rgba(46, 125, 50, .12); border-color: var(--good); color: var(--paper); }
.cx-opts button.right::before { content: "✓ "; color: var(--good); font-weight: 700; }
.cx-opts button.wrong { background: rgba(198, 40, 40, .09); border-color: var(--bad); }
.cx-opts button.wrong::before { content: "✗ "; color: var(--bad); font-weight: 700; }
.cx-q.done .cx-opts button:not(.right):not(.picked) { opacity: .55; }
.cx-why { margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--panel); }
.cx-score { font-weight: 600; margin: 16px 0 6px; min-height: 1.5em; }
/* Start here */
.cx-continue { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 18px 0 22px; }
.cx-track { margin-top: 38px; }
.cx-track-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.cx-track-head h2 { margin: 0; }
.cx-lessons { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 12px; }
.cx-lesson-card { display: grid; grid-template-columns: 40px minmax(0, 1fr) 30px; gap: 14px; align-items: center; padding: 14px 16px; height: 100%; text-decoration: none; color: var(--paper); }
.cx-lesson-card:hover { box-shadow: inset 0 0 0 1px var(--ember), 0 14px 40px -22px rgba(15, 40, 60, .4); color: var(--paper); }
.cx-lt { display: grid; gap: 3px; }
.cx-lt .muted { font-size: .92rem; line-height: 1.45; }
.cx-num { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: .9rem; background: var(--raised); color: var(--ember); }
.cx-tick { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line); color: #fff; font-weight: 700; font-size: .9rem; }
.cx-lesson-card.is-done .cx-tick { background: var(--good); border-color: var(--good); }
.cx-lesson-card.is-done .cx-num { background: var(--ember); color: #fff; }
/* Meteorite pages without a photograph: an illustration of the kind of meteorite. */
.stone-photo.placeholder img { max-height: 360px; aspect-ratio: 8 / 5; object-fit: cover; box-shadow: inset 0 0 0 1px rgba(100, 116, 139, .2); }
/* Topic tags (#Mars, #Iron meteorites …) at the end of pages, and the topic pages. */
.topic-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 28px 0 8px; padding-top: 16px; border-top: 1px solid rgba(100, 116, 139, .18); }
.topic-tags > span { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #64748b; margin-right: 4px; }
.topic-tags a { font-size: .88rem; padding: 5px 12px; border-radius: 999px; text-decoration: none; color: #2b3442; background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px rgba(100, 116, 139, .3); transition: background .15s, box-shadow .15s; }
.topic-tags a:hover { background: #fff; box-shadow: inset 0 0 0 1px rgba(43, 52, 66, .55); }
.topic-group { margin-top: 26px; }
.topic-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 6px 22px; }
.topic-list li { display: grid; gap: 1px; padding: 6px 0; border-bottom: 1px solid rgba(100, 116, 139, .14); }
.topic-list .muted { font-size: .84rem; }
.topic-cloud { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.topic-cloud a { padding: 9px 16px; border-radius: 999px; text-decoration: none; color: #2b3442; font-weight: 500; background: rgba(255, 255, 255, .72); box-shadow: inset 0 0 0 1px rgba(100, 116, 139, .3), 0 6px 18px -14px rgba(15, 23, 42, .4); }
.topic-cloud a span { color: #64748b; font-weight: 400; font-size: .85rem; margin-left: 4px; }
/* Built-in translation: the language list and the first-visit offer. */
.lang-box { max-height: min(70vh, 520px); overflow: auto; width: min(92vw, 300px); padding: 10px; }
.lang-head { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: #64748b; padding: 4px 8px 8px; }
.lang-opt { display: block; width: 100%; text-align: left; font: inherit; font-size: .92rem; padding: 7px 10px; border: 0; border-radius: 9px; background: transparent; color: #2b3442; cursor: pointer; }
.lang-opt:hover, .lang-opt[aria-current="true"] { background: rgba(43, 52, 66, .07); }
.lang-opt[aria-current="true"] { font-weight: 600; }
.lang-tip, .lang-note { font-size: .8rem; color: #64748b; margin: 8px 8px 4px; line-height: 1.45; }
.lang-offer { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; padding: 10px 14px; border-radius: 16px; background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px rgba(100, 116, 139, .3), 0 14px 34px -18px rgba(15, 23, 42, .45); max-width: calc(100vw - 32px); }
.lang-offer button { font: inherit; font-size: .88rem; padding: 7px 14px; border-radius: 999px; border: 0; cursor: pointer; }
.lang-offer .lang-yes { background: #2b3442; color: #fff; }
.lang-offer .lang-no { background: transparent; color: #2b3442; box-shadow: inset 0 0 0 1px rgba(100, 116, 139, .35); }
/* Corvanelle Publishing raven emblem above its name on the endorsement. */
.endorse-card figcaption { justify-items: center; }
.endorse-card .endorse-logo { width: auto; height: clamp(64px, 9vw, 84px); margin: 4px auto 8px; filter: drop-shadow(0 6px 10px rgba(15, 23, 42, .12)); }
.topic-about { max-width: 72ch; margin: 14px 0 6px; }
.topic-about p { line-height: 1.7; }
/* Meteorites across the sciences (sciences.html) */
.sci-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.sci-jump a { font-size: .88rem; padding: 6px 13px; border-radius: 999px; text-decoration: none; color: #2b3442; background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px rgba(100, 116, 139, .3); }
.sci-sec { margin-top: 34px; scroll-margin-top: calc(var(--header-h, 64px) + 48px); }
.sci-sec h2 { display: flex; align-items: center; gap: 12px; }
.sci-n { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-size: .95rem; color: #fff; background: #2b3442; box-shadow: 0 6px 14px -8px rgba(15, 23, 42, .6); }
.sci-sec p { max-width: 72ch; line-height: 1.7; }
.sci-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sci-links a { font-size: .86rem; padding: 5px 12px; border-radius: 999px; text-decoration: none; color: #2b3442; background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px rgba(100, 116, 139, .28); }
.sci-links a:hover, .sci-jump a:hover { background: #fff; box-shadow: inset 0 0 0 1px rgba(43, 52, 66, .55); }
.sci-four { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 10px; list-style: none; padding: 0; margin: 14px 0; }
.sci-four li { padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px rgba(100, 116, 139, .22); }
.sci-next { margin-top: 36px; padding: 20px 22px; border-radius: 18px; }
.sci-next h2 { margin-top: 0; }
/* Contact page */
.contact-card { margin-top: 20px; padding: clamp(18px, 3vw, 26px); border-radius: 18px; }
.contact-card h2 { margin-top: 0; }
.contact-card form { display: grid; gap: 14px; }
.contact-card label { display: grid; gap: 6px; font-weight: 500; }
.contact-card input, .contact-card textarea { font: inherit; padding: 11px 13px; border-radius: 12px; border: 1px solid #cbd5e1; background: #fff; color: #111; width: 100%; }
.contact-card textarea { resize: vertical; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0; }
.contact-actions .btn.ghost { background: transparent; color: #2b3442; box-shadow: inset 0 0 0 1px rgba(100, 116, 139, .4); }
.contact-ok { color: #15803d; font-weight: 500; }
.conv-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.conv-list a[aria-current="true"] { font-weight: 600; }
.badge { display: inline-block; font-size: .72rem; padding: 2px 8px; border-radius: 999px; background: #2b3442; color: #fff; margin-left: 6px; }
.bubbles { display: grid; gap: 12px; margin: 14px 0; }
.bubble { max-width: min(640px, 92%); padding: 12px 15px; border-radius: 16px; }
.bubble .who { font-size: .78rem; color: #64748b; margin-bottom: 4px; }
.bubble .txt { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.bubble.me { justify-self: end; background: #2b3442; color: #fff; border-bottom-right-radius: 4px; }
.bubble.me .who { color: rgba(255, 255, 255, .7); }
.bubble.them { justify-self: start; background: rgba(255, 255, 255, .85); box-shadow: inset 0 0 0 1px rgba(100, 116, 139, .25); border-bottom-left-radius: 4px; }
.contact-page .unsub-hp { position: absolute; left: -9999px; }
.badge[hidden] { display: none; }
/* Latest page: a grid of tiles. Each shows a short preview; "Show all" opens it full-screen. */
.lt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding-block: 8px 28px; }
@media (max-width: 860px) { .lt-grid { grid-template-columns: 1fr; } }
.lt-tile { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 18px 20px 14px; border-radius: 20px; }
.lt-tile[hidden] { display: none; }
.lt-tile h2 { margin: 2px 0 6px; font-size: 1.2rem; }
.lt-tile > .muted { font-size: .86rem; margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lt-body { position: relative; max-height: 250px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.lt-tile .lt-map { height: 170px; min-height: 0; margin: 4px 0 10px; border-radius: 14px; }
.lt-tile #antarctic-filter { margin: 4px 0 8px !important; }
.lt-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lt-more { align-self: flex-start; margin-top: 10px; font: inherit; font-size: .88rem; font-weight: 500; padding: 7px 16px; border-radius: 999px; border: 0; cursor: pointer; color: #fff; background: #2b3442; }
.lt-close { display: none; }
/* Opened tile */
.lt-tile.lt-open { position: fixed; inset: max(12px, 3vh) max(12px, 4vw); z-index: 80; overflow: auto; padding: 24px clamp(18px, 3vw, 34px); background: rgba(255, 255, 255, .97); box-shadow: 0 30px 80px -20px rgba(15, 23, 42, .45), inset 0 0 0 1px rgba(100, 116, 139, .25); }
.lt-tile.lt-open .lt-body { max-height: none; overflow: visible; -webkit-mask-image: none; mask-image: none; }
.lt-tile.lt-open > .muted { display: block; -webkit-line-clamp: unset; }
.lt-tile.lt-open .lt-map { height: min(46vh, 420px); }
.lt-tile.lt-open .lt-cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.lt-tile.lt-open .lt-more { display: none; }
.lt-tile.lt-open .lt-close { display: grid; place-items: center; position: sticky; top: 0; margin: -8px -8px 0 auto; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; font-size: 1.2rem; color: #2b3442; background: rgba(241, 245, 249, .95); box-shadow: inset 0 0 0 1px rgba(100, 116, 139, .3); z-index: 2; }
.lt-backdrop { position: fixed; inset: 0; z-index: 79; background: rgba(15, 23, 42, .28); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
body.lt-locked { overflow: hidden; }
.lt-tile > * { flex-shrink: 0; }
.lt-more { margin-top: auto; }
.lt-tile .lt-body { margin-bottom: 12px; }
/* Photos are never stretched beyond their real size (small photos stay sharp, centred in a soft frame). */
.stone-photo:not(.placeholder) { display: grid; place-items: center; padding: 10px; border-radius: 18px; background: #f1f4f7; }
.stone-photo:not(.placeholder) img { width: auto; max-width: 100%; height: auto; max-height: 520px; object-fit: contain; border-radius: 12px; background: none; }
.stone-photo:not(.placeholder) figcaption { justify-self: stretch; }
/* Search box on the meteorite list pages */
.hub-search { margin: 18px 0 22px; max-width: 720px; }
.hub-search input { width: 100%; font: inherit; font-size: 1.02rem; padding: 13px 16px 13px 44px; border-radius: 14px; border: 1px solid #cbd5e1; color: #111;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 14px 50% / 20px; box-shadow: 0 6px 18px -14px rgba(15, 23, 42, .4); }
.hub-search input:focus { outline: none; border-color: #2b3442; box-shadow: 0 0 0 3px rgba(43, 52, 66, .12); }
.hub-count { margin: 8px 2px 0; font-size: .88rem; }
.hub-results { list-style: none; padding: 6px; margin: 8px 0 0; border-radius: 14px; background: rgba(255, 255, 255, .85); box-shadow: inset 0 0 0 1px rgba(100, 116, 139, .22); max-height: 420px; overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 2px 14px; }
.hub-results li { padding: 6px 8px; border-radius: 8px; }
.hub-results li:hover { background: rgba(43, 52, 66, .05); }
.hub-results .muted { font-size: .82rem; }
[hidden].table-wrap, ul[hidden], li[hidden], tr[hidden], h2[hidden] { display: none !important; }
/* Country pages: a real map of every meteorite with a recorded position */
.country-map { position: relative; height: clamp(320px, 60vh, 560px); margin: 10px 0 8px; border-radius: 18px; overflow: hidden; background: #e9eff5; box-shadow: inset 0 0 0 1px rgba(100, 116, 139, .25); touch-action: none; }
.country-map.polar { height: clamp(360px, 78vh, 720px); }
.country-map canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.country-map canvas:active { cursor: grabbing; }
.cm-wait { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: #64748b; }
.cm-tools { position: absolute; right: 10px; top: 10px; display: grid; gap: 6px; }
.cm-tools button { width: 36px; height: 36px; border-radius: 10px; border: 0; font-size: 1.1rem; cursor: pointer; color: #2b3442; background: rgba(255, 255, 255, .92); box-shadow: inset 0 0 0 1px rgba(100, 116, 139, .3), 0 4px 12px -6px rgba(15, 23, 42, .35); }
.cm-pop { position: absolute; z-index: 3; width: 260px; max-height: 320px; overflow: auto; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .97); box-shadow: 0 14px 34px -14px rgba(15, 23, 42, .45), inset 0 0 0 1px rgba(100, 116, 139, .25); font-size: .88rem; }
.cm-pop strong { display: block; padding-right: 22px; }
.cm-pop ul { list-style: none; padding: 0; margin: 8px 0 4px; display: grid; gap: 3px; }
.cm-pop .cm-x { position: absolute; right: 8px; top: 8px; border: 0; background: none; cursor: pointer; color: #64748b; }
.cm-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .84rem; color: #475569; margin: 6px 0 0; }
.cm-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.cm-legend i.fell { background: #fff; box-shadow: inset 0 0 0 2px #111; }
/* Books page (until the shop opens) */
.bk-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 12px; margin: 22px 0 8px; }
.bk-stats > div { padding: 16px 18px; border-radius: 16px; }
.bk-stats b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.3rem; color: #2b3442; }
.bk-stats span { color: #64748b; font-size: .86rem; }
.bk-how li { margin: 6px 0; }
.bk-list, .bk-levels { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 6px; }
.bk-row, .bk-levels li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px rgba(100, 116, 139, .2); }
.bk-levels li { grid-template-columns: 170px 1fr auto; }
.bk-t { display: grid; gap: 2px; }
.bk-t .muted, .bk-levels .muted { font-size: .85rem; }
.bk-p { font-weight: 600; color: #2b3442; white-space: nowrap; }
.bk-s { font-size: .74rem; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.bk-s.ok { background: #dcfce7; color: #166534; }
.bk-s.wip { background: #f1f5f9; color: #475569; }
.bk-areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; margin: 14px 0; }
.bk-area { padding: 16px 18px; border-radius: 16px; }
.bk-area h3 { margin: 0 0 2px; }
.bk-n { margin: 0 0 6px; font-weight: 600; color: #2b3442; font-size: .9rem; }
.bk-area .muted { font-size: .86rem; margin: 0; }
@media (max-width: 640px) { .bk-row { grid-template-columns: 1fr auto; } .bk-row .bk-s { grid-column: 1 / -1; justify-self: start; } .bk-levels li { grid-template-columns: 1fr auto; } .bk-levels li .muted { grid-column: 1 / -1; } }
.bk-imprint { display: flex; align-items: center; gap: 12px; margin: 6px 0 4px; }
.bk-imprint img { height: 58px; width: auto; filter: drop-shadow(0 4px 8px rgba(15, 23, 42, .12)); }
.bk-imprint span { font-family: var(--display); font-size: 1.05rem; letter-spacing: .04em; background: linear-gradient(100deg, #9a7420 0%, #d9b45a 30%, #f3dc93 48%, #c79a3a 66%, #9a7420 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #b08a2e; }
/* A book's own page, and the "Available now" shelf on the Books page */
.book-page { display: grid; grid-template-columns: minmax(200px, 340px) 1fr; gap: clamp(20px, 4vw, 48px); align-items: start; margin: 10px 0 30px; }
@media (max-width: 760px) { .book-page { grid-template-columns: 1fr; } .bp-cover { max-width: 260px; } }
.bp-cover img { width: 100%; height: auto; border-radius: 6px 12px 12px 6px; box-shadow: 0 24px 40px -18px rgba(15, 23, 42, .55), inset 0 0 0 1px rgba(0, 0, 0, .06); }
.bp-info h1 { margin: 6px 0 4px; }
.bp-sub { font-size: 1.1rem; color: #475569; margin: 0 0 12px; }
.bp-imprint { display: flex; align-items: center; gap: 10px; margin: 6px 0 14px; }
.bp-imprint img { height: 40px; width: auto; }
.bp-imprint span { font-family: var(--display); font-size: .9rem; letter-spacing: .04em; color: #b08a2e; }
.bp-blurb { line-height: 1.7; max-width: 62ch; }
.bp-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 14px 0; color: #475569; font-size: .92rem; }
.bp-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }
.bp-price { font-family: var(--display); font-size: 1.4rem; color: #2b3442; margin-right: 6px; }
.bp-contents ol { columns: 2 280px; column-gap: 32px; padding-left: 1.4em; }
.bp-contents li { margin: 4px 0; break-inside: avoid; }
.bk-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 170px), 1fr)); gap: 20px 16px; margin: 14px 0 26px; }
.bk-card { display: grid; gap: 4px; text-decoration: none; color: inherit; }
.bk-card img { width: 100%; height: auto; border-radius: 4px 9px 9px 4px; box-shadow: 0 16px 28px -16px rgba(15, 23, 42, .55); transition: transform .25s ease, box-shadow .25s ease; }
.bk-card:hover img { transform: translateY(-4px); box-shadow: 0 24px 36px -18px rgba(15, 23, 42, .6); }
.bk-ct { font-weight: 600; line-height: 1.3; margin-top: 6px; }
.bk-card .muted { font-size: .82rem; }
.bp-cover svg, .bk-cover svg { display: block; width: 100%; height: auto; border-radius: 6px 12px 12px 6px; box-shadow: 0 24px 40px -18px rgba(15, 23, 42, .55); }
.bk-cover { display: block; transition: transform .25s ease; }
.bk-card:hover .bk-cover { transform: translateY(-4px); }
/* Courses (site/courses/, built by scripts/build-courses.mjs) */
.cx-goals { margin: 20px 0 24px; padding: 18px 22px; }
.cx-goals ul { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.cx-curric { margin: 12px 0 0; font-size: .9rem; }
.cx-worked { margin: 28px 0; padding: 18px 22px; box-shadow: inset 3px 0 0 var(--rock), inset 0 0 0 1px rgba(43, 52, 66, .14); }
.cx-worked h2 { margin: 4px 0 10px; font-size: 1.25rem; }
.cx-steps { padding-left: 22px; display: grid; gap: 6px; margin: 10px 0; }
.cx-answer-line { margin: 10px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--panel); }
.cx-try p + p { margin-top: 10px; }
.cx-related-groups p { margin: 6px 0; }
.cx-curric-list { display: grid; gap: 6px; padding-left: 22px; }
.cx-cert-todo { display: grid; gap: 4px; padding-left: 22px; }
.cx-cert-todo li.is-done::marker { color: var(--good); }
.cx-cert-todo li.is-done a::after { content: " ✓"; color: var(--good); font-weight: 700; }
.cx-cert-ready .field { max-width: 360px; width: 100%; }
.cx-cert { margin: 24px 0; padding: 40px 28px; text-align: center; border: 3px double var(--ember); border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 10px #fff, inset 0 0 0 11px var(--line); }
.cx-cert p { margin: 0; }
.cx-cert-site { font-family: var(--display); font-size: .95rem; letter-spacing: .14em; text-transform: uppercase; color: var(--rock); }
.cx-cert-kicker { font-family: var(--display); font-size: clamp(1.2rem, 4vw, 1.9rem); margin: 14px 0 22px !important; }
.cx-cert-this { color: var(--mist); }
.cx-cert-name { font-size: clamp(1.5rem, 5vw, 2.4rem); font-weight: 600; margin: 10px auto 14px !important; padding-bottom: 6px; border-bottom: 1px solid var(--line); max-width: 30ch; min-height: 1.4em; overflow-wrap: anywhere; }
.cx-cert-course { font-size: 1.25rem; font-weight: 600; margin: 8px 0 18px !important; }
.cx-cert-score, .cx-cert-date { color: var(--mist); font-size: .95rem; }
@media print {
  body:has(.cx-cert-ready:not([hidden])) * { visibility: hidden; }
  body:has(.cx-cert-ready:not([hidden])) .cx-cert, body:has(.cx-cert-ready:not([hidden])) .cx-cert * { visibility: visible; }
  body:has(.cx-cert-ready:not([hidden])) .cx-cert { position: absolute; left: 0; right: 0; top: 0; margin: 0; padding: 60px 40px; }
}

/* ---------- Fireball reports, Ask Howardites, meteorite of the week ---------- */
.fb-page .unsub-hp, .ask-page .unsub-hp { position: absolute; left: -9999px; width: 1px; }
.fb-form fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 16px; margin: 0; display: grid; gap: 12px; min-width: 0; }
.fb-form legend { font-weight: 600; padding: 0 6px; }
.fb-form select { font: inherit; padding: 11px 13px; border-radius: 12px; border: 1px solid #cbd5e1; background: #fff; color: #111; width: 100%; }
.fb-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fb-pos { display: grid; gap: 10px; align-content: start; }
.fb-h { font-weight: 500; }
.fb-colours { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.fb-colours .fb-h { flex-basis: 100%; }
.contact-card .fb-colours label, .contact-card .ask-check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.contact-card .fb-colours input, .contact-card .ask-check input { width: auto; }
.fb-geo { margin: 0; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.fb-geo .btn.ghost { background: transparent; color: #2b3442; box-shadow: inset 0 0 0 1px rgba(100, 116, 139, .4); }
@media (max-width: 600px) { .fb-row { grid-template-columns: 1fr; } }
.ask-list, .motw-archive { list-style: none; padding: 0; margin: 12px 0 24px; display: grid; gap: 10px; }
.ask-list a, .motw-archive a { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; color: inherit; text-decoration: none; background: var(--panel); }
.ask-list a:hover, .motw-archive a:hover { border-color: #94a3b8; }
.ask-list span:last-child, .motw-archive span:last-child { color: var(--mist); }
.ask-empty { padding: 16px 18px; }
.ask-empty p { margin: 0 0 6px; }
.motw-current .motw-name { margin-top: 6px; font-size: 1.6rem; }
.door .motw-meta { margin-top: auto; padding-top: 10px; font-size: .88rem; color: var(--ember); font-weight: 500; }
