/* =========================================================
   Mideast Morning — modern newspaper design system
   ========================================================= */
:root {
  --bg: #faf9f6;
  --paper: #ffffff;
  --ink: #0e0e10;
  --ink-2: #3b3b40;
  --muted: #6e6d72;
  --rule: #e6e3dc;
  --red: #d0021b;
  --red-dark: #a50015;
  --red-tint: #fdecee;
  --dark: #111114;
  --dark-2: #1c1c21;
  --up: #128a45;
  --down: #d0021b;
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --maxw: 1320px;
  --gutter: 32px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body { font-family: var(--sans); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; padding: 0; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, h5 { margin: 0; font-family: var(--display); font-weight: 750; letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.icon { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 3px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 6px; font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 12px; }

/* ---------- Logo ---------- */
.logo { font-family: var(--display); font-weight: 900; color: var(--red); letter-spacing: -0.045em; line-height: .9; white-space: nowrap; display: inline-block; }

/* ---------- Media ---------- */
.media { position: relative; overflow: hidden; background: #e9e6df; border-radius: 6px; }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), opacity .6s, filter .6s; opacity: 0; filter: blur(8px); transform: scale(1.04); }
.media img.is-loaded { opacity: 1; filter: none; transform: scale(1); }
.media::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%) #ebe8e1; background-size: 220% 100%; animation: shimmer 1.4s infinite linear; }
.media:has(img.is-loaded)::before { display: none; }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.r-16x9 { aspect-ratio: 16/9; } .r-3x2 { aspect-ratio: 3/2; } .r-4x3 { aspect-ratio: 4/3; } .r-1x1 { aspect-ratio: 1; } .r-4x5 { aspect-ratio: 4/5; } .r-21x9 { aspect-ratio: 21/9; }

/* ---------- Story primitives ---------- */
.story { position: relative; display: block; }
.story:hover .media img.is-loaded { transform: scale(1.045); }
.kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.kicker--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: live 1.4s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(208,2,27,.5); } 70% { box-shadow: 0 0 0 8px rgba(208,2,27,0); } 100% { box-shadow: 0 0 0 0 rgba(208,2,27,0); } }
.hl { background: linear-gradient(var(--red), var(--red)) 0 100% / 0 2px no-repeat; transition: background-size .45s var(--ease); padding-bottom: 1px; }
.story:hover .hl, a.hl:hover { background-size: 100% 2px; }
.dek { font-family: var(--serif); color: var(--ink-2); line-height: 1.45; }
.meta { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.meta b { color: var(--ink); font-weight: 600; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 20px; background: var(--red); color: #fff; font-weight: 650; font-size: 14.5px; border-radius: 999px; transition: background .2s, transform .2s var(--ease), box-shadow .2s; white-space: nowrap; }
.btn:hover { background: var(--red-dark); transform: translateY(-1px); box-shadow: 0 8px 18px rgba(208,2,27,.25); }
.btn:active { transform: translateY(0); }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; position: relative; transition: background .15s; }
.icon-btn:hover { background: rgba(0,0,0,.06); }
.icon-btn .badge { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); border: 2px solid var(--bg); }

/* =========================================================
   HEADER
   ========================================================= */
.topbar { border-bottom: 1px solid var(--rule); font-size: 12.5px; color: var(--ink-2); }
.topbar .wrap { display: flex; align-items: center; gap: 22px; height: 38px; }
.topbar__date { font-weight: 600; color: var(--ink); white-space: nowrap; }
.topbar__weather { white-space: nowrap; }
.topbar__links { display: flex; gap: 18px; white-space: nowrap; }
.topbar__links a:hover { color: var(--red); }
.ticker { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker__track { display: flex; gap: 28px; width: max-content; animation: marquee 40s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ticker__item b { color: var(--ink); font-weight: 600; margin-right: 4px; }
@keyframes marquee { to { transform: translateX(-50%); } }
.up { color: var(--up); } .down { color: var(--down); }

.masthead { padding: 26px 0 18px; }
.masthead__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.masthead__center { text-align: center; flex: 1; }
.masthead__tag { margin-top: 12px; font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--muted); }
.masthead__side { width: 220px; display: flex; gap: 6px; align-items: center; }
.masthead__side--right { justify-content: flex-end; }
.logo--reveal { clip-path: inset(0 100% 0 0); animation: wipe 1.1s .1s var(--ease) forwards; }
@keyframes wipe { to { clip-path: inset(-10% -2% -20% 0); } }

.nav { position: sticky; top: 0; z-index: 40; background: rgba(250, 249, 246, .92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-top: 3px solid var(--ink); border-bottom: 1px solid var(--rule); transition: box-shadow .25s; }
.nav .wrap { display: flex; align-items: center; height: 52px; gap: 8px; }
.is-scrolled .nav { box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.is-scrolled .nav__links a { padding-left: 9px; padding-right: 9px; }
.nav__links a { transition: color .15s, padding .3s var(--ease); }
.nav__links { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.nav__links::-webkit-scrollbar { display: none; }
.nav__links a { position: relative; padding: 15px 12px; font-size: 14.5px; font-weight: 600; white-space: nowrap; color: var(--ink-2); transition: color .15s; }
.nav__links a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__right { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav__right .btn { height: 36px; font-size: 13.5px; margin-left: 8px; }

.breaking { background: var(--red); color: #fff; overflow: hidden; }
.breaking .wrap { display: flex; align-items: center; gap: 18px; height: 44px; }
.breaking__label { flex: none; display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; padding-right: 18px; border-right: 1px solid rgba(255,255,255,.35); }
.breaking__label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.breaking__viewport { flex: 1; overflow: hidden; height: 22px; }
.breaking__list { list-style: none; margin: 0; padding: 0; animation: breaking 16s var(--ease) infinite; }
.breaking:hover .breaking__list { animation-play-state: paused; }
.breaking__list li { height: 22px; line-height: 22px; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.breaking__list li span { opacity: .75; font-weight: 400; margin-left: 8px; font-size: 13px; }
@keyframes breaking { 0%, 22% { transform: translateY(0); } 25%, 47% { transform: translateY(-22px); } 50%, 72% { transform: translateY(-44px); } 75%, 97% { transform: translateY(-66px); } 100% { transform: translateY(-88px); } }
.breaking a.more { flex: none; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 4px; opacity: .9; }
.breaking a.more:hover { opacity: 1; }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding: 48px 0 0; }
.section-head { display: flex; align-items: baseline; gap: 16px; border-top: 3px solid var(--ink); padding-top: 12px; margin-bottom: 24px; }
.section-head h2 { font-size: 28px; font-weight: 850; letter-spacing: -0.035em; }
.section-head h2 span { color: var(--red); }
.section-head__sub { color: var(--muted); font-size: 14px; flex: 1; }
.section-head a { font-size: 13.5px; font-weight: 600; display: inline-flex; gap: 4px; align-items: center; white-space: nowrap; }
.section-head a:hover { color: var(--red); }
.section-head a .icon { width: 16px; height: 16px; transition: transform .2s; }
.section-head a:hover .icon { transform: translateX(3px); }
.col-rule > * + * { border-left: 1px solid var(--rule); }

/* Lead */
.lead { grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr) minmax(0, 1fr); padding-top: 28px; }
.lead__main .lead__title { font-size: clamp(30px, 3.3vw, 46px); line-height: 1.02; margin: 16px 0 12px; letter-spacing: -0.035em; font-weight: 850; }
.lead__main .dek { font-size: 19px; margin-bottom: 12px; }
.lead__main .media { border-radius: 8px; }
.lead__bullets { margin: 16px 0 0; padding: 16px 0 0; border-top: 1px solid var(--rule); list-style: none; display: grid; gap: 10px; }
.lead__bullets a { display: flex; gap: 10px; font-weight: 600; font-size: 15px; line-height: 1.3; }
.lead__bullets a::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 7px; background: var(--red); border-radius: 50%; }
.lead__bullets a:hover { color: var(--red); }
.stack > * + * { border-top: 1px solid var(--rule); margin-top: 16px; padding-top: 16px; }
.s-sm h3 { font-size: 18px; line-height: 1.18; margin: 8px 0 8px; }
.s-sm .dek { font-size: 15px; margin-bottom: 8px; }
.s-sm .media { margin-bottom: 12px; }

.latest__title { font-size: 13px !important; letter-spacing: .1em !important; text-transform: uppercase; display: flex; align-items: center; gap: 8px; margin-bottom: 4px !important; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 4px; top: 14px; bottom: 14px; width: 1px; background: var(--rule); }
.timeline li { position: relative; padding: 12px 0 12px 22px; border-bottom: 1px solid var(--rule); }
.timeline li::before { content: ""; position: absolute; left: 0; top: 17px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 2px solid var(--ink); box-sizing: border-box; }
.timeline li:first-child::before { border-color: var(--red); background: var(--red); animation: live 1.6s infinite; }
.timeline time { display: block; font-size: 12px; font-weight: 700; color: var(--red); margin-bottom: 3px; font-variant-numeric: tabular-nums; }
.timeline a { font-family: var(--display); font-weight: 650; font-size: 15px; line-height: 1.28; letter-spacing: -0.01em; }
.timeline a:hover { color: var(--red); }
.timeline li.is-new { animation: slideIn .7s var(--ease); }
.timeline li.is-new a { background: linear-gradient(var(--red-tint), var(--red-tint)); animation: fadeBg 3s forwards; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-12px); } }
@keyframes fadeBg { to { background-size: 0 0; } }

/* Grids */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card h3 { font-size: 19px; line-height: 1.18; margin: 10px 0 8px; }
.card .media { margin-bottom: 4px; }
.card .dek { font-size: 15px; margin-bottom: 8px; }

.split { display: grid; grid-template-columns: 1.55fr 1fr; gap: 36px; }
.split--rev { grid-template-columns: 1fr 1.55fr; }
.split--rev > :first-child { order: 2; }
.split__big h3 { font-size: 30px; line-height: 1.06; margin: 14px 0 10px; letter-spacing: -0.03em; }
.split__big .dek { font-size: 17px; margin-bottom: 10px; }
.row { display: grid; grid-template-columns: 1fr 132px; gap: 16px; align-items: start; }
.row h3 { font-size: 17px; line-height: 1.22; margin: 6px 0 8px; }
.row .media { aspect-ratio: 4/3; }

/* Feature */
.feature { position: relative; margin-top: 56px; color: #fff; min-height: 600px; display: flex; align-items: flex-end; overflow: hidden; background: #222; }
.feature__img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 25%, rgba(0,0,0,.82) 100%); }
.feature .wrap { position: relative; z-index: 2; padding-bottom: 60px; width: 100%; }
.feature .kicker { color: #fff; background: var(--red); padding: 6px 10px; border-radius: 3px; }
.feature h2 { font-size: clamp(34px, 5vw, 70px); line-height: .98; letter-spacing: -0.045em; max-width: 920px; margin: 18px 0 16px; font-weight: 850; }
.feature .dek { color: rgba(255,255,255,.88); font-size: 20px; max-width: 640px; margin-bottom: 24px; }
.feature .meta { color: rgba(255,255,255,.75); margin-bottom: 24px; }
.feature .meta b { color: #fff; }
.feature .btn { background: #fff; color: var(--ink); }
.feature .btn:hover { background: var(--red); color: #fff; }

/* Dark band */
.band { background: var(--dark); color: #fff; padding: 44px 0 48px; margin-top: 56px; }
.band .section-head { border-top-color: #fff; }
.band .section-head__sub { color: rgba(255,255,255,.55); }
.band .section-head a:hover { color: #ff6b7d; }
.band .meta { color: rgba(255,255,255,.6); }
.markets { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: rgba(255,255,255,.1); border-radius: 12px; overflow: hidden; }
.mkt { background: var(--dark-2); padding: 16px 16px 12px; transition: background .2s; }
.mkt:hover { background: #26262c; }
.mkt__name { font-size: 12.5px; color: rgba(255,255,255,.65); font-weight: 600; }
.mkt__val { font-family: var(--display); font-size: 24px; font-weight: 750; margin: 6px 0 2px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.mkt__chg { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mkt__chg.up { color: #3ddc84; } .mkt__chg.down { color: #ff5a6e; }
.spark { width: 100%; height: 40px; margin-top: 8px; overflow: visible; }
.spark path { fill: none; stroke-width: 2; stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 1.8s var(--ease); }
.spark .area { stroke: none; opacity: 0; transition: opacity 1s .8s; }
.is-visible .spark path { stroke-dashoffset: 0; }
.is-visible .spark .area { opacity: .18; }
.band__note { margin-top: 12px; font-size: 12px; color: rgba(255,255,255,.45); }

.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 60px) / 4); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: #444 transparent; }
.scroller > * { scroll-snap-align: start; }
.video .media { border-radius: 8px; }
.video .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.6)); }
.play { position: absolute; z-index: 2; left: 14px; bottom: 14px; width: 46px; height: 46px; border-radius: 50%; background: var(--red); display: grid; place-items: center; transition: transform .3s var(--ease); }
.play::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--red); animation: ring 2s infinite; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
.play .icon { fill: #fff; stroke: none; width: 18px; height: 18px; margin-left: 3px; }
.video:hover .play { transform: scale(1.12); }
.duration { position: absolute; z-index: 2; right: 12px; bottom: 14px; font-size: 12px; font-weight: 700; background: rgba(0,0,0,.6); padding: 3px 7px; border-radius: 4px; }
.video h3 { font-size: 17px; line-height: 1.25; margin: 12px 0 6px; }

/* Opinion */
/* Equal columns with centred hairline dividers */
.ruled { display: grid; column-gap: 48px; }
.ruled > * { position: relative; min-width: 0; }
.ruled > * + *::after { content: ""; position: absolute; left: -24px; top: 0; bottom: 0; border-left: 1px solid var(--rule); }
.op__author { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.op__avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 18px; color: #fff; flex: none; transition: transform .4s var(--ease); }
.op:hover .op__avatar { transform: rotate(-8deg) scale(1.06); }
.op__name { font-weight: 700; font-size: 14px; }
.op__role { font-size: 12.5px; color: var(--muted); }
.op h3 { font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1.22; letter-spacing: -0.01em; font-style: italic; margin-bottom: 10px; }
.op h3::before { content: "“"; color: var(--red); font-family: var(--display); font-style: normal; font-weight: 900; margin-right: 2px; }

/* Most read */

/* Newspaper columns */

/* Newsletter CTA */
.cta { margin: 64px 0 0; background: var(--red); color: #fff; border-radius: 18px; padding: 48px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; position: relative; overflow: hidden; }
.cta__bg { position: absolute; right: -10px; bottom: -64px; font-family: var(--display); font-weight: 900; font-size: 260px; letter-spacing: -0.08em; color: rgba(255,255,255,.08); line-height: 1; pointer-events: none; white-space: nowrap; animation: drift 14s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translateX(-60px); } }
.cta h2 { font-size: 40px; line-height: 1.02; letter-spacing: -0.035em; font-weight: 850; margin-bottom: 12px; }
.cta p { font-family: var(--serif); font-size: 18px; color: rgba(255,255,255,.9); }
.cta form { position: relative; z-index: 1; }
.cta__row { display: flex; gap: 8px; background: #fff; padding: 6px; border-radius: 999px; transition: box-shadow .2s; }
.cta__row:focus-within { box-shadow: 0 0 0 4px rgba(255,255,255,.35); }
.cta__row input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; padding: 0 16px; font: inherit; font-size: 15px; color: var(--ink); }
.cta__row .btn { background: var(--ink); }
.cta__row .btn:hover { background: #000; box-shadow: none; }
.cta__checks { display: flex; gap: 18px; margin-top: 14px; font-size: 13px; flex-wrap: wrap; }
.cta__checks span::before { content: "✓ "; font-weight: 800; }
.form-msg { min-height: 20px; margin-top: 10px; font-size: 13.5px; font-weight: 600; }
.cta__row.is-error { box-shadow: 0 0 0 3px #ffd54d; animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--dark); color: rgba(255,255,255,.7); margin-top: 72px; padding: 56px 0 0; }
.footer__top { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 36px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer__about p { font-family: var(--serif); font-size: 16px; line-height: 1.5; margin: 16px 0 22px; max-width: 320px; }
.socials { display: flex; gap: 8px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); color: #fff; transition: background .2s, border-color .2s, transform .2s var(--ease); }
.socials a:hover { background: var(--red); border-color: var(--red); transform: translateY(-3px); }
.footer .footer__h { margin: 6px 0 16px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer li a { font-size: 14.5px; transition: color .15s, padding .2s var(--ease); }
.footer li a:hover { color: #fff; padding-left: 4px; }
.store-btn { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border: 1px solid rgba(255,255,255,.2); border-radius: 10px; color: #fff; font-size: 13.5px; line-height: 1.15; margin-bottom: 10px; transition: border-color .2s, background .2s; }
.store-btn:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.store-btn small { display: block; font-size: 10.5px; opacity: .65; }
.footer__bottom { display: flex; align-items: center; gap: 24px; padding: 20px 0 26px; font-size: 13px; flex-wrap: wrap; }
.footer__bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__bottom a:hover { color: #fff; }
.lang { margin-left: auto; display: flex; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 3px; }
.lang button { padding: 5px 12px; border-radius: 999px; font-size: 12.5px; transition: background .2s, color .2s; }
.lang button.is-active { background: #fff; color: var(--ink); }
.to-top { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff; transition: transform .25s var(--ease); }
.to-top:hover { transform: translateY(-4px); }
.to-top .icon { transform: rotate(-90deg); width: 18px; height: 18px; }

/* =========================================================
   TOAST, BOOKMARKS, PROGRESS
   ========================================================= */
.bm-toggle { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--ink); transition: background .15s, transform .2s var(--ease); flex: none; }
.bm-toggle:hover { background: rgba(0,0,0,.06); }
.bm-toggle:active { transform: scale(.85); }
.bm-toggle.is-saved .icon { fill: var(--red); color: var(--red); animation: pop .35s var(--ease); }
@keyframes pop { 50% { transform: scale(1.35); } }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 90; transform: translate(-50%, 24px); opacity: 0; pointer-events: none; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 14px; display: flex; gap: 14px; align-items: center; box-shadow: 0 12px 30px rgba(0,0,0,.25); transition: opacity .25s, transform .35s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: #ff8b99; font-weight: 700; }
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform-origin: left; transform: scaleX(0); background: var(--red); z-index: 70; }

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js [data-reveal="fade"] { transform: none; }

/* =========================================================
   MOBILE APP CHROME
   ========================================================= */
.m-only { display: none; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: none; grid-template-columns: repeat(4, 1fr); background: rgba(255,255,255,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--rule); padding: 8px 0 calc(8px + env(safe-area-inset-bottom)); transition: transform .3s var(--ease); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 500; color: var(--muted); }
.tabbar a.is-active { color: var(--red); }
.tabbar a.is-active .icon { fill: currentColor; }
.tabbar.is-hidden { transform: translateY(110%); }

/* =========================================================
   ARTICLE
   ========================================================= */
.article { max-width: 760px; margin: 0 auto; padding: 44px var(--gutter) 0; }
.article h1 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.02; letter-spacing: -0.04em; margin: 14px 0 18px; font-weight: 850; }
.article__dek { font-family: var(--serif); font-size: 21px; line-height: 1.45; color: var(--ink-2); margin-bottom: 24px; }
.article__byline { display: flex; align-items: center; gap: 12px; padding: 16px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-bottom: 28px; }
.article__byline .op__avatar { width: 44px; height: 44px; font-size: 15px; }
.article__byline .tools { margin-left: auto; display: flex; gap: 4px; }
.article__hero { max-width: 1100px; margin: 0 auto 10px; padding: 0 var(--gutter); }
.article__hero .media { border-radius: 10px; }
.article__caption { max-width: 1100px; margin: 0 auto 30px; padding: 0 var(--gutter); font-size: 12.5px; color: var(--muted); }
.article__body { font-family: var(--serif); font-size: 20px; line-height: 1.68; }
.article__body p { margin-bottom: 22px; }
.article__body > p:first-of-type::first-letter { float: left; font-family: var(--display); font-weight: 900; font-size: 74px; line-height: .82; margin: 6px 10px 0 0; color: var(--red); }
.article__body h2 { font-size: 26px; margin: 36px 0 14px; }
.pullquote { margin: 34px 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--red); font-family: var(--display); font-weight: 750; font-size: 28px; line-height: 1.18; letter-spacing: -0.025em; }
.keypoints { background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; padding: 20px 24px; margin: 0 0 30px; font-family: var(--sans); }
.keypoints .keypoints__h { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.keypoints ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 16px; line-height: 1.4; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 30px 0; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border: 1px solid var(--rule); border-radius: 999px; font-size: 13.5px; font-weight: 600; background: var(--paper); transition: border-color .15s, transform .2s var(--ease); }
.chip:hover { border-color: var(--ink); transform: translateY(-2px); }
.chip.is-saved .icon { fill: var(--red); color: var(--red); }

/* =========================================================
   BOOKMARKS
   ========================================================= */
.bm-page { max-width: 820px; margin: 0 auto; padding: 44px var(--gutter) 0; }
.bm-page h1 { font-size: 48px; font-weight: 850; letter-spacing: -0.04em; margin-bottom: 20px; }
.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: #efede7; border-radius: 999px; padding: 4px; margin-bottom: 10px; }
.seg__pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); background: var(--ink); border-radius: 999px; transition: transform .35s var(--ease); }
.seg[data-active="list"] .seg__pill { transform: translateX(100%); }
.seg button { position: relative; z-index: 1; padding: 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); transition: color .25s; }
.seg button.is-active { color: #fff; }
.bm-item { display: grid; grid-template-columns: 120px 1fr auto; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--rule); align-items: start; transition: opacity .3s, transform .35s var(--ease); }
.bm-item.is-removing { opacity: 0; transform: translateX(40px); }
.bm-item h3 { font-size: 18px; line-height: 1.22; margin: 6px 0 8px; }
.bm-empty { display: none; padding: 50px 0; text-align: center; color: var(--muted); }
.bm-empty a { color: var(--red); font-weight: 600; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1180px) {
  .lead { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
  .lead > .lead__main { order: 1; }
  .lead > .lead__main::after { display: none; }
  .lead > .lead__left::after { display: none; }
  .lead > .lead__right { order: 2; }
  .lead > .lead__left { order: 3; grid-column: 1 / -1; padding: 28px 0 0; margin-top: 28px; border-left: 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .lead > .lead__left > * + * { border-top: 0; margin-top: 0; padding-top: 0; }
  .markets { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .scroller { grid-auto-columns: calc((100% - 40px) / 3); }
  .footer__top { grid-template-columns: repeat(4, 1fr); }
  .footer__about { grid-column: 1 / -1; }
  .masthead__side { width: auto; }
  .topbar__weather, .topbar__links { display: none; }
}

@media (max-width: 760px) {
  :root { --gutter: 18px; }
  body { padding-bottom: 70px; }
  .d-only { display: none !important; }
  .m-only { display: block; }
  .tabbar { display: grid; }
  .topbar { display: none; }
  .masthead { padding: 12px 0 10px; }
  .masthead__tag { display: none; }
  .masthead__side { width: 40px; }
  .nav { border-top-width: 2px; }
  .nav .wrap { height: 46px; padding-right: 0; }
  .nav__logo, .nav__right { display: none; }
  .nav__links a { padding: 13px 10px; font-size: 14px; }
  .breaking .wrap { height: 40px; gap: 12px; }
  .breaking__label { font-size: 11px; padding-right: 12px; }
  .breaking__list li { font-size: 14px; }
  .breaking__list li span, .breaking a.more { display: none; }

  .lead { display: flex; flex-direction: column; padding-top: 18px; }
  .lead__main .media { margin: 0 calc(var(--gutter) * -1); border-radius: 0; }
  .lead > * { padding: 0 !important; border: 0 !important; }
  .lead__main .lead__title { font-size: 30px; }
  .lead__main .dek { font-size: 17px; }
  .lead > .lead__right { margin-top: 28px; }
  .lead > .lead__left { display: block; margin-top: 26px; padding-top: 22px !important; border-top: 1px solid var(--rule) !important; }
  .lead > .lead__left > * + * { border-top: 1px solid var(--rule); margin-top: 16px; padding-top: 16px; }

  .section { padding-top: 36px; }
  .section-head h2 { font-size: 23px; }
  .section-head__sub { display: none; }
  .section-head { justify-content: space-between; }
  .grid-4, .grid-3 { grid-template-columns: 1fr; gap: 0; }
  .grid-4 > *, .grid-3 > * { padding: 16px 0; border-top: 1px solid var(--rule); }
  .grid-4 > :first-child, .grid-3 > :first-child { border-top: 0; padding-top: 0; }
  .card.m-row { display: grid; grid-template-columns: 1fr 108px; column-gap: 14px; }
  .card.m-row .dek { display: none; }
  .card.m-row h3 { font-size: 17px; margin-top: 6px; }
  .split, .split--rev { grid-template-columns: 1fr; gap: 22px; }
  .split--rev > :first-child { order: 0; }
  .split__big h3 { font-size: 25px; }
  .row { grid-template-columns: 1fr 100px; }
  .feature { min-height: 520px; }
  .feature .dek { font-size: 17px; }
  .band { padding: 34px 0 38px; }
  .markets { grid-template-columns: repeat(2, 1fr); }
  .scroller { grid-auto-columns: 78%; }
  .ruled > * + *::after { display: none; }
  .cta { grid-template-columns: 1fr; padding: 30px 22px; gap: 22px; border-radius: 14px; }
  .cta__bg { font-size: 160px; bottom: -40px; }
  .cta h2 { font-size: 30px; }
  .cta p { font-size: 16px; }
  .footer { margin-top: 48px; padding-top: 40px; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .lang { margin-left: 0; }
  .toast { bottom: 86px; max-width: calc(100% - 32px); width: max-content; }
  .article { padding-top: 22px; }
  .article h1 { font-size: 32px; }
  .article__dek { font-size: 18px; }
  .article__body { font-size: 18px; }
  .article__hero { padding: 0; }
  .article__hero .media { border-radius: 0; }
  .article__caption { margin-top: 8px; }
  .pullquote { font-size: 23px; }
  .bm-page { padding-top: 22px; }
  .bm-page h1 { font-size: 36px; }
  .bm-item { grid-template-columns: 96px 1fr auto; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .ticker__track, .breaking__list, .cta__bg { animation: none !important; }
  .logo--reveal { clip-path: none; }
}

/* =========================================================
   v2 — logo image, even layout, engine pages
   ========================================================= */

/* ---------- Logo (brand artwork) ---------- */
.logo-img { display: block; width: 100%; height: auto; }
.masthead__logo { display: inline-block; width: clamp(280px, 44vw, 600px); vertical-align: top; }
.masthead__center { display: flex; flex-direction: column; align-items: center; }
.nav__logo { display: block; flex: none; width: 0; opacity: 0; overflow: hidden; transition: width .45s var(--ease), opacity .3s, margin .45s var(--ease); }
.nav__logo .logo-img { width: 176px; max-width: none; }
.is-scrolled .nav__logo { width: 176px; opacity: 1; margin-right: 20px; }
.footer__about .logo-img { width: 260px; }
.logo--reveal { clip-path: inset(0 100% 0 0); animation: wipe 1.1s .1s var(--ease) forwards; }
@keyframes wipe { to { clip-path: inset(0 0 0 0); } }

/* ---------- Shared rhythm: kicker → title → dek → meta ---------- */
.kicker { min-height: 14px; line-height: 14px; }
.story h3, .story h4 { overflow-wrap: anywhere; }
.clamp-2, .video h3, .brief .brief__h { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.card h3, .row h3, .s-sm h3, .most h3, .view h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.card .dek, .view .dek, .brief p, .split__big .dek { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }

/* The meta row has a fixed height whether or not it holds a bookmark button, so rows line up. */
.meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; }
.meta__text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta .bm-toggle { margin-right: -8px; }

/* Cards: equal-height columns, meta pinned to the bottom of every card in a row. */
.grid-4, .grid-3 { align-items: stretch; }
.card { display: flex; flex-direction: column; height: 100%; }
.card__img { display: block; margin-bottom: 14px; }
.card .media { margin-bottom: 0; }
.card h3 { margin: 8px 0 8px; }
.card .meta { margin-top: auto; padding-top: 4px; }

/* Rows in a stack: image top-aligned with the kicker, text column fills */
.row { grid-template-columns: minmax(0, 1fr) 132px; gap: 18px; }
.row__text { display: flex; flex-direction: column; min-height: 100%; }
.row h3 { margin: 6px 0 4px; }
.row .meta { margin-top: auto; }
.stack > * + * { margin-top: 18px; padding-top: 18px; }

.split__big h3 { margin: 16px 0 10px; }
.split__big .meta { margin-top: 6px; }
.s-sm h3 { margin: 6px 0 6px; }
.lead__main .kicker { margin-top: 18px; }
.lead__main .meta { margin-top: 6px; }
.latest__title { justify-content: space-between; }
.latest__all { font-size: 12px; letter-spacing: 0; text-transform: none; font-weight: 600; color: var(--muted); }
.latest__all:hover { color: var(--red); }
.timeline a { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }

/* ---------- Most read: five equal columns, ruled on top, numbers aligned ---------- */
.most { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 32px; }
.most__item { display: flex; border-top: 3px solid var(--ink); }
.most__item:first-child { border-top-color: var(--red); }
.most__link { display: flex; flex-direction: column; width: 100%; padding-top: 14px; }
.most__num { display: block; font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1; letter-spacing: -0.03em; color: var(--red); font-variant-numeric: tabular-nums; margin: 0 0 14px -0.04em; transition: color .3s; }
.most__link:hover .most__num { color: var(--ink); }
.most h3 { font-size: 17px; line-height: 1.24; margin: 6px 0 10px; min-height: calc(1.24em * 3); }
.most .meta { margin-top: auto; min-height: 20px; }

/* ---------- Analysis & Opinion: four equal cards ---------- */
.views { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; }
.view { display: flex; flex-direction: column; border-top: 1px solid var(--rule); padding-top: 18px; height: 100%; }
.view__author { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; min-height: 52px; }
.view h3 { font-family: var(--serif); font-weight: 500; font-style: italic; font-size: 21px; line-height: 1.24; letter-spacing: -0.01em; margin-bottom: 10px; }
.view .dek { font-size: 15px; margin-bottom: 8px; }
.view .meta { margin-top: auto; }

/* ---------- World in brief: a true 3-column grid, rows aligned ---------- */
.briefs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.brief { border-top: 1px solid var(--rule); padding: 16px 0 18px; }
.brief .brief__h { font-size: 17px; line-height: 1.24; margin: 6px 0 6px; font-weight: 700; }
.brief p { font-family: var(--serif); font-size: 15.5px; color: var(--ink-2); line-height: 1.45; }

/* ---------- Video cards ---------- */
.video { display: flex; flex-direction: column; }
.video h3 { min-height: calc(1.25em * 2); }
.video .media img { opacity: 1; filter: none; transform: none; }
.video .media::before { display: none; }

/* Generated covers never blur in */
.media--cover img { opacity: 1 !important; filter: none !important; transform: none; }
.media--cover::before { display: none; }

/* ---------- Drawer menu ---------- */
.drawer { position: fixed; inset: 0; z-index: 80; background: rgba(14, 14, 16, .45); backdrop-filter: blur(4px); opacity: 0; transition: opacity .25s; }
.drawer.is-open { opacity: 1; }
.drawer__panel { position: absolute; left: 0; top: 0; bottom: 0; width: min(380px, 88vw); background: var(--bg); padding: 20px 24px; overflow-y: auto; transform: translateX(-100%); transition: transform .35s var(--ease); }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.drawer__head .logo-img { width: 190px; }
.drawer__search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--rule); background: var(--paper); border-radius: 999px; padding: 0 14px; margin-bottom: 14px; }
.drawer__search input { flex: 1; border: 0; outline: 0; background: none; font: inherit; height: 44px; }
.drawer__nav a { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--rule); font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.drawer__nav a:hover { color: var(--red); }
.drawer__more { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; font-size: 14px; color: var(--ink-2); }

/* ---------- Listing pages ---------- */
.listing { padding-top: 36px; }
.listing--narrow { max-width: 860px; }
.listing__head { border-bottom: 3px solid var(--ink); padding-bottom: 16px; margin-bottom: 28px; }
.listing__head h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 850; letter-spacing: -0.045em; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.listing__head p { margin-top: 8px; color: var(--muted); font-size: 16px; }
.listing__lead { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: end; margin-bottom: 40px; padding-bottom: 36px; border-bottom: 1px solid var(--rule); }
.listing__lead h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.05; letter-spacing: -0.035em; margin: 12px 0 12px; font-weight: 850; }
.listing__lead .dek { font-size: 18px; margin-bottom: 10px; }
.listing__lead .media { aspect-ratio: 16/9; }
.listing__grid { row-gap: 40px; }
.pager { display: flex; justify-content: space-between; margin-top: 44px; }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; box-shadow: none; }
.btn--ghost .icon { transform: rotate(180deg); }
.empty, .empty-state p { color: var(--muted); font-size: 16px; }
.empty-state { padding: 100px var(--gutter); text-align: center; }
.empty-state h1 { font-size: 44px; font-weight: 850; letter-spacing: -0.04em; margin: 10px 0 12px; }
.empty-state p + p { margin-top: 24px; display: flex; gap: 10px; justify-content: center; }

.day { font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 30px 0 4px; }
.timeline--page li { display: grid; grid-template-columns: 58px 1fr; gap: 14px; padding: 16px 0 16px 22px; }
.timeline--page time { margin: 2px 0 0; }
.timeline--page a { font-size: 18px; -webkit-line-clamp: unset; }
.timeline--page p { font-family: var(--serif); color: var(--ink-2); font-size: 15.5px; line-height: 1.45; margin-top: 4px; }
.tl__body .kicker { display: block; margin-bottom: 4px; }

.searchbar { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--ink); background: var(--paper); border-radius: 999px; padding: 0 20px; margin-bottom: 26px; }
.searchbar input { flex: 1; border: 0; outline: 0; background: none; font: inherit; font-size: 18px; height: 56px; min-width: 0; }
.results-n { color: var(--muted); margin-bottom: 18px; }

.explore { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.explore__item { display: flex; flex-direction: column; gap: 6px; padding: 22px; background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; transition: border-color .2s, transform .25s var(--ease), box-shadow .25s; }
.explore__item:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: 0 12px 24px rgba(0,0,0,.06); }
.explore__name { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -0.03em; }
.explore__desc { color: var(--muted); font-size: 14.5px; line-height: 1.4; flex: 1; }
.explore__n { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--red); margin-top: 8px; }

/* Article extras */
.article--body { padding-top: 0; }
.article__figure { margin: 0; }
.article .kicker { text-decoration: none; }
.op__name { font-weight: 700; font-size: 14px; }
a.op__name:hover { color: var(--red); }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.tags .chip { height: 32px; font-size: 13px; color: var(--ink-2); }
.sourcing { margin: 8px 0 34px; padding: 18px 20px; border-left: 3px solid var(--red); background: var(--paper); border-radius: 0 10px 10px 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.sourcing .sourcing__h { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin-bottom: 6px; }
.sourcing a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.sourcing a:hover { text-decoration-color: var(--red); }
.chips .chip.bm-toggle { width: auto; height: 38px; border-radius: 999px; }
.prose { padding-bottom: 20px; }
.prose h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 850; letter-spacing: -0.04em; margin-bottom: 24px; }
.prose h2 { font-size: 24px; margin: 32px 0 10px; }
.prose p { font-family: var(--serif); font-size: 19px; line-height: 1.65; margin-bottom: 16px; }
.prose a { color: var(--red); }

/* Video and podcasts */
.player { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; margin-bottom: 44px; align-items: start; }
.player__frame { position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: #000; }
.player__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__info h2 { font-size: 28px; line-height: 1.1; margin: 10px 0 8px; }
.player__info .dek { margin-top: 10px; }
.video-grid { row-gap: 32px; }
.listing .video h3 { color: var(--ink); }
.chips--filter { margin: 0 0 24px; }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.episodes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.episode { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; padding: 22px 0; border-top: 1px solid var(--rule); }
.episode[hidden] { display: none; }
.episode__art { width: 96px; height: 96px; border-radius: 10px; object-fit: cover; background: var(--rule); }
.episode h3 { font-size: 18px; line-height: 1.22; margin: 6px 0 2px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.episode .dek { font-size: 14.5px; margin: 2px 0 12px; }
.episode audio { width: 100%; height: 36px; }

/* Bookmarks */
.bm-page__sub { color: var(--muted); margin: -8px 0 20px; }

@media (max-width: 1180px) {
  .most { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
  .views { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .briefs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .explore { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .episodes { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .masthead__logo { width: 210px; }
  .masthead__row { align-items: center; }
  .footer__about .logo-img { width: 220px; }
  .card.m-row { display: grid; grid-template-columns: minmax(0, 1fr) 108px; column-gap: 14px; align-items: start; }
  .card.m-row .card__img { grid-column: 2; grid-row: 1 / span 3; margin: 0; }
  .card.m-row .card__img .media { aspect-ratio: 1; }
  .card.m-row > :not(.card__img) { grid-column: 1; }
  .card.m-row .meta { grid-column: 1 / -1; }
  .row { grid-template-columns: minmax(0, 1fr) 100px; }
  .most, .views, .briefs { grid-template-columns: 1fr; gap: 0; }
  .most__item { border-top-width: 1px; border-top-color: var(--rule); }
  .most__item:first-child { border-top: 3px solid var(--red); }
  .most__link { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 8px; padding: 14px 0; }
  .most__num { grid-row: 1 / span 3; font-size: 32px; margin: 0; }
  .most h3 { min-height: 0; }
  .view { padding: 18px 0; }
  .listing__lead { grid-template-columns: 1fr; gap: 16px; }
  .explore { grid-template-columns: 1fr; }
  .player { grid-template-columns: 1fr; gap: 16px; }
  .episode { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; }
  .episode__art { width: 72px; height: 72px; }
  .timeline--page li { grid-template-columns: 1fr; gap: 2px; }
  .listing { padding-top: 20px; }
}
.js-bookmarks .story { transition: opacity .3s, transform .35s var(--ease); } .js-bookmarks .story.is-removing { opacity: 0; transform: translateX(40px); }
.media--cover img { object-position: 0 100%; }
.episodes { align-items: stretch; }
.episode__body { display: flex; flex-direction: column; min-width: 0; }
.episode .dek { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; min-height: calc(1.45em * 3); line-height: 1.45; }
.episode audio { margin-top: auto; }
.episode h3 { min-height: calc(1.22em * 2); }

/* ================================================================ v3: locked tabs, breadcrumbs, error pages */
.is-locked { position: relative; cursor: not-allowed; opacity: .42; user-select: none; }
.is-locked small { display: inline-block; margin-inline-start: 6px; padding: 1px 6px; border-radius: 999px; background: var(--paper); border: 1px solid var(--rule); font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; vertical-align: 2px; color: var(--muted); }
.nav__links .is-locked { display: inline-flex; align-items: center; height: 100%; padding: 0 12px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.drawer__nav .is-locked { display: flex; justify-content: space-between; align-items: center; }
.footer .is-locked { opacity: .45; } .footer .is-locked small { background: transparent; border-color: rgba(255,255,255,.25); color: rgba(255,255,255,.7); }
.explore__item.is-locked { opacity: .5; } .explore__item.is-locked:hover { transform: none; box-shadow: none; }
.topbar__links .is-locked small { display: none; }
.topbar__lang { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumbs a:not(.kicker) { color: var(--muted); } .crumbs a:not(.kicker):hover { color: var(--ink); }
.kicker--plain { color: var(--muted); }
.keypoints .keypoints__h, .sourcing .sourcing__h { font-family: var(--sans); }
.chip--lang { border-color: var(--ink); }
.listing__page { font-size: .5em; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.footer .footer__h { font-family: var(--sans); }
.lang a { padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.75); }
.lang a.is-active { background: #fff; color: var(--ink); }
.error-page { padding: 40px var(--gutter) 20px; }
.error-page__hero { position: relative; text-align: center; padding: 70px 0 56px; border-bottom: 1px solid var(--rule); margin-bottom: 8px; overflow: hidden; }
.error-page__code { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: clamp(160px, 30vw, 380px); line-height: 1; letter-spacing: -0.06em; color: var(--red); opacity: .07; pointer-events: none; }
.error-page__hero > :not(.error-page__code) { position: relative; }
.error-page h1 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 850; letter-spacing: -0.04em; margin: 12px auto 12px; max-width: 760px; }
.error-page__hero p { font-family: var(--serif); font-size: 19px; color: var(--ink-2); margin: 0 auto 28px; max-width: 560px; }
.error-page__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.error-page__actions .btn { display: inline-flex; align-items: center; gap: 8px; }
.error-page__sections { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 28px; }

/* ================================================================ v3: Arabic edition (right-to-left) */
[dir="rtl"] {
  --display: "IBM Plex Sans Arabic", "Inter Tight", system-ui, sans-serif;
  --sans: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif;
  --serif: "Noto Naskh Arabic", "IBM Plex Sans Arabic", Georgia, serif;
}
/* Arabic letters must join: no tracking, no faux italics, no all-caps tricks. */
[dir="rtl"] body, [dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] .kicker, [dir="rtl"] .btn, [dir="rtl"] .chip,
[dir="rtl"] .section-head h2, [dir="rtl"] .breaking__label, [dir="rtl"] .latest__title, [dir="rtl"] .footer .footer__h, [dir="rtl"] .keypoints .keypoints__h,
[dir="rtl"] .sourcing .sourcing__h, [dir="rtl"] .timeline a, [dir="rtl"] .pullquote, [dir="rtl"] .is-locked small, [dir="rtl"] .error-page h1, [dir="rtl"] .empty-state h1 { letter-spacing: 0 !important; }
[dir="rtl"] .masthead__tag, [dir="rtl"] .op h3, [dir="rtl"] .view h3 { font-style: normal; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { line-height: 1.35; font-weight: 700; }
[dir="rtl"] .lead__main .lead__title { line-height: 1.3; }
[dir="rtl"] .article__body { font-size: 21px; line-height: 1.95; }
[dir="rtl"] .dek, [dir="rtl"] .article__dek { line-height: 1.7; }
[dir="rtl"] .article__body > p:first-of-type::first-letter { float: none; font: inherit; color: inherit; margin: 0; }
[dir="rtl"] .icon--dir { transform: scaleX(-1); }
[dir="rtl"] .section-head a:hover .icon { transform: scaleX(-1) translateX(3px); }
[dir="rtl"] .to-top .icon { transform: rotate(-90deg); }
[dir="rtl"] .ticker { direction: ltr; }
[dir="rtl"] .skip-link { left: auto; right: 12px; }
[dir="rtl"] .icon-btn .badge { right: auto; left: 9px; }
[dir="rtl"] .ticker__item b { margin-right: 0; margin-left: 4px; }
[dir="rtl"] .nav__links a::after { transform-origin: right; }
[dir="rtl"] .nav__right { margin-left: 0; margin-right: 12px; }
[dir="rtl"] .nav__right .btn { margin-left: 0; margin-right: 8px; }
[dir="rtl"] .breaking__label { padding-right: 0; border-right: 0; padding-left: 18px; border-left: 1px solid rgba(255,255,255,.3); }
[dir="rtl"] .breaking__list li span { margin-left: 0; margin-right: 8px; }
[dir="rtl"] .col-rule > * + * { border-left: 0; border-right: 1px solid var(--rule); }
[dir="rtl"] .timeline::before { left: auto; right: 4px; }
[dir="rtl"] .timeline li { padding-left: 0; padding-right: 22px; }
[dir="rtl"] .timeline li::before { left: auto; right: 0; }
[dir="rtl"] .play { left: auto; right: 14px; }
[dir="rtl"] .play .icon { margin-left: 0; margin-right: 3px; transform: scaleX(-1); }
[dir="rtl"] .duration { right: auto; left: 12px; }
[dir="rtl"] .ruled > * + *::after { left: auto; right: -24px; border-left: 0; border-right: 1px solid var(--rule); }
[dir="rtl"] .op h3::before { content: "”"; margin-right: 0; margin-left: 2px; }
[dir="rtl"] .cta__bg { right: auto; left: -10px; }
[dir="rtl"] .footer li a:hover { padding-left: 0; padding-right: 4px; }
[dir="rtl"] .lang { margin-left: 0; margin-right: auto; }
[dir="rtl"] .progress { left: auto; right: 0; transform-origin: right; }
[dir="rtl"] .article__byline .tools { margin-left: 0; margin-right: auto; }
[dir="rtl"] .pullquote { padding: 4px 24px 4px 0; border-left: 0; border-right: 4px solid var(--red); }
[dir="rtl"] .keypoints ul { padding-left: 0; padding-right: 18px; }
[dir="rtl"] .sourcing { border-left: 0; border-right: 3px solid var(--red); border-radius: 10px 0 0 10px; }
[dir="rtl"] .is-scrolled .nav__logo { margin-right: 0; margin-left: 20px; }
[dir="rtl"] .meta .bm-toggle { margin-right: 0; margin-left: -8px; }
[dir="rtl"] .drawer__panel { left: auto; right: 0; transform: translateX(100%); }
[dir="rtl"] .drawer.is-open .drawer__panel { transform: none; }
[dir="rtl"] .js-bookmarks .story.is-removing { transform: translateX(-40px); }
[dir="rtl"] .most__num { margin: 0 -0.04em 14px 0; }
[dir="rtl"] .logo-img { direction: ltr; }
[dir="rtl"] .breaking__label, [dir="rtl"] .kicker { font-weight: 700; }
@media (max-width: 1180px) {
  [dir="rtl"] .lead > .lead__left { border-right: 0; }
}
@media (max-width: 760px) {
  [dir="rtl"] .nav .wrap { padding-right: var(--gutter); padding-left: 0; }
  [dir="rtl"] .breaking__label { padding-right: 0; padding-left: 12px; }
  [dir="rtl"] .lang { margin-right: 0; }
}
.mkt__state { display: inline-block; margin-inline-start: 6px; padding: 1px 7px; border-radius: 999px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.65); font-size: 10.5px; font-weight: 600; vertical-align: 1px; }

/* v4: phone header — menu and search stay reachable in the pinned bar; icon buttons keep their centring */
.nav__menu, .nav__search { display: none; flex: none; }
@media (max-width: 760px) {
  .icon-btn.m-only { display: grid; }
  .nav .wrap { gap: 0; padding-right: var(--gutter); }
  .nav__menu, .nav__search { display: grid; width: 40px; height: 40px; }
  .nav__menu { margin-inline-start: -10px; }
  .nav__search { margin-inline-end: -10px; }
  .nav__links { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 24px), transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 24px), transparent 100%); }
  [dir="rtl"] .nav__links { -webkit-mask-image: linear-gradient(to left, transparent 0, #000 12px, #000 calc(100% - 24px), transparent 100%); mask-image: linear-gradient(to left, transparent 0, #000 12px, #000 calc(100% - 24px), transparent 100%); }
  [dir="rtl"] .nav .wrap { padding-right: var(--gutter); padding-left: var(--gutter); }
}

/* v5: Russian edition — Newsreader has no Cyrillic, so the serif switches to PT Serif */
:root[lang="ru"] { --serif: "PT Serif", Georgia, "Times New Roman", serif; }
.topbar__lang { gap: 8px; }
.topbar__lang a { font-weight: 700; }
.drawer__more a[lang] { font-weight: 700; }

/* v6: locked items sit on the same rhythm as the live links */
.nav__links span.is-locked { display: inline-flex; align-items: center; align-self: stretch; height: auto; padding: 0 9px; }
.drawer__nav span.is-locked { padding: 13px 0; font-size: 19px; font-weight: 700; border-bottom: 1px solid var(--rule); }

/* v7: the section bar's menu/search buttons appear only while the bar is pinned, so the top of the page shows one set */
@media (max-width: 760px) {
  .nav__menu, .nav__search { width: 0; opacity: 0; overflow: hidden; pointer-events: none; margin-inline: 0; transition: width .3s var(--ease), opacity .2s, margin .3s var(--ease); }
  .nav-pinned .nav__menu, .nav-pinned .nav__search { width: 40px; opacity: 1; pointer-events: auto; }
  .nav-pinned .nav__menu { margin-inline-start: -10px; }
  .nav-pinned .nav__search { margin-inline-end: -10px; }
}

/* v8: horizontal rails scroll sideways only — no vertical wobble inside them on phones */
.scroller, .nav__links { overflow-y: hidden; overscroll-behavior-x: contain; touch-action: pan-x pan-y; }
.scroller > * { min-height: 0; }
.js .scroller [data-reveal] { transform: none; }
/* v9: the Live badge sits above the Latest headline as its eyebrow */
.listing__live { display: inline-flex; margin-bottom: 10px; }

/* v10: edition picker with flags */
.flag { display: inline-block; flex: none; width: 20px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); vertical-align: -2px; }
.langsel { position: relative; }
.langsel summary { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border: 1px solid var(--rule); border-radius: 999px; font-weight: 700; cursor: pointer; list-style: none; user-select: none; transition: border-color .2s, background .2s; }
.langsel summary::-webkit-details-marker { display: none; }
.langsel summary:hover, .langsel[open] summary { border-color: var(--ink); }
.langsel summary .icon { transition: transform .2s; }
.langsel[open] summary .icon { transform: rotate(180deg); }
.langsel__list { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 70; min-width: 180px; padding: 6px; background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.14); display: grid; gap: 2px; }
.langsel__list a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; font-weight: 600; color: var(--ink); }
.langsel__list a:hover { background: rgba(0,0,0,.05); }
.langsel__list a.is-active { background: rgba(0,0,0,.06); }
.langsel__list a.is-active::after { content: "✓"; margin-inline-start: auto; color: var(--red, #c8102e); font-weight: 800; }
.drawer__langs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.drawer__langs a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--rule); border-radius: 999px; font-weight: 600; }
.drawer__langs a.is-active { border-color: var(--ink); font-weight: 800; }
.lang a { display: inline-flex; align-items: center; gap: 7px; }

/* v11: with reduced motion the ticker stands still, so show only the quotes that fit whole (the rest wrap onto a hidden line) */
@media (prefers-reduced-motion: reduce) {
  .ticker { -webkit-mask-image: none; mask-image: none; height: 1.5em; line-height: 1.5em; }
  .ticker__track { width: auto; flex-wrap: wrap; column-gap: 28px; row-gap: 0; }
}
.ticker { margin-inline-end: 8px; }
/* v12: utility links and the edition pill share one centre line */
.topbar__links { align-items: center; }
.topbar__links > a, .topbar__links > span { display: inline-flex; align-items: center; line-height: 1; }
.topbar .langsel summary { padding: 4px 10px; line-height: 1; }

/* =========================================================
   v13: topics, briefing, reader services, FAQ, search suggestions, dark mode
   ========================================================= */
.muted { color: var(--muted); }
.up { color: var(--up); } .down { color: var(--down); }

/* services strip */
.svc-strip { display: flex; gap: 6px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; margin: 22px 0 -6px; padding-bottom: 2px; }
.svc-strip a { flex: none; padding: 7px 14px; border: 1px solid var(--rule); border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; transition: border-color .2s, color .2s; }
.svc-strip a:hover { border-color: var(--ink); color: var(--ink); }
.svc-strip a.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* home extras */
.home-extras { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; margin: 28px 0 0; padding: 18px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.brief-teaser { display: flex; flex-direction: column; gap: 4px; flex: 1 1 360px; min-width: 0; }
.brief-teaser b { font-family: var(--display); font-size: 20px; line-height: 1.2; letter-spacing: -.015em; }
.brief-teaser__go { display: inline-flex; align-items: center; gap: 6px; color: var(--red); font-weight: 700; font-size: 14px; }
.brief-teaser:hover b { text-decoration: underline; text-underline-offset: 3px; }
.trending { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; flex: 1 1 420px; }
.trending__h { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin-inline-end: 4px; }
.trending .chip { height: 34px; padding: 0 14px; font-size: 14px; }
.chip--ghost { border-style: dashed; }

/* topics */
.topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 8px; }
.topic-card { display: flex; flex-direction: column; gap: 6px; padding: 20px; background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; transition: transform .2s var(--ease), border-color .2s; }
.topic-card:hover { transform: translateY(-2px); border-color: var(--ink); }
.topic-card__name { font-family: var(--display); font-size: 21px; font-weight: 750; letter-spacing: -.02em; }
.topic-card__n { font-size: 14px; color: var(--ink-2); }
.topic-card__when { font-size: 12.5px; color: var(--muted); }
.whatsup { background: var(--paper); border: 1px solid var(--rule); border-inline-start: 4px solid var(--red); border-radius: 12px; padding: 22px 24px; margin: 8px 0 12px; font-family: var(--serif); font-size: 18px; line-height: 1.55; }
.whatsup__h { font-family: var(--sans); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.whatsup ul { margin: 12px 0 0; padding-inline-start: 20px; }
.whatsup li { margin: 6px 0; }
.whatsup__note { font-family: var(--sans); font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.topic-more { display: flex; flex-wrap: wrap; gap: 8px; margin: 36px 0 0; }
.topic-more .chip { height: 34px; font-size: 14px; }

/* briefing */
.brief-list { list-style: none; margin: 8px 0 0; padding: 0; }
.brief-item { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.brief-item__n { font-family: var(--display); font-size: 30px; font-weight: 850; color: var(--red); line-height: 1; }
.brief-item h2 { font-size: 21px; line-height: 1.2; margin: 4px 0 8px; }
.brief-item p { font-family: var(--serif); font-size: 17.5px; line-height: 1.55; color: var(--ink-2); }
.brief-note { font-size: 13px; color: var(--muted); margin-top: 18px; }

/* article: update note, FAQ, the story so far, topic chips */
.update-note { margin-top: 16px; padding: 10px 14px; background: var(--red-tint); border-radius: 8px; font-size: 14.5px; color: var(--ink); }
.update-note b { color: var(--red); }
.faq { margin: 34px 0 8px; }
.faq__h, .story-so-far__h { font-size: 22px; margin-bottom: 12px; }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__item summary { cursor: pointer; list-style: none; padding: 14px 32px 14px 0; position: relative; font-weight: 700; font-size: 17px; line-height: 1.35; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; inset-inline-end: 4px; top: 12px; font-size: 22px; font-weight: 400; color: var(--muted); transition: transform .2s; }
[dir="rtl"] .faq__item summary { padding: 14px 0 14px 32px; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 0 16px; font-family: var(--serif); font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.story-so-far { margin: 34px 0 8px; padding: 22px 24px; background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; }
.story-so-far .timeline { margin-bottom: 16px; }
.story-so-far li.is-current .tl__body span { font-weight: 700; }
.story-so-far li.is-current::before { background: var(--red) !important; border-color: var(--red) !important; }
.tags--topics { align-items: center; }
.chip--topic { border-color: var(--ink); font-weight: 700; }

/* explore: services heading */
.explore__h { font-size: 24px; margin: 40px 0 14px; }

/* data tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--rule); border-radius: 12px; background: var(--paper); }
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.data-table th, .data-table td { padding: 11px 14px; text-align: start; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.data-table th { font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); background: var(--bg); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: var(--bg); }
.data-table tr.is-today td { background: var(--red-tint); font-weight: 700; }
.data-table tr.is-past td { color: var(--muted); }
.data-table a:hover { color: var(--red); }

/* markets */
.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 8px; }
.mk-card { padding: 20px; background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; }
.mk-card__top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.mk-card__top h2 { font-size: 17px; }
.mk-card__chg { font-weight: 700; font-size: 14px; }
.mk-card__chg.up { color: var(--up); } .mk-card__chg.down { color: var(--down); }
.mk-card__val { font-family: var(--display); font-size: 34px; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.mk-card__meta { font-size: 13px; color: var(--muted); }
.chart { display: block; width: 100%; height: 110px; margin: 12px 0 6px; }

/* converter */
.converter { display: grid; grid-template-columns: 1fr 1.4fr auto 1.4fr; gap: 12px; align-items: end; padding: 22px; background: var(--paper); border: 1px solid var(--rule); border-radius: 16px; margin-top: 8px; }
.converter label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); min-width: 0; }
.converter input, .converter select { height: 48px; padding: 0 12px; border: 1px solid var(--rule); border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit; font-size: 17px; font-weight: 600; min-width: 0; width: 100%; }
.converter .js-swap { width: 48px; height: 48px; border: 1px solid var(--rule); border-radius: 10px; font-size: 20px; }
.converter__out { grid-column: 1 / -1; font-family: var(--display); font-size: 40px; font-weight: 850; letter-spacing: -.02em; padding-top: 6px; }
@media (max-width: 760px) { .converter { grid-template-columns: 1fr 1fr; } .converter label:first-child { grid-column: 1 / -1; } .converter .js-swap { display: none; } .converter__out { font-size: 32px; } }

/* weather */
.wx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 8px; }
.wx { padding: 20px; background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; scroll-margin-top: 80px; }
.wx__top { display: flex; justify-content: space-between; align-items: center; }
.wx__top h2 { font-size: 19px; }
.wx__icon { font-size: 30px; line-height: 1; }
.wx__t { font-family: var(--display); font-size: 46px; font-weight: 850; letter-spacing: -.03em; margin: 4px 0; }
.wx__meta { font-size: 13.5px; color: var(--ink-2); }
.wx__days { list-style: none; padding: 0; margin: 14px 0 10px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; text-align: center; font-size: 13px; }
.wx__days li { display: flex; flex-direction: column; gap: 3px; padding: 8px 0; border-radius: 8px; background: var(--bg); }
.wx__more { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--red); }

/* prayer times */
.prayer-today { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 8px 0 0; }
.prayer-today__item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 8px; background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; }
.prayer-today__item span { font-size: 13px; font-weight: 700; color: var(--muted); }
.prayer-today__item b { font-family: var(--display); font-size: 24px; font-weight: 800; }
@media (max-width: 760px) { .prayer-today { grid-template-columns: repeat(3, 1fr); } }

/* Ramadan facts */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 8px 0 0; }
.facts div { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; }
.facts span { font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.facts b { font-family: var(--display); font-size: 19px; }

/* search suggestions */
.has-suggest { position: relative; }
.suggest { position: absolute; top: calc(100% + 6px); inset-inline: 0; z-index: 80; background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; box-shadow: 0 18px 44px rgba(0,0,0,.16); padding: 6px; max-height: 60vh; overflow-y: auto; text-align: start; }
.suggest__h { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 10px 12px 4px; }
.suggest a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.suggest a small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--red); margin-bottom: 2px; }
.suggest a:hover, .suggest a.is-active { background: var(--bg); }
.suggest__topic { color: var(--red) !important; }
.suggest__all { border-top: 1px solid var(--rule); margin-top: 4px; border-radius: 0 0 8px 8px !important; color: var(--red) !important; font-size: 14px !important; }

/* drawer services + theme button */
.drawer__svc { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 14px; }
.drawer__theme { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 1px solid var(--rule); border-radius: 999px; font-weight: 600; justify-self: start; }
.js-theme[aria-pressed="true"] { color: var(--red); }

/* ---------------------------------------------------------- dark mode: light by default, dark only when the reader picks it */
:root[data-theme="dark"] {
  --bg: #111113; --paper: #1a1a1e; --ink: #efeeea; --ink-2: #c8c7c2; --muted: #96959c; --rule: #2b2b31;
  --red: #ff4458; --red-dark: #e0283d; --red-tint: #33161b; --dark: #0a0a0c; --dark-2: #151518; --up: #3ddc84; --down: #ff5a6e;
  color-scheme: dark;
}
:root[data-theme="dark"] .nav { background: rgba(17,17,19,.9); }
:root[data-theme="dark"] .tabbar { background: rgba(26,26,30,.94); }
:root[data-theme="dark"] .feature .btn, :root[data-theme="dark"] .lang a.is-active { color: #0e0e10; }
:root[data-theme="dark"] .cta__row input { color: #0e0e10; }
:root[data-theme="dark"] .logo-img:not([src*="white"]) { filter: brightness(1.15) saturate(1.1); }
:root[data-theme="dark"] .media img { filter: brightness(.92); }
:root[data-theme="dark"] .skip-link { color: #0e0e10; }
.svc-strip { margin: 22px 0 22px; }
.svc-strip + .listing__head { padding-top: 6px; }
.listing__head--brief h1 { font-size: clamp(30px, 4.2vw, 48px); line-height: 1.08; }
.story-so-far .timeline--page li { grid-template-columns: 118px 1fr; }
@media (max-width: 760px) { .story-so-far .timeline--page li { grid-template-columns: 1fr; } .story-so-far { padding: 18px 16px; } }
.svc-strip a.is-active { scroll-margin-inline: 40px; }
