/*
Theme Name: Aluula
Theme URI: https://aluula.ma/
Author: Aluula
Author URI: https://aluula.ma/
Description: Aluula is a standalone, RTL Arabic-first newsroom theme for the Moroccan news brand العُلى. Mobile-first, dark-mode aware, no parent theme, no build step. Newsletter CPT, custom post meta, demo content fallback, and security hardening built in.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aluula
Domain Path: /languages
Tags: news, rtl, right-to-left, custom-menu, custom-logo, custom-colors, custom-background, dark-style, featured-images, full-width-template, sticky-post, threaded-comments, translation-ready
*/

/* =================================================================
   العُلى — Mockup v5 — Pre-build approval pass
   Density of Hespress · dignity of Le Monde · rigor of Aljazeera
   Mobile-first, RTL, logical properties.
   ================================================================= */

:root {
  /* Brand palette (locked in v3 mockup, kept) */
  --page-bg:      #FFFFFF;
  --surface-alt:  #F7F7F5;
  --paper:        #FAFAF7;
  --ink:          #0A0A0A;
  --body:         #1C1C1C;
  --stone:        #8B7E6F;
  --stone-soft:   #C8C2B8;
  --hairline:     #E5E2DC;

  --red:        #8B0000;
  --red-deep:   #5E0000;
  --red-tint:   #F1E2E2;

  --navy:    #1A2D3E;
  --sage:    #5C6B5A;
  --ochre:   #A87C3D;

  /* Type */
  --font-display: 'IBM Plex Sans Arabic', 'Noto Naskh Arabic', 'Noto Sans Arabic', system-ui, sans-serif;
  --font-body:    'IBM Plex Sans Arabic', 'Noto Sans Arabic', system-ui, sans-serif;
  --font-ui:      'Tajawal', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-latin:   'Cormorant Garamond', Georgia, serif;

  /* Spacing */
  --container: 1240px;
  --gutter: 16px;
  --gutter-d: 24px;
  --t: 200ms ease;

  /* Sizes */
  --header-h-mob: 56px;
  --topbar-h-mob: 32px;
  --breaking-h: 40px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--page-bg);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a, a:visited { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
ul, ol { list-style: none; padding: 0; margin: 0; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (min-width: 720px) { .container { padding-inline: var(--gutter-d); } }

.dot { color: var(--stone); margin-inline: 6px; user-select: none; }

/* ─── Visibility helpers ─── */
.d-only { display: none; }
.m-only { display: block; }
@media (min-width: 720px) {
  .d-only { display: block; }
  .m-only { display: none; }
  .d-only-flex { display: flex; }
  .d-only-grid { display: grid; }
}

/* =================================================================
   TOPBAR — thin dark strip; no weather/date on phones
   ================================================================= */
.topbar {
  background: var(--ink);
  color: #cfcfcf;
  font-family: var(--font-ui);
  font-size: 12px;
  height: var(--topbar-h-mob);
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.topbar__date { color: #a8a8a8; }
.topbar__end { display: flex; align-items: center; gap: 8px; }
.topbar__end a { color: #cfcfcf; transition: color var(--t); padding: 4px 6px; }
.topbar__end a:hover { color: #fff; }
.topbar__sep { width: 1px; height: 12px; background: #2a2a2e; }

@media (max-width: 719px) {
  .topbar__date { display: none; }
  .topbar__weather { display: none; }
}

/* =================================================================
   MASTHEAD — fixed-height row on mobile (no clipping ever)
   ================================================================= */
.masthead {
  background: var(--page-bg);
  border-bottom: 1px solid var(--hairline);
  position: sticky; top: 0;
  z-index: 50;
}
.masthead__row {
  display: flex; align-items: center;
  height: var(--header-h-mob);
  gap: 8px;
}
.masthead__menu, .masthead__search-btn {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink);
}
.masthead__logo {
  flex: 1 1 auto;
  display: flex; align-items: center; justify-content: center;
}
.masthead__logo img { height: 32px; width: auto; }

@media (min-width: 720px) {
  .masthead__row { height: 96px; padding-block: 16px; }
  .masthead__menu { display: none; }
  .masthead__logo { justify-content: flex-end; flex: 0 0 auto; }
  .masthead__logo img { height: 64px; }
  .masthead__search-btn { display: none; }
  .masthead__row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 32px;
  }
  .masthead__tagline {
    font-family: var(--font-display);
    font-weight: 400;
    color: var(--stone);
    font-size: 17px;
    text-align: center;
    letter-spacing: 0.01em;
  }
  .masthead__search { display: flex; align-items: center; }
  .masthead__search input {
    border: 1px solid var(--hairline);
    background: var(--paper);
    padding: 10px 16px;
    font-family: var(--font-ui);
    font-size: 14px;
    width: 280px;
  }
  .masthead__search input:focus { outline: none; border-color: var(--red); }
}

/* =================================================================
   PRIMARY NAV — desktop inline / mobile drawer
   ================================================================= */
.nav { background: var(--page-bg); }
.nav__menu {
  display: flex; gap: 0;
  font-family: var(--font-ui);
  font-weight: 600; font-size: 15px;
}
.nav__menu a {
  display: inline-block;
  padding: 14px 18px;
  color: var(--ink);
  border-bottom: 2px solid transparent;
  transition: color var(--t), border-color var(--t);
}
.nav__menu a:hover { color: var(--red); border-bottom-color: var(--red); }
.nav__menu a.is-active { color: var(--red); border-bottom-color: var(--red); }

@media (min-width: 720px) {
  .nav { border-bottom: 1px solid var(--hairline); }
  .nav .container { display: flex; align-items: center; justify-content: space-between; }
  .nav__menu { gap: 4px; }
}
@media (max-width: 719px) {
  /* Drawer layout */
  .nav {
    position: fixed; inset: 0;
    background: rgba(10,10,10,0.4);
    z-index: 100;
    visibility: hidden; opacity: 0;
    transition: opacity var(--t), visibility var(--t);
  }
  .nav.is-open { visibility: visible; opacity: 1; }
  .nav__panel {
    position: absolute; inset-inline-end: 0; top: 0;
    width: min(86vw, 320px); height: 100%;
    background: var(--page-bg);
    box-shadow: -4px 0 24px rgba(0,0,0,0.18);
    display: flex; flex-direction: column;
    transform: translateX(100%); /* drawer hidden to the right (RTL: visually right) */
    transition: transform var(--t);
  }
  [dir="rtl"] .nav__panel { transform: translateX(-100%); }
  .nav.is-open .nav__panel { transform: translateX(0); }
  .nav__panel-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--hairline);
    height: var(--header-h-mob);
  }
  .nav__panel-head img { height: 24px; }
  .nav__close {
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
  }
  .nav__menu {
    flex-direction: column; gap: 0;
    padding-block: 8px;
    flex: 1 1 auto;
    overflow-y: auto;
  }
  .nav__menu a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--hairline);
    border-bottom-width: 1px;
  }
  .nav__panel-foot {
    padding: 16px;
    border-top: 1px solid var(--hairline);
    display: flex; gap: 12px; align-items: center;
  }
  .nav__panel-foot .lang-pill {
    font-family: var(--font-ui);
    font-size: 12px; font-weight: 600;
    padding: 6px 10px;
    border: 1px solid var(--hairline);
  }
}

/* =================================================================
   BREAKING BAR — bottom-fixed, NEVER clips, marquee scroll
   ================================================================= */
.breaking {
  position: fixed; left: 0; right: 0; bottom: 0;
  height: var(--breaking-h);
  background: var(--red-deep);
  color: #fff;
  z-index: 40;
  display: flex; align-items: stretch;
  font-family: var(--font-ui);
  font-size: 14px;
}
.breaking__pill {
  background: var(--red);
  color: #fff;
  font-weight: 700;
  padding: 0 14px;
  display: inline-flex; align-items: center; gap: 6px;
  letter-spacing: 0.02em;
  flex: 0 0 auto;
}
.breaking__pill::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: #fff; animation: blip 1.4s infinite;
}
@keyframes blip { 0%, 60%, 100% { opacity: 1; } 80% { opacity: 0.25; } }
.breaking__viewport {
  flex: 1 1 auto;
  overflow: hidden;
  position: relative;
  display: flex; align-items: center;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
}
.breaking__track {
  display: flex; align-items: center; gap: 48px;
  padding-inline-start: 16px;
  white-space: nowrap;
  animation: marquee 60s linear infinite; /* slower so it's readable */
}
.breaking__viewport:hover .breaking__track { animation-play-state: paused; }
.breaking__track .dot { color: rgba(255,255,255,0.45); }
@keyframes marquee {
  /* desktop: enters from the right, exits to the left */
  from { transform: translateX(100%); }
  to   { transform: translateX(-100%); }
}
@keyframes marquee-reverse {
  /* mobile: enters from the left, exits to the right (per Reda's request) */
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}
@media (max-width: 720px) {
  .breaking__track {
    animation-name: marquee-reverse;
    animation-duration: 70s; /* slightly slower again on mobile */
  }
}
.breaking__close {
  width: 44px; height: 100%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; opacity: 0.8;
  flex: 0 0 auto;
  transition: opacity var(--t);
}
.breaking__close:hover { opacity: 1; }
.breaking.is-dismissed { display: none; }

body.has-breaking-visible { padding-bottom: var(--breaking-h); }

/* =================================================================
   ROW / SECTION TITLES — accent line under heading
   ================================================================= */
.row { padding-block: 24px; }
.row__head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 0;
}
.row__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  margin: 0; color: var(--ink);
  letter-spacing: -0.01em;
}
.row__more {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--stone);
  transition: color var(--t);
}
.row__more:hover { color: var(--red); }
.row__accent {
  display: block; width: 60px; height: 3px;
  background: var(--red); margin-block: 6px 16px;
}
.row__accent--navy { background: var(--navy); }
.row__accent--sage { background: var(--sage); }
.row__accent--ochre { background: var(--ochre); }
.row__accent--ink { background: var(--ink); }

@media (min-width: 720px) {
  .row { padding-block: 36px; }
  .row__title { font-size: 26px; }
  .row__accent { margin-block: 8px 20px; }
}

/* =================================================================
   META / EYEBROW
   ================================================================= */
.meta {
  display: flex; align-items: center; flex-wrap: wrap;
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--stone);
  margin-bottom: 6px;
}
.meta__cat {
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.meta__cat--navy { color: var(--navy); }
.meta__cat--sage { color: var(--sage); }
.meta__cat--ochre { color: var(--ochre); }

.eyebrow {
  font-family: var(--font-ui);
  font-weight: 700; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--red);
  display: inline-flex; align-items: center; gap: 6px;
}
.eyebrow::before {
  content: ''; width: 6px; height: 6px;
  background: var(--red); border-radius: 1px;
}
.eyebrow--navy { color: var(--navy); }
.eyebrow--navy::before { background: var(--navy); }
.eyebrow--sage { color: var(--sage); }
.eyebrow--sage::before { background: var(--sage); }
.eyebrow--ochre { color: var(--ochre); }
.eyebrow--ochre::before { background: var(--ochre); }

