/* Aurora — editorial newsroom (Walla-inspired energy, distinct identity) */
.pv-root.pv-aurora {
  --bg: #f0f2f6;
  --surface: #ffffff;
  --ink: #0c1220;
  --muted: #5a6478;
  --line: #d8dee8;
  --line-strong: #c5cdd9;
  --hot: #c41e1e;
  --hot-hover: #9e1818;
  --hot-soft: #fdecec;
  --accent: #0f3460;
  --shadow: 0 8px 32px rgba(12, 18, 32, 0.08);
  --radius: 14px;
  --radius-lg: 22px;
  font-family: Cairo, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  margin: 0;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.pv-aurora *, .pv-aurora *::before, .pv-aurora *::after { box-sizing: border-box; }
.pv-aurora img, .pv-aurora video { max-width: 100%; display: block; height: auto; }

/* ——— Global width containment (prevents horizontal overflow at source) ——— */
body.pv-root.pv-aurora {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

/* Visually hidden until focus — do NOT use large negative offsets (breaks RTL scroll width). */
.pv-skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.pv-skip:focus {
  position: fixed;
  inset-inline-start: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  margin: 0;
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: normal;
  background: #000;
  color: #fff;
  z-index: 10000;
}

.pv-preview-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1rem;
  background: var(--ink);
  color: #e8ecf4;
  font-size: 0.78rem;
}
.pv-preview-banner a { color: #93c5fd; }

/* ——— Moving ticker ——— */
.au-ticker {
  background: linear-gradient(90deg, #1a1f2e 0%, #2a1a1a 50%, #1a1f2e 100%);
  color: #fff;
  border-bottom: 2px solid var(--hot);
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.au-ticker__inner {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding-inline: 0;
  box-sizing: border-box;
  min-width: 0;
}
.au-ticker__badge {
  flex: 0 0 auto;
  padding: 0.55rem 1rem;
  font-weight: 900;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  background: var(--hot);
  display: flex;
  align-items: center;
  text-transform: uppercase;
}
.au-ticker__viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
}
.au-ticker__track {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 0.5rem 1rem;
  white-space: nowrap;
  animation: au-ticker-marquee 55s linear infinite;
  will-change: transform;
}
@keyframes au-ticker-marquee {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .au-ticker__track {
    animation: none;
    flex-wrap: wrap;
    white-space: normal;
    justify-content: flex-start;
    row-gap: 0.35rem;
  }
  .au-ticker__viewport {
    mask-image: none;
    -webkit-mask-image: none;
  }
}
.au-ticker__link {
  color: #f1f5f9;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.86rem;
  max-width: 70ch;
  overflow: hidden;
  text-overflow: ellipsis;
}
.au-ticker__viewport:hover .au-ticker__track {
  animation-play-state: paused;
}
.au-ticker__link:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.au-ticker__sep {
  opacity: 0.35;
  font-weight: 300;
  user-select: none;
}

/* ——— Header & logo ——— */
.pv-head.au-head {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 50;
}
.au-head__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0.65rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  justify-content: flex-start;
}
.au-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  min-width: 0;
}
.au-logo__img {
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: right center;
}
@media (max-width: 480px) {
  .au-logo__img { max-height: 40px; max-width: min(200px, 55vw); }
}

.au-nav-toggle {
  display: none;
  background: var(--hot);
  color: #fff;
  border: 0;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
}
.au-nav {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.35rem;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}
.au-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.86rem;
  padding: 0.4rem 0.65rem;
  border-radius: 10px;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .au-nav a {
    white-space: normal;
  }
}
.au-nav a:hover {
  background: var(--hot-soft);
  color: var(--hot);
}

.au-nav__primary,
.au-nav__secondary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.35rem;
}
.au-nav__primary {
  justify-content: flex-start;
}
.au-nav__secondary {
  margin-inline-start: auto;
  justify-content: flex-end;
  gap: 0.35rem 0.5rem;
}

.au-nav-search {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.35rem;
  border-radius: 999px;
  background: #e2e8f0;
  min-width: 0;
  max-width: 100%;
  flex-shrink: 1;
  box-sizing: border-box;
}
.au-nav-search input[type="search"] {
  border: 0;
  background: transparent;
  font-size: 0.82rem;
  padding: 0.25rem 0.3rem;
  min-width: 0;
  flex: 1 1 6rem;
  max-width: 11rem;
  outline: none;
}
.au-nav-search button {
  border: 0;
  background: var(--hot);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
}
.au-nav-search button:hover {
  background: #b91c1c;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.pv-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1rem;
}
.pv-main.au-main { min-height: 45vh; }

/* ——— Hero (dominant lead + 5 rail items) ——— */
.au-hero {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  padding: 1.35rem 0 2.5rem;
  margin-bottom: 0.15rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: clip;
}
.au-hero__grid {
  display: grid;
  gap: 1rem 1.25rem;
  grid-template-columns: 1fr;
  align-items: stretch;
  width: 100%;
  min-width: 0;
}
@media (min-width: 960px) {
  .au-hero__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: 1.25rem 1.5rem;
  }
}

