/* Sayd Magazine — modern Arabic RTL hunting / wildlife magazine
   Brand from live site: olive #3e421d / #2c421d, gold #a78643
   Generated site: do not hand-edit docs/; rebuild via scripts/import-wxr.py
*/

:root {
  --olive: #3e421d;
  --olive-deep: #2c421d;
  --olive-hover: #565a37;
  --olive-soft: #6b7048;
  --gold: #a78643;
  --gold-dark: #80612c;
  --gold-soft: #c4a86a;
  --earth: #294535;
  --earth-mid: #365746;
  --ink: #16170f;
  --muted: #5b5d50;
  --paper: #f3f0e6;
  --card: #fffcf4;
  --hair: #ddd6c4;
  --ad-bg: #ece6d6;
  --breaking: #8b1e1e;
  --radius: 2px;
  --shadow: 0 1px 0 rgba(62, 66, 29, 0.08);
  --font: "Cairo", "Tajawal", "Noto Naskh Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  --font-body: "Noto Naskh Arabic", "Cairo", "Tajawal", Georgia, serif;
  --font-en: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-en-serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --container: 1240px;
  --header-h: 64px;
  --ticker-h: 38px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  direction: rtl;
  scroll-behavior: smooth;
}

/* English edition must be true LTR — do not inherit Arabic magazine direction */
html[dir="ltr"] {
  direction: ltr;
}

html[dir="ltr"] body,
html[lang="en"] body {
  font-family: var(--font-en);
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  font-size: 15.5px;
  overflow-x: hidden;
}

a { color: var(--earth); text-decoration: none; }
a:hover { color: var(--gold-dark); }

img { max-width: 100%; height: auto; display: block; }

.container {
  width: min(var(--container), 96%);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  inset-inline-start: 0.75rem;
  top: -3rem;
  z-index: 100;
  background: var(--gold);
  color: var(--ink);
  padding: 0.35rem 0.7rem;
  font-weight: 700;
}
.skip-link:focus { top: 0.4rem; }

/* ========== Sticky chrome: compact mast + ticker ========== */
.site-sticky {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--card);
  box-shadow: 0 1px 0 var(--hair), 0 8px 18px rgba(22, 23, 15, 0.06);
}

.mast-top {
  background: var(--olive-deep);
  color: #efe8d4;
  font-size: 0.75rem;
  min-height: 28px;
  line-height: 28px;
}

.mast-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.mast-top a { color: #efe8d4; }
.mast-top a:hover { color: var(--gold-soft); }

.top-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  font-weight: 600;
}

.top-secondary a {
  padding: 0 0.65rem;
  border-inline-end: 1px solid rgba(239, 232, 212, 0.16);
}

.top-secondary a:last-child { border-inline-end: none; }


.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}
.lang-switch a {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 0.55rem;
  border: 1px solid rgba(239, 232, 212, 0.35);
  border-radius: 3px;
  line-height: 1;
  opacity: 1;
  color: #efe8d4;
}
.lang-switch a:hover {
  color: var(--ink);
  background: var(--gold-soft);
  border-color: var(--gold-soft);
}
.lang-switch a.is-current {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}
html[lang="en"] {
  direction: ltr;
}

/* EN/LTR pages: any rule using var(--font) must resolve to IBM Plex, not Cairo */
html[lang="en"],
html[dir="ltr"] {
  --font: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "IBM Plex Serif", Georgia, "Times New Roman", serif;
}
html[lang="en"] .article-content {
  font-family: var(--font-en-serif);
}
html[lang="en"] .article-content h2,
html[lang="en"] .article-content h3 {
  font-family: var(--font-en);
}
html[lang="en"] h1,
html[lang="en"] h2,
html[lang="en"] h3,
html[lang="en"] .article-header h1,
html[lang="en"] .section-head h2,
html[lang="en"] .card h2,
html[lang="en"] .card h3,
html[lang="en"] .main-nav,
html[lang="en"] .drawer-nav,
html[lang="en"] .news-strip,
html[lang="en"] .mast-top,
html[lang="en"] .feed-title,
html[lang="en"] .site-footer,
html[dir="ltr"] h1,
html[dir="ltr"] h2,
html[dir="ltr"] h3,
html[dir="ltr"] .section-head h2,
html[dir="ltr"] .card h2,
html[dir="ltr"] .card h3,
html[dir="ltr"] .main-nav,
html[dir="ltr"] .feed-title {
  font-family: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}
