/* 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%; scroll-padding-top: calc(var(--header-h) + 12px + env(safe-area-inset-top)); } /* focused items never slide under the sticky header (2 Nov 2026) */
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; }
/* A word too long for the line (a web or email address in body text) breaks instead of pushing the page wider on a phone. */
main { overflow-wrap: break-word; }
.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; }
.site-footer .ico-badge { margin: 0; flex: 0 1 auto; max-width: 100%; }
.site-footer .ico-badge a { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 14px; border: 1px solid currentColor; border-radius: 999px; font-size: .8rem; line-height: 1.3; overflow-wrap: anywhere; }
@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(min(260px, 100%), 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 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); } }
/* Reduced motion calms the page, but the news strip and the guides keep moving (Joseph, 10 Nov 2026: Windows asks for
   reduced motion whenever its Animation effects are off, which froze them on his desktop). The strip has a pause button. */
@media (prefers-reduced-motion: reduce) { *:not(.tk-track, .guide, .guide *), *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.new-pill { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: #16a34a; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .3px; vertical-align: 2px; }
.new-key { margin: 10px 0 0; font-size: 14px; color: var(--mist, #555); }
.new-key .new-pill { margin: 0 6px 0 0; }
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; }

/* Country flags on catalogue country pages and the country list (self-hosted img/flags PNGs). */
.country-list { list-style: none; padding: 0; margin: 12px 0 8px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 14px; }
.country-list li { margin: 0; }
.country-list a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 12px; border: 1px solid rgba(127, 127, 127, .22); border-radius: 10px; text-decoration: none; color: inherit; background: rgba(127, 127, 127, .04); transition: background .15s, border-color .15s; }
.country-list a:hover, .country-list a:focus-visible { border-color: currentColor; background: rgba(127, 127, 127, .1); }
.country-list .cl-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.country-list .cl-count { font-variant-numeric: tabular-nums; font-size: .85em; opacity: .7; }
.flag { flex: none; width: 20px; height: 15px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); }
.flag-lg { width: 40px; height: 30px; border-radius: 4px; }
.h1-flag { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) { .country-list a { transition: none; } }
.country-chip { margin: -4px 0 14px; }
.country-chip .country-link, .facts .country-link { display: inline-flex; align-items: center; gap: 8px; }
.country-chip .country-link { padding: 5px 12px 5px 8px; border: 1px solid rgba(127, 127, 127, .25); border-radius: 999px; text-decoration: none; font-weight: 500; font-size: .95em; color: inherit; background: rgba(127, 127, 127, .05); }
.country-chip .country-link:hover, .country-chip .country-link:focus-visible { border-color: currentColor; }
.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); }
.door-today { min-width: 0; overflow: hidden; }
.door-today .today-locator { min-width: 0; width: 0; }
@media (max-width: 600px) { .door-today .today-locator { width: 100%; } }
@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-tile .img-credit { padding: 0 12px 10px; margin-top: -6px; font-size: .75rem; color: var(--mist); }
.gallery-hero { margin: 0 0 20px; }
.gallery-hero img { width: 100%; height: auto; aspect-ratio: 4 / 3; 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; } }
/* Site search results panel (site/js/search.js) and search.html. The header has no search icon:
   the home page carries the search bar, under the map on a phone and under the map and globe on a wider screen. */
