/* =====================================================================
   Clore – design system & public site
   Light theme is the default; dark via [data-theme="dark"] (set in theme.js before paint).
   ===================================================================== */

/* ---------- tokens ---------- */
:root, [data-theme="light"] {
  --bg: #ffffff;
  --bg-2: #f7f7f8;
  --bg-3: #f0f0f2;
  --elevated: #ffffff;
  --fill: rgba(118, 118, 128, .12);
  --fill-2: rgba(118, 118, 128, .08);
  --text: #171717;
  --text-2: #3d3d42;
  --muted: #6b6b70;
  --faint: #8e8e93;
  --border: #e7e7ea;
  --border-2: #d9d9de;
  --accent: #c7361f;          /* text-safe brand red (5:1 on white) */
  --accent-mark: #e5432d;     /* logo / decorative */
  --accent-soft: rgba(229, 67, 45, .08);
  --primary: #171717;         /* primary buttons: near-black */
  --on-primary: #ffffff;
  --focus: #0a84ff;
  --up: #1a7f37;
  --down: #c62828;
  --success: #1a7f37;
  --danger: #c62828;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .05);
  --shadow: 0 8px 24px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .04);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, .14), 0 2px 6px rgba(0, 0, 0, .05);
  --backdrop: rgba(0, 0, 0, .32);
  --gs-theme-surface: #ffffff;
  --gs-theme-chip: #ffffff;
  --gs-theme-highlight: #ececf0;
  --gs-theme-border: #d9d9de;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #101012;
  --bg-2: #19191d;
  --bg-3: #212126;
  --elevated: #1f1f24;
  --fill: rgba(118, 118, 128, .24);
  --fill-2: rgba(118, 118, 128, .16);
  --text: #f5f5f7;
  --text-2: #d4d4d8;
  --muted: #a1a1aa;
  --faint: #7d7d86;
  --border: #2b2b31;
  --border-2: #3a3a42;
  --accent: #ff6b55;
  --accent-mark: #e5432d;
  --accent-soft: rgba(255, 107, 85, .12);
  --primary: #f5f5f7;
  --on-primary: #101012;
  --focus: #409cff;
  --up: #34c759;
  --down: #ff5f57;
  --success: #34c759;
  --danger: #ff5f57;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 8px 24px rgba(0, 0, 0, .4);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, .55);
  --backdrop: rgba(0, 0, 0, .55);
  --gs-theme-surface: #26262c;
  --gs-theme-chip: #1f1f24;
  --gs-theme-highlight: #34343c;
  --gs-theme-border: #3a3a42;
  color-scheme: dark;
}
:root {
  --font: 'Geist', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI Variable Text', 'Segoe UI', system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  /* spacing scale */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  /* radii */
  --r-sm: 8px; --r: 12px; --r-lg: 16px;
  --ease: cubic-bezier(.25, .8, .25, 1);
  --wide: 1200px;
  --read: 680px;
  --header-h: 64px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; font-feature-settings: 'ss01' 0; }