/* =================================================================
   CARDS — desktop 4-up
   ================================================================= */
.card { display: block; }
.card__img {
  display: block; aspect-ratio: 16 / 10;
  background-position: center; background-size: cover;
  margin-bottom: 10px;
}
.card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px; line-height: 1.4;
  margin: 0; color: var(--ink);
}
.card__title a:hover { color: var(--red); }
@media (min-width: 720px) {
  .card__title { font-size: 18px; }
}

/* =================================================================
   MOBILE: PRIORITY (1 hero + 3 cards)
   ================================================================= */
.m-priority { padding-block: 16px; }
.m-priority__head { padding-bottom: 8px; }
.m-priority__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px; margin: 0; color: var(--ink);
}
.m-priority__hero { margin-bottom: 16px; }
.m-priority__hero-img {
  display: block; aspect-ratio: 16 / 10;
  background-position: center; background-size: cover;
  margin-bottom: 12px;
}
.m-priority__hero-eyebrow {
  font-family: var(--font-ui);
  font-weight: 700; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--red);
}
.m-priority__hero-title {
  font-family: var(--font-display);
  font-weight: 700; font-size: 22px;
  line-height: 1.35; margin: 6px 0 8px;
}
.m-priority__hero-dek {
  font-size: 14px; color: var(--stone); line-height: 1.7;
  margin: 0 0 8px;
}
.m-priority__hero-meta {
  font-family: var(--font-ui); font-size: 12px; color: var(--stone);
  margin: 0;
}
.m-priority__list {
  display: grid; grid-template-columns: 1fr; gap: 14px;
}
.m-priority__card {
  display: grid;
  grid-template-columns: 1fr 130px; /* TEXT | LARGE IMAGE — fix for "small images" bug */
  gap: 12px; align-items: start;
}
.m-priority__card-img {
  display: block; aspect-ratio: 1 / 1;
  background-position: center; background-size: cover;
}
.m-priority__card-eyebrow {
  font-family: var(--font-ui);
  font-weight: 700; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--red);
  display: block; margin-bottom: 4px;
}
.m-priority__card-title {
  font-family: var(--font-display);
  font-weight: 700; font-size: 15.5px;
  line-height: 1.4; margin: 0 0 4px;
}
.m-priority__card-meta {
  font-family: var(--font-ui); font-size: 11px; color: var(--stone);
  margin: 0;
}

/* =================================================================
   MOBILE: LATEST list (image right, text left, larger thumb)
   ================================================================= */
.m-latest { padding-block: 16px; border-top: 1px solid var(--hairline); }
.m-latest__title {
  font-family: var(--font-display);
  font-weight: 700; font-size: 20px;
  margin: 0 0 12px;
}
.m-latest__list {
  display: grid; grid-template-columns: 1fr; gap: 14px;
}
.m-latest__row {
  display: grid;
  grid-template-columns: 1fr 130px; /* same fix */
  gap: 12px; align-items: start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
}
.m-latest__row:last-child { border-bottom: 0; }
.m-latest__row-img {
  display: block; aspect-ratio: 1 / 1;
  background-position: center; background-size: cover;
}
.m-latest__row-eyebrow {
  font-family: var(--font-ui);
  font-weight: 700; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--red);
  display: block; margin-bottom: 4px;
}
.m-latest__row-title {
  font-family: var(--font-display);
  font-weight: 700; font-size: 15.5px;
  line-height: 1.4; margin: 0 0 4px;
}
.m-latest__row-meta {
  font-family: var(--font-ui); font-size: 11px; color: var(--stone);
  margin: 0;
}
.m-latest__more {
  display: inline-block; margin-top: 8px;
  font-family: var(--font-ui); font-size: 13px;
  color: var(--red);
}

/* =================================================================
   MOBILE: m-row (per-category) — bigger hero + bigger thumbs
   ================================================================= */
.m-row { padding-block: 16px; border-top: 1px solid var(--hairline); }
.m-row__head {
  display: flex; align-items: baseline; justify-content: space-between;
}
.m-row__title {
  font-family: var(--font-display);
  font-weight: 700; font-size: 20px;
  margin: 0;
}
.m-row__more {
  font-family: var(--font-ui); font-size: 12px; color: var(--stone);
}
.m-row__accent {
  display: block; width: 48px; height: 3px; background: var(--red);
  margin-block: 6px 12px;
}
.m-row__accent--navy { background: var(--navy); }
.m-row__accent--sage { background: var(--sage); }
.m-row__accent--ochre { background: var(--ochre); }

.m-row__hero { margin-bottom: 16px; }
.m-row__hero-img {
  display: block; aspect-ratio: 16 / 10;
  background-position: center; background-size: cover;
  margin-bottom: 8px;
}
.m-row__hero-meta {
  font-family: var(--font-ui); font-size: 11px; color: var(--stone);
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 4px;
}
.m-row__hero-meta .m-row__cat {
  font-weight: 700; color: var(--red);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.m-row__cat--navy { color: var(--navy) !important; }
.m-row__cat--sage { color: var(--sage) !important; }
.m-row__cat--ochre { color: var(--ochre) !important; }
.m-row__hero-title {
  font-family: var(--font-display);
  font-weight: 700; font-size: 18px;
  line-height: 1.4; margin: 0;
}

.m-row__list {
  display: grid; grid-template-columns: 1fr; gap: 12px;
}
.m-row__list li {
  display: grid;
  grid-template-columns: 1fr 130px; /* Larger image — fixes the bug */
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hairline);
}
.m-row__list li:last-child { border-bottom: 0; }
.m-row__item-img {
  display: block; aspect-ratio: 1 / 1;
  background-position: center; background-size: cover;
}
.m-row__item-meta {
  font-family: var(--font-ui); font-size: 11px; color: var(--stone);
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 4px;
}
.m-row__item-title {
  font-family: var(--font-display);
  font-weight: 700; font-size: 14.5px;
  line-height: 1.4; margin: 0;
}

/* =================================================================
   DESKTOP: HOME HERO (24h | featured | editorial)
   ================================================================= */
@media (min-width: 720px) {
  .home-hero { padding-block: 32px; border-bottom: 1px solid var(--hairline); }
  .home-hero__grid {
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    gap: 32px;
  }
  .latest24 { border-inline-end: 1px solid var(--hairline); padding-inline-end: 24px; }
  .latest24__title {
    font-family: var(--font-display);
    font-weight: 700; font-size: 18px; margin: 0 0 12px;
    color: var(--ink);
  }
  .latest24__list li {
    display: grid; grid-template-columns: 48px 1fr; gap: 8px;
    padding-block: 8px;
    border-bottom: 1px solid var(--hairline);
    font-family: var(--font-ui); font-size: 14px;
    line-height: 1.4;
  }
  .latest24__list li:last-child { border-bottom: 0; }
  .latest24__list time { color: var(--red); font-weight: 600; font-size: 12px; }
  .latest24__more { display: inline-block; margin-top: 12px;
    font-family: var(--font-ui); font-size: 12px; color: var(--red); }

  .featured__title {
    font-family: var(--font-display);
    font-weight: 800; font-size: 30px; line-height: 1.3;
    margin: 6px 0 12px;
  }
  .featured__img {
    display: block; aspect-ratio: 16/9;
    background-position: center; background-size: cover;
    margin-bottom: 12px;
  }
  .featured__dek {
    font-size: 16px; color: var(--stone); margin: 0;
  }

  .editorial { border-inline-start: 1px solid var(--hairline); padding-inline-start: 24px; }
  .editorial__block { margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--hairline); }
  .editorial__block:last-child { border-bottom: 0; }
  .editorial__label {
    font-family: var(--font-ui);
    font-weight: 700; font-size: 12px;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--red);
    margin: 0 0 8px;
  }
  .editorial__body { font-size: 14px; color: var(--body); line-height: 1.7; margin: 0 0 8px; }
  .editorial__more { font-family: var(--font-ui); font-size: 12px; color: var(--red); }
}

/* =================================================================
   DESKTOP: 4-up category row
   ================================================================= */
@media (min-width: 720px) {
  .row__grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  }
}

/* =================================================================
   FOOTER
   ================================================================= */
