/* ==========================================================================
   أثر – Athar consolidated stylesheet
   Extracted from the static prototypes (homepage, article 1a/1b/1c, section).
   Fonts are self-hosted; @font-face lives in fonts/google-fonts.css.
   ========================================================================== */

/* ===== Design Tokens ===== */
:root {
  --bg: #F4F2EE;
  --surface: #FFFFFF;
  --ink: #0D1321;
  --ink2: rgba(13,19,33,0.62);
  --line: rgba(13,19,33,0.12);
  --red: #B42318;
  --heroBg: #0D1321;
  --heroInk: #F4F2EE;

  --c-kashf: #B42318;
  --c-fassr: oklch(0.50 0.10 250);
  --c-hallil: oklch(0.50 0.09 200);
  --c-nahki: oklch(0.55 0.11 60);
  --c-naqish: oklch(0.48 0.10 310);
  --c-nnsif: oklch(0.53 0.13 356);

  --chip-kashf: #B42318;
  --chip-fassr: oklch(0.50 0.10 250);
  --chip-hallil: oklch(0.50 0.09 200);
  --chip-nahki: oklch(0.55 0.11 60);
  --chip-naqish: oklch(0.48 0.10 310);
  --chip-nnsif: oklch(0.53 0.13 356);

  --logoLight: block;
  --logoDark: none;
  --headerLine: transparent;

  /* Per-page accent – override on <html> or a section wrapper to recolour
     article (--accent) and section (--sec) surfaces. Defaults to kashf. */
  --accent: var(--c-kashf);
  --sec: var(--c-kashf);
}

html[data-scrolled="true"] {
  --headerLine: var(--line);
}

html[data-theme="dark"] {
  --bg: #0B111E;
  --surface: #141C2D;
  --ink: #F4F2EE;
  --ink2: rgba(244,242,238,0.62);
  --line: rgba(244,242,238,0.14);
  --red: #D65041;
  --heroBg: #111A2B;
  --heroInk: #F4F2EE;

  --c-kashf: oklch(0.70 0.13 28);
  --c-fassr: oklch(0.74 0.08 250);
  --c-hallil: oklch(0.74 0.08 200);
  --c-nahki: oklch(0.77 0.10 65);
  --c-naqish: oklch(0.74 0.08 310);
  --c-nnsif: oklch(0.76 0.11 356);

  --chip-kashf: oklch(0.70 0.13 28);
  --chip-fassr: oklch(0.74 0.08 250);
  --chip-hallil: oklch(0.74 0.08 200);
  --chip-nahki: oklch(0.77 0.10 65);
  --chip-naqish: oklch(0.74 0.08 310);
  --chip-nnsif: oklch(0.76 0.11 356);

  --logoLight: none;
  --logoDark: block;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
}

body {
  margin: 0;
  font-family: 'Cairo', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  transition: background 0.3s, color 0.3s;
}

a {
  color: var(--red);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--ink);
}

@keyframes heroFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--headerLine);
  transition: border-color 0.25s;
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px 32px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.burger-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
  flex: none;
  transition: border-color 0.2s;
}

.burger-btn:hover {
  border-color: var(--red);
}

.burger-line {
  display: block;
  height: 2px;
  background: currentColor;
}

.burger-line--long { width: 16px; }
.burger-line--short { width: 10px; align-self: center; margin-inline-end: 6px; }

.header-logo {
  display: flex;
  align-items: center;
}

.header-logo img {
  height: 70px;
  width: auto;
}

.logo-light {
  display: var(--logoLight);
  mix-blend-mode: darken;
}

.logo-dark {
  display: var(--logoDark);
  mix-blend-mode: lighten;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-inline-start: 16px;
  flex: 1;
}

.header-nav a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink2);
  transition: color 0.2s;
}

.header-nav a:hover {
  color: var(--red);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: border-color 0.2s, color 0.2s;
}

.icon-btn:hover {
  border-color: var(--red);
  color: var(--red);
}

.lang-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: border-color 0.2s, color 0.2s;
  text-decoration: none;
}

html[dir="ltr"] .lang-toggle {
  font-family: 'Cairo', system-ui, sans-serif;
  font-size: 14px;
  letter-spacing: 0;
}

.lang-toggle:hover {
  border-color: var(--red);
  color: var(--red);
}

.subscribe-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--ink);
  color: var(--bg);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 24px;
  transition: background 0.2s, color 0.2s;
}

.subscribe-cta:hover {
  background: var(--red);
  color: #fff;
}

/* ===== Mobile Drawer ===== */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: none;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-drawer.is-open {
  display: flex;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.drawer-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: border-color 0.2s;
}

.drawer-close:hover {
  border-color: var(--red);
}

.drawer-logo img {
  height: 46px;
  width: auto;
}