@media (max-width: 860px) { .site-header .wrap > .lang-btn { margin-left: auto; } }
@media (max-width: 420px) { .site-header .brand { min-width: 0; flex: 0 1 auto; overflow: hidden; } }
@media (max-width: 380px) { .site-header .lang-btn, .site-header .sound-btn, .site-header .share-btn, .site-header .acct-icon, .site-header .acct-pill:not(.acct-me), .site-header .acct-me { width: 32px; height: 32px; } .site-header .lang-btn svg, .site-header .sound-btn svg { width: 18px; height: 18px; } .site-header .sound-btn, .site-header .share-btn, .site-header .acct-bar { margin-left: 2px; } }
.search-pop { position: absolute; z-index: 85; top: calc(100% + 6px); right: 12px; width: min(560px, calc(100vw - 24px)); max-height: min(75vh, 640px); overflow: auto; overscroll-behavior: contain; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid rgba(17,17,17,.12); box-shadow: 0 16px 38px -14px rgba(15, 23, 42, .45); }
.search-pop[hidden] { display: none; }
.ss-form { display: flex; gap: 8px; padding-right: 44px; }
.ss-form input[type=search], .sp-form input[type=search] { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--paper); }
.ss-hint { margin: 8px 4px 4px; font-size: .88rem; }
.ss-list, .sp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ss-item a { display: block; padding: 9px 10px; border-radius: 10px; color: var(--paper); text-decoration: none; }
.ss-item a:hover, .ss-item a:focus-visible { background: var(--raised); outline: none; }
.ss-item a:focus-visible { box-shadow: inset 0 0 0 2px var(--ember); }
.ss-item strong { font-weight: 600; }
.ss-desc { display: block; font-size: .88rem; color: var(--mist); margin-top: 2px; }
.ss-sec { display: block; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--mist); padding: 6px 10px 0; }
.ss-tag { display: inline-block; font-size: .72rem; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--raised); color: var(--mist); vertical-align: 2px; }
.ss-more a { font-size: .92rem; }
.ss-list .ss-more { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
.ss-list .ss-more + .ss-more { border-top: 0; margin-top: 0; padding-top: 0; }
@media (max-width: 860px) { .search-pop { left: 8px; right: 8px; width: auto; top: calc(100% + 4px); max-height: calc(100vh - var(--header-h) - 24px); } }
.sp-form { display: flex; gap: 8px; max-width: 640px; margin: 24px 0 8px; }
.sp-count { min-height: 1.5em; }
.sp-group { margin: 26px 0 0; }
.sp-group h2 { font-size: 1.15rem; margin: 0 0 6px; }
.sp-group .ss-item a { padding: 10px 12px; }
.sp-group .sp-all { display: inline-block; margin: 6px 12px 0; font-size: .92rem; }
.sp-groups { min-height: 40vh; }
.sp-lead { padding: 16px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.sp-say { margin: 0 0 8px; }
.sp-where { margin: 0 0 8px; }
.sp-lead .btn { margin-top: 4px; }
/* 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: var(--mist); margin: 4px 0 14px; } /* the credit line must be readable: #8b929c was 2.5:1 on the page background (16 Nov 2026) */

/* ---------- 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: minmax(0, 1fr); }
  .globe-box { order: -1; height: min(86vw, 440px); }
}
/* Home search: its own row under the map and the globe. On a phone the globe is ordered first,
   so this row sits under the meteorite map. A plain form, so it works signed out and with no script. */
.globe-hero > .home-search { grid-column: 1 / -1; position: relative; z-index: 3; width: 100%; margin: 4px 0 8px; }
.home-search.hero-search { background: #fff; box-shadow: 0 12px 32px -14px rgba(0, 0, 0, .65); }
.home-search .btn { flex: none; }
/* Live suggestions under the home search bar (js/search.js bindHeroSearch). Hidden when empty so a
   no-script submit to search.html is unchanged. The bar sits low under the globe, so the list
   opens upward and stays in the viewport (12 Nov 2026). */
.home-search > .ss-list {
  position: absolute; left: 0; right: 0; top: auto; bottom: calc(100% + 8px); z-index: 6;
  max-height: min(340px, 45vh); overflow-y: auto; overscroll-behavior: contain;
  padding: 8px; border-radius: 16px; background: #fff;
  border: 1px solid rgba(17, 17, 17, .12); box-shadow: 0 16px 38px -14px rgba(15, 23, 42, .45);
}
.home-search > .ss-list:empty, .home-search > .ss-list[hidden] { display: none; }


/* ---------- "We're back" box (first visit only) ---------- */
/* --wb-bottom (js/common.js): 16px, or higher while the join pill is in the bottom corner, so the box stacks above it. */
.welcome-box { position: fixed; z-index: 60; right: 16px; bottom: var(--wb-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); }
/* Never over a search bar (js/common.js): under the header instead, or out of sight while neither place is clear. */
.welcome-box.wb-top { top: var(--wb-top, 84px); bottom: auto; }
.welcome-box.wb-clear { visibility: hidden; pointer-events: none; }
.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; }
.ticker-region { position: relative; }
/* The built page keeps the strip's space until the headlines arrive, so nothing below it moves. */
.ticker-region[data-seo]:empty { height: 34px; background: rgba(255, 255, 255, .72); border-bottom: 1px solid rgba(100, 116, 139, .22); }
@media print { .ticker-region[data-seo]:empty { display: none; } }
.ticker.paused .tk-track { animation-play-state: paused; }
.tk-pause { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: var(--raised, #fff); color: var(--paper); font-size: 10px; line-height: 1; cursor: pointer; padding: 0; z-index: 2; }
.tk-pause:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
@media print { .tk-pause { display: none !important; } }
.tk-item { padding: 0 6px; color: inherit; text-decoration: none; } .tk-item small { color: var(--mist); margin-left: 4px; }
a.tk-item:hover, a.tk-item:focus-visible { text-decoration: underline; } a.tk-label { text-decoration: none; }
.ticker:focus-within .tk-track { animation-play-state: paused; }
.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; } }

.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; }
/* News cards (Latest + archive): our own headline, summary and picture */
.news-list li.news-card { display: grid; grid-template-columns: minmax(0, 132px) minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px 0; }
.news-card:not(:has(figure)) { grid-template-columns: minmax(0, 1fr); }
.news-card figure { margin: 0; min-width: 0; }
.news-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: var(--raised, #eef2f7); }
.news-card figcaption { font-size: .68rem; color: var(--mist); margin-top: 3px; }
.news-card strong { display: block; line-height: 1.35; overflow-wrap: anywhere; }
.news-card p { margin: 6px 0 4px; font-size: .92rem; line-height: 1.5; color: var(--paper); overflow-wrap: anywhere; }
.news-card small { white-space: normal; }
@media (max-width: 480px) { .news-list li.news-card { grid-template-columns: minmax(0, 1fr); } .news-card img { aspect-ratio: 16 / 9; } }
.news-see-more { margin: 14px 0 4px; text-align: center; }
/* Latest page lists and the home tile: each story with its picture. Fixed sizes, so nothing moves as pictures load. */
.news-list li.news-thumb { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: start; justify-content: stretch; }
.news-list li.news-thumb.no-pic { grid-template-columns: minmax(0, 1fr); }
.news-thumb figure { margin: 0; min-width: 0; }
.news-thumb img { display: block; width: 96px; height: 72px; object-fit: cover; border-radius: 8px; background: var(--raised, #eef2f7); }
.news-thumb figcaption { font-size: .62rem; line-height: 1.25; color: var(--mist); margin-top: 3px; overflow-wrap: anywhere; }
.news-thumb span { display: block; line-height: 1.4; overflow-wrap: anywhere; }
.news-list .news-thumb small { display: block; margin-top: 4px; white-space: normal; }
@media (max-width: 380px) { .news-list li.news-thumb { grid-template-columns: 72px minmax(0, 1fr); } .news-thumb img { width: 72px; height: 54px; } }
.door-live { min-height: 42px; }
.door-live-img { width: 56px; height: 42px; flex: none; object-fit: cover; border-radius: 6px; background: var(--raised, #eef2f7); }
.door-live-t { min-width: 0; }
.door-live-credit { display: block; font-size: .66rem; font-weight: 400; color: var(--mist); }
.event-pic { margin: -4px 0 12px; }
.event-pic img { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; border-radius: 12px; background: var(--raised, #eef2f7); }
.event-pic figcaption { font-size: .68rem; color: var(--mist); margin-top: 3px; }
.news-alerts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 10px 0; }
.news-alerts:empty { display: none; }
.na-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; }
.na-tools input { flex: 1 1 220px; min-width: 0; }
.na-tools select { flex: 0 1 200px; min-width: 0; }
.na-tools input, .na-tools select { padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(100, 116, 139, .35); font: inherit; background: #fff; color: var(--paper); }
.na-pages { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 18px 0; }
.na-pages a, .na-pages span { padding: 6px 11px; border-radius: 8px; border: 1px solid rgba(100, 116, 139, .25); text-decoration: none; }
.na-pages [aria-current] { background: var(--ember); color: #fff; border-color: transparent; }

/* ---------- 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: #475569; }

/* ---------- "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: #475569; 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-kids { margin: 4px 0 18px; }
.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: 16 / 9; object-fit: contain; box-shadow: inset 0 0 0 1px rgba(100, 116, 139, .2); background: #f1f4f7; }
/* 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: #475569; 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; }
.contact-safety { border: 2px solid #fca5a5; background: #fff5f5; color: #3f1d1d; border-radius: 14px; padding: 12px 14px; display: grid; gap: 8px; }
.contact-safety p { margin: 0; }
.contact-card .contact-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.contact-card .contact-check input { width: 22px; height: 22px; flex: none; margin: 2px 0 0; accent-color: #b91c1c; }
.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; }
.lt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; }
.lt-actions .lt-more { margin-top: 0; }
a.lt-more { text-decoration: none; display: inline-block; line-height: normal; }
.lt-tile.lt-open .lt-actions .lt-more:not(a) { display: none; }
.lt-tile.lt-open a.lt-more { display: inline-block; }
.lt-alerts { display: contents; }
.lt-alerts .alerts-btn { font: inherit; font-size: .88rem; font-weight: 500; padding: 7px 16px; border-radius: 999px; border: 0; cursor: pointer; color: #2b3442; background: rgba(241, 245, 249, .95); box-shadow: inset 0 0 0 1px rgba(100, 116, 139, .3); }
.lt-alerts .alerts-note { flex-basis: 100%; font-size: .8rem; }
.lt-alerts .alerts-note:empty { display: none; }
@media (max-width: 420px) { .lt-actions { gap: 6px; } .lt-actions .lt-more, .lt-alerts .alerts-btn { padding: 7px 12px; white-space: nowrap; } }
/* 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; }
/* Photos whose shape is not known when the page is built sit in a box of fixed shape (contained, never cropped),
   so nothing below them moves while they load. A photo found later for a placeholder takes the placeholder's box. */
figure.stone-photo img.photo-box { width: 100%; height: auto; aspect-ratio: 8 / 5; max-height: 520px; object-fit: contain; }
figure.type-photo img.photo-box { max-height: 440px; }
.stone-photo.placeholder.found img { object-fit: contain; box-shadow: none; background: #f1f4f7; }
/* 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, .meteorite-list[hidden], p.new-key[hidden], .catalogue-new-key[hidden], 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); }
/* Sets of books sold together: both covers, slightly fanned */
.bk-cover-set svg, .bp-cover-set svg, .bp-set-art svg { box-shadow: none; border-radius: 0; filter: drop-shadow(0 16px 18px rgba(15, 23, 42, .35)); }
.bk-set .bk-p s, .bp-set s { margin-left: 4px; font-size: .85em; }
.bp-cover-set { max-width: 420px; }
.bp-set { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 12px 16px; border-radius: 12px; text-decoration: none; color: inherit; background: #fbf7ec; box-shadow: inset 0 0 0 1px rgba(176, 138, 46, .35); max-width: 460px; }
.bp-set:hover { box-shadow: inset 0 0 0 2px rgba(176, 138, 46, .6); }
.bp-set-art { flex: 0 0 96px; }
.bp-set-art svg { width: 96px; }
.bp-set-text { display: grid; gap: 2px; font-size: .92rem; }
.bp-set-text b { font-size: 1rem; }
/* 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; }

/* ---------- Fireball map (Leaflet, fireball-map.html) ---------- */
.fm-map { height: min(72vh, 760px); min-height: 320px; width: 100%; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #aad3df; position: relative; z-index: 0; }
.fm-actions { flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.fm-pop strong { display: block; margin-bottom: 4px; }
.fm-pop dl { margin: 0 0 6px; display: grid; gap: 2px; }
.fm-pop dl div { display: flex; gap: 8px; justify-content: space-between; }
.fm-pop dt { color: #64748b; } .fm-pop dd { margin: 0; text-align: right; }
.fm-credits { margin: 22px 0 8px; } .fm-credits h2 { font-size: 1rem; margin: 0 0 6px; } .fm-credits p { margin: 0 0 4px; }
.leaflet-pane .fm-pin { filter: hue-rotate(150deg) saturate(2.2); }
a.coord-link { white-space: nowrap; }
@media (max-width: 600px) { .fm-map { height: 62vh; } }

/* ---------- Learn progress (learn-progress.js) ---------- */
.lp { display: flex; flex-direction: column; gap: 5px; margin-top: 10px; font-size: .82rem; line-height: 1.3; color: var(--muted, #9aa3b2); width: 100%; }
.lp-text { overflow-wrap: anywhere; }
.lp-ok { color: #4ade80; font-weight: 600; white-space: nowrap; }
.lp-bar { display: block; height: 6px; border-radius: 99px; background: rgba(148,163,184,.22); overflow: hidden; }
.lp-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f59e0b, #fbbf24); transition: width .4s ease; }
.lp.is-done .lp-bar i { background: linear-gradient(90deg, #22c55e, #4ade80); }
.lp.is-new .lp-text { opacity: .8; }
.cx-lesson-card { flex-wrap: wrap; }
.cx-lesson-card > .lp { flex-basis: 100%; margin-top: 4px; }
.lp-hub { margin: 18px 0 4px; display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.lp-hub .lp-continue { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; max-width: 100%; white-space: normal; }
.lp-hub .lp-continue small { font-weight: 400; opacity: .85; overflow-wrap: anywhere; }
/* Joseph: white button, black text, gentle pulsing glow (still when reduced motion is asked for) */
.lp-hub .btn.lp-continue { background: #fff; color: #000; border: 1px solid rgba(0, 0, 0, .18); box-shadow: 0 0 14px 2px rgba(255, 255, 255, .9), 0 2px 10px rgba(0, 0, 0, .12); animation: lp-glow 2.6s ease-in-out infinite; }
.lp-hub .btn.lp-continue:hover, .lp-hub .btn.lp-continue:focus-visible { background: #fff; color: #000; }
.lp-hub .btn.lp-continue small { color: #000; }
@keyframes lp-glow { 0%, 100% { box-shadow: 0 0 10px 1px rgba(255, 255, 255, .7), 0 2px 10px rgba(0, 0, 0, .1); } 50% { box-shadow: 0 0 26px 8px rgba(255, 255, 255, 1), 0 2px 18px rgba(0, 0, 0, .2); } }
@media (prefers-reduced-motion: reduce) { .lp-hub .btn.lp-continue { animation: none; } }
.lp-hub .lp-sum { margin: 0; }
.lp-hub .lp-sum .lp { margin-top: 0; font-size: .9rem; }
.lp-reset { font-size: .85rem; }
.lp-reset summary { cursor: pointer; color: var(--muted, #9aa3b2); display: inline-block; padding: 4px 0; }
.lp-reset summary:focus-visible { outline: 2px solid #fbbf24; outline-offset: 2px; }
.lp-reset p { margin: 6px 0; }
.cx-next-row { margin-top: 14px; }
.cx-next { white-space: normal; text-align: left; max-width: 100%; }
@media (prefers-reduced-motion: reduce) { .lp-bar i { transition: none; } }
/* ---------- Shared map (js/hwmap.js, Ayumi 2026-11-01) ---------- */
.hwmap-views { display: flex; background: #fff; overflow: hidden; }
.hwmap-views button { border: 0; background: #fff; color: #1f2937; font: 600 12px/1 system-ui, sans-serif; padding: 8px 9px; cursor: pointer; border-right: 1px solid #ccc; }
.hwmap-views button:last-child { border-right: 0; }
.hwmap-views button:hover { background: #f1f5f9; }
.hwmap-views button[aria-pressed="true"] { background: #1f2937; color: #fff; }
/* Cluster circles: the marker is an invisible tap area of at least 44 px; the visible circle is its span (size set by hwmap.js). */
.hwmap-cluster { display: grid; place-items: center; border-radius: 50%; color: #fff; font: 700 12px/1 system-ui, sans-serif; }
.hwmap-cluster > span { display: block; position: absolute; inset: 0; margin: auto; border-radius: 50%; background: rgba(234, 88, 12, .85); box-shadow: 0 0 0 4px rgba(234, 88, 12, .35), 0 1px 4px rgba(0,0,0,.4); }
.hwmap-cluster:focus-visible { outline: none; }
.hwmap-cluster:focus-visible > span { outline: -webkit-focus-ring-color auto 1px; }
.leaflet-container .leaflet-control-attribution { font-size: 10px; }
.leaflet-container { font: inherit; }
.coord-link { text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
/* ✕ close button for every pop-up panel (js/closable.js) */
.panel-x { position: absolute; top: 8px; right: 8px; z-index: 5; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); background: #fff; color: #111; font: 700 16px/1 system-ui, sans-serif; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.panel-x:hover, .panel-x:focus-visible { background: #111; color: #fff; outline: none; }
.lang-box > .panel-x { width: 30px; height: 30px; top: 6px; right: 6px; font-size: 14px; }
.news-src { font-weight: 600; }
/* News stories: headline, then what happened in 4 or 5 lines, then the source on its own line. */
.news-thumb .news-h { display: block; line-height: 1.35; overflow-wrap: anywhere; }
.news-body { margin: 6px 0 4px; font-size: .92rem; line-height: 1.55; color: var(--paper); overflow-wrap: anywhere; }
.news-body .news-sum { margin: 0 0 .7em; }
.news-body .news-sum:last-child { margin-bottom: 0; }
/* Collapsed Latest tiles keep a short preview; the open tile, a targeted story and the archive show the full article. */
.lt-tile:not(.lt-open) .news-body { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; line-clamp: 6; overflow: hidden; }
.lt-tile.lt-open .news-body, .news-target .news-body, .na-list .news-body { display: block; -webkit-line-clamp: unset; line-clamp: unset; overflow: visible; }
.news-list li.news-target { background: rgba(14, 116, 144, .1); box-shadow: inset 0 0 0 2px #0e7490; border-radius: 10px; padding-left: 10px; padding-right: 10px; scroll-margin-top: 120px; }
.news-list small .news-src { display: inline; }
.consent > strong, .welcome-box > strong { padding-right: 40px; }
/* Share button (header, beside translate/sound) and its fallback menu */
.share-btn { order: 2; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(17,17,17,.1); background: rgba(255,255,255,.6); color: var(--ember); cursor: pointer; margin-left: 6px; flex: none; }
.share-btn svg { width: 19px; height: 19px; }
.share-btn:hover, .share-btn[aria-expanded="true"] { background: var(--ember); color: #fff; }
.site-header .wrap { position: relative; }
.share-menu { position: absolute; z-index: 80; top: calc(100% + 6px); right: 12px; width: min(240px, calc(100vw - 24px)); display: grid; gap: 4px; padding: 14px 12px 10px; border-radius: 16px; background: #fff; border: 1px solid rgba(17,17,17,.12); box-shadow: 0 14px 34px -14px rgba(15, 23, 42, .45); }
.share-menu[hidden] { display: none; }
.share-menu strong { font-size: .95rem; padding: 2px 44px 6px 6px; color: var(--paper); }
.share-menu [data-share] { text-align: left; padding: 9px 10px; border: 0; border-radius: 10px; background: none; font: inherit; color: var(--paper); cursor: pointer; }
.share-menu [data-share]:hover, .share-menu [data-share]:focus-visible { background: var(--raised); outline: none; }
.share-menu [data-share]:focus-visible { box-shadow: inset 0 0 0 2px var(--ember); }
.share-note { margin: 2px 6px 0; font-size: .85rem; color: var(--mist); min-height: 1em; }
@media (max-width: 420px) {
  .site-header .wrap { gap: 8px; }
  .share-btn, .lang-btn, .sound-btn { width: 36px; height: 36px; }
  .share-btn, .sound-btn { margin-left: 4px; }
  .menu-btn { padding: 7px 11px; }
}
@media (max-width: 380px) {
  .site-header .wrap { gap: 6px; padding: 0 10px; }
  .brand { font-size: 1rem; min-width: 0; }
  .share-btn, .lang-btn, .sound-btn { width: 34px; height: 34px; }
  .share-btn, .sound-btn { margin-left: 2px; }
}
@media (max-width: 360px) {
  .menu-btn { width: 36px; height: 34px; padding: 0; justify-content: center; font-size: 0; }
  .menu-btn::before { content: "☰"; font-size: 18px; line-height: 1; }
}

/* ---------- Accounts (Ayumi, 2026-11-01): top-bar controls, account.html, my-progress.html ---------- */
.acct-bar { order: 2; display: flex; align-items: center; gap: 6px; margin-left: 6px; flex: none; }
.acct-icon { 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); }
.acct-icon svg, .acct-pill svg { width: 20px; height: 20px; }
.acct-icon[aria-current="page"] { background: var(--ember); color: #fff; }
.acct-pill { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(17,17,17,.12); background: rgba(255,255,255,.7); color: var(--paper); font: inherit; font-size: .92rem; font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer; }
.acct-pill:hover { background: var(--raised); }
.acct-pill > svg { display: none; }
.acct-new { background: var(--ember); border-color: var(--ember); color: #fff; }
.acct-new:hover { background: var(--steel); }
.acct-initial { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ember); color: #fff; font-size: .8rem; font-weight: 600; }
.acct-me { padding: 0 10px 0 8px; max-width: 170px; }
.acct-me .acct-full { overflow: hidden; text-overflow: ellipsis; }
.acct-caret { font-size: .7rem; color: var(--mist); }
.acct-menu { position: relative; }
.acct-drop { position: absolute; right: 0; top: calc(100% + 6px); min-width: 180px; z-index: 60; display: flex; flex-direction: column; padding: 6px; border-radius: 14px; background: rgba(255,255,255,.98); border: 1px solid var(--line); box-shadow: 0 14px 30px -12px rgba(15,23,42,.35); }
.acct-drop[hidden] { display: none; }
.acct-drop a, .acct-drop button { display: block; text-align: left; padding: 10px 12px; border-radius: 10px; color: var(--paper); text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; }
.acct-drop a:hover, .acct-drop button:hover { background: var(--raised); }
.acct-navlinks { display: none; }
@media (max-width: 1360px) { .acct-new { display: none; } }
@media (max-width: 1100px) and (min-width: 861px) { .acct-me .acct-full, .acct-me .acct-caret { display: none; } .acct-me { padding: 0 7px; } }
@media (max-width: 860px) {
  .acct-bar { gap: 6px; }
  .acct-pill:not(.acct-me) { width: 40px; padding: 0; justify-content: center; border-radius: 12px; }
  .acct-pill > svg { display: block; }
  .acct-pill .acct-full, .acct-me .acct-caret { display: none; }
  .acct-me { width: 40px; padding: 0; justify-content: center; border-radius: 12px; }
  .acct-navlinks { display: contents; }
  .nav .acct-navlinks a:first-child { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px; }
}
@media (max-width: 380px) {
  .site-header .wrap { gap: 6px; }
  .acct-bar, .lang-btn, .sound-btn { margin-left: 4px; }
  .acct-bar { gap: 4px; margin-left: 4px; }
  .acct-icon, .acct-pill:not(.acct-me), .acct-me, .lang-btn, .sound-btn { width: 36px; height: 36px; }
  .menu-btn { padding: 7px 10px; }
  .lang-btn { margin-left: auto; }
}
.lp-signup { margin: 10px 0 0; font-weight: 500; }
.cx-signup { display: inline-block; margin-top: 10px; font-weight: 500; }
.ac-wrap { max-width: 620px; }
.ac-card { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); margin: 8px 0 18px; }
.ac-tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.ac-tabs button { flex: 1; padding: 10px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: inherit; cursor: pointer; color: var(--paper); }
.ac-tabs button[aria-selected="true"] { background: var(--ember); border-color: var(--ember); color: #fff; font-weight: 600; }
.ac-form { display: flex; flex-direction: column; gap: 12px; }
.ac-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; }
.ac-form input { font: inherit; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; width: 100%; min-width: 0; }
.ac-form input.ac-code { font-size: 1.4rem; letter-spacing: .3em; max-width: 220px; }
.ac-form .btn { align-self: flex-start; }
.ac-row { flex-direction: row; flex-wrap: wrap; align-items: flex-end; }
.ac-row label { flex: 1 1 200px; }
.ac-row .ac-out { flex-basis: 100%; }
.ac-ts { min-height: 65px; }
.ac-msg { margin: 0; padding: 10px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.ac-msg.bad { border-color: var(--bad); color: var(--bad); }
.ac-or { display: flex; align-items: center; gap: 10px; margin: 16px 0 10px; color: var(--mist); }
.ac-or::before, .ac-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.ac-provider { display: flex; justify-content: center; margin-top: 8px; }
.ac-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 16px; }
.ac-facts dt { color: var(--mist); }
.ac-facts dd { margin: 0; overflow-wrap: anywhere; }
.ac-sec { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 14px; }
.ac-sec h2 { font-size: 1.1rem; margin: 0 0 6px; }
.ac-key { display: inline-block; font-size: 1.05rem; padding: 6px 10px; border-radius: 8px; background: #fff; border: 1px solid var(--line); margin: 6px 0; overflow-wrap: anywhere; }
.ac-steps { padding-left: 1.2em; }
.ac-steps li { margin-bottom: 8px; }
.ac-backup { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fffbeb; }
.ac-codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(130px, 100%), 1fr)); gap: 6px 14px; padding-left: 1.4em; margin: 8px 0 12px; }
.ac-codes code { font-size: 1.02rem; letter-spacing: .04em; }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.mp-signup, .mp-acct { padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.mp-signup p { margin: 0 0 10px; } .mp-signup p:last-child { margin: 0; }
.mp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 18px 0; }
.mp-stats div { padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; }
.mp-stats b { font-size: 1.6rem; }
.mp-stats span { color: var(--mist); font-size: .92rem; }
.mp-course { border: 1px solid var(--line); border-radius: 14px; margin: 8px 0; background: #fff; }
.mp-course summary { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; padding: 12px 14px; cursor: pointer; }
.mp-course summary .lp-bar { grid-column: 1 / -1; }
.mp-name { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.mp-count { color: var(--mist); font-size: .92rem; white-space: nowrap; }
.mp-lessons { margin: 0; padding: 0 14px 12px 2.2em; }
.mp-lessons li { padding: 4px 0; }
.mp-lessons small { color: var(--mist); }
.mp-lessons .is-done small { color: var(--good); }
/* Header fit (Ayumi, 2026-11-01): keep the top bar on one line from 320px to 1200px with the account controls. */
@media (max-width: 1200px) and (min-width: 861px) {
  .site-header .wrap { gap: 8px; }
  .nav { gap: 0; }
  .nav a { padding: 8px 8px; font-size: .9rem; }
  .acct-pill:not(.acct-me) { width: 40px; padding: 0; justify-content: center; border-radius: 12px; }
  .acct-pill:not(.acct-me) > svg { display: block; }
  .acct-pill:not(.acct-me) .acct-full { display: none; }
  .acct-me .acct-full, .acct-me .acct-caret { display: none; }
  .acct-me { padding: 0 7px; }
}
@media (max-width: 860px) { .acct-bar > .acct-icon { display: none; } }
@media (max-width: 400px) {
  .site-header .wrap { padding: 0 12px; gap: 6px; }
  .brand { gap: 7px; font-size: 1.02rem; }
  .brand svg { width: 26px; height: 26px; }
  .menu-btn { padding: 7px 10px; }
}
@media (max-width: 340px) {
  .site-header .wrap { padding: 0 10px; gap: 4px; }
  .brand { font-size: .95rem; gap: 6px; }
  .brand svg { width: 24px; height: 24px; }
  .acct-bar, .lang-btn, .sound-btn { margin-left: 2px; }
  .acct-icon, .acct-pill:not(.acct-me), .acct-me, .lang-btn, .sound-btn { width: 32px; height: 32px; }
  .menu-btn { padding: 0; }
}
.door-today > div:last-child { min-width: 0; overflow-wrap: anywhere; }
/* Header fit with the account controls and share button (2026-11-01): one line, no sideways scroll, 320px to 1920px. */
@media (max-width: 1200px) and (min-width: 861px) {
  .nav a { padding: 8px 6px; font-size: .88rem; }
  .share-btn, .sound-btn, .lang-btn { margin-left: 0; }
}
@media (max-width: 960px) and (min-width: 861px) {
  .brand { font-size: 1rem; gap: 7px; }
  .nav a { padding: 8px 5px; font-size: .84rem; }
}
@media (max-width: 360px) {
  .site-header .wrap { padding: 0 8px; gap: 3px; }
  .brand { font-size: .9rem; gap: 5px; letter-spacing: 0; }
  .brand svg { width: 22px; height: 22px; }
  .acct-bar, .lang-btn, .sound-btn, .share-btn { margin-left: 0; }
  .acct-icon, .acct-pill:not(.acct-me), .acct-me, .lang-btn, .sound-btn, .share-btn { width: 30px; height: 30px; }
  .share-btn svg, .sound-btn svg, .lang-btn svg, .acct-pill svg { width: 17px; height: 17px; }
  .menu-btn { width: 32px; height: 30px; overflow: hidden; }
}
/* Header fit (3 Nov 2026): the top bar never runs off the right of the page, so the account button is never cut off.
   Widths measured with the site's own font and with a wider stand-in font, signed out and signed in:
   the full-size bar needs about 1325-1450px, the medium one about 1290-1350px, the small one about 1030-1060px.
   - The buttons never squash (so js/common.js fitNav can measure the bar exactly).
   - 861-1099px: the Menu button (the small bar doesn't fit with room to spare).
   - 1100-1339px: the small bar (account as icons), as at 1100-1200px.
   - 1340-1479px: medium links with "Sign in" or the name.
   - 1480px and up: full size; the top bar may be up to 1480px wide, a little wider than the page, so it fits.
   If it still doesn't fit (a very wide font, a translation, a very long name), fitNav switches to the Menu button. */
.site-header .wrap > :not(.brand) { flex-shrink: 0; }
@media (min-width: 861px) { .site-header .brand { flex-shrink: 0; } }
@media (min-width: 861px) and (max-width: 1099px) {
  .site-header .menu-btn { display: inline-flex; align-items: center; gap: 8px; }
  .site-header .brand { margin-right: auto; }
  .site-header .nav { display: none; position: absolute; left: auto; right: 16px; top: calc(var(--header-h) + env(safe-area-inset-top)); width: min(340px, 92vw); max-height: calc(100vh - var(--header-h) - 24px); overflow: auto; flex-direction: column; background: var(--ink); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 40px -18px rgba(15, 23, 42, .45); padding: 10px 16px 16px; }
  .site-header .nav.open { display: flex; }
  .site-header .nav a { padding: 12px 14px; font-size: 1.05rem; white-space: normal; }
}
@media (min-width: 1201px) {
  .site-header .wrap { max-width: 1480px; }
}
@media (min-width: 1201px) and (max-width: 1339px) {
  .site-header .wrap { gap: 8px; }
  .nav { gap: 0; }
  .nav a { padding: 8px 6px; font-size: .88rem; }
  .share-btn, .sound-btn, .lang-btn { margin-left: 0; }
  .acct-pill:not(.acct-me) { width: 40px; padding: 0; justify-content: center; border-radius: 12px; }
  .acct-pill:not(.acct-me) > svg { display: block; }
  .acct-pill:not(.acct-me) .acct-full { display: none; }
  .acct-me .acct-full, .acct-me .acct-caret { display: none; }
  .acct-me { padding: 0 7px; }
}
@media (min-width: 1340px) and (max-width: 1479px) {
  .site-header .wrap { gap: 12px; }
  .nav { gap: 2px; }
  .nav a { padding: 8px 8px; font-size: .92rem; }
  .acct-me { max-width: 150px; }
}

/* ===== Learning, not memorising (1 Nov 2026): study gate, revise, final tests, certificates ===== */
.cx-gate { padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: #fff; margin: 10px 0; }
.cx-gate p { margin: 0 0 10px; } .cx-gate p:last-child { margin-bottom: 0; }
.cx-gate .lp-bar { display: block; margin: 8px 0; }
.cx-pass { padding: 16px 18px; border-radius: 14px; border: 1px solid #b7e4c7; background: #f0fdf4; margin: 10px 0; }
.cx-pass p { margin: 0 0 10px; } .cx-pass p:last-child { margin-bottom: 0; }
.cx-break { text-align: center; }
.cx-revise { padding: 12px 14px; border-radius: 12px; background: #fff7ed; border: 1px solid #fed7aa; margin: 0 0 10px; }
.cx-revise p { margin: 0 0 6px; } .cx-revise ul { margin: 0; padding-left: 1.2em; }
.cx-revise li.is-done { color: var(--good, #15803d); }
.cx-retry button:disabled { opacity: .6; cursor: not-allowed; }
.cx-score.cx-score-retry, .lp-retry { color: #b45309; }
.cx-todo { margin: 6px 0 0; padding-left: 1.2em; }
.cx-todo li { padding: 3px 0; } .cx-todo li.is-done { color: var(--good, #15803d); }
.cx-todo small { color: var(--mist); }
.cx-exam-facts { margin: 6px 0 12px; padding-left: 1.2em; color: var(--mist); }
.cx-exam-head { display: flex; justify-content: space-between; gap: 10px; font-weight: 600; margin: 6px 0; }
.cx-exam-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0; }
.cx-exam-nav .btn[hidden] { display: none; }
.cx-exam-nav .btn:disabled { opacity: .55; cursor: not-allowed; }
.cx-final .lp-bar, .cx-final > .lp-bar { display: block; margin: 0 0 12px; }
/* While the final test box is still loading, it keeps the room its "Sign up" box takes, so the links below it do not jump down. */
.cx-final:not(.cx-kids):has(> .spinner:only-child) { min-height: 278px; }
@media (max-width: 800px) { .cx-final:not(.cx-kids):has(> .spinner:only-child) { min-height: 304px; } }
@media (max-width: 620px) { .cx-final:not(.cx-kids):has(> .spinner:only-child) { min-height: 330px; } }
@media (max-width: 460px) { .cx-final:not(.cx-kids):has(> .spinner:only-child) { min-height: 436px; } }
@media (max-width: 410px) { .cx-final:not(.cx-kids):has(> .spinner:only-child) { min-height: 490px; } }
@media (max-width: 370px) { .cx-final:not(.cx-kids):has(> .spinner:only-child) { min-height: 542px; } }
@media (max-width: 340px) { .cx-final:not(.cx-kids):has(> .spinner:only-child) { min-height: 630px; } }
.cx-finish { margin: 12px 0 4px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cx-lesson-card.is-retry .cx-tick { color: #b45309; }
.lp-bar.is-retry i { background: #f59e0b; }
.cx-cert-preview { margin: 14px 0; } .cx-cert-preview img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 12px 34px -16px rgba(15, 23, 42, .5); }
.cert-print { display: none; }

/* Already read, next unread, section strip, ticks on links */
.ex-strip, .ex-again { margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .75); border: 1px solid var(--line); font-size: .95rem; }
.ex-strip .lp-bar { display: block; margin-bottom: 6px; }
.ex-again { background: #f0fdf4; border-color: #b7e4c7; }
.ex-again-t { font-weight: 600; color: var(--good, #15803d); }
.ex-again-next { display: inline-block; margin-top: 4px; font-weight: 600; }
main a.is-seen:not(.btn)::after { content: " ✓"; color: var(--good, #15803d); font-weight: 700; font-size: .85em; text-decoration: none; display: inline-block; margin-left: 2px; }

/* Reset warning dialog */
.rs-dialog { max-width: min(560px, 92vw); border: 0; border-radius: 18px; padding: 22px 24px; box-shadow: 0 30px 70px -20px rgba(15, 23, 42, .55); }
.rs-dialog::backdrop { background: rgba(15, 23, 42, .45); }
.rs-dialog h2 { margin: 0 0 10px; font-size: 1.25rem; }
.rs-dialog ul { margin: 4px 0 12px; padding-left: 1.2em; } .rs-clears li { color: #9a3412; } .rs-keeps li { color: #166534; }
.rs-warn { font-weight: 700; color: var(--bad, #b91c1c); }
.rs-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

/* Account page additions */
.ac-names { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 12px; }
.ac-age { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 0; }
.ac-age legend { font-weight: 600; padding: 0 4px; }
.ac-radio { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px; font-weight: 400 !important; }
.ac-radio input { width: auto !important; }
.ac-kid { margin: 0; padding: 10px 12px; border-radius: 10px; background: #fff7ed; border: 1px solid #fed7aa; }
.ac-kid[hidden] { display: none !important; }
.ac-note { margin: 0; padding: 10px 12px; border-radius: 10px; background: #eff6ff; border: 1px solid #bfdbfe; }
.ac-device { margin: 0 0 14px; border-color: #fed7aa; background: #fff7ed; }
.ac-device p { margin: 0; }
.ac-help { margin-top: 12px; }
/* Email typed twice at sign-up (2 Nov 2026) */
#ac-email2-hint { margin: -8px 0 0; font-size: .88rem; color: var(--mist); }
.ac-field-err { margin: -6px 0 0; color: var(--bad); font-weight: 500; font-size: .92rem; }
.ac-field-err::before { content: "\26A0\FE0E  "; }
.ac-field-err[hidden] { display: none; }
.ac-form input[aria-invalid="true"] { border-color: var(--bad); border-width: 2px; }
/* Safeguarding page */
.sg-page .sg-kids { padding: 14px 18px; border-radius: var(--radius); border: 1px solid #bfdbfe; background: #eff6ff; color: #111827; }
.sg-page .sg-kids h2 { margin-top: 0; }
.sg-page .sg-lead[hidden] { display: none; }
.sg-page .sg-lead { padding: 12px 16px; border-radius: var(--radius); border: 1px solid var(--line); }
.pv-kids { padding: 14px 18px; border-radius: var(--radius); border: 1px solid #bfdbfe; background: #eff6ff; color: #111827; margin: 0 0 24px; }
.pv-kids h2 { margin-top: 0; }
.pv-kids ul { padding-left: 20px; margin-bottom: 0; }

/* ===== My progress ===== */
.mp-jump { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin: 16px 0; }
.mp-jump a { font-weight: 500; }
.mp-sec { margin: 30px 0; }
.mp-sec > h2 small, .mp-card h3 small { font-weight: 400; color: var(--mist); font-size: .8em; }
.mp-sub { color: var(--mist); margin: 4px 0 8px; }
.mp-card { padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: #fff; margin: 10px 0; min-width: 0; }
.mp-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.mp-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 12px; }
.mp-levels { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.mp-big { font-size: 1.1rem; } .mp-big .lp-bar { display: block; height: 12px; margin-bottom: 6px; }
.mp-next { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; white-space: normal; text-align: left; max-width: 100%; margin: 6px 0 10px; }
.mp-next small { font-weight: 400; opacity: .9; }
.mp-done { font-size: 1.05rem; color: var(--good, #15803d); }
.mp-lessons li.is-done small, .mp-lessons .is-done small { color: var(--good, #15803d); }
.mp-lessons li.is-retry small { color: #b45309; }
.mp-rings { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 8px 0 12px; }
.mp-ring { margin: 0; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: #fff; text-align: center; }
.mp-ring svg { width: 110px; height: 110px; }
.mp-ring-bg { fill: none; stroke: #eef2f7; stroke-width: 10; }
.mp-ring-fg { fill: none; stroke-width: 10; stroke-linecap: round; }
.mp-ring text { font: 700 18px var(--display, system-ui); fill: var(--paper); }
.mp-ring figcaption { color: var(--mist); font-size: .9rem; margin-top: 4px; }
.mp-act-svg { width: 100%; height: auto; display: block; }
.mp-act-on { fill: #22c55e; } .mp-act-off { fill: #e5e7eb; }
.mp-act-svg text { font-size: 10px; fill: #94a3b8; }
.mp-ladder { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mp-ladder-b { width: 100%; text-align: left; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font: inherit; cursor: pointer; color: inherit; }
.mp-ladder-b .lp-bar { grid-column: 1 / -1; }
.mp-ladder-b small { color: var(--mist); }
.mp-ladder li.is-mine .mp-ladder-b { border-color: var(--ember); box-shadow: inset 0 0 0 1px var(--ember); }
.mp-ladder li.is-complete .mp-ladder-n { color: var(--good, #15803d); }
.mp-ladder-n { font-weight: 600; }
.mp-badges { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 10px; }
.mp-badges li { padding: 12px; border-radius: 14px; border: 1px dashed var(--line); background: #fafafa; text-align: center; display: grid; gap: 2px; opacity: .6; filter: grayscale(1); }
.mp-badges li.is-got { opacity: 1; filter: none; border-style: solid; background: #fffbeb; border-color: #fcd34d; }
.mp-badge-i { font-size: 1.9rem; }
.mp-badges small { color: var(--mist); }
.mp-mini { margin: 0; padding-left: 1.1em; } .mp-mini li { padding: 2px 0; } .mp-mini small { color: var(--mist); }
.mp-qgrid { border-collapse: collapse; width: 100%; font-size: .92rem; }
.mp-qgrid th, .mp-qgrid td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
.mp-qgrid th[scope="row"] { text-align: left; font-weight: 500; white-space: normal; }
.mp-qgrid td a { text-decoration: none; display: inline-block; min-width: 2.6em; padding: 2px 4px; border-radius: 6px; }
.mp-qgrid td.is-done a { background: #dcfce7; color: #166534; font-weight: 600; }
.mp-qgrid td.is-retry a { background: #fef3c7; color: #92400e; }
.mp-qgrid .mp-na { color: #cbd5e1; }
.mp-dots { list-style: none; padding: 0; margin: 6px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.mp-dots li { display: grid; text-align: center; padding: 6px 8px; border-radius: 10px; background: #f1f5f9; min-width: 52px; }
.mp-dots li.is-done { background: #dcfce7; }
.mp-dots small { color: var(--mist); font-size: .75rem; }
.mp-exg { margin: 18px 0 6px; font-size: 1rem; color: var(--mist); text-transform: uppercase; letter-spacing: .06em; }
.ex-list { padding: 0 14px 12px; }
.ex-pages { margin: 4px 0 8px; padding-left: 1.2em; columns: 2 260px; column-gap: 24px; }
.ex-pages li { break-inside: avoid; padding: 2px 0; } .ex-pages small { color: var(--good, #15803d); }
.mp-refs { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 8px; }
.mp-refs li { padding: 8px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.mp-refs small { color: var(--mist); }
.mp-resets { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.mp-reset-course select { font: inherit; padding: 8px; border-radius: 10px; border: 1px solid var(--line); margin-left: 4px; }
.mp-print-head { display: none; }
@media print {
  .site-header, .site-footer, .ticker, .mp-noprint, .acct-bar, .ad, ins.adsbygoogle, .lp-hub, .ex-strip, .mp-levels { display: none !important; }
  .mp-print-head { display: block; font-size: 1.1rem; margin: 0 0 8px; }
  .mp-card, .mp-ring, .mp-course { break-inside: avoid; box-shadow: none; }
  body { background: #fff !important; }
}
/* Language picker with search; Google Translate's control is kept off-screen (its links are removed by translate.js). */
.lang-search { display: block; width: calc(100% - 40px); margin: 4px 0 8px; font: inherit; font-size: .92rem; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.lang-opt[hidden] { display: none; }
#hw-gt { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; overflow: hidden; }
html.translated-ltr body, html.translated-rtl body { top: 0 !important; }
.goog-te-spinner-pos, iframe.skiptranslate, .goog-te-banner-frame { display: none !important; }
/* Compact top bar (js/common.js fitNav): when the menu would wrap, e.g. after translation into a language with longer words. */
.nav a { white-space: nowrap; }
.site-header.nav-compact .menu-btn { display: inline-flex; align-items: center; gap: 8px; }
.site-header.nav-compact .brand { margin-right: auto; }
.site-header.nav-compact .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; }
.site-header.nav-compact .nav.open { display: flex; }
.site-header.nav-compact .nav a { padding: 12px 14px; font-size: 1.05rem; white-space: normal; }
@media (min-width: 861px) {
  .site-header.nav-compact .nav { left: auto; right: 16px; width: min(340px, 92vw); max-height: calc(100vh - var(--header-h) - 24px); overflow: auto; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 40px -18px rgba(15, 23, 42, .45); }
}
/* Certificate samples on course pages */
.cx-cert-sample-box { margin: 26px 0; }
.cx-cert-sample { margin: 10px 0; max-width: 760px; aspect-ratio: 3508 / 2480; border-radius: 10px; background: #f6f3ea; box-shadow: 0 12px 34px -16px rgba(15, 23, 42, .45); overflow: hidden; }
.cx-cert-sample img { width: 100%; height: 100%; display: block; object-fit: contain; }
.cx-cert-peek { margin: 6px 0 4px; } .cx-cert-peek summary { cursor: pointer; color: var(--ember); font-weight: 500; }
/* Kids' zone test: big, friendly buttons */
.cx-kids .cx-opts button { font-size: 1.15rem; padding: 14px 16px; min-height: 56px; border-radius: 16px; }
.cx-kids .cx-qtext { font-size: 1.2rem; }
.cx-say { border: 0; background: #fff7ed; border-radius: 50%; width: 40px; height: 40px; font-size: 1.1rem; cursor: pointer; margin-left: 6px; vertical-align: middle; }
/* ---------- E. Videos: Watch sections, videos.html, Learn picks (js/videos.js, scripts/build-videos.mjs) ---------- */
.vw { margin: 32px 0 24px; }
.vw h2 { margin-bottom: 12px; }
.vw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 18px; }
.vw-item { margin: 0; min-width: 0; }
.vw-item[hidden] { display: none; }
.vw-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #111; }
.vw-frame iframe, .vw-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #000; }
.vw-play { all: unset; box-sizing: border-box; position: absolute; inset: 0; cursor: pointer; display: block; }
.vw-play img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vw-nothumb .vw-play { background: radial-gradient(circle at 30% 30%, #2b3442, #0b0d12 70%); }
.vw-icon { position: absolute; left: 50%; top: 50%; width: 64px; height: 44px; margin: -22px 0 0 -32px; border-radius: 12px; background: rgba(17, 17, 17, .82); transition: background .15s, transform .15s; }
.vw-icon::after { content: ""; position: absolute; left: 26px; top: 12px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.vw-play:hover .vw-icon, .vw-play:focus-visible .vw-icon { background: var(--rock); transform: scale(1.06); }
.vw-play:focus-visible { outline: 3px solid var(--ember-soft); outline-offset: -3px; border-radius: 12px; }
.vw-note { position: absolute; left: 8px; right: 8px; bottom: 8px; font-size: .74rem; color: #fff; background: rgba(0, 0, 0, .62); padding: 3px 8px; border-radius: 6px; width: fit-content; max-width: calc(100% - 16px); }
/* Age check on films (js/video-age.js): a note in place of a film for older ages, or a one-tap 13+ check over it. */
.vw-msg { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px 16px; text-align: center; color: #fff; }
.vw-msg p { margin: 0; line-height: 1.35; }
.vw-msg a { color: #fff; }
.vw-blocked { background: radial-gradient(circle at 30% 30%, #2b3442, #0b0d12 70%); }
.vw-gate { background: rgba(11, 13, 18, .78); z-index: 2; }
.vw-item figcaption { display: flex; flex-direction: column; gap: 3px; padding: 8px 2px 0; }
.vw-title { font-weight: 600; line-height: 1.3; }
.vw-desc { color: var(--mist); font-size: .94rem; line-height: 1.45; }
.vw-credit { color: var(--mist); font-size: .8rem; }
.vw-more { margin: 12px 0 0; }
.vw-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 6px; }
.vw-filters .chip { cursor: pointer; font: inherit; }
.vw-filters .chip[aria-pressed="true"] { background: var(--ember); border-color: var(--ember); color: #fff; }
.vw-filters small { opacity: .75; margin-left: 2px; }
.vw-hub .vw-grid { margin-top: 12px; }
.vw-ages { margin-top: 4px; }
.vw-flabel { align-self: center; font-size: .8rem; font-weight: 600; color: var(--mist); min-width: 3.6em; }
@media (max-width: 600px) { .vw-filters { gap: 6px; } .vw-filters .chip { padding: 5px 11px; font-size: .88rem; } }
.vw-topic { margin-top: 28px; }
.vw-topic[hidden] { display: none; }
.vw-topic > h2 { margin: 0; font-size: clamp(1.15rem, 2.6vw, 1.4rem); }
.vw-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.vw-age, .vw-label { font-size: .74rem; line-height: 1.5; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--mist); }
.vw-label { border-color: var(--ember-soft); }
.vw-used { color: var(--mist); font-size: .8rem; }
.vw-used a { color: inherit; }
@media print { .vw, .vw-filters { display: none !important; } }

/* Learn: Myths and Facts tiles (1 Nov 2026) */
.myth-tile { font: inherit; text-align: left; cursor: pointer; border: 0; min-height: 0; color: inherit; }
.myth-tile h3 { font-size: 1.5rem; margin: 2px 0 4px; }
.myth-tile p { margin: 0; }
.myth-tile[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--ember), 0 12px 32px -18px rgba(40, 24, 10, .35); }
.myth-tile[aria-pressed="false"] { opacity: .78; }
.myth-tile:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; }
.myth-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 420px) { .myth-tiles { gap: 10px; } .myth-tile { padding: 16px; } .myth-tile h3 { font-size: 1.25rem; } }

/* Not signed in: progress isn't saved (1 Nov 2026) */
.lp-guest { margin: 14px 0; padding: 14px 16px; border-radius: 16px; background: rgba(43, 52, 66, .06); box-shadow: inset 0 0 0 1px rgba(43, 52, 66, .18); }
.lp-guest p { margin: 0 0 10px; }
.lp-guest p:last-child { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }

/* Learn: "Every group, one page each" tile (1 Nov 2026) */
.type-groups .sci-links { gap: 6px; }
.type-groups .sci-links a { padding: 3px 9px; font-size: .82rem; }
.type-groups .tg-all { margin-top: 12px; }
.type-groups .tg-all summary { cursor: pointer; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.type-groups .tg-all .sci-links { margin-top: 10px; }

/* Types: the full classification as tiles (1 Nov 2026) */
.tt-head { margin: 26px 0 10px; font-size: 1.2rem; }
.tt-list { margin-top: 22px; }
.tt-list summary { cursor: pointer; font-weight: 600; }

/* Types: the eight main types, two rows of four (1 Nov 2026) */
.tt-main { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .tt-main { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .tt-main { grid-template-columns: 1fr; } }

/* Whole tiles are clickable (1 Nov 2026) */
.tile-click { position: relative; cursor: pointer; transition: box-shadow .2s ease, transform .2s ease; }
.tile-click .tile-main::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.tile-click:hover { box-shadow: inset 0 0 0 1px rgba(43, 52, 66, .45), 0 16px 40px -20px rgba(40, 24, 10, .35); }
.tile-click:has(.tile-main:focus-visible) { outline: 3px solid var(--ember); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) { .tile-click:hover { transform: translateY(-2px); } }

/* Timeline dates: small day and month over the year, never overlapping (1 Nov 2026) */
.tl-year { min-width: 0; overflow-wrap: anywhere; line-height: 1.1; }
.tl-year small { display: block; font-family: var(--body, inherit); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--mist); margin-bottom: 2px; }
.tl-year.tl-long { font-size: 1.05rem; }
/* Timeline: the year fits its column in the display font, never split mid-number (1 Nov 2026) */
.tl-year { font-size: 1.15rem; overflow-wrap: normal; word-break: normal; }
.tl-year.tl-long { font-size: 1rem; }
.tl-year small { font-size: .72rem; }

/* Group C: fireball reports, fireball sightings and recent falls (2 Nov 2026) */
.fb-row3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fb-map { height: 320px; width: 100%; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #aad3df; position: relative; z-index: 0; }
.fb-ts { min-height: 65px; }
.fall-map { height: min(60vh, 460px); min-height: 280px; width: 100%; margin: 18px 0 6px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #aad3df; position: relative; z-index: 0; }
.fall-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 18px 0; }
.fall-facts div { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.fall-facts dt { color: var(--mist); font-size: .85rem; }
.fall-facts dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.fall-list, .fall-news { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 8px; }
.fall-list li { display: grid; gap: 2px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.fall-news li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.fall-news p { margin: 4px 0 0; }
@media (max-width: 600px) { .fb-row3 { grid-template-columns: 1fr; } .fb-map { height: 260px; } .fall-map { height: 52vh; } }

/* Days in a row and today's lesson (2 Nov 2026; site/js/streak.js) */
.sk-panel { margin: 4px 0 8px; }
.sk-card { display: flex; gap: 16px; align-items: flex-start; }
.sk-count { flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; font-weight: 700; color: #b45309; background: #fef3c7; box-shadow: inset 0 0 0 2px #fcd34d; }
.sk-body { min-width: 0; flex: 1; }
.sk-body h2 { margin: 0 0 4px; font-size: 1.15rem; }
.sk-go { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; white-space: normal; text-align: left; max-width: 100%; margin: 6px 0 4px; }
.sk-go small { font-weight: 400; opacity: .9; overflow-wrap: anywhere; }
.sk-why { margin-top: 4px; }
.sk-door [data-sk-lesson] { font-weight: 600; }
@media (max-width: 420px) { .sk-card { flex-direction: column; gap: 8px; } .sk-count { width: 52px; height: 52px; font-size: 1.3rem; } }

/* Types one level deeper: kinds explained on the group page (2 Nov 2026) */
.kind-notes { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); margin: 10px 0 18px; }
.kind-note { padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); min-width: 0; overflow-wrap: anywhere; }
.kind-note h3 { margin: 0 0 6px; font-size: 1rem; }
.kind-note p { margin: 0 0 6px; }
.kind-more { margin: 18px 0 6px; font-size: 1.05rem; }

/* Sky alerts and the weekly email: alerts.html, js/sky-alerts.js (group B, 2 Nov 2026) */
.sky-form { display: grid; gap: 12px; }
.sky-form fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 16px; margin: 0; display: grid; gap: 8px; min-width: 0; }
.sky-form legend { font-weight: 600; padding: 0 6px; }
.sky-form label { font-weight: 500; }
.sky-form input[type="email"], .sky-form input:not([type]) { font: inherit; padding: 11px 13px; border-radius: 12px; border: 1px solid #cbd5e1; background: #fff; color: #111; width: 100%; min-width: 0; }
.sky-form .sky-check { display: flex; gap: 10px; align-items: center; font-weight: 400; min-height: 32px; }
.sky-form .sky-check input { width: 20px; height: 20px; accent-color: var(--ember); flex: none; }
.sky-form .sky-geo { margin: 0; }
.sky-form .sky-geo .btn.ghost, .sky-actions .btn.ghost { background: transparent; color: #2b3442; box-shadow: inset 0 0 0 1px rgba(100, 116, 139, .4); }
.sky-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 0; }
.sky-ts { min-height: 0; }
.sky-page #sky-note:empty, .sky-page #wk-note:empty { display: none; }
.sky-page #wk-note.bad { color: var(--bad); }
.sky-page .contact-card ul { padding-left: 20px; }

/* "What you'll need" kit boxes and kit.html (scripts/lib/kit.mjs). Text links and our own icons only. */
.kit-box { margin: 8px 0 28px; padding: 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); max-width: 1100px; }
.kit-box > h2 { margin-top: 0; }
.kit-disclosure { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0 16px; padding: 10px 14px; border-radius: 12px; background: #fff7ed; border: 1px solid #fdba74; color: var(--paper); font-size: .95rem; font-weight: 500; }
.kit-disclosure svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--rock); }
.kit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.kit-item { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; background: var(--ink); border: 1px solid var(--line); min-width: 0; }
.kit-item.kit-danger { grid-column: 1 / -1; border-color: #f59e0b; display: block; }
.kit-row { display: flex; gap: 12px; align-items: flex-start; }
.kit-ico { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--raised); color: var(--ember-soft); }
.kit-ico svg { width: 22px; height: 22px; }
.kit-txt { min-width: 0; flex: 1; }
.kit-txt p { margin: 0 0 .5em; font-size: .97rem; }
.kit-name { font-size: 1.05rem; margin: 2px 0 4px; }
.kit-link { display: inline-block; font-weight: 600; font-size: .95rem; overflow-wrap: anywhere; }
.kit-warn { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: #fffbeb; border: 1px solid #fcd34d; }
.kit-warn > p { margin: 0 0 .5em; }
.kit-warn-ico { display: inline-block; width: 18px; height: 18px; vertical-align: -3px; margin-right: 6px; color: #b45309; }
.kit-warn-ico svg { width: 18px; height: 18px; }
.kit-gear-h { font-weight: 600; }
.kit-gear { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.kit-gear .kit-item { padding: 10px; background: #fff; }
.kit-gear .kit-ico { width: 32px; height: 32px; }
.kit-gear .kit-name { font-size: .98rem; }
.kit-more { margin: 14px 0 0; }
.kit-page .kit-group { margin-top: 8px; }
@media (max-width: 480px) { .kit-box { padding: 14px; } .kit-item { padding: 12px; gap: 10px; } .kit-ico { width: 34px; height: 34px; } .kit-warn { padding: 10px; } .kit-gear .kit-ico { display: none; } .kit-gear .kit-item { padding: 8px 10px; } }
/* The compact "What you'll need" box on lessons, plans, projects and guides (needBox): the page's own list, with a small
   search link beside each item we stock a suggestion for. Children's pages and printables get .kit-plain (no links). */
.kit-box.kit-need { padding: 16px 20px; }
.kit-box.kit-need > h2, .kit-box.kit-need > h3 { margin: 0 0 8px; font-size: 1.2rem; }
.kit-needs { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.kit-needs li { overflow-wrap: anywhere; }
.kit-buy { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; margin-left: 4px; }
.kit-buy .kit-link { font-size: .85rem; font-weight: 600; }
.kit-disclosure-sm { display: block; margin: 0 0 12px; padding: 6px 10px; font-size: .85rem; }
.kit-need .kit-more { margin-top: 10px; font-size: .95rem; }
.kit-plain { margin: 8px 0 24px; }
.kit-plain > h2, .kit-plain > h3 { margin-bottom: 8px; }
.kit-grownups { margin: 10px 0 0; font-size: .9rem; color: var(--mist); }
.kit-used { margin: .5em 0 0; font-size: .85rem; }
.kit-anchor { display: block; position: relative; top: -1px; }
/* Printed pages keep the list but never the shop links, the disclosure or full kit boxes. */
@media print { .kit-box:not(.kit-need), .kit-buy, .kit-need .kit-disclosure, .kit-need .kit-more, a[href*="amazon.co.uk"] { display: none !important; } .kit-box.kit-need { border: 0; padding: 0; background: none; } }

/* ---------- Events: country picker, month strip, event cards (events.html, events/) ---------- */
.ev-sky { margin-top: 14px; }
.ev-sky a { font-weight: 600; color: var(--paper); }
.ev-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 14px; }
.ev-label { font-weight: 600; font-size: 1.05rem; }
.ev-select { width: auto; flex: 1 1 220px; max-width: 380px; }
.ev-more { margin: 0 0 14px; padding: 16px; }
.ev-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 10px; }
.ev-grid p { margin: 0; }
.ev-grid label { display: block; font-weight: 600; margin-bottom: 4px; }
.ev-grid .ev-check { display: flex; align-items: center; gap: 10px; align-self: end; min-height: 46px; }
.ev-grid .ev-check label { margin: 0; }
.ev-check input { width: 22px; height: 22px; accent-color: var(--ember); }
#ev-reset { text-decoration: underline; }
.ev-months { margin: 6px 0 8px; }
.ev-m { display: inline-flex; align-items: center; gap: 8px; }
.ev-n { font-size: .75rem; min-width: 1.7em; padding: 1px 6px; border-radius: 999px; background: var(--raised); color: var(--paper); text-align: center; }
.chip[aria-pressed="true"] .ev-n { background: #fff; color: var(--ember); }
.chip:disabled { opacity: .45; cursor: not-allowed; }
#ev-list:focus { outline: none; }
.ev-month { margin-top: 22px; scroll-margin-top: calc(var(--header-h) + 12px); }
.ev-month h2, .ev-sub { font-size: 1.2rem; margin: 0 0 12px; }
.ev-sub { margin-top: 26px; }
.ev-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ev-item { display: grid; grid-template-columns: 9.5rem 1fr auto; gap: 6px 18px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 12px); }
.ev-item p { margin: 0; }
.ev-item h3 { margin: 0 0 2px; font-size: 1.05rem; }
.ev-when { font-weight: 700; }
.ev-body { display: grid; gap: 4px; min-width: 0; }
.ev-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ev-tags .badge { margin: 0; }
.ev-item .ev-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.ev-free { background: #e8f5e9; color: #1b5e20; border-color: #a5d6a7; }
.ev-tbc { background: #fff7ed; color: #7c2d12; border-color: #fdba74; }
.ev-foot { margin-top: 24px; gap: 8px; }
/* Space for what the script fills in, kept from the start so nothing below moves as the list arrives. */
.ev-auto { flex: 1 1 100%; margin-top: -4px; }
.ev-auto.is-off { visibility: hidden; }
#ev-months { min-height: 46px; }
#ev-status { min-height: 1.5em; }
#ev-list { min-height: 40vh; }
.ev-cal-label { font-size: .8rem; font-weight: 600; color: var(--mist); margin-top: 4px !important; }
.ev-cal-wait { max-width: 15rem; }
.ev-host { overflow-wrap: anywhere; }
.ev-countries { columns: 2 220px; padding-left: 0; list-style: none; }
.ev-countries li { break-inside: avoid; padding: 4px 0; }
@media (max-width: 760px) { .ev-item { grid-template-columns: 1fr; } .ev-item .ev-actions { flex-direction: row; flex-wrap: wrap; } .ev-cal-label { flex-basis: 100%; margin: 2px 0 -4px !important; } .ev-cal-wait { max-width: none; } }
@media (max-width: 480px) { .ev-select { max-width: none; flex-basis: 100%; } .ev-bar .btn { width: 100%; } .ev-item .ev-actions .btn { flex: 1 1 auto; } }

/* Great-impact card floating over the top left of the home globe (absolute, so the layout never moves). */
.impact-pop { position: absolute; top: 2%; left: 0; z-index: 3; width: min(190px, 46cqw); padding: 7px 24px 7px 9px; border-radius: 10px;
  background: rgba(255, 255, 255, .94); border: 1px solid var(--line, #e2e8f0); box-shadow: 0 10px 30px rgba(15, 23, 42, .14);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: grid; gap: 1px; font-size: .72rem; line-height: 1.28;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .35s ease, transform .35s ease, visibility 0s linear .35s; }
.impact-pop.on { opacity: 1; visibility: visible; transform: none; transition: opacity .35s ease, transform .35s ease; }
.impact-pop .eyebrow { font-size: .56rem; }
.impact-pop-t { font-size: .82rem; }
.impact-pop-country { display: block; margin: 2px 0 1px; font-size: .82rem; font-weight: 600; letter-spacing: .01em; }
.impact-pop-age { color: var(--mist, #64748b); font-size: .68rem; }
.impact-pop-note { margin: 2px 0 3px; }
.impact-pop-note.hot { color: #b91c1c; font-weight: 600; }
.impact-pop-go { font-weight: 600; }
.impact-pop-mates { display: block; margin: 0 0 3px; font-size: .68rem; }
.impact-pop-x { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: transparent; font-size: 1.15rem; line-height: 1; cursor: pointer; color: var(--mist, #64748b); }
.impact-pop-x:hover, .impact-pop-x:focus-visible { background: rgba(100, 116, 139, .12); }
@media (prefers-reduced-motion: reduce) { .impact-pop, .impact-pop.on { transition: none; transform: none; } }
/* Chicxulub picture-in-picture windows over the globe (absolutely placed: nothing on the page moves). */
.cine-win { position: absolute; top: 14px; right: 14px; z-index: 3; width: clamp(150px, 17vw, 260px); aspect-ratio: 3 / 2; margin: 0; border-radius: 12px; overflow: hidden;
  background: #05070d; border: 1px solid rgba(203, 213, 225, .28); box-shadow: 0 10px 30px rgba(2, 6, 23, .55), 0 0 0 1px rgba(2, 6, 23, .4);
  opacity: 0; transform: scale(.94); transform-origin: top right; transition: opacity .3s ease, transform .3s ease; }
.cine-win.on { opacity: 1; transform: none; }
.cine-win canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cine-win video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; background: #05070d; }
.cine-ground { width: clamp(190px, 26vw, 380px); aspect-ratio: 16 / 9; }
.cine-snd { position: absolute; right: 6px; bottom: 6px; z-index: 2; width: 30px; height: 30px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(2, 6, 23, .7); color: #f1f5f9; cursor: pointer; }
.cine-snd svg { width: 18px; height: 18px; }
.cine-snd[hidden] { display: none; }
.cine-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 5px; font-size: .68rem; font-weight: 600; letter-spacing: .01em; line-height: 1.2;
  color: #f1f5f9; background: linear-gradient(rgba(2, 6, 23, 0), rgba(2, 6, 23, .72)); pointer-events: none; }
.cine-x { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; font-size: 1.1rem; line-height: 1; cursor: pointer;
  color: #f1f5f9; background: rgba(2, 6, 23, .5); }
.cine-x:hover, .cine-x:focus-visible { background: rgba(2, 6, 23, .8); outline: 2px solid #f1f5f9; outline-offset: 1px; }
.cine-approach { transform-origin: top left; }
.cine-credit { position: absolute; top: 5px; left: 7px; max-width: 70%; font-size: .55rem; line-height: 1.2; color: rgba(241, 245, 249, .75); text-shadow: 0 1px 2px rgba(2, 6, 23, .9); pointer-events: none; }
@media (max-width: 760px) { .cine-win { width: clamp(120px, 34vw, 200px); } .cine-ground { width: clamp(150px, 46vw, 260px); } }
@media (max-width: 520px) { .cine-cap { font-size: .6rem; padding: 10px 6px 4px; } .cine-x { width: 24px; height: 24px; } }
@media (prefers-reduced-motion: reduce) { .cine-win { display: none; } }
/* Home globe: the tiny name label where a meteor strikes (placed by home.js with a transform, so nothing moves) */
.globe-tag { position: absolute; left: 0; top: 0; z-index: 2; max-width: 170px; padding: 3px 9px; border-radius: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center;
  font-size: .66rem; font-weight: 600; line-height: 1.35; color: #f8fafc; background: rgba(2, 6, 23, .72); border: 1px solid rgba(203, 213, 225, .28);
  pointer-events: none; opacity: 0; transition: opacity .2s linear; will-change: transform, opacity; }
.globe-tag-n, .globe-tag-c { display: block; overflow: hidden; text-overflow: ellipsis; }
.globe-tag-c { font-size: .85em; font-weight: 500; color: #cbd5e1; }
@media (max-width: 520px) { .globe-tag { font-size: .62rem; max-width: 140px; } }

/* Deep-space backdrop behind the whole top of the home page (map card and globe). Absolutely placed and
   sized to the window's width by home.js, so the layout never changes. */
.globe-hero { position: relative; isolation: isolate; }
.globe-hero > .globe-space { position: absolute; top: 0; bottom: 0; left: 0; width: 100%; height: 100%; display: block; pointer-events: none; z-index: -1; }
.globe-box .globe { position: relative; z-index: 1; }
.globe-hero > .globe-fx { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: block; pointer-events: none; z-index: 2; }
/* The top of the home page sits in space: let the starfield run the full width, and give the map card a dark glass so it floats in it. */
.home-hero.globe-hero { overflow: visible; }
.home-hero.globe-hero::before { display: none; }
.globe-hero .door-map.glass { background: rgba(10, 15, 31, .5); border-color: rgba(148, 163, 184, .28); color: #f8fafc;
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); box-shadow: inset 0 0 0 1px rgba(148, 163, 184, .12), 0 24px 60px -24px rgba(0, 0, 0, .7); }
.globe-hero .door-map.glass:hover { background: rgba(15, 23, 42, .62); box-shadow: inset 0 0 0 1px rgba(148, 163, 184, .45), 0 24px 60px -24px rgba(0, 0, 0, .8); }
.globe-hero .door-map h2 { color: #f8fafc; }
.globe-hero .door-map p { color: #cbd5e1; }
.globe-hero .door-map .door-live { color: #e2e8f0; }
/* Phones: the Menu button becomes a ☰ icon so the top bar fits on one line with no cut-off (the word stays for screen readers). */
@media (max-width: 480px) {
  .menu-btn { width: 36px; height: 36px; padding: 0; justify-content: center; font-size: 0; flex: none; }
  .menu-btn::before { content: "☰"; font-size: 18px; line-height: 1; }
}
@media (max-width: 360px) { .menu-btn { width: 32px; height: 30px; } }
/* Back to top button on long pages. */
.to-top { position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--raised, #fff); color: var(--paper); font-size: 20px; line-height: 1; cursor: pointer; box-shadow: 0 8px 24px -10px rgba(15, 23, 42, .35); }
.to-top[hidden] { display: none; }
.to-top:hover { background: #fff; }
.to-top:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
@media print { .to-top { display: none !important; } }
/* Preparing meteorites guides (site/preparation/, built by scripts/build-preparation.mjs). */
.prep-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: -4px 0 14px; font-size: .9rem; }
.prep-tag { display: inline-flex; align-items: center; 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); }
.prep-tag.adult { color: #9a3412; background: #fff7ed; border-color: #fdba74; }
.prep-safety { margin: 18px 0 20px; padding: 16px 20px; border-radius: 16px; background: #fffbeb; border: 1px solid #fcd34d; box-shadow: inset 4px 0 0 #b45309; }
.prep-safety h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 1.15rem; }
.prep-safety h2 svg { flex: none; width: 22px; height: 22px; color: #b45309; }
.prep-safety ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.prep-first { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 22px; padding: 16px 20px; box-shadow: inset 4px 0 0 var(--bad), inset 0 0 0 1px rgba(43, 52, 66, .14); }
.prep-first p { margin: 0; }
.prep-first-ico { flex: none; width: 24px; height: 24px; color: var(--bad); }
.prep-first-ico svg { width: 24px; height: 24px; display: block; }
.prep-toc { margin: 0 0 22px; padding: 14px 20px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.prep-toc h2 { font-size: 1rem; margin: 0 0 8px; }
.prep-toc ol { margin: 0; padding-left: 22px; display: grid; gap: 4px; }
.prep-need-note { margin: 0 0 10px; color: var(--mist); }
.prep-steps { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 18px; }
.prep-step { padding: 20px 22px; min-width: 0; }
.prep-step > h2 { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 12px; font-size: clamp(1.1rem, 2.4vw, 1.35rem); }
.prep-n { flex: none; width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--ember); color: #fff; font-family: var(--sans); font-size: .95rem; font-weight: 600; }
.prep-step > p { margin: 0 0 .8em; }
.prep-why { padding: 10px 14px; border-radius: 12px; background: var(--panel); }
.prep-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 4px 26px; }
.prep-cols h3 { font-size: .98rem; margin: 6px 0 6px; }
.prep-cols ul { margin: 0 0 6px; padding-left: 20px; display: grid; gap: 4px; font-size: .95rem; }
.prep-avoid h3 { color: var(--bad); }
.prep-who { margin: 12px 0 0 !important; padding-top: 10px; border-top: 1px solid var(--line); color: var(--mist); font-size: .95rem; }
.prep-flow { list-style: none; padding: 0; margin: 10px 0 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 10px; counter-reset: flow; }
.prep-flow li { counter-increment: flow; display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .62); box-shadow: inset 0 0 0 1px rgba(43, 52, 66, .14); font-size: .95rem; }
.prep-flow li::before { content: counter(flow); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--raised); color: var(--ember); font-weight: 600; font-size: .85rem; }
.prep-flow span { color: var(--mist); }
@media (max-width: 480px) { .prep-step { padding: 16px 14px; } .prep-safety, .prep-first, .prep-toc { padding: 14px; } .prep-n { width: 30px; height: 30px; } }

/* ---------- Where to see meteorites (where-to-see.html) ---------- */
.wts-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 18px 0 12px; }
.wts-label { font-weight: 600; }
.wts-select { width: auto; max-width: 320px; flex: 0 1 auto; }
.wts-q { flex: 1 1 220px; width: auto; }
.wts-check { display: inline-flex; align-items: center; gap: 6px; min-height: 46px; }
.wts-check input { width: 20px; height: 20px; accent-color: var(--ember); }
.wts-auto { flex: 1 1 100%; margin-top: -4px; min-height: 1.4em; }
.wts-auto.is-off { visibility: hidden; }
.wts-map { height: min(56vh, 520px); min-height: 300px; width: 100%; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #aad3df; position: relative; z-index: 0; }
.wts-map-note { position: absolute; inset: auto 12px 12px; margin: 0; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .9); color: #1f2937; }
.wts-results { min-height: 100vh; margin-top: 14px; }
.wts-wait .wts-results { visibility: hidden; }
.wts-status { min-height: 1.5em; margin: 0 0 10px; }
.wts-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 14px; }
.wts-item { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); scroll-margin-top: calc(var(--header-h, 64px) + 16px); }
.wts-item[hidden] { display: none; }
.wts-item:target { box-shadow: 0 0 0 3px var(--ember); }
.wts-item h3 { margin: 0; font-size: 1.1rem; }
.wts-item p { margin: 0; }
.wts-where { color: var(--mist); }
.wts-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.wts-entry.wts-free, .wts-entry.wts-part { color: #166534; border-color: rgba(22, 101, 52, .35); background: rgba(22, 163, 74, .1); }
.wts-host { overflow-wrap: anywhere; }
.wts-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto !important; padding-top: 6px; }
.wts-actions .btn { flex: 1 1 auto; justify-content: center; }
.wts-notice { margin: 0 0 12px; }
@media (max-width: 600px) { .wts-map { height: 52vh; } .wts-select, .wts-q { max-width: none; flex: 1 1 100%; } .wts-item { padding: 14px; } }

/* Account page, signed in: on wider screens the sections sit side by side in two columns instead of one long list
   (phones keep the single column). The facts and name form stay full width above them. */
@media (min-width: 900px) {
  .ac-wrap:has(#ac-app > .ac-facts) { max-width: 1100px; }
  #ac-app:has(> .ac-facts) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; align-items: start; }
  #ac-app:has(> .ac-facts) > :not(.ac-sec), #ac-app:has(> .ac-facts) > .ac-bandask { grid-column: 1 / -1; }
  #ac-app:has(> .ac-facts) > .ac-form { max-width: 620px; }
}

/* Top-bar clock: the visitor's local time, kept small and quiet. */
.hw-clock { display: inline-flex; align-items: baseline; gap: 6px; padding: 4px 11px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .55); color: var(--steel); font-family: var(--sans); font-size: .8rem; line-height: 1.2; white-space: nowrap; user-select: none; cursor: default; }
.hw-clock-t { font-variant-numeric: tabular-nums; font-weight: 600; letter-spacing: .03em; }
.hw-clock-z { color: var(--mist); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 900px) { .hw-clock { display: none; } }
/* Why join: the benefits of a free account (js/account-page.js). */
.ac-perks { margin: 12px 0 16px; padding: 12px 16px; border-radius: 14px; background: #f6faf7; border: 1px solid #d8ece0; }
.ac-perks h2 { margin: 0 0 6px; font-size: 1.05rem; }
.ac-perks ul { margin: 0; padding-left: 18px; }
.ac-perks li { margin: 3px 0; font-size: .92rem; }
.ac-perks-mini { font-size: .9rem; }
/* "Take me there" from a guide's answer: the part of the page it came from is lit up for a moment. */
main :is(h2, h3):target { scroll-margin-top: 80px; animation: hw-found 2.4s ease-out 1; border-radius: 6px; }
@keyframes hw-found { 0%, 40% { background: rgb(255 214 102 / .55); box-shadow: 0 0 0 6px rgb(255 214 102 / .55); } 100% { background: transparent; box-shadow: none; } }
@media (prefers-reduced-motion: reduce) { main :is(h2, h3):target { animation: none; outline: 3px solid #f0b400; } }

/* ---------- Books page: the shelf under frosted glass, "Coming soon" engraved in it (4 Nov 2026) ---------- */
/* Same glass as the doors (.frost-l/.frost-r): two panes meeting in the middle, strong blur, soft frost, sheen. */
.bk-frosting { position: relative; isolation: isolate; margin: 8px 0 30px; border-radius: var(--radius); overflow: hidden;
  max-height: min(78vh, 680px); min-height: 420px; }
.bk-under { padding: 6px 14px 14px; user-select: none; -webkit-user-select: none; filter: blur(10px); opacity: .85; }
.bk-glass { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), inset 0 0 0 2px rgba(148, 163, 184, .28), 0 18px 40px -22px rgba(43, 52, 66, .35);
  cursor: default; touch-action: pan-y; padding-bottom: 90px; }
.bk-pane { position: absolute; top: 0; bottom: 0; width: 50.5%; overflow: hidden;
  -webkit-backdrop-filter: blur(26px) saturate(125%) brightness(1.05); backdrop-filter: blur(26px) saturate(125%) brightness(1.05);
  background: linear-gradient(180deg, rgba(255, 255, 255, .62), rgba(241, 245, 249, .52) 55%, rgba(226, 232, 240, .58)); }
.bk-pane-l { left: 0; box-shadow: inset -1px 0 0 rgba(255, 255, 255, .95), inset -3px 0 6px -2px rgba(148, 163, 184, .35); }
.bk-pane-r { right: 0; box-shadow: inset 1px 0 0 rgba(255, 255, 255, .95), inset 3px 0 6px -2px rgba(148, 163, 184, .35); }
.bk-pane::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .4) 42%, rgba(255, 255, 255, 0) 54%),
              linear-gradient(115deg, rgba(255, 255, 255, 0) 58%, rgba(255, 255, 255, .18) 63%, rgba(255, 255, 255, 0) 68%); }
.bk-pane-r::before { transform: scaleX(-1); }
/* Fine frost grain, so the glass reads as frosted rather than just misty. */
.bk-pane::after { content: ""; position: absolute; inset: 0; opacity: .35; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
/* The engraving: letters cut into the glass. Darker, slightly clear strokes, lit from above: a dark lip along the
   top inside edge and a bright catch-light along the bottom edge, as a V-cut in frosted glass looks. */
.bk-etch { position: relative; z-index: 2; padding: 0 4vw; text-align: center; font-family: var(--display); font-weight: 400;
  font-size: clamp(2.3rem, 10.5vw, 6rem); line-height: 1.15; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(100, 116, 139, .26);
  text-shadow: 0 -1px 0 rgba(43, 52, 66, .38), 0 -2px 3px rgba(43, 52, 66, .12), 0 1px 0 rgba(255, 255, 255, .98), 0 2px 1px rgba(255, 255, 255, .7), 0 0 18px rgba(255, 255, 255, .55); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .bk-etch { color: transparent; -webkit-background-clip: text; background-clip: text;
    background-image: linear-gradient(180deg, rgba(71, 85, 105, .52), rgba(148, 163, 184, .34) 48%, rgba(203, 213, 225, .5) 52%, rgba(100, 116, 139, .4)); }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .bk-pane { background: linear-gradient(180deg, rgba(248, 250, 252, .97), rgba(236, 241, 246, .97)); }
}
/* The owner's signed-in account sees the shelf as it is (js/books-frost.js). */
.bk-frosting.bk-open { max-height: none; min-height: 0; overflow: visible; }
.bk-frosting.bk-open .bk-glass { display: none; }
.bk-frosting.bk-open .bk-under { padding: 0; filter: none; opacity: 1; user-select: auto; -webkit-user-select: auto; }

/* The whole page under the glass (4 Nov 2026): the glass is fixed over everything below the site header (the header
   and its menu stay on top and usable), with "Coming soon" engraved large in the middle of the screen. */
.bk-page-glass { position: fixed; left: 0; right: 0; bottom: 0; top: 64px; z-index: 35; display: grid; place-items: center;
  cursor: default; touch-action: pan-y; overflow: hidden; }
.bk-page-glass .bk-etch { font-size: clamp(2.8rem, 13vw, 9rem); line-height: 1.12; }
.bk-veiled .bk-frosting .bk-glass { display: none; }
.bk-veiled .bk-frosting .bk-under { filter: none; }

/* The pink guide appears on the glass once a visit to say sorry, then goes. She is shown big on this page (her
   sharp 512x800 clip), so her suit's detail shows; the engraving makes room for her (js/books-frost.js). */
.bk-cameo { position: absolute; inset: 0; z-index: 8; pointer-events: none;
  opacity: 0; transform: translateY(40px); transition: opacity .45s ease, transform .55s cubic-bezier(.2, .9, .3, 1.25); }
.bk-cameo.bk-in { opacity: 1; transform: none; }
.bk-cameo.bk-out { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.bk-cameo canvas, .bk-cameo img { position: absolute; right: 4%; bottom: 0; display: block; height: min(640px, calc(100% - 24px)); width: auto; aspect-ratio: 512 / 800; }
.bk-bubble { position: absolute; margin: 0; width: max-content; max-width: 13rem; padding: 12px 16px; border-radius: 18px;
  background: #fff; color: #1f2937; font: 600 clamp(1rem, 3.8vw, 1.2rem)/1.35 var(--sans); text-align: center;
  box-shadow: 0 10px 28px -10px rgba(43, 52, 66, .4), 0 0 0 1px rgba(236, 72, 153, .35);
  opacity: 0; transition: opacity .3s ease; }
.bk-bubble.bk-say { opacity: 1; }
.bk-bubble::after { content: ""; position: absolute; right: -8px; top: 50%; margin-top: -9px; border: 9px solid transparent; border-left-color: #fff; border-right: 0; }
.bk-etch { transition: transform .6s cubic-bezier(.2, .8, .3, 1), opacity .5s ease; transform-origin: 50% 50%; }
/* Phones: the bubble sits above her head and she stands below it, most of the screen's height. */
@media (max-width: 640px) {
  .bk-cameo { transform: translateY(-30px); }
  .bk-cameo.bk-out { transform: translateY(-24px); }
  .bk-cameo canvas, .bk-cameo img { right: auto; left: 50%; bottom: auto; top: 58px; transform: translateX(-50%); height: min(560px, calc(100% - 200px)); }
  .bk-bubble { top: 10px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 24px); padding: 10px 14px; }
  .bk-bubble::after { right: auto; left: 50%; top: auto; bottom: -8px; margin: 0 0 0 -9px; border: 9px solid transparent; border-top-color: #fff; border-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .bk-cameo, .bk-cameo.bk-out { transform: none; transition: opacity .4s linear; }
  .bk-etch { transition: opacity .4s linear; }
}
/* Country flags on the globe's tiles: small pictures (img/flags), so they show on Windows too. */
.flag-img { display: inline-block; width: 16px; height: 12px; vertical-align: -1px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); object-fit: cover; }

/* ---------- Header and news strip: every tap target at least 44 x 44 px; no sideways scroll at 320 px ---------- */
/* Kept last so it wins over the narrower-screen shrinking rules above. */
.skip { display: inline-flex; align-items: center; min-height: 44px; }
.site-header .brand { min-height: 44px; }
.site-header .lang-btn, .site-header .share-btn, .site-header .sound-btn, .site-header .acct-icon { width: 44px; height: 44px; }
.site-header .acct-pill, .site-header .acct-pill:not(.acct-me), .site-header .acct-me { min-width: 44px; height: 44px; }
.site-header .menu-btn { min-width: 44px; height: 44px; }
.site-header .nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
.ticker { height: 45px; } /* 44 px of strip plus its 1 px bottom line */
.ticker-region[data-seo]:empty { height: 45px; }
.tk-label { min-width: 44px; justify-content: center; }
.tk-pause { width: 44px; height: 44px; right: 0; }
/* On a phone the five header buttons plus the name must fit in 320 px: tighter gaps, not smaller buttons. */
@media (max-width: 480px) {
  .site-header .wrap { gap: 2px; padding: 0 6px; }
  .acct-bar { gap: 2px; margin-left: 0; }
  .acct-bar, .lang-btn, .sound-btn, .share-btn { margin-left: 0; }
  .site-header .lang-btn { margin-left: auto; }
  .site-header .brand { font-size: .95rem; gap: 6px; letter-spacing: 0; }
  .site-header .menu-btn { width: 44px; height: 44px; padding: 0; overflow: visible; }
  .site-header .menu-btn::before { font-size: 20px; }
  .site-header .share-btn svg, .site-header .sound-btn svg, .site-header .lang-btn svg { width: 20px; height: 20px; }
}
/* At 320 px there is room for the name only; the "Updated" line returns from 361 px up. */
@media (max-width: 360px) { .site-header .brand { font-size: .9rem; } .site-header .brand .updated-pill { display: none; } }
/* The home page's single column must be allowed to shrink below its widest child (the search row, the news strip). */
@media (max-width: 760px) { .globe-hero { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Phone-width layout fixes ---------- */
/* A long tag in a wrapping row wraps inside its own pill instead of pushing the page wider. */
.row > .chip { max-width: 100%; height: auto; padding-top: 8px; padding-bottom: 8px; white-space: normal; overflow-wrap: anywhere; }
/* Long mineral formulas break instead of running past the screen edge. */
.cx-formula { overflow-wrap: anywhere; }
/* Coordinates in a two-column facts list may wrap on the narrowest phones. */
@media (max-width: 360px) { .facts a.coord-link { white-space: normal; } }
/* Share-of-meteorites bar: each label keeps its full width; rows wrap on narrow screens instead of clipping. */
.share-bar { height: auto; flex-wrap: wrap; }
.share-bar span { min-width: max-content; min-height: 40px; }
/* The "page not found" page (served by the worker) sits in a flex body: let it and its search box shrink to the screen. */
.nf { width: 100%; box-sizing: border-box; }
.nf, .nf input { min-width: 0; }

/* ---------- Footer links, back links, chips and in-page buttons: at least 44 px to tap ---------- */
/* Phones (760 px and under) and touch screens (coarse pointer) at any width, e.g. a landscape iPad Pro.
   Mouse and trackpad screens (fine pointer) wider than 760 px keep the compact sizes, so desktops look exactly as before.
   "html body" lifts these over page styles and stylesheets that load after this one (explainers.css, map styles). */
@media (max-width: 760px), (pointer: coarse) {
  /* Footer links and the footer's "link" buttons */
  .site-footer nav, .site-footer nav[aria-label="Legal"] { gap: 0 8px; }
  .site-footer a, .site-footer .link-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 6px; }
  /* Back links */
  .back-link { min-height: 44px; }
  /* Chips, small buttons and pill links */
  html body .chip, html body .btn.small, html body .sp-row .chip { min-height: 44px; }
  .link-btn { display: inline-flex; align-items: center; min-height: 44px; }
  html body .xp-toc a { min-height: 44px; }
  html body .dt-tools .btn { min-width: 44px; }
  .cx-related a, .cx-explore-links a { min-height: 44px; }
  .topic-tags a, .sci-jump a, .sci-links a, html body .type-groups .sci-links a { display: inline-flex; align-items: center; min-height: 44px; }
  .az-nav a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
  .mp-jump a, .cx-note a { display: inline-flex; align-items: center; min-height: 44px; }
  /* My Progress jump links: 7 px more tap area each side, cancelled by the margin, so the words stay where they are
     and short ones ("Tests") are at least 44 px wide in any font. The row gap is 14 px, so the areas never overlap. */
  .mp-jump a { padding: 0 7px; margin: 0 -7px; }
  html body .dt-links a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
  .fall-list li > a { display: flex; align-items: center; min-height: 44px; }
  .kit-link { display: inline-flex; align-items: center; min-height: 44px; }
  .lt-more, .lt-alerts .alerts-btn { min-height: 44px; }
  a.lt-more { line-height: 30px; }
  .notice-bar button { width: 44px; height: 44px; right: 0; }
  .mp-qgrid td a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
  /* Explainer step dots: the dot stays 14 px, the button around it is 44 px */
  html body .xp-dots { gap: 0; flex-wrap: wrap; max-width: 100%; }
  html body .xp-dots button { width: 44px; height: 44px; border: 0; background: radial-gradient(circle, transparent 5.5px, var(--ember) 5.5px 7px, transparent 7.5px); }
  html body .xp-dots button[aria-current="step"] { background: radial-gradient(circle, var(--rock) 7px, transparent 7.5px); }
  /* Map buttons (zoom, World / Arctic / Antarctica) */
  html body .leaflet-bar.leaflet-control-zoom a { width: 44px; height: 44px; line-height: 44px; }
  html body .hwmap-views button { min-height: 44px; min-width: 44px; }
  /* The small sign-up pill in the corner (its sizes are set inline, so !important is needed) */
  .join-pill a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 !important; }
  .join-pill button { flex: none; width: 44px !important; height: 44px !important; }
  /* Form controls inside pages: search boxes, filters, sliders, tick boxes */
  #gw-q, #bk-q, #bk-series, #na-sec, .mp-reset-course select { min-height: 44px; }
  html body .ic-row input[type=range] { height: 44px; }
  .wts-check, .wts-check label, html body .contact-card .fb-colours label { min-height: 44px; }
}

/* ---------- Compare meteorite types (types/compare/, scripts/build-type-compare.mjs) ---------- */
.cmp-pick { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 18px 0; }
.cmp-pick[hidden] { display: none; }
.cmp-field { flex: 1 1 220px; min-width: 0; }
.cmp-swap { min-height: 46px; }
table.cmp-table { min-width: 0; table-layout: fixed; }
table.cmp-table caption { text-align: left; padding: 10px 14px; color: var(--mist); font-size: .9rem; }
table.cmp-table th[scope=row] { color: var(--mist); font-weight: 500; vertical-align: top; }
table.cmp-table thead th:first-child { width: 9.5em; }
table.cmp-table td { vertical-align: top; line-height: 1.5; }
table.cmp-table thead th { position: static; }
.cmp-sub { display: block; font-size: .85rem; color: var(--mist); font-style: italic; }
.cmp-link .btn { margin: 4px 6px 4px 0; }
@media (max-width: 640px) {
  table.cmp-table, table.cmp-table caption, table.cmp-table tbody, table.cmp-table tr, table.cmp-table th, table.cmp-table td { display: block; width: auto; }
  table.cmp-table thead { display: none; }
  table.cmp-table tr { padding: 10px 14px; border-bottom: 1px solid var(--line); }
  table.cmp-table tr:last-child { border-bottom: 0; }
  table.cmp-table th[scope=row] { width: auto; padding: 0 0 4px; background: none; border: 0; }
  table.cmp-table td { padding: 4px 0; border: 0; }
  table.cmp-table td::before { content: attr(data-label); display: block; font-weight: 600; font-size: .85rem; }
}
