:root{padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}img{max-width:100%}
html.booting main, html.booting .ticker { visibility: hidden; }
/* Layout: plain news front. One header, a thin red headline bar, the top story beside a headline list, then a simple story grid. Articles are a single readable column. */
:root {
  --paper: #ffffff;
  --soft: #f4f5f8;
  --ink: #0e1222;
  --ink-2: #454b63;
  --muted: #6f7590;
  --line: #e3e6ee;
  --red: #d7142a;
  --on-red: #ffffff;
  --fill: #d7142a;
  --cover-ink: #ffffff;
  --t-heritage: #0b5d3b; --t-energy: #8a4b08; --t-space: #1d1f52; --t-flight: #0b4f7a; --t-communication: #0d5c63; --t-sport: #a3112a;
  --t-science: #4b2a7a; --t-medicine: #8c1d4f; --t-invention: #7a5a00; --t-rail: #3b3f4a; --t-economy: #1f5c2e; --t-culture: #5a2d14;
  --t-world: #23466e; --t-education: #1d4e89; --t-history: #4a4036; --t-nature: #2f6b1f; --t-astronomy: #2a2350;
  --logo: "Archivo", "Arial Narrow", Arial, sans-serif;
  --head: "Newsreader", Georgia, "Times New Roman", serif;
  --ui: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0b0e19; --soft: #141828; --ink: #eef0f7; --ink-2: #c0c5d8; --muted: #8d94b0; --line: #252b42; --red: #ff3d50; --on-red: #ffffff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0b0e19; --soft: #141828; --ink: #eef0f7; --ink-2: #c0c5d8; --muted: #8d94b0; --line: #252b42; --red: #ff3d50; --on-red: #ffffff;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--ui); font-size: 1rem; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--paper); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: 76rem; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.label { font-weight: 700; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); }
.meta { font-size: 0.8rem; color: var(--muted); }
.hl:hover, a:hover > .hl { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }

/* Header */
.mast { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.mast .wrap { display: flex; align-items: center; gap: 1.5rem; padding-block: 0.8rem; }
.logo { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--logo); font-weight: 900; font-stretch: 62%; font-size: 2rem; line-height: 1; }
.logo img { width: 1.9rem; height: auto; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.logo:hover img { transform: rotate(360deg); }
.logo span { color: var(--red); }
.nav { display: flex; gap: 0.25rem; margin-left: auto; }
.nav a { font-weight: 600; font-size: 0.92rem; padding: 0.45rem 0.85rem; border-radius: 999px; color: var(--ink-2); }
.nav a:hover { color: var(--ink); background: var(--soft); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--soft); }
.search-btn { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; cursor: pointer; border: 1px solid var(--line); background: transparent; border-radius: 50%; color: var(--ink-2); }
.search-btn:hover { border-color: var(--ink); color: var(--ink); }
.search-btn svg { width: 1rem; height: 1rem; stroke: currentColor; fill: none; stroke-width: 2.2; }

/* Headline bar */
.ticker { background: var(--fill); color: var(--on-red); }
.ticker .wrap { display: flex; align-items: center; gap: 1rem; }
.ticker-tag { flex: none; font-weight: 800; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; }
.ticker-run { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 2rem, #000 calc(100% - 2rem), transparent); mask-image: linear-gradient(90deg, transparent, #000 2rem, #000 calc(100% - 2rem), transparent); }
.ticker-track { display: flex; width: max-content; animation: run 80s linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker-track a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.ticker :focus-visible { outline-color: var(--on-red); }
.ticker-track > * { white-space: nowrap; padding-block: 0.5rem; font-size: 0.85rem; font-weight: 500; }
.ticker-track > *::after { content: "•"; margin: 0 1.1rem; opacity: 0.7; }
@keyframes run { to { transform: translateX(-50%); } }

/* Views */
main { padding-block: 2.25rem 4rem; }
.view { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; }
[id^="c-"] { scroll-margin-top: 7rem; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-bottom: 2px solid var(--ink); padding-bottom: 0.5rem; }
.sec-head h2 { font-weight: 800; font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; }
.sec-head a { font-size: 0.85rem; font-weight: 600; color: var(--red); }
.sec-head a:hover { text-decoration: underline; }

/* Front: top story + headlines */
.front { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 3rem; }
.lead { display: grid; gap: 1.1rem; align-content: start; }
.lead h1 { font-family: var(--head); font-weight: 600; font-size: clamp(2.1rem, 4.4vw, 3.5rem); line-height: 1.05; letter-spacing: -0.015em; }
.summary { background: var(--soft); border-radius: 12px; padding: 1.25rem 1.4rem; display: grid; gap: 0.5rem; }
.summary p { font-family: var(--head); font-size: 1.2rem; line-height: 1.6; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; }
.btn { display: inline-flex; align-items: center; cursor: pointer; font-weight: 700; font-size: 0.88rem; padding: 0.75rem 1.25rem; border-radius: 999px; border: 0; background: var(--fill); color: var(--on-red); text-decoration: none; }
.btn:hover { filter: brightness(1.08); }

.side { display: grid; gap: 0.5rem; align-content: start; min-width: 0; }
.hlist { list-style: none; margin: 0; padding: 0; }
.hlist li { display: grid; gap: 0.2rem; padding-block: 0.85rem; border-bottom: 1px solid var(--line); }
.hlist li:last-child { border-bottom: 0; }
.hlist .tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.hlist b, .hlist a { font-family: var(--head); font-weight: 500; font-size: 1.05rem; line-height: 1.35; }
.hlist a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 0.2em; }
.stamp { font-size: 0.74rem; color: var(--muted); line-height: 1.6; padding-top: 0.25rem; }
.stamp a { text-decoration: underline; }

/* Story grid */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); gap: 2rem; }
.card { display: grid; gap: 0.55rem; align-content: start; min-width: 0; }
.card h3 { font-family: var(--head); font-weight: 600; font-size: 1.3rem; line-height: 1.18; }
.card p { font-family: var(--head); color: var(--ink-2); font-size: 1rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* Most read */
.ranked { list-style: none; margin: 0; padding: 0; counter-reset: r; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; }
.ranked li { counter-increment: r; display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: 0.25rem; align-items: baseline; padding-block: 0.9rem; border-bottom: 1px solid var(--line); }
.ranked li::before { content: counter(r); font-family: var(--head); font-weight: 600; font-size: 1.6rem; line-height: 1; color: var(--red); }
.ranked b, .ranked a { font-family: var(--head); font-weight: 500; font-size: 1.08rem; line-height: 1.35; }
.ranked a { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 0.2em; }

/* Page heads */
.page-head { display: grid; gap: 0.8rem; max-width: 46rem; }
.page-head h1 { font-family: var(--head); font-weight: 600; font-size: clamp(2.1rem, 4.6vw, 3.2rem); line-height: 1.05; letter-spacing: -0.015em; }
.page-head p { font-family: var(--head); font-size: 1.15rem; color: var(--ink-2); }

/* Stories list */
.search { width: 100%; max-width: 30rem; padding: 0.75rem 1.1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--soft); color: var(--ink); font-family: var(--ui); font-size: 0.95rem; }
.search::placeholder { color: var(--muted); }
.list { list-style: none; margin: 0; padding: 0; display: grid; max-width: 52rem; }
.list li { border-bottom: 1px solid var(--line); }
.list a { display: grid; gap: 0.45rem; padding-block: 1.4rem; }
.list h3 { font-family: var(--head); font-weight: 600; font-size: 1.55rem; line-height: 1.15; }
.list p { font-family: var(--head); color: var(--ink-2); font-size: 1.05rem; }
.empty { color: var(--muted); padding: 2rem 0; }