.footer {
  background: #0E0E10;
  color: #d8d8d8;
  margin-top: 32px;
  padding: 32px 0 80px;
  font-family: var(--font-ui);
}
.footer__inner {
  display: grid; grid-template-columns: 1fr; gap: 28px;
}
@media (min-width: 720px) {
  .footer { padding: 56px 0 96px; }
  .footer__inner {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
  }
}
.footer__brand img { height: 48px; margin-bottom: 12px; filter: invert(1) contrast(1.1); }
.footer__brand p { font-size: 14px; line-height: 1.7; color: #b8b8b8; margin: 0 0 16px; }
.footer__heading {
  font-family: var(--font-display);
  font-weight: 700; font-size: 14px;
  color: #fff; letter-spacing: 0.04em;
  margin: 0 0 12px;
  text-transform: uppercase;
}
.footer__links li { padding-block: 4px; }
.footer__links a { color: #b8b8b8; transition: color var(--t); font-size: 14px; }
.footer__links a:hover { color: #fff; }

/* Newsletter form (footer) */
.footer__newsletter form {
  display: flex; align-items: stretch;
  border: 1px solid #2a2a2e;
}
.footer__newsletter input {
  flex: 1 1 auto;
  background: transparent; border: 0;
  padding: 10px 12px;
  font-size: 14px; color: #fff;
}
.footer__newsletter input::placeholder { color: #6e6e72; }
.footer__newsletter input:focus { outline: none; }
.footer__newsletter button {
  background: var(--red);
  color: #fff;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 14px;
}
.footer__newsletter p {
  font-size: 12px; color: #8a8a8e; margin: 8px 0 0;
}

/* === FIXED Social bar — single row of icon-only buttons === */
.footer__social-heading {
  font-family: var(--font-display);
  font-weight: 700; font-size: 13px;
  color: #fff; letter-spacing: 0.04em;
  margin: 16px 0 10px; text-transform: uppercase;
}
.footer__social {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.footer__social a {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #2a2a2e;
  color: #d8d8d8;
  transition: color var(--t), border-color var(--t), background var(--t);
}
.footer__social a:hover { color: #fff; border-color: #4a4a4e; background: #1a1a1d; }
.footer__social a.fb:hover    { color: #fff; border-color: #1877F2; background: #1877F2; }
.footer__social a.ig:hover    { color: #fff; border-color: #C13584; background: linear-gradient(45deg,#F58529,#DD2A7B,#8134AF,#515BD4); }
.footer__social a.x:hover     { color: #fff; border-color: #fff; background: #000; }
.footer__social a.yt:hover    { color: #fff; border-color: #FF0000; background: #FF0000; }
.footer__social svg { width: 18px; height: 18px; }

.footer__legal {
  border-top: 1px solid #1f1f23;
  margin-top: 28px; padding-top: 16px;
  font-size: 12px; color: #6e6e72;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
}

/* =================================================================
   ARTICLE (single)
   ================================================================= */
.article { padding-block: 16px 32px; }
.article__crumbs {
  font-family: var(--font-ui); font-size: 12px; color: var(--stone);
  margin-bottom: 10px;
}
.article__crumbs a { color: var(--stone); }
.article__crumbs a:hover { color: var(--red); }
.article__crumbs .sep { margin-inline: 6px; opacity: 0.6; }

.article__eyebrow { margin-bottom: 8px; }
.article__title {
  font-family: var(--font-display);
  font-weight: 800; font-size: 26px;
  line-height: 1.3; margin: 0 0 10px;
  color: var(--ink); letter-spacing: -0.01em;
}
.article__dek {
  font-family: var(--font-display);
  font-weight: 400; font-size: 18px;
  line-height: 1.6; color: var(--stone);
  margin: 0 0 16px;
}
.article__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-family: var(--font-ui); font-size: 12px;
  color: var(--stone);
  border-block: 1px solid var(--hairline);
  padding-block: 10px;
  margin-bottom: 16px;
}
.article__meta strong { color: var(--ink); font-weight: 700; }
.article__meta a { color: var(--red); }

.article__hero { margin: 0 0 12px; }
.article__hero img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 16 / 7; object-fit: cover;
  max-height: 420px;
}
.article__hero figcaption {
  font-family: var(--font-ui); font-size: 12px; color: var(--stone);
  padding-block: 6px;
}
@media (max-width: 720px) {
  .article__hero img { aspect-ratio: 4 / 3; max-height: 260px; }
}

.article__body { font-size: 17px; line-height: 1.85; color: var(--body); }
.article__body p { margin: 0 0 16px; }
.article__body h2 {
  font-family: var(--font-display);
  font-weight: 700; font-size: 22px;
  margin: 28px 0 8px; color: var(--ink);
}
.article__body blockquote {
  border-inline-start: 4px solid var(--red);
  padding-inline-start: 14px;
  margin: 18px 0;
  font-style: normal; font-weight: 500;
  color: var(--ink); font-size: 18px;
}

.article__tags {
  margin-top: 24px; padding-top: 16px;
  border-top: 1px solid var(--hairline);
  display: flex; flex-wrap: wrap; gap: 8px;
}
.article__tag {
  font-family: var(--font-ui); font-size: 12px;
  padding: 6px 10px; border: 1px solid var(--hairline);
  color: var(--stone);
}
.article__tag:hover { border-color: var(--red); color: var(--red); }

@media (min-width: 720px) {
  .article { padding-block: 24px 48px; }
  .article__layout {
    display: grid; grid-template-columns: 1fr 320px; gap: 40px;
  }
  .article__title { font-size: 38px; }
  .article__dek { font-size: 22px; }
  .article__body { font-size: 18px; }
}

.aside-related {
  border-inline-start: 1px solid var(--hairline);
  padding-inline-start: 24px;
}
.aside-related__title {
  font-family: var(--font-display);
  font-weight: 700; font-size: 16px;
  margin: 0 0 12px; color: var(--ink);
}
.aside-related__list { display: grid; grid-template-columns: 1fr; gap: 14px; }
.aside-related__item {
  display: grid; grid-template-columns: 1fr 96px; gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
}
.aside-related__item:last-child { border-bottom: 0; }
.aside-related__img {
  aspect-ratio: 1/1; background-size: cover; background-position: center;
}
.aside-related__t {
  font-family: var(--font-display);
  font-weight: 700; font-size: 13px;
  line-height: 1.4;
}

/* =================================================================
   STICKY SHARE BAR (bottom on mobile, side on desktop)
   ================================================================= */
.share {
  position: fixed; bottom: var(--breaking-h); left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--hairline);
  padding: 8px var(--gutter);
  display: flex; gap: 8px; align-items: center;
  z-index: 30;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.06);
}
.share span {
  font-family: var(--font-ui); font-size: 12px; color: var(--stone);
}
.share a {
  flex: 1 1 auto;
  display: inline-flex; align-items: center; justify-content: center;
  height: 36px;
  border: 1px solid var(--hairline);
  font-size: 13px; color: var(--ink);
  font-family: var(--font-ui);
  gap: 6px;
}
.share a svg { width: 14px; height: 14px; }
.share a:hover { background: var(--surface-alt); }

@media (min-width: 720px) {
  .share {
    position: sticky; top: 120px; bottom: auto;
    inset-inline-start: 0;
    width: 56px;
    flex-direction: column;
    border: 1px solid var(--hairline);
    padding: 8px;
    box-shadow: none;
    height: max-content;
  }
  .share span { display: none; }
  .share a { width: 40px; height: 40px; flex: 0 0 auto; }
  .share a span { display: none; }
}

/* =================================================================
   CATEGORY (archive) — Aljazeera-style hero3
   ================================================================= */
.cathead { padding-block: 24px 16px; text-align: center; }
.cathead__title {
  font-family: var(--font-display);
  font-weight: 800; font-size: 28px;
  margin: 0 0 6px; color: var(--ink);
  letter-spacing: -0.01em;
}
.cathead__sub {
  font-family: var(--font-display);
  color: var(--stone); font-size: 15px;
  margin: 0 0 12px;
}
.cathead__accent {
  display: inline-block; width: 60px; height: 3px;
  background: var(--red);
}
@media (min-width: 720px) {
  .cathead__title { font-size: 38px; }
  .cathead__sub { font-size: 17px; }
}

.subnav {
  display: flex; gap: 4px; overflow-x: auto;
  padding-block: 8px;
  border-block: 1px solid var(--hairline);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.subnav::-webkit-scrollbar { display: none; }
.subnav a {
  flex: 0 0 auto;
  font-family: var(--font-ui); font-size: 13px;
  padding: 6px 14px;
  border: 1px solid var(--hairline);
  color: var(--ink);
  white-space: nowrap;
  transition: color var(--t), border-color var(--t), background var(--t);
}
.subnav a:hover, .subnav a.is-active {
  color: var(--red); border-color: var(--red);
}

.hero3 { padding-block: 24px; }
.hero3__inner {
  display: grid; grid-template-columns: 1fr; gap: 16px;
}
@media (min-width: 980px) {
  .hero3__inner {
    grid-template-columns: 1fr 1.6fr 1fr;
    gap: 24px;
  }
}
.hero3__col { display: grid; grid-template-columns: 1fr; gap: 16px; }
.feat-card {
  position: relative;
  display: block;
}
.feat-card img {
  display: block; width: 100%;
  aspect-ratio: 16/10; object-fit: cover;
}
.feat-card__body {
  padding: 14px;
  background: var(--surface-alt);
  border-bottom: 3px solid var(--red);
}
.feat-card__title {
  font-family: var(--font-display);
  font-weight: 700; font-size: 20px;
  line-height: 1.3; margin: 6px 0;
  color: var(--ink);
}
.feat-card__dek {
  font-size: 14px; color: var(--stone); line-height: 1.7;
  margin: 0 0 6px;
}
.feat-card__date {
  font-family: var(--font-ui); font-size: 12px;
  color: var(--stone);
}

.side-card { display: grid; grid-template-columns: 1fr 130px; gap: 12px; }
.side-card img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1/1; }
.side-card h3 {
  font-family: var(--font-display);
  font-weight: 700; font-size: 16px;
  line-height: 1.4; margin: 6px 0;
}
.side-card .ajx-date { font-family: var(--font-ui); font-size: 11px; color: var(--stone); }
@media (min-width: 980px) {
  .side-card { grid-template-columns: 1fr; }
  .side-card img { aspect-ratio: 16/10; }
}

.quad {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  padding-block: 24px;
  border-top: 1px solid var(--hairline);
}
@media (min-width: 720px) {
  .quad { grid-template-columns: repeat(4, 1fr); gap: 24px; }
}
.quad img {
  display: block; width: 100%;
  aspect-ratio: 16 / 10; object-fit: cover;
  margin-bottom: 8px;
}
.quad h3 {
  font-family: var(--font-display);
  font-weight: 700; font-size: 16px;
  margin: 4px 0;
}

.banner {
  display: grid; grid-template-columns: 1fr; gap: 16px;
  padding: 24px 0;
  border-block: 1px solid var(--hairline);
}
@media (min-width: 720px) {
  .banner { grid-template-columns: 1fr 1.4fr; gap: 24px; }
}
.banner__newsletter {
  background: var(--surface-alt);
  padding: 24px;
  border-inline-start: 4px solid var(--red);
}
.banner__newsletter h3 {
  font-family: var(--font-display);
  font-weight: 700; font-size: 20px;
  margin: 0 0 6px;
}
.banner__newsletter p {
  font-size: 14px; color: var(--stone); margin: 0 0 12px;
}
.banner__newsletter form {
  display: flex; align-items: stretch; border: 1px solid var(--hairline); background: #fff;
}
.banner__newsletter input {
  flex: 1 1 auto; padding: 10px 12px; border: 0; background: transparent;
}
.banner__newsletter input:focus { outline: none; }
.banner__newsletter button {
  background: var(--red); color: #fff; padding: 10px 18px; font-weight: 700;
}
.banner__newsletter small { display: block; margin-top: 8px; font-size: 11px; color: var(--stone); }

.banner__video { position: relative; }
.banner__video img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.banner__video .play {
  position: absolute; inset: 0; margin: auto;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(0,0,0,0.7); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.banner__video .dur {
  position: absolute; inset-inline-end: 8px; inset-block-end: 8px;
  background: rgba(0,0,0,0.8); color: #fff;
  padding: 2px 6px; font-size: 11px; font-family: var(--font-ui);
}
.banner__video__body { padding-top: 12px; }
.banner__video__body h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 18px; margin: 0 0 6px;
}

.rowlist { padding-block: 24px; }
.rowlist__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.rowlist__heading { font-family: var(--font-display); font-weight: 700; font-size: 18px; margin: 0; }
.rowlist__items { display: grid; grid-template-columns: 1fr; gap: 16px; }
.rowlist__item {
  display: grid; grid-template-columns: 1fr 130px; gap: 12px;
  padding-bottom: 16px; border-bottom: 1px solid var(--hairline);
}
.rowlist__item:last-child { border-bottom: 0; }
.rowlist__item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1/1; }
.rowlist__item h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  line-height: 1.4; margin: 4px 0;
}
.rowlist__item p { font-size: 13px; color: var(--stone); margin: 0 0 6px; }
@media (min-width: 720px) {
  .rowlist__item { grid-template-columns: 200px 1fr; gap: 16px; }
  .rowlist__item img { aspect-ratio: 16/10; }
  .rowlist__item h3 { font-size: 18px; }
}

.pagination {
  padding-block: 24px;
  display: flex; gap: 6px; justify-content: center;
}
.pagination a, .pagination span {
  font-family: var(--font-ui); font-size: 14px;
  padding: 8px 12px; border: 1px solid var(--hairline);
  color: var(--ink);
}
.pagination a:hover { color: var(--red); border-color: var(--red); }
.pagination .current {
  background: var(--ink); color: #fff; border-color: var(--ink);
}

/* =================================================================
   GENERIC PAGE (about, privacy, …)
   ================================================================= */
.page { padding-block: 24px 48px; }
.page h1 {
  font-family: var(--font-display);
  font-weight: 800; font-size: 28px;
  margin: 0 0 10px;
}
.page h2 {
  font-family: var(--font-display);
  font-weight: 700; font-size: 20px;
  margin: 24px 0 8px;
}
.page p { font-size: 16px; line-height: 1.85; margin: 0 0 14px; color: var(--body); }
.page ul { margin: 0 0 14px; padding-inline-start: 24px; list-style: disc; }
.page li { margin-bottom: 8px; }
.page__lead {
  font-family: var(--font-display);
  font-size: 18px; line-height: 1.7; color: var(--stone);
  margin-bottom: 24px;
}
@media (min-width: 720px) {
  .page h1 { font-size: 36px; }
  .page__lead { font-size: 20px; }
}

/* =================================================================
   FORM (contact)
   ================================================================= */
.form { display: grid; gap: 12px; }
.form label { font-family: var(--font-ui); font-size: 13px; color: var(--ink); }
.form input, .form textarea, .form select {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--hairline);
  background: var(--paper);
  font-size: 14px; font-family: var(--font-ui);
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--red); }
.form button {
  background: var(--ink); color: #fff;
  padding: 12px 24px; font-weight: 700; font-family: var(--font-ui);
  font-size: 14px;
  align-self: start;
}
.form button:hover { background: var(--red); }

/* =================================================================
   SEARCH
   ================================================================= */
.search-input-big {
  display: flex; align-items: stretch;
  border: 1px solid var(--hairline); background: #fff;
  margin-bottom: 24px;
}
.search-input-big input { flex: 1 1 auto; padding: 14px 16px; border: 0; background: transparent; font-size: 16px; }
.search-input-big input:focus { outline: none; }
.search-input-big button { background: var(--ink); color: #fff; padding: 0 20px; font-weight: 700; }

/* =================================================================
   404
   ================================================================= */
.notfound { text-align: center; padding-block: 48px; }
.notfound__num {
  font-family: var(--font-display);
  font-weight: 800; font-size: 96px;
  color: var(--red); line-height: 1; margin: 0 0 12px;
}
.notfound h1 {
  font-family: var(--font-display);
  font-weight: 700; font-size: 24px; margin: 0 0 12px;
}
.notfound p { color: var(--stone); margin: 0 auto 20px; max-width: 500px; }
.notfound__cta {
  display: inline-block;
  background: var(--ink); color: #fff;
  padding: 12px 24px; font-family: var(--font-ui); font-weight: 700;
}
.notfound__cta:hover { background: var(--red); color: #fff; }

/* =================================================================
   NEWSLETTER ARCHIVE
   ================================================================= */
.nl-list { display: grid; grid-template-columns: 1fr; gap: 16px; padding-block: 16px; }
@media (min-width: 720px) {
  .nl-list { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
.nl-card {
  border: 1px solid var(--hairline); padding: 20px;
  background: var(--paper);
  transition: border-color var(--t), box-shadow var(--t);
}
.nl-card:hover { border-color: var(--red); box-shadow: 0 4px 16px rgba(139,0,0,0.08); }
.nl-card__date {
  font-family: var(--font-ui); font-size: 12px; color: var(--red);
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.nl-card h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  margin: 0 0 8px;
}
.nl-card p { font-size: 14px; color: var(--stone); line-height: 1.7; margin: 0 0 8px; }
.nl-card__more { font-family: var(--font-ui); font-size: 12px; color: var(--red); }

/* =================================================================
   AUTHOR
   ================================================================= */
.author-head {
  padding-block: 24px;
  border-bottom: 1px solid var(--hairline);
  display: grid; grid-template-columns: 80px 1fr; gap: 16px;
  align-items: center;
}
.author-head__avatar {
  width: 80px; height: 80px;
  background-size: cover; background-position: center;
  border-radius: 50%;
}
.author-head__name {
  font-family: var(--font-display); font-weight: 800; font-size: 22px; margin: 0 0 4px;
}
.author-head__role { font-family: var(--font-ui); font-size: 13px; color: var(--stone); margin: 0 0 6px; }
.author-head__bio { font-size: 14px; color: var(--body); margin: 0; line-height: 1.7; }
@media (min-width: 720px) {
  .author-head { grid-template-columns: 120px 1fr; gap: 24px; }
  .author-head__avatar { width: 120px; height: 120px; }
  .author-head__name { font-size: 28px; }
  .author-head__bio { font-size: 15px; }
}

/* =================================================================
   DESIGN-SYSTEM page
   ================================================================= */
.ds-section { padding-block: 24px; border-bottom: 1px solid var(--hairline); }
.ds-section h2 { font-family: var(--font-display); font-weight: 700; font-size: 22px; margin: 0 0 12px; }
.ds-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.swatch { border: 1px solid var(--hairline); }
.swatch__chip { aspect-ratio: 1 / 1; background: #ccc; }
.swatch__label {
  padding: 8px 10px; font-family: var(--font-ui); font-size: 12px;
  display: flex; justify-content: space-between; gap: 8px;
}
.swatch__label code { color: var(--stone); font-family: 'SF Mono', Menlo, monospace; }
.type-sample { padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.type-sample p { margin: 0; }
.type-sample__label {
  font-family: var(--font-ui); font-size: 11px; color: var(--stone);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin: 0 0 4px !important;
}

/* =================================================================
   PAGE NAVIGATION (top of mockup, helps user navigate)
   ================================================================= */
.mockup-nav {
  background: #FFF8E1; border-bottom: 2px solid var(--ochre);
  padding: 8px 12px; font-family: var(--font-ui); font-size: 12px;
}
.mockup-nav strong { color: var(--ochre); margin-inline-end: 8px; }
.mockup-nav a { color: var(--ink); margin-inline-end: 12px; padding: 2px 6px; border: 1px solid transparent; }
.mockup-nav a:hover { border-color: var(--ochre); color: var(--ochre); }
.mockup-nav a.is-active { background: var(--ochre); color: #fff; }

/* =================================================================
   UTILITIES
   ================================================================= */
.bg-1 { background-image: url('assets/img/bg-1.svg'); }
.bg-2 { background-image: url('assets/img/bg-2.svg'); }
.bg-3 { background-image: url('assets/img/bg-3.svg'); }
.bg-4 { background-image: url('assets/img/bg-4.svg'); }
.bg-5 { background-image: url('assets/img/bg-5.svg'); }
.bg-6 { background-image: url('assets/img/bg-6.svg'); }
.bg-7 { background-image: url('assets/img/bg-7.svg'); }
.bg-8 { background-image: url('assets/img/bg-8.svg'); }
.bg-9 { background-image: url('assets/img/bg-9.svg'); }
.bg-10 { background-image: url('assets/img/bg-10.svg'); }
.bg-11 { background-image: url('assets/img/bg-11.svg'); }
.bg-12 { background-image: url('assets/img/bg-12.svg'); }

/* =================================================================
   PAGE: standard layout for static pages (about, privacy, editorial)
   ================================================================= */
.page__head { padding-block: 32px 16px; border-bottom: 1px solid var(--hairline); margin-bottom: 24px; }
.page__eyebrow {
  font-family: var(--font-ui); font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--red);
  margin: 0 0 8px;
}
.page__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 32px; line-height: 1.2; margin: 0 0 12px; color: var(--ink);
}
.page__lede {
  font-size: 18px; line-height: 1.6; color: var(--body);
  max-width: 720px; margin: 0;
}
.page__body { max-width: 720px; }
.page__body h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 22px; line-height: 1.3; margin: 28px 0 12px;
  color: var(--ink);
}
.page__body h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 18px; margin: 20px 0 8px; color: var(--ink);
}
.page__body p { font-size: 16px; line-height: 1.85; margin: 0 0 14px; color: var(--body); }
.page__body ul { margin: 0 0 14px; padding-inline-start: 24px; list-style: disc; }
.page__body li { margin-bottom: 8px; line-height: 1.7; }
.page__body a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.page__body hr { margin: 16px 0; border: 0; border-top: 1px solid var(--hairline); }
@media (min-width: 720px) {
  .page__title { font-size: 42px; }
}

.about__pillars {
  display: grid; grid-template-columns: 1fr; gap: 16px;
  margin-block: 16px 24px;
}
@media (min-width: 720px) {
  .about__pillars { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
.about__pillar {
  border: 1px solid var(--hairline);
  padding: 18px; background: #FAF7F2;
}
.about__pillar h3 { margin: 0 0 8px; font-size: 17px; }
.about__pillar p { margin: 0; font-size: 14px; }
.about__team {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
  margin-block: 16px 24px;
}
@media (min-width: 720px) {
  .about__team { grid-template-columns: repeat(3, 1fr); }
}
.about__member {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
}
.about__member img {
  width: 80px; height: 80px; object-fit: cover; border-radius: 50%;
  border: 2px solid var(--hairline);
}
.about__member strong { font-size: 16px; color: var(--ink); }
.about__member span { font-size: 13px; color: var(--stone); font-family: var(--font-ui); }
.about__legal {
  background: #FAF7F2; border: 1px solid var(--hairline);
  padding: 16px 18px; margin-top: 24px; font-size: 14px;
}

.form label { display: block; }
.form label span { display: block; font-weight: 500; margin-bottom: 4px; }
.form__checkbox { display: flex !important; gap: 8px; align-items: flex-start; font-size: 13px !important; }
.form__checkbox input { width: auto !important; margin: 0; }
.form__checkbox span { font-weight: 400 !important; margin: 0 !important; }
.form button { width: auto; padding: 10px 22px; cursor: pointer; }

.contact__grid {
  display: grid; grid-template-columns: 1fr; gap: 32px;
}
@media (min-width: 720px) {
  .contact__grid { grid-template-columns: 1.4fr 1fr; gap: 48px; }
}
.contact__aside { display: grid; gap: 16px; align-content: start; }
.contact__card {
  border: 1px solid var(--hairline); padding: 18px; background: #fff;
}
.contact__card h3 { margin: 0 0 8px; font-size: 16px; color: var(--ink); }
.contact__card p { font-size: 14px; line-height: 1.7; margin: 0 0 6px; color: var(--body); }
.contact__card hr { margin: 12px 0; border: 0; border-top: 1px solid var(--hairline); }
.contact__card address { font-style: normal; font-size: 14px; line-height: 1.7; color: var(--body); margin-bottom: 6px; }

.search__head { padding-block: 32px 16px; border-bottom: 1px solid var(--hairline); margin-bottom: 16px; }
.search__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 24px; line-height: 1.3; margin: 0 0 16px;
}
.search__title em { font-style: normal; color: var(--red); }
@media (min-width: 720px) { .search__title { font-size: 32px; } }
.search__form {
  display: flex; align-items: center; gap: 8px;
  border: 2px solid var(--ink); padding: 0; background: #fff;
  max-width: 600px;
}
.search__form input {
  flex: 1; border: 0; padding: 12px 14px; font: inherit; background: transparent;
  outline: none;
}
.search__form button {
  border: 0; background: var(--ink); color: #fff;
  width: 44px; height: 44px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.search__filters {
  display: flex; gap: 6px; overflow-x: auto;
  margin-top: 16px; scrollbar-width: none; padding-bottom: 4px;
}
.search__filters::-webkit-scrollbar { display: none; }
.search__filters a {
  flex: 0 0 auto; font-family: var(--font-ui); font-size: 13px;
  padding: 6px 12px; border: 1px solid var(--hairline);
  color: var(--ink); white-space: nowrap;
}
.search__filters a.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.rowlist mark { background: #FFF3B0; color: inherit; padding: 0 2px; }

.author__head {
  display: grid; grid-template-columns: 100px 1fr; gap: 16px; align-items: start;
  padding-block: 24px; border-bottom: 1px solid var(--hairline); margin-bottom: 16px;
}
.author__avatar {
  width: 100px; height: 100px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--hairline);
}
.author__role {
  font-family: var(--font-ui); font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--red);
  margin: 0 0 6px;
}
.author__name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 28px; line-height: 1.15; margin: 0 0 10px;
}
.author__bio {
  font-size: 15px; line-height: 1.7; color: var(--body); margin: 0 0 12px;
  max-width: 720px;
}
.author__social {
  font-family: var(--font-ui); font-size: 13px; color: var(--stone); margin-bottom: 8px;
}
.author__social a { color: var(--red); }
.author__stats {
  display: flex; gap: 24px; font-family: var(--font-ui); font-size: 13px; color: var(--stone);
}
.author__stats strong { color: var(--ink); }
@media (min-width: 720px) {
  .author__head { grid-template-columns: 140px 1fr; gap: 24px; padding-block: 36px; }
  .author__avatar { width: 140px; height: 140px; }
  .author__name { font-size: 38px; }
}

.newsletter__head {
  text-align: center; padding-block: 32px 24px;
  border-bottom: 1px solid var(--hairline); margin-bottom: 32px;
}
.newsletter__eyebrow {
  font-family: var(--font-ui); font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--red);
  margin: 0 0 12px;
}
.newsletter__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 36px; line-height: 1.15; margin: 0 0 12px;
}
.newsletter__lede {
  font-size: 17px; line-height: 1.6; color: var(--body);
  max-width: 640px; margin: 0 auto 24px;
}
.newsletter__form {
  display: flex; max-width: 520px; margin: 0 auto 8px;
  border: 2px solid var(--ink); background: #fff;
}
.newsletter__form input { flex: 1; border: 0; padding: 12px 14px; font: inherit; outline: none; }
.newsletter__form button {
  border: 0; padding: 0 22px; cursor: pointer;
  font-family: var(--font-ui); font-size: 14px; font-weight: 600;
}
.newsletter__legal { display: block; font-size: 12px; color: var(--stone); margin: 0 auto 24px; }
.newsletter__legal a { color: var(--red); }
.newsletter__stats {
  display: flex; justify-content: center; gap: 32px; flex-wrap: wrap;
  list-style: none; padding: 0; margin: 0;
}
.newsletter__stats li {
  display: flex; flex-direction: column; align-items: center;
  font-family: var(--font-ui); font-size: 12px; color: var(--stone);
}
.newsletter__stats strong {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  color: var(--ink); display: block;
}
@media (min-width: 720px) {
  .newsletter__title { font-size: 52px; }
  .newsletter__lede { font-size: 19px; }
}
.section-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 22px; margin: 0 0 18px; padding-bottom: 8px;
  border-bottom: 2px solid var(--ink);
}
@media (min-width: 720px) { .section-title { font-size: 28px; } }
.newsletter__editions { padding-block: 32px; }
.editions__grid {
  display: grid; grid-template-columns: 1fr; gap: 16px;
}
@media (min-width: 720px) {
  .editions__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
.edition {
  border: 1px solid var(--hairline); padding: 20px; background: #FAF7F2;
  display: flex; flex-direction: column; gap: 8px;
}
.edition__time {
  font-family: var(--font-ui); font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--red);
}
.edition__name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 20px; margin: 0;
}
.edition p { font-size: 14px; line-height: 1.7; margin: 0; color: var(--body); }
.edition__cta {
  font-family: var(--font-ui); font-size: 13px; font-weight: 600;
  color: var(--red); margin-top: auto; align-self: flex-start;
  padding: 8px 14px; border: 1px solid var(--red);
}
.edition__cta:hover { background: var(--red); color: #fff; }
.newsletter__archive { padding-block: 32px; }
.archive__list {
  list-style: none; padding: 0; margin: 0;
  border-top: 1px solid var(--hairline);
}
.archive__list li {
  display: grid; grid-template-columns: 1fr;
  padding: 14px 0; border-bottom: 1px solid var(--hairline);
  gap: 4px;
}
@media (min-width: 720px) {
  .archive__list li { grid-template-columns: 130px 1fr 80px; gap: 16px; align-items: baseline; }
}
.archive__date { font-family: var(--font-ui); font-size: 13px; color: var(--stone); }
.archive__list a { color: var(--ink); }
.archive__list a:hover { color: var(--red); }
.archive__count { font-family: var(--font-ui); font-size: 12px; color: var(--stone); }
.archive__more { margin-top: 16px; text-align: center; }
.archive__more a { color: var(--red); font-family: var(--font-ui); font-weight: 600; font-size: 14px; }
.newsletter__why { padding-block: 32px 48px; }
.why__grid {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: 18px; margin: 0;
}
@media (min-width: 720px) {
  .why__grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}
.why__grid li { padding: 0; margin: 0; }
.why__grid h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 17px; margin: 0 0 6px;
}
.why__grid p { font-size: 14px; line-height: 1.7; color: var(--body); margin: 0; }

.issue { max-width: 720px; padding-block: 32px 48px; }
.issue__head { border-bottom: 1px solid var(--hairline); padding-bottom: 16px; margin-bottom: 24px; }
.issue__eyebrow {
  font-family: var(--font-ui); font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--red);
  margin: 0 0 8px;
}
.issue__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 28px; line-height: 1.2; margin: 0 0 8px;
}
@media (min-width: 720px) { .issue__title { font-size: 36px; } }
.issue__date { font-family: var(--font-ui); font-size: 13px; color: var(--stone); margin: 0 0 12px; }
.issue__from {
  font-style: italic; color: var(--body); margin: 0;
  padding: 12px 14px; background: #FAF7F2; border-inline-start: 3px solid var(--red);
}
.issue__section { margin-bottom: 32px; }
.issue__section-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 18px; margin: 0 0 14px; padding-bottom: 6px;
  border-bottom: 2px solid var(--ink);
}
.issue__lead h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 22px; line-height: 1.3; margin: 12px 0 10px;
}
.issue__lead h3 a { color: var(--ink); }
.issue__lead p { font-size: 16px; line-height: 1.75; margin: 0 0 10px; }
.issue__list { list-style: none; padding: 0; margin: 0; }
.issue__list li { padding-block: 12px; border-bottom: 1px solid var(--hairline); }
.issue__list li:last-child { border-bottom: 0; }
.issue__list h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 17px; line-height: 1.35; margin: 0 0 6px;
}
.issue__list h3 a { color: var(--ink); }
.issue__list h3 a:hover { color: var(--red); }
.issue__list p { font-size: 14px; line-height: 1.65; margin: 0; color: var(--body); }
.issue__foot {
  margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--hairline);
  font-size: 12px; color: var(--stone);
}
.issue__foot a { color: var(--red); }

