/*
Theme Name: Must Read Digest
Theme URI: https://mustreaddigest.com/
Author: Must Read Digest
Description: Multi-industry editorial blog theme. Ten colour-coded industries, live headline ticker, magazine homepage, filterable search. Built to be edited in plain language with Claude.
Version: 1.0.4
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: mustreaddigest
Tags: blog, news, magazine, custom-colors, featured-images, translation-ready
*/

/* ============ RESET / BASE ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #f6f7f9;
  color: #1a1f26;
  font: 400 16px/1.6 'IBM Plex Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: #0e1116; }
h1, h2, h3, h4 { font-family: 'Space Grotesk', system-ui, sans-serif; margin: 0; letter-spacing: -.025em; color: #0e1116; }
p { margin: 0; text-wrap: pretty; }
button { font: inherit; cursor: pointer; }
input[type="text"], input[type="search"], input[type="email"] { font: inherit; }
:focus-visible { outline: 2px solid #0e1116; outline-offset: 2px; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.mono { font: 500 10px/1 ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; color: #98a0aa; }
.eyebrow { font: 600 10px/1 'IBM Plex Sans', sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #98a0aa; }
.nowrap { white-space: nowrap; }

/* ============ MOTION ============ */
@keyframes mrdRise { from { opacity: 0; transform: translateY(20px) } to { opacity: 1; transform: none } }
@keyframes mrdFade { from { opacity: 0 } to { opacity: 1 } }
@keyframes mrdMarquee { from { transform: translateX(0) } to { transform: translateX(-50%) } }
@keyframes mrdPulse { 0%, 100% { opacity: .3; transform: scale(1) } 50% { opacity: 1; transform: scale(1.6) } }
@keyframes mrdSheen { from { background-position: -220% 0 } to { background-position: 220% 0 } }
@keyframes mrdGrow { from { transform: scaleX(0) } to { transform: scaleX(1) } }
@keyframes mrdFloat { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-9px) } }
.rise { animation: mrdRise .6s cubic-bezier(.2,.7,.2,1) both; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ============ HEADER ============ */
.site-header { background: #fff; border-bottom: 1px solid #e8eaee; position: sticky; top: 0; z-index: 40; }
.header-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 32px 14px; max-width: 1280px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand-mark { height: 73px; width: auto; display: block; flex: none; }
.brand-fold { display: block; flex: none; max-width: 414px; height: auto; }
.site-footer .brand-fold { margin-bottom: 14px; }
.footer-brand { flex: 0 0 auto; max-width: 260px; }
.brand-text { white-space: nowrap; font: 700 19px/1 'Space Grotesk', sans-serif; letter-spacing: -.03em; color: #0e1116; }
.brand-text span { color: #98a0aa; }

.header-search { flex: 1; max-width: 420px; }
.search-field { display: flex; align-items: center; gap: 9px; background: #f2f4f7; border: 1px solid #e8eaee; border-radius: 11px; padding: 10px 14px; transition: background .2s, border-color .2s; }
.search-field:focus-within, .search-field:hover { background: #fff; border-color: #c9ced6; }
.search-field .ring { width: 12px; height: 12px; flex: none; border: 1.6px solid #98a0aa; border-radius: 50%; }
.search-field input { flex: 1; min-width: 0; border: 0; background: transparent; font: 400 13px/1 'IBM Plex Sans', sans-serif; color: #0e1116; }
.search-field input:focus { outline: none; }
.search-field kbd { flex: none; font: 500 11px/1 ui-monospace, monospace; color: #b6bcc4; }

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.btn { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; border-radius: 11px; font: 600 13px/1 'IBM Plex Sans', sans-serif; padding: 11px 18px; transition: transform .2s, box-shadow .2s, border-color .2s, color .2s; border: 0; }
.btn-dark { background: #0e1116; color: #fff; }
.btn-dark:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(14,17,22,.28); }
.btn-ghost { background: transparent; border: 1px solid #dde1e6; color: #3b424a; }
.btn-ghost:hover { border-color: #0e1116; color: #0e1116; }
.btn-big { padding: 14px 22px; font-size: 14px; }
.btn-light { background: #fff; border: 1px solid #d7dbe1; color: #0e1116; }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(14,17,22,.1); }

.nav-bar { max-width: 1280px; margin: 0 auto; padding: 0 26px; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav-bar::-webkit-scrollbar { display: none; }
.nav-link { white-space: nowrap; flex: none; padding: 12px; margin-bottom: -1px; border-bottom: 2px solid transparent; font: 500 13px/1 'IBM Plex Sans', sans-serif; color: #4b525a; transition: color .18s, border-color .18s; }
.nav-link:hover { color: #0e1116; border-bottom-color: var(--accent, #0e1116); }
.nav-link.is-active { color: #0e1116; border-bottom-color: var(--accent, #0e1116); }

.nav-toggle { display: none; }

/* ============ TICKER ============ */
.ticker { background: #0e1116; color: #fff; display: flex; align-items: center; overflow: hidden; }
.ticker-label { flex: none; display: flex; align-items: center; gap: 8px; padding: 11px 18px; background: oklch(0.72 0.16 62); color: #0e1116; font: 700 10px/1 'IBM Plex Sans', sans-serif; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.ticker-label i { width: 6px; height: 6px; border-radius: 50%; background: #0e1116; animation: mrdPulse 1.8s ease-in-out infinite; }
.ticker-track { flex: 1; overflow: hidden; }
.ticker-track > div { display: flex; width: max-content; animation: mrdMarquee 34s linear infinite; }
.ticker-item { display: flex; align-items: center; gap: 12px; padding: 0 22px; font: 500 13px/1 'IBM Plex Sans', sans-serif; color: #cfd4da; white-space: nowrap; }
.ticker-item i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.ticker:hover .ticker-track > div { animation-play-state: paused; }

/* ============ IMAGE PLACEHOLDER ============ */
.ph { position: relative; display: block; overflow: hidden; background: repeating-linear-gradient(135deg, #e6e9ee 0 7px, #eff1f4 7px 14px); }
.ph > .mono { position: absolute; bottom: 9px; left: 11px; }
.ph img { width: 100%; height: 100%; object-fit: cover; }

/* ============ HERO ============ */
.hero-band { background: #fff; border-bottom: 1px solid #e8eaee; }
.hero { display: grid; grid-template-columns: 1.04fr .96fr; gap: 48px; align-items: center; padding: 46px 32px 44px; }
.hero-copy { animation: mrdRise .7s cubic-bezier(.2,.7,.2,1) both; }
.hero-kicker { display: flex; align-items: center; gap: 12px; }
.hero-kicker .cat { white-space: nowrap; font: 700 10px/1 'IBM Plex Sans', sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.hero-kicker .rule { width: 26px; height: 1px; flex: none; background: #dfe3e8; }
.hero-kicker .meta { white-space: nowrap; font: 400 11px/1 'IBM Plex Sans', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #98a0aa; }
.hero h1 { margin: 18px 0 0; font: 700 58px/1.02 'Space Grotesk', sans-serif; letter-spacing: -.04em; max-width: 20ch; text-wrap: balance; }
.accent-rule { width: 64px; height: 3px; background: var(--accent); margin-top: 24px; transform-origin: left; animation: mrdGrow .7s .4s cubic-bezier(.2,.7,.2,1) both; }
.hero p.dek { margin-top: 20px; font-size: 17px; line-height: 1.65; color: #4f565e; max-width: 56ch; }
.hero-cta { display: flex; align-items: center; gap: 24px; margin-top: 30px; flex-wrap: wrap; }
.byline { display: flex; align-items: center; gap: 10px; }
.byline .avatar { width: 34px; height: 34px; flex: none; border-radius: 50%; overflow: hidden; background: repeating-linear-gradient(135deg, #e4e7ec 0 5px, #eef0f4 5px 10px); }
.byline b { display: block; white-space: nowrap; font: 600 13px/1 'IBM Plex Sans', sans-serif; color: #0e1116; }
.byline span { display: block; margin-top: 5px; white-space: nowrap; font: 400 12px/1 'IBM Plex Sans', sans-serif; color: #98a0aa; }
.hero-media { position: relative; animation: mrdFade .9s .15s ease both; }
.hero-media .ph { width: 100%; aspect-ratio: 4/3.4; border-radius: 20px; }
.stat-card { position: absolute; left: -26px; bottom: 34px; background: #fff; border: 1px solid #e8eaee; border-radius: 16px; padding: 18px 20px; box-shadow: 0 18px 40px rgba(14,17,22,.12); animation: mrdFloat 6s ease-in-out infinite; }
.stat-card .label { white-space: nowrap; font: 400 10px/1 'IBM Plex Sans', sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #98a0aa; }
.stat-card .value { margin-top: 9px; font: 700 30px/1 'Space Grotesk', sans-serif; letter-spacing: -.03em; color: var(--accent); }
.stat-card .note { margin-top: 8px; white-space: nowrap; font: 400 12px/1 'IBM Plex Sans', sans-serif; color: #6c737b; }

/* ============ SECTION HEADS ============ */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.section-head h2 { white-space: nowrap; font: 700 22px/1 'Space Grotesk', sans-serif; }
.section-head .aside { white-space: nowrap; font: 400 13px/1 'IBM Plex Sans', sans-serif; color: #8b939c; }
.section-head a.more { display: flex; align-items: center; gap: 7px; white-space: nowrap; font: 600 13px/1 'IBM Plex Sans', sans-serif; color: #4b525a; transition: gap .2s, color .2s; }
.section-head a.more:hover { color: #0e1116; gap: 12px; }

/* ============ INDUSTRY GRID ============ */
.pulse-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; padding: 20px 32px 34px; }
.pulse-tile { background: #fff; border: 1px solid #e8eaee; border-top: 3px solid #e8eaee; border-radius: 14px; padding: 15px; transition: transform .22s cubic-bezier(.2,.7,.2,1), box-shadow .22s, border-color .22s; }
.pulse-tile:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(14,17,22,.09); border-color: #d7dbe1; border-top-color: var(--accent); }
.pulse-tile .name { display: flex; align-items: center; gap: 8px; }
.pulse-tile .name i { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--accent); }
.pulse-tile .name b { white-space: nowrap; font: 600 14px/1 'Space Grotesk', sans-serif; letter-spacing: -.01em; color: #0e1116; }
.pulse-tile .count { display: block; margin-top: 11px; white-space: nowrap; font: 400 12px/1 'IBM Plex Sans', sans-serif; color: #8b939c; }

/* ============ CARD GRID ============ */
.card-band { background: #fff; border-top: 1px solid #e8eaee; border-bottom: 1px solid #e8eaee; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 22px; }
.card { position: relative; display: block; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid #e8eaee; transition: transform .24s cubic-bezier(.2,.7,.2,1), box-shadow .24s, border-color .24s; }
.card:hover { transform: translateY(-5px); box-shadow: 0 18px 36px rgba(14,17,22,.1); border-color: #d7dbe1; }
.card .ph { width: 100%; aspect-ratio: 16/10; }
.card .chip { position: absolute; top: 11px; left: 11px; display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,.94); padding: 6px 11px; border-radius: 999px; white-space: nowrap; font: 600 10px/1 'IBM Plex Sans', sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.card .chip i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.card .body { padding: 17px 18px 19px; border-top: 2px solid var(--accent); }
.hero h1 a, .card h3 a { color: inherit; }
.card h3 { font: 600 19px/1.24 'Space Grotesk', sans-serif; letter-spacing: -.02em; }
.card p { margin-top: 10px; font-size: 14px; line-height: 1.55; color: #5a6169; }
.card .meta { display: block; margin-top: 14px; font: 400 12px/1 'IBM Plex Sans', sans-serif; color: #98a0aa; }

/* ============ ROW CARD (category + search lists) ============ */
.row-card { display: flex; gap: 20px; background: #fff; border: 1px solid #e8eaee; border-radius: 16px; padding: 16px; border-left: 3px solid var(--accent); transition: transform .22s cubic-bezier(.2,.7,.2,1), box-shadow .22s, border-color .22s; }
.row-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(14,17,22,.09); border-color: #d7dbe1; border-left-color: var(--accent); }
.row-card .ph { width: 196px; height: 132px; flex: none; border-radius: 11px; }
.row-card .body { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.row-card .tags { display: flex; align-items: center; gap: 10px; }
.row-card .cat { white-space: nowrap; font: 600 10px/1 'IBM Plex Sans', sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.badge { white-space: nowrap; padding: 4px 9px; border-radius: 6px; background: #f2f4f7; font: 600 10px/1 'IBM Plex Sans', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #6b737d; }
.row-card h3 { margin-top: 10px; font: 600 22px/1.22 'Space Grotesk', sans-serif; letter-spacing: -.022em; }
.row-card p { margin-top: 9px; font-size: 14px; line-height: 1.55; color: #5a6169; }
.row-card .meta { margin-top: 12px; font: 400 12px/1 'IBM Plex Sans', sans-serif; color: #98a0aa; }

/* ============ PANELS / SIDEBAR ============ */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; padding: 24px 32px; }
.split { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; padding: 34px 32px 0; }
.panel { background: #fff; border: 1px solid #e8eaee; border-radius: 16px; padding: 20px; }
.panel.lg { border-radius: 18px; padding: 24px 26px; }
.panel h3 { white-space: nowrap; font: 700 13px/1 'Space Grotesk', sans-serif; letter-spacing: .05em; text-transform: uppercase; }
.panel.lg h3 { font-size: 15px; }
.rank-list { display: flex; flex-direction: column; margin-top: 6px; }
.rank-item { display: flex; gap: 16px; align-items: center; padding: 15px 0; border-bottom: 1px solid #f0f2f5; transition: padding-left .2s; }
.rank-item:last-child { border-bottom: 0; }
.rank-item:hover { padding-left: 6px; }
.rank-item .n { flex: none; min-width: 26px; font: 700 20px/1 'Space Grotesk', sans-serif; color: var(--accent); }
.rank-item .sq { width: 22px; height: 22px; flex: none; border-radius: 7px; background: var(--accent); color: #fff; font: 700 11px/22px 'IBM Plex Sans', sans-serif; text-align: center; }
.rank-item .cat { display: block; white-space: nowrap; font: 600 9px/1 'IBM Plex Sans', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #98a0aa; }
.rank-item .t { display: block; margin-top: 7px; font: 500 15px/1.35 'IBM Plex Sans', sans-serif; color: #1a1f26; }
.panel .rank-item .t { font-size: 14px; line-height: 1.38; }
.pick-list { display: flex; flex-direction: column; gap: 16px; margin-top: 18px; }
.pick { display: flex; gap: 14px; align-items: center; transition: transform .2s; }
.pick:hover { transform: translateX(4px); }
.pick .ph { width: 62px; height: 62px; flex: none; border-radius: 12px; }
.pick .tag { display: block; white-space: nowrap; font: 600 10px/1 'IBM Plex Sans', sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.pick .t { display: block; margin-top: 7px; font: 500 14px/1.4 'IBM Plex Sans', sans-serif; color: #1a1f26; }
.chip-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip-link { display: flex; align-items: center; gap: 7px; padding: 8px 11px; border-radius: 9px; white-space: nowrap; background: #f6f7f9; font: 500 12px/1 'IBM Plex Sans', sans-serif; color: #3b424a; transition: background .18s; }
.chip-link:hover { background: #eef0f4; }
.chip-link i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ============ CATEGORY MASTHEAD ============ */
.masthead { background: #fff; border-bottom: 1px solid #e8eaee; }
.masthead-inner { padding: 30px 32px 26px; animation: mrdRise .6s cubic-bezier(.2,.7,.2,1) both; }
.crumbs { font: 400 12px/1 'IBM Plex Sans', sans-serif; color: #a8afb7; }
.crumbs span { color: #4b525a; }
.crumbs em { font-style: normal; color: #cdd2d8; padding: 0 4px; }
.masthead-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-top: 14px; flex-wrap: wrap; }
.masthead-title { display: flex; align-items: center; gap: 12px; }
.masthead-title i { width: 12px; height: 12px; flex: none; border-radius: 50%; background: var(--accent); }
.masthead-title h1 { font: 700 42px/1 'Space Grotesk', sans-serif; letter-spacing: -.035em; }
.masthead p { margin-top: 18px; font-size: 16px; line-height: 1.65; color: #4f565e; max-width: 60ch; }
.stat-row { display: flex; gap: 14px; flex: none; padding-bottom: 6px; }
.stat { background: #f6f7f9; border: 1px solid #e8eaee; border-radius: 12px; padding: 14px 18px; min-width: 96px; }
.stat b { display: block; font: 700 24px/1 'Space Grotesk', sans-serif; letter-spacing: -.03em; color: #0e1116; }
.stat span { display: block; margin-top: 6px; white-space: nowrap; font: 400 11px/1 'IBM Plex Sans', sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #98a0aa; }
.topic-row { display: flex; gap: 16px; margin-top: 24px; align-items: center; justify-content: space-between; }
.topics { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.topic { white-space: nowrap; padding: 9px 15px; border-radius: 999px; background: #f2f4f7; border: 1px solid #e8eaee; color: #3b424a; font: 500 12px/1 'IBM Plex Sans', sans-serif; transition: background .18s, border-color .18s; }
.topic:hover { background: #fff; border-color: var(--accent); }
.sort-note { flex: none; white-space: nowrap; font: 400 12px/1 'IBM Plex Sans', sans-serif; color: #98a0aa; }
.sort-note b { color: #0e1116; font-weight: 600; }

/* ============ SEARCH / FILTERS ============ */
.search-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; padding: 26px 32px 36px; }
.filters { display: flex; flex-direction: column; gap: 14px; }
.filters-head { display: flex; align-items: baseline; justify-content: space-between; }
.filters-head b { white-space: nowrap; font: 700 14px/1 'Space Grotesk', sans-serif; letter-spacing: -.01em; color: #0e1116; }
.filters-head a { white-space: nowrap; font: 500 12px/1 'IBM Plex Sans', sans-serif; color: #98a0aa; }
.filter-card { background: #fff; border: 1px solid #e8eaee; border-radius: 14px; padding: 16px; }
.filter-list { display: flex; flex-direction: column; gap: 2px; margin-top: 12px; }
.filter-row { display: flex; align-items: center; gap: 10px; padding: 8px; margin: 0 -8px; border-radius: 8px; transition: background .16s; cursor: pointer; }
.filter-row:hover { background: #f4f6f8; }
.filter-row input { position: absolute; opacity: 0; pointer-events: none; }
.filter-row .box { width: 15px; height: 15px; flex: none; border-radius: 4px; border: 1.5px solid #cdd2d8; background: #fff; }
.filter-row input:checked + .box { background: #0e1116; border-color: #0e1116; }
.filter-row .dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--accent); }
.filter-row .label { white-space: nowrap; font: 400 13px/1 'IBM Plex Sans', sans-serif; color: #3b424a; }
.filter-row .n { margin-left: auto; font: 400 11px/1 ui-monospace, monospace; color: #b0b7bf; }
.filter-actions { margin-top: 14px; }
.filter-actions .btn { width: 100%; justify-content: center; }
.results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.results-head h1 { font: 700 26px/1 'Space Grotesk', sans-serif; letter-spacing: -.03em; }
.results-head p { margin-top: 10px; font: 400 13px/1 'IBM Plex Sans', sans-serif; color: #8b939c; }
.result-list { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.active-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.active-chip { display: flex; align-items: center; gap: 8px; white-space: nowrap; padding: 8px 12px; border-radius: 999px; background: #fff; border: 1px solid #d7dbe1; font: 500 12px/1 'IBM Plex Sans', sans-serif; color: #3b424a; }
.active-chip:hover { border-color: #0e1116; }
.active-chip em { font-style: normal; color: #a8afb7; }
.empty { background: #fff; border: 1px dashed #d7dbe1; border-radius: 16px; padding: 44px; text-align: center; }
.empty h2 { font: 700 20px/1.3 'Space Grotesk', sans-serif; }
.empty p { margin: 10px 0 20px; font-size: 14px; color: #6b737d; }

/* ============ PAGINATION ============ */
.mrd-pagination { display: flex; justify-content: center; padding: 26px 0 4px; }
.mrd-pagination .nav-links { display: flex; gap: 6px; align-items: center; }
.mrd-pagination .page-numbers { min-width: 36px; height: 36px; padding: 0 10px; border-radius: 10px; background: #fff; border: 1px solid #e8eaee; display: flex; align-items: center; justify-content: center; font: 500 13px/1 'IBM Plex Sans', sans-serif; color: #3b424a; }
.mrd-pagination .page-numbers.current { background: #0e1116; border-color: #0e1116; color: #fff; font-weight: 600; }
.mrd-pagination .page-numbers.dots { border: 0; background: transparent; color: #b0b7bf; }
.mrd-pagination a.page-numbers:hover { border-color: #0e1116; color: #0e1116; }

/* ============ NEWSLETTER ============ */
.newsletter-wrap { padding: 26px 32px 40px; }
.newsletter { position: relative; overflow: hidden; background: #0e1116; border-radius: 20px; padding: 40px 42px; display: flex; justify-content: space-between; align-items: center; gap: 44px; flex-wrap: wrap; }
.newsletter::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 40%, rgba(255,255,255,.07) 50%, transparent 60%); background-size: 220% 100%; animation: mrdSheen 7s linear infinite; pointer-events: none; }
.newsletter .when { display: flex; align-items: center; gap: 9px; }
.newsletter .when i { width: 6px; height: 6px; flex: none; border-radius: 50%; background: oklch(0.72 0.16 62); animation: mrdPulse 2.4s ease-in-out infinite; }
.newsletter .when span { white-space: nowrap; font: 600 10px/1 'IBM Plex Sans', sans-serif; letter-spacing: .2em; text-transform: uppercase; color: oklch(0.72 0.16 62); }
.newsletter h3 { margin-top: 14px; font: 700 32px/1.1 'Space Grotesk', sans-serif; letter-spacing: -.03em; color: #fff; max-width: 22ch; text-wrap: balance; }
.newsletter p { margin-top: 12px; font-size: 15px; line-height: 1.55; color: #9aa2ac; max-width: 48ch; }
.newsletter form, .newsletter .form { flex: none; display: flex; flex-direction: column; gap: 10px; width: 320px; position: relative; z-index: 1; }
.newsletter input[type="email"] { background: #191d24; border: 1px solid #2a3038; border-radius: 11px; padding: 14px 16px; font: 400 14px/1 'IBM Plex Sans', sans-serif; color: #fff; }
.newsletter button { background: #fff; color: #0e1116; padding: 14px; border-radius: 11px; font: 600 14px/1 'IBM Plex Sans', sans-serif; border: 0; transition: transform .2s; }
.newsletter button:hover { transform: translateY(-2px); }
.newsletter small { font: 400 11px/1.5 'IBM Plex Sans', sans-serif; color: #6b737d; }
.newsletter.compact { border-radius: 16px; padding: 22px; display: block; }
.newsletter.compact h3 { font-size: 21px; line-height: 1.18; margin-top: 12px; }
.newsletter.compact .form { width: auto; margin-top: 14px; }

/* ============ SINGLE ARTICLE ============ */
.article-head { background: #fff; border-bottom: 1px solid #e8eaee; }
.article-head-inner { padding: 40px 32px 36px; max-width: 820px; margin: 0 auto; animation: mrdRise .6s cubic-bezier(.2,.7,.2,1) both; }
.article-head h1 { margin-top: 18px; font: 700 46px/1.06 'Space Grotesk', sans-serif; letter-spacing: -.035em; text-wrap: balance; }
.article-head .dek { margin-top: 18px; font-size: 18px; line-height: 1.6; color: #4f565e; }
.article-byline { display: flex; align-items: center; gap: 16px; margin-top: 26px; flex-wrap: wrap; }
.article-hero { max-width: 1080px; margin: -18px auto 0; padding: 0 32px; }
.article-hero .ph { border-radius: 18px; aspect-ratio: 21/9; }
.entry-layout { max-width: 1280px; margin: 0 auto; padding: 34px 32px 20px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.entry-content { max-width: 68ch; font-size: 17px; line-height: 1.75; color: #2b3138; }
.entry-content > * + * { margin-top: 22px; }
.entry-content h2 { margin-top: 40px; font-size: 28px; line-height: 1.2; }
.entry-content h3 { margin-top: 32px; font-size: 21px; line-height: 1.3; }
.entry-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-left: 22px; }
.entry-content li + li { margin-top: 8px; }
.entry-content blockquote { margin: 32px 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent); font: 500 21px/1.45 'Space Grotesk', sans-serif; color: #0e1116; }
.entry-content img, .entry-content figure { border-radius: 14px; overflow: hidden; }
.entry-content figcaption { margin-top: 9px; font: 400 12px/1.5 'IBM Plex Sans', sans-serif; color: #98a0aa; }
.entry-content code { font: 500 14px/1 ui-monospace, monospace; background: #f2f4f7; padding: 3px 6px; border-radius: 5px; }
.entry-content pre { background: #0e1116; color: #e8eaee; padding: 18px; border-radius: 12px; overflow: auto; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry-content th, .entry-content td { text-align: left; padding: 11px 12px; border-bottom: 1px solid #e8eaee; }
.entry-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 34px; }
.related { background: #fff; border-top: 1px solid #e8eaee; margin-top: 30px; }
.related-inner { max-width: 1280px; margin: 0 auto; padding: 36px 32px 42px; }
.comments-area { max-width: 820px; margin: 0 auto; padding: 10px 32px 40px; }
.comments-area h2 { font-size: 20px; }
.comment-list { list-style: none; margin: 20px 0 0; padding: 0; }
.comment-list li { background: #fff; border: 1px solid #e8eaee; border-radius: 14px; padding: 18px; margin-top: 12px; }
.comment-respond { background: #fff; border: 1px solid #e8eaee; border-radius: 16px; padding: 22px; margin-top: 24px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; border: 1px solid #dde1e6; border-radius: 10px; padding: 11px 13px; font: 400 14px/1.5 'IBM Plex Sans', sans-serif; margin-top: 6px;
}
.comment-form .submit { background: #0e1116; color: #fff; border: 0; border-radius: 11px; padding: 13px 20px; font: 600 13px/1 'IBM Plex Sans', sans-serif; }

/* ============ PAGE / 404 ============ */
.page-shell { max-width: 820px; margin: 0 auto; padding: 40px 32px 48px; }
.page-shell h1 { font: 700 40px/1.06 'Space Grotesk', sans-serif; letter-spacing: -.035em; }

/* ============ FOOTER ============ */
.site-footer { background: #fff; border-top: 1px solid #e8eaee; }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 56px 32px 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1.5fr 1fr; gap: 64px; align-items: start; }

.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 340px; }
.footer-brand-link { display: inline-block; margin: 0; padding: 0; line-height: 0; }
.site-footer .brand-fold { display: block; height: 73px; width: auto; max-width: none; margin: 0; }
.footer-brand .footer-blurb { margin: 0; font-size: 14px; line-height: 1.65; color: #6c737b; }
.footer-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; padding: 10px 16px; border-radius: 10px; background: #0e1116; color: #fff; font: 600 13px/1 'IBM Plex Sans', sans-serif; align-self: flex-start; transition: transform .2s, box-shadow .2s; }
.footer-cta:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(14,17,22,.22); }

.footer-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.footer-col .eyebrow { color: #0e1116; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a, .footer-links a { font: 400 14px/1.35 'IBM Plex Sans', sans-serif; color: #4b525a; transition: color .18s; }
.footer-col ul a:hover, .footer-links a:hover { color: #0e1116; }

.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-col--industries .footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; row-gap: 12px; }
.footer-col--industries .footer-links a { display: inline-flex; align-items: center; gap: 9px; }
.footer-col--industries .footer-links a i { width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--accent, #98a0aa); transition: transform .2s; }
.footer-col--industries .footer-links a:hover i { transform: scale(1.35); }

.footer-bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid #f0f2f5; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; font: 400 12px/1.5 'IBM Plex Sans', sans-serif; color: #98a0aa; }
.footer-bottom nav { display: flex; gap: 22px; }
.footer-bottom nav a:hover { color: #0e1116; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 44px; }
  .stat-card { left: auto; right: 16px; bottom: 16px; }
  .two-col, .entry-layout { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .pulse-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 44px; }
  .footer-brand { grid-column: 1 / -1; max-width: 520px; }
}
@media (max-width: 760px) {
  .wrap, .hero, .pulse-grid, .two-col, .split, .search-layout, .masthead-inner, .newsletter-wrap, .footer-inner, .header-bar, .article-head-inner, .related-inner { padding-left: 20px; padding-right: 20px; }
  .header-bar { flex-wrap: wrap; row-gap: 12px; }
  .header-search { order: 3; flex-basis: 100%; max-width: none; }
  .hero h1 { font-size: 34px; }
  .article-head h1 { font-size: 32px; }
  .masthead-title h1 { font-size: 30px; }
  .pulse-grid, .card-grid { grid-template-columns: 1fr; }
  .row-card { flex-direction: column; }
  .row-card .ph { width: 100%; height: 190px; }
  .newsletter { padding: 26px; }
  .newsletter h3 { font-size: 26px; }
  .newsletter form, .newsletter .form { width: 100%; }
  .topic-row { flex-direction: column; align-items: flex-start; }
  .footer-inner { padding: 40px 20px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-brand { max-width: none; }
  .footer-col--industries .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* radios in the filter rail read as circles */
.filter-row input[type="radio"] + .box { border-radius: 50%; }
.filter-row input[type="radio"]:checked + .box { border-width: 4px; background: #fff; border-color: #0e1116; }
.byline .avatar img { width: 100%; height: 100%; object-fit: cover; }
.ph--page { display: block; border-radius: 16px; }
.ph--page img { position: static; }
.entry-content .ph { display: block; border-radius: 14px; }
.masthead .accent-rule { animation: mrdGrow .7s .3s cubic-bezier(.2,.7,.2,1) both; }
.hero-kicker a.cat:hover { color: var(--accent); }