.lang-twin {
  margin: 0.45rem 0 0;
  font-size: 0.85rem;
  font-weight: 700;
}
.en-callout {
  padding: 12px 16px;
  background: #f7f3e9;
  border-inline-start: 4px solid #a78643;
}
.en-video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 1rem 0;
}
.en-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.top-en {
  opacity: 0.8;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.site-header {
  background: var(--card);
  border-bottom: 3px solid var(--olive);
  position: relative;
}

.header-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--header-h);
  padding: 0.35rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.brand:hover { color: var(--ink); text-decoration: none; }

.brand .logo-img {
  width: 140px;
  height: 50px;
  object-fit: contain;
}

.brand .tagline {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
  max-width: 14rem;
  line-height: 1.35;
  border-inline-start: 2px solid var(--gold);
  padding-inline-start: 0.7rem;
}

.main-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  margin-inline-start: auto;
  font-size: 0.8rem;
  font-weight: 700;
  overflow-x: auto;
  min-width: 0;
}

.main-nav a {
  color: var(--olive);
  padding: 0.4rem 0.42rem;
  border-radius: var(--radius);
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a:focus {
  background: var(--olive);
  color: #fff;
}

.main-nav .nav-all {
  background: var(--olive);
  color: #fff;
  margin-inline-start: 0.25rem;
  padding-inline: 0.75rem;
}
.main-nav .nav-all:hover { background: var(--gold-dark); color: #fff; }

.nav-toggle {
  display: none;
  margin-inline-start: auto;
}

.nav-toggle summary {
  list-style: none;
  cursor: pointer;
  font-weight: 800;
  color: var(--olive);
  border: 1px solid var(--olive);
  padding: 0.3rem 0.65rem;
  font-size: 0.82rem;
}
.nav-toggle summary::-webkit-details-marker { display: none; }

.drawer-nav {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--hair);
  position: absolute;
  inset-inline: 2%;
  margin-top: 0.35rem;
  z-index: 50;
  box-shadow: 0 10px 24px rgba(22, 23, 15, 0.12);
}

.drawer-nav a {
  color: var(--olive);
  padding: 0.65rem 0.9rem;
  font-weight: 700;
  border-bottom: 1px solid var(--hair);
}
.drawer-nav a:last-child { border-bottom: none; }
.drawer-nav a:hover { background: var(--paper); }

@media (max-width: 1100px) {
  .brand .tagline { display: none; }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .brand .tagline { display: none; }
  .brand .logo-img { width: 118px; height: 42px; }
  .header-inner { min-height: 52px; }
}

@media (max-width: 560px) {
  .mast-top {
    display: block;
  }
  .mast-top-inner {
    min-height: 32px;
    padding: 0.2rem 0;
  }
  .top-secondary {
    display: none;
  }
}

/* ========== Breaking ticker ========== */
.news-strip {
  background: var(--olive);
  color: #fff;
  min-height: var(--ticker-h);
  overflow: hidden;
}

.news-strip-inner {
  display: flex;
  align-items: stretch;
  min-height: var(--ticker-h);
  padding-inline: 0;
}

.news-strip .labels {
  display: flex;
  flex-shrink: 0;
  z-index: 2;
}

.news-strip .label-urgent {
  background: var(--breaking);
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 0 0.75rem;
  display: flex;
  align-items: center;
  letter-spacing: 0.02em;
}

.news-strip .label-feed {
  background: var(--olive-deep);
  color: var(--gold-soft);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0 0.85rem;
  display: flex;
  align-items: center;
  white-space: nowrap;
  position: relative;
}

.news-strip .label-feed::after {
  content: "";
  position: absolute;
  inset-inline-start: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 7px solid transparent;
  border-inline-start-color: var(--olive-deep);
}

.ticker-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  -webkit-mask-image: linear-gradient(to left, transparent 0, #000 14px, #000 calc(100% - 6px), transparent 100%);
  mask-image: linear-gradient(to left, transparent 0, #000 14px, #000 calc(100% - 6px), transparent 100%);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: sayd-ticker 58s linear infinite;
}

.ticker-viewport:hover .ticker-track { animation-play-state: paused; }

.news-strip .ticker {
  display: flex;
  align-items: center;
  padding: 0.35rem 0.4rem;
  flex-shrink: 0;
}

.news-strip .ticker a {
  color: #f4efe0;
  white-space: nowrap;
  font-size: 0.84rem;
  font-weight: 600;
  padding-inline: 0.9rem;
  border-inline-end: 1px solid rgba(167, 134, 67, 0.45);
}
.news-strip .ticker a:hover { color: var(--gold-soft); }

@keyframes sayd-ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(50%); }
}