body.has-dialog { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
::selection { background: var(--accent-soft); color: var(--text); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
main:focus { outline: none; }
.i { width: 18px; height: 18px; flex: none; }
html:not(.js) .js-only { display: none !important; }
[data-theme="light"] .only-dark, [data-theme="dark"] .only-light { display: none !important; }
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after { transition: background-color .3s ease, border-color .3s ease, color .2s ease, fill .2s ease !important; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 200; padding: 10px 14px; border-radius: var(--r-sm); background: var(--primary); color: var(--on-primary); font-weight: 600; font-size: 14px; }
.skip-link:focus { top: 12px; }

.container { width: min(var(--wide), 100% - 48px); margin-inline: auto; }
.page-pad { padding-top: var(--s6); padding-bottom: var(--s8); }
.page-end { padding-bottom: var(--s8); }
.muted { color: var(--muted); }
kbd { font-family: var(--font); font-size: 11px; font-weight: 500; line-height: 1; min-width: 20px; padding: 3px 5px; border-radius: 5px; border: 1px solid var(--border); background: var(--bg); color: var(--muted); text-align: center; }

/* ---------- typography ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--accent); }
.eyebrow .i { width: 15px; height: 15px; }
.page-title { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.08; letter-spacing: -.03em; font-weight: 700; }
.page-lede { font-size: 18px; line-height: 1.5; color: var(--muted); max-width: 640px; }
.section-title { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; line-height: 1.2; font-weight: 650; letter-spacing: -.02em; }
.section-title .i { width: 20px; height: 20px; color: var(--accent); }

/* ---------- buttons & controls ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent; font-size: 15px; font-weight: 600; white-space: nowrap; transition: background-color .15s var(--ease), border-color .15s var(--ease), opacity .15s, transform .1s; -webkit-tap-highlight-color: transparent; }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn .i { width: 17px; height: 17px; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { opacity: .88; }
.btn-secondary { background: var(--fill-2); color: var(--text); }
.btn-secondary:hover { background: var(--fill); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { background: var(--fill-2); }
.btn-block { width: 100%; }
.btn:disabled, .btn.is-disabled { opacity: .45; cursor: default; pointer-events: none; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--text); transition: background-color .15s; flex: none; }
.icon-btn:hover { background: var(--fill-2); }
.icon-btn.is-disabled { opacity: .3; pointer-events: none; }
.text-btn { border: 0; background: none; padding: 8px 4px; font-size: 15px; font-weight: 500; color: var(--accent); }
.link-more { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 500; color: var(--accent); white-space: nowrap; }
.link-more .i { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-more:hover .i { transform: translateX(2px); }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--fill-2); font-size: 14px; font-weight: 500; color: var(--text-2); white-space: nowrap; transition: background-color .15s, color .15s; }
.chip:hover { background: var(--fill); color: var(--text); }
.chip[aria-current] { background: var(--primary); color: var(--on-primary); }
.chip .i { width: 15px; height: 15px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; border: 1px dashed var(--border-2); font-size: 11px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); }
.pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--fill-2); font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.notice { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--border); color: var(--muted); font-size: 15px; }
.notice .i { margin-top: 2px; color: var(--muted); }

/* toggle switch (iOS-style) */
.switch { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 51px; height: 31px; margin: 0; border-radius: 999px; background: var(--fill); cursor: pointer; transition: background-color .2s var(--ease); }
.switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .2); transition: transform .2s var(--ease); }
.switch:checked { background: var(--success); }
.switch:checked::after { transform: translateX(20px); }
.switch:disabled { opacity: .5; cursor: default; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--border); }
html:not(.js) .site-header { border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; gap: var(--s5); height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 20px; letter-spacing: -.035em; flex: none; }
.logo-mark { width: 28px; height: 28px; flex: none; }
.main-nav { display: flex; align-items: center; gap: 2px; margin-left: var(--s4); }
.nav-link { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 12px; border: 0; border-radius: 8px; background: none; font-size: 15px; font-weight: 500; color: var(--muted); white-space: nowrap; transition: color .15s, background-color .15s; }
.nav-link:hover { color: var(--text); background: var(--fill-2); }
.nav-link[aria-current], .nav-link.is-current { color: var(--text); }
.nav-link .i { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.nav-drop { position: relative; }
.nav-drop.is-open .nav-link { color: var(--text); background: var(--fill-2); }
.nav-drop.is-open .nav-link .i { transform: rotate(180deg); }
.mega { position: absolute; top: calc(100% + 10px); left: -12px; width: 600px; padding: 8px; border-radius: var(--r-lg); background: var(--elevated); border: 1px solid var(--border); box-shadow: var(--shadow-lg); z-index: 60; animation: menu-in .16s var(--ease); transform-origin: top left; }
.mega::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
@keyframes menu-in { from { opacity: 0; transform: scale(.98) translateY(-4px); } }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.mega-item { display: flex; gap: 12px; padding: 10px 12px; border-radius: 10px; transition: background-color .12s; }
.mega-item:hover, .mega-item:focus-visible, .mega-item[aria-current] { background: var(--fill-2); }
.mega-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 9px; background: var(--bg-2); border: 1px solid var(--border); color: var(--text-2); }
.mega-icon .i { width: 17px; height: 17px; }
.mega-name { display: block; font-size: 15px; font-weight: 600; }
.mega-desc { display: block; font-size: 13px; line-height: 1.4; color: var(--muted); margin-top: 1px; }
.mega-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; padding: 10px 12px 4px; border-top: 1px solid var(--border); }
.mega-foot a { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 500; color: var(--accent); }
.mega-foot .i { width: 15px; height: 15px; }
.header-tools { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.search-trigger { display: inline-flex; align-items: center; gap: 8px; height: 36px; width: 220px; padding: 0 6px 0 12px; border-radius: 10px; background: var(--fill-2); color: var(--muted); font-size: 15px; transition: background-color .15s; margin-right: 4px; }
.search-trigger:hover { background: var(--fill); }
.search-trigger .i { width: 16px; height: 16px; }
.search-trigger kbd { margin-left: auto; }
.menu-btn { display: none; }

/* ---------- dialogs: shared ---------- */
dialog { padding: 0; border: 0; color: var(--text); background: transparent; max-width: none; max-height: none; }
dialog::backdrop { background: var(--backdrop); animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
@keyframes sheet-in { from { opacity: 0; transform: translateY(12px) scale(.99); } }
@keyframes drawer-in { from { transform: translateX(24px); opacity: 0; } }

/* mobile menu */
.drawer { position: fixed; inset: 0 0 0 auto; width: min(400px, 100%); height: 100dvh; margin: 0; padding: 12px 20px max(24px, env(safe-area-inset-bottom)); background: var(--bg); overflow-y: auto; animation: drawer-in .22s var(--ease); }
.drawer[open] { display: flex; flex-direction: column; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; height: 52px; margin-bottom: 8px; }
.drawer-nav a { display: flex; align-items: center; min-height: 52px; font-size: 20px; font-weight: 600; letter-spacing: -.02em; border-bottom: 1px solid var(--border); }
.drawer-nav a[aria-current] { color: var(--accent); }
.drawer-label { margin: 28px 0 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.drawer-cats { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.drawer-cats a { display: flex; align-items: center; gap: 10px; min-height: 48px; font-size: 16px; font-weight: 500; border-bottom: 1px solid var(--border); }
.drawer-cats a[aria-current] { color: var(--accent); }
.drawer-cats .i { color: var(--muted); }
.drawer-foot { margin-top: auto; padding-top: 28px; }

/* search */
.search-dialog { width: min(640px, calc(100% - 32px)); margin: 12vh auto auto; max-height: 76vh; border-radius: var(--r-lg); background: var(--elevated); border: 1px solid var(--border); box-shadow: var(--shadow-lg); overflow: hidden; animation: sheet-in .2s var(--ease); }
.search-dialog[open] { display: flex; flex-direction: column; }
.search-bar { display: flex; align-items: center; gap: 10px; padding: 0 12px 0 18px; height: 60px; border-bottom: 1px solid var(--border); flex: none; }
.search-bar > .i { width: 20px; height: 20px; color: var(--muted); }
.search-bar input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: none; font-size: 18px; }
.search-bar input::placeholder { color: var(--faint); }
.search-bar input::-webkit-search-cancel-button { display: none; }
.search-body { overflow-y: auto; padding: 8px; min-height: 120px; }
.search-suggest { padding: 8px; }
.search-label { padding: 8px 10px 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.search-suggest .search-label { padding: 4px 0 10px; }
.search-item { display: flex; align-items: center; gap: 14px; padding: 8px 10px; border-radius: 10px; }
.search-item[aria-selected="true"] { background: var(--fill-2); }
.search-thumb { position: relative; width: 56px; height: 42px; flex: none; border-radius: 7px; overflow: hidden; background: var(--bg-3); }
.search-thumb img { width: 100%; height: 100%; object-fit: cover; }
.search-title { display: block; font-size: 15px; font-weight: 600; line-height: 1.35; }
.search-title mark { background: var(--accent-soft); color: inherit; border-radius: 3px; padding: 0 1px; }
.search-meta { display: block; font-size: 13px; color: var(--muted); margin-top: 1px; }
.search-all { display: block; margin: 6px 0 2px; padding: 12px 10px; border-top: 1px solid var(--border); font-size: 15px; font-weight: 500; color: var(--accent); }
.search-empty { padding: 36px 16px; text-align: center; color: var(--muted); }
.search-foot { display: flex; gap: 16px; padding: 10px 18px; border-top: 1px solid var(--border); background: var(--bg-2); font-size: 12px; color: var(--muted); flex: none; }
.search-foot span { display: inline-flex; align-items: center; gap: 4px; }
.empty-title { font-size: 17px; font-weight: 600; color: var(--text); margin-bottom: 4px; }

/* sheets (cookie preferences) */
.sheet { width: min(520px, calc(100% - 32px)); margin: auto; border-radius: var(--r-lg); background: var(--elevated); border: 1px solid var(--border); box-shadow: var(--shadow-lg); animation: sheet-in .2s var(--ease); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px 8px 24px; }
.sheet-head h2 { font-size: 20px; font-weight: 650; letter-spacing: -.02em; }
.sheet-body { padding: 0 24px 8px; }
.sheet-body > .muted { font-size: 15px; margin-bottom: 12px; }
.sheet-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 16px 24px 24px; }
.pref { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; border-top: 1px solid var(--border); }
.pref-title { font-size: 16px; font-weight: 600; }
.pref-text { font-size: 14px; color: var(--muted); margin-top: 2px; }
.pref-note { display: flex; gap: 10px; padding: 14px 16px; margin: 4px 0 8px; border-radius: var(--r); background: var(--bg-2); font-size: 14px; color: var(--muted); }
.pref-note .i { margin-top: 1px; }

/* cookie banner */
.cookie-banner { position: fixed; z-index: 70; left: 0; right: 0; margin-inline: auto; bottom: max(16px, env(safe-area-inset-bottom)); width: min(880px, calc(100% - 32px)); display: flex; align-items: center; gap: 20px; padding: 16px 16px 16px 20px; border-radius: var(--r-lg); background: var(--elevated); border: 1px solid var(--border); box-shadow: var(--shadow-lg); animation: sheet-in .25s var(--ease); }
.cookie-copy { flex: 1; min-width: 0; font-size: 14px; color: var(--muted); }
.cookie-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.cookie-title .i { width: 17px; height: 17px; }
.cookie-copy a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: 8px; flex: none; }
.cookie-actions .btn { min-height: 40px; padding: 0 14px; font-size: 14px; }

/* ---------- media ---------- */
.media { position: relative; width: 100%; overflow: hidden; border-radius: var(--r); background: var(--bg-3); }
.media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; transition: transform .5s var(--ease); }
.media--empty { display: grid; place-items: center; color: var(--border-2); }
.media--empty svg { width: 22%; max-width: 64px; }
.media.is-broken::after { content: 'Image unavailable'; position: absolute; bottom: 8px; left: 10px; font-size: 11px; color: var(--faint); }

/* ---------- cards ---------- */
.card { position: relative; display: flex; flex-direction: column; }
.stretched::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.card-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.cat-label { position: relative; z-index: 2; font-size: 13px; font-weight: 600; color: var(--accent); }
.cat-label:hover { text-decoration: underline; text-underline-offset: 2px; }
.card-title { font-size: 18px; line-height: 1.3; font-weight: 650; letter-spacing: -.015em; text-wrap: pretty; }
.card-title a { transition: color .15s; }
.card:hover .card-title a { color: var(--accent); }
.card-excerpt { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 10px; font-size: 13px; color: var(--faint); }
.meta .sep { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.meta-cat { color: var(--muted); font-weight: 500; }
.card:hover .media img { transform: scale(1.025); }
.card:has(.stretched:focus-visible) { outline: 2px solid var(--focus); outline-offset: 6px; border-radius: var(--r); }
.card .stretched:focus-visible { outline: none; }

.card--standard .card-media { margin-bottom: 14px; }

.card--featured { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: var(--s6); align-items: center; }
.card--featured .media { border-radius: var(--r-lg); }
.card--featured .card-title { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; letter-spacing: -.03em; font-weight: 700; }
.card--featured .card-excerpt { font-size: 17px; margin-top: 12px; -webkit-line-clamp: 4; }
.card--featured .meta { margin-top: 16px; }

.card--row { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: var(--s5); align-items: start; padding: var(--s5) 0; border-bottom: 1px solid var(--border); }
.card--row .card-title { font-size: 20px; }

.card--compact { flex-direction: row; gap: 14px; padding: 14px 0; }
.card--compact .card-body { flex: 1; min-width: 0; }
.card--compact .card-title { font-size: 16px; line-height: 1.35; font-weight: 600; letter-spacing: -.01em; }
.card--compact .meta { margin-top: 6px; }
.card--compact.has-thumb .card-media { width: 96px; flex: none; }
.rank { width: 22px; flex: none; font-size: 20px; font-weight: 700; line-height: 1.25; color: var(--faint); font-variant-numeric: tabular-nums; }
.rank-list > li + li { border-top: 1px solid var(--border); }
.rank-list > li:first-child .rank { color: var(--accent); }

/* ---------- layout blocks ---------- */
.section { margin-top: var(--s8); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 14px; margin-bottom: var(--s5); border-bottom: 1px solid var(--border); }
.grid { display: grid; gap: var(--s6) var(--s5); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: var(--s8) var(--s5); text-align: center; color: var(--muted); border-radius: var(--r-lg); background: var(--bg-2); }
.empty > .i { width: 28px; height: 28px; margin-bottom: 8px; color: var(--faint); }
.empty .btn { margin-top: 16px; }
.empty--inline { grid-column: 1 / -1; padding: var(--s6); }

/* ---------- home ---------- */
.dateline { font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: var(--s4); }
.home-lead { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s7); align-items: start; padding-bottom: var(--s7); border-bottom: 1px solid var(--border); }
.home-lead .card--featured { grid-template-columns: 1fr; gap: var(--s5); }
.lead-aside .section-head { margin-bottom: 0; }
.lead-aside .section-title { font-size: 17px; }
.lead-aside .section-title .i { width: 17px; height: 17px; }
.lead-aside .link-more { font-size: 14px; }

.month-teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: var(--s7); padding: var(--s7); border-radius: var(--r-lg); background: var(--bg-2); }
.mt-title { font-size: 30px; line-height: 1.1; font-weight: 700; letter-spacing: -.03em; margin: 8px 0 8px; }
.mt-copy .muted { margin-bottom: 20px; }
.mt-list li { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--border); }
.mt-list li:first-child { border-top: 0; padding-top: 0; }
.mt-n { font-family: var(--mono); font-size: 14px; color: var(--faint); padding-top: 2px; }
.mt-link { font-size: 17px; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; }
.mt-link:hover { color: var(--accent); }
.mt-list .meta { margin-top: 4px; }