.error { padding-block: 48px; min-height: 50vh; }
.error__inner { max-width: 600px; text-align: center; margin: 0 auto; }
.error__code {
  font-family: var(--font-display); font-weight: 700;
  font-size: 96px; color: var(--red); line-height: 1; margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.error__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 28px; line-height: 1.2; margin: 0 0 12px;
}
@media (min-width: 720px) { .error__title { font-size: 36px; } .error__code { font-size: 128px; } }
.error__lede { font-size: 17px; line-height: 1.6; color: var(--body); margin: 0 0 24px; }
.error__actions {
  display: flex; justify-content: center; gap: 12px; margin-bottom: 32px;
  flex-wrap: wrap;
}
.error__search {
  display: flex; max-width: 480px; margin: 0 auto 32px;
  border: 2px solid var(--ink); background: #fff;
}
.error__search input {
  flex: 1; border: 0; padding: 12px 14px; font: inherit; outline: none; text-align: start;
}
.error__search button {
  border: 0; background: var(--ink); color: #fff;
  width: 44px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.error__suggestions { text-align: start; }
.error__suggestions h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 17px; margin: 0 0 12px;
}
.error__suggestions ul {
  list-style: none; padding: 0; margin: 0;
  border-top: 1px solid var(--hairline);
}
.error__suggestions li { padding: 10px 0; border-bottom: 1px solid var(--hairline); }
.error__suggestions a { color: var(--red); font-weight: 500; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-ui); font-size: 14px; font-weight: 600;
  padding: 10px 20px; border: 1px solid var(--ink); cursor: pointer;
  text-decoration: none;
}
.btn--primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--primary:hover { background: var(--red); border-color: var(--red); }
.btn--ghost { background: #fff; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--text { background: transparent; border-color: transparent; color: var(--red); padding: 4px 0; }

.meta__cat--olive { background: var(--olive); color: #fff; }
.meta__cat--ochre { background: var(--ochre); color: #fff; }
.meta__cat--stone { background: var(--stone); color: #fff; }

.ds { padding-block: 32px 48px; max-width: 100%; }
.ds__head { padding-bottom: 16px; border-bottom: 1px solid var(--hairline); margin-bottom: 32px; }
.ds__eyebrow {
  font-family: var(--font-ui); font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--red);
  margin: 0 0 8px;
}
.ds__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 36px; line-height: 1.15; margin: 0 0 12px;
}
.ds__lede { font-size: 17px; line-height: 1.6; color: var(--body); max-width: 720px; margin: 0; }
.ds__section { padding-block: 24px; border-top: 1px solid var(--hairline); }
.ds__section-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 22px; margin: 0 0 8px;
}
.ds__section-lede { font-size: 14px; color: var(--body); margin: 0 0 18px; max-width: 720px; }
.ds__h3 { font-family: var(--font-display); font-weight: 600; font-size: 16px; margin: 24px 0 12px; }
.ds__swatches {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.ds__swatches--neutral .swatch { min-height: 80px; }
.swatch {
  border: 0; padding: 14px; min-height: 110px;
  display: flex; flex-direction: column; gap: 4px; justify-content: flex-end;
  font-family: var(--font-ui); font-size: 13px;
}
.swatch strong { font-size: 14px; }
.swatch code { font-family: 'SF Mono', Menlo, monospace; font-size: 12px; opacity: 0.85; }
.swatch span { font-size: 11px; opacity: 0.85; }
.ds__type { display: grid; gap: 24px; margin-bottom: 16px; }
.ds__type-spec small {
  display: block; font-family: var(--font-ui); font-size: 11px;
  font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--stone); margin-bottom: 8px;
}
.ds__type-spec p { margin: 0; }
.ds__scale {
  width: 100%; border-collapse: collapse;
  font-family: var(--font-ui); font-size: 13px;
}
.ds__scale th, .ds__scale td {
  text-align: start; padding: 8px 12px; border-bottom: 1px solid var(--hairline);
}
.ds__scale th { font-weight: 600; color: var(--stone); background: #FAF7F2; }
.ds__components {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  padding: 18px; background: #FAF7F2; border: 1px solid var(--hairline);
  margin-bottom: 12px;
}
.ds__card-demo {
  max-width: 360px; border: 1px solid var(--hairline); background: #fff;
}
.ds__card-body { padding: 14px; }
.ds__card-body h3 { font-size: 18px; margin: 8px 0; }
.ds__card-body p { font-size: 14px; color: var(--body); margin: 0; }
.ds__bugs {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 16px;
}
.ds__bugs li {
  padding: 16px; background: #fff; border: 1px solid var(--hairline);
  border-inline-start: 4px solid var(--red);
}
.ds__bugs h3 { margin: 0 0 6px; font-size: 15px; }
.ds__bugs p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--body); }
.ds__bugs code {
  font-family: 'SF Mono', Menlo, monospace; font-size: 12px;
  background: #FAF7F2; padding: 2px 5px; border-radius: 2px;
}