/* LTR ticker — do not depend on html[dir] alone (homepage once missed it) */
@keyframes sayd-ticker-ltr {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

html[lang="en"] .ticker-track,
html[dir="ltr"] .ticker-track,
html[lang="en"] .news-strip .ticker-track,
html[dir="ltr"] .news-strip .ticker-track,
html[lang="en"] .ticker-viewport .ticker-track,
html[dir="ltr"] .ticker-viewport .ticker-track,
.ticker-track.ticker-track-ltr {
  animation-name: sayd-ticker-ltr !important;
  animation-duration: 58s !important;
  animation-timing-function: linear !important;
  animation-iteration-count: infinite !important;
}

html[lang="en"] .ticker-viewport,
html[dir="ltr"] .ticker-viewport,
html[lang="en"] .news-strip .ticker-viewport,
html[dir="ltr"] .news-strip .ticker-viewport {
  padding-inline-start: 0.35rem;
  padding-inline-end: 2rem;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 28px, #000 calc(100% - 40px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 28px, #000 calc(100% - 40px), transparent 100%);
}


@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .ticker-viewport { overflow-x: auto; }
}

@media (max-width: 560px) {
  .news-strip .label-feed { display: none; }
  .news-strip .ticker a { font-size: 0.78rem; padding-inline: 0.7rem; }
}

/* ========== Ad slots (labeled placeholders) ========== */
.ad-slot {
  background:
    repeating-linear-gradient(
      -45deg,
      var(--ad-bg),
      var(--ad-bg) 8px,
      #e4ddcc 8px,
      #e4ddcc 16px
    );
  border: 1px dashed var(--gold-dark);
  color: var(--olive);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  text-align: center;
  margin: 0.75rem 0;
}

.ad-slot .ad-kicker {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.ad-slot .ad-copy {
  font-size: 0.82rem;
  font-weight: 700;
}

.ad-slot.ad-under-construction {
  background: #f3efe4;
  border: 1px solid var(--gold-dark);
  gap: 0.25rem;
  padding: 0.85rem 1rem;
}

.ad-slot.ad-under-construction .ad-copy-ar {
  font-size: 1rem;
  font-weight: 800;
  color: var(--olive);
}

.ad-slot.ad-under-construction .ad-copy-en {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.ad-slot .ad-size {
  font-size: 0.7rem;
  color: var(--muted);
}

.ad-leaderboard,
.ad-inline {
  min-height: 90px;
}

.ad-rectangle {
  min-height: 220px;
  margin: 0 0 0.85rem;
}

.sidebar .ad-slot { margin-top: 0; }

/* ========== Page layout ========== */
.page-main { padding: 0.85rem 0 2.25rem; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.55rem;
  border-bottom: 2px solid var(--olive);
  padding-bottom: 0.2rem;
}

.section-head h2 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--olive);
  position: relative;
  padding-inline-end: 0.65rem;
}

.section-head h2::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 1em;
  background: var(--gold);
  margin-inline-end: 0.45rem;
  vertical-align: -0.12em;
}

.section-head a {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-dark);
  white-space: nowrap;
}
.section-head a:hover { color: var(--olive); }

.section-head.accent-tv { border-bottom-color: var(--breaking); }
.section-head.accent-tv h2 { color: var(--breaking); }