/* Article */
.article { display: grid; gap: 1.5rem; max-width: 44rem; margin: 0 auto; width: 100%; }
.back { justify-self: start; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.back:hover { color: var(--ink); }
.article h1 { font-family: var(--head); font-weight: 600; font-size: clamp(2.1rem, 4.8vw, 3.3rem); line-height: 1.06; letter-spacing: -0.015em; }
.byline { padding-block: 0.8rem; border-block: 1px solid var(--line); }
.byline b { color: var(--ink); }
.body { display: grid; gap: 1.25rem; }
.body p { font-family: var(--head); font-size: 1.2rem; line-height: 1.7; }
.sources { font-size: 0.85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1rem; }
.sources b { color: var(--ink); }
.more { max-width: 44rem; margin: 0 auto; width: 100%; display: grid; gap: 0.5rem; }

/* Visuals: theme icons, slim colour bands, calm motion */
.icon { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.tdot { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--c); color: var(--cover-ink); flex: none; vertical-align: middle; transition: transform 0.3s ease; }
.tdot .icon { width: 1rem; height: 1rem; }
.tline { display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap; }
a:hover .tdot, li:hover .tdot { transform: rotate(-8deg) scale(1.08); }
.band { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; gap: 0.65rem; height: 4.25rem; padding: 0 1rem; border-radius: 12px; background: var(--c); color: var(--cover-ink); transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0)); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 120% at 90% 0%, rgba(255,255,255,0.22), transparent 55%), radial-gradient(80% 120% at 0% 100%, rgba(0,0,0,0.3), transparent 60%); }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.1; background-image: radial-gradient(rgba(255,255,255,0.9) 1px, transparent 1.2px); background-size: 12px 12px; }
.band .bi { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.35); flex: none; }
.band .bt { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.band .by { position: absolute; right: 0.6rem; top: 50%; transform: translateY(-50%); z-index: -1; font-family: var(--logo); font-weight: 900; font-stretch: 62%; font-size: 3.6rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.2px rgba(255,255,255,0.35); }
.band .art { position: absolute; right: 7.4rem; top: 50%; transform: translateY(-50%); height: 120%; width: auto; aspect-ratio: 240 / 96; z-index: -1; fill: none; stroke: rgba(255,255,255,0.32); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.band .art circle[r="1"], .band .art circle[r="1.2"], .band .art circle[r="1.4"], .band .art circle[r="1.5"] { fill: rgba(255,255,255,0.5); }
.band.lg .art { right: 9.6rem; height: 104%; }
@container (max-width: 21rem) { .band .art { right: 5.2rem; opacity: 0.8; } }
.band.lg { height: 5.5rem; padding: 0 1.25rem; }
.band.lg .by { font-size: 4.8rem; }
.band.lg .bi { width: 2.9rem; height: 2.9rem; }
.band.lg .bi .icon { width: 1.4rem; height: 1.4rem; }
.card { container-type: inline-size; }
.card > .status, .card > .kind { justify-self: start; }
@container (max-width: 21rem) { .band .bt { display: none; } }
.card:hover .band { --lift: -3px; box-shadow: 0 14px 30px -16px rgba(0,0,0,0.55); }
.view:not([hidden]) { animation: pagein 0.5s cubic-bezier(.2,.7,.2,1); }
@keyframes pagein { from { transform: translateY(10px); } }
.cal { width: 5.75rem; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--paper); perspective: 500px; text-align: center; align-self: start; }
.cal .m { background: var(--fill); color: var(--on-red); font-weight: 800; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 0.28rem 0; }
.cal .d { font-family: var(--head); font-weight: 600; font-size: 2.6rem; line-height: 1; padding: 0.5rem 0 0.6rem; transform-origin: top center; animation: flip 0.9s cubic-bezier(.2,.7,.2,1) 0.3s both; font-variant-numeric: tabular-nums; }
@keyframes flip { from { transform: rotateX(-100deg); } 60% { transform: rotateX(12deg); } }
.fhero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.75rem; align-items: center; }
.orbit { width: 5.5rem; height: 5.5rem; perspective: 500px; display: grid; place-items: center; }
.ring { grid-area: 1 / 1; width: 5rem; height: 5rem; transform-style: preserve-3d; animation: spin 14s linear infinite; position: relative; }
.ring i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--red); }
.ring i:nth-child(2) { transform: rotateY(60deg); opacity: 0.6; }
.ring i:nth-child(3) { transform: rotateY(120deg); opacity: 0.35; }
.orbit b { grid-area: 1 / 1; font-family: var(--logo); font-weight: 900; font-stretch: 62%; font-size: 1.7rem; line-height: 1; }
.orbit b span { color: var(--red); }
@keyframes spin { to { transform: rotateY(360deg) rotateX(12deg); } }
@media (max-width: 680px) { .fhero { grid-template-columns: minmax(0, 1fr); } .orbit { width: 4.5rem; height: 4.5rem; } .ring { width: 4rem; height: 4rem; } .orbit b { font-size: 1.4rem; } }