/* =================================================================
   v2 EDITS — round image edges, hover line under title, card lift
   Requested by Reda: "ROUND IMAGE EDGE / LINE ANIMATION ON TITLE / SMALL MOVEMENT ON HOVER"
   ================================================================= */

/* Force Western-Arabic numerals everywhere via OpenType feature */
:root, body, .topbar, .meta, .ajx-date, .breaking, .archive__date,
.issue__date, .author__stats, .ds__scale, .swatch code {
  font-feature-settings: "lnum" 1, "tnum" 1;
  font-variant-numeric: lining-nums tabular-nums;
}

/* ─ 1. Subtle rounded corners on every media surface ─────────── */
.card img,
.feat-card img,
.side-card img,
.rowlist__item img,
.banner__video img,
.priority__media,
.priority__hero .priority__media,
.m-priority__media,
.m-row__media,
.hero__media,
.home-hero__media,
.article-hero img,
.about__member img,
.author__avatar,
img.cover,
[class^="bg-"], [class*=" bg-"] {
  border-radius: 6px;
}
/* Keep round avatars perfectly circular */
.about__member img, .author__avatar { border-radius: 50% !important; }
.swatch__chip, .meta__avatar { border-radius: 50%; }

/* ─ 2. Animated underline on every clickable headline ─────────
   The pseudo-line slides in from the inline-end (visually right
   in RTL) when the link is hovered or focused. */