.drawer-spacer {
  width: 40px;
}

.drawer-body {
  display: flex;
  flex-direction: column;
  padding: 10px 24px 30px;
}

.drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  transition: color 0.2s;
}

.drawer-section-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  font-weight: 800;
  transition: color 0.2s;
}

.drawer-section-sub {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink2);
}

.drawer-inst-link {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink2);
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s;
}

.drawer-inst-link:last-of-type {
  border-bottom: none;
}

.drawer-subscribe {
  margin-top: 16px;
  font-family: inherit;
  background: var(--ink);
  color: var(--bg);
  font-size: 13.5px;
  font-weight: 700;
  padding: 12px 0;
  border: none;
  border-radius: 26px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s, color 0.2s;
}

.drawer-subscribe:hover {
  background: var(--red);
  color: #fff;
}

/* ===== Mobile Chips ===== */
.chips-wrap {
  display: none;
  position: relative;
  margin-bottom: 12px;
}

.chips-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 18px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.chips-row::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 22px;
  transition: background 0.2s;
}

.chips-fade {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 52px;
  background: linear-gradient(to right, var(--bg) 30%, transparent);
  pointer-events: none;
  z-index: 1;
}

/* ===== Sections Strip ===== */
.strip-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 26px 32px 0;
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.strip-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 12px 26px;
  color: var(--ink);
  transition: background 0.2s;
}

.strip-cell + .strip-cell {
  border-inline-start: 1px solid var(--line);
}

.strip-cell--kashf:hover { background: color-mix(in oklab, var(--c-kashf) 6%, var(--surface)); }
.strip-cell--fassr:hover { background: color-mix(in oklab, var(--c-fassr) 6%, var(--surface)); }
.strip-cell--hallil:hover { background: color-mix(in oklab, var(--c-hallil) 6%, var(--surface)); }
.strip-cell--nahki:hover { background: color-mix(in oklab, var(--c-nahki) 6%, var(--surface)); }
.strip-cell--nnsif:hover { background: color-mix(in oklab, var(--c-nnsif) 6%, var(--surface)); }

.strip-icon {
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.strip-name {
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
}

.strip-sub {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink2);
  text-align: center;
  line-height: 1.5;
}

/* ===== Homepage Hero Carousel ===== */
.hero-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px 32px 0;
}

.hero {
  background: var(--heroBg);
  color: var(--heroInk);
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 1fr 76px;
  min-height: 440px;
}

.hero-text {
  padding: 52px 52px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  animation: heroFade 0.5s ease both;
}

.hero-badge {
  align-self: flex-start;
  background: var(--red);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 5px;
}

.hero-title {
  margin: 0;
  font-size: 44px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.3px;
}

.hero-excerpt {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.9;
  color: rgba(244,242,238,0.72);
  max-width: 44ch;
}

.hero-cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid rgba(244,242,238,0.4);
  color: #F4F2EE;
  font-size: 14.5px;
  font-weight: 700;
  padding: 10px 26px;
  border-radius: 28px;
  margin-top: 6px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.hero-cta:hover {
  background: #B42318;
  border-color: #B42318;
  color: #fff;
}

.hero-gfx {
  position: relative;
  overflow: hidden;
  background: linear-gradient(200deg, rgba(180,35,24,0.14), transparent 55%);
  border-inline-start: 1px solid rgba(244,242,238,0.08);
}

.hero-gfx-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(244,242,238,0.13) 1.3px, transparent 1.3px);
  background-size: 24px 24px;
}

.hero-gfx svg {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 78%;
}

.hero-diamond-1 {
  position: absolute;
  top: 38px;
  right: 36px;
  width: 13px;
  height: 13px;
  background: #B42318;
  transform: rotate(45deg);
}

.hero-diamond-2 {
  position: absolute;
  top: 64px;
  right: 60px;
  width: 8px;
  height: 8px;
  background: rgba(244,242,238,0.5);
  transform: rotate(45deg);
}

.hero-stat {
  position: absolute;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.hero-stat--top {
  top: 30%;
  left: 16%;
  color: rgba(244,242,238,0.85);
}

.hero-stat--bottom {
  top: 58%;
  right: 14%;
  color: rgba(244,242,238,0.55);
}

.hero-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  border-inline-start: 1px solid rgba(244,242,238,0.08);
  padding: 20px 0;
}