/* Sections */
.chiprow { display: flex; gap: 0.45rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 0.2rem; }
.chiprow a { display: inline-flex; align-items: center; gap: 0.45rem; flex: none; padding: 0.3rem 0.85rem 0.3rem 0.3rem; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; font-size: 0.85rem; color: var(--ink-2); }
.chiprow a:hover { border-color: var(--ink); color: var(--ink); }
.chiprow .tdot { width: 1.6rem; height: 1.6rem; }
.chiprow .tdot .icon { width: 0.85rem; height: 0.85rem; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(13.5rem, 100%), 1fr)); gap: 1rem; }
.tile { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.9rem; align-items: center; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 14px; }
.tile:hover { border-color: var(--ink); }
.tile .tdot { width: 2.8rem; height: 2.8rem; }
.tile .tdot .icon { width: 1.35rem; height: 1.35rem; }
.tile b { display: block; font-family: var(--head); font-weight: 600; font-size: 1.3rem; line-height: 1.2; }
.tile small { font-size: 0.8rem; color: var(--muted); }
.srows { list-style: none; margin: 0; padding: 0; display: grid; max-width: 52rem; }
.srows li { border-bottom: 1px solid var(--line); }
.srows a { display: grid; gap: 0.4rem; padding-block: 1.2rem; }
.srows h3 { font-family: var(--head); font-weight: 600; font-size: 1.35rem; line-height: 1.2; }
.srows p { font-family: var(--head); color: var(--ink-2); font-size: 1.02rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.shead { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.25rem; align-items: center; }
.shead > .tdot { width: 4rem; height: 4rem; }
.shead > .tdot .icon { width: 1.9rem; height: 1.9rem; }

/* Future */
.status { display: inline-flex; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; border-radius: 4px; padding: 0.1rem 0.45rem; border: 1px solid var(--line); color: var(--ink-2); }
.status.s-predicted { border-color: var(--ink-2); }
.status.s-confirmed { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.status.s-anniversary { background: var(--fill); border-color: var(--fill); color: var(--on-red); }
.status.s-planned, .status.s-projection { border-style: dashed; }
.legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); gap: 0.75rem 1.5rem; border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.3rem; max-width: 60rem; }
.legend div { display: grid; gap: 0.3rem; align-content: start; justify-items: start; }
.legend p { font-size: 0.88rem; color: var(--ink-2); }
.timeline .yr.future { color: var(--ink); }