.card__title a, .feat-card__title a, .side-card h3 a, .rowlist__item h3 a,
.priority h3 a, .m-priority h3 a, .m-row h3 a,
.home-hero h1 a, .archive__list a,
.issue__list h3 a, .issue__lead h3 a,
.error__suggestions a {
  position: relative; display: inline; padding-bottom: 2px;
  background-image: linear-gradient(var(--red), var(--red));
  background-position: 100% 100%;     /* RTL = inline-end */
  background-repeat: no-repeat;
  background-size: 0% 2px;
  transition: background-size 280ms cubic-bezier(.4,0,.2,1), color 200ms;
}
.card__title a:hover, .feat-card__title a:hover, .side-card h3 a:hover, .rowlist__item h3 a:hover,
.priority h3 a:hover, .m-priority h3 a:hover, .m-row h3 a:hover,
.home-hero h1 a:hover, .archive__list a:hover,
.issue__list h3 a:hover, .issue__lead h3 a:hover,
.error__suggestions a:hover,
.card__title a:focus-visible, .rowlist__item h3 a:focus-visible {
  background-size: 100% 2px;
  color: var(--red);
}

/* ─ 3. Small card lift on hover ─────────────────────────────── */
.card, .feat-card, .side-card, .rowlist__item,
.priority, .m-priority__hero, .m-priority__row,
.m-row__hero, .m-row__list li,
.nl-card, .edition, .archive__list li {
  transition: transform 220ms cubic-bezier(.4,0,.2,1),
              box-shadow 220ms ease;
}
.card:hover, .feat-card:hover, .side-card:hover, .rowlist__item:hover,
.priority:hover, .m-priority__hero:hover, .m-priority__row:hover,
.m-row__hero:hover, .m-row__list li:hover,
.nl-card:hover, .edition:hover, .archive__list li:hover {
  transform: translateY(-2px);
}

/* ─ 4. Subtle image zoom paired with the lift ───────────────── */
.card, .feat-card, .side-card, .rowlist__item,
.priority, .m-priority__hero, .m-priority__row,
.m-row__hero, .m-row__list li {
  overflow: hidden; /* clip the zoomed image */
}
.card img, .feat-card img, .side-card img, .rowlist__item img,
.priority__media, .m-priority__media, .m-row__media, .hero__media,
.article-hero img {
  transition: transform 380ms cubic-bezier(.4,0,.2,1);
}
.card:hover img, .feat-card:hover img, .side-card:hover img,
.rowlist__item:hover img,
.priority:hover .priority__media, .m-priority__hero:hover .m-priority__media,
.m-priority__row:hover .m-priority__media,
.m-row__hero:hover .m-row__media, .m-row__list li:hover .m-row__media {
  transform: scale(1.03);
}

/* =================================================================
   v3 EDITS — reading progress bar + sticky byline/share rail
   ================================================================= */

/* ─ Reading progress (top of viewport, fills as you scroll) ─── */
.reading-progress {
  position: fixed; inset-block-start: 0; inset-inline: 0;
  height: 3px; background: rgba(0,0,0,0.04);
  z-index: 60; pointer-events: none;
}
.reading-progress__bar {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--red), #B22222);
  transition: width 80ms linear;
  transform-origin: 100% 0; /* RTL fill from right */
}
@media (prefers-reduced-motion: reduce) {
  .reading-progress__bar { transition: none; }
}

/* ─ Article 2-column layout: rail + body ─────────────────── */
.article__layout {
  display: grid; grid-template-columns: 1fr; gap: 24px;
}
@media (min-width: 960px) {
  .article__layout {
    grid-template-columns: 240px 1fr; /* RTL: rail visually on right, body on left */
    gap: 48px;
  }
}

/* ─ Sticky rail (desktop only — collapses into header on mobile) ─ */
.article__rail { display: none; } /* mobile: hidden, info already in header */
@media (min-width: 960px) {
  .article__rail {
    display: block;
    position: relative;
    align-self: start;
  }
  .article__rail-inner {
    position: sticky; top: 88px;
    border: 1px solid var(--hairline);
    background: #fff;
    padding: 18px;
    display: grid; gap: 14px;
    border-radius: 6px;
  }
}
.article__rail-byline {
  display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center;
}
.article__rail-byline img {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--hairline);
}
.article__rail-name {
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  margin: 0 0 2px; color: var(--ink);
}
.article__rail-name a { color: inherit; }
.article__rail-name a:hover { color: var(--red); }
.article__rail-role {
  font-family: var(--font-ui); font-size: 11px; color: var(--stone);
  margin: 0; line-height: 1.4;
}
.article__rail-meta {
  display: grid; gap: 8px; margin: 0;
  padding: 12px 0; border-block: 1px solid var(--hairline);
  font-family: var(--font-ui); font-size: 12px;
}
.article__rail-meta div { display: grid; grid-template-columns: 80px 1fr; gap: 4px; }
.article__rail-meta dt { color: var(--stone); margin: 0; font-weight: 500; }
.article__rail-meta dd { margin: 0; color: var(--ink); font-weight: 600; }
.article__rail-meta a { color: var(--red); }
.article__rail-share-label {
  font-family: var(--font-ui); font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--stone); margin: 0;
}
.article__rail-share {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px;
}
.article__rail-share .share-btn {
  width: 100%; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--hairline); color: var(--ink);
  background: #fff;
  transition: background 180ms, color 180ms, border-color 180ms;
}
.article__rail-share .share-btn:hover {
  background: var(--red); color: #fff; border-color: var(--red);
}

/* ─ Mobile-only sticky bottom share strip ──────────────────── */
.article__share-mobile {
  display: flex; align-items: center; gap: 6px;
  margin: 24px 0;
  padding: 10px 12px;
  background: #FAF7F2;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  font-family: var(--font-ui); font-size: 12px;
  color: var(--stone);
}
.article__share-mobile span { font-weight: 600; }
.article__share-mobile .share-btn {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--hairline); color: var(--ink);
  background: #fff;
}
.article__share-mobile .share-btn:hover {
  background: var(--red); color: #fff; border-color: var(--red);
}
@media (min-width: 960px) { .article__share-mobile { display: none; } }

/* Make sure article body doesn't touch the rail visually */
.article__body { min-width: 0; } /* prevent grid blow-out from long words */

/* =================================================================
   v4 — Home variety blocks (most-read, photo of day, pull-quote,
   newsletter teaser, banded sections, accent strips)
   ================================================================= */