.cat-block { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s6); }
.cat-block.is-single { grid-template-columns: minmax(0, 560px); }
.cat-block .card--standard .card-title { font-size: 22px; }
.cat-block-list > li + li { border-top: 1px solid var(--border); }
.cat-block-list > li:first-child .card--compact { padding-top: 0; }

/* ---------- newsletter ---------- */
.newsletter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s6) var(--s7); align-items: center; padding: var(--s7); border-radius: var(--r-lg); background: var(--bg-2); border: 1px solid var(--border); }
.newsletter--inline { padding: var(--s6); }
.nl-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--bg); border: 1px solid var(--border); margin-bottom: 14px; }
.nl-title { font-size: 26px; line-height: 1.15; font-weight: 700; letter-spacing: -.025em; margin-bottom: 6px; }
.nl-copy p { color: var(--muted); }
.nl-field { display: flex; gap: 8px; }
.nl-field input[type="email"] { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--border-2); background: var(--bg); font-size: 16px; outline: none; transition: border-color .15s, box-shadow .15s; }
.nl-field input[type="email"]::placeholder { color: var(--faint); }
.nl-field input[type="email"]:focus { border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 22%, transparent); }
.nl-field input[aria-invalid="true"] { border-color: var(--danger); }
.nl-field input:disabled { opacity: .6; }
.nl-field .btn { min-height: 48px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.nl-note { margin-top: 10px; font-size: 13px; color: var(--faint); }
.nl-note a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.nl-status { margin-top: 8px; font-size: 14px; font-weight: 500; min-height: 0; }
.nl-status:empty { display: none; }
.nl-status.is-error { color: var(--danger); }
.nl-status.is-success { color: var(--success); }
.nl-status.is-success::before { content: '✓ '; }
.spinner { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.is-loading .spinner { display: inline-block; }
.is-loading .btn-label { opacity: .7; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- page heads ---------- */
.page-head { padding-bottom: var(--s6); }
.page-head .eyebrow { margin-bottom: 10px; }
.page-head .page-lede { margin-top: 12px; }
.page-head .chips { margin-top: var(--s5); }
.page-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); margin-bottom: 18px; }
.page-icon .i { width: 22px; height: 22px; }
.chips-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips-scroll::-webkit-scrollbar { display: none; }

/* ---------- all news feed ---------- */
.feed-day { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--s5); border-top: 1px solid var(--border); }
.feed-date { padding-top: var(--s5); font-size: 14px; font-weight: 600; color: var(--muted); position: sticky; top: calc(var(--header-h) + 8px); align-self: start; }
.feed-items > .card--row:last-child { border-bottom: 0; }
.feed-items > .card--row:first-child { padding-top: var(--s5); }