.hero-num {
  font-family: inherit;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 0 6px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1px;
  color: rgba(244,242,238,0.4);
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.hero-num.is-active {
  color: #F4F2EE;
  border-bottom-color: #B42318;
}

/* ===== Latest Articles ===== */
.section-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 52px 32px 0;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.diamond-accent {
  width: 10px;
  height: 10px;
  background: var(--red);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.section-heading h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 900;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.article-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(13,19,33,0.1);
}

/* Article card motif thumbnails */
.card-motif {
  position: relative;
  height: 140px;
  overflow: hidden;
}

.card-motif--kashf { background: color-mix(in oklab, var(--chip-kashf) 10%, var(--surface)); }
.card-motif--fassr { background: color-mix(in oklab, var(--chip-fassr) 10%, var(--surface)); }
.card-motif--hallil { background: color-mix(in oklab, var(--chip-hallil) 10%, var(--surface)); }
.card-motif--nahki { background: color-mix(in oklab, var(--chip-nahki) 10%, var(--surface)); }
.card-motif--nnsif { background: color-mix(in oklab, var(--chip-nnsif) 10%, var(--surface)); }

/* Dot grid pattern (kashf) */
.motif-dots {
  position: absolute;
  inset: 0;
}

.motif-dots--kashf {
  background-image: radial-gradient(color-mix(in oklab, var(--chip-kashf) 45%, transparent) 1.3px, transparent 1.3px);
  background-size: 18px 18px;
}

/* Diamond shapes */
.motif-diamond {
  position: absolute;
  transform: rotate(45deg);
}

/* Text lines pattern (fassr) */
.motif-lines {
  position: absolute;
  inset: 18px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
}

.motif-line {
  height: 3px;
}

/* Bar chart pattern (hallil) */
.motif-bars {
  position: absolute;
  inset: auto 26px 26px 26px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 80px;
}

.motif-bar {
  flex: 1;
}

/* Waveform pattern (nahki) */
.motif-waveform {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 30px;
}

.motif-wave-bar {
  width: 4px;
  border-radius: 3px;
}

/* Concentric circles (nnsif) */
.motif-circle {
  position: absolute;
  top: 50%;
  right: 50%;
  transform: translate(50%, -50%);
  border-radius: 50%;
  border-width: 2px;
  border-style: solid;
}

.motif-center-diamond {
  position: absolute;
  top: 50%;
  right: 50%;
  transform: translate(50%, -50%) rotate(45deg);
}

/* Section badge */
.section-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 4px;
}

.card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.6;
}

.card-title a {
  color: var(--ink);
  transition: color 0.2s;
}

.card-title a:hover {
  color: var(--red);
}

.card-excerpt {
  margin: 0;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.8;
  color: var(--ink2);
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink2);
}

.meta-diamond {
  width: 5px;
  height: 5px;
  background: var(--red);
  transform: rotate(45deg);
}

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--line);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
  padding: 9px 24px;
  border-radius: 26px;
  transition: border-color 0.2s, color 0.2s;
}

.more-link:hover {
  border-color: var(--red);
  color: var(--red);
}

/* ===== Podcast + Opinion Row ===== */
.two-col {
  max-width: 1240px;
  margin: 0 auto;
  padding: 52px 32px 0;
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
}

/* Podcast panel */
.podcast-panel {
  gap: 18px;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.panel-header h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
}

.podcast-player {
  flex: 1;
  position: relative;
  background: var(--heroBg);
  border-radius: 12px;
  overflow: hidden;
  min-height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.podcast-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(244,242,238,0.1) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
}

.podcast-bars {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  padding-bottom: 26px;
  opacity: 0.5;
}

.podcast-bar {
  width: 5px;
  border-radius: 3px;
}

.play-btn {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  background: rgba(244,242,238,0.95);
  color: #0D1321;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 0 4px;
  transition: background 0.2s, color 0.2s;
}

.play-btn:hover {
  background: #B42318;
  color: #fff;
}

.phase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.phase-card {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
}

.phase-diamond {
  width: 9px;
  height: 9px;
  transform: rotate(45deg);
  flex: none;
}

.phase-diamond--filled {
  background: var(--c-nahki);
}

.phase-diamond--outline {
  border: 2px solid var(--c-nahki);
}

.phase-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--c-nahki);
}

.phase-title {
  font-size: 13.5px;
  font-weight: 700;
}

.panel-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink2);
  transition: color 0.2s;
}

.panel-link:hover {
  color: var(--red);
}

/* Opinion panel */
.opinion-panel {
  gap: 16px;
}

.opinion-header h2 {
  color: var(--c-naqish);
}

.opinion-subtitle {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink2);
}

.opinion-list {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.opinion-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  transition: color 0.2s;
}

.opinion-item:last-child {
  border-bottom: none;
}

.opinion-item:hover {
  color: var(--red);
}

.opinion-title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.6;
}

.opinion-author {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink2);
}

.opinion-more {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 24px;
  transition: border-color 0.2s, color 0.2s;
}

.opinion-more:hover {
  border-color: var(--c-naqish);
  color: var(--c-naqish);
}

