/*
Theme Name: Geneva CSR
Theme URI: https://genevacsr.com
Author: Geneva Center for Studies & Research
Description: Custom bilingual (English / Arabic) editorial theme for Geneva CSR.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: genevacsr
*/

/* ---------- tokens ---------- */
:root {
  --red: #BF2934;
  --red-ink: #9E1F29;
  --red-tint: #F9EDEE;
  --ink: #141414;
  --ink-2: #333232;
  --muted: #666464;
  --grey: #929191;
  --rule: #E3E0DE;
  --paper: #FFFFFF;
  --paper-2: #F5F3F1;
  --dark: #151414;
  --serif: "Roboto Slab", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --arabic: "IBM Plex Sans Arabic", "IBM Plex Sans", Tahoma, Arial, sans-serif;
  --wrap: 1240px;
  --narrow: 720px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 2px;
  --header-h: 76px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.is-ar, :lang(ar) { font-family: var(--arabic); }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(ar) h4,
.is-ar h1, .is-ar h2, .is-ar h3, .is-ar h4 { font-family: var(--arabic); letter-spacing: 0; line-height: 1.35; }
[lang="en"] h1, [lang="en"] h2, [lang="en"] h3 { font-family: var(--serif); letter-spacing: -0.01em; line-height: 1.15; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); }
.skip-link { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100; }
.skip-link:focus { top: 8px; }
.arrow { display: inline-block; transition: transform .2s ease; }
.is-ar .arrow, [dir="rtl"] .arrow { transform: scaleX(-1); }
a:hover .arrow { transform: translateX(4px); }
.is-ar a:hover .arrow { transform: scaleX(-1) translateX(4px); }
.note { color: var(--muted); font-size: .9em; }

.kicker {
  margin: 0 0 14px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
}
.is-ar .kicker { letter-spacing: 0; font-family: var(--arabic); font-size: 14px; }
.kicker a { text-decoration: none; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px;
  background: var(--red); color: #fff;
  font-weight: 600; font-size: 15px; text-decoration: none;
  border: 2px solid var(--red); border-radius: var(--radius);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--red-ink); border-color: var(--red-ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--red); border-color: #fff; }
.btn-light:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-block { width: 100%; justify-content: center; }
.text-link { font-weight: 600; color: var(--red); text-decoration: none; }
.text-link:hover { color: var(--red-ink); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 38px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-weight: 800; font-size: 22px; letter-spacing: -0.01em; }
.brand-name span { color: var(--red); }
.brand-sub { font-size: 11px; color: var(--muted); letter-spacing: .02em; margin-top: 3px; }
.is-ar .brand-sub { font-size: 12px; letter-spacing: 0; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav .menu { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.site-nav .menu a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2); padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav .menu a:hover { color: var(--ink); border-bottom-color: var(--grey); }
.site-nav .current-menu-item > a, .site-nav .current_page_item > a, .site-nav .current-page-ancestor > a, .site-nav .current-menu-ancestor > a { color: var(--ink); border-bottom-color: var(--red); }
.lang-switch { display: flex; list-style: none; margin: 0; padding: 0; border: 1px solid var(--rule); border-radius: 999px; overflow: hidden; }
.lang-switch a { display: block; padding: 5px 12px; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--muted); }
.lang-switch a[aria-current] { background: var(--ink); color: #fff; }
.lang-switch a[lang="ar"] { font-family: var(--arabic); }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px;
    background: none; border: 1px solid var(--rule); border-radius: var(--radius);
    padding: 9px 12px; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .2s ease; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; inset-inline-start: 0; }
  .nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
  .nav-open .nav-toggle-bars { background: transparent; }
  .nav-open .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-open .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
  .site-nav {
    display: none;
    position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--rule);
    padding: 8px var(--gutter) 24px;
    box-shadow: 0 18px 30px -20px rgba(0,0,0,.25);
  }
  .nav-open .site-nav { display: flex; }
  .site-nav .menu { flex-direction: column; gap: 0; }
  .site-nav .menu a { display: block; padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--rule); }
  .site-nav .current-menu-item > a, .site-nav .current_page_item > a { border-bottom-color: var(--rule); color: var(--red); }
  .lang-switch { align-self: flex-start; margin-top: 18px; }
  .brand-sub { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--rule); }