.section-head.accent-red { border-bottom-color: var(--breaking); }
.section-head.accent-red h2 { color: var(--breaking); }
.section-head.accent-red h2::before { background: var(--breaking); }
.section-head.accent-olive { border-bottom-color: var(--olive); }

.home-section { margin-bottom: 1.15rem; }

/* ========== Homepage: featured mosaic first, then compact latest ========== */
.masthead {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 0.95rem;
}

.latest-col,
.featured-col {
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--hair);
  padding: 0.65rem 0.7rem 0.75rem;
}

.featured-col {
  padding: 0.75rem 0.8rem 0.85rem;
}

.latest-col {
  padding: 0.5rem 0.7rem 0.55rem;
}

.latest-feed {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 1.5rem;
  row-gap: 0;
  align-items: start;
  isolation: isolate;
}

.latest-feed li {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  border-bottom: 1px solid var(--hair);
}

.latest-feed li:nth-last-child(-n+2) { border-bottom: none; }

/* Text-forward stacked links — no thumbs, dense type */
.latest-feed a {
  display: block;
  padding: 0.32rem 0;
  color: var(--ink);
  min-height: 0;
  min-width: 0;
}
.latest-feed a:hover { color: var(--gold-dark); }

.feed-thumb { display: none; }

.feed-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.08rem;
}

.feed-cat {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--gold-dark);
  flex-shrink: 0;
}

.feed-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.4;
}

.feed-date {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 0;
  white-space: nowrap;
}

.featured-mosaic {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 0.92fr);
  gap: 0.55rem;
  align-items: stretch;
  min-height: 0;
}

.feature-stack {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 0;
  height: 100%;
}

.card.overlay {
  position: relative;
  overflow: hidden;
}

.featured-mosaic > .card.overlay.feature-lead {
  height: 480px;
  max-height: 480px;
  align-self: start;
  overflow: hidden;
}

.featured-mosaic > .card.overlay.feature-lead .thumb {
  position: absolute;
  inset: 0;
  display: block;
  aspect-ratio: auto;
  height: 100%;
  max-height: none;
}

.featured-mosaic > .card.overlay.feature-lead .thumb img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

/* Overlay cards — titles sit on the image, density over whitespace */
.card {
  background: var(--card);
  border: 1px solid var(--hair);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card .thumb {
  aspect-ratio: 16 / 10;
  background: #d9d3c2;
  overflow: hidden;
  display: block;
  position: relative;
}

.card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.card:hover .thumb img { transform: scale(1.04); }

.card .body { padding: 0.5rem 0.6rem 0.65rem; }

.card .meta {
  color: var(--muted);
  font-size: 0.72rem;
  margin-bottom: 0.15rem;
  font-weight: 600;
}

.card .meta .cat-pill {
  display: inline-block;
  background: var(--olive);
  color: #fff;
  font-size: 0.65rem;
  padding: 0.05rem 0.4rem;
  margin-inline-start: 0.25rem;
  font-weight: 800;
}


.card h2, .card h3 {
  margin: 0;
  line-height: 1.35;
  font-size: 0.92rem;
  font-weight: 800;
}

.card h2 a, .card h3 a { color: var(--ink); }
.card h2 a:hover, .card h3 a:hover { color: var(--gold-dark); }

.card .excerpt {
  display: none; /* titles first — magazine density */
}

.card.overlay {
  position: relative;
  height: 100%;
}

.featured-mosaic > .card.overlay.feature-lead {
  height: 480px;
  max-height: 480px;
  overflow: hidden;
}

.card.overlay .thumb {
  aspect-ratio: 16 / 11;
}

.card.overlay .thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(22, 23, 15, 0.78) 0%, rgba(22, 23, 15, 0.18) 32%, transparent 48%);
}

.featured-mosaic > .card.overlay.feature-lead .thumb::after {
  background: linear-gradient(to top, rgba(22, 23, 15, 0.62) 0%, rgba(22, 23, 15, 0.10) 24%, transparent 40%);
}

.card.overlay .body {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 1;
  background: transparent;
  padding: 0.35rem 0.55rem 0.45rem;
  color: #fff;
}