/* ── Banded section backgrounds (alternating) ───────────── */
.row--band  { background: #FAF7F2; }      /* paper */
.row--band + .row--band { background: #fff; }
.row.row--band, .m-row.row--band { padding-block: 28px; }
.m-row.row--band              { padding-block: 18px; }

/* ── Section accent strip (per-category coloured bar in head) ─ */
.row__band-head, .m-row__band-head {
  display: flex; align-items: center; gap: 14px; margin-bottom: 4px;
}
.row__band-head::before, .m-row__band-head::before {
  content: ""; display: inline-block;
  width: 4px; height: 28px; background: var(--accent, var(--red));
  border-radius: 2px;
}
.m-row__band-head::before { height: 22px; }

/* category accent variables — lazy way to colour the bars per row */
.row[data-cat="politics"], .m-row[data-cat="politics"] { --accent: var(--red); }
.row[data-cat="economy"],  .m-row[data-cat="economy"]  { --accent: var(--navy); }
.row[data-cat="sport"],    .m-row[data-cat="sport"]    { --accent: var(--ochre); }
.row[data-cat="culture"],  .m-row[data-cat="culture"]  { --accent: var(--sage); }
.row[data-cat="opinion"],  .m-row[data-cat="opinion"]  { --accent: #6B7E66; }
.row[data-cat="society"],  .m-row[data-cat="society"]  { --accent: var(--stone); }

.row__band-head .row__title { color: var(--ink); }
.row[data-cat="politics"] .row__title { color: var(--red); }
.row[data-cat="economy"]  .row__title { color: var(--navy); }
.row[data-cat="sport"]    .row__title { color: var(--ochre); }
.row[data-cat="culture"]  .row__title { color: var(--sage); }

/* ── 1) Most-read numbered rail ──────────────────────────── */
.most-read { padding-block: 32px 24px; }
.most-read__head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 18px; gap: 16px;
}
.most-read__title {
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
  margin: 0; letter-spacing: -0.01em;
}
.most-read__title::before {
  content: ""; display: inline-block;
  width: 6px; height: 22px; background: var(--red); margin-inline-end: 10px;
  vertical-align: -3px; border-radius: 2px;
}
.most-read__more {
  font-family: var(--font-ui); font-size: 12px; font-weight: 600;
  color: var(--red);
}
.most-read__list {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 18px; list-style: none; padding: 0; margin: 0;
  counter-reset: most;
}
.most-read__item {
  display: grid; grid-template-columns: 56px 1fr; gap: 10px;
  padding: 10px 12px 12px; border-block: 1px solid var(--hairline);
  background: #fff; transition: background 200ms ease, transform 200ms ease;
}
.most-read__item:hover { background: #FAF7F2; }
.most-read__num {
  font-family: var(--font-display); font-weight: 700; font-size: 56px;
  line-height: 1; color: var(--red); letter-spacing: -0.04em;
  align-self: center; -webkit-text-stroke: 1px var(--red); color: transparent;
  /* outline numerals for editorial weight */
}
.most-read__cat {
  font-family: var(--font-ui); font-size: 10px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--red);
}
.most-read__head-line {
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  line-height: 1.4; margin: 4px 0; color: var(--ink);
}
.most-read__head-line a { color: inherit; }
.most-read__head-line a:hover { color: var(--red); }
.most-read__meta {
  font-family: var(--font-ui); font-size: 11px; color: var(--stone);
  margin: 0;
}

/* mobile most-read: 1 column, smaller numerals */
@media (max-width: 720px) {
  .most-read { padding-block: 18px 6px; }
  .most-read__title { font-size: 18px; }
  .most-read__list { grid-template-columns: 1fr; gap: 0; }
  .most-read__item {
    grid-template-columns: 42px 1fr 80px;
    gap: 10px; padding: 12px 0; background: transparent;
    align-items: center; border-block: 0;
    border-bottom: 1px solid var(--hairline);
  }
  .most-read__item:last-child { border-bottom: 0; }
  .most-read__num { font-size: 36px; }
  .most-read__head-line { font-size: 14px; margin: 0; }
  .most-read__cat { display: none; }
  .most-read__thumb {
    width: 80px; height: 60px; background-size: cover; background-position: center;
    border-radius: 6px;
  }
}
.most-read__thumb { display: none; }
@media (max-width: 720px) { .most-read__thumb { display: block; } }

/* ── 3) Photo of the day (full-bleed) ────────────────────── */
.photo-day {
  margin-block: 40px;
  position: relative;
  background: var(--ink);
}
.photo-day__inner {
  position: relative; max-width: 1240px; margin: 0 auto;
}
.photo-day__img {
  width: 100%; aspect-ratio: 16 / 7; object-fit: cover; display: block;
  filter: saturate(1.05);
}
.photo-day__overlay {
  position: absolute; inset-inline: 0; inset-block-end: 0;
  padding: 24px 24px 22px;
  background: linear-gradient(0deg, rgba(0,0,0,0.78), rgba(0,0,0,0));
  color: #fff;
}
.photo-day__label {
  font-family: var(--font-ui); font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #F2D9A0; margin: 0 0 8px;
}
.photo-day__caption {
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
  line-height: 1.4; margin: 0 0 6px; max-width: 800px;
}
.photo-day__credit {
  font-family: var(--font-ui); font-size: 12px; opacity: 0.85; margin: 0;
}
@media (max-width: 720px) {
  .photo-day { margin-block: 24px; }
  .photo-day__img { aspect-ratio: 4 / 3; }
  .photo-day__overlay { padding: 18px 14px 14px; }
  .photo-day__caption { font-size: 16px; }
  .photo-day__credit  { font-size: 11px; }
}

/* ── 4) Pull-quote divider ───────────────────────────────── */
.quote-divider {
  padding-block: 56px;
  position: relative;
  text-align: center;
}
.quote-divider::before, .quote-divider::after {
  content: ""; display: block; height: 1px;
  background: var(--hairline);
  margin: 0 auto; max-width: 80px;
}
.quote-divider::before { margin-bottom: 20px; }
.quote-divider::after  { margin-top: 22px; }
.quote-divider blockquote {
  margin: 0; padding: 0; max-width: 760px; margin-inline: auto;
  position: relative;
}
.quote-divider__mark {
  font-family: var(--font-display); font-style: normal; font-weight: 700;
  color: var(--red); font-size: 60px; line-height: 0.6; display: block;
  margin-bottom: 12px;
}
.quote-divider__quote {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: 28px; line-height: 1.5;
  margin: 0 0 14px; color: var(--ink);
}
.quote-divider__attr {
  font-family: var(--font-ui); font-size: 13px;
  color: var(--stone); margin: 0;
}
.quote-divider__attr strong { color: var(--ink); font-weight: 600; }
@media (max-width: 720px) {
  .quote-divider       { padding-block: 32px; }
  .quote-divider__mark { font-size: 44px; }
  .quote-divider__quote { font-size: 19px; line-height: 1.45; }
}

/* ── 9) Newsletter teaser inline ─────────────────────────── */
.nl-teaser {
  background: linear-gradient(135deg, #FAF7F2 0%, #F2EBE0 100%);
  border-block: 1px solid #E5DDD0;
  margin-block: 32px;
  padding-block: 30px;
}
.nl-teaser__inner {
  display: grid; grid-template-columns: 1fr auto;
  gap: 24px; align-items: center;
}
.nl-teaser__copy h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
  margin: 0 0 6px; color: var(--ink);
}
.nl-teaser__copy h3::before {
  content: "📨 "; font-size: 18px; margin-inline-end: 4px;
}
.nl-teaser__copy p {
  font-family: var(--font-ui); font-size: 14px; color: var(--stone);
  margin: 0;
}
.nl-teaser__form {
  display: flex; gap: 8px; min-width: 360px;
}
.nl-teaser__form input {
  flex: 1; padding: 11px 14px; border: 1px solid var(--hairline);
  background: #fff; font-family: var(--font-ui); font-size: 14px;
  border-radius: 6px;
}
.nl-teaser__form input:focus {
  outline: 2px solid var(--red); outline-offset: -1px;
  border-color: var(--red);
}
.nl-teaser__form button {
  padding: 11px 22px; background: var(--red); color: #fff; border: 0;
  font-family: var(--font-ui); font-weight: 700; font-size: 14px;
  cursor: pointer; border-radius: 6px;
  transition: background 180ms ease;
}
.nl-teaser__form button:hover { background: #6B0000; }
@media (max-width: 720px) {
  .nl-teaser { margin-block: 18px; padding-block: 20px; }
  .nl-teaser__inner { grid-template-columns: 1fr; gap: 14px; }
  .nl-teaser__copy h3 { font-size: 18px; }
  .nl-teaser__form { min-width: 0; flex-direction: column; }
  .nl-teaser__form input, .nl-teaser__form button { width: 100%; }
}

/* ──────────────────────────────────────────────────────────
   Category page — extras
   pull-quote divider · open dossiers · section authors · tag cloud
   ────────────────────────────────────────────────────────── */

/* Pull-quote divider (used on category + home) */
.pullquote-divider {
  margin-block: 32px;
  padding-block: 32px 28px;
  border-block: 1px solid var(--hairline);
  text-align: center;
}
.pullquote-divider blockquote {
  margin: 0 auto;
  max-width: 780px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 26px;
  line-height: 1.55;
  color: var(--ink);
  position: relative;
  padding-block: 6px;
}
.pullquote-divider blockquote::before,
.pullquote-divider blockquote::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  background: var(--red);
  margin: 0 auto;
}
.pullquote-divider blockquote::before { margin-bottom: 18px; }
.pullquote-divider blockquote::after { margin-top: 18px; }
.pullquote-divider cite {
  display: block;
  margin-top: 14px;
  font-family: var(--font-ui);
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--stone);
}
@media (max-width: 720px) {
  .pullquote-divider { margin-block: 20px; padding-block: 22px 18px; }
  .pullquote-divider blockquote { font-size: 19px; line-height: 1.5; }
}

/* Open dossiers / files */
.files { padding-block: 32px 24px; }
.files__head { margin-bottom: 16px; }
.files__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  margin: 0 0 4px;
  position: relative;
  padding-inline-start: 14px;
}
.files__title::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block: 4px;
  width: 4px;
  background: var(--red);
  border-radius: 2px;
}
.files__sub {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--stone);
  margin: 0;
}
.files__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.file-card {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.file-card::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 3px;
  background: var(--file-accent, var(--red));
  z-index: 1;
}
.file-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.file-card__img {
  display: block;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
}
.file-card__body { padding: 16px 16px 18px; }
.file-card__tag {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--file-accent, var(--red));
  text-transform: uppercase;
  margin-bottom: 8px;
}
.file-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.35;
  margin: 0 0 8px;
}
.file-card__title a { color: inherit; }
.file-card__title a:hover { color: var(--red); }
.file-card__dek {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.6;
  color: var(--body);
  margin: 0 0 12px;
}
.file-card__count {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--stone);
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--hairline);
}
.file-card__count strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  margin-inline-end: 4px;
}
@media (max-width: 960px) {
  .files__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .files { padding-block: 22px 18px; }
  .files__grid { grid-template-columns: 1fr; gap: 14px; }
  .files__title { font-size: 18px; }
}