.au-hero__lead {
  background: var(--ink);
  color: #f8fafc;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(12, 18, 32, 0.18);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  max-width: 100%;
}
.au-hero__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #1e293b;
}
.au-hero__media img,
.au-hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.au-hero__body {
  padding: 1.15rem 1.35rem 1.35rem;
  min-width: 0;
}
.au-hero__labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}
.au-chip {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  letter-spacing: 0.02em;
}
.au-chip--urgent { background: var(--hot); color: #fff; }
.au-chip--feat { background: rgba(212, 175, 55, 0.25); color: #fcd34d; }

.au-hero__title {
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  line-height: 1.22;
  margin: 0 0 0.65rem;
  font-weight: 900;
}
.au-hero__title a {
  color: inherit;
  text-decoration: none;
}
.au-hero__title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.au-hero__excerpt {
  margin: 0 0 0.75rem;
  font-size: 0.98rem;
  line-height: 1.75;
  opacity: 0.88;
}
.au-hero__meta {
  font-size: 0.8rem;
  opacity: 0.65;
}

.au-hero__rail {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0.75rem 0.85rem 1rem;
  box-shadow: 0 4px 20px rgba(12, 18, 32, 0.04);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  max-width: 100%;
}
.au-hero__rail-head {
  padding: 0.35rem 0.5rem 0.65rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.5rem;
}
.au-hero__rail-kicker {
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  color: var(--hot);
}
.au-hero__rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.au-rail-card {
  display: grid;
  grid-template-columns: 30px minmax(0, 108px) minmax(0, 1fr);
  gap: 0.7rem 0.95rem;
  align-items: center;
  padding: 0.6rem 0.65rem;
  border-radius: var(--radius);
  transition: background 0.15s ease;
  min-width: 0;
  max-width: 100%;
}
.au-rail-card:hover {
  background: #f8fafc;
}
.au-rail-card__idx {
  font-weight: 900;
  font-size: 1rem;
  color: var(--line-strong);
  text-align: center;
  line-height: 1;
}
.au-rail-card__thumb {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: #e2e8f0;
  height: 82px;
  min-height: 82px;
}
.au-rail-card__thumb img,
.au-rail-card__thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.au-rail-card__body { min-width: 0; }
.au-rail-card__cat {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--hot);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.au-rail-card__title {
  margin: 0.15rem 0 0;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 800;
}
.au-rail-card__title a {
  color: var(--ink);
  text-decoration: none;
}
.au-rail-card__title a:hover { color: var(--hot); }
.au-rail-card__time {
  font-size: 0.78rem;
  color: var(--muted);
  display: block;
  margin-top: 0.2rem;
}

@media (max-width: 959px) {
  .au-hero__rail-list {
    display: grid;
    grid-template-columns: 1fr;
  }
  .au-rail-card {
    grid-template-columns: 24px 90px 1fr;
  }
}

.au-rail-card--no-media {
  grid-template-columns: 28px 1fr;
  align-items: start;
}
@media (max-width: 959px) {
  .au-rail-card--no-media {
    grid-template-columns: 24px 1fr;
  }
}
.au-rail-card__excerpt {
  margin: 0.25rem 0 0;
  font-size: 0.76rem;
  line-height: 1.55;
  color: var(--muted);
}

/* ——— Homepage category bands (local/world, politics, stacks) ——— */
.au-home-band {
  padding: 2.5rem 0 2.65rem;
  border-top: 1px solid var(--line);
}
.au-home-band {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: clip;
}
.au-home-band--dual {
  background: var(--surface);
}
.au-home-band--politics {
  background: linear-gradient(180deg, #f8fafc 0%, #eef1f6 100%);
}
.au-home-band--stacks {
  background: var(--surface);
}

.au-home-dual {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.au-home-dual--stacks {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

@media (min-width: 960px) {
  .au-home-dual {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
    align-items: start;
  }
  .au-home-band--dual .au-home-dual:has(.au-cat-col--dual-world):has(.au-cat-col--dual-local) {
    grid-template-columns: minmax(0, min(630px, 100%)) minmax(0, min(630px, 100%));
    justify-content: center;
  }
}

/* Prevent grid/flex overflow in half-width category columns (Local / World) */
.au-home-dual > .au-cat-col {
  min-width: 0;
}
.au-cat-col {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.1rem 1.25rem;
  box-shadow: 0 4px 18px rgba(12, 18, 32, 0.04);
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.au-home-band--dual .au-cat-col {
  height: 100%;
  min-width: 0;
}
/* أخبار محلية — max 630×965.89px (no internal scroll) */
.au-home-band--dual .au-cat-col.au-cat-col--dual-local {
  width: 100%;
  max-width: min(630px, 100%);
  max-height: 965.89px;
  height: auto;
  overflow: hidden;
  box-sizing: border-box;
}
/* أخبار عالمية + أخبار سياسية (nested) — together max 630×965.89px (no internal scroll) */
.au-home-band--dual .au-cat-col.au-cat-col--dual-world {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: min(630px, 100%);
  max-height: 965.89px;
  height: auto;
  overflow: hidden;
  box-sizing: border-box;
}
.au-home-band--dual .au-cat-col.au-cat-col--dual-world .au-cat-col__world-main {
  flex: 0 1 auto;
  min-width: 0;
}
@media (min-width: 960px) {
  .au-home-band--dual .au-home-dual > .au-cat-col--dual-world:only-child {
    justify-self: center;
    width: min(630px, 100%);
  }
}

/* Nested politics — dark numbered rail (unique vs card grid / poli-lead) */
.au-world-politics-nest {
  flex: 0 0 auto;
  width: 100%;
  max-width: min(630px, 100%);
  margin-top: 1rem;
  padding: 0.85rem 0.75rem 1rem;
  box-sizing: border-box;
  overflow: hidden;
  background: linear-gradient(165deg, #1e293b 0%, #0f172a 52%, #1a1033 100%);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 24px rgba(12, 18, 32, 0.12);
}
.au-world-politics-nest__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.7rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(248, 250, 252, 0.12);
}
.au-world-politics-nest__title {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.au-world-politics-nest__title a {
  color: #f8fafc;
  text-decoration: none;
}
.au-world-politics-nest__title a:hover {
  color: #fca5a5;
}
.au-world-politics-nest__more {
  font-size: 0.7rem;
  font-weight: 800;
  color: #fca5a5;
  text-decoration: none;
}
.au-world-politics-nest__more:hover {
  text-decoration: underline;
}
.au-world-politics-nest__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.au-world-politics-nest__item {
  display: grid;
  grid-template-columns: auto 3.75rem minmax(0, 1fr);
  gap: 0.6rem 0.75rem;
  align-items: center;
  direction: rtl;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.au-world-politics-nest__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.au-world-politics-nest__idx {
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(248, 250, 252, 0.22);
  font-variant-numeric: tabular-nums;
}
.au-world-politics-nest__thumb {
  display: block;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(252, 165, 165, 0.4);
  background: #334155;
}
.au-world-politics-nest__thumb img,
.au-world-politics-nest__thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.au-world-politics-nest__body {
  min-width: 0;
  text-align: right;
}
.au-world-politics-nest__item-title {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.38;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.au-world-politics-nest__item-title a {
  color: #f1f5f9;
  text-decoration: none;
}
.au-world-politics-nest__item-title a:hover {
  color: #fca5a5;
}
.au-world-politics-nest__time {
  display: block;
  margin-top: 0.28rem;
  font-size: 0.64rem;
  color: rgba(226, 232, 240, 0.55);
}

.au-cat-col--full {
  max-width: 100%;
}
.au-cat-col__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 2px solid var(--ink);
}
.au-cat-col__title {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 900;
}
.au-cat-col__title a {
  color: var(--ink);
  text-decoration: none;
}
.au-cat-col__title a:hover { color: var(--hot); }
.au-cat-col__more {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--hot);
  text-decoration: none;
}
.au-cat-col__more:hover { text-decoration: underline; }

.au-cat-col__sub {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .au-cat-col__sub {
    grid-template-columns: repeat(3, 1fr);
  }
}
.au-cat-col__sub--politics {
  margin-top: 1.1rem;
}

/* Shared post cards (lead / mini / stack) */
.au-pcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
  border-inline-start: 3px solid var(--hot);
}
.au-pcard:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}
.au-pcard--no-media {
  padding: 0;
}
.au-pcard--no-media .au-pcard__body {
  padding: 0.85rem 0.95rem 1rem;
  background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
  min-height: 120px;
}
.au-pcard__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e2e8f0;
}
.au-pcard--lead .au-pcard__media {
  aspect-ratio: 16 / 9.5;
}
.au-pcard__media img,
.au-pcard__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.au-pcard__body {
  padding: 0.75rem 0.85rem 0.9rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.au-pcard__cat {
  font-size: 0.65rem;
  font-weight: 900;
  color: var(--hot);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.au-pcard__title {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  line-height: 1.42;
  font-weight: 900;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.au-pcard--lead .au-pcard__title {
  font-size: clamp(1.02rem, 1.8vw, 1.2rem);
  line-height: 1.35;
}
.au-pcard--stack .au-pcard__title {
  font-size: 1rem;
  line-height: 1.45;
}
.au-pcard__title a {
  color: var(--ink);
  text-decoration: none;
}
.au-pcard__title a:hover { color: var(--hot); }
.au-pcard__excerpt {
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--muted);
  flex: 1;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.au-pcard__excerpt--muted {
  color: #64748b;
}
.au-pcard__time {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: auto;
  padding-top: 0.5rem;
}

.au-pcard--mini .au-pcard__title {
  font-size: 0.84rem;
  line-height: 1.4;
}
.au-pcard--mini .au-pcard__media {
  aspect-ratio: 16 / 10;
}

/* أخبار عالمية — row minis: title max 2 lines, time, no excerpt */
.au-home-band--dual .au-pcard--home-world-mini .au-pcard__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.au-home-band--dual .au-pcard--home-world-mini .au-pcard__title a {
  display: inline;
}

/* أخبار محلية — row minis: title max 2 lines, excerpt max 4 lines, time */
.au-home-band--dual .au-pcard--home-local-mini .au-pcard__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.au-home-band--dual .au-pcard--home-local-mini .au-pcard__title a {
  display: inline;
}
.au-home-band--dual .au-pcard--home-local-mini .au-pcard__excerpt--home-local-mini {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 0.35rem;
  flex: 0 1 auto;
  min-height: 0;
}

/* Local / World: compact horizontal lead inside narrow column (fixes overflow + huge vertical card) */
.au-home-band--dual .au-pcard--lead {
  height: auto;
  max-width: 100%;
}

/*
 * World News homepage lead — reference layout: text ~55–60% left, thumbnail ~40–45% right,
 * image full height of row, red accent on outer (right) edge of thumb. Side-by-side at all widths.
 */
/* World lead: always side-by-side (incl. default-thumb / au-pcard--no-media — was excluded before). */
.au-home-band--dual .au-pcard--lead.au-pcard--world-home-lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(7.5rem, 42%);
  align-items: stretch;
  column-gap: 0.85rem;
  row-gap: 0;
  direction: ltr;
  min-height: 9.5rem;
  border-inline-start: 1px solid var(--line);
}
.au-home-band--dual .au-pcard--lead.au-pcard--world-home-lead .au-pcard__body {
  grid-column: 1;
  grid-row: 1;
  direction: rtl;
  text-align: right;
  min-width: 0;
  padding: 0.85rem 0.35rem 0.95rem 0.85rem;
  justify-content: flex-start;
}
.au-home-band--dual .au-pcard--lead.au-pcard--world-home-lead.au-pcard--no-media .au-pcard__body {
  background: var(--surface);
  min-height: 0;
}
.au-home-band--dual .au-pcard--lead.au-pcard--world-home-lead .au-pcard__title {
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  line-height: 1.32;
  margin-top: 0.4rem;
}
.au-home-band--dual .au-pcard--lead.au-pcard--world-home-lead .au-pcard__excerpt,
.au-home-band--dual .au-pcard--lead.au-pcard--world-home-lead .au-pcard__excerpt.au-pcard__excerpt--muted {
  font-size: 0.84rem;
  line-height: 1.62;
  margin-top: 0.5rem;
}
.au-home-band--dual .au-pcard--lead.au-pcard--world-home-lead .au-pcard__time {
  margin-top: auto;
  padding-top: 0.65rem;
  font-size: 0.74rem;
}
.au-home-band--dual .au-pcard--lead.au-pcard--world-home-lead .au-pcard__media {
  grid-column: 2;
  grid-row: 1;
  flex: none;
  width: 100%;
  height: 100%;
  min-height: 9.5rem;
  max-height: none;
  aspect-ratio: auto;
  align-self: stretch;
  border-inline-end: 3px solid var(--hot);
  background: #e2e8f0;
}
.au-home-band--dual .au-pcard--lead.au-pcard--world-home-lead .au-pcard__media img,
.au-home-band--dual .au-pcard--lead.au-pcard--world-home-lead .au-pcard__media video {
  width: 100%;
  height: 100%;
  min-height: 9.5rem;
  max-height: none;
  object-fit: cover;
  display: block;
}

@media (min-width: 520px) {
  .au-home-band--dual .au-pcard--lead:not(.au-pcard--no-media):not(.au-pcard--world-home-lead) {
    flex-direction: row;
    align-items: stretch;
    gap: 0;
  }
  .au-home-band--dual .au-pcard--lead.au-pcard--world-home-lead {
    grid-template-columns: minmax(0, 1fr) clamp(10rem, 43%, 13.5rem);
    column-gap: 1rem;
    min-height: 11rem;
  }
  .au-home-band--dual .au-pcard--lead.au-pcard--world-home-lead .au-pcard__body {
    padding: 1rem 0.5rem 1rem 1rem;
  }
  .au-home-band--dual .au-pcard--lead.au-pcard--world-home-lead .au-pcard__media,
  .au-home-band--dual .au-pcard--lead.au-pcard--world-home-lead .au-pcard__media img,
  .au-home-band--dual .au-pcard--lead.au-pcard--world-home-lead .au-pcard__media video {
    min-height: 11rem;
  }
  .au-home-band--dual .au-pcard--lead:not(.au-pcard--no-media):not(.au-pcard--world-home-lead) .au-pcard__media {
    flex: 0 0 42%;
    width: 42%;
    max-width: 42%;
    aspect-ratio: 4 / 3;
    max-height: 11.5rem;
    align-self: center;
  }
  .au-home-band--dual .au-pcard--lead:not(.au-pcard--no-media):not(.au-pcard--world-home-lead) .au-pcard__media img,
  .au-home-band--dual .au-pcard--lead:not(.au-pcard--no-media):not(.au-pcard--world-home-lead) .au-pcard__media video {
    max-height: 11.5rem;
  }
  .au-home-band--dual .au-pcard--lead:not(.au-pcard--no-media):not(.au-pcard--world-home-lead) .au-pcard__body {
    flex: 1;
    min-width: 0;
    padding: 0.65rem 0.8rem 0.8rem;
  }
  .au-home-band--dual .au-pcard--lead:not(.au-pcard--no-media):not(.au-pcard--world-home-lead) .au-pcard__title {
    font-size: clamp(0.92rem, 2.1vw, 1.05rem);
    line-height: 1.38;
  }
}

/*
 * أخبار محلية (Local) homepage lead: target thumb box 588.81×343px — scales down in narrow column.
 */
.au-home-band--dual .au-pcard--lead.au-pcard--local-home-lead .au-pcard__media {
  width: 100%;
  max-width: 588.81px;
  aspect-ratio: 588.81 / 343;
  max-height: 343px;
  margin-inline: auto;
  box-sizing: border-box;
}
.au-home-band--dual .au-pcard--lead.au-pcard--local-home-lead .au-pcard__media img,
.au-home-band--dual .au-pcard--lead.au-pcard--local-home-lead .au-pcard__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 343px;
}

/* Other dual no-media leads (fallback) — not Local/World home leads. */
.au-home-band--dual .au-pcard--lead.au-pcard--no-media:not(.au-pcard--world-home-lead):not(.au-pcard--local-home-lead) .au-pcard__media {
  max-height: 12.5rem;
}
.au-home-band--dual .au-pcard--lead.au-pcard--no-media:not(.au-pcard--world-home-lead):not(.au-pcard--local-home-lead) .au-pcard__media img,
.au-home-band--dual .au-pcard--lead.au-pcard--no-media:not(.au-pcard--world-home-lead):not(.au-pcard--local-home-lead) .au-pcard__media video {
  max-height: 12.5rem;
}

/* Politics: compact editorial row — RTL: .au-poli-lead__media first → visual right */
.au-poli-lead {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  margin-bottom: 0.35rem;
  box-shadow: 0 2px 14px rgba(12, 18, 32, 0.05);
  max-width: 100%;
}
@media (min-width: 640px) {
  .au-poli-lead {
    flex-direction: row;
    align-items: stretch;
    min-height: 0;
  }
}
.au-poli-lead__media {
  display: block;
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 13rem;
  background: #e2e8f0;
  overflow: hidden;
}
@media (min-width: 640px) {
  .au-poli-lead__media {
    width: clamp(11rem, 28vw, 17.5rem);
    max-width: clamp(11rem, 28vw, 17.5rem);
    aspect-ratio: 4 / 3;
    max-height: none;
    align-self: stretch;
    min-height: 10.5rem;
  }
}
.au-poli-lead__media img,
.au-poli-lead__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.au-poli-lead__body {
  flex: 1;
  min-width: 0;
  padding: 0.95rem 1rem 1.05rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
}
.au-poli-lead__cat {
  font-size: 0.65rem;
  font-weight: 900;
  color: var(--hot);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.au-poli-lead__title {
  margin: 0;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.35;
  font-weight: 900;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.au-poli-lead__title a {
  color: var(--ink);
  text-decoration: none;
}
.au-poli-lead__title a:hover {
  color: var(--hot);
}
.au-poli-lead__excerpt {
  margin: 0.2rem 0 0;
  font-size: 0.84rem;
  line-height: 1.62;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.au-poli-lead__time {
  margin-top: 0.45rem;
  font-size: 0.74rem;
  color: var(--muted);
  padding-top: 0.4rem;
  border-top: 1px solid var(--line);
}
.au-poli-lead--no-media .au-poli-lead__body {
  border-inline-start: 3px solid var(--hot);
  background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
}
.au-poli-lead--no-media .au-poli-lead__excerpt {
  -webkit-line-clamp: 4;
}

.au-home-band--politics .au-cat-col__sub--politics {
  margin-top: 1.15rem;
}

.au-stack-col {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1rem 1.05rem 1.2rem;
  background: #fafbfc;
  height: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.au-stack-col__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--ink);
}
.au-stack-col__title {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 900;
}
.au-stack-col__title a {
  color: var(--ink);
  text-decoration: none;
}
.au-stack-col__title a:hover { color: var(--hot); }
.au-stack-col__more {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--hot);
  text-decoration: none;
}
.au-stack-col__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.au-pcard--stack .au-pcard__media {
  aspect-ratio: 16 / 9;
}

/* ——— Lower feed ——— */
.au-feed-section {
  padding: 2.25rem 0 3.5rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: clip;
}
.au-section-head {
  margin-bottom: 1.35rem;
}
.au-section-head__kicker {
  display: block;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--hot);
  margin-bottom: 0.25rem;
}
.au-section-head__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 900;
}

.au-feed {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.au-feed__row {
  display: grid;
  grid-template-columns: minmax(100px, 140px) minmax(0, 1fr);
  gap: 1rem 1.25rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  min-width: 0;
  max-width: 100%;
}
.au-feed__row--no-media {
  grid-template-columns: 1fr;
  padding-inline-start: 0.35rem;
  border-inline-start: 3px solid var(--line-strong);
}
@media (max-width: 600px) {
  .au-feed__row {
    grid-template-columns: 1fr;
  }
  .au-feed__thumb {
    max-width: 100%;
    aspect-ratio: 16 / 9;
  }
}
.au-feed__thumb {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #e2e8f0;
}
.au-feed__thumb img,
.au-feed__thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.au-feed__cat {
  font-size: 0.72rem;
  font-weight: 900;
  color: var(--hot);
  letter-spacing: 0.03em;
}
.au-feed__title {
  margin: 0.35rem 0;
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.4;
  font-weight: 800;
}
.au-feed__title a {
  color: var(--ink);
  text-decoration: none;
}
.au-feed__title a:hover { color: var(--hot); }
.au-feed__excerpt {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}
.au-feed__meta {
  font-size: 0.8rem;
  color: var(--muted);
}
.au-feed__body--no-thumb {
  grid-column: 1 / -1;
}

.pv-empty {
  color: var(--muted);
  padding: 2rem 0;
  text-align: center;
}
/* ——— News flow / more coverage (text-only grid) ——— */
.au-flow-section {
  padding: 2.75rem 0 3.75rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 42%, var(--bg) 100%);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: clip;
}
.au-section-head--flow {
  margin-bottom: 1.6rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--line);
}
.au-flow-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem 1.1rem;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
@media (min-width: 520px) {
  .au-flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.15rem;
  }
}
@media (min-width: 900px) {
  .au-flow-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1180px) {
  .au-flow-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.05rem 1.2rem;
  }
}
.au-flow-card {
  margin: 0;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 2px 12px rgba(12, 18, 32, 0.035);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  min-height: 100%;
  min-width: 0;
  max-width: 100%;
}
.au-flow-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 8px 28px rgba(12, 18, 32, 0.08);
  transform: translateY(-2px);
}
.au-flow-card__link {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  height: 100%;
  padding: 0.95rem 1rem 1.05rem;
  text-decoration: none;
  color: inherit;
}
.au-flow-card__cat {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--hot);
  text-transform: uppercase;
}
.au-flow-card__title {
  margin: 0;
  font-size: clamp(0.88rem, 1.35vw, 0.98rem);
  line-height: 1.42;
  font-weight: 800;
  color: var(--ink);
  flex: 1;
}
.au-flow-card__link:hover .au-flow-card__title {
  color: var(--hot);
}
.au-flow-card__excerpt {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.58;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.au-flow-card__time {
  margin-top: auto;
  padding-top: 0.45rem;
  font-size: 0.72rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.au-flow-empty {
  grid-column: 1 / -1;
}

.pv-pagination-wrap { margin-top: 2rem; }
.pv-aurora .pagination-nav { margin-top: 1.5rem; }
.pv-aurora .pagination-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: center;
}
.pv-aurora .pagination-link {
  display: inline-block;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  font-weight: 600;
  font-size: 0.88rem;
}
.pv-aurora .pagination-item.is-active .pagination-link {
  background: var(--hot);
  color: #fff;
  border-color: var(--hot);
}
.pv-aurora .pagination-meta {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

/* ——— Article page ——— */
.au-article-page {
  padding: 1.5rem 1rem 3rem;
}
.au-article-layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  align-items: start;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
@media (min-width: 1024px) {
  .au-article-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 2.5rem;
  }
  .au-article-aside {
    position: sticky;
    top: 5.5rem;
  }
}

.au-article-main {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.25rem 2rem;
  box-shadow: 0 4px 24px rgba(12, 18, 32, 0.05);
  min-width: 0;
  max-width: 100%;
}
@media (min-width: 640px) {
  .au-article-main { padding: 1.75rem 2rem 2.25rem; }
}

.au-article-top__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}
.au-article-top__cat {
  font-size: 0.78rem;
  font-weight: 900;
  color: var(--hot);
  text-decoration: none;
}
.au-article-top__cat:hover { text-decoration: underline; }
.au-article-top__title {
  font-size: clamp(1.45rem, 3.2vw, 2.15rem);
  line-height: 1.25;
  font-weight: 900;
  margin: 0 0 0.85rem;
}
.au-article-top__byline {
  font-size: 0.88rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.au-dot { opacity: 0.5; }

.au-article-gallery {
  margin: 1.35rem 0 1.5rem;
}
.au-article-gallery__inner {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
}
.au-article-gallery__inner--single {
  grid-template-columns: 1fr;
}
.au-article-gallery__cell {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0f172a;
}
.au-article-gallery__cell img,
.au-article-gallery__cell video {
  width: 100%;
  display: block;
}

.au-article-content {
  font-size: 1.08rem;
  line-height: 1.95;
  color: #1a2332;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}
.au-article-content p { margin: 0 0 1.1rem; }
.au-article-content h2, .au-article-content h3 {
  margin: 1.5rem 0 0.65rem;
  line-height: 1.35;
}
.au-article-content img,
.au-article-content video,
.au-article-content svg {
  max-width: 100%;
  height: auto;
}
.au-article-content iframe {
  max-width: 100%;
}
.au-article-content pre {
  overflow-x: auto;
  max-width: 100%;
  white-space: pre-wrap;
  word-break: break-word;
}
.au-article-content > table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
}
.au-article-content table {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
  max-width: 100%;
}
.au-article-content td,
.au-article-content th {
  word-break: break-word;
  overflow-wrap: anywhere;
  vertical-align: top;
}
.au-article-content figure {
  max-width: 100%;
  margin-inline: 0;
}

.au-article-disclaimer {
  margin-top: 2rem;
  padding: 1rem 1.1rem;
  background: var(--hot-soft);
  border-radius: var(--radius);
  font-size: 0.86rem;
  color: #5c2a2a;
  line-height: 1.75;
  border: 1px solid rgba(196, 30, 30, 0.15);
}
.au-article-disclaimer p { margin: 0 0 0.65rem; }
.au-article-disclaimer p:last-child { margin-bottom: 0; }

.au-related {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--line);
}
.au-related__title {
  font-size: 1.1rem;
  font-weight: 900;
  margin: 0 0 1rem;
}
.au-related__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.au-related__list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}
.au-related__list a {
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.45;
}
.au-related__list a:hover { color: var(--hot); }
.au-related__time {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.au-article-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
  max-width: 100%;
}
.au-aside-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}
.au-aside-block--muted {
  background: #f8fafc;
}
.au-aside-block__title {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 900;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--ink);
}
.au-aside-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.au-aside-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}
.au-aside-list a {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.45;
}
.au-aside-list a:hover { color: var(--hot); }
.au-aside-list time {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.2rem;
}
.au-aside-block__cta {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--hot);
  text-decoration: none;
}
.au-aside-block__cta:hover { text-decoration: underline; }
.au-aside-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.au-aside-nav a {
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.88rem;
}
.au-aside-nav a:hover { text-decoration: underline; }