/* pagination */
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: var(--s6); padding-top: var(--s5); border-top: 1px solid var(--border); }
.page-nums { display: flex; gap: 4px; }
.page-nums a, .page-nums li { display: grid; place-items: center; min-width: 40px; height: 40px; border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.page-nums a:hover { background: var(--fill-2); color: var(--text); }
.page-nums a[aria-current] { background: var(--primary); color: var(--on-primary); }

/* ---------- categories ---------- */
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.cat-tile { display: flex; flex-direction: column; height: 100%; padding: 20px; border-radius: var(--r-lg); border: 1px solid var(--border); transition: border-color .15s, background-color .15s; }
.cat-tile:hover { border-color: var(--border-2); background: var(--bg-2); }
.cat-tile-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--border); margin-bottom: 16px; }
.cat-tile-name { font-size: 18px; font-weight: 650; letter-spacing: -.015em; }
.cat-tile-desc { margin-top: 4px; font-size: 14px; color: var(--muted); }
.cat-tile-count { margin-top: auto; padding-top: 16px; font-size: 13px; color: var(--faint); }

/* markets */
.markets { margin-bottom: var(--s7); }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--up); }
.live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.coin-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.coin { min-height: 132px; padding: 14px 16px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--border); }
.coin-top { display: flex; align-items: center; gap: 10px; }
.coin-top img { width: 28px; height: 28px; border-radius: 50%; }
.coin-name b { display: block; font-size: 15px; line-height: 1.2; }
.coin-name span { display: block; font-size: 12px; color: var(--muted); }
.chg { margin-left: auto; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; padding: 3px 6px; border-radius: 6px; }
.chg.up { color: var(--up); background: color-mix(in srgb, var(--up) 12%, transparent); }
.chg.down { color: var(--down); background: color-mix(in srgb, var(--down) 12%, transparent); }
.coin-price { margin-top: 12px; font-size: 20px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.spark { width: 100%; height: 32px; margin-top: 6px; }
.markets-note { margin-top: 10px; font-size: 13px; color: var(--faint); }
.sk { display: block; height: 10px; border-radius: 5px; background: var(--fill-2); animation: pulse 1.4s infinite; }
.sk-a { width: 50%; } .sk-b { width: 70%; height: 18px; margin-top: 22px; } .sk-c { height: 28px; margin-top: 12px; }

/* ---------- ads ---------- */
.ad { margin: var(--s7) auto 0; max-width: 728px; }
.ad--side { margin: 0; max-width: 300px; }
.ad-label { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 500; color: var(--faint); text-align: center; }
.ad a { display: block; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--border); }
.ad img { width: 100%; height: auto; }