/* Section authors / cat-authors */
.cat-authors { padding-block: 32px 24px; }
.cat-authors__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}
.cat-authors__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  margin: 0;
  position: relative;
  padding-inline-start: 14px;
}
.cat-authors__title::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block: 4px;
  width: 4px;
  background: var(--red);
  border-radius: 2px;
}
.cat-authors__more {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
}
.cat-authors__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.cat-author {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  color: inherit;
  transition: transform 180ms ease, border-color 180ms ease;
}
.cat-author:hover {
  transform: translateY(-2px);
  border-color: var(--red);
}
.cat-author img {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.cat-author__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  margin: 0 0 2px;
  color: var(--ink);
}
.cat-author__role {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--stone);
  margin: 0 0 3px;
}
.cat-author__count {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  margin: 0;
  letter-spacing: 0.02em;
}
@media (max-width: 960px) {
  .cat-authors__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .cat-authors { padding-block: 22px 18px; }
  .cat-authors__grid { grid-template-columns: 1fr; gap: 10px; }
  .cat-authors__title { font-size: 18px; }
  .cat-author img { width: 48px; height: 48px; }
}

/* Topics / tag cloud */
.topics { padding-block: 32px 32px; }
.topics__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  margin: 0 0 16px;
  position: relative;
  padding-inline-start: 14px;
}
.topics__title::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block: 4px;
  width: 4px;
  background: var(--red);
  border-radius: 2px;
}
.topics__cloud {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: baseline;
}
.topics__cloud a {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  background: #fff;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}
.topics__cloud a:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.topics__cloud li[data-w="sm"] a,
.topics__cloud a[data-w="sm"] { font-size: 12px; padding: 5px 10px; }
.topics__cloud li[data-w="md"] a,
.topics__cloud a[data-w="md"] { font-size: 14px; }
.topics__cloud li[data-w="lg"] a,
.topics__cloud a[data-w="lg"] { font-size: 16px; padding: 7px 14px; font-weight: 700; }
.topics__cloud li[data-w="xl"] a,
.topics__cloud a[data-w="xl"] { font-size: 18px; padding: 8px 16px; font-weight: 700; color: var(--red); border-color: var(--red); }
.topics__cloud li[data-w="xl"] a:hover,
.topics__cloud a[data-w="xl"]:hover { background: var(--red); color: #fff; }
@media (max-width: 720px) {
  .topics { padding-block: 20px 24px; }
  .topics__title { font-size: 18px; }
  .topics__cloud { gap: 6px 8px; }
  .topics__cloud li[data-w="lg"] a,
  .topics__cloud a[data-w="lg"] { font-size: 14px; padding: 5px 11px; }
  .topics__cloud li[data-w="xl"] a,
  .topics__cloud a[data-w="xl"] { font-size: 15px; padding: 6px 12px; }
}

/* ──────────────────────────────────────────────────────────
   Article page — extras
   key-points · inline-CTA · sources · author-bio · more-from
   ────────────────────────────────────────────────────────── */

/* Key points / TL;DR */
.keypoints {
  background: #FAF7F0;
  border-inline-start: 4px solid var(--red);
  border-radius: 6px;
  padding: 18px 20px 16px;
  margin: 4px 0 24px;
}
.keypoints__title {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 10px;
}
.keypoints__list {
  list-style: none;
  margin: 0; padding: 0;
}
.keypoints__list li {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  padding: 6px 0 6px 0;
  padding-inline-start: 22px;
  position: relative;
}
.keypoints__list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 14px;
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
}
.keypoints__list li + li {
  border-top: 1px dashed var(--hairline);
}
.keypoints__list strong {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  margin-inline-end: 4px;
}
@media (max-width: 720px) {
  .keypoints { padding: 14px 16px 12px; margin: 4px 0 18px; }
  .keypoints__list li { font-size: 14px; }
}

/* Inline newsletter CTA (mid-body) */
.inline-cta {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 16px;
  align-items: center;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  padding: 18px 22px;
  margin: 28px 0;
}
.inline-cta__icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: grid; place-items: center;
  font-size: 22px;
  flex-shrink: 0;
}
.inline-cta__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
  margin: 0 0 4px;
  color: #fff;
}
.inline-cta__sub {
  font-family: var(--font-ui);
  font-size: 12px;
  color: #C9C2B6;
  margin: 0;
}
.inline-cta__form {
  display: flex;
  gap: 8px;
  min-width: 280px;
}
.inline-cta__form input {
  flex: 1;
  padding: 9px 12px;
  border: 1px solid #3A332A;
  background: #1A1612;
  color: #fff;
  font-family: var(--font-ui);
  font-size: 13px;
  border-radius: 6px;
  min-width: 0;
}
.inline-cta__form input::placeholder { color: #8A8275; }
.inline-cta__form input:focus {
  outline: 2px solid var(--red);
  outline-offset: -1px;
  border-color: var(--red);
}
.inline-cta__form button {
  padding: 9px 18px;
  background: var(--red);
  color: #fff;
  border: 0;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  border-radius: 6px;
  white-space: nowrap;
}
.inline-cta__form button:hover { background: #6B0000; }
@media (max-width: 720px) {
  .inline-cta {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px;
    margin: 18px 0;
    text-align: start;
  }
  .inline-cta__icon { width: 36px; height: 36px; font-size: 18px; }
  .inline-cta__form { min-width: 0; flex-direction: column; }
  .inline-cta__form input,
  .inline-cta__form button { width: 100%; }
}

/* Sources / المصادر */
.sources {
  margin-top: 28px;
  padding: 16px 20px 14px;
  background: #FBF8F2;
  border: 1px solid var(--hairline);
  border-radius: 6px;
}
.sources__title {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
  margin: 0 0 8px;
}
.sources__list {
  margin: 0;
  padding-inline-start: 20px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
}
.sources__list li { padding: 3px 0; color: var(--body); }
.sources__list a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--hairline); text-underline-offset: 3px; }
.sources__list a:hover { color: var(--red); text-decoration-color: var(--red); }
@media (max-width: 720px) {
  .sources { padding: 14px 16px 12px; }
  .sources__list { font-size: 13px; }
}

/* Author bio card */
.author-bio {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
  align-items: start;
  margin-top: 28px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  position: relative;
}
.author-bio::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block: 0;
  width: 4px;
  background: var(--red);
  border-start-start-radius: 8px;
  border-end-start-radius: 8px;
}
.author-bio__photo {
  width: 96px; height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--hairline);
}
.author-bio__eyebrow {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 6px;
}
.author-bio__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  margin: 0 0 4px;
}
.author-bio__name a { color: inherit; }
.author-bio__name a:hover { color: var(--red); }
.author-bio__role {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--stone);
  margin: 0 0 10px;
}
.author-bio__text {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
  color: var(--body);
  margin: 0 0 12px;
}
.author-bio__links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.author-bio__link {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 12px;
  color: var(--red);
}
@media (max-width: 720px) {
  .author-bio {
    grid-template-columns: 64px 1fr;
    gap: 14px;
    padding: 16px;
  }
  .author-bio__photo { width: 64px; height: 64px; }
  .author-bio__name { font-size: 18px; }
  .author-bio__text { font-size: 13px; }
}

/* More from this author */
.more-from { padding-block: 32px 16px; }
.more-from__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}
.more-from__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  margin: 0;
  position: relative;
  padding-inline-start: 14px;
}
.more-from__title::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block: 4px;
  width: 4px;
  background: var(--red);
  border-radius: 2px;
}
.more-from__more {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
}
.more-from__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 960px) {
  .more-from__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .more-from { padding-block: 22px 12px; }
  .more-from__grid { grid-template-columns: 1fr; gap: 14px; }
  .more-from__title { font-size: 18px; }
}

/* Related grid expanded layout (6 cards) */
.article__related-head { margin-bottom: 16px; }
.article__related-sub {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--stone);
  margin: 4px 0 0;
}
.article__related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 960px) {
  .article__related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .article__related-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* Disable all the above motion for users who ask the OS to */
@media (prefers-reduced-motion: reduce) {
  .card, .feat-card, .side-card, .rowlist__item,
  .priority, .m-priority__hero, .m-priority__row,
  .m-row__hero, .m-row__list li, .nl-card, .edition,
  .card img, .feat-card img, .side-card img, .rowlist__item img,
  .priority__media, .m-priority__media, .m-row__media, .hero__media,
  .article-hero img, .file-card, .cat-author,
  .card__title a, .feat-card__title a, .side-card h3 a, .rowlist__item h3 a,
  .priority h3 a, .m-priority h3 a, .m-row h3 a,
  .home-hero h1 a {
    transition: none !important;
    transform: none !important;
    background-size: 0% 2px !important;
  }
}

/* =================================================================
   WordPress core integration
   ================================================================= */
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide { max-width: 1040px; margin-inline: auto; }
.alignfull { width: 100%; max-width: none; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, figcaption { font-family: var(--font-ui); font-size: 13px; color: var(--stone); margin-top: 8px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.gallery-item img { width: 100%; height: auto; }
.screen-reader-text { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sticky { position: relative; }
.bypostauthor { }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff;
  padding: 8px 12px; z-index: 1000;
  font-family: var(--font-ui); font-size: 13px;
}
.skip-link:focus { left: 0; outline: 2px solid var(--red); }

.wp-block-image img { max-width: 100%; height: auto; }
.wp-block-quote { border-inline-start: 3px solid var(--red); padding-inline-start: 16px; margin-block: 16px; }
.wp-block-pullquote { padding: 16px 0; border-block: 1px solid var(--hairline); text-align: center; }
.wp-block-code, code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; background: var(--surface-alt); padding: 2px 6px; border-radius: 2px; font-size: 0.92em; }
.wp-block-code { display: block; padding: 12px 16px; overflow-x: auto; }

img.wp-post-image { width: 100%; height: auto; display: block; }

.aluula-card-fallback {
  display: block; aspect-ratio: 16 / 10;
  background-position: center; background-size: cover;
  margin-bottom: 10px;
}

body.admin-bar .masthead { top: 32px; }
@media (max-width: 782px) { body.admin-bar .masthead { top: 46px; } }