.card.overlay .meta { color: rgba(255, 255, 255, 0.82); }
.card.overlay .meta .cat-pill { background: var(--gold); color: var(--ink); }
.card.overlay h2,
.card.overlay h3 {
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feature-stack .card.overlay h3 {
  -webkit-line-clamp: 2;
  font-size: 0.86rem;
  line-height: 1.3;
}
.card.overlay h2 a,
.card.overlay h3 a { color: #fff; }
.card.overlay h2 a:hover,
.card.overlay h3 a:hover { color: var(--gold-soft); }
.card.overlay.feature-lead h2 {
  font-size: clamp(1rem, 1.7vw, 1.28rem);
  -webkit-line-clamp: 2;
  font-weight: 800;
}

/* Nayef: Kaps/CABS homepage lead only — title above the photo, not bottom overlay. */
.featured-mosaic > .card.feature-lead.kaps-lead {
  display: flex;
  flex-direction: column;
  height: 480px;
  max-height: 480px;
  overflow: hidden;
  align-self: start;
}
.featured-mosaic > .card.feature-lead.kaps-lead .body {
  position: static;
  inset: auto;
  flex: 0 0 auto;
  z-index: auto;
  background: var(--card);
  color: var(--ink);
  padding: 0.55rem 0.7rem 0.5rem;
}
.featured-mosaic > .card.feature-lead.kaps-lead .meta { color: var(--muted); }
.featured-mosaic > .card.feature-lead.kaps-lead .meta .cat-pill {
  background: var(--olive);
  color: #fff;
}
.featured-mosaic > .card.feature-lead.kaps-lead h2 {
  font-size: clamp(1rem, 1.7vw, 1.28rem);
  font-weight: 800;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.featured-mosaic > .card.feature-lead.kaps-lead h2 a { color: var(--ink); }
.featured-mosaic > .card.feature-lead.kaps-lead h2 a:hover { color: var(--gold-dark); }
.featured-mosaic > .card.feature-lead.kaps-lead .thumb {
  position: relative;
  inset: auto;
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  aspect-ratio: auto;
  max-height: none;
}
.featured-mosaic > .card.feature-lead.kaps-lead .thumb::after { content: none; }
.featured-mosaic > .card.feature-lead.kaps-lead .thumb img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center 28%;
}
.featured-mosaic > .card.feature-lead.kaps-lead .kaps-caption {
  flex: 0 0 auto;
  margin: 0;
  padding: 0.35rem 0.7rem 0.5rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--muted);
}

.featured-col .section-head h2 {
  font-size: 1.15rem;
}

.feature-side {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 480px;
  height: 480px;
  align-self: stretch;
}
.feature-side .feature-stack {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}

/* Side column: one packed stack of small boxes — never a 2-col grid */
.feature-stack .card.card-stack {
  display: grid;
  grid-template-columns: minmax(92px, 36%) minmax(0, 1fr);
  align-items: stretch;
  flex: 1 1 0;
  height: auto;
  min-height: 0;
  background: var(--card);
}
.feature-stack .card.card-stack .thumb {
  position: relative;
  inset: auto;
  flex: none;
  width: 100%;
  aspect-ratio: auto;
  min-height: 0;
  max-height: none;
  height: 100%;
}
.feature-stack .card.card-stack .thumb::after {
  display: none;
}
.feature-stack .card.card-stack .body {
  position: static;
  inset: auto;
  z-index: auto;
  flex: none;
  background: var(--card);
  color: var(--ink);
  padding: 0.35rem 0.5rem 0.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature-stack .card.card-stack .meta {
  color: var(--muted);
  margin-bottom: 0.1rem;
}
.feature-stack .card.card-stack h3 {
  font-size: 0.8rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feature-stack .card.card-stack h3 a {
  color: var(--ink);
}
.feature-stack .card.card-stack h3 a:hover {
  color: var(--gold-dark);
}

.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 0.85rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.grid-photos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
}

.card.card-compact .thumb { aspect-ratio: 16 / 10; }
.card.card-compact .body { padding: 0.4rem 0.5rem 0.5rem; }
.card.card-compact h3 { font-size: 0.82rem; line-height: 1.3; }
.card.card-compact .meta { font-size: 0.68rem; }

.more-news {
  display: flex;
  justify-content: center;
  margin: 0.5rem 0 0.25rem;
}

.more-btn {
  display: inline-block;
  background: var(--olive);
  color: #fff;
  font-weight: 800;
  padding: 0.55rem 1.4rem;
  font-size: 0.92rem;
}
.more-btn:hover { background: var(--gold-dark); color: #fff; }

/* ========== Sidebar ========== */
.sidebar .widget {
  background: var(--card);
  border: 1px solid var(--hair);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.sidebar h3 {
  margin: 0;
  font-size: 0.88rem;
  color: #fff;
  background: var(--olive);
  padding: 0.45rem 0.7rem;
  font-weight: 800;
}

.sidebar .widget-body { padding: 0.45rem 0.7rem 0.65rem; }

.cat-list, .page-list, .latest-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cat-list li, .page-list li {
  border-bottom: 1px solid var(--hair);
}

.cat-list a, .page-list a {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--ink);
  padding: 0.32rem 0;
  font-size: 0.84rem;
  font-weight: 600;
}

.cat-list a:hover, .page-list a:hover { color: var(--gold-dark); }

.cat-list .count {
  color: var(--muted);
  font-size: 0.75rem;
  background: var(--paper);
  padding: 0.02rem 0.35rem;
}

.badge {
  display: inline-block;
  background: var(--olive);
  color: #fff;
  font-size: 0.7rem;
  padding: 0.12rem 0.45rem;
  margin-inline-end: 0.2rem;
  margin-bottom: 0.2rem;
  font-weight: 700;
}
.badge:hover { background: var(--gold-dark); color: #fff; }

/* ========== Article ========== */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 0.85rem;
  align-items: start;
}

.article-shell { min-width: 0; }

.latest-list li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--hair);
}

.latest-list a {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}

.latest-list a:hover { color: var(--gold-dark); }

.latest-list .meta {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 500;
  margin-top: 0.1rem;
}

.article-header {
  margin-bottom: 0.75rem;
  padding-bottom: 0.55rem;
  border-bottom: 2px solid var(--olive);
}

.article-header h1 {
  margin: 0.35rem 0 0.4rem;
  font-size: clamp(1.35rem, 2.4vw, 1.95rem);
  line-height: 1.32;
  font-weight: 800;
}

.article-meta {
  color: var(--muted);
  font-size: 0.84rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.9rem;
}

.article-featured {
  margin: 0 0 1rem;
  overflow: hidden;
  border: 1px solid var(--hair);
}

.article-featured img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.article-content {
  background: var(--card);
  border: 1px solid var(--hair);
  padding: 1.15rem 1.25rem 1.5rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.85;
}

.article-content p { margin: 0 0 0.95rem; }
.article-content h2,
.article-content h3 {
  color: var(--olive);
  font-family: var(--font);
  line-height: 1.35;
}
.article-content figure { margin: 1rem 0; }
.article-content iframe { max-width: 100%; }
.article-content img { margin-inline: auto; }
.article-content a { color: var(--earth-mid); text-decoration: underline; }

.related-block { margin-top: 1.25rem; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.related-grid .card h3 { font-size: 0.86rem; }

.breadcrumb {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.65rem;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold-dark); }

/* ========== Archives ========== */
.post-list { display: grid; gap: 0.45rem; }

.post-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  background: var(--card);
  border: 1px solid var(--hair);
}