/* ===== Newsletter (Homepage) ===== */
.newsletter {
  max-width: 1240px;
  margin: 0 auto;
  padding: 52px 32px 0;
}

.newsletter-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 34px 40px;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.newsletter-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 260px;
}

.newsletter-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.newsletter-title-row h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
}

.newsletter-desc {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink2);
  line-height: 1.8;
}

.newsletter-form {
  display: flex;
  gap: 16px;
  align-items: center;
}

.newsletter-input {
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  padding: 11px 18px;
  border: 1.5px solid var(--line);
  border-radius: 26px;
  background: var(--bg);
  color: var(--ink);
  width: 250px;
  outline: none;
  transition: border-color 0.2s;
}

.newsletter-input:focus {
  border-color: var(--red);
}

.newsletter-btn {
  font-family: inherit;
  background: var(--ink);
  color: var(--bg);
  font-size: 13.5px;
  font-weight: 700;
  padding: 11px 26px;
  border: none;
  border-radius: 26px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: background 0.2s, color 0.2s;
}

.newsletter-btn:hover {
  background: var(--red);
  color: #fff;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--heroBg);
  color: var(--heroInk);
  margin-top: 56px;
}

.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 32px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1.3fr;
  gap: 36px;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-logo img {
  height: 82px;
  width: auto;
  align-self: flex-start;
  mix-blend-mode: lighten;
}

.footer-about {
  gap: 14px;
}

.footer-desc {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.9;
  color: rgba(244,242,238,0.65);
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(244,242,238,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F4F2EE;
  transition: border-color 0.2s, color 0.2s;
}

.social-link:hover {
  border-color: #B42318;
  color: #B42318;
}

.footer-links {
  gap: 11px;
}

.footer-links h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 800;
}

.footer-link {
  font-size: 13px;
  font-weight: 600;
  color: rgba(244,242,238,0.65);
  transition: color 0.2s;
}

.footer-link:hover {
  color: #F4F2EE;
}

.footer-subscribe-col {
  gap: 12px;
}

.footer-subscribe-col h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 800;
}

.footer-subscribe-desc {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.8;
  color: rgba(244,242,238,0.65);
}

.footer-email {
  font-size: 13px;
  font-weight: 600;
  color: rgba(244,242,238,0.65);
  transition: color 0.2s;
}

.footer-email:hover {
  color: #F4F2EE;
}

.footer-subscribe-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1.5px solid rgba(244,242,238,0.35);
  color: #F4F2EE;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 22px;
  border-radius: 24px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.footer-subscribe-btn:hover {
  background: #B42318;
  border-color: #B42318;
  color: #fff;
}

.footer-bar {
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px 32px;
  margin-top: 38px;
  border-top: 1px solid rgba(244,242,238,0.12);
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-bar-diamond {
  width: 6px;
  height: 6px;
  background: #B42318;
  transform: rotate(45deg);
}

.footer-bar-text {
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(244,242,238,0.55);
}

/* ==========================================================================
   ARTICLE PAGE
   ========================================================================== */

/* ===== Article Hero – shared pieces ===== */
.section-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 5px;
}

/* Hero A – Type-led (1a) */
.article-hero {
  padding: 52px 32px 44px;
  max-width: 720px;
  margin: 0 auto;
}

.article-hero .hero-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.article-hero .type-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink2);
}

.article-hero .article-title {
  margin: 0 0 18px;
  font-size: 46px;
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: -0.3px;
  color: var(--ink);
}

.article-hero .article-subtitle {
  margin: 0 0 28px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.9;
  color: var(--ink2);
  max-width: 65ch;
}

/* Hero B – Full-bleed (1b) */
.hero-bleed {
  position: relative;
  min-height: 420px;
  background: var(--heroBg);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-bleed__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,19,33,.15) 0%, rgba(13,19,33,.85) 70%);
  z-index: 1;
}

.hero-bleed__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(244,242,238,.08) 1.3px, transparent 1.3px);
  background-size: 24px 24px;
  z-index: 0;
}

.hero-bleed__stripes {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, transparent, transparent 40px, rgba(244,242,238,.03) 40px, rgba(244,242,238,.03) 41px);
  z-index: 0;
}

.hero-bleed__placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 13px;
  font-weight: 700;
  color: rgba(244,242,238,.35);
  font-family: ui-monospace, monospace;
  z-index: 0;
  white-space: nowrap;
}

.hero-bleed__content {
  position: relative;
  z-index: 2;
  padding: 0 32px 44px;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.hero-bleed .hero-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-bleed .type-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(244,242,238,.7);
}

.hero-bleed .article-title {
  margin: 0 0 14px;
  font-size: 42px;
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: -0.3px;
  color: #F4F2EE;
}