/* ——— Category / archive / search pages ——— */
.au-page {
  padding: 1.25rem 1rem 3rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}
.au-page-hero {
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 3px solid var(--ink);
}
.au-page-hero--compact {
  border-bottom-width: 2px;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}
.au-breadcrumb {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.au-breadcrumb a {
  color: var(--hot);
  text-decoration: none;
  font-weight: 700;
}
.au-breadcrumb__sep { margin: 0 0.35rem; opacity: 0.5; }
.au-page-hero__title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 900;
}
.au-page-hero__lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.au-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}
.au-pill {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.au-pill:hover {
  border-color: var(--hot);
  color: var(--hot);
}

.au-card-wall {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .au-card-wall { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .au-card-wall { grid-template-columns: repeat(3, 1fr); }
}

.au-wall-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
  min-width: 0;
  max-width: 100%;
}
.au-wall-card:hover {
  box-shadow: var(--shadow);
}
.au-wall-card__media {
  aspect-ratio: 16 / 10;
  display: block;
  background: #e2e8f0;
}
.au-wall-card__media img,
.au-wall-card__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.au-wall-card__body {
  padding: 1rem 1.1rem 1.15rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.au-wall-card__title {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.45;
  font-weight: 900;
  flex: 1;
}
.au-wall-card__title a {
  color: var(--ink);
  text-decoration: none;
}
.au-wall-card__title a:hover { color: var(--hot); }
.au-wall-card__excerpt {
  margin: 0.45rem 0 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.6;
}
.au-wall-card__time {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.65rem;
}

/* ——— Category listing page (editorial layout) ——— */
.au-page--category {
  padding-top: 1.5rem;
  padding-bottom: 3.5rem;
  /* Centered column — not full site width */
  width: 100%;
  max-width: min(56rem, 100%);
  margin-inline: auto;
  box-sizing: border-box;
}

.au-category-hero {
  margin-bottom: 2rem;
  padding: 1.5rem 1.35rem 1.75rem;
  background: linear-gradient(165deg, var(--surface) 0%, #f8fafc 48%, #f1f5f9 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 28px rgba(12, 18, 32, 0.06);
  position: relative;
  overflow: hidden;
}
.au-category-hero::before {
  content: "";
  position: absolute;
  inset-inline-end: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--hot) 0%, #991b1b 100%);
  border-radius: 0 4px 4px 0;
}
.au-category-hero__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.au-category-hero__breadcrumb {
  margin-bottom: 0;
}
.au-breadcrumb__current {
  color: var(--ink);
  font-weight: 700;
}
.au-category-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
}
.au-category-hero__stat {
  color: var(--ink);
  padding: 0.28rem 0.65rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.au-category-hero__stat--muted {
  color: var(--muted);
  font-weight: 600;
  background: transparent;
  border-color: transparent;
  padding-inline: 0;
}
.au-category-hero__title-block {
  text-align: right;
}
.au-category-hero__kicker {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hot);
}
.au-category-hero__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--ink);
  overflow-wrap: anywhere;
  word-break: break-word;
}
.au-category-hero__lead {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 42rem;
}
.au-category-hero__siblings {
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  border-top: 1px dashed var(--line-strong);
}
.au-category-hero__siblings-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.65rem;
}
.au-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.55rem;
}
.au-category-pill {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.au-category-pill:hover {
  border-color: var(--hot);
  color: var(--hot);
  box-shadow: 0 2px 12px rgba(196, 30, 30, 0.12);
}

.au-category-feed {
  margin-bottom: 0.5rem;
}

.au-page--category .au-card-wall--category {
  display: grid;
  gap: 1.35rem 1.25rem;
  grid-template-columns: 1fr;
  align-items: stretch;
}
@media (min-width: 640px) {
  .au-page--category .au-card-wall--category {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.4rem 1.35rem;
  }
}
@media (min-width: 1100px) {
  .au-page--category .au-card-wall--category {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem 1.4rem;
  }
}

.au-page--category .au-wall-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: 0 2px 16px rgba(12, 18, 32, 0.04);
  height: 100%;
}
.au-page--category .au-wall-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 12px 36px rgba(12, 18, 32, 0.09);
}
.au-page--category .au-wall-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  flex-shrink: 0;
}
.au-page--category .au-wall-card__media img,
.au-page--category .au-wall-card__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.au-page--category .au-wall-card:hover .au-wall-card__media img,
.au-page--category .au-wall-card:hover .au-wall-card__media video {
  transform: scale(1.03);
}
.au-page--category .au-wall-card__body {
  padding: 1.05rem 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  text-align: right;
}
.au-page--category .au-wall-card__flags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
}
.au-page--category .au-wall-card__flag {
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  text-transform: uppercase;
}
.au-page--category .au-wall-card__flag--urgent {
  background: var(--hot);
  color: #fff;
}
.au-page--category .au-wall-card__flag--feat {
  background: rgba(212, 175, 55, 0.2);
  color: #92400e;
}
.au-page--category .au-wall-card__title {
  margin: 0;
  font-size: clamp(0.95rem, 1.5vw, 1.06rem);
  line-height: 1.42;
  font-weight: 900;
  flex: 0 0 auto;
}
.au-page--category .au-wall-card__title a {
  color: var(--ink);
  text-decoration: none;
}
.au-page--category .au-wall-card__title a:hover {
  color: var(--hot);
}
.au-page--category .au-wall-card__excerpt {
  margin: 0.55rem 0 0;
  font-size: 0.84rem;
  line-height: 1.62;
  color: var(--muted);
  flex: 1 1 auto;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.au-page--category .au-wall-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}