.post-row .thumb {
  min-height: 88px;
  background: #d9d3c2;
  display: block;
}

.post-row .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 88px;
}

.post-row .body { padding: 0.45rem 0.7rem; }
.post-row h2 { margin: 0 0 0.2rem; font-size: 0.98rem; line-height: 1.35; }
.post-row h2 a { color: var(--ink); }
.post-row h2 a:hover { color: var(--gold-dark); }
.post-row .excerpt {
  color: var(--muted);
  font-size: 0.8rem;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-row .meta { color: var(--muted); font-size: 0.72rem; margin-bottom: 0.15rem; }

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 1rem;
  align-items: center;
}

.pagination a, .pagination span {
  display: inline-block;
  padding: 0.28rem 0.55rem;
  border: 1px solid var(--hair);
  background: var(--card);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
}

.pagination a:hover { background: var(--olive); color: #fff; }

.pagination .current {
  background: var(--olive);
  color: #fff;
  border-color: var(--olive);
}

.pagination .ellipsis {
  border: none;
  background: transparent;
  padding-inline: 0.2rem;
}

/* ========== Footer ========== */
.site-footer {
  background: var(--olive-deep);
  color: #d4d0bc;
  margin-top: 1.25rem;
  font-size: 0.86rem;
}

.footer-main {
  padding: 1.5rem 0 1.1rem;
  border-bottom: 1px solid rgba(167, 134, 67, 0.28);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.25rem;
}

.footer-col h3 {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  color: #fff;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.3rem;
  display: inline-block;
}

.footer-logo {
  width: 150px;
  height: auto;
  margin-bottom: 0.6rem;
}

.footer-col p {
  margin: 0 0 0.5rem;
  line-height: 1.6;
  color: #c6c1ab;
  font-size: 0.84rem;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0.22rem 0; }
.footer-col a { color: #ddd8c4; font-size: 0.84rem; }
.footer-col a:hover { color: var(--gold-soft); }

.footer-bottom {
  background: #1a1c12;
  padding: 0.7rem 0;
  font-size: 0.76rem;
  color: #9aa08c;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.45rem 1.25rem;
}

.footer-copy {
  color: #9aa08c;
}

.footer-partner {
  color: #c6c1ab;
  text-decoration: none;
  max-width: min(40rem, 100%);
  line-height: 1.45;
}

.footer-partner:hover {
  color: var(--gold-soft);
}

.placeholder-thumb {
  width: 100%;
  height: 100%;
  min-height: 54px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--olive), var(--olive-hover));
  color: #f0ecd8;
  font-weight: 800;
  font-size: 0.9rem;
}