.hero-bleed .article-subtitle {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.9;
  color: rgba(244,242,238,.75);
  max-width: 60ch;
}

/* Hero C – Side-by-side (1c) */
.hero-side {
  max-width: 860px;
  margin: 0 auto;
  padding: 44px 32px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.hero-side-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-side .hero-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-side .type-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink2);
}

.hero-side .article-title {
  margin: 0;
  font-size: 36px;
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: -0.3px;
  color: var(--ink);
}

.hero-side .article-subtitle {
  margin: 0 0 28px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.9;
  color: var(--ink2);
  max-width: 55ch;
}

.hero-side-image {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--heroBg);
  min-height: 320px;
}

.hero-side-image__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(244,242,238,0.08) 1.3px, transparent 1.3px);
  background-size: 22px 22px;
}

.hero-side-image__stripes {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    135deg,
    transparent,
    transparent 40px,
    rgba(244,242,238,0.03) 40px,
    rgba(244,242,238,0.03) 41px
  );
}

.hero-side-image__label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
  font-weight: 700;
  color: rgba(244,242,238,0.35);
  font-family: ui-monospace, monospace;
  white-space: nowrap;
}

.hero-side-image__diamond--top {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 12px;
  height: 12px;
  background: #B42318;
  transform: rotate(45deg);
}

.hero-side-image__diamond--bottom {
  position: absolute;
  bottom: 22px;
  left: 22px;
  width: 7px;
  height: 7px;
  background: rgba(244,242,238,0.4);
  transform: rotate(45deg);
}

/* ===== Meta Bar ===== */
.meta-bar {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px;
}

.meta-bar-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.author-block {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--accent) 15%, var(--surface));
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-initial {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.author-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

.author-role {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink2);
}

.meta-spacer {
  flex: 1;
}

.meta-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink2);
}

/* Article meta-diamond uses the page accent (homepage .meta-diamond is red). */
.meta-bar .meta-diamond {
  width: 5px;
  height: 5px;
  background: var(--accent);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.meta-reading-time {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink2);
}

.share-buttons {
  display: flex;
  gap: 8px;
}

.share-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: border-color 0.2s, color 0.2s;
}

.share-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== Article Body ===== */
.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px 52px;
}

.article-body p {
  margin: 0 0 22px;
  font-size: 17px;
  font-weight: 500;
  line-height: 2.1;
  color: var(--ink);
}

.article-body h2 {
  margin: 42px 0 16px;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.5;
  color: var(--ink);
  border-inline-end: 4px solid var(--accent);
  padding-inline-end: 16px;
}

/* Pull quotes */
.pull-quote {
  margin: 38px 0;
  padding: 28px 28px 28px 24px;
  border-inline-end: 4px solid var(--accent);
  background: color-mix(in oklab, var(--accent) 5%, var(--surface));
  border-radius: 2px 12px 12px 2px;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.75;
  color: var(--ink);
}

.pull-quote footer {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink2);
  font-style: normal;
}

/* Data callouts */
.data-callouts {
  margin: 36px 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

.data-callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 20px;
  text-align: center;
}

.data-callout-value {
  display: block;
  font-size: 36px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1.2;
}

.data-callout-label {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink2);
  line-height: 1.6;
}

/* Chart placeholder */
.chart-placeholder {
  margin: 36px 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 120px;
  opacity: 0.6;
}

.chart-bar {
  width: 28px;
}

.chart-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink2);
  font-family: ui-monospace, monospace;
}

/* Sources panel */
.sources-panel {
  margin: 48px 0 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.sources-header {
  background: color-mix(in oklab, var(--accent) 6%, var(--surface));
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}

.sources-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}

.sources-list {
  padding: 8px 24px;
}

.source-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.source-item:last-child {
  border-bottom: none;
}

.source-diamond {
  flex: none;
  width: 6px;
  height: 6px;
  background: var(--accent);
  transform: rotate(45deg);
  margin-top: 8px;
}

.source-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.source-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.source-desc {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink2);
}

/* Tags */
.article-tags {
  margin: 36px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.article-tag {
  background: color-mix(in oklab, var(--accent) 8%, var(--surface));
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
}

/* ===== Newsletter (Article – compact) ===== */
.newsletter-article {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px 52px;
}

.newsletter-article .newsletter-card {
  padding: 28px 32px;
  gap: 24px;
}

.newsletter-article .newsletter-text {
  gap: 5px;
  min-width: 200px;
}

.newsletter-article .newsletter-title-row {
  gap: 8px;
}

.newsletter-diamond {
  width: 8px;
  height: 8px;
  background: var(--red);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.newsletter-article .newsletter-title-row h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
}

.newsletter-article .newsletter-desc {
  font-size: 13px;
}

.newsletter-article .newsletter-form {
  gap: 10px;
}

.newsletter-article .newsletter-input {
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 24px;
  width: 200px;
}

.newsletter-article .newsletter-btn {
  font-size: 13px;
  padding: 10px 22px;
  border-radius: 24px;
  gap: 7px;
}

/* ===== Related Articles (Article – card grid) ===== */
.related-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px 52px;
}

