/* Northlight: NewsCave-style news design.
   Dark by default. Switch to light with "theme": "light" in site.config.json,
   and change the green with "accentColor". Everything else is the variables below. */

/* ---------- Colour themes ----------
   Pick one in the layout editor (top bar) or in site.config.json ("theme").
   --accent: menu, links, buttons   --badge: section labels, ticker   --hl: underlines, highlights */
:root {
  --font: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1240px;
  --radius: 2px;
  --shade: rgba(6, 7, 9, .92);
}
:root, [data-theme="forest"] {
  --bg: #101113; --surface: #18191c; --surface-2: #212226;
  --ink: #f3f4f5; --ink-2: #c3c6cc; --ink-3: #8d929b; --rule: #2a2c31;
  --accent: #05a66b; --accent-ink: #ffffff; --badge: #05a66b; --badge-ink: #ffffff; --hl: #05a66b;
}
[data-theme="finnish-blue"] {
  --bg: #f3f5f8; --surface: #ffffff; --surface-2: #e8edf3;
  --ink: #0f2236; --ink-2: #3f5168; --ink-3: #66768a; --rule: #dbe2ea;
  --accent: #0f4c81; --accent-ink: #ffffff; --badge: #0f4c81; --badge-ink: #ffffff; --hl: #0f4c81;
}
[data-theme="midnight-sun"] {
  --bg: #0e1726; --surface: #172338; --surface-2: #22304a;
  --ink: #f4f1ea; --ink-2: #c6ccd8; --ink-3: #8e98aa; --rule: #27344d;
  --accent: #e89a2c; --accent-ink: #1b1405; --badge: #e89a2c; --badge-ink: #1b1405; --hl: #e89a2c;
}
[data-theme="aurora"] {
  --bg: #0a1517; --surface: #13232a; --surface-2: #1b2f36;
  --ink: #eef6f4; --ink-2: #b9cbc8; --ink-3: #84999a; --rule: #22363b;
  --accent: #1fb58f; --accent-ink: #04231b; --badge: #5f6ef0; --badge-ink: #ffffff; --hl: #1fb58f;
}
[data-theme="aurora-light"] { /* light partner of Aurora, for the reader's light/dark switch */
  --bg: #f4f8f7; --surface: #ffffff; --surface-2: #e6eeec;
  --ink: #0f1d1f; --ink-2: #3c4f51; --ink-3: #627577; --rule: #d6e1df;
  --accent: #0b7a60; --accent-ink: #ffffff; --badge: #4b58d6; --badge-ink: #ffffff; --hl: #0b7a60;
}
[data-theme="archipelago"] {
  --bg: #f6f7f8; --surface: #ffffff; --surface-2: #eaeef2;
  --ink: #13202b; --ink-2: #44525e; --ink-3: #6b7783; --rule: #dde3e8;
  --accent: #1f5fa8; --accent-ink: #ffffff; --badge: #d4641c; --badge-ink: #ffffff; --hl: #1f9e8f;
}
[data-theme="midnight-ink"] { /* Midnight Ink, Azure Blue, Vermilion Orange */
  --bg: #0b1220; --surface: #121a2b; --surface-2: #1a2438;
  --ink: #eef2f8; --ink-2: #bcc6d6; --ink-3: #8a96aa; --rule: #243049;
  --accent: #4ea3ff; --accent-ink: #06101f; --nav: #1565d8; --nav-ink: #ffffff;
  --badge: #d63a1f; --badge-ink: #ffffff; --hl: #ff6a3d;
}
[data-theme="github-dark"] { /* GitHub Primer dark */
  --bg: #0d1117; --surface: #161b22; --surface-2: #21262d;
  --ink: #e6edf3; --ink-2: #b1bac4; --ink-3: #8b949e; --rule: #30363d;
  --accent: #58a6ff; --accent-ink: #0d1117; --nav: #1f6feb; --nav-ink: #ffffff;
  --badge: #3fb950; --badge-ink: #0d1117; --hl: #58a6ff;
}
[data-theme="birch"] {
  --bg: #f4f2ef; --surface: #ffffff; --surface-2: #ebe7e2;
  --ink: #1d1b1a; --ink-2: #4a4542; --ink-3: #736d68; --rule: #e0dbd5;
  --accent: #b5233a; --accent-ink: #ffffff; --nav: #1d1b1a; --badge: #b5233a; --badge-ink: #ffffff; --hl: #b5233a;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button { font: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; z-index: 20; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Masthead ---------- */
.masthead { background: var(--bg); }
.brand { text-align: center; padding-top: 34px; padding-bottom: 24px; }
.brand__name { font: 800 clamp(46px, 7vw, 84px)/1 var(--font); letter-spacing: -0.02em; color: var(--ink); }
.brand__name:hover { color: var(--ink); }
.brand__tagline { margin: 12px auto 0; max-width: 52ch; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }

.nav, .flash { max-width: calc(var(--wrap) - 40px); margin-left: auto; margin-right: auto; }
.nav {
  display: flex; align-items: center; gap: 12px; background: var(--nav, var(--accent)); color: var(--nav-ink, var(--accent-ink));
  min-height: 54px; padding: 0 8px; position: sticky; top: 0; z-index: 10;
}
.nav__list { list-style: none; display: flex; flex-wrap: wrap; gap: 0; margin: 0; padding: 0; flex: 1; }
.nav__list a { display: block; padding: 15px 16px; font-weight: 700; font-size: 16px; color: var(--nav-ink, var(--accent-ink)); }
.nav__list a:hover, .nav__list a[aria-current="page"] { background: rgba(0, 0, 0, .16); color: var(--nav-ink, var(--accent-ink)); }
.nav__search { display: grid; place-items: center; width: 44px; height: 44px; color: var(--nav-ink, var(--accent-ink)); }
.nav__search:hover { color: var(--nav-ink, var(--accent-ink)); opacity: .8; }
.nav__search svg { width: 22px; height: 22px; }
.nav__mode { display: grid; place-items: center; width: 48px; height: 44px; margin-left: auto; padding: 0; border: 0; background: none; cursor: pointer; color: var(--nav-ink, var(--accent-ink)); }
.nav__mode + .nav__search { margin-left: 0; }
.nav__mode svg { width: 38px; height: 38px; border-radius: 50%; box-shadow: 0 1px 4px rgba(0,0,0,.25); transition: transform .2s; }
.nav__mode:hover svg { transform: scale(1.06); }
.nav__mode .i-awake { display: none; }
[data-theme="finnish-blue"] .nav__mode .i-asleep, [data-theme="aurora-light"] .nav__mode .i-asleep, [data-theme="archipelago"] .nav__mode .i-asleep, [data-theme="birch"] .nav__mode .i-asleep { display: none; }
[data-theme="finnish-blue"] .nav__mode .i-awake, [data-theme="aurora-light"] .nav__mode .i-awake, [data-theme="archipelago"] .nav__mode .i-awake, [data-theme="birch"] .nav__mode .i-awake { display: block; }
.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 11px 9px; cursor: pointer; }
.nav__toggle span { display: block; height: 3px; background: var(--nav-ink, var(--accent-ink)); border-radius: 2px; margin: 4px 0; }

