/* AirSkyHero shared styles: used by the home page and every hero page.
   Looks like a news site: black masthead with a blue logo block, charcoal page, serif headlines, flat pictures. */
:root {
  color-scheme: dark;
  --bg: #1d1d1d; --surface: #262626; --surface-2: #2c2c2c; --text: #f1f1f1; --muted: #a8a8a8;
  --line: #3a3a3a; --accent: #5aa2ff; --accent-strong: #82b8ff; --accent-soft: #16233a;
  --land: #2e2e2e; --land-has: #234a80; --grat: #262626; --header-bg: #000; --bar: #2a2a2a;
  --gold: #5aa2ff; --on-gold: #fff; --fill: #1a5fd0; --link: var(--accent); --far: #6aa5ec; --live: #82b8ff;
  --sel: #f1f1f1; --head-h: 64px;
  --serif: "Noto Serif", Georgia, "Times New Roman", serif;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fff; --surface: #fff; --surface-2: #f4f4f4; --text: #141414; --muted: #5c5c5c;
  --line: #e2e2e2; --accent: #1452b8; --accent-strong: #0f408f; --accent-soft: #e6eefb;
  --land: #e4e4e4; --land-has: #9dbdf0; --grat: #efefef; --header-bg: #000; --bar: #f2f2f2;
  --gold: #1452b8; --on-gold: #fff; --fill: #1a5fd0; --link: #1452b8; --far: #1f5fbf; --live: #1452b8;
  --sel: #141414;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 Roboto, system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); padding-bottom: env(safe-area-inset-bottom); }
a { color: var(--link); }
button { font: inherit; color: inherit; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }

/* Masthead: red logo block, section links, search and theme buttons (black in both themes) */
header { position: sticky; top: 0; z-index: 20; background: var(--header-bg); color: #fff; padding-top: env(safe-area-inset-top); }
header .top { display: flex; align-items: stretch; gap: 24px; height: var(--head-h); }
.logo { flex: none; display: flex; align-items: center; gap: 7px; padding: 0 16px; background: var(--fill); color: #fff; text-decoration: none; font-size: 1.3rem; letter-spacing: .01em; text-transform: uppercase; line-height: 1; }
.logo svg { width: 22px; height: 22px; }
.logo span { font-weight: 400; }
.logo b { font-weight: 700; }
.nav { flex: 1; min-width: 0; display: flex; align-items: stretch; gap: 22px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { flex: none; display: flex; align-items: center; color: #fff; text-decoration: none; font-size: 1.02rem; font-weight: 500; white-space: nowrap; border-bottom: 3px solid transparent; border-top: 3px solid transparent; }
.nav a:hover { color: #9cc6ff; }
.nav a[aria-current="page"] { border-bottom-color: var(--fill); }
.nav a:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.tools { flex: none; display: flex; align-items: center; gap: 10px; margin-left: auto; }
.ic-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 0; background: #3a3a3a; color: #fff; cursor: pointer; padding: 0; }
.ic-btn:hover { background: #4a4a4a; }
.ic-btn svg { width: 20px; height: 20px; }
#theme-btn .sun { display: none; }
[data-theme="light"] #theme-btn .sun { display: inline; }
[data-theme="light"] #theme-btn .moon { display: none; }

/* Grey strip under the masthead: "Latest ›" and a ticker of the newest headlines */
.quick { background: var(--bar); border-bottom: 1px solid var(--line); }
.quick-row { display: flex; align-items: center; gap: 18px; height: 52px; }
.t-label { flex: none; display: inline-flex; align-items: center; gap: 2px; padding-right: 18px; border-right: 1px solid var(--line); color: var(--accent); font-size: .92rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.t-label svg { width: 16px; height: 16px; }
.ticker { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 3%, #000 94%, transparent); }
.ticker-track { display: flex; width: max-content; animation: ticker 70s linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker ul { display: flex; list-style: none; margin: 0; padding: 0; }
.ticker li { white-space: nowrap; padding-right: 36px; font-size: .98rem; font-weight: 400; }
.ticker a { color: var(--text); text-decoration: none; }
.t-date { color: var(--muted); font-weight: 400; font-size: .85rem; margin-right: 8px; }
.ticker a:hover { color: var(--accent); }
@keyframes ticker { to { transform: translateX(-50%); } }

.eyebrow, .label { text-transform: uppercase; letter-spacing: .04em; font-size: .75rem; font-weight: 700; color: var(--accent); margin: 0 0 8px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; letter-spacing: 0; }
.sec-h { margin: 0 0 18px; font-size: 1.8rem; }
.meta { color: var(--muted); margin: 0 0 12px; }

/* Search pill at the top of the home page */
.ask { display: flex; align-items: center; gap: 14px; margin: 0 0 24px; padding: 6px 6px 6px 22px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.ask:focus-within { border-color: var(--muted); }
.ask-brand { flex: none; padding-right: 14px; border-right: 1px solid var(--line); font-weight: 700; font-size: 1.05rem; letter-spacing: .01em; }
.ask-brand b { color: var(--accent); }
.ask input { flex: 1; min-width: 0; border: 0; background: none; color: var(--text); font: inherit; font-size: 1.05rem; padding: 8px 0; outline: none; }
.ask input::placeholder { color: var(--muted); }
.ask button { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--surface-2); color: var(--text); cursor: pointer; }
.ask button:hover { background: var(--fill); color: #fff; }
.ask button svg { width: 20px; height: 20px; }

/* Latest: lead story on the left, the newest news in two columns beside it */
.featured { padding-block: 24px 8px; }
.latest-head { display: flex; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.latest-head .sec-h { margin: 0; font-size: 1.15rem; font-family: inherit; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); }
.fresh { margin: 0; font-size: .85rem; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.live-dot { width: 8px; height: 8px; margin-right: 4px; border-radius: 50%; background: var(--fill); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.new-tag { display: inline-block; margin-right: 6px; padding: 1px 6px; border-radius: 2px; background: var(--fill); color: #fff; font-size: .62rem; letter-spacing: .06em; vertical-align: 1px; }
.latest { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.feature-card { display: flex; flex-direction: column; }
.feature-card .f-img { display: block; aspect-ratio: 16 / 9; background: var(--surface); overflow: hidden; }
.feature-card .f-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature-card .f-img img.face { object-position: 50% 25%; }
.feature-card .f-body { padding: 16px 0 0; display: flex; flex-direction: column; gap: 8px; }
.feature-card .label { margin: 0; }
.feature-card h1 { margin: 0; font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 500; line-height: 1.25; }
.feature-card h1 a { color: inherit; text-decoration: none; }
.feature-card h1 a:hover, .s-card:hover .s-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
/* Latest beside the lead story: a carousel of pages, each four picture cards two by two (rail controls in news.js). */
.side .n-rail { margin: 0; }
.side .n-grid { grid-auto-columns: 100%; gap: 28px; padding-bottom: 10px; }
.s-page { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; align-content: start; }
.s-page li { min-width: 0; }
.side .n-nav { top: calc(25% - 20px); }
.side .n-prev { left: -20px; }
.side .n-next { right: -20px; }
.s-card { display: flex; flex-direction: column; gap: 12px; color: var(--text); text-decoration: none; }
.s-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.s-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); display: grid; place-items: center; }
.s-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.s-thumb img.face { object-position: 50% 25%; }
.s-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.s-text .label { margin: 0; font-size: .7rem; }
.s-title { font-family: var(--serif); font-weight: 500; font-size: 1.12rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.s-src { font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-video::after { content: "▶"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 28px; border-radius: 6px; background: rgba(26,95,208,.92); color: #fff; font-size: .75rem; display: grid; place-items: center; }
@media (max-width: 960px) { .latest { grid-template-columns: 1fr; } }
/* Phones: one card at a time, the next one peeking in. */
@media (max-width: 560px) {
  .side .n-grid { grid-auto-columns: 82%; gap: 16px; }
  .s-page { display: contents; }
  .s-page li { scroll-snap-align: start; }
}
.feature-card .meta { margin: 0; }
.feature-card p.f-story { margin: 0; font-size: 1.05rem; }
.f-cta { display: inline-block; text-decoration: none; align-self: flex-start; margin-top: 6px; border: 0; border-radius: 2px; padding: 9px 18px; background: var(--fill); color: #fff; font-weight: 500; cursor: pointer; }
.f-cta:hover { filter: brightness(1.12); }
.badge-live { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 700; color: var(--live); }
.badge-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--fill); }
.developing { margin: 0 0 16px; padding: 10px 12px; border-left: 3px solid var(--fill); background: var(--surface-2); font-size: .9rem; color: var(--muted); }
.f-news, .f-helpers { margin-top: 28px; }
.f-helpers .helpers { margin-bottom: 0; }
.f-news-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.f-news-head h2 { margin: 0; font-size: 1.3rem; }
.f-all { text-decoration: none; border: 0; background: transparent; color: var(--accent); padding: 0; cursor: pointer; font: inherit; font-size: .92rem; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.f-all:hover { color: var(--accent-strong); }
.news { margin: 0 0 18px; }
.news h3 { margin: 0 0 10px; font-size: 1rem; }
.news h4 { margin: 14px 0 8px; font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.n-rail { position: relative; margin: 0 0 14px; }
.n-grid { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 60px) / 4); gap: 20px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0; padding-bottom: 6px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.n-grid > * { scroll-snap-align: start; min-width: 0; }
.n-nav { position: absolute; top: calc(50% - 22px); width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 1.6rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 4px; z-index: 2; transition: opacity .15s; }
.n-nav:hover { border-color: var(--accent); color: var(--accent-strong); }
.n-nav:disabled { opacity: 0; pointer-events: none; }
.n-prev { left: -14px; }
.n-next { right: -14px; }
@media (hover: none) { .n-nav { display: none; } }
@media (max-width: 1100px) { .n-grid { grid-auto-columns: calc((100% - 40px) / 3); } }
@media (max-width: 900px) { .n-grid { grid-auto-columns: calc((100% - 20px) / 2); } }
@media (max-width: 560px) { .n-grid { grid-auto-columns: 78%; } .n-prev { left: -6px; } .n-next { right: -6px; } }
.n-card { display: flex; flex-direction: column; color: var(--text); text-decoration: none; }
a.n-card:hover .n-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a.n-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.n-thumb { position: relative; aspect-ratio: 16 / 9; background: var(--surface); display: grid; place-items: center; overflow: hidden; }
.n-thumb img, .n-thumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; border: 0; }
/* Drawn thumbnail for news without a picture: a topic icon on a tinted background (news.js topicArt) */
.art { --art: var(--accent-strong); position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--art);
  background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--art) 22%, transparent), transparent 62%),
    linear-gradient(var(--angle, 135deg), color-mix(in srgb, var(--art) 16%, var(--surface-2)), var(--accent-soft)); }
.art svg { width: 38%; max-width: 64px; height: auto; }
.art-src { font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 0 10px; text-align: center; }
.s-thumb .art svg { width: 46%; }
.s-thumb .art-src { display: none; }
.art-award { --art: var(--gold); }
.art-health { --art: #f08a9a; }
.art-inquiry { --art: #a9b8ca; }
.art-family { --art: #74d0b4; }
.art-account { --art: #c0a4f2; }
:root[data-theme="light"] .art-health { --art: #c2304a; }
:root[data-theme="light"] .art-inquiry { --art: #4a5b70; }
:root[data-theme="light"] .art-family { --art: #1f7a5f; }
:root[data-theme="light"] .art-account { --art: #6a3fbf; }
.n-thumb button { all: unset; position: absolute; inset: 0; cursor: pointer; }
.n-thumb button::after { content: "▶"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 56px; height: 40px; border-radius: 8px; background: rgba(26,95,208,.92); color: #fff; font-size: 1.1rem; display: grid; place-items: center; }
.n-thumb button:hover::after, .n-thumb button:focus-visible::after { background: #1a5fd0; }
.n-text { padding: 10px 0 4px; display: flex; flex-direction: column; gap: 4px; }
.n-src { font-size: .75rem; color: var(--muted); }
.n-title { font-family: var(--serif); font-size: 1rem; font-weight: 500; line-height: 1.45; min-height: calc(3 * 1.45em); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.n-credit { font-size: .68rem; color: var(--muted); opacity: .8; }
.news-search { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; }
.news-search a { border: 1px solid var(--line); border-radius: 2px; padding: 5px 12px; }
.news-search a:hover { border-color: var(--accent); }

/* Map */
.atlas { padding-block: 32px 8px; }
.atlas h2 { margin: 0 0 4px; font-size: clamp(1.5rem, 4vw, 2.2rem); }
.map-box { position: relative; margin-top: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
#map { display: block; width: 100%; height: auto; }
#map .sphere { fill: none; stroke: var(--line); }
#map .grat { fill: none; stroke: var(--grat); stroke-width: .5; }
#map .land { fill: var(--land); stroke: var(--surface); stroke-width: .5; }
#map .land.has { fill: var(--land-has); cursor: pointer; transition: fill .15s; }
#map .land.has:hover, #map .land.has:focus { fill: var(--accent); outline: none; }
#map .land.selected { fill: var(--sel) !important; }
#map .pin { fill: var(--text); font-size: 11px; font-weight: 700; text-anchor: middle; pointer-events: none; paint-order: stroke; stroke: var(--surface); stroke-width: 3px; }
.map-loading, .map-error { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: .95rem; }
.tooltip { position: absolute; pointer-events: none; background: #000; color: #fff; border: 0; border-radius: 2px; padding: 6px 10px; font-size: .85rem; white-space: nowrap; opacity: 0; transition: opacity .1s; }
.legend { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 2px; padding: 4px 12px; font-size: .85rem; cursor: pointer; }
.chip:hover { border-color: var(--accent); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--on-gold); font-weight: 600; }

/* Controls */
.heroes { padding-block: 32px 48px; }
.heroes h2 { margin: 0 0 4px; }
.controls { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 8px; margin: 16px 0 8px; }
.controls input, .controls select { width: 100%; font: inherit; padding: 9px 10px; border: 1px solid var(--line); border-radius: 2px; background: var(--surface); color: var(--text); }
.count { color: var(--muted); font-size: .9rem; margin: 0 0 8px; }

/* Country groups + cards */
.country { margin: 24px 0 0; }
.country h3 { font-family: inherit; font-size: .95rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); margin: 0 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px 24px; }
.card { text-align: left; color: var(--text); text-decoration: none; display: flex; flex-direction: column; gap: 6px; cursor: pointer; }
.card:hover h4 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.card h4 { margin: 0; font-size: 1.2rem; font-weight: 500; line-height: 1.35; min-height: calc(2 * 1.35em); }
.thumb { position: relative; margin: 0 0 6px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); display: grid; place-items: center; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb img.face { object-position: 50% 30%; }
.thumb .initials { font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--accent); opacity: .7; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); }
.tag + .tag::before { content: "·"; margin-right: 6px; color: var(--muted); }
/* Country flags (news.js flag) */
.flag { display: inline-block; width: 1.4em; height: auto; aspect-ratio: 4 / 3; margin-right: .4em; vertical-align: -.15em; border-radius: 1px; box-shadow: 0 0 0 1px rgba(127,127,127,.35); object-fit: cover; }
.tag .flag, .k-country .flag { width: 1.6em; vertical-align: -.3em; }
.hp-head .eyebrow .flag { width: 1.6em; vertical-align: -.3em; }
.card .tag { color: var(--muted); }
.card .tag-country { color: var(--accent); }
.card .tags { margin-top: 2px; }
.card .flight { font-weight: 500; font-size: .9rem; color: var(--muted); margin: 0; }
.card p { margin: 0; font-size: .95rem; }
.card .more { margin-top: auto; padding-top: 4px; font-size: .85rem; font-weight: 500; color: var(--accent); }
.empty { color: var(--muted); padding: 24px 0; }

/* Detail dialog */
dialog { width: min(680px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--text); }
dialog::backdrop { background: rgba(4,8,12,.75); backdrop-filter: blur(3px); }
.d-head { padding: 24px 24px 16px; background: var(--surface); border-top: 4px solid var(--fill); border-bottom: 1px solid var(--line); position: relative; }
.d-head h2 { margin: 0 0 6px; font-size: 1.6rem; line-height: 1.2; padding-right: 40px; }
.d-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 1.2rem; line-height: 1; }
.d-close:hover { border-color: var(--accent); }
.d-body { padding: 20px 24px 24px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 0 0 18px; }
.fact { background: var(--surface-2); border-left: 3px solid var(--fill); padding: 8px 12px; }
.fact dt { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.fact dd { margin: 2px 0 0; font-weight: 600; }
.d-body p { margin: 0 0 16px; }
.d-photo { margin: 0; background: #000; }
.d-photo img { width: 100%; max-height: 320px; object-fit: contain; display: block; }
.d-photo figcaption { padding: 6px 24px; font-size: .75rem; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--line); }
.d-photo figcaption a { color: var(--muted); }
.d-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 14px; font-size: .9rem; }
.d-nav { display: flex; gap: 8px; }
.d-nav button { border: 1px solid var(--line); background: var(--surface-2); border-radius: 2px; padding: 6px 12px; cursor: pointer; }
.d-nav button:hover { border-color: var(--accent); }

/* Share buttons */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 18px; }
.share-label { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-right: 2px; }
.sh { display: inline-flex; align-items: center; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); border-radius: 2px; padding: 6px 14px; font-size: .85rem; text-decoration: none; cursor: pointer; }
.sh:hover, .sh:focus-visible { border-color: var(--accent); }
.sh-wa { background: #1f7a4a; border-color: #1f7a4a; color: #fff; font-weight: 600; }
.sh-wa:hover, .sh-wa:focus-visible { background: #25935a; border-color: #25935a; }
.sh-more { display: none; }
.can-share .sh-more { display: inline-flex; }

/* Hero page (airskyhero.com/<hero>/) */
.hero-page { max-width: 820px; padding-block: 24px 48px; }
.crumbs { font-size: .85rem; color: var(--muted); margin: 0 0 16px; }
.crumbs a { color: var(--muted); }
.hp-head h1 { margin: 0 0 8px; font-size: clamp(2rem, 5vw, 2.9rem); font-weight: 500; line-height: 1.2; }
.hp-head .tags { margin: 0 0 18px; }
.hp-photo { margin: 0 0 18px; overflow: hidden; background: #000; }
.hp-photo img { width: 100%; max-height: 460px; object-fit: contain; display: block; }
.hp-photo figcaption { padding: 6px 14px; font-size: .75rem; color: var(--muted); background: var(--surface-2); }
.hp-photo figcaption a { color: var(--muted); }
.hp-story { font-family: var(--serif); font-size: 1.15rem; line-height: 1.75; margin: 0 0 18px; }
.hp-source { margin: 0 0 28px; font-size: .9rem; }
.hp-more { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 24px; }
.hp-more h2 { margin: 0 0 12px; font-size: 1.25rem; }
.hp-more .grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.hp-pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 18px 0 0; font-size: .9rem; }
.hp-home { display: inline-block; margin-top: 18px; }

.about { border-top: 1px solid var(--line); padding-block: 32px 48px; color: var(--muted); }
.about h2 { color: var(--text); }

@media (max-width: 1100px) {
  :root { --head-h: 98px; }
  header .top { flex-wrap: wrap; height: auto; gap: 0 16px; }
  .logo { height: 54px; }
  .tools { height: 54px; }
  .nav { order: 3; flex-basis: 100%; height: 44px; gap: 20px; margin: 0 -16px; padding: 0 16px; border-top: 1px solid #262626; }
  .nav a { font-size: .95rem; }
}
@media (max-width: 640px) {
  .logo { font-size: 1.1rem; padding: 0 12px; margin-left: -16px; }
  .ic-btn { width: 36px; height: 36px; }
  .quick-row { height: 44px; gap: 12px; }
  .t-label { padding-right: 12px; font-size: .8rem; }
  .ticker li { font-size: .9rem; }
  .ask-brand { display: none; }
  .ask { padding-left: 16px; }
}
@media (max-width: 420px) {
  .controls { grid-template-columns: 1fr 1fr; }
  .controls input { grid-column: 1 / -1; }
  #map .pin { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .ticker-track, .live-dot { animation: none; }
  .ticker { overflow-x: auto; scrollbar-width: none; }
}

/* Passenger safety guide */
.guide h1 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); }
.guide h2 { margin: 28px 0 6px; font-size: 1.3rem; }
.g-sub { margin: 0 0 10px; color: var(--muted); }
.g-list { margin: 0; padding-left: 20px; display: grid; gap: 10px; line-height: 1.6; }
.g-list a { white-space: nowrap; font-size: .9rem; }
.g-links a { white-space: normal; font-size: 1rem; }
.guide .hp-home { display: inline-block; margin-top: 32px; }
.hp-guide { margin: 0 0 28px; padding: 12px 14px; border-left: 3px solid var(--fill); background: var(--surface-2); }
.g-hero { margin: 0 0 18px; }
.g-map { margin: 8px 0 6px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.g-map svg { width: 100%; height: auto; display: block; }
.m-body { fill: var(--surface-2); stroke: var(--muted); stroke-width: 1.5; }
.m-wing path { fill: var(--surface-2); stroke: var(--muted); stroke-width: 1.2; }
.m-near { fill: rgba(224, 93, 93, .16); stroke: #e05d5d; stroke-dasharray: 5 4; }
.m-far { fill: color-mix(in srgb, var(--far) 14%, transparent); stroke: var(--far); stroke-dasharray: 5 4; opacity: .9; }
.m-door { stroke: var(--text); stroke-width: 3; }
.m-seats rect { fill: var(--muted); opacity: .45; }
.m-exit rect { fill: #3fb68b; }
.m-alert circle { fill: #e05d5d; }
.m-alert text { fill: #fff; font: 700 18px system-ui, sans-serif; }
.m-small { fill: var(--muted); font: 600 12px system-ui, sans-serif; }
.m-label { font: 700 18px system-ui, sans-serif; }
.m-label-near { fill: #e05d5d; }
.m-label-far { fill: var(--far); }
.g-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; font-size: .92rem; }
.g-legend > div { padding: 10px 12px; border-radius: 8px; background: var(--surface-2); border-left: 4px solid; }
.g-legend b { display: block; }
.g-legend span { display: block; margin-top: 4px; color: var(--muted); }
.g-near { border-color: #e05d5d !important; }
.g-far { border-color: var(--far) !important; }
.g-note { margin: 0 0 8px; font-size: .88rem; color: var(--muted); }
.g-side { float: right; width: 200px; margin: 4px 0 12px 20px; }
.g-side img { width: 100%; height: auto; border-radius: 10px; display: block; }
.g-side figcaption { font-size: .78rem; color: var(--muted); margin-top: 6px; }
.guide section::after { content: ""; display: block; clear: both; }
@media (max-width: 560px) {
  .g-legend { grid-template-columns: 1fr; }
  .g-side { float: none; width: auto; max-width: 260px; margin: 4px auto 14px; }
  .g-map { padding: 8px; }
  .m-label { font-size: 32px; }
  .m-small { font-size: 24px; }
}
.m-wc rect { fill: var(--surface); stroke: var(--muted); }
.m-wc text { fill: var(--muted); font: 700 12px system-ui, sans-serif; }
.g-story { margin: 0 0 14px; padding: 10px 12px; border-left: 3px solid var(--gold); background: var(--surface-2); border-radius: 0 8px 8px 0; line-height: 1.6; }
.g-story a { white-space: nowrap; font-size: .9rem; }
@media (max-width: 560px) { .m-wc text { font-size: 18px; } }

/* Timeline and questions (hero pages that have them) */
.hp-h { margin: 6px 0 10px; font-size: 1.05rem; }
.timeline { list-style: none; margin: 0 0 24px; padding: 0 0 0 16px; border-left: 2px solid var(--line); }
.timeline li { position: relative; margin: 0 0 14px; line-height: 1.5; }
.timeline li::before { content: ""; position: absolute; left: -22px; top: .45em; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.tl-date { display: block; font-size: .78rem; color: var(--gold); text-transform: uppercase; letter-spacing: .05em; }
.tl-text .h-src { display: inline; margin: 0; }
.faq { margin: 0 0 24px; display: grid; gap: 8px; }
.faq details { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 8px 0 2px; line-height: 1.55; color: var(--muted); }
.faq .h-src { display: block; margin-top: 6px; }

/* Who helped */
.helpers-h { margin: 0 0 10px; font-size: 1.05rem; }
.helpers, .helpers-h, #f-helpers { scroll-margin-top: calc(var(--head-h) + 12px); }
.helpers { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.helpers li { padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; line-height: 1.45; }
.helpers b { display: block; }
.h-role { display: block; font-size: .78rem; color: var(--gold); text-transform: uppercase; letter-spacing: .05em; margin: 2px 0 4px; }
.h-did { display: block; font-size: .9rem; color: var(--muted); }
.helpers li.has-pic { display: grid; grid-template-columns: 56px 1fr; gap: 10px; align-items: start; }
.helpers li img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; background: var(--surface); border: 2px solid currentColor; box-sizing: border-box; }
.helpers b a { color: inherit; }
.helpers-note { margin: 0 0 8px; color: var(--muted); font-size: .92rem; }
.helpers-short { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.helpers-short li { padding: 4px 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; }
.helpers-short .h-role { display: inline; margin: 0; color: var(--muted); }
.h-credit { display: block; margin-top: 4px; font-size: .68rem; color: var(--muted); opacity: .8; }
.h-credit a { color: inherit; }
.h-src { display: block; margin-top: 6px; font-size: .72rem; color: var(--muted); }
.h-src a { display: inline-block; min-width: 1.6em; padding: 0 4px; margin-right: 2px; text-align: center; border: 1px solid var(--line); border-radius: 4px; text-decoration: none; color: var(--muted); }
.h-src a:hover { border-color: var(--accent); color: var(--accent-strong); }
.h-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; border: 2px solid currentColor; background: var(--surface); box-sizing: border-box; }
.h-icon svg { width: 30px; height: 30px; }
.h-icon svg { width: 28px; height: 28px; }
.h-pilot { color: #6fa8ff; }
.h-crew { color: #e6b84f; }
.h-passenger { color: #4fc3b0; }
.h-medic { color: #ef6b6b; }
.h-rescue { color: #f39a4a; }
.h-atc { color: #b48cf2; }
.h-official { color: #93a3b5; }

/* Acts of kindness page */
.k-countries { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.k-countries a { padding: 5px 12px; border: 1px solid var(--line); border-radius: 2px; background: var(--surface-2); color: inherit; text-decoration: none; font-size: .92rem; }
.k-countries a:hover { border-color: var(--gold); }
.k-countries span { color: var(--gold); font-weight: 600; margin-left: 2px; }
.kindness.hero-page { max-width: 1240px; }
.kindness .hp-story { max-width: 820px; }
.kindness .k-countries { margin-bottom: 24px; }
.k-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
@media (max-width: 1000px) { .k-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .k-list { grid-template-columns: 1fr; } }
.k-card { position: relative; display: flex; flex-direction: column; line-height: 1.6; scroll-margin-top: calc(var(--head-h) + 12px); }
.k-anchor { position: absolute; top: 0; scroll-margin-top: calc(var(--head-h) + 12px); }
.k-card:target, .k-card:has(.k-anchor:target) { outline: 2px solid var(--accent); outline-offset: 6px; }
.k-pic { aspect-ratio: 16 / 9; margin-bottom: 12px; }
.k-body { flex: 1; display: flex; flex-direction: column; }
.k-country { margin: 0 0 4px; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.k-card h3 { margin: 0 0 4px; font-size: 1.2rem; font-weight: 500; line-height: 1.35; }
.k-card p { margin: 0; }
.k-card .k-meta { margin-bottom: 8px; font-size: .85rem; color: var(--muted); }
.k-card .k-text { margin-bottom: 10px; }
.k-card .h-src { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); }
.kind .f-all { display: inline-block; margin-top: 6px; }
.kind { border-top: 1px solid var(--line); padding-block: 32px 40px; }
.kind h2 { margin: 0 0 4px; }
.kindness .map-box { margin: 4px 0 14px; }
.fact-links { margin: 8px 0 4px; padding-left: 1.2em; line-height: 1.7; }
.fact-links li::marker { color: var(--gold); }
main section[id] { scroll-margin-top: calc(var(--head-h) + 12px); }

/* Fun facts page */
:root { --t0: #e0b44c; --t1: #4fc3b0; --t2: #6fa8ff; --t3: #f08a6c; }
:root[data-theme="light"] { --t0: #a87a0f; --t1: #13806f; --t2: #1f5fbf; --t3: #c2491f; }
.t0 { --tc: var(--t0); } .t1 { --tc: var(--t1); } .t2 { --tc: var(--t2); } .t3 { --tc: var(--t3); }
.facts-page { padding-block: 24px 48px; }
.ff-hero { position: relative; overflow: hidden; padding: 36px 36px 32px; border-radius: 2px; color: #fff;
  background: radial-gradient(circle at 85% 20%, rgba(26,95,208,.35), transparent 50%), linear-gradient(135deg, #000 0%, #141414 55%, #0c2a5c 100%); }
.ff-hero > :not(.ff-art) { position: relative; max-width: 640px; }
.ff-hero .eyebrow { color: #82b8ff; }
.ff-hero h1 { margin: 0 0 10px; font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.05; letter-spacing: -.01em; }
.ff-lead { margin: 0 0 20px; font-size: 1.08rem; line-height: 1.65; color: #ddd; }
.ff-art { position: absolute; right: -10px; bottom: -10px; width: min(52%, 440px); opacity: .9; pointer-events: none; }
.ff-path { fill: none; stroke: rgba(255,255,255,.55); stroke-width: 2.5; stroke-dasharray: 2 10; stroke-linecap: round; animation: ff-dash 3s linear infinite; }
.ff-plane { fill: #5aa2ff; }
.ff-cloud { fill: rgba(255,255,255,.1); }
@keyframes ff-dash { to { stroke-dashoffset: -48; } }
.ff-nums { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.ff-nums span { padding: 6px 14px; border-radius: 2px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); font-size: .9rem; color: #ddd; }
.ff-nums b { color: #fff; font-size: 1.05rem; margin-right: 2px; }
.ff-surprise { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border: 0; border-radius: 2px; background: #1a5fd0; color: #fff; font-weight: 700; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.ff-surprise:hover { filter: brightness(1.12); }
.ff-surprise:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.ff-surprise svg { width: 18px; height: 18px; }
.ff-surprise[hidden] { display: none; }
.ff-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.ff-quiz-btn { text-decoration: none; background: transparent; color: #fff; border: 1px solid #fff; box-shadow: none; }
.quiz { margin: 22px 0 6px; padding: 20px 22px; border: 1px solid var(--line); border-top: 4px solid var(--fill); border-radius: 2px; background: var(--surface); scroll-margin-top: 90px; }
.quiz[hidden] { display: none; }
.quiz-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 12px; }
.quiz-head h2 { margin: 0; font-size: 1.35rem; }
.quiz-progress { margin: 0; color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.quiz-pic { display: block; width: 100%; max-height: 240px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; margin-bottom: 14px; background: var(--surface-2); }
.quiz-q { margin: 0 0 12px; font-size: 1.15rem; font-weight: 600; line-height: 1.4; }
.quiz-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quiz-opt { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.quiz-opt:hover:not(:disabled) { border-color: var(--gold); }
.quiz-opt:disabled { cursor: default; opacity: .75; }
.quiz-opt.right { opacity: 1; border-color: #3fb37f; background: color-mix(in srgb, #3fb37f 20%, var(--surface-2)); }
.quiz-opt.wrong { opacity: 1; border-color: #e5484d; background: color-mix(in srgb, #e5484d 18%, var(--surface-2)); }
.quiz-after { margin-top: 14px; }
.quiz-after p { margin: 0 0 10px; line-height: 1.55; }
.quiz-next, .quiz-share { padding: 10px 20px; border: 0; border-radius: 2px; background: #1a5fd0; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.quiz-share { background: transparent; color: var(--text); border: 1px solid var(--line); }
.quiz-end { text-align: center; padding: 8px 0; }
.quiz-end p { margin: 0 0 8px; }
.quiz-score { font-size: 1.1rem; }
.quiz-score b { display: block; font-size: 3rem; line-height: 1; color: var(--gold); }
.quiz-best { color: var(--muted); font-size: .9rem; }
.quiz-end-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; }
@media (max-width: 560px) { .quiz { padding: 16px; } .quiz-opts { grid-template-columns: 1fr; } }
.ff-topics { position: sticky; top: calc(var(--head-h) + env(safe-area-inset-top)); z-index: 10; display: flex; gap: 8px; overflow-x: auto; margin: 18px -16px 0; padding: 10px 16px; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(8px); scrollbar-width: none; }
.ff-topics a { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); text-decoration: none; font-size: .9rem; font-weight: 500; transition: border-color .15s, background .15s; }
.ff-topics a svg { width: 17px; height: 17px; color: var(--tc); }
.ff-topics a span { color: var(--tc); font-weight: 700; }
.ff-topics a:hover, .ff-topics a.on { border-color: var(--tc); background: color-mix(in srgb, var(--tc) 14%, var(--surface)); }
.ff-grid { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1100px) { .ff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fc-anchor { position: absolute; top: 0; scroll-margin-top: calc(var(--head-h) + 70px); }
.fc:has(.fc-anchor:target) { box-shadow: 0 0 0 2px var(--tc); }
.fc { display: flex; flex-direction: column; position: relative; padding: 18px 20px 14px; border: 1px solid var(--line); border-top: 4px solid var(--tc); border-radius: 2px; background: linear-gradient(180deg, color-mix(in srgb, var(--tc) 7%, var(--surface)), var(--surface) 140px); scroll-margin-top: 140px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.fc-pic, .k-pic { position: relative; margin: 0; overflow: hidden; background: var(--surface-2); }
.fc-pic { margin: -18px -20px 14px; aspect-ratio: 16 / 9; }
.fc-pic img, .k-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fc-pic figcaption, .k-pic figcaption { position: absolute; right: 6px; bottom: 6px; max-width: calc(100% - 12px); padding: 1px 7px; border-radius: 6px; background: rgba(0,0,0,.6); color: #fff; font-size: .68rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-pic figcaption a, .k-pic figcaption a { color: inherit; text-decoration: none; }
.fc-pic figcaption a:hover, .k-pic figcaption a:hover { text-decoration: underline; }
.fc:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.22); border-color: color-mix(in srgb, var(--tc) 45%, var(--line)); border-top-color: var(--tc); }
.fc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.fc-no { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tc); }
.fc-ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--tc); background: color-mix(in srgb, var(--tc) 14%, transparent); }
.fc-ic svg { width: 18px; height: 18px; }
.fc-stat { margin: 0 0 10px; }
.fc-stat b { display: block; font-size: clamp(2rem, 5vw, 2.6rem); line-height: 1.05; font-weight: 700; letter-spacing: -.02em; color: var(--tc); }
.fc-stat span { font-size: .82rem; color: var(--muted); }
.fc h3 { margin: 0 0 4px; font-size: 1.12rem; line-height: 1.35; }
.fc-when { align-self: flex-start; display: inline-block; margin: 2px 0 8px; padding: 1px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: .78rem; color: var(--muted); }
.fc-text { margin: 4px 0 12px; line-height: 1.65; }
.fc-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.fc-foot .h-src { margin: 0; }
.fc-share { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font-size: .8rem; cursor: pointer; }
.fc-share:hover { color: var(--tc); border-color: var(--tc); }
.fc-share svg { width: 15px; height: 15px; }
.fc:target, .fc.flash { box-shadow: 0 0 0 2px var(--tc), 0 14px 36px color-mix(in srgb, var(--tc) 30%, transparent); }
.fc.flash { animation: ff-glow 1.6s ease-out; }
@keyframes ff-glow { 0%, 30% { transform: scale(1.03); } 100% { transform: none; } }
.ff-js .fc { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease, box-shadow .2s, border-color .2s; }
.ff-js .fc.in { opacity: 1; transform: none; }
.ff-js .fc.in:hover { transform: translateY(-3px); }
.facts-page .hp-home { margin-top: 28px; }
@media (max-width: 760px) {
  .ff-grid { grid-template-columns: 1fr; }
  .ff-hero { padding: 26px 20px 24px; }
  .ff-art { width: 70%; opacity: .35; }
}
@media (prefers-reduced-motion: reduce) {
  .ff-path, .fc.flash { animation: none; }
}

/* Quotes page */
.quotes-page { padding-block: 24px 48px; }
.q-hero h1 { font-family: var(--serif); font-style: italic; font-weight: 600; }
.q-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 860px) { .q-list { grid-template-columns: 1fr; } }
.q-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-top: 4px solid var(--fill); border-radius: 2px; background: var(--surface); overflow: hidden; scroll-margin-top: calc(var(--head-h) + 16px); }
.q-card:target { box-shadow: 0 0 0 2px var(--accent); }
.q-by { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.q-face { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--surface-2); border: 2px solid var(--fill); }
.q-face.face { object-position: 50% 22%; }
.q-ini { display: grid; place-items: center; font-weight: 700; color: var(--accent); }
.q-credit { margin: 0 0 8px; font-size: .72rem; color: var(--muted); }
.q-credit a { color: inherit; }
.q-body { position: relative; flex: 1; display: flex; flex-direction: column; padding: 22px 22px 14px; }
.q-mark { width: 38px; height: 28px; fill: var(--accent); opacity: .85; margin-bottom: 10px; }
.q-said { margin: 0 0 16px; }
.q-said p { margin: 0; font-family: var(--serif); font-size: clamp(1.25rem, 2.6vw, 1.5rem); font-weight: 600; line-height: 1.4; color: var(--text); }
.q-who { margin: 0 0 2px; display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; }
.q-who b { font-size: 1rem; }
.q-who span, .q-to { font-size: .85rem; color: var(--muted); }
.q-to { margin: 0; }
.q-ctx { margin: 0 0 10px; line-height: 1.65; }
.q-note { margin: 0 0 10px; font-size: .85rem; font-style: italic; color: var(--muted); }
.q-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.q-foot .h-src { margin: 0; }
.q-acts { display: inline-flex; align-items: center; gap: 12px; font-size: .9rem; }
.q-share:hover { color: var(--accent); border-color: var(--accent); }
.quotes-page .hp-home { margin-top: 28px; }
.quote-links { list-style: none; margin: 12px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.quote-links a { display: block; height: 100%; padding: 14px 16px; border-left: 3px solid var(--fill); background: var(--surface-2); color: var(--text); text-decoration: none; }
.quote-links a:hover { background: var(--accent-soft); }
.quote-links q { display: block; font-family: var(--serif); font-size: 1.05rem; font-weight: 600; line-height: 1.45; }
.quote-links span { display: block; margin-top: 6px; font-size: .82rem; color: var(--muted); }
@media (max-width: 560px) { .q-body { padding: 18px 16px 12px; } }