.article-content .placeholder-thumb,
.article-featured .placeholder-thumb {
  min-height: 220px;
  border-radius: 6px;
  margin: 0.6rem 0;
}

.empty-note {
  background: #fff8e6;
  border: 1px solid #e6d7a8;
  padding: 0.85rem;
  color: #5a4a20;
}

/* ========== Responsive: density first ========== */
@media (max-width: 1040px) {
  .home-layout,
  .article-layout { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .featured-mosaic { min-height: 0; }
}

@media (max-width: 820px) {
  .featured-mosaic {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .featured-mosaic > .card.overlay.feature-lead {
    grid-column: 1 / -1;
    height: 240px;
    max-height: 240px;
    min-height: 0;
  }
  .featured-mosaic > .card.feature-lead.kaps-lead {
    grid-column: 1 / -1;
    height: auto;
    max-height: none;
  }
  .featured-mosaic > .card.feature-lead.kaps-lead .thumb {
    aspect-ratio: 16 / 10;
    min-height: 160px;
  }
  .featured-mosaic > .card.overlay.feature-lead .thumb {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
    height: 100%;
    max-height: none;
  }
  .feature-side,
  .feature-stack {
    grid-column: 1 / -1;
    min-height: 0;
    height: auto;
  }
  .feature-stack .card.card-stack {
    flex: 0 0 auto;
  }
  .feature-stack .card.card-stack .thumb {
    aspect-ratio: 16 / 11;
    max-height: 92px;
  }
  .grid-4,
  .grid-3,
  .grid-photos { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .page-main { padding: 0.55rem 0 1.6rem; }
  .latest-feed { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .feed-title { font-size: 0.76rem; }
  .feed-date { display: none; }
  .card.overlay h2,
  .card.overlay h3 { font-size: 0.82rem; }
  .card.overlay.feature-lead h2 { font-size: 1rem; }
  .card.overlay .body { padding: 0.3rem 0.45rem 0.4rem; }
  .feature-stack .card.card-stack {
    grid-template-columns: minmax(80px, 34%) minmax(0, 1fr);
  }
  .feature-stack .card.card-stack .thumb { max-height: 78px; }
  .post-row {
    grid-template-columns: 88px 1fr;
  }
  .post-row .thumb,
  .post-row .thumb img { min-height: 68px; }
  .post-row .excerpt { display: none; }
  .post-row h2 { font-size: 0.88rem; }
  .article-content { padding: 0.85rem 0.8rem 1.15rem; font-size: 1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .ad-leaderboard,
  .ad-inline { min-height: 70px; }
}

@media (max-width: 400px) {
  .feature-stack {
    display: flex;
    flex-direction: column;
  }
  .latest-feed { grid-template-columns: minmax(0, 1fr); }
}

/* EN wordmark — Latin title instead of Arabic logo glyph */
html[dir="ltr"] .header-inner {
  justify-content: flex-start;
  gap: 1.1rem;
}
html[dir="ltr"] .brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 50px;
}
html[dir="ltr"] .main-nav {
  margin-inline-start: 0.4rem;
}
html[dir="ltr"] .brand-wordmark {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 2.2rem;
  letter-spacing: 0.01em;
  color: var(--olive);
  line-height: 0.95;
  text-transform: none;
}
html[dir="ltr"] .brand .tagline {
  font-family: var(--font-en);
  font-size: 0.68rem;
  font-weight: 500;
  max-width: 11.75rem;
  line-height: 1.28;
  align-self: center;
}
html[dir="ltr"] .footer-wordmark {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: 0.01em;
  color: #fff;
  margin: 0 0 0.5rem;
}

/* EN overlay cards: stronger scrim so date + category stay readable */
html[dir="ltr"] .card.overlay .thumb::after {
  background: linear-gradient(
    to top,
    rgba(22, 23, 15, 0.9) 0%,
    rgba(22, 23, 15, 0.46) 40%,
    rgba(22, 23, 15, 0.12) 68%,
    transparent 84%
  );
}
html[dir="ltr"] .featured-mosaic > .card.overlay.feature-lead .thumb::after {
  background: linear-gradient(
    to top,
    rgba(22, 23, 15, 0.92) 0%,
    rgba(22, 23, 15, 0.52) 36%,
    rgba(22, 23, 15, 0.16) 60%,
    transparent 78%
  );
}
html[dir="ltr"] .card.overlay .meta {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7), 0 0 10px rgba(0, 0, 0, 0.35);
}
html[dir="ltr"] .card.overlay h2,
html[dir="ltr"] .card.overlay h3 {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

/* EN titles: 3-line clamp at word boundaries — do not slice mid-word */
html[dir="ltr"] .card h2,
html[dir="ltr"] .card h3,
html[dir="ltr"] .card.overlay h2,
html[dir="ltr"] .card.overlay h3,
html[dir="ltr"] .card.overlay.feature-lead h2,
html[dir="ltr"] .feature-stack .card.overlay h3,
html[dir="ltr"] .feature-stack .card.card-stack h3,
html[dir="ltr"] .feed-title {
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}
html[dir="ltr"] .card.overlay h2,
html[dir="ltr"] .card.overlay h3,
html[dir="ltr"] .card.overlay.feature-lead h2 {
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
}
html[dir="ltr"] .feature-stack .card.card-stack h3 {
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Rifle diagram labels sit at the bottom of this stand-in — keep them out of the overlay */
html[dir="ltr"] .card.overlay .thumb img[src*="saudi-hunting-season-2026"] {
  object-position: center 8%;
}

/* Hard guarantee: every LTR document lays out left-to-right, including article pages */
html[dir="ltr"],
html[dir="ltr"] body {
  direction: ltr !important;
  text-align: start;
}

/* EN nav: full labels must not overflow the header */
html[dir="ltr"] .header-inner {
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
}
html[dir="ltr"] .main-nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  row-gap: 0.25rem;
  max-width: 100%;
}
html[dir="ltr"] .main-nav a {
  font-size: 0.78rem;
  padding-inline: 0.45rem;
}
@media (max-width: 1100px) {
  html[dir="ltr"] .main-nav a { font-size: 0.72rem; padding-inline: 0.35rem; }
}
