/* ==========================================================================
   العنوان — Alounwane News Theme v2 (dense news portal)
   Brand palette: #FAF097 / #ECCC65 / #DFAA36 / #000000
   ========================================================================== */

:root {
  --gold-1: #FAF097;
  --gold-2: #ECCC65;
  --gold-3: #DFAA36;
  --gold-ink: #8C6100; /* ≥ 4.5:1 on white and on the page background (WCAG AA) */
  --gold-grad: linear-gradient(90deg, #FAF097 0%, #ECCC65 45%, #DFAA36 100%);
  --gold-grad-v: linear-gradient(180deg, #FAF097 0%, #ECCC65 50%, #DFAA36 100%);

  --bg: #F4F2EC;
  --surface: #FFFFFF;
  --ink: #0A0A0A;
  --ink-2: #2E2E2E;
  --muted: #6B675E; /* ≥ 4.5:1 on every light background (WCAG AA) */
  --line: #E6E1D4;
  --line-2: #EFEBE1;

  --font: "Almarai", "Tajawal", "Segoe UI", Tahoma, sans-serif;
  --container: 1280px;
  --r: 6px;
}

[data-theme="dark"] {
  --bg: #0B0B0B;
  --surface: #151515;
  --ink: #F3F0E6;
  --ink-2: #D3CEC1;
  --muted: #9A9488;
  --line: #262626;
  --line-2: #1E1E1E;
  --gold-ink: #ECCC65;
}

*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 15px; line-height: 1.75; direction: rtl;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .15s; }
a:hover { color: var(--gold-ink); }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold-3); outline-offset: 2px; }
h1,h2,h3,h4 { font-family: var(--font); }