.related-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.related-heading h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
}

.related-diamond {
  width: 8px;
  height: 8px;
  background: var(--red);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.related-section .related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

.related-section .related-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.related-section .related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(13,19,33,0.1);
}

.related-thumb {
  height: 100px;
  position: relative;
  overflow: hidden;
}

.related-thumb--hallil { background: color-mix(in oklab, var(--c-hallil) 10%, var(--surface)); }
.related-thumb--fassr { background: color-mix(in oklab, var(--c-fassr) 10%, var(--surface)); }
.related-thumb--kashf { background: color-mix(in oklab, var(--c-kashf) 10%, var(--surface)); }

.related-thumb-bars {
  position: absolute;
  inset: auto 18px 16px 18px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 50px;
}

.related-thumb-lines {
  position: absolute;
  inset: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
}

.related-thumb-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(color-mix(in oklab, var(--c-kashf) 40%, transparent) 1.2px, transparent 1.2px);
  background-size: 16px 16px;
}

.related-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 4px;
}

.related-body {
  padding: 12px 14px 14px;
}

.related-body h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.6;
  color: var(--ink);
}

.related-body a {
  color: var(--ink);
}

.related-body a:hover {
  color: var(--red);
}

.related-meta {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink2);
}

/* ===== Compact Footer (Article) ===== */
.compact-footer {
  background: var(--heroBg);
  color: var(--heroInk);
  padding: 36px 32px;
}

.compact-footer-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.compact-footer-logo img {
  height: 50px;
  width: auto;
  mix-blend-mode: lighten;
}

.compact-footer-copy {
  font-size: 12px;
  font-weight: 600;
  color: rgba(244,242,238,0.55);
}

/* ==========================================================================
   SECTION PAGE
   ========================================================================== */

/* ===== Section Banner ===== */
.banner-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 36px 32px 0;
}

.section-banner {
  background: var(--heroBg);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  padding: 48px 56px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.banner-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(244,242,238,0.08) 1.3px, transparent 1.3px);
  background-size: 24px 24px;
}

.banner-diamond {
  position: absolute;
  transform: rotate(45deg);
}

.banner-diamond--1 {
  top: 28px;
  left: 36px;
  width: 14px;
  height: 14px;
  background: var(--sec);
  opacity: 0.6;
}

.banner-diamond--2 {
  bottom: 24px;
  left: 110px;
  width: 8px;
  height: 8px;
  background: var(--sec);
  opacity: 0.35;
}

.banner-diamond--3 {
  top: 22px;
  right: 160px;
  width: 10px;
  height: 10px;
  background: rgba(244,242,238,0.2);
}

.banner-icon {
  position: relative;
  flex: none;
  width: 80px;
  height: 80px;
  border-radius: 16px;
  background: color-mix(in oklab, var(--sec) 18%, rgba(244,242,238,0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sec);
}

.banner-text {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #F4F2EE;
}

.banner-title {
  margin: 0;
  font-size: 44px;
  font-weight: 900;
  line-height: 1.2;
}

.banner-desc {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.8;
  color: rgba(244,242,238,0.72);
  max-width: 50ch;
}

/* ===== Topic Filters ===== */
.filters-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 32px 0;
}

.filters-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chip {
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: 22px;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  transition: all 0.15s;
}

.filter-chip:hover {
  border-color: var(--sec);
  color: var(--sec);
}

.filter-chip.is-active {
  background: var(--sec);
  border-color: var(--sec);
  color: #fff;
}

/* ===== Pinned Featured Article ===== */
.pinned-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 32px 0;
}

.pinned-article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 320px;
}

.pinned-motif {
  position: relative;
  background: color-mix(in oklab, var(--sec) 8%, var(--surface));
  overflow: hidden;
}

.pinned-motif-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(color-mix(in oklab, var(--sec) 35%, transparent) 1.3px, transparent 1.3px);
  background-size: 22px 22px;
}

.pinned-motif svg {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 65%;
}

.pinned-diamond {
  position: absolute;
  transform: rotate(45deg);
}

.pinned-diamond--1 {
  top: 32px;
  right: 36px;
  width: 16px;
  height: 16px;
  background: var(--sec);
}

.pinned-diamond--2 {
  top: 58px;
  right: 68px;
  width: 9px;
  height: 9px;
  background: var(--sec);
  opacity: 0.45;
}

.pinned-content {
  padding: 38px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.pinned-badges {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pinned-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--sec);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 5px;
}

