/* Base and shared controls */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 1rem; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
img { display: block; max-width: 100%; height: auto; }
svg { flex-shrink: 0; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.035em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
::selection { background: var(--brand); color: var(--on-brand); }
[hidden] { display: none !important; }
.container { width: min(var(--container), calc(100% - 80px)); margin-inline: auto; }
main { min-height: 60vh; padding-bottom: 72px; }
.muted { color: var(--muted); }
.brand-accent, .brand-stop { color: var(--accent); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 20px; top: -100px; z-index: 100; padding: 12px 20px; background: var(--brand); color: var(--on-brand); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 20px; border: 1px solid transparent; border-radius: 9px; line-height: 1.35; font-weight: 700; font-size: .875rem; min-height: 46px; text-align: center; transition: background .15s, border-color .15s; }
.button-primary { background: var(--brand); color: var(--on-brand); }
.button-primary:hover { background: var(--brand-hover); }
.button-secondary { border-color: var(--border); background: var(--panel); color: var(--text); }
.button-secondary:hover { background: var(--panel-alt); border-color: var(--field-border); }
.button-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.text-link { font-weight: 650; text-underline-offset: 5px; text-decoration: underline; text-decoration-color: var(--accent); }
.text-link:hover { color: var(--accent); }
.eyebrow { text-transform: uppercase; color: var(--accent); letter-spacing: .12em; font-size: .8125rem; font-weight: 750; margin-bottom: 14px; }
.small-label { color: var(--muted); font-size: .8125rem; }

/* Masthead and site navigation */
.site-header { background: var(--bg); }
.masthead { min-height: 98px; display: flex; align-items: center; gap: 28px; }
.wordmark { display: inline-flex; align-items: center; font-weight: 850; font-size: 2.5rem; line-height: 1; letter-spacing: -.07em; white-space: nowrap; }
.brand-symbol { display: inline-flex; align-items: center; justify-content: center; background: var(--brand); color: var(--on-brand); font-family: Arial, sans-serif; font-size: 2.7rem; font-weight: 900; width: 46px; height: 46px; border-radius: 12px; margin-right: 12px; padding-bottom: 7px; letter-spacing: -3px; transform: rotate(-7deg); }
.brand-caption { border-left: 1px solid var(--border); padding-left: 26px; color: var(--muted); font-size: .875rem; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.language-label, .language-menu { font-size: .875rem; font-weight: 700; }
.language-menu { position: relative; }
.language-menu summary { cursor: pointer; padding: 10px; }
.language-menu div { position: absolute; z-index: 10; right: 0; top: 100%; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; min-width: 90px; padding: 8px; box-shadow: var(--shadow); }
.language-menu a { display: block; padding: 8px; }
.icon-button, .theme-toggle { height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--text); background: transparent; border: 1px solid var(--border); border-radius: 10px; }
.icon-button { width: 44px; }
.theme-toggle { gap: 8px; padding: 0 12px; font-size: .8125rem; font-weight: 650; }
.icon-button:hover, .theme-toggle:hover { border-color: var(--accent); background: var(--accent-soft); }
.theme-icon-moon, [data-theme="light"] .theme-icon-sun { display: none; }
[data-theme="light"] .theme-icon-moon { display: block; }
.account-link { min-width: 44px; min-height: 44px; display: flex; gap: 9px; align-items: center; justify-content: center; font-size: .875rem; font-weight: 700; }
.account-link:hover { color: var(--accent); }
.nav-wrap { border-block: 1px solid var(--border); }
.primary-nav { min-height: 58px; display: flex; align-items: stretch; gap: 30px; overflow-x: auto; scrollbar-width: none; }
.primary-nav::-webkit-scrollbar, .topic-links::-webkit-scrollbar { display: none; }
.primary-nav a { display: flex; align-items: center; white-space: nowrap; position: relative; font-size: .9375rem; font-weight: 650; padding: 17px 0; }
.primary-nav a:hover, .primary-nav a[aria-current] { color: var(--accent); }
.primary-nav a[aria-current]::after { content: ""; position: absolute; bottom: 0; height: 3px; background: var(--accent); left: 0; right: 0; }
.primary-nav .nav-about { margin-left: auto; color: var(--muted); }
.primary-nav a:focus-visible { outline-offset: -3px; }

/* Homepage: lead, chronological feed and topic discovery */
.page-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; padding: 44px 0 30px; }
.page-intro h1 { font-size: clamp(2.5rem,4.8vw,4rem); margin: 0; line-height: 1.04; letter-spacing: -.055em; font-weight: 800; }
.page-intro h1 br { display: none; }
.page-intro h1 span { color: var(--headline-soft, var(--muted)); }
.intro-note { color: var(--muted); font-size: .9375rem; margin: 0; line-height: 1.65; max-width: 260px; }
.intro-note br { display: none; }
.lead-layout { display: grid; grid-template-columns: minmax(0,1fr) 350px; gap: 24px; }
.lead-story { position: relative; min-height: 550px; overflow: hidden; border-radius: 16px; background: #1e2735; color: #fff; isolation: isolate; }
.lead-image { position: absolute; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.lead-story:hover .lead-image { transform: scale(1.018); }
.lead-shade { position: absolute; inset: 0; background: linear-gradient(180deg,#080e1600 8%,#080e166b 40%,#080e16f5 100%); }
.lead-without-image { background: #1e2735; }
.lead-content { position: relative; height: 100%; min-height: 550px; display: flex; flex-direction: column; justify-content: flex-end; padding: 32px; }
.lead-label { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; font-size: .75rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 18px; }
.lead-label span { padding: 6px 10px; background: var(--brand); color: var(--on-brand); border-radius: 5px; }
.lead-label a { background: #111a2be6; padding: 6px 10px; border-radius: 5px; position: relative; z-index: 1; }
.lead-content h2 { font-size: clamp(1.75rem,2.8vw,2.5rem); letter-spacing: -.035em; line-height: 1.12; margin-bottom: 16px; max-width: 810px; text-wrap: pretty; }
.lead-content h2 a::after { position: absolute; content: ""; inset: 0; }
.lead-content h2 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.lead-content:focus-within { outline: 3px solid var(--brand); outline-offset: -5px; }
.lead-summary { font-size: 1rem; color: #e0e5ec; margin-bottom: 22px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; max-width: 680px; }
.lead-credit { display: flex; gap: 16px; flex-wrap: wrap; color: #d5dce5; font-size: .8125rem; }
.latest-panel { border: 1px solid var(--border); border-top: 3px solid var(--accent); padding: 20px 22px; border-radius: 0 0 14px 14px; background: var(--panel); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-heading h2 { font-size: 1.75rem; letter-spacing: -.035em; margin: 0; }
.latest-panel .section-heading { margin-bottom: 2px; align-items: baseline; gap: 10px; }
.latest-panel .section-heading h2 { font-size: 1.5rem; }
.latest-panel .section-heading .small-label { font-size: .75rem; }
.latest-list { list-style: none; padding: 0; margin: 0; }
.latest-list li { padding: 13px 0; border-bottom: 1px solid var(--border); }
.latest-list time { font-size: .8125rem; color: var(--accent); font-variant-numeric: tabular-nums; }
.latest-list h3 { font-size: 1rem; line-height: 1.4; letter-spacing: -.015em; margin: 7px 0; }
.latest-list h3 a:hover { color: var(--accent); }
.latest-all { display: inline-block; margin-top: 18px; padding: 4px 0; font-size: .875rem; }
.topic-strip { display: flex; align-items: center; gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.topic-strip-label { font-size: .875rem; font-weight: 700; white-space: nowrap; }
.topic-links { scrollbar-width: none; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.topic-links a { display: inline-flex; align-items: center; min-height: 40px; border-radius: 24px; padding: 8px 16px; font-size: .875rem; border: 1px solid var(--border); background: var(--panel); }
.topic-links a:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }

/* Publication cards */
.stories-section { margin-top: 48px; }
.section-caption { font-size: .875rem; color: var(--muted); }
.story-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px 24px; }
.story-card { display: flex; flex-direction: column; min-width: 0; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .2s, transform .2s, box-shadow .2s; }
.story-card:hover { border-color: var(--field-border); transform: translateY(-3px); box-shadow: var(--shadow); }
.story-image { display: block; overflow: hidden; border-radius: 13px 13px 0 0; aspect-ratio: 16/9; background: var(--panel-alt); }
.story-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.story-card:hover .story-image img { transform: scale(1.035); }
.story-card-body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.story-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 13px; font-size: .8125rem; color: var(--muted); }
.category-label { color: var(--accent); font-size: .75rem; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; }
.category-label:hover { text-decoration: underline; text-underline-offset: 4px; }
.story-card h3 { font-size: 1.375rem; line-height: 1.25; letter-spacing: -.025em; margin-bottom: 13px; text-wrap: pretty; }
.story-card h3 a:hover { color: var(--accent); }
.story-card p { font-size: 1rem; color: var(--muted); line-height: 1.6; margin-bottom: 22px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.story-credit { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); font-size: .8125rem; color: var(--muted); }
.story-credit a:hover { color: var(--accent); }
.reading-time { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; flex-shrink: 0; line-height: 1.25; }
.reading-time-icon { display: block; flex: 0 0 16px; width: 16px; height: 16px; }
.image-placeholder { height: 100%; width: 100%; display: grid; place-items: center; background: repeating-linear-gradient(-45deg,transparent 0,transparent 30px,var(--border) 30px,var(--border) 31px),var(--panel-alt); color: var(--muted); font-size: 1.875rem; letter-spacing: -2px; }
.image-placeholder strong { color: var(--accent); }
.editorial-banner { margin-top: 64px; display: flex; align-items: center; gap: 40px; border-block: 1px solid var(--border); background: var(--accent-soft); border-radius: var(--radius); padding: 38px; }
.editorial-banner .eyebrow { margin-bottom: 10px; }
.editorial-banner h2 { font-size: 2rem; margin: 0; min-width: 250px; }
.editorial-banner > p { color: var(--copy); font-size: 1rem; max-width: 420px; margin: 0; }
.editorial-banner .button { margin-left: auto; white-space: nowrap; }

/* Listing, search and pagination */
.listing-intro { padding: 46px 0 28px; }
.listing-intro h1 { font-size: clamp(2.125rem,4.3vw,3.5rem); margin-bottom: 15px; letter-spacing: -.045em; }
.listing-intro p:last-child { margin: 0; max-width: 750px; }
.search-form { display: flex; gap: 12px; margin-bottom: 24px; max-width: 850px; }
.search-form input { flex: 1; min-width: 0; background: var(--panel); }
.search-caption, .result-count { color: var(--muted); font-size: .875rem; }
.listing-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 0 22px; margin-bottom: 28px; border-bottom: 1px solid var(--border); }
.listing-toolbar p { margin: 0; }
.listing-toolbar .text-link { font-size: .875rem; }
.pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 44px; }
.pagination-pages { display: flex; align-items: center; gap: 6px; }
.page-number { display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; min-width: 44px; height: 44px; padding: 8px; font-size: .875rem; border: 1px solid transparent; }
.page-number:hover { border-color: var(--border); background: var(--panel); }
.page-number[aria-current] { background: var(--brand); color: var(--on-brand); font-weight: 750; }
.pagination-gap { padding: 0 5px; color: var(--muted); }
.pagination-summary { width: 100%; color: var(--muted); font-size: .8125rem; text-align: center; }
.empty-state { text-align: center; padding: 64px 24px; border: 1px solid var(--border); background: var(--panel); border-radius: var(--radius); margin-bottom: 24px; }
.empty-state h2 { font-size: 1.75rem; }
.empty-state p { color: var(--muted); max-width: 560px; margin-inline: auto; }
.empty-state-icon { display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 24px; }
.empty-editorial { position: relative; overflow: hidden; border-radius: var(--radius); min-height: 460px; display: flex; align-items: center; background: var(--panel); padding: 50px; }
.empty-editorial > div:last-child { position: relative; z-index: 1; max-width: 550px; }
.empty-editorial h2 { font-size: clamp(2.375rem,5vw,4rem); margin-bottom: 22px; }
.empty-editorial p:not(.eyebrow) { color: var(--muted); max-width: 380px; }
.pitch-graphic { position: absolute; width: 50%; height: 75%; border: 2px solid var(--accent); opacity: .15; right: -10%; top: 15%; transform: rotate(-14deg); border-radius: 3px; pointer-events: none; }
.pitch-graphic::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--accent); }
.pitch-graphic::after { content: ""; position: absolute; left: 50%; top: 50%; width: 130px; height: 130px; border: 2px solid var(--accent); border-radius: 50%; transform: translate(-50%,-50%); }
.pitch-graphic span::before, .pitch-graphic span::after { content: ""; position: absolute; top: 25%; height: 50%; width: 17%; border: 2px solid var(--accent); }
.pitch-graphic span::before { left: -2px; }
.pitch-graphic span::after { right: -2px; }

/* Long-form reading */
html.has-reading-stream, .reading-stream, .reading-next { overflow-anchor: none; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: .8125rem; color: var(--muted); margin: 28px 0; }
.breadcrumbs a:hover { color: var(--accent); }
.article-header { max-width: 1000px; margin: 42px auto 32px; }
.article-header h1, .article-header > h2 { font-size: clamp(2rem,4.1vw,3.5rem); line-height: 1.12; letter-spacing: -.045em; margin: 18px 0 24px; text-wrap: pretty; }
.article-deck { color: var(--muted); font-size: 1.3125rem; line-height: 1.6; max-width: 880px; }
.article-byline { display: flex; gap: 13px; align-items: center; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }
.author-avatar { display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent-soft); border: 1px solid var(--border); width: 46px; height: 46px; color: var(--accent); font-weight: 750; flex-shrink: 0; }
.author-name { font-weight: 700; font-size: .875rem; }
.author-name:hover { color: var(--accent); }
.byline-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .8125rem; color: var(--muted); margin-top: 4px; }
.share-button { margin-left: auto; flex-shrink: 0; }
.article-figure { max-width: 1100px; margin: 32px auto 48px; }
.article-figure img { width: 100%; max-height: none; object-fit: contain; border-radius: var(--radius); }
.article-figure figcaption { color: var(--muted); font-size: .8125rem; margin-top: 12px; }
.article-body-layout { display: grid; grid-template-columns: 210px minmax(0,740px); gap: 56px; max-width: 1006px; margin: 0 auto; }
.article-side-note { padding-top: 8px; position: sticky; top: 32px; align-self: start; }
.article-side-note > p { font-size: 1.25rem; font-weight: 700; line-height: 1.35; }
.article-side-note > .text-link { font-size: .875rem; color: var(--muted); }
.article-toc { border-top: 1px solid var(--border); margin-top: 28px; padding-top: 20px; }
.article-toc h2 { font-size: .875rem; letter-spacing: 0; margin-bottom: 12px; }
.article-toc ol { list-style: none; margin: 0; padding: 0; }
.article-toc a { display: block; font-size: .875rem; line-height: 1.45; padding: 7px 0 7px 13px; border-left: 2px solid var(--border); color: var(--muted); }
.article-toc a:hover, .article-toc a[aria-current] { color: var(--accent); border-color: var(--accent); }
.article-toc .toc-subheading a { padding-left: 24px; font-size: .8125rem; }
.article-copy { font-size: 1.1875rem; line-height: 1.8; overflow-wrap: anywhere; color: var(--copy); min-width: 0; }
.article-copy p { margin-bottom: 26px; }
.article-copy h2 { font-size: 1.875rem; line-height: 1.25; color: var(--text); margin: 44px 0 20px; scroll-margin-top: 36px; }
.article-copy h3 { font-size: 1.5rem; line-height: 1.3; color: var(--text); margin: 34px 0 18px; scroll-margin-top: 36px; }
.article-copy a:not(.button) { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.article-copy li { margin-bottom: 10px; }
.article-copy ul, .article-copy ol { padding-left: 28px; }
.article-copy img { height: auto; max-width: 100%; border-radius: 10px; }
.article-copy figure { margin: 28px 0; }
/* A quotation keeps the reading typography; its speech shape supplies the emphasis. */
.article-copy blockquote {
  --quote-accent: var(--brand);
  --quote-surface: color-mix(in srgb, var(--panel) 96%, var(--quote-accent));
  --quote-outline: color-mix(in srgb, var(--border) 65%, var(--quote-accent));
  position: relative;
  margin: 38px 0 48px;
  padding: 25px 28px 25px 74px;
  border: 1px solid var(--quote-outline);
  border-radius: 18px;
  background: var(--quote-surface);
  color: var(--copy);
  font-family: inherit;
  font-size: inherit;
  font-weight: 400;
  font-style: normal;
  line-height: inherit;
  box-shadow: 0 8px 26px #00000008;
}
.article-copy blockquote::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 26px;
  width: 27px;
  height: 20px;
  background: var(--quote-accent);
  clip-path: path("M 0 0 H 11 V 10 L 5 20 H 0 L 5 10 H 0 Z M 16 0 H 27 V 10 L 21 20 H 16 L 21 10 H 16 Z");
  opacity: .9;
  pointer-events: none;
}
.article-copy blockquote::after {
  content: "";
  position: absolute;
  left: 30px;
  bottom: -9px;
  width: 16px;
  height: 16px;
  background: var(--quote-surface);
  border-right: 1px solid var(--quote-outline);
  border-bottom: 1px solid var(--quote-outline);
  border-radius: 0 0 3px 0;
  transform: rotate(45deg);
  pointer-events: none;
}
.article-copy blockquote p { font-size: inherit; font-weight: inherit; }
.article-copy blockquote > :first-child { margin-top: 0; }
.article-copy blockquote > :last-child { margin-bottom: 0; }
.article-copy blockquote strong, .article-copy blockquote b { font-weight: inherit; }
.article-copy blockquote p, .article-copy blockquote strong, .article-copy blockquote b { font-size: inherit; font-weight: inherit; }
.article-copy blockquote p:last-child { margin-bottom: 0; }
.article-copy table { display: block; overflow-x: auto; border-collapse: collapse; width: 100%; font-size: 1rem; }
.article-copy td, .article-copy th { padding: 12px; border: 1px solid var(--border); }
.article-copy th { background: var(--panel-alt); }
.article-copy iframe, .article-copy video { width: 100%; max-width: 100%; aspect-ratio: 16/9; border: 0; }
.article-copy pre { white-space: pre-wrap; background: var(--panel-alt); padding: 20px; border-radius: 10px; font-size: .875rem; }
.article-copy .updated-at, .article-copy .source-line { font-size: .8125rem; color: var(--muted); margin-top: 32px; }
.article-end { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; border-top: 1px solid var(--border); padding-top: 26px; margin-top: 36px; }
.article-end > span { background: var(--brand); color: var(--on-brand); border-radius: 10px; font-size: 2rem; font-weight: 900; width: 45px; height: 45px; display: grid; place-items: center; line-height: 1; }
.article-end > p { font-size: .875rem; line-height: 1.5; color: var(--muted); margin: 0; }
.article-end strong { color: var(--text); }
.article-end-link { font-size: .875rem; margin-left: auto; }
.share-status { font-size: .875rem; color: var(--muted); margin: 16px 0 0; }
.share-status:empty { display: none; }
.reading-progress { position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 40; border: none; appearance: none; background: transparent; pointer-events: none; color: var(--accent); }
.reading-progress::-webkit-progress-bar { background: transparent; }
.reading-progress::-webkit-progress-value { background: var(--accent); }
.reading-progress::-moz-progress-bar { background: var(--accent); }
.reading-divider { display: flex; align-items: center; gap: 20px; color: var(--muted); font-size: .8125rem; margin: 64px 0 40px; }
.reading-divider::before, .reading-divider::after { content: ""; height: 1px; flex: 1; background: var(--border); }
.reading-next { margin: 56px auto 28px; max-width: 1006px; padding: 28px 32px; background: var(--panel); border: 1px solid var(--border); border-top: 3px solid var(--accent); border-radius: 0 0 14px 14px; }
.reading-next-label { font-size: .8125rem; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.reading-next-title { font-size: 1.5rem; line-height: 1.3; max-width: 760px; }
.reading-next-title a:hover { color: var(--accent); }
.reading-next-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.reading-stream-status { color: var(--muted); font-size: .875rem; margin-top: 16px; }
.reading-stream-status:empty { display: none; }
.reading-stream-toggle { border: 1px solid var(--border); background: transparent; border-radius: 8px; min-height: 44px; padding: 10px 14px; font-size: .875rem; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.reading-stream-toggle input { accent-color: var(--accent); }
.back-to-top { position: fixed; right: 24px; bottom: 24px; z-index: 20; padding: 12px 18px; border: 1px solid var(--field-border); border-radius: 24px; background: var(--panel); color: var(--text); box-shadow: var(--shadow); font-size: .8125rem; font-weight: 650; }
.back-to-top:hover { border-color: var(--accent); color: var(--accent); }

/* Project information and authors */
.about-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 72px; margin-top: 24px; }
.about-manifesto { position: relative; overflow: hidden; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 44px; align-self: start; min-height: 340px; }
.about-manifesto h2 { font-size: 2.5rem; margin: 30px 0 20px; position: relative; }
.about-manifesto p { color: var(--muted); position: relative; }
.about-manifesto .pitch-graphic { right: -25%; top: 35%; }
.about-layout .article-copy h2:first-child { margin-top: 0; }
.author-header { display: flex; align-items: center; gap: 28px; padding: 48px 0 24px; }
.author-avatar-large { width: 100px; height: 100px; font-size: 2.5rem; }
.author-header h1 { font-size: 2.625rem; margin-bottom: 10px; }
.author-header p:last-child { margin-bottom: 0; }
.error-page { text-align: center; padding: 80px 20px; }
.error-code { font-size: 7.5rem; letter-spacing: -.08em; font-weight: 850; line-height: 1; margin: 0 0 24px; color: var(--accent); }
.error-page h1 { font-size: 2.25rem; }
.error-page > p:not(.error-code) { max-width: 540px; margin: 0 auto 32px; color: var(--muted); }

/* Authentication and common form fields */
.auth-layout { display: grid; grid-template-columns: 1fr 450px; gap: 90px; align-items: center; min-height: 630px; padding: 60px 0; }
.auth-intro { position: relative; overflow: hidden; min-height: 400px; padding-top: 30px; }
.auth-intro h1 { font-size: clamp(2.375rem,4.5vw,3.75rem); letter-spacing: -.05em; position: relative; z-index: 1; }
.auth-intro > p:not(.eyebrow) { max-width: 360px; color: var(--muted); position: relative; z-index: 1; }
.auth-intro .pitch-graphic { top: 55%; height: 65%; width: 80%; right: -40%; }
.form-panel { border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; background: var(--panel); box-shadow: var(--shadow); }
.form-panel h2 { font-size: 1.75rem; margin-bottom: 12px; }
.form-panel h3 { font-size: 1.375rem; margin-bottom: 22px; }
.form-panel > p.muted { font-size: .9375rem; }
.form-panel label:not(.checkbox-label) { display: block; font-size: .875rem; font-weight: 650; margin: 20px 0 9px; }
input:not([type=checkbox]):not([type=radio]), textarea, select { width: 100%; border: 1px solid var(--field-border); background: var(--bg); color: var(--text); padding: 13px 14px; border-radius: 8px; min-height: 48px; font-size: 1rem; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error); }
textarea { resize: vertical; }
input[type=file] { font-size: .875rem; padding: 10px; }
input[type=file]::file-selector-button { border: 0; background: var(--panel-alt); color: var(--text); padding: 9px 12px; border-radius: 5px; margin-right: 12px; cursor: pointer; }
select { appearance: none; background-image: url("/assets/images/chevron.svg"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.form-panel button[type=submit] { margin-top: 24px; }
.auth-layout button[type=submit] { width: 100%; }
.form-help { font-size: .875rem; line-height: 1.55; color: var(--muted); margin: 12px 0 0; }
.form-status { font-size: .875rem; line-height: 1.55; margin: 16px 0 0; overflow-wrap: anywhere; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--error); background: var(--error-bg); border-left: 3px solid var(--error); padding: 12px 16px; border-radius: 0 6px 6px 0; }
.form-status.is-success { color: var(--success); }
.password-field { display: flex; align-items: stretch; gap: 8px; }
.password-field input { min-width: 0; flex: 1; }
.password-toggle { flex-shrink: 0; padding: 0 12px; font-size: .8125rem; color: var(--text); border: 1px solid var(--border); background: var(--panel-alt); border-radius: 8px; min-width: 80px; }
.password-toggle:hover { border-color: var(--accent); }
fieldset { padding: 0; margin: 24px 0; border: 0; min-width: 0; }
legend { font-size: .875rem; font-weight: 750; margin-bottom: 12px; padding: 0; }
.checkbox-label { display: flex; gap: 10px; align-items: center; font-size: .875rem; padding: 8px 0; color: var(--copy); }
.checkbox-label input { accent-color: var(--accent); width: 18px; height: 18px; flex-shrink: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }

/* Editorial workspace */
.admin-heading { padding: 44px 0 26px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.admin-heading h1 { font-size: 2.5rem; margin: 0 0 12px; }
.admin-heading p:last-child { margin: 0; }
.admin-shortcuts { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 0 24px; border-bottom: 1px solid var(--border); }
.admin-shortcuts a { display: inline-block; padding: 10px 16px; border-radius: 8px; border: 1px solid var(--border); background: var(--panel); font-size: .875rem; font-weight: 650; }
.admin-shortcuts a:hover { border-color: var(--accent); color: var(--accent); }
.admin-section { margin: 32px 0 56px; }
.admin-section .section-heading p { font-size: .9375rem; color: var(--muted); margin: 10px 0 0; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.admin-grid .form-panel h3, .key-list-panel h3 { margin-top: 0; }
.key-list-panel { padding: 26px 0; }
.key-list { display: grid; gap: 16px; }
.key-item { padding: 24px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); }
.key-item h4 { margin: 0 0 12px; font-size: 1.0625rem; }
.key-item p { font-size: .875rem; color: var(--muted); overflow-wrap: anywhere; }
.key-item .button { padding: 10px 14px; }
.key-item.is-revoked { opacity: .65; }
.scope-tag { display: inline-block; font-size: .8125rem; background: var(--panel-alt); border-radius: 5px; padding: 5px 8px; margin: 0 5px 5px 0; }
.secret-panel { margin-top: 22px; padding: 20px; background: var(--success-bg); border: 1px solid var(--success); border-radius: 8px; }
.secret-panel p { font-size: .875rem; color: var(--success); }
.secret-panel textarea { font-family: monospace; font-size: .875rem; }
.secret-panel .button { margin-top: 12px; }
.editor-form textarea[name=body_html] { font-family: ui-monospace,monospace; font-size: .9375rem; line-height: 1.65; }
.editor-form .section-heading { padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.editor-form .section-heading h3 { margin: 0; }
.editor-fieldset { margin: 28px 0; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.editor-fieldset:last-of-type { padding-bottom: 0; border: 0; }
.editor-fieldset > legend { font-size: 1.0625rem; margin-bottom: 0; }
.editor-list-toolbar { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.editor-list-toolbar label { font-size: .875rem; font-weight: 650; }
.editor-list-toolbar select { max-width: 260px; background-color: var(--panel); }
.editor-article-list { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.editor-article-list > p { padding: 24px; margin: 0; }
.editor-list-item { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 24px; background: var(--panel); }
.editor-list-item + .editor-list-item { border-top: 1px solid var(--border); }
.editor-list-item h3 { font-size: 1.0625rem; line-height: 1.4; margin: 0 0 10px; letter-spacing: -.01em; }
.editor-list-item p { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .8125rem; color: var(--muted); margin: 0; }
.editor-list-item > .button { flex-shrink: 0; }
.editor-state { padding: 4px 9px; border-radius: 5px; background: var(--panel-alt); }
.editor-state-published { color: var(--success); background: var(--success-bg); }
.editor-list-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 18px; margin: 20px 0 32px; }
.editor-list-pagination span, #editor-record { font-size: .875rem; color: var(--muted); }
.editor-actions { display: flex; align-items: center; gap: 14px; margin-top: 24px; flex-wrap: wrap; }
.editor-actions button[type=submit] { margin-top: 0; }
.editor-dirty-state { color: var(--muted); font-size: .875rem; }
.editor-dirty-state.is-dirty { color: var(--accent); }
.upload-selection { margin-top: 16px; padding: 14px 16px; font-size: .875rem; color: var(--muted); background: var(--panel-alt); border-radius: 8px; overflow-wrap: anywhere; }
#upload-result { margin-top: 24px; }
#upload-result img { max-width: min(340px,100%); max-height: 240px; border-radius: 10px; margin-bottom: 12px; }
#upload-result p { font-size: .875rem; margin: 10px 0; color: var(--success); }

/* Quiet footer */
.site-footer { border-top: 1px solid var(--border); background: var(--panel); padding-top: 36px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-bottom: 30px; }
.footer-top .wordmark { font-size: 2rem; letter-spacing: -.065em; }
.footer-brand p { color: var(--muted); font-size: .875rem; margin: 14px 0 0; }
.footer-nav { display: flex; gap: 28px; align-items: center; font-size: .875rem; flex-wrap: wrap; }
.footer-nav a { padding-block: 10px; }
.footer-nav a:hover { color: var(--accent); }
.footer-nav .rss-link { color: var(--muted); font-size: .8125rem; }
.footer-bottom { border-top: 1px solid var(--border); display: flex; align-items: center; gap: 28px; padding: 22px 0; color: var(--muted); font-size: .8125rem; }
.age-label { margin-left: auto; border: 1px solid var(--border); padding: 3px 8px; border-radius: 5px; }

/* Responsive behaviour */
@media (min-width: 801px) {
  .latest-list h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
}
@media (max-width: 1150px) {
  .container { width: calc(100% - 48px); }
  .brand-caption { display: none; }
  .primary-nav { gap: 24px; }
  .lead-layout { grid-template-columns: minmax(0,1fr) 310px; gap: 20px; }
  .lead-content { padding: 26px; }
  .lead-content h2 { font-size: 2rem; }
  .lead-story, .lead-content { min-height: 530px; }
  .latest-panel { padding-inline: 18px; }
  .page-intro h1 { font-size: 3rem; }
  .page-intro h1 br { display: block; }
  .intro-note { max-width: 235px; }
  .story-card-body { padding: 18px; }
  .story-card h3 { font-size: 1.25rem; }
  .editorial-banner { gap: 24px; padding: 30px; }
  .editorial-banner h2 { font-size: 1.75rem; min-width: 220px; }
  .article-body-layout { grid-template-columns: 180px minmax(0,1fr); gap: 32px; }
  .auth-layout { gap: 44px; grid-template-columns: 1fr 420px; }
  .about-layout { gap: 40px; }
  .about-manifesto { padding: 32px; }
}
@media (max-width: 800px) {
  .masthead { min-height: 86px; }
  .wordmark { font-size: 2.25rem; }
  .brand-symbol { width: 40px; height: 40px; font-size: 2.375rem; }
  .header-actions { gap: 12px; }
  .theme-toggle { padding: 0; width: 44px; }
  .theme-toggle [data-theme-label] { display: none; }
  .primary-nav { min-height: 54px; }
  .primary-nav a { font-size: .875rem; padding-block: 15px; }
  .primary-nav .nav-about { margin-left: 0; }
  .page-intro { padding: 34px 0 28px; }
  .page-intro h1 { font-size: 2.75rem; }
  .intro-note { font-size: .875rem; max-width: 205px; }
  .lead-layout { grid-template-columns: 1fr; }
  .lead-story, .lead-content { min-height: 500px; }
  .lead-content h2 { font-size: 2.25rem; }
  .latest-panel { margin-top: 4px; padding: 20px 24px; }
  .latest-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 26px; }
  .story-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 20px; }
  .story-card h3 { font-size: 1.375rem; }
  .topic-strip { gap: 15px; align-items: flex-start; }
  .topic-strip-label { padding-top: 10px; }
  .editorial-banner { flex-wrap: wrap; }
  .editorial-banner > p { max-width: calc(100% - 245px); }
  .editorial-banner .button { margin-left: 0; }
  .article-header { margin: 30px 0; }
  .article-header h1, .article-header > h2 { font-size: 2.5rem; }
  .article-deck { font-size: 1.1875rem; }
  .article-body-layout { display: flex; flex-direction: column; gap: 30px; max-width: 720px; }
  .article-side-note { position: static; width: 100%; padding: 0; }
  .article-side-note > .eyebrow, .article-side-note > p, .article-side-note > .text-link { display: none; }
  .article-side-note:not(:has(.article-toc:not([hidden]))) { display: none; }
  .article-toc { margin: 0; padding: 20px; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; }
  .article-toc ol { columns: 2; column-gap: 24px; }
  .article-toc li { break-inside: avoid; }
  .article-copy { width: 100%; font-size: 1.125rem; }
  .about-layout { grid-template-columns: 1fr; }
  .about-manifesto { min-height: 0; }
  .auth-layout { grid-template-columns: 1fr; max-width: 550px; margin: auto; gap: 28px; padding-top: 36px; min-height: 0; }
  .auth-intro { min-height: 0; padding: 0; }
  .auth-intro h1 { font-size: 2.75rem; margin-bottom: 18px; }
  .auth-intro .pitch-graphic { display: none; }
  .auth-intro > p:not(.eyebrow) { max-width: 440px; }
  .admin-heading { align-items: flex-start; }
  .admin-heading h1 { font-size: 2rem; }
  .admin-grid { grid-template-columns: 1fr; }
  .key-list-panel { padding: 0; }
  .footer-top { gap: 26px; align-items: flex-start; }
  .footer-nav { gap: 10px 24px; max-width: 280px; }
}
@media (max-width: 540px) {
  .container { width: calc(100% - 32px); }
  .masthead { min-height: 78px; gap: 12px; }
  .masthead .wordmark { font-size: 2rem; }
  .brand-symbol { width: 34px; height: 34px; font-size: 2rem; border-radius: 9px; margin-right: 8px; padding-bottom: 5px; }
  .header-actions { gap: 4px; }
  .language-label { display: none; }
  .language-menu { font-size: .75rem; }
  .account-link span { display: none; }
  .icon-button, .theme-toggle { border-color: transparent; }
  .primary-nav { gap: 24px; }
  .page-intro { padding-top: 28px; }
  .page-intro h1 { font-size: 2.375rem; }
  .eyebrow { font-size: .75rem; margin-bottom: 12px; }
  .intro-note { display: none; }
  .lead-story, .lead-content { min-height: 490px; }
  .lead-content { padding: 24px; }
  .lead-content h2 { font-size: 1.8125rem; line-height: 1.16; }
  .lead-label { font-size: .75rem; margin-bottom: 16px; gap: 8px; }
  .lead-label a { max-width: 100%; }
  .lead-summary { font-size: .9375rem; }
  .lead-credit { font-size: .8125rem; gap: 6px 14px; }
  .lead-shade { background: linear-gradient(180deg,#080e1600 0%,#080e165e 25%,#080e16fa 100%); }
  .latest-list { grid-template-columns: 1fr; }
  .latest-list h3 { font-size: 1.0625rem; }
  .latest-list li { padding: 16px 0; }
  .latest-panel { padding: 20px; }
  .section-heading { gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
  .section-heading h2 { font-size: 1.625rem; }
  .section-caption { font-size: .8125rem; }
  .stories-section { margin-top: 36px; }
  .story-grid { grid-template-columns: 1fr; gap: 24px; }
  .story-card-body { padding: 22px; }
  .story-card h3 { font-size: 1.5rem; }
  .topic-strip { display: block; padding-block: 20px; }
  .topic-strip-label { display: block; padding: 0; margin-bottom: 12px; }
  .topic-links { flex-wrap: nowrap; overflow-x: auto; padding: 2px 0 6px; }
  .topic-links a { flex-shrink: 0; min-height: 44px; }
  .editorial-banner { margin-top: 40px; padding: 28px 24px; gap: 22px; }
  .editorial-banner h2 { font-size: 1.875rem; }
  .editorial-banner > p { max-width: 100%; }
  .editorial-banner .button { width: 100%; }
  main { padding-bottom: 44px; }
  .listing-intro { padding-top: 32px; }
  .listing-intro h1 { font-size: 2.25rem; }
  .search-form { gap: 8px; }
  .search-form input { padding-inline: 12px; }
  .search-form .button { padding-inline: 15px; }
  .listing-toolbar { gap: 10px; align-items: baseline; flex-wrap: wrap; }
  .pagination { gap: 12px; }
  .pagination-pages { order: 3; flex-basis: 100%; justify-content: center; }
  .pagination-summary { order: 4; }
  .pagination .button { flex: 1; }
  .pagination-gap { padding-inline: 2px; }
  .page-number { min-width: 38px; }
  .empty-state { padding: 44px 22px; }
  .empty-editorial { padding: 30px; min-height: 410px; }
  .empty-editorial h2 { font-size: 2.5rem; }
  .empty-editorial .pitch-graphic { width: 80%; right: -45%; }
  .breadcrumbs { font-size: .8125rem; margin: 24px 0; }
  .article-header h1, .article-header > h2 { font-size: 2.125rem; line-height: 1.16; }
  .article-header { margin-top: 26px; }
  .article-deck { font-size: 1.125rem; line-height: 1.65; }
  .article-byline { gap: 12px; flex-wrap: wrap; }
  .author-avatar { width: 42px; height: 42px; }
  .article-byline > div:nth-child(2) { flex: 1; min-width: 170px; }
  .share-button { margin-left: 0; margin-top: 6px; }
  .article-figure { margin: 28px -16px 30px; }
  .article-figure img { border-radius: 0; }
  .article-figure figcaption { padding-inline: 16px; }
  .article-toc ol { columns: 1; }
  .article-copy h2 { font-size: 1.6875rem; }
  .article-copy blockquote { font-size: inherit; padding: 22px 20px 22px 58px; border-radius: 14px; }
  .article-copy blockquote::before { left: 19px; top: 26px; transform: scale(.8); transform-origin: top left; }
  .article-copy blockquote::after { left: 24px; }
  .article-copy p { margin-bottom: 24px; }
  .article-end-link { width: 100%; margin-left: 0; }
  .reading-next { padding: 24px 20px; margin-top: 40px; }
  .reading-next-title { font-size: 1.375rem; }
  .reading-divider { margin-top: 44px; }
  .back-to-top { right: 16px; bottom: 16px; }
  .about-layout { gap: 32px; margin-top: 10px; }
  .about-manifesto { padding: 28px; }
  .author-header { gap: 18px; align-items: flex-start; }
  .author-avatar-large { width: 64px; height: 64px; font-size: 1.625rem; }
  .author-header h1 { font-size: 1.875rem; }
  .error-page { padding: 60px 0; }
  .error-code { font-size: 6rem; }
  .error-page h1 { font-size: 1.875rem; }
  .form-panel { padding: 26px 20px; }
  .auth-layout { padding-bottom: 0; }
  .auth-intro h1 { font-size: 2.375rem; }
  .form-grid { grid-template-columns: 1fr; }
  .admin-heading { display: block; padding-top: 32px; }
  .admin-heading h1 { font-size: 1.9375rem; }
  .admin-heading > .button { margin-top: 20px; }
  .admin-section { margin-bottom: 40px; }
  .admin-section .section-heading h2 { font-size: 1.625rem; }
  .editor-list-item { display: block; padding: 20px; }
  .editor-list-item > .button { margin-top: 16px; }
  .editor-list-pagination { justify-content: space-between; gap: 10px; }
  .editor-list-pagination span { font-size: .8125rem; }
  .editor-list-toolbar { align-items: flex-start; flex-direction: column; gap: 8px; }
  .editor-list-toolbar select { max-width: none; }
  .site-footer { padding-top: 30px; }
  .footer-top { display: block; padding-bottom: 24px; }
  .footer-nav { max-width: none; gap: 6px 22px; margin-top: 16px; }
  .footer-bottom { gap: 12px; flex-wrap: wrap; }
  .footer-bottom > span:nth-child(2) { order: 3; flex-basis: 100%; }
  .footer-bottom .age-label { order: 2; }
}
@media (max-width: 370px) {
  .masthead { gap: 6px; }
  .masthead .wordmark { font-size: 1.75rem; }
  .brand-symbol { width: 28px; height: 30px; font-size: 1.875rem; margin-right: 7px; }
  .header-actions { gap: 0; }
  .lead-content { padding: 22px; }
  .lead-content h2 { font-size: 1.625rem; }
  .story-card-body { padding: 18px; }
  .story-card h3 { font-size: 1.375rem; }
  .article-header h1, .article-header > h2 { font-size: 1.9375rem; }
  .form-panel { padding-inline: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .site-footer, .back-to-top, .reading-progress, .article-side-note, .share-button, .reading-next, .stories-section { display: none !important; }
  body { background: white; color: black; }
  .container { width: 100%; }
  .article-header, .article-copy { color: black; }
  .article-body-layout { display: block; }
  .article-copy a { color: black; }
}


/* Informational cookie notice: does not control counters or imply consent. */
.cookie-notice { position: fixed; z-index: 50; left: 50%; bottom: 24px; transform: translateX(-50%); width: min(940px, calc(100% - 40px)); display: flex; align-items: center; gap: 32px; padding: 22px 24px; background: var(--panel); color: var(--text); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 16px 60px #0003; max-height: min(70vh, 600px); overflow-y: auto; }
.cookie-notice-copy { flex: 1; min-width: 0; }
.cookie-notice h2 { font-size: 1.0625rem; letter-spacing: -.01em; margin: 0 0 6px; }
.cookie-notice p { font-size: .875rem; line-height: 1.6; color: var(--copy); margin: 0 0 8px; }
.cookie-notice-details summary { display: list-item; cursor: pointer; width: fit-content; color: var(--accent); font-size: .8125rem; text-decoration: underline; text-underline-offset: 3px; padding-block: 5px; }
.cookie-notice-details summary::marker { font-size: .75rem; }
.cookie-notice-more { margin-top: 10px; }
.cookie-notice-more p { margin-bottom: 12px; }
.cookie-notice-more nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.cookie-notice-more a { color: var(--accent); font-size: .8125rem; text-decoration: underline; text-underline-offset: 3px; }
.cookie-notice-dismiss { flex-shrink: 0; padding: 14px 20px; }
.footer-legal { display: flex; align-items: baseline; gap: 12px 24px; flex-wrap: wrap; padding: 0 0 24px; font-size: .8125rem; color: var(--muted); }
.footer-legal a { padding-block: 6px; }
.footer-legal a:hover, .made-by:hover { color: var(--accent); }
.made-by { margin-left: auto; white-space: nowrap; }
.made-by strong { font-weight: 700; color: var(--text); letter-spacing: .02em; }
.footer-bottom .age-label { margin-left: 0; }
@media (max-width: 800px) { .cookie-notice { gap: 20px; } .footer-nav { max-width: 330px; } }
@media (max-width: 540px) {
  .cookie-notice { display: grid; grid-template-columns: 1fr; left: 12px; right: 12px; bottom: 12px; width: auto; transform: none; gap: 12px; padding: 20px; border-radius: 14px; max-height: 70vh; }
  .cookie-notice-dismiss { justify-self: end; padding: 12px 20px; }
  .cookie-notice-details summary { min-height: 36px; padding-top: 7px; }
  .footer-legal { display: grid; gap: 5px; font-size: .8125rem; }
  .footer-nav { max-width: none; }
  .made-by { order: 4; margin-left: 0; width: 100%; margin-top: 6px; }
  .footer-bottom .age-label { margin-left: auto; }
}
@media print { .cookie-notice { display: none !important; } }

/* Captions remain visibly smaller than the story in every theme. */
.article-copy figcaption,.article-figure figcaption{font-size:12px;line-height:1.5;font-weight:400;color:var(--muted);margin-top:9px}
.article-copy figcaption p,.article-copy figcaption strong,.article-copy figcaption b,.article-figure figcaption p,.article-figure figcaption strong,.article-figure figcaption b{font-size:inherit;line-height:inherit;font-weight:inherit;margin:0}

/* Compact recommendations appear only below the article opened directly. */
.article-related { max-width: 1006px; margin: 44px auto 0; padding-top: 28px; border-top: 1px solid var(--border); }
.article-related-heading { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.article-related-heading .eyebrow { margin: 0; font-size: 10px; }
.article-related-heading h2 { margin: 0; font-size: 1.5rem; line-height: 1.2; letter-spacing: -.025em; }
.article-related-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; align-items: stretch; }
.related-card { display: grid; grid-template-columns: 84px minmax(0,1fr); align-items: start; gap: 14px; min-width: 0; padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); transition: border-color .2s, background .2s; }
.related-card:hover { border-color: var(--field-border); }
.related-card-image { display: block; aspect-ratio: 4/3; overflow: hidden; border-radius: 7px; background: var(--panel-alt); }
.related-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.related-card-image .image-placeholder { font-size: 1.05rem; letter-spacing: -.04em; }
.related-card-body { min-width: 0; }
.related-card-category { display: block; color: var(--accent); font-size: 10px; font-weight: 650; line-height: 1.35; margin-bottom: 7px; }
.related-card h3 { font-size: .9375rem; line-height: 1.45; font-weight: 650; letter-spacing: -.012em; margin: 0 0 12px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.related-card h3 a:hover { color: var(--accent); }
.related-card .reading-time { font-size: 12px; color: var(--muted); }
@media (max-width: 1050px) { .article-related-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 620px) {
  .article-related { margin-top: 32px; padding-top: 23px; }
  .article-related-heading { gap: 7px; margin-bottom: 15px; }
  .article-related-heading h2 { font-size: 1.375rem; }
  .article-related-grid { grid-template-columns: 1fr; gap: 10px; }
  .related-card { grid-template-columns: 92px minmax(0,1fr); gap: 14px; padding: 14px; }
  .related-card h3 { font-size: 1rem; margin-bottom: 10px; }
}
@media print { .article-related { display: none; } }