.au-page--category .au-wall-card__time {
  margin-top: 0;
  font-size: 0.74rem;
  color: var(--muted);
  font-weight: 600;
}
.au-page--category .au-wall-card__read {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--hot);
  text-decoration: none;
  white-space: nowrap;
}
.au-page--category .au-wall-card__read:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Featured lead — first item on page 1 */
.au-page--category .au-wall-card--featured {
  grid-column: 1 / -1;
}
@media (min-width: 768px) {
  .au-page--category .au-wall-card--featured {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    align-items: stretch;
    direction: ltr;
    min-height: 0;
  }
  .au-page--category .au-wall-card--featured .au-wall-card__media {
    grid-column: 2;
    grid-row: 1;
    aspect-ratio: auto;
    min-height: 14rem;
    max-height: 22rem;
    border-inline-end: 4px solid var(--hot);
  }
  .au-page--category .au-wall-card--featured .au-wall-card__body {
    grid-column: 1;
    grid-row: 1;
    direction: rtl;
    text-align: right;
    padding: 1.35rem 1.5rem 1.5rem;
    justify-content: center;
  }
  .au-page--category .au-wall-card--featured .au-wall-card__title {
    font-size: clamp(1.15rem, 2.2vw, 1.45rem);
    line-height: 1.32;
  }
  .au-page--category .au-wall-card--featured .au-wall-card__excerpt {
    -webkit-line-clamp: 5;
    font-size: 0.9rem;
  }
}