/* On this day */
.otd { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.5rem 1.75rem; align-items: start; background: var(--soft); border-radius: 14px; padding: 1.4rem 1.6rem; }
.otd-date { display: grid; justify-items: center; align-content: start; min-width: 5.5rem; padding: 0.6rem 0.8rem; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); }
.otd-date b { font-family: var(--head); font-weight: 600; font-size: 2.6rem; line-height: 1; color: var(--red); font-variant-numeric: tabular-nums; }
.otd-date span { font-weight: 700; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; }
.otd-text { display: grid; gap: 0.45rem; min-width: 0; }
.otd-text h2 { font-family: var(--head); font-weight: 600; font-size: clamp(1.4rem, 2.6vw, 1.85rem); line-height: 1.15; }
.otd-text p { font-family: var(--head); font-size: 1.1rem; line-height: 1.6; color: var(--ink-2); max-width: 46rem; }
.otd-text .more-link { justify-self: start; font-weight: 700; font-size: 0.88rem; color: var(--red); }
.otd-text .more-link:hover { text-decoration: underline; }
.days { list-style: none; margin: 0; padding: 0; display: grid; max-width: 52rem; }
.days li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1.5rem; padding-block: 1.3rem; border-bottom: 1px solid var(--line); scroll-margin-top: 7rem; }
.days .d { font-family: var(--head); font-weight: 600; font-size: 1.3rem; line-height: 1.25; }
.days .d small { display: block; font-family: var(--ui); font-weight: 700; font-size: 0.78rem; color: var(--red); }
.days .t { display: grid; gap: 0.4rem; min-width: 0; }
.days h3 { font-family: var(--head); font-weight: 600; font-size: 1.35rem; line-height: 1.2; }
.days p { font-family: var(--head); color: var(--ink-2); font-size: 1.05rem; }
.days a { justify-self: start; font-weight: 700; font-size: 0.85rem; color: var(--red); }
.days li.is-today { background: var(--soft); border-radius: 12px; padding-inline: 1rem; border-bottom-color: transparent; }
@media (max-width: 680px) {
  .otd { grid-template-columns: minmax(0, 1fr); padding: 1.2rem; }
  .otd-date { justify-self: start; grid-auto-flow: column; gap: 0.5rem; align-items: baseline; min-width: 0; }
  .otd-date b { font-size: 1.8rem; }
  .days li { grid-template-columns: minmax(0, 1fr); gap: 0.4rem; }
}