.hero-inner { position: relative; z-index: 1; padding-block: clamp(56px, 10vw, 128px) clamp(48px, 7vw, 88px); }
.hero-title {
  font-size: clamp(2.9rem, 8.4vw, 7.2rem);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -0.035em;
  max-width: 11ch;
}
.is-ar .hero-title { font-size: clamp(2.6rem, 7.4vw, 6.2rem); line-height: 1.2; letter-spacing: 0; max-width: 13ch; font-weight: 700; }
.hero-foot { display: grid; grid-template-columns: minmax(0, 580px); gap: 28px; margin-top: clamp(28px, 4vw, 48px); }
.hero-actions .btn-ghost { background: #fff; }
.hero-text { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); margin: 0; }
.is-ar .hero-text { line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-mark {
  position: absolute; z-index: 0;
  inset-inline-end: max(-90px, calc((100vw - var(--wrap)) / 2 - 140px));
  top: 50%; transform: translateY(-50%);
  width: clamp(280px, 36vw, 520px); opacity: .95; pointer-events: none;
}
@media (max-width: 1180px) and (min-width: 961px) { .hero-mark { opacity: .35; } }
@media (max-width: 960px) {
  .hero-mark { width: 260px; opacity: .12; inset-inline-end: -60px; top: 34%; }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(48px, 7vw, 96px); }
.section + .section { padding-top: 0; }
.section-head {
  display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 12px 32px;
  border-top: 3px solid var(--ink); padding-top: 18px; margin-bottom: 36px;
}
.section-title { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.section-desc { margin: 0; color: var(--muted); font-size: 15px; }
.section-link { font-size: 15px; font-weight: 600; text-decoration: none; color: var(--red); white-space: nowrap; }
@media (max-width: 720px) {
  .section-head { grid-template-columns: 1fr; }
}

/* ---------- Brief on home ---------- */
.brief-home { padding-top: clamp(48px, 7vw, 96px) !important; }
.brief-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: clamp(28px, 4vw, 64px); }
.brief-lead-link { text-decoration: none; display: block; }
.brief-lead-link:hover .brief-lead-title { color: var(--red); }
.meta { margin: 0 0 12px; color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.issue { color: var(--red); font-weight: 600; font-variant-numeric: tabular-nums; }
.brief-lead-title { font-size: clamp(1.7rem, 3.3vw, 2.75rem); line-height: 1.12; transition: color .15s ease; }
.brief-points { list-style: none; margin: 28px 0 24px; padding: 0; counter-reset: pt; }
.brief-points li { display: grid; grid-template-columns: 170px 1fr; gap: 6px 24px; padding: 14px 0; border-top: 1px solid var(--rule); }
.brief-points li:last-child { border-bottom: 1px solid var(--rule); }
.brief-points .topic { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--red); padding-top: 3px; }
.brief-points .head { font-family: var(--serif); font-weight: 500; font-size: 18px; line-height: 1.35; }
@media (max-width: 600px) { .brief-points li { grid-template-columns: 1fr; } }
.digest-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--dark); color: #fff; text-decoration: none;
  padding: 26px; border-radius: var(--radius); margin-bottom: 32px;
  position: relative; overflow: hidden;
}
.digest-card::after { content: ""; position: absolute; inset-inline-end: -40px; bottom: -40px; width: 140px; height: 140px; border-radius: 50%; background: var(--red); opacity: .9; }
.digest-card:hover { color: #fff; }
.digest-card:hover .digest-title { text-decoration: underline; text-underline-offset: 4px; }
.digest-label { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #F2A9AE; }
.digest-title { font-family: var(--serif); font-weight: 700; font-size: 21px; line-height: 1.25; position: relative; z-index: 1; max-width: 90%; }
.digest-desc { color: #BDBBBA; font-size: 14px; position: relative; z-index: 1; }
.side-h { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.is-ar .side-h { font-family: var(--arabic); letter-spacing: 0; font-size: 14px; }
.issue-list { list-style: none; margin: 0; padding: 0; }
.issue-list a { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); text-decoration: none; font-size: 15px; }
.issue-list .t { color: var(--muted); }
.issue-list a:hover .t { color: var(--ink); }
@media (max-width: 900px) { .brief-grid { grid-template-columns: 1fr; } }

/* ---------- areas ---------- */
.areas-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); }
.areas-list li { border-inline-end: 1px solid var(--rule); }
.areas-list li:last-child { border-inline-end: 0; }
.areas-list a { display: flex; flex-direction: column; gap: 14px; height: 100%; padding: 28px 24px 32px; text-decoration: none; transition: background .2s ease; }
.areas-list li:first-child a { padding-inline-start: 0; }
.areas-list a:hover { background: var(--paper-2); color: var(--ink); }
.areas-list .num { font-family: var(--serif); font-weight: 800; font-size: 44px; line-height: 1; color: var(--red); font-variant-numeric: tabular-nums; }
.areas-list .area-title { font-family: var(--serif); font-weight: 700; font-size: 20px; line-height: 1.25; }
.is-ar .areas-list .area-title { font-family: var(--arabic); }
.areas-list .area-text { color: var(--muted); font-size: 15px; }
.areas-list--page { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.areas-list--page li { border-bottom: 1px solid var(--rule); }
.areas-list--page li:nth-child(2n) { border-inline-end: 0; }
.areas-list--page li a { padding-inline-start: 0; padding-inline-end: 32px; }
.areas-list--page li:nth-child(2n) a { padding-inline-start: 32px; }
@media (max-width: 960px) {
  .areas-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .areas-list li:nth-child(2n) { border-inline-end: 0; }
  .areas-list li { border-bottom: 1px solid var(--rule); }
  .areas-list li:nth-child(odd) a { padding-inline-start: 0; }
}
@media (max-width: 600px) {
  .areas-list, .areas-list--page { grid-template-columns: 1fr; }
  .areas-list li { border-inline-end: 0; }
  .areas-list a, .areas-list--page li:nth-child(2n) a { padding-inline: 0; }
}

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.card { display: flex; flex-direction: column; }
.card-media { display: block; overflow: hidden; aspect-ratio: 16 / 10; background: var(--paper-2); margin-bottom: 18px; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.03); }
.card-num { font-family: var(--serif); color: var(--red); font-weight: 800; }
.card-title { font-size: 21px; line-height: 1.25; margin-bottom: 10px; }
.card-title a { text-decoration: none; }
.card-text { color: var(--muted); font-size: 15px; margin: 0; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.cta { background: var(--red); color: #fff; }
.cta-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; padding-block: clamp(48px, 7vw, 88px); }
.cta-title { font-size: clamp(2rem, 4.4vw, 3.6rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.04; }
.is-ar .cta-title { letter-spacing: 0; line-height: 1.3; }
.cta-side p { font-size: 17px; color: #FBE3E5; }
@media (max-width: 800px) { .cta-inner { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: var(--dark); color: #C9C7C6; font-size: 15px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #F2A9AE; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1.2fr; gap: 40px; padding-block: 64px 48px; }
.footer-brand img { width: 64px; margin-bottom: 14px; }
.footer-word { font-family: var(--serif); font-weight: 800; font-size: 26px; color: #fff; margin: 0; letter-spacing: -0.01em; }
.footer-word span { color: #E2535D; }
.footer-sub { font-size: 13px; color: #A9A7A6; margin: 4px 0 0; }
.footer-h { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); margin-bottom: 14px; }
.is-ar .footer-h { font-family: var(--arabic); letter-spacing: 0; font-size: 14px; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-note { color: #A9A7A6; }
.footer-link { font-weight: 600; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-block: 22px 32px; border-top: 1px solid #2E2C2C; font-size: 13px; color: #8E8C8B; }
.footer-base p { margin: 0; }
.legal { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.legal a { color: #C9C7C6; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- page head ---------- */
.page-head { padding-block: clamp(48px, 8vw, 104px) clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--rule); }
.page-title { font-size: clamp(2.3rem, 5.4vw, 4.4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; max-width: 18ch; }
.is-ar .page-title { letter-spacing: 0; line-height: 1.25; font-weight: 700; }
.page-lede { margin: 20px 0 0; max-width: 62ch; font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); }
.page-lede p:last-child { margin: 0; }
.page-head--404 { border: 0; padding-bottom: 96px; }
.page-head--404 .btn { margin-top: 24px; margin-inline-end: 8px; }
.page-media { margin-top: 40px; margin-bottom: 0; }
.page-media img, .article-media img { width: 100%; max-height: 560px; object-fit: cover; }
.page-body .with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 6vw, 96px); align-items: start; }
.page-body .with-aside .prose { max-width: 68ch; }
.page-aside { position: sticky; top: calc(var(--header-h) + 24px); border-top: 3px solid var(--ink); padding-top: 16px; }
.aside-list { list-style: none; margin: 0 0 24px; padding: 0; }
.aside-list a { display: block; padding: 12px 0; border-bottom: 1px solid var(--rule); text-decoration: none; font-size: 15px; line-height: 1.4; }
.aside-list a[aria-current] { color: var(--red); font-weight: 600; }
@media (max-width: 900px) { .page-body .with-aside { grid-template-columns: 1fr; } .page-aside { position: static; } }

/* ---------- filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.filters a { padding: 8px 16px; border: 1px solid var(--rule); border-radius: 999px; font-size: 14px; font-weight: 500; text-decoration: none; color: var(--ink-2); }
.filters a:hover { border-color: var(--ink); color: var(--ink); }
.filters a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- post list ---------- */
.post-list { list-style: none; margin: 0; padding: 0; }
.post-row { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 24px; align-items: start; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.post-row:first-child { padding-top: 0; }
.post-row > a:first-child { text-decoration: none; display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 6px 32px; }
.post-row:not(:has(.post-thumb)) { grid-template-columns: 1fr; }
.post-meta { grid-row: span 2; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); padding-top: 4px; }
.post-meta .cat { color: var(--red); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: 12px; }
.is-ar .post-meta .cat { letter-spacing: 0; text-transform: none; font-size: 13px; }
.post-title { font-family: var(--serif); font-weight: 700; font-size: clamp(19px, 2vw, 23px); line-height: 1.25; }
.is-ar .post-title { font-family: var(--arabic); line-height: 1.5; }
[lang="en"] .post-title { font-family: var(--serif); line-height: 1.25; }
.post-row > a:hover .post-title { color: var(--red); }
.post-excerpt { color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-thumb img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
@media (max-width: 760px) {
  .post-row { grid-template-columns: 1fr; }
  .post-row > a:first-child { grid-template-columns: 1fr; }
  .post-meta { grid-row: auto; flex-direction: row; gap: 12px; }
  .post-thumb { display: none; }
}
.en-briefs { margin-top: 64px; }
.en-briefs .section-title { margin-bottom: 20px; border-top: 3px solid var(--ink); padding-top: 18px; }

.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pagination .page-numbers { display: inline-flex; min-width: 42px; height: 42px; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--rule); text-decoration: none; font-size: 15px; font-variant-numeric: tabular-nums; }
.pagination .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination a.page-numbers:hover { border-color: var(--ink); color: var(--ink); }
.pagination .dots { border: 0; }

/* ---------- article ---------- */
.article-head { padding-block: clamp(40px, 7vw, 88px) 32px; }
.article-title { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.08; }
[dir="rtl"] .article-title { letter-spacing: 0; line-height: 1.35; font-weight: 700; }
.article-meta { margin: 20px 0 0; color: var(--muted); font-size: 15px; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.article-media { margin: 0 auto 48px; max-width: var(--wrap); }
.article-media img { aspect-ratio: 2 / 1; }
.article-foot { margin: 56px 0 clamp(48px, 7vw, 96px); padding-top: 24px; border-top: 1px solid var(--rule); }
.share { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; font-size: 14px; color: var(--muted); margin-bottom: 32px; }
.share a { font-weight: 600; color: var(--ink); text-decoration: none; }
.share a:hover { color: var(--red); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-nav a { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--rule); text-decoration: none; }
.post-nav a:hover { border-color: var(--ink); color: var(--ink); }
.post-nav .next { grid-column: 2; text-align: end; }
.post-nav .lbl { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.post-nav .t { font-family: var(--serif); font-weight: 700; font-size: 16px; line-height: 1.3; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } .post-nav .next { grid-column: 1; } }

/* ---------- prose ---------- */
.prose { font-size: 18px; line-height: 1.72; color: var(--ink-2); }
.prose:lang(ar), [dir="rtl"] .prose, .is-ar .prose { font-size: 19px; line-height: 1.95; }
[lang="en"] .prose, .prose[lang="en"] { font-family: var(--sans); font-size: 18px; line-height: 1.72; }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0; }
.prose > p + p { margin-top: .9em; }
.prose h2 { font-size: 1.65em; color: var(--ink); margin-top: 1.8em; }
.prose h3 { font-size: 1.2em; color: var(--ink); margin-top: 1.7em; }
.prose h2 + *, .prose h3 + * { margin-top: .55em; }
.prose a { color: var(--red); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-inline-start: 1.2em; }
.prose li { margin: .45em 0; padding-inline-start: .2em; }
.prose li::marker { color: var(--red); }
.prose blockquote {
  margin: 1.8em 0; padding: 4px 0; padding-inline-start: 24px;
  border-inline-start: 4px solid var(--red);
  font-family: var(--serif); font-weight: 500; font-size: 1.45em; line-height: 1.35; color: var(--ink);
}
.is-ar .prose blockquote { font-family: var(--arabic); line-height: 1.6; }
.prose blockquote p { margin: 0; }
.prose img { height: auto; }
.prose figure { margin-inline: 0; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.4em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9em; }
.prose th, .prose td { border-bottom: 1px solid var(--rule); padding: 10px 8px; text-align: start; }
.prose img.emoji { display: inline; width: 1em; height: 1em; vertical-align: -0.12em; margin: 0 .08em; }

/* ---------- profile ---------- */
.gcsr-person { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; padding: 40px 0; border-top: 1px solid var(--rule); }
.gcsr-person:first-child { border-top: 0; padding-top: 0; }
.prose .gcsr-person + .gcsr-person { margin-top: 0; }
.gcsr-portrait { margin: 0; }
.gcsr-portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(.15); }
.gcsr-person-body h2 { margin-top: 0; font-size: 1.6em; }
.gcsr-person-body h2 + p { margin-top: .6em; }
@media (max-width: 700px) { .gcsr-person { grid-template-columns: 1fr; gap: 20px; } .gcsr-portrait { max-width: 240px; } }
.page-template-default .page-body .narrow:has(.gcsr-person) { max-width: calc(980px + 2 * var(--gutter)); }

/* ---------- gallery ---------- */
.gallery-section h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); border-top: 3px solid var(--ink); padding-top: 18px; margin-bottom: 32px; }
.wp-block-gallery.gcsr-gallery { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.wp-block-gallery.gcsr-gallery figure { margin: 0 !important; width: auto !important; }
.wp-block-gallery.gcsr-gallery img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; height: 100% !important; }
@media (max-width: 700px) { .wp-block-gallery.gcsr-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- WordPress bits ---------- */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.alignwide { max-width: var(--wrap); }
.wp-caption-text, figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .site-footer, .cta, .share, .post-nav, .hero-mark { display: none !important; }
  body { font-size: 12pt; }
}

.section-head .section-link { justify-self: end; grid-column: -2 / -1; }
@media (max-width: 720px) { .section-head .section-link { justify-self: start; grid-column: auto; } }

.gcsr-person-body .role { margin-top: .35em; color: var(--red); font-weight: 600; font-size: .9em; letter-spacing: .04em; }

.prose h2.brief-topic { font-size: 1.3em; line-height: 1.3; margin-top: 2.2em; padding-top: 1.1em; border-top: 1px solid var(--rule); }
.prose h2.brief-topic:first-of-type { border-top: 0; padding-top: 0; }
.brief-topic .topic { display: block; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.brief-topic .dot { font-size: 11px; letter-spacing: 0; }