/* ---------- article ---------- */
.preview-bar { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 16px; background: #fff4d6; color: #5b4300; font-size: 14px; }
[data-theme="dark"] .preview-bar { background: #3b2f0a; color: #ffe08a; }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--accent-mark); transform: scaleX(0); transform-origin: left; }
.article-head { max-width: calc(var(--read) + 140px); padding-top: var(--s6); }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.breadcrumb li + li::before { content: '/'; color: var(--border-2); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb [aria-current] { color: var(--faint); max-width: 32ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.article-kicker { display: flex; align-items: center; gap: 10px; margin-top: var(--s6); }
.article-kicker .cat-label { font-size: 15px; }
.importance { font-size: 13px; font-weight: 600; color: var(--muted); }
.importance::before { content: '·'; margin-right: 10px; color: var(--faint); }
.article-title { margin-top: 12px; font-size: clamp(32px, 4.6vw, 52px); line-height: 1.06; letter-spacing: -.035em; font-weight: 700; text-wrap: balance; }
.article-dek { margin-top: 16px; font-size: clamp(18px, 2vw, 21px); line-height: 1.45; color: var(--muted); text-wrap: pretty; }
.article-byline { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 24px; margin-top: var(--s5); padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.byline-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; font-size: 14px; color: var(--muted); }
.byline-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.byline-meta .i { width: 15px; height: 15px; }
.byline-author { color: var(--text); font-weight: 600; }
.share { display: flex; align-items: center; gap: 2px; }
.share-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 38px; height: 38px; padding: 0 10px; border: 0; border-radius: 10px; background: none; color: var(--text-2); font-size: 14px; font-weight: 500; transition: background-color .15s; }
.share-btn:hover { background: var(--fill-2); color: var(--text); }
.share-btn .i { width: 17px; height: 17px; }
.article-figure { max-width: 1040px; margin-top: var(--s6); }
.article-figure .media { border-radius: var(--r-lg); }
.article-figure figcaption { max-width: var(--read); margin: 10px auto 0; font-size: 13px; color: var(--muted); }
.credit { color: var(--faint); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: var(--s8); margin-top: var(--s7); }
.article-main { max-width: var(--read); width: 100%; margin-left: auto; }
.article-aside { padding-top: 4px; }
.aside-block { position: sticky; top: calc(var(--header-h) + 24px); }
.aside-title { font-size: 15px; font-weight: 650; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.article-aside .ad { margin-top: var(--s6); }

.prose { font-size: 19px; line-height: 1.7; color: var(--text-2); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 1.8em; font-size: 26px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; color: var(--text); }
.prose h3 { margin-top: 1.6em; font-size: 21px; line-height: 1.3; font-weight: 650; color: var(--text); }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose strong { color: var(--text); font-weight: 650; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--faint); }
.prose blockquote { padding: 4px 0 4px 20px; border-left: 3px solid var(--accent-mark); font-size: 21px; line-height: 1.5; color: var(--text); }
.prose figure img { width: 100%; border-radius: var(--r); background: var(--bg-3); }
.prose figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }
.prose code { font-family: var(--mono); font-size: .85em; padding: 2px 5px; border-radius: 5px; background: var(--fill-2); }
.article-cta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: var(--s6); padding: 20px 24px; border-radius: var(--r-lg); background: var(--bg-2); }
.article-cta p { font-weight: 600; }
.sources { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--border); }
.sources h2 { font-size: 17px; font-weight: 650; margin-bottom: 12px; }
.sources ol { list-style: decimal; padding-left: 1.3em; font-size: 15px; }
.sources li { padding: 4px 0; color: var(--muted); }
.sources li::marker { color: var(--faint); }
.sources a { display: inline-flex; align-items: center; gap: 4px; color: var(--text); font-weight: 500; }
.sources a:hover { color: var(--accent); }
.sources a .i { width: 14px; height: 14px; color: var(--faint); }
.source-host { margin-left: 8px; font-size: 13px; color: var(--faint); }
.article-end { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: var(--s6); padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.article-end-label { font-size: 15px; font-weight: 600; }

/* ---------- trending ---------- */
.trend-item { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: start; border-bottom: 1px solid var(--border); }
.trend-item:first-child { border-top: 1px solid var(--border); }
.trend-n { padding-top: var(--s5); font-size: 40px; line-height: 1; font-weight: 700; letter-spacing: -.04em; color: var(--border-2); font-variant-numeric: tabular-nums; }
.trend-item:nth-child(-n+3) .trend-n { color: var(--accent); }
.trend-item .card--row { border-bottom: 0; }

/* ---------- News of the Month ---------- */
.month-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 32px; padding: var(--s4) 0; margin-bottom: var(--s5); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.month-picker { display: flex; align-items: center; gap: 6px; }
.month-picker select { height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border-2); background: var(--bg); font-size: 15px; font-weight: 600; }
.month-picker .glide-select__trigger { font-weight: 600; min-width: 200px; justify-content: space-between; }
.month-stats { display: flex; gap: var(--s6); }
.month-stats div { display: flex; flex-direction: column-reverse; }
.month-stats dt { font-size: 13px; color: var(--muted); }
.month-stats dd { font-size: 22px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.month-filter { margin-bottom: var(--s5); }
.month-list { display: flex; flex-direction: column; }
.month-list > li + li { border-top: 1px solid var(--border); }
.month-item summary { display: grid; grid-template-columns: 48px minmax(0, 1fr) 36px; gap: 12px; align-items: center; padding: 18px 4px; cursor: pointer; list-style: none; border-radius: var(--r); transition: background-color .15s; }
.month-item summary::-webkit-details-marker { display: none; }
.month-item summary:hover { background: var(--bg-2); }
.month-rank { font-family: var(--mono); font-size: 16px; color: var(--faint); text-align: center; }
.month-item[open] .month-rank { color: var(--accent); }
.month-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 13px; color: var(--faint); }
.month-title { display: block; margin-top: 4px; font-size: 18px; line-height: 1.35; font-weight: 600; letter-spacing: -.01em; color: var(--text); }
.month-chev { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--fill-2); color: var(--muted); transition: transform .25s var(--ease); }
.month-chev .i { width: 16px; height: 16px; }
.month-item[open] .month-chev { transform: rotate(180deg); }
.imp { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--muted); }
.imp-4, .imp-5 { color: var(--accent); }
.imp-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }
.imp-bars i { width: 3px; border-radius: 1px; background: var(--border-2); }
.imp-bars i:nth-child(1) { height: 4px; } .imp-bars i:nth-child(2) { height: 6px; } .imp-bars i:nth-child(3) { height: 8px; } .imp-bars i:nth-child(4) { height: 10px; } .imp-bars i:nth-child(5) { height: 11px; }
.imp-1 i:nth-child(-n+1), .imp-2 i:nth-child(-n+2), .imp-3 i:nth-child(-n+3), .imp-4 i:nth-child(-n+4), .imp-5 i:nth-child(-n+5) { background: currentColor; }
.month-body { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--s5); padding: 4px 4px 24px 64px; animation: fade .2s ease; }
.month-body:not(:has(.month-media)) { grid-template-columns: minmax(0, 1fr); }
.month-desc { font-size: 16px; color: var(--text-2); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin: 16px 0 20px; padding: 16px; border-radius: var(--r); background: var(--bg-2); }
.facts dt { font-size: 12px; font-weight: 600; color: var(--muted); }
.facts dd { font-size: 15px; font-weight: 500; margin-top: 2px; }
.facts a { display: inline-flex; align-items: center; gap: 3px; color: var(--accent); }
.facts a .i { width: 13px; height: 13px; }