.pinned-type {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink2);
}

.pinned-title {
  margin: 0;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.5;
}

.pinned-title a {
  color: var(--ink);
  transition: color 0.2s;
}

.pinned-title a:hover {
  color: var(--sec);
}

.pinned-excerpt {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.9;
  color: var(--ink2);
}

.pinned-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink2);
  margin-top: 4px;
}

.pinned-meta-diamond {
  width: 4px;
  height: 4px;
  background: var(--sec);
  transform: rotate(45deg);
  display: inline-block;
}

.pinned-cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--line);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
  padding: 9px 24px;
  border-radius: 26px;
  margin-top: 2px;
  transition: border-color 0.2s, color 0.2s;
}

.pinned-cta:hover {
  border-color: var(--sec);
  color: var(--sec);
}

/* ===== Article Grid ===== */
.grid-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 36px 32px 0;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.grid-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(13,19,33,0.1);
}

.grid-motif {
  position: relative;
  height: 150px;
  background: color-mix(in oklab, var(--sec) 10%, var(--surface));
  overflow: hidden;
}

.grid-motif-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(color-mix(in oklab, var(--sec) 40%, transparent) 1.2px, transparent 1.2px);
  background-size: 18px 18px;
}

.grid-diamond {
  position: absolute;
  transform: rotate(45deg);
  background: var(--sec);
}

.grid-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.grid-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.65;
}

.grid-title a {
  color: var(--ink);
  transition: color 0.2s;
}

.grid-title a:hover {
  color: var(--sec);
}

.grid-excerpt {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.8;
  color: var(--ink2);
  flex: 1;
}

.grid-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink2);
}

.grid-meta-date {
  display: flex;
  align-items: center;
  gap: 5px;
}

.grid-meta-diamond {
  width: 4px;
  height: 4px;
  background: var(--sec);
  transform: rotate(45deg);
  display: inline-block;
}

/* ===== Pagination ===== */
.pagination {
  max-width: 1240px;
  margin: 0 auto;
  padding: 36px 32px 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.page-num {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.2s, color 0.2s;
}

.page-num:hover {
  border-color: var(--sec);
  color: var(--sec);
}

.page-num--active {
  background: var(--sec);
  border-color: var(--sec);
  color: #fff;
  font-weight: 800;
}

.page-num--active:hover {
  color: #fff;
}

/* ===== Related Sections (Section – row list) ===== */
.related-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 32px 0;
}

.related-heading-diamond {
  width: 8px;
  height: 8px;
  background: var(--red);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.related-wrap .related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.related-wrap .related-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  color: var(--ink);
  transition: border-color 0.2s;
}

.related-card--fassr:hover { border-color: var(--c-fassr); }
.related-card--hallil:hover { border-color: var(--c-hallil); }
.related-card--nahki:hover { border-color: var(--c-nahki); }
.related-card--nnsif:hover { border-color: var(--c-nnsif); }

.related-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.related-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.related-name {
  font-size: 16px;
  font-weight: 800;
}

.related-sub {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink2);
}

/* ===== Section Newsletter ===== */
.sec-newsletter {
  max-width: 1240px;
  margin: 0 auto;
  padding: 44px 32px 0;
}

.sec-newsletter-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 34px 40px;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.sec-newsletter-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 260px;
}

.sec-newsletter-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sec-newsletter-diamond {
  width: 9px;
  height: 9px;
  background: var(--sec);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.sec-newsletter-title-row h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
}

.sec-newsletter-desc {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink2);
  line-height: 1.8;
}

.sec-newsletter-form {
  display: flex;
  gap: 12px;
  align-items: center;
}

.sec-newsletter-input {
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  padding: 11px 18px;
  border: 1.5px solid var(--line);
  border-radius: 26px;
  background: var(--bg);
  color: var(--ink);
  width: 250px;
  outline: none;
  transition: border-color 0.2s;
}

.sec-newsletter-input:focus {
  border-color: var(--sec);
}

.sec-newsletter-btn {
  font-family: inherit;
  background: var(--ink);
  color: var(--bg);
  font-size: 13.5px;
  font-weight: 700;
  padding: 11px 26px;
  border: none;
  border-radius: 26px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, color 0.2s;
}

.sec-newsletter-btn:hover {
  background: var(--red);
  color: #fff;
}

/* ==========================================================================
   RESPONSIVE – consolidated by breakpoint
   ========================================================================== */