/* Flash story ticker */
.flash { display: flex; align-items: stretch; margin-top: 18px; padding: 0; background: var(--surface); overflow: hidden; }
.flash__label {
  flex: none; display: flex; align-items: center; gap: 10px; background: var(--badge); color: var(--badge-ink);
  padding: 12px 18px; font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: .03em;
}
.flash__dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, .8); box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }
.flash__track { flex: 1; overflow: hidden; display: flex; align-items: center; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.flash__items { display: flex; gap: 46px; white-space: nowrap; padding-left: 24px; animation: ticker 45s linear infinite; }
.flash__items a { font-weight: 700; font-size: 16px; color: var(--ink); }
.flash__items a::before { content: "•"; color: var(--badge); margin-right: 12px; }
.flash:hover .flash__items { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Section headings ---------- */
.sh { display: flex; align-items: flex-end; justify-content: space-between; margin: 0 0 18px; border-bottom: 1px solid var(--rule); }
.sh__title { position: relative; margin: 0; padding-bottom: 10px; font: 700 22px/1.2 var(--font); }
.sh__title::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 100px; height: 4px; background: var(--hl); }
.arrows { display: flex; gap: 4px; padding-bottom: 8px; }
.arrow {
  width: 36px; height: 36px; border: 0; background: var(--surface-2); color: var(--ink); font-size: 26px; line-height: 1;
  cursor: pointer; display: grid; place-items: center; padding-bottom: 4px;
}
.arrow:hover { background: var(--accent); color: var(--accent-ink); }

/* ---------- Badges and meta ---------- */
.badge {
  display: inline-block; background: var(--badge); color: var(--badge-ink); font-weight: 700; font-size: 14px; line-height: 1;
  padding: 7px 12px; border-radius: var(--radius); margin-bottom: 10px;
}
a.badge:hover { color: var(--badge-ink); filter: brightness(1.1); }
.meta { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14.5px; color: var(--ink-3); }
.meta > span { display: inline-flex; align-items: center; gap: 6px; }
.meta svg { width: 16px; height: 16px; flex: none; }

/* ---------- Overlay cards (headline over picture) ---------- */
.ov { position: relative; background: var(--surface); overflow: hidden; }
.ov__link { display: block; position: relative; height: 100%; color: #fff; }
.ov__link:hover { color: #fff; }
.ov img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform .6s ease; }
.ov__link:hover img { transform: scale(1.04); }
.ov__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.25) 30%, rgba(6,7,9,.78) 58%, var(--shade) 100%); }
.ov__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 24px; display: block; }
.ov__title { margin: 0 0 8px; font-weight: 700; line-height: 1.15; color: #fff; text-wrap: balance; }
.ov__link:hover .ov__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.ov__sum { display: block; color: rgba(255,255,255,.86); margin: 0 0 10px; line-height: 1.45; }
.ov .meta { color: rgba(255,255,255,.78); }
.ov--lg { aspect-ratio: 16 / 10; }
.ov--lg .ov__title { font-size: clamp(26px, 3vw, 38px); }
.ov--lg .ov__sum { font-size: 18px; max-width: 62ch; }
.ov--md { aspect-ratio: 16 / 10; }
.ov--md .ov__title { font-size: 23px; }
.ov--md .ov__sum { font-size: 15.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ov--sm { aspect-ratio: 4 / 5; }
.ov--sm .ov__title { font-size: 20px; }

/* ---------- Home layout ---------- */
.home { padding-top: 34px; }
.top { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 30px; }
.slider { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slider::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; min-width: 0; }
.picks { display: grid; gap: 20px; }
.top__side .ov--md { aspect-ratio: auto; height: calc((100% - 20px) / 2); min-height: 220px; }
.picks { height: calc(100% - 58px); grid-template-rows: 1fr 1fr; }
.picks--1 { grid-template-rows: 1fr; }
.picks--3 { grid-template-rows: repeat(3, 1fr); }
.picks--4 { grid-template-rows: repeat(4, 1fr); }
.picks--3 .ov__sum, .picks--4 .ov__sum { display: none; }
.picks--3 .ov--md .ov__title, .picks--4 .ov--md .ov__title { font-size: 19px; }
.picks--3 .ov--md, .picks--4 .ov--md { min-height: 150px; }
.block + .block { margin-top: 40px; }
.cols__side .block + .block { margin-top: 0; }
.sh__more { padding-bottom: 10px; font-weight: 700; font-size: 15px; color: var(--accent); }
.ov--sm .ov__sum { font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ov--sm .ov__body { padding: 16px 18px; }
.picks .ov--md { height: auto; }

.cols { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 30px; margin-top: 44px; }
.list { display: grid; gap: 22px; }
.lc { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr); gap: 22px; background: var(--surface); }
.lc__media { display: block; aspect-ratio: 16 / 11; overflow: hidden; }
.lc__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.lc__media:hover img { transform: scale(1.04); }
.lc__body { padding: 18px 20px 18px 0; align-self: center; }
.lc__title { margin: 0 0 8px; font: 700 23px/1.2 var(--font); text-wrap: balance; }
.lc__sum { margin: 0 0 12px; color: var(--ink-2); font-size: 16px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.widget { background: var(--surface); padding: 22px; margin-bottom: 26px; }
.word__term { font: 800 34px/1 var(--font); margin: 6px 0 4px; color: var(--hl); }
.word__say { margin: 0 0 10px; color: var(--ink-3); font-size: 15px; }
.word__meaning { margin: 0; color: var(--ink-2); font-size: 16px; }
.cats { list-style: none; margin: 0; padding: 0; }
.cats li { border-bottom: 1px solid var(--rule); }
.cats li:last-child { border-bottom: 0; }
.cats a { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; font-weight: 600; }
.cats__n { background: var(--surface-2); color: var(--ink-2); font-size: 13px; min-width: 30px; text-align: center; padding: 3px 8px; border-radius: 99px; }

/* ---------- Article ---------- */
.article { max-width: 880px; padding-top: 40px; }
.article__head { margin-bottom: 26px; }
.article__title { font: 800 clamp(32px, 5vw, 52px)/1.08 var(--font); letter-spacing: -0.01em; margin: 6px 0 14px; text-wrap: balance; }
.article__dek { font-size: 21px; line-height: 1.5; color: var(--ink-2); margin: 0 0 16px; }
.article__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.meta__read { font-size: 14.5px; color: var(--ink-3); }
.article__figure { margin: 0 0 34px; }
.article__figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article__figure figcaption { font-size: 14px; color: var(--ink-3); margin-top: 8px; }
.prose { font-size: 19px; line-height: 1.75; color: var(--ink-2); max-width: 720px; }
.prose p { margin: 0 0 1.2em; }
.prose h2 { font: 700 28px/1.25 var(--font); color: var(--ink); margin: 1.6em 0 .5em; }
.prose h3 { font: 700 21px/1.3 var(--font); color: var(--ink); margin: 1.5em 0 .4em; }
.prose strong { color: var(--ink); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--accent); }
.prose blockquote { margin: 1.6em 0; padding: 18px 24px; background: var(--surface); border-left: 4px solid var(--accent); font-size: 22px; line-height: 1.45; color: var(--ink); }
.prose blockquote p { margin: 0; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.2em 0; }
.prose img { margin: 1.4em 0; }
.prose code { background: var(--surface-2); padding: 2px 6px; font-size: .88em; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 10px; }
.tag { background: var(--surface); color: var(--ink-2); padding: 6px 12px; font-size: 14px; font-weight: 600; }
.related { margin-top: 50px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

/* ---------- Category, pages, search ---------- */
.page-head { padding: 40px 0 26px; margin-bottom: 30px; border-bottom: 1px solid var(--rule); }
.page-head__eyebrow { margin: 0 0 6px; color: var(--hl); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 14px; }
.page-head__title { font: 800 clamp(36px, 5vw, 56px)/1.05 var(--font); margin: 0 0 10px; }
.page-head__text { font-size: 19px; color: var(--ink-2); margin: 0; max-width: 60ch; }
.page-head__text a { color: var(--accent); text-decoration: underline; }
.list--page { max-width: 980px; }
.empty { color: var(--ink-3); }
.search input {
  width: 100%; font: 400 21px var(--font); padding: 15px 18px; border: 1px solid var(--rule);
  background: var(--surface); color: var(--ink); border-radius: var(--radius);
}
.search input:focus { outline: none; border-color: var(--accent); }
.results { list-style: none; padding: 0; margin: 24px 0 60px; }
.results li { border-bottom: 1px solid var(--rule); }
.results a { display: block; padding: 16px 0; }
.results__title { display: block; font-weight: 700; font-size: 21px; margin: 2px 0; color: var(--ink); }
.results__meta { font-size: 14px; color: var(--hl); font-weight: 600; }
.results__excerpt { display: block; color: var(--ink-2); font-size: 15.5px; }

/* ---------- Footer ---------- */
.footer { margin-top: 70px; background: var(--surface); border-top: 4px solid var(--accent); }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-top: 44px; padding-bottom: 30px; }
.footer__brand { font: 800 30px/1 var(--font); margin: 0 0 12px; }
.footer__text { color: var(--ink-2); margin: 0; max-width: 46ch; font-size: 16px; }
.footer__head { font-weight: 700; margin: 4px 0 10px; color: var(--ink); }
.footer__list { list-style: none; padding: 0; margin: 0; color: var(--ink-2); }
.footer__list li { margin: 6px 0; }
.footer__base { border-top: 1px solid var(--rule); padding-top: 16px; padding-bottom: 22px; font-size: 14px; color: var(--ink-3); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .top, .cols { grid-template-columns: 1fr; }
  .picks { height: auto; grid-template-rows: none; }
  .top__side .ov--md, .picks .ov--md { height: auto; aspect-ratio: 16 / 10; min-height: 0; }
  .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .wrap { padding: 0 14px; }
  .brand { padding-top: 26px; padding-bottom: 18px; }
  .brand__tagline { font-size: 13px; }
  .nav { flex-wrap: wrap; justify-content: space-between; position: relative; margin: 0 14px; padding: 0 6px; }
  .nav__toggle { display: block; order: 1; }
  .nav__mode { order: 2; margin-left: auto; }
  .nav__search { order: 2; }
  .nav__list { display: none; order: 3; flex-basis: 100%; flex-direction: column; padding-bottom: 6px; }
  .nav.is-open .nav__list { display: flex; }
  .nav__list a { padding: 10px 10px; }
  .flash { margin: 14px 14px 0; padding: 0; }
  .flash__label { padding: 10px 12px; font-size: 13px; }
  .flash__items a { font-size: 14.5px; }
  .home { padding-top: 24px; }
  .ov--lg { aspect-ratio: 4 / 5; }
  .ov--lg .ov__sum { font-size: 16px; }
  .ov__body { padding: 18px; }
  .ov--md .ov__title { font-size: 21px; }
  .lc { grid-template-columns: 1fr; gap: 0; }
  .lc__body { padding: 16px 16px 18px; }
  .lc__title { font-size: 21px; }
  .grid3 { grid-template-columns: 1fr; }
  .ov--sm { aspect-ratio: 4 / 3; }
  .prose { font-size: 18px; }
  .footer__inner { grid-template-columns: 1fr; gap: 26px; }

  /* Phone: picture on top, headline and summary below it (not on the photo), for a clean, readable look. */
  .ov, .ov--lg, .ov--md, .ov--sm, .top__side .ov--md, .picks .ov--md, .picks--3 .ov--md, .picks--4 .ov--md { aspect-ratio: auto; height: auto; min-height: 0; }
  .ov__link, .ov__link:hover { color: var(--ink); height: auto; }
  .ov img { position: static; display: block; height: auto; aspect-ratio: 16 / 10; }
  .ov__link:hover img { transform: none; }
  .ov__shade { display: none; }
  .ov .ov__body, .ov--sm .ov__body { position: static; padding: 14px 2px 4px; }
  .ov__title, .ov--lg .ov__title, .ov--md .ov__title, .ov--sm .ov__title { color: var(--ink); font-size: 22px; margin: 10px 0 6px; }
  .ov--lg .ov__title { font-size: 25px; }
  .ov__sum, .picks--3 .ov__sum, .picks--4 .ov__sum { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink-2); font-size: 16px; margin: 0 0 8px; }
  .ov .meta { color: var(--ink-3); }
  .ov { background: none; }
  .picks, .grid3 { gap: 26px; }
  .slide .ov { padding-bottom: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .flash__items { animation: none; }
  .flash__dot { animation: none; }
  .ov img, .lc__media img { transition: none; }
}

/* ---------- Interactive embeds (YouTube, Vimeo, Datawrapper, Flourish, Google Maps) ---------- */
.prose .embed { margin: 1.8em 0; position: relative; aspect-ratio: var(--ratio, 16 / 9); background: var(--surface); }
.prose .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Picture gallery (2+ pictures in a row) ---------- */
.gallery { margin: 1.8em 0; background: var(--surface); }
.gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__item { flex: 0 0 100%; min-width: 0; margin: 0; scroll-snap-align: start; }
.prose .gallery__item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin: 0; }
.gallery__item figcaption { padding: 10px 16px 0; font-size: 15px; color: var(--ink-3); }
.gallery__nav { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 10px 12px 12px; }
.gallery__count { font-size: 14px; font-weight: 700; color: var(--ink-2); min-width: 46px; text-align: center; }
.gallery__btn {
  width: 40px; height: 40px; border: 0; background: var(--surface-2); color: var(--ink); font-size: 26px; line-height: 1;
  cursor: pointer; display: grid; place-items: center; padding-bottom: 4px;
}
.gallery__btn:hover { background: var(--accent); color: var(--accent-ink); }

.article__gallery { margin: 0 0 34px; }
.article__gallery .gallery { margin: 0; }
.article__gallery .gallery__item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article .embed { margin: 0 0 34px; position: relative; aspect-ratio: var(--ratio, 16 / 9); background: var(--surface); max-width: 100%; }
.article .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed--page { aspect-ratio: auto !important; }
.embed--page iframe { position: static !important; display: block; height: 70vh !important; min-height: 420px; background: #fff; }
.embed figcaption { padding: 8px 0 0; font-size: 14px; }
.embed figcaption a { color: var(--accent); }

/* Interactive graphic modules on the home page */
.block .embed { margin: 0; position: relative; aspect-ratio: var(--ratio, 16 / 9); background: var(--surface); }
.block .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.block .embed--page { aspect-ratio: auto; }
.block .embed--page iframe { position: static; display: block; width: 100%; background: #fff; }
.embed__note { margin: 10px 0 0; color: var(--ink-2); font-size: 15.5px; }
.embed__open { margin: 8px 0 0; font-size: 14.5px; font-weight: 700; }
.embed__open a { color: var(--accent); }

/* ---------- Home-page modules ---------- */
.mod--photo .photo, .mod--video .vid { margin: 0; }
.mod--photo img { width: 100%; height: auto; max-height: 640px; object-fit: cover; }
.mod--photo figcaption { margin-top: 8px; color: var(--ink-2); font-size: 15.5px; }
.vid video { width: 100%; display: block; background: #000; max-height: 640px; }
.mod--carousel .gallery { margin: 0; }
.mod--carousel .gallery__item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.cols__side .mod--carousel .gallery__item img { aspect-ratio: 4 / 3; }

/* Poll */
.poll { background: var(--surface); padding: 20px; }
.widget .poll { padding: 0; background: none; }
.poll__q { margin: 0 0 14px; font-size: 20px; font-weight: 700; line-height: 1.3; }
.poll__opts { display: grid; gap: 8px; }
.poll__opt {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; width: 100%;
  min-height: 48px; padding: 10px 14px; text-align: left; cursor: pointer; font-weight: 600; font-size: 16px;
  color: var(--ink); background: var(--surface-2); border: 2px solid transparent; border-radius: 4px;
}
.poll__opt:hover:not([disabled]) { border-color: var(--accent); }
.poll__opt[disabled] { cursor: default; }
.poll__bar { position: absolute; inset: 0 auto 0 0; width: 0; background: color-mix(in srgb, var(--hl) 30%, transparent); transition: width .6s ease; }
.poll__label, .poll__pct { position: relative; }
.poll__label { flex: 1; }
.poll__pct { font-variant-numeric: tabular-nums; font-weight: 800; }
.poll__opt.is-mine { border-color: var(--hl); }
.poll__meta { margin: 10px 0 0; font-size: 14.5px; color: var(--ink-3); }

/* Quiz */
.quiz { background: var(--surface); padding: 22px; }
.widget .quiz { padding: 0; background: none; }
.quiz__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; color: var(--ink-3); font-size: 14px; font-weight: 700; }
.quiz__progress { flex: 1; height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.quiz__progress span { display: block; height: 100%; background: var(--hl); transition: width .3s; }
.quiz__q { margin: 6px 0 14px; font-size: 21px; font-weight: 700; line-height: 1.3; }
.quiz__opts { display: grid; gap: 8px; }
.quiz__opt {
  width: 100%; min-height: 48px; padding: 10px 14px; text-align: left; cursor: pointer; font-weight: 600; font-size: 16px;
  color: var(--ink); background: var(--surface-2); border: 2px solid transparent; border-radius: 4px;
}
.quiz__opt:hover:not([disabled]) { border-color: var(--accent); }
.quiz__opt.is-right { border-color: #2fbf71; background: color-mix(in srgb, #2fbf71 22%, var(--surface-2)); }
.quiz__opt.is-wrong { border-color: #e5534b; background: color-mix(in srgb, #e5534b 20%, var(--surface-2)); }
.quiz__fb { margin: 12px 0 0; font-size: 15.5px; color: var(--ink-2); }
.quiz__fb b { color: var(--ink); }
.quiz__next, .quiz__again {
  margin-top: 14px; min-height: 44px; padding: 10px 18px; border: 0; border-radius: 4px; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 16px;
}
.quiz__score { font-size: 44px; font-weight: 900; color: var(--hl); margin: 4px 0; line-height: 1; }
.quiz__intro { color: var(--ink-2); margin: 0 0 12px; }

/* Heading font (chosen in the layout editor: "Font") */
.brand__name, .ov__title, .lc__title, .article__title, .page-head__title, .sh__title, .prose h2, .prose h3,
.footer__brand, .word__term, .poll__q, .quiz__q, .quiz__score, .card__title { font-family: var(--font-head, var(--font)); }

/* Logo: the FinShort wordmark. The dot on the "i" is a north star.
   On page open the star spins into place and a band of aurora light sweeps across the name once
   (about 3 seconds), then the logo stays still. Off for people who prefer less motion. */
.wm { display: inline-block; font-family: 'Archivo', var(--font-head, var(--font)); font-weight: 900; letter-spacing: -0.035em; line-height: 1; }
.brand__name { font-family: 'Archivo', var(--font-head, var(--font)); font-weight: 900; }
.wm__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wm__txt { display: inline-block; color: var(--ink); padding: .08em .02em 0; }
.wm__i { position: relative; display: inline-block; color: var(--ink); -webkit-text-fill-color: var(--ink); }
/* iPhone Safari does not paint the light sweep into a letter in its own box, so the "i" keeps a solid colour. */
.wm__star { position: absolute; left: 50%; top: .01em; width: .34em; height: .34em; margin-left: -.17em; overflow: visible; }
:root { --star1: #0c9c5f; --star2: #2a5fe0; }
[data-theme="forest"], [data-theme="midnight-sun"], [data-theme="aurora"], [data-theme="github-dark"], [data-theme="midnight-ink"] { --star1: #4fe3a0; --star2: #6d8dff; }
.footer__brand { display: flex; align-items: center; font-size: 28px; }
.footer__brand .wm__star { animation: none; }
.brand__name .wm__star { transform-box: fill-box; transform-origin: center; animation: wmstar 1.1s cubic-bezier(.2,.9,.2,1) .35s both; }
.brand__name .wm__txt {
  background: linear-gradient(100deg, var(--ink) 0 42%, #6fe3b4 47%, #7aa7ff 52%, var(--ink) 58% 100%);
  background-size: 320% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: wmsheen 1.8s ease-in-out 1.1s 1 both;
}
@keyframes wmstar { 0% { opacity: 0; transform: scale(.2) rotate(-90deg); } 60% { opacity: 1; transform: scale(1.25) rotate(10deg); } 100% { opacity: 1; transform: none; } }
@keyframes wmsheen { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .brand__name .wm__star, .brand__name .wm__txt { animation: none; } }
@media (forced-colors: active) { .brand__name .wm__txt { background: none; -webkit-text-fill-color: currentColor; } }

/* Tell browsers which themes are already dark, so phones don't auto-darken or re-colour them. */
[data-theme="forest"], [data-theme="midnight-sun"], [data-theme="aurora"], [data-theme="github-dark"], [data-theme="midnight-ink"] { color-scheme: dark; }
[data-theme="finnish-blue"], [data-theme="archipelago"], [data-theme="birch"] { color-scheme: light; }

/* "Edit page" button: only added on your own computer (localhost), never on the live site. */
.editbtn { position: fixed; right: 18px; bottom: 18px; z-index: 50; padding: 11px 16px; border-radius: 999px;
  background: #ffd23f; color: #1b1405; font: 700 15px/1 var(--font); box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.editbtn:hover { color: #1b1405; filter: brightness(1.05); transform: translateY(-1px); }
@media print { .editbtn { display: none; } }

/* ======================================================================
   Engagement features: 60-second brief, Useful for you, newsletter,
   "Why it matters / What to do", FinShort's take, reading time.
   ====================================================================== */
.editor-only { display: none; }
.in-editor .editor-only { display: block; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.card__mins { display: inline-block; margin-left: 10px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--ink-3); vertical-align: middle; }
.ov .card__mins { color: rgba(255,255,255,.85); }

/* FinShort in 60 seconds */
.brief { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: stretch;
  background: var(--surface); border: 1px solid var(--rule); border-top: 3px solid var(--accent); padding: 22px 24px; margin-bottom: 34px; }
.brief__kicker { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.brief__title { margin: 0 0 6px; font: 800 26px/1.1 var(--font-head, var(--font)); color: var(--ink); }
.brief__sub { margin: 0; font-size: 15px; color: var(--ink-2); line-height: 1.45; }
.brief__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: brief; }
.brief__list li { counter-increment: brief; border-left: 1px solid var(--rule); }
.brief__list a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 2px 16px 4px; color: var(--ink); }
.brief__list a::before { content: counter(brief); font: 800 30px/1 var(--font-head, var(--font)); color: var(--accent); opacity: .9; }
.brief__cat { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.brief__h { font-weight: 700; font-size: 15.5px; line-height: 1.3; }
.brief__list a:hover .brief__h { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* Useful for you */
.useful { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.useful__item a { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px; background: var(--surface); border: 1px solid var(--rule); color: var(--ink); transition: border-color .2s, transform .2s; }
.useful__item a:hover { border-color: var(--accent); transform: translateY(-1px); color: var(--ink); }
.useful__date { display: grid; place-items: center; align-content: center; height: 70px; background: var(--badge); color: var(--badge-ink); font: 800 19px/1.1 var(--font-head, var(--font)); text-align: center; border-radius: 4px; }
.useful__date small { display: block; font: 700 10.5px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; opacity: .85; margin-bottom: 5px; }
.useful__date.is-past { background: var(--surface-2); color: var(--ink-3); }
.useful__date--none { background: color-mix(in srgb, var(--accent) 14%, var(--surface-2)); color: var(--accent); }
.useful__date--none svg { width: 26px; height: 26px; margin-bottom: 4px; }
.useful__date--none small { color: var(--ink-2); margin: 0; letter-spacing: .06em; }
.useful__title { display: block; font: 700 17px/1.3 var(--font-head, var(--font)); }
.useful__do { display: block; margin-top: 4px; font-size: 14.5px; color: var(--ink-2); line-height: 1.4; }
.cols__side .useful__item a { grid-template-columns: 60px minmax(0, 1fr); gap: 12px; padding: 12px; }
.cols__side .useful__date { height: 58px; font-size: 16px; }
.cols__side .useful__title { font-size: 15.5px; }

/* Newsletter */
.signup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; align-items: center; padding: 26px 28px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, var(--surface)) 0%, var(--surface) 70%); border: 1px solid var(--rule); border-left: 4px solid var(--accent); }
.signup__kicker { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.signup__title { margin: 0 0 6px; font: 800 24px/1.15 var(--font-head, var(--font)); color: var(--ink); }
.signup__sub { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.signup__form { display: flex; flex-wrap: wrap; gap: 10px; }
.signup__form input[type=email] { flex: 1 1 150px; min-width: 0; height: 48px; padding: 0 14px; font: 16px var(--font); color: var(--ink); background: var(--bg); border: 1px solid var(--rule); border-radius: 4px; }
.signup__form input[type=email]:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.signup__form button { height: 48px; padding: 0 22px; font: 700 16px var(--font); color: var(--accent-ink); background: var(--accent); border: 0; border-radius: 4px; cursor: pointer; }
.signup__form button:hover { filter: brightness(1.08); }
.signup__form button:disabled { opacity: .6; cursor: default; }
.signup__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.signup__msg { flex-basis: 100%; margin: 0; min-height: 1.2em; font-size: 14px; color: var(--ink-2); }
.signup__form.is-ok .signup__msg { color: var(--accent); font-weight: 700; }
.signup__form.is-err .signup__msg { color: #e5484d; font-weight: 700; }
.cols__side .signup { grid-template-columns: 1fr; padding: 20px; gap: 14px; }
.cols__side .signup__title { font-size: 20px; }
.signup--compact { margin-top: 36px; }

/* Article: Why it matters / What to do */
.keys { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 760px; margin: 26px auto 8px; }
.keys__item { background: var(--surface); border: 1px solid var(--rule); border-top: 3px solid var(--accent); padding: 16px 18px; }
.keys__item--do { border-top-color: var(--badge); }
.keys__label { margin: 0 0 6px; font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.keys__item--do .keys__label { color: var(--ink); }
.keys__dl { display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: 3px; background: var(--badge); color: var(--badge-ink); letter-spacing: .04em; font-size: 11px; }
.keys__text { margin: 0; font-size: 17px; line-height: 1.5; color: var(--ink); }
.keys:only-child, .keys .keys__item:only-child { grid-column: 1 / -1; }

/* Article: FinShort's take (opinion, kept apart from the news) */
.take { max-width: 760px; margin: 30px auto 0; padding: 18px 20px 16px; border: 1px dashed var(--ink-3); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.take__label { margin: 0 0 6px; font: 800 13px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.take__label::before { content: "✦ "; color: var(--accent); }
.take__text { margin: 0 0 8px; font: italic 600 18px/1.5 var(--font-head, var(--font)); color: var(--ink); }
.take__note { margin: 0; font-size: 13px; color: var(--ink-3); }
.article > .signup--compact { max-width: 760px; margin-left: auto; margin-right: auto; }

@media (max-width: 980px) {
  .brief { grid-template-columns: 1fr; gap: 16px; }
  .brief__list { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); row-gap: 14px; }
}
@media (max-width: 700px) {
  /* Phone: the brief becomes a tidy numbered card */
  .brief { padding: 18px 16px 8px; margin-bottom: 26px; border-left: 0; border-right: 0; }
  .brief__title { font-size: 23px; }
  .brief__sub { font-size: 14.5px; }
  .brief__list { grid-template-columns: 1fr; row-gap: 0; }
  .brief__list li { border-left: 0; border-top: 1px solid var(--rule); }
  .brief__list a { flex-direction: row; align-items: baseline; gap: 14px; padding: 13px 2px; }
  .brief__list a::before { font-size: 22px; min-width: 18px; }
  .brief__list a > span { display: block; }
  .brief__cat { display: none !important; }
  .brief__h { font-size: 16.5px; }
  .useful__item a { grid-template-columns: 62px minmax(0, 1fr); gap: 13px; padding: 12px; }
  .useful__date { height: 60px; font-size: 16px; }
  .useful__title { font-size: 16.5px; }
  .signup { grid-template-columns: 1fr; padding: 22px 18px; gap: 16px; }
  .signup__title { font-size: 21px; }
  .signup__form button { flex: 1 1 100%; }
  .keys { grid-template-columns: 1fr; margin-top: 20px; }
  .keys__text { font-size: 16.5px; }
  .take__text { font-size: 17px; }
  .keys { margin-bottom: 22px; }
  .article__head { padding-top: 22px; }
  /* Phone "Read next": compact rows, thumbnail left, headline right */
  .related .grid3 { gap: 0; }
  .related .ov { border-top: 1px solid var(--rule); padding: 14px 0; }
  .related .ov__link { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: start; }
  .related .ov img { aspect-ratio: 1 / 1; border-radius: 4px; }
  .related .ov .ov__body { padding: 0; }
  .related .ov__title { font-size: 17px !important; margin: 6px 0 4px; }
  .related .ov .badge { font-size: 11px; padding: 2px 6px; }
  .related .ov .card__mins { margin-left: 6px; font-size: 12px; }
  .related .ov .meta { font-size: 12.5px; }
  .related .ov .meta > span:first-child { display: none; }
  .ov .card__mins { color: var(--ink-3); }
}

/* ======================================================================
   Glass finish (switch in the page editor, or "finish": "glass" in site.config.json).
   Frosted see-through panels, a light catching the top edge, rounded corners,
   soft shadows, and a faint glow of the theme colours behind everything.
   ====================================================================== */
html[data-finish="glass"] body {
  background:
    radial-gradient(1100px 620px at 8% -8%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 62%),
    radial-gradient(900px 560px at 102% 4%, color-mix(in srgb, var(--badge) 15%, transparent), transparent 60%),
    radial-gradient(1000px 700px at 50% 110%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 65%),
    var(--bg);
  background-attachment: fixed;
}
html[data-finish="glass"] :is(.lc, .widget, .brief, .now, .since, .lens, .useful__item a, .signup, .keys__item, .take, .flash, .poll, .quiz) {
  background: color-mix(in srgb, var(--surface) 58%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid color-mix(in srgb, var(--ink) 11%, transparent);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 color-mix(in srgb, #ffffff 16%, transparent), 0 12px 32px rgba(0, 0, 0, .18);
}
html[data-finish="glass"] .lens { border-top: 1px solid color-mix(in srgb, var(--ink) 11%, transparent); margin-top: -10px; }
html[data-finish="glass"] .brief + .lens { margin-top: -16px; }
html[data-finish="glass"] .lc { overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
html[data-finish="glass"] .lc:hover, html[data-finish="glass"] .useful__item a:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 color-mix(in srgb, #ffffff 20%, transparent), 0 18px 40px rgba(0, 0, 0, .24); }
html[data-finish="glass"] .ov { border-radius: 16px; overflow: hidden; box-shadow: 0 14px 36px rgba(0, 0, 0, .28); }
html[data-finish="glass"] .ov::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,0) 38%); box-shadow: inset 0 1px 0 rgba(255,255,255,.22); }
html[data-finish="glass"] .nav {
  border-radius: 14px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--nav, var(--accent)) 78%, #ffffff) 0%, var(--nav, var(--accent)) 52%, color-mix(in srgb, var(--nav, var(--accent)) 86%, #000000) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38), inset 0 -1px 0 rgba(0, 0, 0, .18), 0 10px 28px color-mix(in srgb, var(--nav, var(--accent)) 38%, transparent);
}
html[data-finish="glass"] .nav__list a { border-radius: 10px; }
html[data-finish="glass"] .flash { overflow: hidden; }
html[data-finish="glass"] :is(.badge, .flash__label, .useful__date, .keys__dl) {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, 0) 55%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32); border-radius: 6px;
}
html[data-finish="glass"] .useful__date { border-radius: 12px; }
html[data-finish="glass"] :is(.signup__form button, .depth__more button, .arrow) {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 60%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 18px color-mix(in srgb, var(--accent) 30%, transparent); border-radius: 10px;
}
html[data-finish="glass"] .arrow { background-color: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
html[data-finish="glass"] :is(.chip, .depth button) { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14); backdrop-filter: blur(8px); }
html[data-finish="glass"] .signup__form input[type=email] { border-radius: 10px; background: color-mix(in srgb, var(--bg) 70%, transparent); }
html[data-finish="glass"] :is(.lc__media img, .article__figure img, .article__gallery .gallery__item img) { border-radius: 12px; }
html[data-finish="glass"] .lc__media { border-radius: 12px; margin: 10px 0 10px 10px; }
html[data-finish="glass"] .sh__title { text-shadow: 0 0 22px color-mix(in srgb, var(--accent) 30%, transparent); }
html[data-finish="glass"] .footer { background: color-mix(in srgb, var(--surface) 60%, transparent); backdrop-filter: blur(16px); }
@media (max-width: 700px) {
  html[data-finish="glass"] .lc__media { margin: 0; border-radius: 16px 16px 0 0; }
  html[data-finish="glass"] .nav { border-radius: 12px; }
  html[data-finish="glass"] .ov { box-shadow: none; overflow: visible; }
  html[data-finish="glass"] .ov::after { display: none; }
  html[data-finish="glass"] .ov img { border-radius: 14px; }
}
@media (prefers-reduced-transparency: reduce) {
  html[data-finish="glass"] :is(.lc, .widget, .brief, .now, .since, .lens, .useful__item a, .signup, .keys__item, .take, .flash, .poll, .quiz) { background: var(--surface); backdrop-filter: none; }
}

/* ======================================================================
   Phone polish: calm type scale, room to breathe, each story one unit.
   ====================================================================== */
@media (hover: none) { .ov__link:hover .ov__title, .lc__title a:hover { text-decoration: none !important; } .ov__link:hover img { transform: none; } }
@media (max-width: 700px) {
  .wrap { padding: 0 16px; }
  .top > *, .cols > *, .top__main, .slider { min-width: 0; max-width: 100%; }
  .nav { margin: 0 16px; min-height: 50px; }
  .nav__mode svg { width: 32px; height: 32px; }
  /* Section titles become quiet labels, so the stories lead */
  .sh { margin: 0 0 14px; }
  .sh__title { font: 800 13px/1 var(--font-head, var(--font)) !important; letter-spacing: .14em; text-transform: uppercase; padding-bottom: 10px; color: var(--ink-2); }
  .sh__title::after { width: 44px; height: 3px; }
  .arrows { display: none !important; }
  .block + .block, .cols { margin-top: 36px; }
  .top { gap: 36px; }
  /* Each story is one card: photo, label, headline, two lines, date */
  .ov, .lc { background: var(--surface) !important; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 6px 18px rgba(0,0,0,.18); }
  .ov .ov__body, .ov--sm .ov__body, .lc__body { padding: 16px 18px 18px !important; }
  .ov .badge, .lc .badge { font-size: 12px; padding: 3px 8px; border-radius: 4px; }
  .card__mins { font-size: 12.5px; margin-left: 8px; }
  .ov__title, .ov--md .ov__title, .ov--sm .ov__title, .lc__title { font-size: 19px !important; line-height: 1.32 !important; margin: 12px 0 0 !important; font-weight: 700; text-decoration: none !important; text-wrap: pretty; }
  .ov--lg .ov__title { font-size: 22px !important; line-height: 1.3 !important; }
  .ov__sum, .picks--3 .ov__sum, .picks--4 .ov__sum, .lc__sum { font-size: 16px !important; line-height: 1.6 !important; margin: 14px 0 0 !important; color: var(--ink-2) !important; display: block !important; -webkit-line-clamp: unset !important; overflow: visible !important; }
  .ov .meta, .lc .meta { margin-top: 16px; font-size: 12.5px; gap: 12px; }
  .ov .meta > span:first-child, .lc .meta > span:first-child { display: none; }
  .ov .meta svg, .lc .meta svg { width: 14px; height: 14px; }
  .picks, .grid3, .list { gap: 20px !important; }
}


/* Movable sections: top right column, Editor's Picks and Latest headlines anywhere */
.top--solo { grid-template-columns: minmax(0, 1fr); }
.top__side { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.top__side--fill > .block, .top__side--fill .picksbox { height: 100%; }
.top__side:not(.top__side--fill) .picks, .cols .picks { height: auto; grid-template-rows: none; }
.top__side:not(.top__side--fill) .ov--md, .cols .picks .ov--md { height: auto; aspect-ratio: 16 / 10; min-height: 0; }
.picks--row { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.heads__list { list-style: none; margin: 0; padding: 0; counter-reset: heads; }
.heads__list li { padding: 12px 0; border-top: 1px solid var(--rule); }
.heads__list li:first-child { border-top: 0; padding-top: 4px; }
.heads__meta { display: block; font-size: 12.5px; color: var(--ink-3); margin-bottom: 4px; letter-spacing: .02em; }
.heads__list a { display: block; color: var(--ink); font: 700 16.5px/1.35 var(--font-head, var(--font)); text-decoration: none; }
.heads__list a:hover { color: var(--accent); }