/* ---------- search page ---------- */
.search-page-form { display: flex; align-items: center; gap: 10px; max-width: 640px; padding: 6px 6px 6px 16px; border-radius: 12px; border: 1px solid var(--border-2); background: var(--bg); margin-bottom: var(--s6); }
.search-page-form:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 22%, transparent); }
.search-page-form > .i { color: var(--muted); }
.search-page-form input { flex: 1; min-width: 0; height: 44px; border: 0; outline: none; background: none; font-size: 17px; }
.result-count { margin-bottom: 4px; }
.message .search-page-form { margin: var(--s6) auto var(--s5); text-align: left; }

/* ---------- documents ---------- */
.doc { max-width: var(--read); margin: 0 auto; }
.doc-wide { max-width: var(--wide); }
.doc .eyebrow { margin-bottom: 10px; }
.doc .page-title { margin-bottom: var(--s6); }
.doc .prose { font-size: 18px; }
.doc-action { margin-top: var(--s6); }
.contact-list { margin-top: var(--s6); border-top: 1px solid var(--border); }
.contact-list li { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.contact-label { color: var(--muted); }
.contact-list a { color: var(--accent); font-weight: 500; }
.doc .notice { margin-top: var(--s6); }
.sitemap-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s6); }
.sitemap-cols li a { display: block; padding: 5px 0; color: var(--text-2); }
.sitemap-cols li a:hover { color: var(--accent); }
.sitemap-list { margin-top: var(--s4); }
.sitemap-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.sitemap-list a { font-weight: 500; }
.sitemap-list a:hover { color: var(--accent); }
.sitemap-list span { flex: none; font-size: 14px; color: var(--faint); }