/* History */
.htools { display: grid; gap: 0.6rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip { cursor: pointer; padding: 0.4rem 0.9rem; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink-2); font-weight: 600; font-size: 0.82rem; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
#hjump .chip { border-style: dashed; }
.timeline li.is-century .yr { font-size: 1.15rem; }
.timeline li.is-century h3 { font-size: 1.7rem; }
.kind { display: inline-flex; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); background: var(--soft); border-radius: 4px; padding: 0.1rem 0.45rem; }
.century { font-family: var(--head); font-weight: 600; font-size: 1.8rem; padding-top: 0.5rem; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; max-width: 52rem; }
.timeline li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1.5rem; border-bottom: 1px solid var(--line); }
.timeline .yr { font-family: var(--head); font-weight: 600; font-size: 1.6rem; line-height: 1.2; color: var(--red); padding-top: 1.3rem; font-variant-numeric: tabular-nums; }
.timeline a { display: grid; gap: 0.45rem; padding-block: 1.4rem; }
.timeline h3 { font-family: var(--head); font-weight: 600; font-size: 1.45rem; line-height: 1.18; }
.timeline p { font-family: var(--head); color: var(--ink-2); font-size: 1.05rem; }
.keydates { border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.3rem; display: grid; gap: 0.6rem; }
.keydates dl { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.5rem 1.25rem; }
.keydates dt { font-weight: 700; font-size: 0.88rem; font-variant-numeric: tabular-nums; }
.keydates dd { margin: 0; font-family: var(--head); font-size: 1.02rem; color: var(--ink-2); }
@media (max-width: 680px) {
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .timeline .yr { padding-top: 1.2rem; font-size: 1.3rem; }
  .timeline a { padding-top: 0.4rem; }
  .keydates dl { grid-template-columns: minmax(0, 1fr); gap: 0.1rem; }
  .keydates dd { margin-bottom: 0.5rem; }
}

/* About + Contact */
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 3rem; max-width: 60rem; }
.block { display: grid; gap: 0.6rem; align-content: start; border-top: 2px solid var(--ink); padding-top: 1rem; min-width: 0; }
.block h2 { font-family: var(--head); font-weight: 600; font-size: 1.45rem; line-height: 1.15; }
.block p, .block li { font-family: var(--head); color: var(--ink-2); font-size: 1.05rem; }
.block ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.3rem; }
.tba { display: inline-block; font-size: 0.72rem; color: var(--muted); border: 1px dashed var(--muted); border-radius: 4px; padding: 0.05rem 0.4rem; white-space: nowrap; }
.social { display: flex; gap: 0.5rem; }
.social a { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--line); }
.social a:hover { border-color: var(--ink); }
.social svg { width: 1rem; height: 1rem; fill: currentColor; }