@media (max-width: 1080px) {
  .articles-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .section-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 960px) {
  /* Header collapses to burger (shared across all pages) */
  .header-nav { display: none; }
  .burger-btn { display: flex; }
  .header-actions { margin-inline-start: auto; }

  /* Homepage */
  .strip-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-rail {
    flex-direction: row;
    justify-content: center;
    border-inline-start: none;
    border-top: 1px solid rgba(244,242,238,0.08);
    padding: 14px 0;
  }

  .hero-gfx {
    min-height: 220px;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Section page */
  .section-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pinned-article {
    grid-template-columns: 1fr;
  }

  .pinned-motif {
    min-height: 220px;
    order: 2;
  }

  .pinned-content {
    order: 1;
  }

  .related-wrap .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 36px 32px;
    gap: 24px;
  }

  .banner-title {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  /* Article hero typography (all three variants) */
  .article-hero .article-title,
  .hero-bleed .article-title,
  .hero-side .article-title {
    font-size: 34px;
  }

  .article-hero .article-subtitle,
  .hero-bleed .article-subtitle,
  .hero-side .article-subtitle {
    font-size: 16px;
  }

  .hero-bleed {
    min-height: 360px;
  }

  .hero-side {
    grid-template-columns: 1fr;
    max-width: 720px;
    padding: 36px 32px 0;
  }

  .hero-side-image {
    order: -1;
    min-height: 240px;
  }

  /* Article body + related + newsletter */
  .data-callouts {
    grid-template-columns: 1fr;
  }

  .related-section .related-grid {
    grid-template-columns: 1fr 1fr;
  }

  .meta-bar-inner {
    gap: 14px;
  }

  .meta-spacer {
    flex: none;
    width: 100%;
    height: 0;
  }

  .newsletter-article .newsletter-card {
    flex-direction: column;
    align-items: stretch;
  }

  .newsletter-article .newsletter-form {
    flex-direction: column;
  }

  .newsletter-article .newsletter-input {
    width: 100%;
  }
}

@media (max-width: 640px) {
  /* Header compact (shared across all pages) */
  .header-inner {
    padding: 14px 18px;
    gap: 0;
    justify-content: space-between;
  }

  .header-logo {
    flex: 1;
    justify-content: center;
  }

  .header-logo img {
    height: 52px;
  }

  .header-actions {
    gap: 8px;
  }

  .theme-toggle {
    display: none;
  }

  .subscribe-cta {
    display: none;
  }

  /* Homepage */
  .strip-wrap { display: none; }
  .chips-wrap { display: block; }

  .articles-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-text {
    padding: 34px 26px 30px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-wrap {
    padding: 0;
  }

  .hero {
    border-radius: 0;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-input {
    width: 100%;
  }

  /* Article hero typography (all three variants) */
  .article-hero .article-title,
  .hero-bleed .article-title,
  .hero-side .article-title {
    font-size: 28px;
  }

  .article-hero .article-subtitle {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .hero-bleed .article-subtitle {
    font-size: 15px;
  }

  .hero-side .article-subtitle {
    font-size: 14px;
  }

  .article-hero {
    padding: 36px 18px 32px;
  }

  .hero-bleed__content {
    padding: 0 18px 32px;
  }

  .hero-bleed {
    min-height: 320px;
  }

  .hero-side {
    padding: 28px 18px 0;
  }

  .meta-bar {
    padding: 0 18px;
  }

  .article-body {
    padding: 0 18px 42px;
  }

  .newsletter-article {
    padding: 0 18px 42px;
  }

  .related-section {
    padding: 0 18px 42px;
  }

  .compact-footer {
    padding: 36px 18px;
  }

  /* Section page */
  .section-grid {
    grid-template-columns: 1fr 1fr;
  }

  .banner-wrap {
    padding: 20px 18px 0;
  }

  .section-banner {
    padding: 28px 22px;
    gap: 18px;
  }

  .banner-icon {
    width: 60px;
    height: 60px;
  }

  .banner-title {
    font-size: 28px;
  }

  .banner-desc {
    font-size: 14.5px;
  }

  .filters-wrap {
    padding: 18px 18px 0;
  }

  .pinned-wrap {
    padding: 22px 18px 0;
  }

  .pinned-content {
    padding: 26px 22px;
  }

  .pinned-title {
    font-size: 22px;
  }

  .grid-wrap {
    padding: 28px 18px 0;
  }

  .pagination {
    padding: 28px 18px 0;
  }

  .related-wrap {
    padding: 36px 18px 0;
  }

  .related-wrap .related-grid {
    grid-template-columns: 1fr;
  }

  .sec-newsletter {
    padding: 32px 18px 0;
  }

  .sec-newsletter-form {
    flex-direction: column;
  }

  .sec-newsletter-input {
    width: 100%;
  }
}

@media (max-width: 460px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-grid {
    grid-template-columns: 1fr;
  }

  .related-section .related-grid {
    grid-template-columns: 1fr;
  }

  .share-buttons {
    width: 100%;
    justify-content: flex-start;
  }
}