.message { max-width: 560px; margin: var(--s6) auto; text-align: center; }
.message .page-title { font-size: clamp(28px, 4vw, 40px); margin-bottom: 12px; }
.message .page-lede { margin: 0 auto var(--s5); }
.message .eyebrow { margin-bottom: 8px; }
.message-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: color-mix(in srgb, var(--success) 12%, transparent); color: var(--success); margin-bottom: var(--s5); }
.message-icon.is-error { background: var(--fill-2); color: var(--muted); }
.message-icon .i { width: 26px; height: 26px; }

/* ---------- footer ---------- */
.site-footer { margin-top: var(--s8); padding-top: var(--s7); background: var(--bg-2); border-top: 1px solid var(--border); font-size: 15px; }
main:has(.page-end) + .site-footer, main:has(> .page-pad) + .site-footer { margin-top: 0; }
.footer-main { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: var(--s6); padding-bottom: var(--s7); }
.footer-brand p { margin-top: 14px; max-width: 300px; color: var(--muted); font-size: 15px; }
.socials { display: flex; gap: 8px; margin-top: 18px; }
.social { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); color: var(--text-2); transition: background-color .15s; }
.social:hover { background: var(--fill-2); }
.footer-heading { font-size: 14px; font-weight: 650; color: var(--text); margin-bottom: 12px; }
.footer-col li a { display: inline-block; padding: 5px 0; color: var(--muted); transition: color .15s; }
.footer-col li a:hover { color: var(--text); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding: var(--s5) 0 max(var(--s5), env(safe-area-inset-bottom)); border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.theme-switch { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--bg); font-size: 13px; font-weight: 500; color: var(--text-2); }
.theme-switch .i { width: 15px; height: 15px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-trigger { width: auto; }
  .search-trigger-label, .search-trigger kbd { display: none; }
  .footer-main { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .coin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: minmax(0, 1fr) 240px; gap: var(--s7); }
}
@media (max-width: 900px) {
  :root { --header-h: 56px; }
  .main-nav { display: none; }
  .menu-btn { display: inline-grid; }
  .search-trigger { background: none; padding: 0; width: 40px; justify-content: center; margin: 0; }
  .search-trigger:hover { background: var(--fill-2); }
  .home-lead { grid-template-columns: 1fr; gap: var(--s6); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .month-teaser, .newsletter { grid-template-columns: 1fr; gap: var(--s5); padding: var(--s6); }
  .cat-block { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-main { margin: 0 auto; }
  .aside-block { position: static; }
  .feed-day { grid-template-columns: 1fr; gap: 0; }
  .feed-date { position: static; padding-bottom: 0; }
  .sitemap-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cookie-banner { flex-direction: column; align-items: stretch; gap: 14px; }
  .cookie-actions .btn { flex: 1; }
  .month-body { grid-template-columns: 1fr; padding-left: 4px; }
  .month-media { max-width: 420px; }
}
@media (max-width: 600px) {
  .container { width: min(var(--wide), 100% - 32px); }
  .page-pad { padding-top: var(--s5); }
  .section { margin-top: var(--s7); }
  .grid-4, .grid-3 { grid-template-columns: 1fr; gap: var(--s6); }
  .card--featured .card-title { font-size: 28px; }
  .card--row { grid-template-columns: minmax(0, 1fr) 96px; gap: var(--s4); padding: var(--s4) 0; }
  .card--row .card-title { font-size: 17px; }
  .card--row .card-excerpt { -webkit-line-clamp: 2; font-size: 14px; }
  .card--row .media { aspect-ratio: 1 / 1 !important; }
  .card--compact.has-thumb .card-media { width: 80px; }
  .month-teaser, .newsletter { padding: var(--s5); }
  .nl-field { flex-direction: column; }
  .nl-field .btn { width: 100%; }
  .trend-item { grid-template-columns: 40px minmax(0, 1fr); }
  .trend-n { font-size: 28px; padding-top: var(--s4); }
  .month-item summary { grid-template-columns: 32px minmax(0, 1fr) 32px; gap: 8px; padding: 14px 0; }
  .month-rank { font-size: 14px; }
  .month-title { font-size: 16px; }
  .facts { grid-template-columns: 1fr; }
  .month-stats { gap: var(--s5); }
  .pagination .btn { padding: 0 12px; }
  .page-nums { display: none; }
  .article-byline { flex-direction: column; align-items: flex-start; }
  .share { margin-left: -10px; flex-wrap: wrap; }
  .article-figure { width: 100%; }
  .article-figure .media { border-radius: 0; }
  .article-figure figcaption { padding: 0 16px; }
  .prose { font-size: 18px; }
  .sitemap-cols { grid-template-columns: 1fr 1fr; }
  .footer-main { gap: var(--s6) var(--s5); }
  .search-dialog { width: 100%; height: 100dvh; max-height: none; margin: 0; border-radius: 0; border: 0; }
  .search-foot { display: none; }
  .search-bar { height: 56px; }
  .sheet { width: 100%; margin: auto 0 0; border-radius: var(--r-lg) var(--r-lg) 0 0; max-height: 90dvh; overflow-y: auto; }
  .sheet-foot .btn { flex: 1 1 100%; }
  .cookie-banner { bottom: 0; width: 100%; border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 16px 16px max(16px, env(safe-area-inset-bottom)); }
  .cookie-actions { flex-wrap: wrap; }
  .cookie-actions .btn { flex: 1 1 40%; }
  .cookie-actions [data-cookie-prefs] { order: 3; flex-basis: 100%; }
  .breadcrumb [aria-current] { display: none; }
  .breadcrumb li:nth-last-child(2)::after { content: ''; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* image credit overlaid in the bottom-right corner of the lead image */
.figure-frame { position: relative; }
.img-credit { position: absolute; right: 12px; bottom: 12px; z-index: 1; max-width: calc(100% - 24px); padding: 4px 8px; border-radius: 6px; background: rgba(0, 0, 0, .62); color: #fff; font-size: 12px; font-weight: 500; line-height: 1.3; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); pointer-events: none; }
@media (max-width: 600px) { .img-credit { right: 8px; bottom: 8px; font-size: 11px; padding: 3px 6px; } }

/* publisher details on Legal / Privacy */
.publisher-box { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--border); }
.publisher-box h2 { font-size: 20px; font-weight: 650; letter-spacing: -.015em; }
.publisher-box .contact-list { margin-top: var(--s4); }
.publisher-box .notice { margin-top: var(--s4); }
.publisher-box .notice a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.prose h2 + p > em:only-child, .prose > p:first-child > em:only-child { color: var(--muted); }

/* ---------- cover for articles without an image ---------- */
.media--cover {
  --c-bg: hsl(var(--hue) 70% 96%);
  --c-dot: hsl(var(--hue) 45% 80%);
  --c-ink: hsl(var(--hue) 55% 38%);
  --c-glyph: hsl(var(--hue) 60% 50% / .16);
  container-type: inline-size;
  background-color: var(--c-bg);
  background-image: radial-gradient(var(--c-dot) 1px, transparent 1.2px);
  background-size: 14px 14px;
  background-position: 7px 7px;
  color: var(--c-ink);
  box-shadow: inset 0 0 0 1px hsl(var(--hue) 50% 50% / .08);
}
[data-theme="dark"] .media--cover {
  --c-bg: hsl(var(--hue) 30% 15%);
  --c-dot: hsl(var(--hue) 30% 27%);
  --c-ink: hsl(var(--hue) 70% 72%);
  --c-glyph: hsl(var(--hue) 75% 65% / .22);
}
.cover-cat { position: absolute; left: 16px; top: 16px; z-index: 1; display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px 6px 9px; border-radius: 999px; background: color-mix(in srgb, var(--bg) 82%, transparent); font-size: 13px; font-weight: 600; letter-spacing: -.005em; }
.cover-cat .i { width: 15px; height: 15px; }
.cover-glyph { position: absolute; right: -6%; bottom: -14%; width: 58%; aspect-ratio: 1; color: var(--c-glyph); transform: rotate(-8deg); transition: transform .5s var(--ease); }
.cover-glyph .i { width: 100%; height: 100%; stroke-width: 1.25; }
.cover-brand { position: absolute; left: 16px; bottom: 14px; width: 26px; height: 26px; opacity: .45; }
.cover-brand svg { width: 100%; height: 100%; }
.card:hover .cover-glyph { transform: rotate(-4deg) scale(1.04); }
@container (max-width: 180px) {
  .cover-cat, .cover-brand { display: none; }
  .cover-glyph { inset: 0; width: 100%; transform: none; display: grid; place-items: center; color: var(--c-ink); }
  .cover-glyph .i { width: 42%; height: 42%; stroke-width: 1.6; }
}
@container (min-width: 520px) {
  .cover-cat { left: 22px; top: 22px; font-size: 14px; }
  .cover-brand { left: 22px; bottom: 20px; width: 30px; height: 30px; }
}

/* ---------- footer: language + theme ---------- */
.footer-tools { display: flex; align-items: center; gap: 8px; }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.lang-switch > .i { width: 15px; height: 15px; }
.lang-switch .glide-select__trigger { height: 34px; padding: 0 10px 0 12px; border-radius: 999px; border-color: var(--border-2); background: var(--bg); font-size: 13px; color: var(--text-2); }
html.i18n-pending body { visibility: hidden; }

/* ===== Crypto press wire (headlines from other publications) ===== */
.wire-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s6, 32px); list-style: none; margin: 0; padding: 0; }
.wire--compact .wire-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wire-item { border-bottom: 1px solid var(--border); }
.wire-link { display: flex; flex-direction: column; gap: 6px; padding: 14px 0; color: inherit; text-decoration: none; }
.wire-meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--faint); }
.wire-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.wire-src { font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .04em; }
.wire-title { font-weight: 600; font-size: 16px; line-height: 1.35; letter-spacing: -.01em; }
.wire-title svg { width: 13px; height: 13px; margin-left: 5px; vertical-align: -1px; opacity: .45; transition: opacity .15s; }
.wire-link:hover .wire-title, .wire-link:focus-visible .wire-title { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.wire-link:hover .wire-title svg { opacity: .9; }
.wire-sum { font-size: 14px; line-height: 1.5; color: var(--muted, var(--faint)); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wire-note { margin-top: 12px; font-size: 13px; color: var(--faint); }
@media (max-width: 960px) { .wire--compact .wire-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .wire-list, .wire--compact .wire-list { grid-template-columns: 1fr; } }