.container { width: min(100% - 28px, var(--container)); margin-inline: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { clip: auto; width: auto; height: auto; z-index: 999; top: 8px; right: 8px; background: var(--gold-2); color: #000; padding: 8px 16px; }

/* ===================== HEADER ===================== */
.topbar { background: #000; color: #D9D4C6; font-size: 12.5px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; min-height: 36px; gap: 16px; }
.topbar__date { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.topbar__date::before { content: ""; width: 6px; height: 6px; background: var(--gold-3); transform: rotate(45deg); }
.social { display: flex; gap: 2px; }
.social a { width: 30px; height: 30px; display: grid; place-items: center; color: #D9D4C6; border-radius: 50%; }
.social a:hover { background: var(--gold-3); color: #000; }
.social svg { width: 14px; height: 14px; fill: currentColor; }

.masthead { background: var(--surface); }
.masthead .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 14px; }
.brand { display: block; flex: none; }
.brand img { height: 78px; width: auto; }
.brand .logo-dark { display: none; }
[data-theme="dark"] .brand .logo-light { display: none; }
[data-theme="dark"] .brand .logo-dark { display: block; }
.masthead__tools { display: flex; align-items: center; gap: 10px; }
.masthead__search { display: flex; align-items: center; width: 300px; height: 42px; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; background: var(--surface); }
.masthead__search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); padding: 0 16px; font: inherit; font-size: 14px; outline: none; }
.masthead__search button { width: 42px; height: 100%; border: 0; background: var(--ink); color: var(--gold-1); display: grid; place-items: center; }
.masthead__search svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.4; }
.header-ad { flex: 1; max-width: 728px; }

.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: transparent; border: 2px solid var(--line); color: var(--ink); }
.icon-btn:hover { border-color: var(--gold-3); background: var(--gold-1); color: #000; }
.icon-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.menu-toggle { display: none; }

.btn-live { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; background: #000; color: #fff; font-weight: 800; font-size: 14px; }
.btn-live:hover { color: var(--gold-1); }
.btn-live .dot { width: 9px; height: 9px; border-radius: 50%; background: #E5322D; box-shadow: 0 0 0 0 rgba(229,50,45,.6); animation: live 1.6s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(229,50,45,.6) } 70% { box-shadow: 0 0 0 9px rgba(229,50,45,0) } 100% { box-shadow: 0 0 0 0 rgba(229,50,45,0) } }
.btn-gold { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 999px; background: var(--gold-grad); color: #000; font-weight: 800; }

/* Gold navigation bar */
.mainnav { position: sticky; top: 0; z-index: 50; background: var(--gold-grad); box-shadow: 0 2px 0 #000; }
.mainnav.is-stuck { box-shadow: 0 2px 0 #000, 0 8px 22px rgba(0,0,0,.18); }
.mainnav .container { display: flex; align-items: center; gap: 4px; min-height: 52px; }
.mainnav__mini { display: none; flex: none; margin-inline-end: 8px; }
.mainnav.is-stuck .mainnav__mini { display: block; }
.mainnav__mini img { height: 38px; width: auto; }
.mainnav__mini .logo-dark { display: none; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; flex: 1; overflow-x: auto; scrollbar-width: none; }
.menu::-webkit-scrollbar { display: none; }
.menu > li { position: relative; }
.menu a { display: block; padding: 14px 15px; font-weight: 800; font-size: 15.5px; color: #000; white-space: nowrap; }
.mainnav .menu > li > a:hover,
.mainnav .menu > .current-menu-item > a,
.mainnav .menu > .current-category-ancestor > a { background: #000; color: var(--gold-1); }
.menu .sub-menu { list-style: none; margin: 0; padding: 6px 0; position: absolute; top: 100%; right: 0; min-width: 210px; background: #000; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; z-index: 5; }
.menu li:hover > .sub-menu, .menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.menu .sub-menu a { color: #E9E4D6; font-weight: 700; font-size: 14px; padding: 9px 18px; }
.menu .sub-menu a:hover { color: var(--gold-1); background: #151515; }
.mainnav__search { flex: none; width: 52px; height: 52px; border: 0; background: #000; color: var(--gold-1); display: grid; place-items: center; }
.mainnav__search svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 2.4; }

/* Breaking ticker */
.ticker { background: var(--surface); border-bottom: 1px solid var(--line); }
.ticker .container { display: flex; align-items: stretch; min-height: 44px; overflow: hidden; }
.ticker__label { flex: none; display: flex; align-items: center; gap: 8px; padding-inline: 18px; background: #C8102E; color: #fff; font-weight: 800; font-size: 14px; }
.ticker__label .dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2 } }
.ticker__track { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.ticker__list { display: flex; gap: 44px; list-style: none; margin: 0; padding: 0 20px; height: 100%; align-items: center; white-space: nowrap; animation: ticker 45s linear infinite; width: max-content; }
.ticker__track:hover .ticker__list { animation-play-state: paused; }
.ticker__list li { font-weight: 700; font-size: 14.5px; display: flex; align-items: center; gap: 12px; }
.ticker__list li::before { content: ""; width: 7px; height: 7px; background: var(--gold-3); transform: rotate(45deg); }
@keyframes ticker { from { transform: translateX(0) } to { transform: translateX(50%) } }
@media (prefers-reduced-motion: reduce) { .ticker__list { animation: none; } }

/* ===================== GENERIC ===================== */
main { padding-block: 20px 48px; }
.section { margin-block: 30px; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; border-bottom: 3px solid #000; margin-bottom: 16px; }
[data-theme="dark"] .section-head { border-color: var(--gold-3); }
.section-title { margin: 0; display: inline-flex; align-items: center; gap: 10px; background: #000; color: var(--gold-1); padding: 8px 18px 6px; font-size: 18px; font-weight: 800; border-radius: var(--r) var(--r) 0 0; position: relative; }
.section-title::after { content: ""; position: absolute; bottom: 0; right: 0; left: 0; height: 3px; background: var(--gold-grad); }
.section-head .more { font-size: 13px; font-weight: 700; color: var(--muted); padding-bottom: 6px; display: inline-flex; align-items: center; gap: 4px; }
.section-head .more:hover { color: var(--gold-ink); }

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; color: var(--muted); font-size: 12.5px; }
.meta span { display: inline-flex; align-items: center; gap: 4px; }
.meta svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; }

.badge { display: inline-flex; align-items: center; min-height: 26px; font-size: 11.5px; font-weight: 800; padding: 3px 10px; background: var(--gold-2); color: #000; border-radius: 3px; line-height: 1.5; } /* 24 px touch target */
.badge--urgent { background: #C8102E; color: #fff; }
.card > .badge { align-self: flex-start; }
.kicker { font-size: 12.5px; font-weight: 800; color: var(--gold-ink); }

/* Cards */
.card { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.card__media { position: relative; display: block; overflow: hidden; border-radius: var(--r); background: #ddd; aspect-ratio: 16/10; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.card__media .badge { position: absolute; bottom: 10px; right: 10px; z-index: 2; }
.card__media .play { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; }
.card__media .play span { width: 52px; height: 52px; border-radius: 50%; background: rgba(0,0,0,.65); border: 2px solid var(--gold-2); display: grid; place-items: center; }
.card__media .play span::before { content: ""; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent var(--gold-1); margin-left: 4px; }
.card__title { margin: 0; font-weight: 800; font-size: 16px; line-height: 1.6; }
.card__excerpt { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Overlay card (text on image) */
.ov { position: relative; border-radius: var(--r); overflow: hidden; background: #111; display: flex; align-items: flex-end; min-height: 200px; }
.ov img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.ov:hover img { transform: scale(1.04); }
.ov::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.95) 0%, rgba(0,0,0,.55) 40%, rgba(0,0,0,0) 70%); }
.ov__body { position: relative; z-index: 2; padding: 18px; color: #fff; width: 100%; }
.ov__title { margin: 8px 0 6px; font-weight: 800; font-size: 18px; line-height: 1.55; }
.ov__title a:hover { color: var(--gold-1); }
.ov .meta { color: #C9C3B4; }
.ov--xl { min-height: 470px; }
.ov--xl .ov__body { padding: 26px; }
.ov--xl .ov__title { font-size: clamp(22px, 2.5vw, 32px); line-height: 1.45; }
.ov--xl .ov__excerpt { margin: 0 0 10px; color: #E2DDCF; font-size: 15px; max-width: 70ch; }
.ov--xl::before { content: ""; position: absolute; top: 0; right: 0; width: 6px; height: 100%; background: var(--gold-grad-v); z-index: 3; }

/* ===================== HOMEPAGE ===================== */
/* Top: main + two stacked + live timeline */
.top-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) 320px; gap: 14px; }
.top-grid__stack { display: grid; grid-template-rows: 1fr 1fr; gap: 14px; }
.top-grid__stack .ov { min-height: 0; }

.timeline { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; overflow: hidden; }
.timeline__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: #000; color: var(--gold-1); font-weight: 800; font-size: 16px; }
.timeline__head .dot { width: 8px; height: 8px; border-radius: 50%; background: #E5322D; animation: blink 1s infinite; display: inline-block; margin-inline-end: 8px; }
.timeline__list { list-style: none; margin: 0; padding: 6px 16px; overflow-y: auto; max-height: 420px; flex: 1; }
.timeline__list li { position: relative; padding: 10px 18px 10px 0; border-bottom: 1px solid var(--line-2); }
.timeline__list li::before { content: ""; position: absolute; right: 2px; top: 18px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-3); }
.timeline__list li::after { content: ""; position: absolute; right: 5px; top: 30px; bottom: -14px; width: 2px; background: var(--line); }
.timeline__list li:last-child::after { display: none; }
.timeline__list time { display: block; font-size: 12px; font-weight: 800; color: var(--gold-ink); }
.timeline__list a { font-weight: 700; font-size: 14px; line-height: 1.6; display: block; }
.timeline__more { display: block; text-align: center; padding: 10px; font-weight: 800; font-size: 13px; border-top: 1px solid var(--line); background: var(--gold-1); color: #000; }
.timeline__more:hover { background: var(--gold-2); color: #000; }

/* Strip of 6 */
.strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.strip .card__title { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.strip .card + .card { border-inline-start: 1px solid var(--line-2); padding-inline-start: 14px; margin-inline-start: -0px; }

/* 3 category columns */
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.colblock .card { margin-bottom: 10px; }
.headlines { list-style: none; margin: 0; padding: 0; }
.headlines li { padding: 9px 0; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: baseline; }
.headlines li::before { content: ""; flex: none; width: 6px; height: 6px; background: var(--gold-3); transform: rotate(45deg) translateY(-2px); }
.headlines a { font-weight: 700; font-size: 14.5px; line-height: 1.65; }

/* Category block w/ sidebar */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 26px; align-items: start; }
.catblock { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; }
.catblock__list { display: flex; flex-direction: column; gap: 12px; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) 118px; gap: 12px; align-items: start; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; padding-bottom: 0; }
.row .card__media { aspect-ratio: 4/3; order: 2; }
.row .card__title { font-size: 14.5px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mini { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; align-items: start; }
.mini .card__media { aspect-ratio: 4/3; }
.mini .card__title { font-size: 14.5px; }

/* Video band */
.band { background: #000; color: #F3F0E6; padding-block: 34px; margin-block: 34px; position: relative; overflow: hidden; }
.band::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--gold-grad); }
.band .section-head { border-color: var(--gold-3); }
.band .section-title { background: var(--gold-grad); color: #000; }
.band .section-title::after { display: none; }
.band .section-head .more { color: #B5AF9F; }
.band .meta { color: #9A9488; }
.band .card__title a:hover { color: var(--gold-1); }
.video-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; }
.video-grid__side { display: grid; gap: 14px; }
.video-grid__side .mini { grid-template-columns: 150px minmax(0, 1fr); }

/* Opinion */
.opinions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.opinion { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid #000; border-radius: var(--r); padding: 18px 16px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; transition: border-color .2s, transform .2s; }
.opinion:hover { border-top-color: var(--gold-3); transform: translateY(-2px); }
.opinion__avatar { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold-2); }
.opinion__author { font-weight: 800; font-size: 14px; color: var(--gold-ink); }
.opinion .card__title { font-size: 15.5px; }

/* ===================== SIDEBAR ===================== */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.widget { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.widget-title { margin: -16px -16px 14px; padding: 11px 16px; background: #000; color: var(--gold-1); font-size: 16px; font-weight: 800; border-radius: var(--r) var(--r) 0 0; border-bottom: 3px solid var(--gold-3); }
.most-read { list-style: none; margin: 0; padding: 0; counter-reset: mr; }
.most-read li { counter-increment: mr; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 10px; align-items: center; padding-block: 11px; border-bottom: 1px solid var(--line-2); }
.most-read li:last-child { border-bottom: 0; }
.most-read li::before { content: counter(mr); width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; font-size: 17px; font-weight: 800; background: var(--gold-grad); color: #000; }
.most-read a { font-weight: 700; font-size: 14px; line-height: 1.6; }
.newsletter { background: #000; color: #E9E4D6; border: 0; }
.newsletter .widget-title { border-bottom-color: var(--gold-3); }
.newsletter p { margin: 0 0 12px; font-size: 13.5px; }
.newsletter form { display: flex; gap: 6px; }
.newsletter input { flex: 1; min-width: 0; border: 0; border-radius: 4px; padding: 10px 12px; font: inherit; font-size: 14px; }
.newsletter button { border: 0; border-radius: 4px; background: var(--gold-grad); color: #000; padding: 10px 14px; font-weight: 800; }
.ad-slot { display: grid; place-items: center; min-height: 250px; background: var(--surface); border: 1px dashed #CFC8B6; border-radius: var(--r); color: var(--muted); font-size: 12px; letter-spacing: .5px; }
.ad-slot--wide { min-height: 90px; }

/* ===================== SINGLE ===================== */
.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 10px; display: flex; gap: 8px; flex-wrap: wrap; font-weight: 700; }
.breadcrumbs span[aria-hidden] { color: var(--gold-3); }
.article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 30px; }
.article__title { margin: 10px 0 12px; font-size: clamp(24px, 3vw, 36px); line-height: 1.5; font-weight: 800; }
.article__lead { font-size: 18px; color: var(--ink-2); margin: 0 0 16px; padding: 12px 16px; background: #FBF7E6; border-inline-start: 5px solid var(--gold-3); font-weight: 700; line-height: 1.9; }
[data-theme="dark"] .article__lead { background: #1B1A15; }
.article__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-block: 12px; border-block: 1px solid var(--line); margin-bottom: 18px; }
.article__bar .author { display: flex; align-items: center; gap: 10px; }
.article__bar .author img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--gold-2); }
.article__bar .author strong { display: block; font-size: 14px; }
.share { display: flex; gap: 6px; flex-wrap: wrap; }
.share a, .share button { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 0; background: #000; color: #fff; font-weight: 800; font-size: 13px; }
.share a:hover, .share button:hover { background: var(--gold-3); color: #000; }
.share svg { width: 15px; height: 15px; fill: currentColor; }
.share .s-fb { background: #1877F2; } .share .s-wa { background: #25D366; } .share .s-tg { background: #229ED9; }
.article__figure { margin: 0 0 22px; }
.article__figure img { border-radius: var(--r); width: 100%; }
.article__figure figcaption { font-size: 12.5px; color: var(--muted); padding-top: 6px; }
.entry-content { font-size: 18px; line-height: 2.05; color: var(--ink); }
.entry-content p { margin: 0 0 1.2em; }
.entry-content h2, .entry-content h3 { line-height: 1.55; margin: 1.5em 0 .6em; font-weight: 800; }
.entry-content h2 { font-size: 24px; padding-inline-start: 12px; border-inline-start: 5px solid var(--gold-3); }
.entry-content h3 { font-size: 20px; }
.entry-content a { color: var(--gold-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.entry-content blockquote { margin: 1.5em 0; padding: 22px 26px; background: #000; color: var(--gold-1); border-radius: var(--r); font-size: 20px; font-weight: 800; line-height: 1.8; position: relative; }
.entry-content blockquote::before { content: "”"; position: absolute; top: -8px; left: 18px; font-size: 80px; color: var(--gold-3); line-height: 1; }
.entry-content img { border-radius: var(--r); }
.entry-content figcaption { font-size: 12.5px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 24px; }
.tags a { font-size: 13px; font-weight: 700; padding: 5px 14px; border-radius: 3px; background: var(--bg); border: 1px solid var(--line); }
.tags a::before { content: "# "; color: var(--gold-3); }
.tags a:hover { background: #000; color: var(--gold-1); border-color: #000; }
.reading-progress { position: fixed; top: 0; right: 0; height: 4px; width: 0; background: #C8102E; z-index: 100; }
.in-article-ad { margin: 1.5em 0; text-align: center; }

/* ===================== ARCHIVE ===================== */
.archive-head { padding: 22px 26px; background: #000; color: #fff; border-radius: var(--r); margin-bottom: 22px; border-bottom: 4px solid var(--gold-3); }
.archive-head .breadcrumbs { color: #B5AF9F; }
.archive-head h1 { margin: 0; font-size: 30px; color: var(--gold-1); }
.archive-head p { margin: 6px 0 0; color: #CFC9BA; }
.list { display: flex; flex-direction: column; gap: 14px; }
.list .card { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 6px 18px; align-items: start; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; }
.list .card > * { grid-column: 2; }
.list .card > .card__media { grid-column: 1; grid-row: 1 / span 4; }
.list .card > .badge { justify-self: start; }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 40px; height: 40px; padding-inline: 12px; display: grid; place-items: center; border-radius: 4px; background: var(--surface); border: 1px solid var(--line); font-weight: 800; }
.pagination .current { background: #000; color: var(--gold-1); border-color: #000; }
.pagination a.page-numbers:hover { background: var(--gold-2); color: #000; }

/* ===================== OVERLAYS ===================== */
.search-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.92); display: none; align-items: flex-start; justify-content: center; padding-top: 18vh; }
.search-overlay.is-open { display: flex; }
.search-overlay form { width: min(92vw, 720px); display: flex; border-bottom: 3px solid var(--gold-2); }
.search-overlay input { flex: 1; background: transparent; border: 0; color: #fff; font: inherit; font-weight: 800; font-size: clamp(22px, 4vw, 34px); padding: 12px 4px; outline: none; }
.search-overlay button[type=submit] { background: none; border: 0; color: var(--gold-2); }
.search-overlay .close { position: absolute; top: 22px; left: 22px; color: #fff; background: none; border: 0; font-size: 36px; line-height: 1; }
.searchform { display: flex; gap: 8px; margin-bottom: 12px; }
.searchform input { flex: 1; padding: 10px 14px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); font: inherit; }

.drawer { position: fixed; inset: 0; z-index: 150; pointer-events: none; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); opacity: 0; transition: opacity .25s; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(86vw, 340px); background: var(--surface); transform: translateX(100%); transition: transform .3s ease; padding: 18px; overflow-y: auto; border-inline-start: 5px solid var(--gold-3); }
.drawer.is-open { pointer-events: auto; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.drawer__head .brand img { height: 50px; }
.drawer .menu { flex-direction: column; overflow: visible; }
.drawer .menu a { color: var(--ink); padding: 12px 4px; border-bottom: 1px solid var(--line); }
.drawer .menu a:hover { color: var(--gold-ink); }
.drawer .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; background: none; padding-inline-start: 14px; }
.drawer .sub-menu a { color: var(--ink-2); }

/* ===================== FOOTER ===================== */
.site-footer { background: #000; color: #BDB7A8; margin-top: 20px; }
.site-footer::before { content: ""; display: block; height: 5px; background: var(--gold-grad); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-block: 46px 34px; }
.footer__top > * { min-width: 0; } /* grid children must never widen the page on mobile */
.footer__brand img { height: 84px; width: auto; margin-bottom: 14px; }
.footer__brand p { margin: 0 0 14px; font-size: 13.5px; max-width: 36ch; }
.site-footer h3 { margin: 0 0 14px; color: var(--gold-1); font-size: 15px; font-weight: 800; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.site-footer a:hover { color: var(--gold-1); }
.footer__bottom { border-top: 1px solid #1F1F1F; padding-block: 16px; font-size: 12.5px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.back-top { position: fixed; bottom: 20px; left: 20px; z-index: 60; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #000; color: var(--gold-1); box-shadow: 0 4px 14px rgba(0,0,0,.25); opacity: 0; transform: translateY(12px); transition: .25s; display: grid; place-items: center; }
.back-top.is-visible { opacity: 1; transform: none; }
.back-top svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2.6; }

/* Comments */
.comments-area { margin-top: 30px; }
.comment-list { list-style: none; padding: 0; }
.comment-body { padding: 14px; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 12px; }
.comment-form input:not([type=submit]):not([type=checkbox]), .comment-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); font: inherit; }
.comment-form .submit { background: #000; color: var(--gold-1); border: 0; border-radius: 4px; padding: 12px 22px; font-weight: 800; }

.alignwide { margin-inline: -30px; }
.alignfull { width: 100vw; margin-inline: calc(50% - 50vw); }

/* ===================== PAGES (v2.2) ===================== */
/* Placeholder marker: visible on purpose so nothing provisional passes for real content */
.aw-todo { background: #FFF3C4; color: #7A4B00; border: 1px dashed var(--gold-3); border-radius: 3px; padding: 0 6px; font-weight: 800; font-size: .85em; white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
[data-theme="dark"] .aw-todo { background: #2A2410; color: var(--gold-1); }
.aw-page { max-width: 900px; }
.aw-page__updated { margin: 26px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
.entry-content ul, .entry-content ol { padding-inline-start: 1.4em; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: .35em; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 16px; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 8px 12px; text-align: start; vertical-align: top; }
.entry-content th { background: var(--bg); font-weight: 800; width: 38%; }
.entry-content .wp-block-button__link { background: var(--gold-grad); color: #000; text-decoration: none; border-radius: 999px; padding: 10px 22px; font-weight: 800; display: inline-block; }
.aw-empty { color: var(--ink-2); }
.aw-empty--home { margin-bottom: 24px; text-align: center; padding: 34px 20px; }
.aw-empty--home h2 { margin: 0 0 8px; }
.aw-chips { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.aw-chips li a { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: 13.5px; }
.aw-chips li a:hover { background: #000; color: var(--gold-1); border-color: #000; }
.archive-head__desc, .archive-head__desc p { color: #CFC9BA; margin: 6px 0 0; }
.archive-head__search { margin-top: 14px; max-width: 560px; }
.archive-head__search .searchform input { background: #fff; color: #000; }
.archive-head__search .icon-btn { color: var(--gold-1); border-color: #444; }
.list--after-lead { margin-top: 16px; }
.opinions--archive { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.opinions--archive .opinion__author:hover { color: var(--ink); }

/* Video rubrique */
.archive-head--video { background: #000; border-bottom-color: #C8102E; }
.video-archive { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.video-archive .card { background: var(--surface); border-radius: var(--r); padding: 10px; }
.article--video .entry-content > figure:first-child, .article--video .entry-content > .wp-block-embed:first-child { margin-top: 0; }
.entry-content .wp-block-embed__wrapper iframe, .entry-content iframe { width: 100%; max-width: 100%; border: 0; border-radius: var(--r); }
.entry-content .wp-embed-aspect-16-9 .wp-block-embed__wrapper { position: relative; aspect-ratio: 16/9; }
.entry-content .wp-embed-aspect-16-9 .wp-block-embed__wrapper iframe { position: absolute; inset: 0; height: 100%; }

/* Author page */
.author-head__card { display: flex; align-items: center; gap: 20px; margin-top: 8px; }
.author-head__avatar { width: 110px; height: 110px; border-radius: 50%; border: 4px solid var(--gold-2); flex: none; }
.author-head__kicker { color: var(--gold-2); font-weight: 800; font-size: 13px; }
.author-head p { max-width: 70ch; }
.author-head__count { display: inline-block; margin-top: 8px; font-size: 12.5px; font-weight: 800; background: var(--gold-grad); color: #000; padding: 2px 12px; border-radius: 999px; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.team-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 14px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.team-card__avatar { width: 96px; height: 96px; border-radius: 50%; border: 3px solid var(--gold-2); }
.team-card__name { margin: 6px 0 0; font-size: 16px; font-weight: 800; }
.team-card__bio { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.7; }
.team-card__count { font-size: 12px; color: var(--muted); font-weight: 700; }

/* Archives page */
.archives-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.archives-list { list-style: none; margin: 0; padding: 0; }
.archives-list li { padding: 8px 0; border-bottom: 1px solid var(--line-2); font-weight: 700; font-size: 14.5px; }
.archives-list li:last-child { border-bottom: 0; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 30px; align-items: start; }
.contact-layout__info { font-size: 16px; }
.contact-layout__title { margin: 0 0 12px; font-size: 20px; font-weight: 800; }
.aw-page:has(.contact-layout) { max-width: 1100px; }
.contact-form p { margin: 0 0 14px; }
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.contact-form label { display: block; font-weight: 800; font-size: 14px; margin-bottom: 4px; }
.contact-form label span[aria-hidden] { color: #C8102E; }
.contact-form input[type=text], .contact-form input[type=email], .contact-form select, .contact-form textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--gold-3); outline: 2px solid var(--gold-1); outline-offset: 0; }
.contact-form__consent label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 13.5px; line-height: 1.7; }
.contact-form__consent input { margin-top: 5px; flex: none; }
.contact-form__consent a { color: var(--gold-ink); text-decoration: underline; }
.contact-form button.btn-gold { border: 0; font-size: 15px; padding: 12px 28px; }
.contact-form__note { color: var(--muted); font-size: 12.5px; }
.aw-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.aw-notice { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; font-weight: 700; font-size: 14.5px; }
.aw-notice ul { margin: 0; padding-inline-start: 1.2em; }
.aw-notice--ok { background: #E8F6EC; color: #145A2A; border: 1px solid #A9DDB8; }
.aw-notice--err { background: #FDECEC; color: #8A1020; border: 1px solid #F2B8BF; }
[data-theme="dark"] .aw-notice--ok { background: #10261A; color: #9BE0B0; border-color: #1F4D30; }
[data-theme="dark"] .aw-notice--err { background: #2A1014; color: #F5A8B2; border-color: #5A1F28; }

/* 404 */
.aw-404 { text-align: center; padding-block: 40px 10px; max-width: 640px; margin-inline: auto; }
.aw-404 img { margin: 0 auto 6px; }
.aw-404__code { margin: 0; font-size: 64px; font-weight: 800; line-height: 1; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.aw-404 .searchform { max-width: 460px; margin: 18px auto; }

@media (max-width: 900px) {
  .contact-layout, .archives-grid { grid-template-columns: 1fr; }
  .team-grid, .video-archive, .opinions--archive { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .contact-form__row, .team-grid, .video-archive, .opinions--archive { grid-template-columns: 1fr; }
  .author-head__card { flex-direction: column; text-align: center; }
}

/* ===================== ADS (v2.4) ===================== */
/* Hidden unless the visitor accepted ads (class set before paint → space reserved, no layout shift). */
.aw-ad { display: none; text-align: center; margin-inline: auto; }
html.aw-ads-ok .aw-ad { display: var(--aw-d0, block); }
.aw-ad__label { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .5px; color: var(--muted); line-height: 1; margin-bottom: 5px; }
.aw-ad__slot { min-height: var(--aw-h0, 0); display: flex; align-items: center; justify-content: center; overflow: hidden; }
@media (min-width: 768px)  { html.aw-ads-ok .aw-ad { display: var(--aw-d768, block); } .aw-ad__slot { min-height: var(--aw-h768, 0); } }
@media (min-width: 1024px) { html.aw-ads-ok .aw-ad { display: var(--aw-d1024, block); } .aw-ad__slot { min-height: var(--aw-h1024, 0); } }
@media (min-width: 1181px) { html.aw-ads-ok .aw-ad { display: var(--aw-d1181, block); } .aw-ad__slot { min-height: var(--aw-h1181, 0); } }
@media (min-width: 1640px) { html.aw-ads-ok .aw-ad { display: var(--aw-d1640, block); } .aw-ad__slot { min-height: var(--aw-h1640, 0); } }
@media (min-width: 1920px) { html.aw-ads-ok .aw-ad { display: var(--aw-d1920, block); } .aw-ad__slot { min-height: var(--aw-h1920, 0); } }
html.aw-ads-ok .aw-ad.is-empty, html.aw-ads-ok .aw-ad.is-closed { display: none; }
.aw-ad--band { padding-block: 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
.aw-ad--between { margin-block: 26px; }
.aw-ad--inlist { padding: 12px 0; border-block: 1px dashed var(--line); }
.article .aw-ad { margin-block: 26px; }
.sidebar .aw-ad { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 0; }
html.aw-ads-ok .layout > .sidebar:has(.aw-ad--sticky) { align-self: stretch; }
.aw-ad--sticky { position: sticky; top: 70px; }
/* Site skin side columns (GAM), outside the 1280px container */
.aw-ad--side { position: fixed; top: 140px; z-index: 40; width: 300px; max-height: calc(100vh - 80px); }
.aw-ad--side-left { left: calc((100vw - 1280px) / 2 - 316px); }
.aw-ad--side-right { right: calc((100vw - 1280px) / 2 - 316px); }
@media (max-width: 1919px) { .aw-ad--side { width: 160px; } .aw-ad--side-left { left: calc((100vw - 1280px) / 2 - 176px); } .aw-ad--side-right { right: calc((100vw - 1280px) / 2 - 176px); } }
/* Mobile anchor 320x50, closable */
.aw-ad--anchor { position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -4px 14px rgba(0,0,0,.12); padding: 4px 0 6px; }
.aw-ad--anchor .aw-ad__label { margin-bottom: 2px; }
.aw-ad__close { position: absolute; top: -26px; left: 8px; width: 28px; height: 26px; border: 1px solid var(--line); border-bottom: 0; border-radius: 6px 6px 0 0; background: var(--surface); color: var(--ink); font-size: 18px; line-height: 1; }
body.aw-anchor-on { padding-bottom: 66px; }
body.aw-anchor-on .back-top { bottom: 80px; }
/* Direct-sold skin: clickable background, content sits above it */
.aw-skin-link { display: none; }
@media (min-width: 1360px) {
  body.aw-has-skin .aw-skin-link { display: block; position: fixed; inset: 0; z-index: 0; }
  body.aw-has-skin .topbar, body.aw-has-skin .masthead, body.aw-has-skin .mainnav, body.aw-has-skin .ticker,
  body.aw-has-skin .aw-ad--band, body.aw-has-skin .site-footer { position: relative; z-index: 1; }
  body.aw-has-skin .mainnav { position: sticky; z-index: 50; }
  body.aw-has-skin main { position: relative; z-index: 1; max-width: 1312px; margin-inline: auto; background: var(--bg); }
}

/* ===================== CONSENT BANNER ===================== */
.aw-consent { position: fixed; inset: auto 0 0 0; z-index: 300; padding: 12px; }
.aw-consent[hidden] { display: none; }
.aw-consent__box { max-width: 880px; margin-inline: auto; background: #000; color: #E9E4D6; border-radius: 12px; border-top: 4px solid var(--gold-3); padding: 18px 20px; box-shadow: 0 10px 40px rgba(0,0,0,.35); }
.aw-consent__title { margin: 0 0 6px; color: var(--gold-1); font-size: 17px; font-weight: 800; }
.aw-consent__text { margin: 0 0 12px; font-size: 14px; line-height: 1.8; }
.aw-consent__text a { color: var(--gold-1); text-decoration: underline; }
.aw-consent__prefs { display: grid; gap: 8px; margin-bottom: 12px; }
.aw-consent__prefs[hidden] { display: none; }
.aw-consent__opt { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; }
.aw-consent__opt input { margin-top: 5px; flex: none; }
.aw-consent__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.aw-consent__btn { border: 1px solid #555; background: transparent; color: #fff; border-radius: 999px; padding: 9px 18px; font-weight: 800; font-size: 14px; }
.aw-consent__btn--primary { background: var(--gold-grad); color: #000; border-color: transparent; }
.aw-consent__btn[hidden] { display: none; }
.aw-consent-link { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.aw-consent-link:hover { color: var(--gold-1); }
@media (max-width: 600px) { .aw-consent__btn { flex: 1 1 45%; } }

/* ===================== AUTHORS / TRUST (v2.5) ===================== */
.author__job { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.author-links { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.author-links a { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 3px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.author-head .author-links a { background: #1A1A1A; border-color: #333; color: var(--gold-1); }
.author-links a:hover { background: var(--gold-2); color: #000; }
.team-card__job { font-size: 12.5px; font-weight: 700; color: var(--gold-ink); }
.team-card .author-links { justify-content: center; }
.archive-head__rss, .footer__rss { font-size: 12.5px; font-weight: 700; color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }
.archive-head__rss { display: inline-block; margin-top: 6px; }

/* ===================== SOURCE (v2.6) ===================== */
.article-source { margin: 22px 0; padding: 12px 16px; border-inline-start: 4px solid var(--gold-3); background: var(--bg); border-radius: 6px; font-size: 14.5px; line-height: 1.9; }
.article-source a { color: var(--gold-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.article-source__added { color: var(--muted); font-size: 13px; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1180px) {
  .top-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .timeline { grid-column: 1 / -1; }
  .timeline__list { max-height: none; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 24px; }
  .strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .strip .card:nth-child(4) { border-inline-start: 0; padding-inline-start: 0; }
  .opinions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layout { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .header-ad { display: none; }
}
@media (max-width: 900px) {
  .top-grid { grid-template-columns: 1fr; }
  .top-grid__stack { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .top-grid__stack .ov { min-height: 220px; }
  .ov--xl { min-height: 380px; }
  .cols3 { grid-template-columns: 1fr; }
  .catblock, .video-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu-toggle { display: grid; }
  .masthead__search, .masthead .btn-live span.txt { display: none; }
  .masthead { position: sticky; top: 0; z-index: 60; border-bottom: 3px solid var(--gold-3); }
  .masthead .container { padding-block: 8px; }
  .brand img { height: 52px; }
  .mainnav { position: static; }
  .mainnav .container { min-height: 46px; }
  .menu a { padding: 11px 13px; font-size: 14.5px; }
  .mainnav__search { display: none; }
  .list .card { grid-template-columns: 1fr; }
  .list .card > *, .list .card > .card__media { grid-column: 1; grid-row: auto; }
  .article { padding: 18px; }
}
@media (max-width: 600px) {
  .topbar { display: none; }
  .top-grid__stack { grid-template-columns: 1fr; }
  .timeline__list { grid-template-columns: 1fr; }
  .timeline__list li:nth-child(n+6) { display: none; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip .card + .card { border: 0; padding: 0; }
  .grid-4, .grid-3, .opinions { grid-template-columns: 1fr; }
  .ov--xl .ov__excerpt { display: none; }
  .entry-content { font-size: 17px; }
  .footer__top { grid-template-columns: 1fr; }
  .masthead .btn-live { padding: 0 12px; }
  .alignwide { margin-inline: 0; }
}
@media print {
  .topbar, .mainnav, .ticker, .site-footer, aside, .share, .back-top, .ad-slot, .aw-ad, .aw-consent { display: none !important; }
}

/* YouTube au clic (vie privée) */
.aw-yt{position:relative;aspect-ratio:16/9;background:#0b0b0b;border-radius:12px;display:grid;place-items:center;align-content:center;gap:.5rem;margin:1rem 0;color:#f5f0dc;text-align:center;padding:1rem}
.aw-yt__btn{font:inherit;font-weight:700;background:#FAF097;color:#000;border:0;border-radius:999px;padding:.7rem 1.4rem;min-height:44px;cursor:pointer}
.aw-yt__btn:focus-visible{outline:3px solid #fff;outline-offset:3px}
.aw-yt__note{margin:0;font-size:.85rem;opacity:.8}
.aw-yt.is-playing{padding:0;display:block}
.aw-yt iframe{width:100%;height:100%;border:0;border-radius:12px}