/* Footer */
.foot { border-top: 1px solid var(--line); background: var(--soft); }
/* Footer content keeps to the left, clear of any host badge bottom-right */
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; padding-block: 1.75rem; }
.foot .logo { font-size: 1.6rem; }
.foot .logo img { width: 1.5rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; font-size: 0.88rem; font-weight: 600; color: var(--ink-2); }
.foot nav a:hover { color: var(--ink); }
.foot small { width: 100%; font-size: 0.75rem; color: var(--ink-2); }

@media (max-width: 1000px) {
  .front { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
}
@media (max-width: 680px) {
  .mast .wrap { flex-wrap: wrap; gap: 0.25rem 1rem; padding-block: 0.6rem 0.4rem; }
  .logo { font-size: 1.75rem; }
  .search-btn { margin-left: auto; }
  .nav { order: 3; width: 100%; margin-left: -0.6rem; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 2.5rem), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 2.5rem), transparent); }
  .nav a { flex: none; padding-inline: 0.6rem; font-size: 0.88rem; }
  .cols, .ranked { grid-template-columns: minmax(0, 1fr); }
  main { padding-block: 1.5rem 3rem; }
  .view { gap: 2.5rem; }
  .foot .wrap { padding-bottom: 4rem; }
}

/* Refinements: dateline, scroll fades, search results, share row, progress bar, entry pager */
.topline { display: grid; gap: 0.85rem; min-width: 0; }
.dateline { font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.dateline b { color: var(--ink); font-weight: 700; }
.fade-x { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 2.5rem), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 2.5rem), transparent); }
@media (min-width: 1000px) { .chiprow { flex-wrap: wrap; overflow: visible; -webkit-mask-image: none; mask-image: none; } }
.searchbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.searchbar .meta kbd { font: inherit; font-weight: 700; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 0 0.35rem; color: var(--ink-2); }
.rtype { display: inline-flex; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); background: var(--soft); border-radius: 4px; padding: 0.1rem 0.45rem; }
.list mark { background: color-mix(in srgb, var(--red) 18%, transparent); color: inherit; border-radius: 2px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.share > span { font-size: 0.8rem; font-weight: 700; color: var(--muted); margin-right: 0.25rem; }
.share a, .share button { display: inline-flex; align-items: center; gap: 0.4rem; cursor: pointer; padding: 0.4rem 0.85rem; border-radius: 999px; border: 1px solid var(--line); background: transparent; font-weight: 600; font-size: 0.82rem; color: var(--ink-2); }
.share a:hover, .share button:hover { border-color: var(--ink); color: var(--ink); }
.share button[data-done] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.progress { position: fixed; left: 0; top: env(safe-area-inset-top, 0px); z-index: 25; height: 3px; width: 100%; background: var(--fill); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.pager a { display: grid; gap: 0.25rem; padding: 0.9rem 1.1rem; border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.pager a:hover { border-color: var(--ink); }
.pager a.next { text-align: right; grid-column: 2; }
.pager small { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.pager b { font-family: var(--head); font-weight: 600; font-size: 1.08rem; line-height: 1.25; }
.flink { justify-self: start; font-weight: 700; font-size: 0.85rem; color: var(--red); }
.flink:hover { text-decoration: underline; }
.totop { font-weight: 600; font-size: 0.88rem; color: var(--ink-2); margin-left: auto; }
.totop:hover { color: var(--ink); }
@media (max-width: 680px) { .pager { grid-template-columns: minmax(0, 1fr); } .pager a.next { grid-column: auto; } }
@media (prefers-reduced-motion: reduce) {
  .view:not([hidden]), .cal .d, .ring { animation: none; }
  .band, .tdot, .logo img { transition: none; }
  .ticker-track { animation: none; }
  .ticker-run { overflow-x: auto; }
  .progress { display: none; }
}

/* Listen button and daily quiz (1 November 2026) */
.share .listen { border-color: var(--red); color: var(--red); }
.share .listen[aria-pressed="true"] { background: var(--fill); border-color: var(--fill); color: var(--on-red); }
.quiz { display: grid; gap: 1rem; background: var(--soft); border-radius: 14px; padding: 1.4rem 1.6rem; }
.quiz .qmeta .meta { color: var(--ink-2); }
.quiz .qmeta { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.quiz h3 { font-family: var(--head); font-weight: 600; font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.2; }
.quiz .opts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; }
.quiz .opts button { cursor: pointer; padding: 0.8rem 0.5rem; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); font-family: var(--head); font-weight: 600; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.quiz .opts button:hover:not(:disabled) { border-color: var(--ink); }
.quiz .opts button.right { background: #1f7a3a; border-color: #1f7a3a; color: #fff; }
.quiz .opts button.wrong { background: var(--fill); border-color: var(--fill); color: var(--on-red); }
.quiz .opts button:disabled { cursor: default; }
.quiz .opts.pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.quiz .opts.pair button { font-size: 1.05rem; font-weight: 500; text-align: left; padding: 0.9rem 1rem; line-height: 1.35; }
.quiz .qfb { font-family: var(--head); font-size: 1.05rem; color: var(--ink-2); min-height: 1.6em; }
.quiz .qnav { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
@media (max-width: 600px) { .quiz { padding: 1.2rem; } .quiz .opts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Interactive globe: where today's stories are happening */
.globe-sec { display: grid; gap: 1.25rem; }
.globe-wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; background: radial-gradient(120% 120% at 20% 10%, #18214a, #070a18 70%); border-radius: 18px; padding: clamp(1rem, 3vw, 2.25rem); color: #e8ebf7; overflow: hidden; position: relative; isolation: isolate; }
.globe-wrap::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.25; background-image: radial-gradient(rgba(255,255,255,0.8) 0.7px, transparent 1px); background-size: 34px 34px; mask-image: radial-gradient(70% 70% at 25% 40%, #000, transparent); -webkit-mask-image: radial-gradient(70% 70% at 25% 40%, #000, transparent); }
.globe-box { position: relative; aspect-ratio: 1; width: 100%; max-width: 34rem; justify-self: center; touch-action: pan-y; cursor: grab; }
.globe-box:active { cursor: grabbing; }
#globe { width: 100%; height: 100%; display: block; }
.globe-tip { position: absolute; pointer-events: none; transform: translate(-50%, calc(-100% - 14px)); background: rgba(10,14,30,0.92); border: 1px solid rgba(255,255,255,0.18); color: #fff; font-size: 0.8rem; font-weight: 600; padding: 0.35rem 0.6rem; border-radius: 8px; white-space: nowrap; max-width: 16rem; overflow: hidden; text-overflow: ellipsis; opacity: 0; transition: opacity 0.2s; }
.globe-tip.on { opacity: 1; }
.globe-side { display: grid; gap: 0.9rem; min-width: 0; }
.globe-side .label { color: #ff6b7a; }
.globe-side h3 { font-family: var(--head); font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.15; color: #fff; }
.globe-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; counter-reset: g; }
.globe-list li { counter-increment: g; }
.globe-list button { appearance: none; border: 0; background: transparent; font: inherit; text-align: left; box-sizing: border-box; display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); column-gap: 0.6rem; row-gap: 0.1rem; width: 100%; padding: 0.55rem 0.7rem; border-radius: 10px; cursor: pointer; color: #c9cfe6; }
.globe-list button::before { content: counter(g); grid-row: 1 / span 2; font-family: var(--head); font-weight: 600; font-size: 1.1rem; color: #ff6b7a; }
.globe-list button > * { grid-column: 2; }
.globe-list button:hover, .globe-list button[aria-current="true"] { background: rgba(255,255,255,0.08); color: #fff; }
.globe-list button:focus-visible { outline: 2px solid #ff6b7a; }
.globe-list small { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #8d94b0; }
.globe-list b { font-family: var(--head); font-weight: 500; font-size: 1.02rem; line-height: 1.35; }
.globe-side .btn { justify-self: start; }
@media (max-width: 860px) { .globe-wrap { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; } .globe-box { max-width: 22rem; } }

/* Country pages */
.chead { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.chead img { width: 9rem; height: 9rem; flex: none; filter: drop-shadow(0 10px 24px rgba(20,30,80,0.35)); }
.ctiles .tile img { width: 3.2rem; height: 3.2rem; flex: none; }
