/* =====================================================================
   Muamalat — Global Finance & Business News
   Design system & stylesheet (mobile-first / H5, responsive to desktop)
   ===================================================================== */

/* ----------------------------- Tokens ----------------------------- */
:root {
  --bg: #ffffff;
  --bg-soft: #f4f6fa;
  --bg-ink: #0a1727;
  --bg-ink-2: #0f2338;

  --ink: #0e1720;
  --ink-soft: #3a4553;
  --muted: #6b7686;
  --line: #e4e8f0;
  --line-soft: #eef1f6;

  --brand: #0a1727;
  --accent: #1657d6;
  --accent-ink: #ffffff;
  --accent-soft: #eaf0fd;
  --gold: #b9812f;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(14, 23, 32, .06), 0 1px 3px rgba(14, 23, 32, .05);
  --shadow: 0 6px 22px rgba(14, 23, 32, .08);
  --shadow-lg: 0 18px 46px rgba(14, 23, 32, .14);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;

  --container: 1240px;
  --header-h: 66px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ----------------------------- Reset ------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
input, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* --------------------------- Top strip ---------------------------- */
.topbar {
  background: var(--bg-ink);
  color: #c7d2e0;
  font-size: 12.5px;
}
.topbar .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 38px;
}
.topbar__date { letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.topbar__links { display: flex; align-items: center; gap: 18px; }
.topbar__links a { color: #c7d2e0; transition: color .2s var(--ease); }
.topbar__links a:hover { color: #fff; }
.topbar__social { display: flex; gap: 12px; }
.topbar__social svg { width: 15px; height: 15px; fill: currentColor; opacity: .8; transition: opacity .2s; }
.topbar__social a:hover svg { opacity: 1; }

/* ---------------------------- Ticker ------------------------------ */
.ticker {
  background: #fff;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}
.ticker__track {
  display: flex; gap: 34px; align-items: center;
  padding: 9px 20px; width: max-content;
  animation: ticker 46s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item { display: inline-flex; align-items: baseline; gap: 8px; font-size: 13px; white-space: nowrap; }
.ticker__name { font-weight: 600; color: var(--ink); letter-spacing: .02em; }
.ticker__val { color: var(--muted); font-variant-numeric: tabular-nums; }
.ticker__chg { font-weight: 600; font-variant-numeric: tabular-nums; }
.ticker__chg.up { color: #0f7a3d; }
.ticker__chg.down { color: #c0392b; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------------------------- Header ------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; gap: 20px;
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(140deg, var(--brand) 0%, #17527f 100%);
  display: grid; place-items: center; color: #fff; font-weight: 800;
  font-size: 17px; letter-spacing: -.04em;
}
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--serif); font-size: 23px; font-weight: 700; letter-spacing: -.02em; }
.brand__tag { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav a {
  padding: 8px 12px; border-radius: 8px; font-size: 14.5px; font-weight: 500;
  color: var(--ink-soft); white-space: nowrap; transition: background .18s, color .18s;
}
.nav a:hover { background: var(--bg-soft); color: var(--ink); }
.nav a.active { color: var(--accent); background: var(--accent-soft); }

.header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.search-form { position: relative; }
.search-form input {
  width: 190px; height: 38px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg-soft); padding: 0 38px 0 16px; font-size: 14px;
  transition: width .25s var(--ease), border-color .2s, background .2s;
}
.search-form input::placeholder { color: var(--muted); }
.search-form input:focus { width: 240px; background: #fff; border-color: var(--accent); outline: none; }
.search-form button {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border: 0; background: transparent; border-radius: 50%;
  display: grid; place-items: center; color: var(--muted);
}
.search-form button:hover { color: var(--accent); }
.search-form svg { width: 17px; height: 17px; fill: currentColor; }
.btn-subscribe {
  height: 38px; padding: 0 18px; border-radius: 999px; border: 0;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 14px;
  transition: transform .15s var(--ease), box-shadow .2s;
}
.btn-subscribe:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.menu-toggle {
  display: none; width: 40px; height: 40px; border: 1px solid var(--line);
  background: #fff; border-radius: 10px; place-items: center;
}
.menu-toggle svg { width: 20px; height: 20px; fill: var(--ink); }

/* Mobile nav drawer */
.nav-drawer {
  position: fixed; inset: 0 0 0 auto; width: min(84vw, 340px); z-index: 90;
  background: #fff; box-shadow: var(--shadow-lg);
  transform: translateX(100%); transition: transform .32s var(--ease);
  padding: 22px; overflow-y: auto;
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.nav-drawer__close { width: 36px; height: 36px; border: 1px solid var(--line); background: #fff; border-radius: 9px; }
.nav-drawer a.d-link { display: block; padding: 13px 6px; font-size: 17px; font-weight: 600; border-bottom: 1px solid var(--line-soft); }
.nav-drawer .d-sub { padding: 6px 6px 14px; }
.nav-drawer .d-sub a { color: var(--muted); font-size: 14px; margin-right: 14px; display: inline-block; }
.scrim {
  position: fixed; inset: 0; background: rgba(8, 16, 27, .5); z-index: 80;
  opacity: 0; visibility: hidden; transition: opacity .3s;
}
.scrim.open { opacity: 1; visibility: visible; }

/* --------------------------- Layout ------------------------------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; }
.section { padding: 46px 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: 34px 0; }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 26px;
  padding-bottom: 12px; border-bottom: 2px solid var(--ink);
}
.section-head h2 {
  font-family: var(--serif); font-size: 30px; font-weight: 700; letter-spacing: -.02em;
  display: flex; align-items: center; gap: 12px;
}
.section-head h2::before {
  content: ""; width: 6px; height: 22px; border-radius: 3px; background: var(--accent);
}
.section-head .more { font-size: 13.5px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.section-head .more:hover { text-decoration: underline; }

/* ---------------------------- Hero -------------------------------- */
.hero { padding: 30px 0 8px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 34px; }

.hero-lead { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; }
.hero-lead__media { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--bg-soft); }
.hero-lead__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.hero-lead:hover .hero-lead__media img { transform: scale(1.045); }
.hero-lead__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,23,39,0) 32%, rgba(10,23,39,.55) 68%, rgba(10,23,39,.92) 100%);
}
.hero-lead__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 30px 26px; color: #fff; }
.hero-lead__body h1 {
  font-family: var(--serif); font-size: 40px; line-height: 1.13; letter-spacing: -.02em;
  margin: 12px 0 10px; color: #fff;
}
.hero-lead__body p { color: rgba(233, 240, 248, .9); font-size: 15.5px; margin: 0; max-width: 60ch; }

.kicker {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.kicker--light { color: #fff; }
.kicker__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.kicker--cat { color: var(--cat, var(--accent)); }

.hero-side { display: flex; flex-direction: column; gap: 2px; }
.hero-side__title {
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.mini {
  display: grid; grid-template-columns: 78px 1fr; gap: 14px; align-items: center;
  padding: 15px 0; border-bottom: 1px solid var(--line-soft);
}
.mini:hover .mini__title { color: var(--accent); }
.mini__thumb { aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: var(--bg-soft); }
.mini__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini__title {
  font-family: var(--serif); font-size: 16.5px; line-height: 1.28; font-weight: 600;
  transition: color .2s; margin-bottom: 5px;
}
.mini__meta { font-size: 12px; color: var(--muted); }

/* ---------------------------- Cards ------------------------------- */
.grid { display: grid; gap: 28px 26px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card { display: flex; flex-direction: column; }
.card__media {
  display: block; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-soft); margin-bottom: 15px;
}
.card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.card__cat { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cat, var(--accent)); }
.card__dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line); }
.card__date { font-size: 12px; color: var(--muted); }
.card__title {
  font-family: var(--serif); font-size: 21px; line-height: 1.25; font-weight: 600;
  transition: color .2s;
}
.card:hover .card__title { color: var(--accent); }
.card__excerpt { margin: 9px 0 0; font-size: 14.5px; color: var(--ink-soft); }
.card__meta { margin-top: 12px; font-size: 12.5px; color: var(--muted); display: flex; gap: 12px; align-items: center; }

/* Horizontal card */
.card--row { display: grid; grid-template-columns: 250px 1fr; gap: 24px; align-items: center; }
.card--row .card__media { margin: 0; aspect-ratio: 16 / 11; }
.card--row .card__title { font-size: 26px; }

/* Feature (editor's picks) */
.pick { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.pick__num { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--line); font-weight: 700; }
.pick:hover .card__title { color: var(--accent); }

/* --------------------------- Sidebar ------------------------------ */
.sidebar { display: flex; flex-direction: column; gap: 30px; }
.widget { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.widget--flush { padding: 0; border: 0; }
.widget__title {
  font-family: var(--serif); font-size: 19px; font-weight: 700; margin-bottom: 16px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pill {
  display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--bg-soft);
  font-size: 12.5px; color: var(--ink-soft); font-weight: 500; transition: background .2s, color .2s;
}
.tag-pill:hover { background: var(--accent); color: #fff; }

.newsletter {
  background: linear-gradient(150deg, var(--bg-ink) 0%, #16405f 100%);
  color: #fff; border-radius: var(--radius-lg); padding: 26px; position: relative; overflow: hidden;
}
.newsletter::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 150px; height: 150px;
  border-radius: 50%; background: rgba(255,255,255,.06);
}
.newsletter h3 { font-family: var(--serif); font-size: 22px; margin-bottom: 8px; }
.newsletter p { font-size: 14px; color: rgba(230,239,248,.85); margin-bottom: 16px; }
.newsletter form { display: flex; gap: 8px; }
.newsletter input {
  flex: 1; height: 44px; border-radius: 10px; border: 0; padding: 0 14px; font-size: 14px; min-width: 0;
}
.newsletter button {
  height: 44px; padding: 0 18px; border-radius: 10px; border: 0; background: var(--accent);
  color: #fff; font-weight: 600; white-space: nowrap;
}
.newsletter button:hover { background: #1247b0; }
.newsletter .ok { font-size: 13px; color: #8ef0b4; margin: 10px 0 0; display: none; }
.newsletter.done .ok { display: block; }

/* ---------------------------- Article ----------------------------- */
.article { max-width: 760px; margin: 0 auto; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); padding: 22px 0 6px; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span.sep { opacity: .5; }

.article__head { padding: 6px 0 20px; }
.article__title {
  font-family: var(--serif); font-size: 46px; line-height: 1.1; letter-spacing: -.025em;
  margin: 14px 0 0;
}
.article__standfirst { font-size: 19px; color: var(--ink-soft); margin-top: 16px; line-height: 1.55; }
.article__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 13.5px; color: var(--muted);
}
.byline { display: flex; align-items: center; gap: 10px; }
.byline__avatar {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 15px;
}
.byline b { color: var(--ink); font-weight: 600; }
.meta-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--line); }

.article__figure { margin: 4px 0 30px; }
.article__figure img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 16 / 9; object-fit: cover; }
.article__figure figcaption { font-size: 12.5px; color: var(--muted); margin-top: 10px; }

.article__body { font-size: 18px; line-height: 1.75; color: #1d2733; }
.article__body > p:first-of-type::first-letter {
  font-family: var(--serif); font-size: 62px; line-height: .8; font-weight: 700;
  float: left; padding: 6px 12px 0 0; color: var(--brand);
}
.article__body h2 {
  font-family: var(--serif); font-size: 28px; margin: 38px 0 14px; letter-spacing: -.02em;
}
.article__body ul { margin: 0 0 22px; padding-left: 0; list-style: none; }
.article__body ul li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.article__body ul li::before {
  content: ""; position: absolute; left: 4px; top: 12px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--accent);
}
.article__body blockquote {
  margin: 30px 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--accent);
  font-family: var(--serif); font-size: 23px; line-height: 1.4; font-style: italic; color: var(--brand);
}
.article__body blockquote cite { display: block; font-family: var(--sans); font-style: normal; font-size: 14px; color: var(--muted); margin-top: 12px; }

.article__tags { display: flex; flex-wrap: wrap; gap: 9px; margin: 34px 0; padding-top: 22px; border-top: 1px solid var(--line); }
.share { display: flex; align-items: center; gap: 10px; margin-bottom: 30px; }
.share__label { font-size: 13px; color: var(--muted); font-weight: 600; }
.share a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; transition: background .2s, border-color .2s, transform .15s;
}
.share a svg { width: 16px; height: 16px; fill: var(--ink-soft); }
.share a:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.share a:hover svg { fill: #fff; }

.author-box {
  display: flex; gap: 18px; align-items: flex-start; padding: 24px;
  background: var(--bg-soft); border-radius: var(--radius-lg); margin: 30px 0;
}
.author-box__avatar {
  width: 56px; height: 56px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 20px;
}
.author-box h4 { font-size: 17px; margin-bottom: 4px; }
.author-box p { font-size: 14px; color: var(--ink-soft); margin: 0; }

.progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--accent); width: 0; z-index: 100; transition: width .1s linear; }

/* --------------------------- Page (legal) ------------------------- */
.page-hero { background: var(--bg-ink); color: #fff; padding: 54px 0 48px; }
.page-hero h1 { font-family: var(--serif); font-size: 42px; letter-spacing: -.02em; margin: 10px 0 8px; }
.page-hero p { color: rgba(219, 230, 242, .85); max-width: 60ch; margin: 0; }
.page-hero .updated { font-size: 13px; color: rgba(219, 230, 242, .6); margin-top: 16px; }
.prose { max-width: 780px; margin: 0 auto; padding: 44px 0 60px; font-size: 17px; line-height: 1.75; color: #1d2733; }
.prose h2 { font-family: var(--serif); font-size: 25px; margin: 34px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { margin: 0 0 20px; list-style: none; padding: 0; }
.prose ul li { position: relative; padding-left: 24px; margin-bottom: 9px; }
.prose ul li::before { content: ""; position: absolute; left: 3px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.prose p { margin: 0 0 18px; }

/* Contact form */
.form { max-width: 620px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
  background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { min-height: 140px; resize: vertical; }
.form .btn {
  height: 46px; padding: 0 26px; border-radius: 10px; border: 0; background: var(--accent);
  color: #fff; font-weight: 600; transition: transform .15s, box-shadow .2s;
}
.form .btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.form__note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.form__ok {
  display: none; margin-top: 18px; padding: 14px 16px; border-radius: 10px;
  background: #e8f7ee; color: #0f6b38; font-size: 14px; font-weight: 500;
}
.form.sent .form__ok { display: block; }

/* --------------------------- Footer ------------------------------- */
.site-footer { background: var(--bg-ink); color: #b8c6d6; padding: 56px 0 26px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer .brand__name { color: #fff; }
.site-footer .brand__tag { color: #8ea3b8; }
.footer-about p { font-size: 14px; color: #9fb0c2; margin: 16px 0 0; max-width: 38ch; }
.footer-col h4 { color: #fff; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a { display: block; padding: 6px 0; font-size: 14px; color: #a9bacb; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); display: grid; place-items: center; }
.footer-social svg { width: 16px; height: 16px; fill: #cbd8e6; }
.footer-social a:hover { background: var(--accent); border-color: var(--accent); }
.footer-social a:hover svg { fill: #fff; }
.footer-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 13px; color: #8697a9;
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-bottom a:hover { color: #fff; }

/* Back to top */
.to-top {
  position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--brand); color: #fff; border: 0; display: grid; place-items: center;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .28s var(--ease); z-index: 70;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top svg { width: 18px; height: 18px; fill: #fff; }

/* Empty state */
.empty { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty h3 { font-family: var(--serif); font-size: 26px; color: var(--ink); margin-bottom: 8px; }

/* Filtered listing banner */
.filter-banner {
  background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 30px 0;
}
.filter-banner h1 { font-family: var(--serif); font-size: 34px; letter-spacing: -.02em; }
.filter-banner p { color: var(--muted); margin: 8px 0 0; max-width: 70ch; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.chip { padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 500; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* --------------------------- Responsive --------------------------- */
@media (max-width: 1080px) {
  .layout { grid-template-columns: 1fr; gap: 40px; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .menu-toggle { display: grid; }
  .search-form { display: none; }
  .hero__grid { grid-template-columns: 1fr; gap: 26px; }
  .hero-lead__body h1 { font-size: 32px; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article__title { font-size: 36px; }
  .article__body { font-size: 17px; }
  .page-hero h1 { font-size: 34px; }
}
@media (max-width: 680px) {
  body { font-size: 15.5px; }
  .container { padding: 0 16px; }
  .section { padding: 34px 0; }
  .hero-lead__body { padding: 22px 20px 20px; }
  .hero-lead__body h1 { font-size: 26px; }
  .hero-lead__body p { font-size: 14px; display: none; }
  .section-head h2 { font-size: 24px; }
  .grid, .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; gap: 26px; }
  .card--row { grid-template-columns: 1fr; gap: 14px; }
  .card--row .card__title { font-size: 22px; }
  .card__title { font-size: 20px; }
  .article__title { font-size: 29px; }
  .article__standfirst { font-size: 17px; }
  .article__body { font-size: 16.5px; }
  .article__body > p:first-of-type::first-letter { font-size: 48px; }
  .article__body h2 { font-size: 23px; }
  .article__body blockquote { font-size: 19px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .topbar__links { display: none; }
  .page-hero { padding: 38px 0 34px; }
  .page-hero h1 { font-size: 28px; }
  .btn-subscribe { display: none; }
  .newsletter form { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .ticker__track { animation: none; }
}

/* Print */
@media print {
  .site-header, .topbar, .ticker, .site-footer, .to-top, .share, .progress, .nav-drawer, .scrim { display: none !important; }
}