.au-category-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2.75rem 1.5rem;
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
}
.au-category-empty__title {
  margin: 0 0 0.65rem;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--ink);
}
.au-category-empty__hint {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--muted);
}
.au-category-empty__hint a {
  color: var(--hot);
  font-weight: 800;
  text-decoration: none;
}
.au-category-empty__hint a:hover {
  text-decoration: underline;
}

.au-category-pagination {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.au-category-pagination__inner {
  margin-top: 0;
}
.au-page--category .pagination-nav {
  margin-top: 0;
}
.au-page--category .pagination-list {
  gap: 0.4rem;
}
.au-page--category .pagination-link {
  min-width: 2.65rem;
  text-align: center;
  padding: 0.5rem 0.65rem;
  border-radius: 12px;
}

@media (max-width: 767px) {
  .au-category-hero {
    padding: 1.15rem 1rem 1.35rem;
  }
  .au-category-hero__top {
    flex-direction: column;
    align-items: stretch;
  }
  .au-category-hero__stats {
    justify-content: flex-start;
  }
}

.au-archive-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
  margin-top: 1rem;
}
.au-archive-filter__field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.82rem;
  font-weight: 700;
  flex: 1 1 8rem;
  min-width: 0;
  max-width: 100%;
}
.au-archive-filter__field input {
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
@media (min-width: 480px) {
  .au-archive-filter__field input {
    min-width: 7.5rem;
    width: auto;
    max-width: 100%;
  }
}
.au-btn {
  background: var(--hot);
  color: #fff;
  border: 0;
  padding: 0.55rem 1.15rem;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
}
.au-btn:hover { background: var(--hot-hover); }

.au-timeline-block {
  margin-bottom: 1.5rem;
}
.au-timeline-block__title {
  font-size: 1rem;
  font-weight: 900;
  margin: 0 0 0.65rem;
}
.au-timeline-chips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.au-timeline-chips a {
  display: inline-block;
  padding: 0.4rem 0.7rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.au-timeline-chips a:hover {
  border-color: var(--hot);
  color: var(--hot);
}
.au-timeline-chips__n {
  font-weight: 600;
  opacity: 0.7;
}

.au-search-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.au-search-bar input {
  flex: 1;
  min-width: 200px;
  padding: 0.65rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
}

/* ——— Live-theme-compatible footer (refined-footer) ——— */
.pv-aurora .au-live-footer.refined-footer {
  margin-top: 48px;
  padding: 34px 0 18px;
  background:
    radial-gradient(circle at top right, rgba(196, 30, 30, 0.08), transparent 28%),
    linear-gradient(180deg, #0f172a 0%, #0a0f18 55%, #060a12 100%);
  color: #fff;
}
.pv-aurora .au-live-footer .footer-shell {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 0.9fr 1fr;
  gap: 18px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.pv-aurora .au-live-footer .footer-panel {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 18px;
  min-height: 100%;
}
.pv-aurora .au-live-footer .footer-brand {
  background: rgba(255, 255, 255, 0.06);
}
.pv-aurora .au-live-footer .footer-logo-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.pv-aurora .au-live-footer .footer-logo-image {
  width: auto;
  max-height: 52px;
  object-fit: contain;
  flex-shrink: 0;
}
.pv-aurora .au-live-footer .footer-brand h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}
.pv-aurora .au-live-footer .footer-brand p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.92rem;
  line-height: 1.75;
}
.pv-aurora .au-live-footer .footer-links-group h4,
.pv-aurora .au-live-footer .footer-contact h4 {
  margin: 0 0 12px;
  font-size: 0.98rem;
}
.pv-aurora .au-live-footer .footer-links-group a,
.pv-aurora .au-live-footer .footer-mail {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-size: 0.9rem;
}
.pv-aurora .au-live-footer .footer-links-group a:hover,
.pv-aurora .au-live-footer .footer-mail:hover {
  color: #fff;
  text-decoration: underline;
}
.pv-aurora .au-live-footer .footer-mail {
  font-weight: 800;
  direction: ltr;
  text-align: right;
  word-break: break-word;
}
.pv-aurora .au-live-footer .footer-note {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
  line-height: 1.85;
}
.pv-aurora .au-live-footer .footer-bottom {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}
.pv-aurora .au-live-footer .footer-bottom small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
}

@media (max-width: 1100px) {
  .pv-aurora .au-live-footer .footer-shell {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
  .pv-aurora .au-live-footer .footer-contact {
    grid-column: 1 / -1;
  }
}
@media (max-width: 768px) {
  .pv-aurora .au-live-footer .footer-shell {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .pv-aurora .au-live-footer .footer-shell {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .pv-aurora .au-live-footer .footer-panel {
    padding: 14px 15px;
    border-radius: 18px;
  }
}

/* ——— Mobile navigation ——— */
@media (max-width: 900px) {
  .au-nav-toggle { display: inline-block; flex-shrink: 0; }
  .au-logo {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 6.5rem);
  }
  .au-nav {
    display: none;
    width: 100%;
    flex: 1 1 100%;
    flex-direction: column;
    align-items: stretch;
    order: 3;
    padding: 0.5rem 0 0;
    border-top: 1px solid var(--line);
    margin-top: 0.25rem;
    min-width: 0;
    box-sizing: border-box;
  }
  .au-nav.is-open { display: flex; }
  .au-nav a {
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
  }
  .au-head__inner {
    flex-wrap: wrap;
  }
  .au-nav__primary,
  .au-nav__secondary {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    margin-inline-start: 0;
    min-width: 0;
  }
  .au-nav__secondary {
    gap: 0.5rem;
  }
  .au-nav-search {
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
    padding: 0.35rem 0.5rem;
  }
  .au-nav-search input[type="search"] {
    max-width: none;
    flex: 1 1 auto;
  }
}

@media (max-width: 480px) {
  .au-hero__title { font-size: 1.28rem; }
  .au-cat-strip__grid {
    grid-template-columns: 1fr;
  }
}

/* Live site: lock horizontal scroll (RTL + WebKit need hidden, not only clip) */
html {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}
.pv-root.pv-aurora {
  max-width: 100%;
  overflow-x: hidden;
}
.pv-main.au-main {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
  overflow-x: hidden;
}

/* Live strip (replaces preview banner on production) */
.au-live-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 1rem;
  background: #1e293b;
  color: #e2e8f0;
  font-size: 0.76rem;
}
.au-live-strip__label { opacity: 0.9; }
.au-live-strip__link {
  color: #93c5fd;
  text-decoration: underline;
}
.au-live-strip__link:hover { color: #bfdbfe; }
