/* ═══════════════════════════════════════════════════════════════════
   MERCEDONIUS — The 13th Month of News
   Brand Stylesheet v3.0 — Full contrast, larger type, mobile-first
   ═══════════════════════════════════════════════════════════════════ */


/* ── CSS Variables ─────────────────────────────────────────────── */
:root {
  --roman-night:      #120808;
  --aurum:            #C8281E;
  --aurum-light:      #D93528;
  --aurum-bright:     #E84035;
  --senatorial:       #1A3A5C;
  --senatorial-bright:#1E5A8A;
  --slate-column:     #2A3A4C;
  --slate-light:      #4A6A82;
  --parchment:        #F0F4F8;
  --parchment-mid:    #C8D4E0;
  --parchment-soft:   #90A8BC;
  --ink:              #0A1520;
  --card-bg:          #1A2530;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Source Serif 4', Georgia, serif;

  --logo-height:   62px;
  --ticker-height: 38px;
  --nav-height:    46px;
  --header-height: 146px;

  --radius-sm: 3px;
  --transition: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow-card: 0 3px 16px rgba(0,0,0,0.45);
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 17px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--roman-night);
  color: var(--parchment);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--roman-night); }
::-webkit-scrollbar-thumb { background: var(--slate-column); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--aurum); }

/* ═══════════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════════ */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--roman-night);
  border-bottom: 2px solid var(--slate-column);
}

/* ── Logo Bar ──────────────────────────────────────────────────── */
.header-logo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: var(--logo-height);
  border-bottom: 1px solid rgba(90, 90, 130, 0.5);
}

.logo-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-xiii {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  color: var(--aurum-bright);
  letter-spacing: -0.02em;
  line-height: 1;
  border: 2px solid var(--aurum);
  padding: 0.2rem 0.5rem 0.1rem;
  flex-shrink: 0;
  display: inline-block;
}

.logo-wordmark { display: flex; flex-direction: column; gap: 0.05rem; }

.logo-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--parchment);
  line-height: 1;
  text-transform: uppercase;
}

.logo-sub {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--parchment);
  text-transform: uppercase;
}

.header-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--parchment);
  letter-spacing: 0.04em;
  display: none;
}
@media (min-width: 860px) { .header-tagline { display: block; } }

/* ── Ticker ────────────────────────────────────────────────────── */
.header-ticker {
  display: flex;
  align-items: center;
  height: var(--ticker-height);
  background: var(--roman-night);
  border-bottom: 1px solid rgba(90, 90, 130, 0.4);
  overflow: hidden;
}

.ticker-label {
  flex-shrink: 0;
  background: var(--senatorial-bright);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0 1rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 95px;
}

.ticker-label::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: pulse-dot 1.4s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.65); }
}

.ticker-track {
  flex: 1;
  overflow: hidden;
  padding: 0 0.75rem;
}

.ticker-inner {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  white-space: nowrap;
  will-change: transform;
  animation: ticker-scroll-rtl 120s linear infinite;
}
.ticker-inner:hover { animation-play-state: paused; }

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

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

.ticker-item {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.01em;
}
.ticker-item a { color: inherit; }
.ticker-item a:hover { color: var(--aurum-bright); }

.ticker-sep { color: var(--aurum); opacity: 0.7; font-size: 0.65rem; }

/* ── Category Nav ──────────────────────────────────────────────── */
.header-nav {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: var(--slate-column);
  position: relative;
}

/* ── Hamburger button (mobile only) ───────────────────────────── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem 1rem;
  margin-left: auto;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  height: var(--nav-height);
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--parchment);
  border-radius: 2px;
  transition: all 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-list {
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
  width: 100%;
}

.nav-item a {
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  height: var(--nav-height);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--parchment);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,0.1);
  position: relative;
}
.nav-item:first-child a { border-left: 1px solid rgba(255,255,255,0.1); }

.nav-item a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--aurum-bright);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: center;
}
.nav-item a:hover,
.nav-item a.active { color: #fff; background: rgba(255,255,255,0.08); }
.nav-item a:hover::after,
.nav-item a.active::after { transform: scaleX(1); }

.nav-item--breaking a { color: var(--aurum-bright); font-weight: 700; }
.nav-item--video a    { color: #7ec8e3; font-weight: 700; }  /* sky blue — distinct from gold */
.nav-item--video a:hover,
.nav-item--video a.active { color: #a8dff0 !important; background: rgba(126,200,227,0.1) !important; }
.nav-item--video a::after { background: #7ec8e3 !important; }
.nav-item--hub a      { color: var(--aurum-bright); }

/* ── Tablet nav ≤1100px — hide last 2 items to prevent overflow ── */
@media (max-width: 1100px) {
  .nav-item a { padding: 0 0.55rem; font-size: 0.72rem; }
}

/* ── Hamburger nav ≤860px ─────────────────────────────────────── */
@media (max-width: 860px) {
  :root {
    --header-height: 156px;
    --logo-height:   74px;
    --ticker-height: 38px;
    --nav-height:    44px;
  }

  /* Show hamburger button */
  .nav-toggle {
    display: flex !important;
  }

  /* Hide full nav list by default, show as dropdown when .open */
  .nav-list {
    display: none !important;
    position: absolute !important;
    top: 44px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: #2a2a48 !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 9999 !important;
    border-top: 2px solid var(--aurum) !important;
    box-shadow: 0 12px 32px rgba(0,0,0,0.7) !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
  }
  .nav-list.open {
    display: flex !important;
  }

  .nav-item {
    width: 100% !important;
    border: none !important;
  }
  .nav-item a {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    padding: 1rem 1.5rem !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.06em !important;
    border-right: none !important;
    border-left: none !important;
    border-bottom: 1px solid rgba(90,90,130,0.25) !important;
    white-space: nowrap !important;
  }
  .nav-item:first-child a { border-left: none !important; }
  .nav-item a::after { display: none !important; }
  .nav-item a:hover,
  .nav-item a.active {
    background: rgba(196,151,58,0.15) !important;
    color: var(--aurum-bright) !important;
    padding-left: 2rem !important;
    border-left: 3px solid var(--aurum) !important;
  }

  /* Logo bar: XIII + name/tagline side-by-side, never wrap */
  .header-logo-bar { padding: 0 1rem; }
  .logo-left {
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 0.6rem !important;
    flex: 1;
    min-width: 0;
  }
  .logo-xiii {
    font-size: 1.45rem !important;
    padding: 0.15rem 0.4rem !important;
    flex-shrink: 0 !important;
  }
  /* wordmark: name on top line, tagline on bottom — column layout */
  .logo-wordmark:last-of-type {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.05rem !important;
    width: auto !important;
    flex-shrink: 1;
    min-width: 0;
  }
  .logo-name {
    font-size: 1rem !important;
    letter-spacing: 0.1em !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .logo-sub {
    display: block !important;
    font-size: 0.58rem !important;
    letter-spacing: 0.1em !important;
    white-space: nowrap;
  }
}

/* ── RTL pages: lock logo to LTR so it never shifts right ─────── */
.page-rtl .header-logo-bar,
.page-rtl .logo-left,
.page-rtl .logo-wordmark,
.page-rtl .logo-name,
.page-rtl .logo-sub,
.page-rtl .logo-xiii {
  direction: ltr !important;
  text-align: left !important;
}

/* ── Small mobile ≤480px ─────────────────────────────────────── */
@media (max-width: 480px) {
  :root {
    --header-height: 160px;
    --logo-height:   70px;
    --ticker-height: 38px;
    --nav-height:    44px;
  }

  .header-logo-bar { padding: 0 0.75rem; }
  .logo-xiii { font-size: 1.25rem !important; padding: 0.12rem 0.32rem !important; }
  .logo-name { font-size: 0.88rem !important; letter-spacing: 0.08em !important; }
  .logo-sub  { font-size: 0.52rem !important; letter-spacing: 0.08em !important; }
}

/* ═══════════════════════════════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════════════════════════════ */

.site-main {
  padding-top: var(--header-height);
  min-height: 100vh;
}

/* ── Page Masthead ─────────────────────────────────────────────── */








/* ── Utility Bar ───────────────────────────────────────────────── */
.utility-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 1.75rem;
  border-bottom: 1px solid rgba(90, 90, 130, 0.3);
  background: rgba(58, 58, 92, 0.12);
  flex-wrap: wrap;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--aurum-bright);
}

.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--aurum-bright);
  animation: pulse-dot 1.4s ease-in-out infinite;
  flex-shrink: 0;
}

.utility-text {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--parchment-mid);
  white-space: nowrap;
}
.utility-text strong { color: var(--parchment); font-weight: 600; }

.utility-sep {
  color: var(--slate-light);
  font-size: 0.8rem;
  white-space: nowrap;
}

.utility-inline-status {
  display: none;
  color: #e09050;
  font-size: 0.72rem;
}

.utility-inline-status.visible {
  display: inline;
}

.utility-inline-status-sep.hidden {
  display: none;
}

.btn-refresh {
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--aurum);
  color: var(--aurum-bright);
  padding: 0.32rem 1rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.btn-refresh:hover { background: var(--aurum); color: var(--roman-night); }

/* ── Filter Tabs ───────────────────────────────────────────────── */
.section-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 0.25rem 1.75rem 0;
  gap: 0;
  border-bottom: 1px solid rgba(90, 90, 130, 0.4);
}

.filter-tab {
  flex-shrink: 0;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--parchment-mid);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.75rem 1.1rem;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
  cursor: pointer;
}
.filter-tab:hover { color: var(--parchment); }
.filter-tab.active {
  color: var(--aurum-bright);
  border-bottom-color: var(--aurum-bright);
  font-weight: 700;
}

@media (max-width: 860px) {
  .section-filters {
    padding: 0.25rem 1rem 0;
    gap: 0;
  }
  .filter-tab {
    font-size: 0.8rem;
    padding: 0.6rem 0.8rem;
  }
}

@media (max-width: 480px) {
  .section-filters { display: none; }
}

/* ── Error Banner ──────────────────────────────────────────────── */
.error-banner {
  display: none;
  background: rgba(122, 28, 28, 0.25);
  border-left: 4px solid var(--senatorial-bright);
  color: var(--parchment);
  padding: 0.75rem 1.75rem;
  font-size: 0.9rem;
}
.error-banner.visible { display: none; }  /* message moved inline */

/* ═══════════════════════════════════════════════════════════════════
   BREAKING HERO
   ═══════════════════════════════════════════════════════════════════ */

.breaking-hero {
  display: none;
  position: relative;
  overflow: hidden;
  min-height: 160px;
  background: var(--slate-column);
  border-bottom: 1px solid rgba(90, 90, 130, 0.5);
}
.breaking-hero.visible { display: block; }
.breaking-hero.no-image {
  min-height: 0;
  background: linear-gradient(180deg, rgba(26, 26, 48, 0.95) 0%, rgba(13, 13, 26, 0.98) 100%);
}

.hero-image-wrap { position: absolute; inset: 0; }
.hero-image-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; opacity: 0.3; filter: saturate(0.6);
}
.hero-image-placeholder {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #3A3A5C 0%, #0D0D1A 60%, rgba(122,28,28,0.4) 100%);
}
.hero-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,13,26,0.97) 0%, rgba(13,13,26,0.6) 45%, rgba(13,13,26,0.15) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  padding: 1.25rem 1.75rem 1.5rem;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 160px;
}
.breaking-hero.no-image .hero-image-wrap,
.breaking-hero.no-image .hero-gradient {
  display: none;
}
.breaking-hero.no-image .hero-content {
  min-height: 0;
  padding: 0.75rem 1.75rem 1rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--senatorial-bright);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  margin-bottom: 1rem;
  width: fit-content;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: pulse-dot 1.4s ease-in-out infinite;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.7rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  letter-spacing: -0.02em;
  max-width: 100%;
  margin-bottom: 0.6rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 600px) {
  .hero-headline {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    font-size: 1rem;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}
.breaking-hero.no-image .hero-headline {
  max-width: none;
  margin-bottom: 0.55rem;
  font-size: clamp(1.15rem, 2.5vw, 1.7rem);
}
.hero-headline a { transition: color var(--transition); }
.hero-headline a:hover { color: var(--aurum-bright); }
.hero-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--parchment-mid);
  flex-wrap: wrap;
}
.hero-meta .source { color: var(--aurum-bright); font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════════
   NEWS SECTIONS
   ═══════════════════════════════════════════════════════════════════ */

.news-sections { padding: 0 1.75rem 3.5rem; contain: layout; }
.news-section  { margin-top: 2.5rem; }

.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(90, 90, 130, 0.5);
  position: relative;
}
.section-header::before {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 3.5rem; height: 2px;
  background: var(--aurum-bright);
}
.section-emoji { font-size: 1.1rem; line-height: 1; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: var(--parchment);
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.section-count {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--parchment-soft);
  letter-spacing: 0.08em;
  margin-left: auto;
}

/* ══════════════════════════════════════════════════════════════
   NEWS GRID + CARDS
   Desktop (≥560px): 4-col grid, full image card (original layout)
   Mobile  (<560px): compact rows, image right
   ══════════════════════════════════════════════════════════════ */

/* ── News Grid — desktop: 4-col, tablet: 2-col, mobile: 1-col rows ── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 1100px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .news-grid { grid-template-columns: 1fr; gap: 0; } }

/* ── Card — desktop: original column layout (image top, text below) ── */
.news-card,
.news-card--lead,
.news-card--row {
  cursor: pointer;
  background: var(--card-bg);
  border: 1px solid rgba(90, 90, 130, 0.55);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-card);
}
.news-card:hover,
.news-card--lead:hover,
.news-card--row:hover {
  transform: translateY(-3px);
  border-color: var(--aurum);
  box-shadow: 0 8px 28px rgba(0,0,0,0.5), 0 0 0 1px rgba(196,151,58,0.2);
}

/* Image on top — full width */
.news-card .card-image-wrap,
.news-card--lead .card-image-wrap,
.news-card--row .card-image-wrap {
  position: relative;
  aspect-ratio: 16/7;
  overflow: hidden;
  background: #1a1a30;
  flex-shrink: 0;
  width: 100%;
}
.news-card .card-image-wrap img,
.news-card--lead .card-image-wrap img,
.news-card--row .card-image-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top; opacity: 0.9;
  transition: opacity var(--transition), transform 0.4s ease;
  filter: saturate(0.8); display: block;
}
.news-card:hover .card-image-wrap img,
.news-card--lead:hover .card-image-wrap img,
.news-card--row:hover .card-image-wrap img {
  opacity: 1; transform: scale(1.03); filter: saturate(1);
}

/* Badges on image */
.card-breaking-badge {
  position: absolute; top: 0.5rem; left: 0.5rem;
  background: var(--senatorial-bright); color: #fff;
  font-family: var(--font-body); font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; padding: 0.2rem 0.5rem;
}
.card-section-badge {
  position: absolute; bottom: 0; left: 0;
  background: rgba(13,13,26,0.88); color: var(--aurum-bright);
  font-family: var(--font-body); font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.22rem 0.6rem; backdrop-filter: blur(4px);
}
.card-play-badge {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  background: rgba(0,0,0,0.55); color: #fff;
  font-size: 1.4rem; padding: 0.4rem 0.7rem; border-radius: 4px;
}

/* Card body */
.card-body {
  display: flex; flex-direction: column;
  gap: 0.5rem; padding: 0.9rem 1rem 0.75rem; flex: 1;
}
.card-source-row {
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
}
.card-source {
  font-family: var(--font-body);
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--aurum-bright);
}
.card-time {
  font-family: var(--font-body);
  font-size: 0.75rem; font-weight: 400;
  color: var(--parchment-soft);
}
.card-time::before { content: '·'; margin-right: 0.4rem; color: var(--slate-light); }

.card-headline {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 600;
  line-height: 1.3; color: var(--parchment);
  letter-spacing: -0.01em;
  -webkit-line-clamp: 4;
  display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden;
}
.card-headline a { transition: color var(--transition); }
.card-headline a:hover { color: var(--aurum-bright); }

.card-footer {
  padding: 0.55rem 1rem;
  border-top: 1px solid rgba(90, 90, 130, 0.35);
  display: flex; align-items: center; justify-content: flex-end;
}
.card-read-link {
  font-family: var(--font-body);
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--aurum-bright); transition: opacity var(--transition);
}
.card-read-link:hover { opacity: 0.75; }
.card-read-link::after { content: ' →'; }

/* No-image card — subtle top accent, no image area */
.news-card--noimg,
.news-card--lead.news-card--noimg,
.news-card--row.news-card--noimg {
  border-top: 3px solid rgba(90,90,130,0.5);
}

/* Breaking inline badge (text-only cards) */
.card-inline-breaking {
  display: inline-flex; align-items: center;
  background: var(--senatorial-bright); color: #fff;
  font-family: var(--font-body); font-size: 0.58rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.15rem 0.4rem; border-radius: 2px; flex-shrink: 0;
}

/* ── Mobile (<560px): compact rows — image right, text left ──── */
@media (max-width: 560px) {
  .news-card,
  .news-card--lead,
  .news-card--row {
    flex-direction: row !important;
    border-radius: 0 !important;
    transform: none !important;
    box-shadow: none !important;
    min-height: 82px;
    align-items: stretch;
    border-left: 1px solid rgba(90,90,130,0.55) !important;
    border-right: 1px solid rgba(90,90,130,0.55) !important;
    border-top: none !important;
    border-bottom: none !important;
  }
  /* First card: top border + top radius */
  .news-grid > article:first-child {
    border-radius: var(--radius-sm) var(--radius-sm) 0 0 !important;
    border-top: 1px solid rgba(90,90,130,0.55) !important;
  }
  /* Last card: bottom border + bottom radius */
  .news-grid > article:last-child {
    border-radius: 0 0 var(--radius-sm) var(--radius-sm) !important;
    border-bottom: 1px solid rgba(90,90,130,0.55) !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3) !important;
  }
  /* Row separators */
  .news-grid > article + article {
    border-top: 1px solid rgba(90,90,130,0.22) !important;
  }
  /* Image moves to right side as small thumb */
  .news-card .card-image-wrap,
  .news-card--lead .card-image-wrap,
  .news-card--row .card-image-wrap {
    aspect-ratio: unset !important;
    width: 95px !important;
    order: 2;
    flex-shrink: 0;
    align-self: stretch;
  }
  /* Text body on left */
  .card-body {
    order: 1; flex: 1;
    padding: 0.65rem 0.75rem !important;
    justify-content: center;
    gap: 0.3rem !important;
    min-width: 0;
  }
  .card-headline {
    font-size: 0.97rem !important;
    -webkit-line-clamp: 3 !important;
    font-weight: 600 !important;
  }
  /* Hide footer on mobile — whole card is clickable */
  .card-footer { display: none !important; }
}

@media (max-width: 400px) {
  .news-card .card-image-wrap,
  .news-card--lead .card-image-wrap,
  .news-card--row .card-image-wrap { width: 78px !important; }
  .card-headline { font-size: 0.9rem !important; }
  .card-body { padding: 0.55rem 0.6rem !important; }
}

/* ── Keep old .news-card for any legacy references ──────────── */
.news-card {
  cursor: pointer;
  background: var(--card-bg);
  border: 1px solid rgba(90, 90, 130, 0.55);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-card);
}
.news-card:hover {
  transform: translateY(-3px);
  border-color: var(--aurum);
  box-shadow: 0 8px 28px rgba(0,0,0,0.5), 0 0 0 1px rgba(196,151,58,0.2);
}
.card-image-wrap {
  position: relative;
  aspect-ratio: 16/7;
  overflow: hidden;
  background: #1a1a30;
  flex-shrink: 0;
}
/* Lead card overrides the generic aspect-ratio — fixed width, stretches to card height */
.news-card--lead .card-image-wrap {
  aspect-ratio: unset !important;
  width: 260px !important;
  align-self: stretch;
}
.card-image-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top; opacity: 0.9;
  transition: opacity var(--transition), transform 0.4s ease;
  filter: saturate(0.8);
}
.news-card:hover .card-image-wrap img {
  opacity: 1; transform: scale(1.03); filter: saturate(1);
}
/* Placeholder hidden — no XIII mark shown anywhere */
.card-img-placeholder { display: none !important; }
.xiii-mark { display: none !important; }
.card-section-badge {
  position: absolute; bottom: 0; left: 0;
  background: rgba(13,13,26,0.88); color: var(--aurum-bright);
  font-family: var(--font-body);
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.22rem 0.6rem; backdrop-filter: blur(4px);
}
.card-breaking-badge {
  position: absolute; top: 0.5rem; left: 0.5rem;
  background: var(--senatorial-bright); color: #fff;
  font-family: var(--font-body);
  font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.2rem 0.5rem;
}
.card-body {
  display: flex; flex-direction: column;
  gap: 0.55rem; padding: 1rem 1rem 0.75rem; flex: 1;
}
.card-source-row {
  display: flex; align-items: center;
  gap: 0.5rem; flex-wrap: wrap;
}
.card-source {
  font-family: var(--font-body);
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--aurum-bright);
}
.card-time {
  font-family: var(--font-body);
  font-size: 0.78rem; font-weight: 400;
  color: var(--parchment-soft);
}
.card-time::before { content: '·'; margin-right: 0.45rem; color: var(--slate-light); }
.card-headline {
  font-family: var(--font-display);
  font-size: 1.32rem; font-weight: 600;
  line-height: 1.3; color: var(--parchment);
  letter-spacing: -0.01em; flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-headline a { transition: color var(--transition); }
.card-headline a:hover { color: var(--aurum-bright); }
.card-footer {
  padding: 0.6rem 1rem;
  border-top: 1px solid rgba(90, 90, 130, 0.35);
  display: flex; align-items: center; justify-content: flex-end;
}
.card-read-link {
  font-family: var(--font-body);
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--aurum-bright); transition: opacity var(--transition);
}
.card-read-link:hover { opacity: 0.75; }
.card-read-link::after { content: ' →'; }
.news-card--text .card-image-wrap { display: none; }
.news-card--text { background: rgba(26,26,48,0.6); border-color: rgba(90,90,130,0.35); }
.news-card--text .card-body { padding-top: 0.85rem; }
.news-card--text::before {
  content: ''; display: block; height: 3px;
  background: linear-gradient(90deg, var(--slate-column) 0%, transparent 100%);
  flex-shrink: 0;
}

/* ── Skeleton ──────────────────────────────────────────────────── */
.skeleton { animation: skeleton-pulse 1.5s ease-in-out infinite; }
@keyframes skeleton-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.skeleton-card {
  background: var(--card-bg);
  border: 1px solid rgba(90,90,130,0.3);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.skeleton-img { aspect-ratio: 16/9; background: #2a2a48; }
.skeleton-body { padding: 1rem; display: flex; flex-direction: column; gap: 0.65rem; }
.skeleton-line { height: 0.85rem; background: #2a2a48; border-radius: 2px; }
.skeleton-line.w-30 { width: 30%; }
.skeleton-line.w-90 { width: 90%; }
.skeleton-line.w-75 { width: 75%; }

/* ═══════════════════════════════════════════════════════════════════
   FEED SOURCE STATUS
   ═══════════════════════════════════════════════════════════════════ */

/* Feed source pills section */
.feed-status-section {
  padding: 1.25rem 1.75rem 1.75rem;
  border-top: 1px solid rgba(90, 90, 130, 0.3);
  background: rgba(13,13,26,0.4);
}
.feed-status-title {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 600;
  color: var(--parchment-mid); margin-bottom: 0.85rem;
}
.feed-status-grid { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.feed-pill {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: rgba(58, 58, 92, 0.5);
  border: 1px solid rgba(90, 90, 130, 0.5);
  border-radius: 2px;
  padding: 0.3rem 0.7rem;
  font-family: var(--font-body);
  font-size: 0.75rem; font-weight: 400;
  color: var(--parchment-mid);
}
.feed-pill::before {
  content: ''; width: 6px; height: 6px;
  border-radius: 50%; background: var(--slate-light); flex-shrink: 0;
}
.feed-pill.ok::before      { background: #5CB85C; }
.feed-pill.fail::before    { background: var(--senatorial-bright); }
.feed-pill.loading::before { background: var(--aurum-bright); animation: pulse-dot 1.4s ease-in-out infinite; }

/* ═══════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════ */

.site-footer {
  background: #0A0A16;
  border-top: 2px solid rgba(90, 90, 130, 0.5);
}
.footer-upper {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding: 2.5rem 1.75rem;
  border-bottom: 1px solid rgba(90, 90, 130, 0.3);
}
@media (max-width: 768px) {
  .footer-upper { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.75rem 1.25rem; }
}
.footer-brand .logo-xiii { font-size: 1.5rem; padding: 0.15rem 0.4rem; margin-bottom: 0.65rem; }
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--parchment); margin-bottom: 0.3rem;
}
.footer-tagline {
  font-family: var(--font-body);
  font-size: 0.85rem; font-weight: 400;
  color: var(--aurum-bright); font-style: italic; margin-bottom: 0.75rem;
}
.footer-about-blurb {
  font-family: var(--font-body);
  font-size: 0.88rem; font-weight: 400;
  color: var(--parchment-soft); line-height: 1.65;
}
.footer-nav-col h4, .footer-regions-col h4 {
  font-family: var(--font-body);
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--aurum-bright); margin-bottom: 0.9rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(196,151,58,0.25);
}
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a {
  font-family: var(--font-body);
  font-size: 0.9rem; font-weight: 400;
  color: var(--parchment-soft); transition: color var(--transition);
}
.footer-links a:hover { color: var(--aurum-bright); }
.footer-lower {
  padding: 1.25rem 1.75rem;
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
@media (max-width: 640px) { .footer-lower { padding: 1.25rem; flex-direction: column; } }
.footer-disclaimer {
  font-family: var(--font-body);
  font-size: 0.8rem; font-weight: 400;
  color: var(--parchment-soft); line-height: 1.65; max-width: 640px;
}
.footer-copy {
  font-family: var(--font-body);
  font-size: 0.8rem; color: var(--parchment-soft); white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════════
   STATIC PAGES
   ═══════════════════════════════════════════════════════════════════ */

.static-page-wrap {
  max-width: 820px; margin: 0 auto; padding: 3rem 1.75rem 4rem;
}
.static-page-wrap h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700;
  color: var(--parchment); letter-spacing: -0.02em; line-height: 1.1;
}
.static-page-wrap .page-rule { width: 3rem; height: 2px; background: var(--aurum); margin: 0.75rem 0 2rem; }
.static-page-wrap h2 {
  font-family: var(--font-display);
  font-size: 1.55rem; font-weight: 600;
  color: var(--parchment); margin: 2rem 0 0.75rem;
}
.static-page-wrap p {
  font-family: var(--font-body);
  font-size: 1rem; font-weight: 400;
  color: var(--parchment-mid); line-height: 1.78; margin-bottom: 1rem;
}
.static-page-wrap ul { list-style: none; margin-bottom: 1rem; }
.static-page-wrap ul li {
  font-family: var(--font-body);
  font-size: 0.95rem; color: var(--parchment-mid);
  line-height: 1.7; padding-left: 1.25rem; margin-bottom: 0.45rem; position: relative;
}
.static-page-wrap ul li::before { content: '–'; position: absolute; left: 0; color: var(--aurum-bright); }
.static-page-wrap a { color: var(--aurum-bright); text-decoration: underline; text-underline-offset: 2px; }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 1.5rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
  font-family: var(--font-body);
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--parchment-mid);
}
.form-group input, .form-group textarea, .form-group select {
  background: rgba(58, 58, 92, 0.35);
  border: 1px solid rgba(90, 90, 130, 0.7);
  border-radius: var(--radius-sm);
  color: var(--parchment);
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 400;
  padding: 0.7rem 0.9rem; outline: none;
  transition: border-color var(--transition); width: 100%;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--aurum); background: rgba(58, 58, 92, 0.5);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.btn-submit {
  align-self: flex-start;
  background: var(--aurum); color: var(--roman-night); border: none;
  padding: 0.75rem 2rem; font-family: var(--font-body);
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  border-radius: var(--radius-sm); cursor: pointer;
  transition: background var(--transition);
}
.btn-submit:hover { background: var(--aurum-light); }
.btn-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}
.contact-status {
  display: none;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(90, 90, 130, 0.7);
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.55;
}
.contact-status.visible { display: block; }
.contact-status.success {
  background: rgba(34, 92, 58, 0.28);
  border-color: rgba(94, 181, 120, 0.45);
  color: #d7f0de;
}
.contact-status.error {
  background: rgba(122, 28, 28, 0.25);
  border-color: rgba(190, 92, 92, 0.45);
  color: #f1d3d3;
}
.contact-note {
  margin-top: -0.5rem;
  color: var(--parchment-soft);
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════════
   HUB PAGE
   ═══════════════════════════════════════════════════════════════════ */

.hub-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 320px;
  overflow: hidden;
  border-bottom: 1px solid rgba(90, 90, 130, 0.4);
  background: linear-gradient(160deg, var(--slate-column) 0%, var(--roman-night) 55%, rgba(122,28,28,0.25) 100%);
}
.hub-hero-content {
  position: relative; z-index: 2;
  padding: 2.5rem 2rem;
  max-width: none;
  display: flex; flex-direction: column; justify-content: center;
  border-right: 1px solid rgba(196,151,58,0.18);
}
.hub-eyebrow {
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--aurum-bright); margin-bottom: 0.9rem;
}
.hub-hero-headline {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 700;
  line-height: 1.08; color: #fff; letter-spacing: -0.03em; margin-bottom: 1rem;
  white-space: nowrap;
}
.hub-hero-sub {
  font-family: var(--font-body); font-size: 1.05rem; font-weight: 400;
  color: var(--parchment-mid); max-width: none; line-height: 1.65;
  font-style: italic; margin-bottom: 1.5rem;
}
.hub-region-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem; padding: 2rem 1.75rem;
}
@media (max-width: 860px) { .hub-region-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .hub-region-grid { grid-template-columns: 1fr; } }

.region-card {
  background: var(--card-bg);
  border: 1px solid rgba(90, 90, 130, 0.55);
  border-radius: var(--radius-sm); padding: 1.25rem;
  transition: border-color var(--transition), transform var(--transition);
}
.region-card:hover { border-color: var(--aurum); transform: translateY(-2px); }
.region-card-header { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.75rem; }
.region-card-emoji { font-size: 1.2rem; }
.region-card-name {
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--parchment);
}
.region-card-headlines { display: flex; flex-direction: column; gap: 0.5rem; }
.region-card-headline {
  font-family: var(--font-body); font-size: 0.88rem; font-weight: 400;
  color: var(--parchment-mid); line-height: 1.45;
  padding-left: 0.7rem; border-left: 2px solid rgba(196,151,58,0.35);
  transition: border-color var(--transition), color var(--transition);
}
.region-card-headline:hover { color: var(--parchment); border-left-color: var(--aurum-bright); }
.region-card-headline a { display: block; }
.region-card-link {
  display: block; margin-top: 0.9rem;
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--aurum-bright);
  transition: opacity var(--transition);
}
.region-card-link:hover { opacity: 0.75; }
.region-card-link::after { content: ' →'; }

/* ── Back to top — fixed floating button ──────────────────────── */
.back-to-top-float {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  right: auto;
  z-index: 900;
  background: var(--aurum);
  border: none;
  color: var(--roman-night);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, background var(--transition), transform var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,0.6), 0 0 0 2px rgba(196,151,58,0.4);
}
.back-to-top-float.visible {
  opacity: 1;
  pointer-events: auto;
}
.back-to-top-float:hover {
  background: var(--aurum-bright);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.7), 0 0 0 2px rgba(224,176,80,0.5);
}

/* RTL pages: bottom-right */
.page-rtl .back-to-top-float {
  left: auto;
  right: 1.5rem;
  font-family: var(--font-arabic-body);
  letter-spacing: 0;
  text-transform: none;
}

@media (max-width: 540px) {
  .back-to-top-float { bottom: 1rem; left: 1rem; padding: 0.5rem 1rem; font-size: 0.72rem; }
  .page-rtl .back-to-top-float { left: auto; right: 1rem; }
}

/* Old inline back-to-top no longer used */
.back-to-top-wrap { display: none; }

/* ── Content padding on small screens ─────────────────────────── */
@media (max-width: 540px) {
  html { font-size: 15px; }
  .page-masthead  { padding: 1.25rem 0.9rem 1rem; }
  
  .utility-bar    { padding: 0.5rem 0.9rem; gap: 0.5rem; }
  .utility-text   { font-size: 0.74rem; }
  .btn-refresh    { font-size: 0.68rem; padding: 0.28rem 0.6rem; }
  .section-filters { padding: 0 0.9rem; }
  .filter-tab     { font-size: 0.74rem; padding: 0.6rem 0.8rem; }
  .news-sections  { padding: 0 0.9rem 2rem; }
  .card-headline  { font-size: 1.05rem; }
  .footer-upper   { padding: 1.25rem 0.9rem; gap: 1.5rem; }
  .footer-lower   { padding: 0.9rem; }
  .static-page-wrap { padding: 1.75rem 0.9rem 3rem; }
}

@media (min-width: 861px) {
  

  .utility-bar {
    flex-wrap: nowrap;
  }
}

/* ── Animations ────────────────────────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.news-section { animation: fade-up 0.4s ease both; }
.news-section:nth-child(1) { animation-delay: 0.04s; }
.news-section:nth-child(2) { animation-delay: 0.09s; }
.news-section:nth-child(3) { animation-delay: 0.14s; }
.news-section:nth-child(4) { animation-delay: 0.19s; }
.news-section:nth-child(5) { animation-delay: 0.24s; }

/* ── Utility ───────────────────────────────────────────────────── */
.hidden { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ═══════════════════════════════════════════════════════════════════
   ARABIC / RTL PAGES
   Applied when <body class="page-rtl"> is set
   ═══════════════════════════════════════════════════════════════════ */


:root {
  --font-arabic-display: 'Noto Naskh Arabic', 'Cairo', Georgia, serif;
  --font-arabic-body:    'Cairo', 'Noto Naskh Arabic', sans-serif;
}

/* Force LTR on the header brand elements regardless of page direction */
.site-header .header-logo-bar,
.site-header .header-nav,
.site-header .nav-list,
.site-header .logo-left,
.site-header .logo-xiii,
.site-header .logo-name,
.site-header .logo-sub {
  direction: ltr !important;
  unicode-bidi: isolate !important;
  text-align: left !important;
}

/* RTL page body */
.page-rtl {
  direction: rtl;
  text-align: right;
}

/* Arabic ticker — scrolls right to left, Arabic font */
.page-rtl .header-ticker {
  direction: ltr;
}
.page-rtl .ticker-inner {
  animation: ticker-scroll-rtl 120s linear infinite !important;
  font-family: var(--font-arabic-body);
  font-size: 0.92rem;
  direction: rtl;
}

/* Arabic masthead */
.page-rtl 
.page-rtl 
.page-rtl 
.page-rtl 

/* Arabic section headers */
.page-rtl .section-header { text-align: right; }
.page-rtl .section-header::before {
  left: auto;
  right: 0;
}
.page-rtl .section-title {
  font-family: var(--font-arabic-display);
  font-size: 1.55rem;
  letter-spacing: 0;
  line-height: 1.4;
  font-weight: 700;
}
.page-rtl .section-count { margin-left: 0; margin-right: auto; }

/* Arabic filter tabs */
.page-rtl .section-filters { direction: rtl; }
.page-rtl .filter-tab {
  font-family: var(--font-arabic-body);
  font-size: 0.9rem;
  letter-spacing: 0;
  border-bottom: 3px solid transparent;
}

/* Arabic cards */
.page-rtl .card-body { text-align: right; }
.page-rtl .card-source-row { flex-direction: row-reverse; justify-content: flex-end; }
.page-rtl .card-time::before { content: none; }
.page-rtl .card-time::after  { content: '·'; margin-left: 0.45rem; color: var(--slate-light); }
.page-rtl .card-headline {
  font-family: var(--font-arabic-display);
  font-size: 1.15rem;
  letter-spacing: 0;
  line-height: 1.55;
}
.page-rtl .card-source {
  font-family: var(--font-arabic-body);
  letter-spacing: 0;
  unicode-bidi: isolate; /* keeps English source names LTR within RTL flow */
  direction: ltr;
}
.page-rtl .card-footer { justify-content: flex-start; }
.page-rtl .card-read-link {
  font-family: var(--font-arabic-body);
  letter-spacing: 0;
}
.page-rtl .card-read-link::after { content: ' ←'; }

/* Arabic section badge */
.page-rtl .card-section-badge { left: auto; right: 0; }
.page-rtl .card-breaking-badge { left: auto; right: 0.5rem; }

/* Arabic hero */
.page-rtl .hero-content { text-align: right; }
.page-rtl .hero-headline {
  font-family: var(--font-arabic-display);
  font-size: clamp(1.2rem, 2.8vw, 2rem);
  letter-spacing: 0;
  line-height: 1.5;
}
.page-rtl .hero-meta { flex-direction: row-reverse; justify-content: flex-end; }

/* Arabic back-to-top — visually left in RTL means flex-end */
.page-rtl .back-to-top-wrap { justify-content: flex-end; }
.page-rtl .back-to-top-btn {
  font-family: var(--font-arabic-body);
  letter-spacing: 0;
  text-transform: none;   /* Arabic doesn't uppercase */
}

/* Arabic footer */
.page-rtl .site-footer { direction: rtl; text-align: right; }
.page-rtl .footer-about-blurb { font-family: var(--font-arabic-body); line-height: 1.8; }
.page-rtl .footer-links a { font-family: var(--font-arabic-body); }
.page-rtl .footer-disclaimer { font-family: var(--font-arabic-body); line-height: 1.8; }

/* Arabic utility bar */
.page-rtl .utility-bar { direction: rtl; }
.page-rtl .utility-text { font-family: var(--font-arabic-body); }
.page-rtl .utility-inline-status { font-family: var(--font-arabic-body); }
.page-rtl .btn-refresh {
  margin-left: 0;
  margin-right: auto;
  font-family: var(--font-arabic-body);
  letter-spacing: 0;
}

/* Arabic error banner */
.page-rtl .error-banner {
  border-left: none;
  border-right: 4px solid var(--senatorial-bright);
  font-family: var(--font-arabic-body);
}

/* Feed status pills — keep LTR for source names */
.page-rtl .feed-pill {
  direction: ltr;
  unicode-bidi: isolate;
}
.page-rtl .feed-status-title {
  font-family: var(--font-arabic-display);
  font-size: 1.2rem;
}

/* Mobile RTL */
@media (max-width: 540px) {
  .page-rtl 
  .page-rtl .card-headline { font-size: 1.05rem; }
  .page-rtl
}

/* ── Language switch button (Arabic header) ─────────────────────── */
.lang-switch {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--aurum);
  border: 1px solid var(--aurum);
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
  text-decoration: none;
  text-transform: uppercase;
  margin-left: auto;
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition);
}
.lang-switch:hover {
  background: var(--aurum);
  color: var(--roman-night);
}


/* ═══════════════════════════════════════════════════════════════
   XIII NEWS — MOBILE IMPROVEMENTS
   ═══════════════════════════════════════════════════════════════ */

/* ── Base font bump on mobile ─────────────────────────────────── */
@media (max-width: 860px) {
  html { font-size: 18px; }  /* up from 17px */

  /* Card headline: bigger on mobile */
  .card-headline { font-size: 1.15rem; }
  .card-source   { font-size: 0.78rem; }
  .card-time     { font-size: 0.78rem; }
  .card-read-link { font-size: 0.82rem; }

  /* Section headings */

  /* Page heading on news pages */
  .page-heading { font-size: clamp(1.6rem, 5vw, 2.2rem); }

  /* Breaking hero title */
  .breaking-hero-title { font-size: clamp(1.3rem, 4vw, 2rem); }

  /* Static page text */
  .static-page-wrap p { font-size: 1rem; line-height: 1.75; }
  .static-page-wrap h2 { font-size: 1.5rem; }
  .static-page-wrap h3 { font-size: 1.25rem; }

  /* Cards: better padding on mobile */
  .card-body { padding: 0.85rem 0.85rem 0.65rem; gap: 0.45rem; }
  .card-footer { padding: 0.55rem 0.85rem; }

  /* Footer: single column, more readable */
  .footer-upper {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }
  .footer-brand { text-align: center; }
  .footer-brand .logo-xiii { margin-bottom: 0.5rem; }
  .footer-tagline { font-size: 0.95rem; }
  .footer-links { font-size: 0.9rem; }
  .footer-links li { padding: 0.3rem 0; }

  /* Ticker text bigger */
  .ticker-item { font-size: 0.82rem; }

  /* Utility bar: stack on mobile */
  .utility-bar {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.78rem;
  }
}

@media (max-width: 540px) {
  html { font-size: 18px; }

  /* Single-column cards: make images taller for visual impact */
  .news-grid .card-image-wrap { aspect-ratio: 16/7; }

  /* Card headline: prominent on single column */
  .card-headline { font-size: 1.25rem; -webkit-line-clamp: 3; }

  /* More breathing room */
  .card-body { padding: 1rem; }
  .card-footer { padding: 0.65rem 1rem; }

  /* Section tab pills: wrap and grow */
  .section-tabs {
    flex-wrap: wrap;
    gap: 0.35rem;
  }
  .tab-btn {
    font-size: 0.78rem;
    padding: 0.4rem 0.75rem;
    flex: 0 0 auto;
  }

  /* Video modal: full screen on small phones */
  #yt-modal-box {
    border-radius: 0;
    max-width: 100%;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  #yt-modal-overlay { padding: 0; align-items: stretch; }
  #yt-modal-embed { flex: 1; padding-bottom: 0; }
  #yt-modal-embed iframe { position: static; width: 100%; height: 100%; min-height: 220px; }

  /* About/static pages */
  .static-page-wrap { padding: 1.5rem 1rem; }
  .static-page-wrap p { font-size: 1rem; }

  /* Hub region grid already 1-col at 480px, keep */
}

/* ── Touch target: make nav items tall enough to tap ──────────── */
@media (max-width: 860px) {
  .nav-item a {
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
  }
}

/* ── Logo: hide name span if it still exists, show tagline ───────
   (logo-name span has been removed from HTML but guard in CSS too) */
.logo-name { display: none; }

@media (max-width: 860px) {
  .logo-sub { display: block !important; font-size: 0.6rem !important; }
}


/* ── Split masthead: title left, video right ──────────────────── */
.page-masthead {
  display: block;
  padding: 1.1rem 1.75rem 1rem;
  background: linear-gradient(160deg, #2a2a48 0%, #1a1a30 60%, rgba(58,58,92,0.6) 100%);
  border-bottom: 1px solid rgba(196,151,58,0.25);
}
.masthead-title-group {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}
.masthead-title-group h1 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--parchment);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.masthead-intro {
  font-family: var(--font-body);
  font-size: 0.93rem;
  font-weight: 400;
  color: var(--parchment);
  line-height: 1.5;
  font-style: normal;
  opacity: 0.88;
}
.masthead-rule { display: none; }
/* Hide coverage panel entirely — no longer needed */
.masthead-coverage-panel { display: none !important; }

/* Video panel — same dark-slate background as left side */
.masthead-video-panel {
  display: flex;
  flex-direction: column;
  background: #1a1a30;
  border-left: 1px solid rgba(196,151,58,0.18);
  overflow: hidden;
}
.masthead-video-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--aurum-bright);
  border-bottom: 1px solid rgba(196,151,58,0.18);
  background: rgba(13,13,26,0.5);
  flex-shrink: 0;
}
.masthead-video-label .live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #e05050; animation: pulse-dot 1.8s infinite; flex-shrink: 0;
}
.masthead-video-wrap {
  flex: 1; position: relative; min-height: 180px;
  background: #1a1a30;
}
.masthead-video-wrap iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.masthead-video-loading {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.6rem; background: #1a1a30;
  color: rgba(196,151,58,0.45);
  font-family: var(--font-body); font-size: 0.72rem;
  letter-spacing: 0.08em; z-index: 2;
}
.masthead-video-loading .spinner {
  width: 22px; height: 22px;
  border: 2px solid rgba(196,151,58,0.15);
  border-top-color: var(--aurum-bright);
  border-radius: 50%; animation: spin 0.9s linear infinite;
}
.masthead-video-title {
  padding: 0.45rem 0.9rem;
  font-family: var(--font-body); font-size: 0.7rem;
  color: var(--parchment-mid); line-height: 1.35;
  background: rgba(13,13,26,0.5);
  border-top: 1px solid rgba(90,90,130,0.2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  flex-shrink: 0;
}
.masthead-video-source { font-weight: 700; color: var(--aurum-bright); }

@media (max-width: 860px) {
  .page-masthead { grid-template-columns: 1fr; min-height: auto; }
  .masthead-title-group { padding: 1.5rem 1.25rem 1.25rem; border-bottom: 1px solid rgba(196,151,58,0.18); }
  .masthead-video-panel { border-left: none; }
  .masthead-video-wrap { min-height: 190px; }
}
@media (max-width: 480px) {
  .masthead-video-wrap { min-height: 165px; }
  .masthead-title-group { padding: 1.25rem 1rem; }
  .masthead-title-group h1 { font-size: 1.75rem; }
}

/* ── Whole-card clickable on all pages ───────────────────────── */
#news-sections .news-card,
#news-sections .news-card--lead,
#news-sections .news-card--row { position: relative; cursor: pointer; }
#news-sections .news-card::before,
#news-sections .news-card--lead::before,
#news-sections .news-card--row::before {
  content: ''; position: absolute; inset: 0; z-index: 3; cursor: pointer;
}
#news-sections .news-card .card-breaking-badge,
#news-sections .news-card .card-section-badge,
#news-sections .news-card .card-play-badge,
#news-sections .news-card .card-footer,
#news-sections .news-card .card-read-link,
#news-sections .news-card--lead .card-breaking-badge,
#news-sections .news-card--lead .card-section-badge,
#news-sections .news-card--lead .card-footer,
#news-sections .news-card--lead .card-read-link,
#news-sections .news-card--row .card-inline-breaking,
#news-sections .news-card--row .card-thumb-play { position: relative; z-index: 4; }


/* ═══════════════════════════════════════════════════════════════
   MOBILE BOTTOM NAV BAR — app-style, always visible
   ═══════════════════════════════════════════════════════════════ */
.mobile-bottom-nav {
  display: none;
}


  .mobile-bottom-nav a .nav-icon,
  .mobile-bottom-nav button .nav-icon {
    font-size: 1.3rem;
    line-height: 1;
  }
  .mobile-bottom-nav a:hover,
  .mobile-bottom-nav button:hover,
  .mobile-bottom-nav a.active,
  .mobile-bottom-nav button.active {
    color: var(--aurum-bright);
    background: rgba(196,151,58,0.08);
  }
  .mobile-bottom-nav a.active .nav-icon { transform: scale(1.1); }

  /* "More" drawer overlay */
  .mobile-more-drawer {
    position: fixed;
    bottom: 64px; left: 0; right: 0;
    background: #0D0D1A;
    border-top: 1px solid rgba(196,151,58,0.3);
    border-bottom: none;
    z-index: 8999;
    padding: 1rem 1rem 0.75rem;
    display: none;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.7);
    transform: translateY(100%);
    transition: transform 0.22s ease;
  }
  .mobile-more-drawer.open {
    display: flex;
    transform: translateY(0);
  }
  .mobile-more-drawer a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.5rem;
    text-decoration: none;
    color: var(--parchment-mid);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(90,90,130,0.2);
    transition: color 0.15s, background 0.15s;
    border-radius: 4px;
  }
  .mobile-more-drawer a:last-child { border-bottom: none; }
  .mobile-more-drawer a:hover { color: var(--parchment); background: rgba(196,151,58,0.08); }
  .mobile-more-drawer a .drawer-emoji { font-size: 1.15rem; width: 1.5rem; text-align: center; }
  .mobile-more-drawer-title {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--aurum-bright);
    padding: 0 0.5rem 0.6rem;
    border-bottom: 1px solid rgba(196,151,58,0.2);
    margin-bottom: 0.25rem;
  }
  /* Backdrop */
  .mobile-more-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    bottom: 64px;
    background: rgba(5,5,15,0.7);
    z-index: 8998;
  }
  .mobile-more-backdrop.open { display: block; }

  /* Breaking badge on tab */
  .mobile-bottom-nav .tab-breaking { color: var(--aurum-bright); }
  .mobile-bottom-nav .tab-video    { color: #7ec8e3; }

  /* Section title: always single line, dynamic */
  .section-title {
    font-size: clamp(1rem, 4vw, 1.4rem) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  /* Page masthead h1 */
  .masthead-title-group h1 { font-size: clamp(1.6rem, 5vw, 2.4rem) !important; white-space: nowrap; }
  /* Card headline — clamp to 3 lines */
  .card-headline { -webkit-line-clamp: 3; font-size: clamp(1.05rem, 3.5vw, 1.25rem); }
}

@media (max-width: 480px) {
  .mobile-bottom-nav a,
  .mobile-bottom-nav button { font-size: 0.52rem; }
  .mobile-bottom-nav a .nav-icon,
  .mobile-bottom-nav button .nav-icon { font-size: 1.2rem; }
  .masthead-title-group h1 { font-size: clamp(1.4rem, 6vw, 2rem) !important; }
}


/* ═══════════════════════════════════════════════════════════════
   MOBILE BOTTOM TAB BAR
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 860px) {

  /* Push page content above the 60px tab bar */
  body { padding-bottom: 60px; }

  /* Hide the hamburger — bottom bar replaces it */
  .nav-toggle { display: none !important; }
  .header-nav { display: none !important; }

  /* ── Tab bar ─────────────────────────────────────────────── */
  .mob-tab-bar {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 60px;
    background: #0D0D1A;
    border-top: 1px solid rgba(200,40,30,0.28);
    z-index: 9000;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.65);
  }

  .mob-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: #6a6a90;
    font-family: var(--font-body);
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 2px;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.15s, background 0.15s;
    position: relative;
  }
  .mob-tab .mob-icon {
    font-size: 1.35rem;
    line-height: 1;
    transition: transform 0.15s;
  }
  .mob-tab:hover,
  .mob-tab.active {
    color: #F7F2E8;
    background: rgba(255,255,255,0.04);
  }
  .mob-tab.active .mob-icon { transform: scale(1.12); }
  .mob-tab.active::after {
    content: '';
    position: absolute;
    top: 0; left: 15%; right: 15%;
    height: 2px;
    border-radius: 0 0 2px 2px;
    background: var(--aurum-bright);
  }
  /* Breaking = maple red, Video = sky blue */
  .mob-tab--breaking       { color: #E84035; }
  .mob-tab--breaking:hover,
  .mob-tab--breaking.active { color: #FF5549; }
  .mob-tab--breaking.active::after { background: #E84035; }
  .mob-tab--video          { color: #7ec8e3; }
  .mob-tab--video:hover,
  .mob-tab--video.active   { color: #a8dff0; }
  .mob-tab--video.active::after { background: #7ec8e3; }

  /* ── Regions drawer ──────────────────────────────────────── */
  .mob-drawer-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    bottom: 60px;
    background: rgba(5,5,15,0.72);
    z-index: 8998;
    backdrop-filter: blur(2px);
  }
  .mob-drawer-backdrop.open { display: block; }

  .mob-drawer {
    position: fixed;
    bottom: 60px; left: 0; right: 0;
    background: #120808;
    border-top: 1px solid rgba(200,40,30,0.28);
    z-index: 8999;
    transform: translateY(100%);
    transition: transform 0.24s cubic-bezier(0.25,0.46,0.45,0.94);
    border-radius: 14px 14px 0 0;
    overflow: hidden;
    max-height: 70vh;
    overflow-y: auto;
  }
  .mob-drawer.open { transform: translateY(0); }

  .mob-drawer-handle {
    display: flex;
    justify-content: center;
    padding: 10px 0 6px;
  }
  .mob-drawer-handle::before {
    content: '';
    width: 36px; height: 4px;
    background: rgba(200,40,30,0.35);
    border-radius: 2px;
  }
  .mob-drawer-heading {
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--aurum-bright);
    padding: 0 1.25rem 0.6rem;
  }

  /* 2-column region grid */
  .mob-drawer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: rgba(90,90,130,0.18);
    margin: 0 0 0.5rem;
  }
  .mob-drawer-grid a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1.1rem;
    text-decoration: none;
    color: var(--parchment-mid);
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 500;
    background: #0D0D1A;
    transition: color 0.15s, background 0.15s;
    -webkit-tap-highlight-color: transparent;
  }
  .mob-drawer-grid a:hover,
  .mob-drawer-grid a.active {
    color: var(--parchment);
    background: rgba(200,40,30,0.1);
  }
  .mob-drawer-grid a .drw-icon { font-size: 1.2rem; flex-shrink: 0; }

  .mob-drawer-divider {
    height: 1px;
    background: rgba(90,90,130,0.25);
    margin: 0 1.25rem 0.5rem;
  }
  .mob-drawer-links {
    padding: 0 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .mob-drawer-links a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.5rem;
    text-decoration: none;
    color: var(--parchment-soft);
    font-family: var(--font-body);
    font-size: 0.82rem;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
    -webkit-tap-highlight-color: transparent;
  }
  .mob-drawer-links a:hover { color: var(--parchment); background: rgba(255,255,255,0.05); }
  .mob-drawer-links a .drw-icon { font-size: 1rem; flex-shrink: 0; width: 1.4rem; text-align: center; }
}

/* Desktop: hide tab bar and drawer entirely */
@media (min-width: 861px) {
  .mob-tab-bar,
  .mob-drawer,
  .mob-drawer-backdrop { display: none !important; }
}

@media (max-width: 860px) {
   /* too cramped on mobile */
  .hub-hero { grid-template-columns: 1fr !important; min-height: auto; }
  .hub-hero-content { border-right: none; border-bottom: 1px solid rgba(196,151,58,0.18); padding: 1.5rem 1.25rem; }
  .hub-hero .masthead-video-panel { min-height: 210px; }
}

/* ── Static region card (index hub — no feed fetching) ───────── */
.region-card--static {
  display: block;
  cursor: pointer;
}
.region-card--static:hover { border-color: var(--aurum); transform: translateY(-2px); }
.region-card-tagline {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--parchment-soft);
  line-height: 1.5;
  margin-bottom: 1rem;
  flex: 1;
}
/* ── Text-only card — compact, no wasted image space ──────────── */
.news-card--text .card-image-wrap {
  display: none;
}
.news-card--text {
  background: rgba(26, 26, 48, 0.6);
  border-color: rgba(90, 90, 130, 0.35);
}
.news-card--text .card-body {
  padding-top: 0.85rem;
}
.news-card--text::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--slate-column) 0%, transparent 100%);
  flex-shrink: 0;
}

/* ── Card share button ─────────────────────────────────────────── */
.card-share-btn {
  background: none;
  border: none;
  color: var(--parchment-soft);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 0.25rem;
  line-height: 1;
  opacity: 0.5;
  transition: opacity 0.15s;
  margin-left: auto;
  flex-shrink: 0;
}
.card-share-btn:hover { opacity: 1; color: var(--aurum-bright); }
.card-footer {
  display: flex;
  align-items: center;
}

/* ── Search bar ────────────────────────────────────────────────── */
.search-bar-wrap {
  padding: 1rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}
.search-bar-wrap::before {
  content: "⌕";
  position: absolute;
  left: 2.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--aurum);
  font-size: 1rem;
  pointer-events: none;
  z-index: 1;
  line-height: 1;
}
.search-bar-wrap input {
  flex: 1;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(196,151,58,0.45);
  border-radius: var(--radius-sm);
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: 0.92rem;
  padding: 0.65rem 1.1rem 0.65rem 2.2rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.3);
}
.search-bar-wrap input::placeholder { color: var(--parchment-mid); opacity: 0.7; }
.search-bar-wrap input:focus {
  border-color: var(--aurum-bright);
  background: rgba(255,255,255,0.11);
  box-shadow: 0 0 0 2px rgba(196,151,58,0.18), inset 0 1px 3px rgba(0,0,0,0.2);
}
.search-count {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--aurum-bright);
  white-space: nowrap;
  display: none;
}

/* ── Masthead coverage panel (replaces video panel) ───────────── */
.masthead-coverage-panel {
  display: flex;
  flex-direction: column;
}
.masthead-coverage-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.1rem;
  gap: 1rem;
}
.masthead-coverage-intro {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--parchment-soft);
  font-style: italic;
  line-height: 1.4;
}
.masthead-coverage-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.cov-badge {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--aurum-bright);
  background: rgba(200,40,30,0.1);
  border: 1px solid rgba(196,151,58,0.25);
  border-radius: 2px;
  padding: 0.25rem 0.6rem;
  white-space: nowrap;
}
.masthead-coverage-cta {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--aurum-bright);
  text-decoration: none;
  margin-top: auto;
  transition: color 0.15s;
}
.masthead-coverage-cta:hover { color: #fff; }

/* ── RTL page: lock main content direction for consistent render ── */
.page-rtl .site-main > *:not(.page-masthead) {
  direction: rtl;
}
.page-rtl .page-masthead {
  direction: ltr;
}
.page-rtl .masthead-title-group {
  direction: rtl;
  text-align: right;
}

/* ── Source name badge on card image ──────────────────────────── */
.card-source-badge {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  background: rgba(13,13,26,0.82);
  color: var(--aurum-bright);
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  backdrop-filter: blur(4px);
  max-width: 45%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

/* ── Mobile nav: always LTR regardless of page direction ────────── */
.mob-tab-bar { direction: ltr; }
.page-rtl .mob-tab-bar { direction: ltr; }

/* ════════════════════════════════════════════════════════════════
   MOBILE COMPACT LAYOUT — max-width: 768px
   Goal: get news cards on screen as fast as possible
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Tagline: larger on mobile ───────────────────────────── */
  .logo-sub {
    font-size: 0.72rem !important;
    letter-spacing: 0.12em !important;
  }

  /* ── Ticker: reduce height to save space ─────────────────── */
  .header-ticker { height: 30px !important; }
  .ticker-label  { font-size: 0.6rem !important; padding: 0 0.5rem !important; }
  .ticker-item   { font-size: 0.75rem !important; }

  /* ── Masthead: title only, no intro text, minimal height ──── */
  .page-masthead {
    padding: 0.5rem 1rem 0.45rem !important;
    min-height: 0 !important;
    border-bottom: 1px solid rgba(196,151,58,0.2) !important;
  }
  .masthead-title-group {
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0 !important;
  }
  .masthead-title-group h1 {
    font-size: 1.15rem !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
  }
  .masthead-intro  { display: none !important; }
  .masthead-rule   { display: none !important; }

  /* ── Utility bar: hide completely ────────────────────────── */
  .utility-bar     { display: none !important; }

  /* ── Error banner: keep but compact ─────────────────────── */
  .error-banner    { padding: 0.4rem 1rem !important; font-size: 0.78rem !important; }

  /* ── Breaking hero: compact ──────────────────────────────── */
  .breaking-hero   { min-height: 150px !important; max-height: 210px !important; }
  .hero-headline a { font-size: clamp(0.95rem, 4vw, 1.25rem) !important; }
  .hero-content    { padding: 1rem !important; }

  /* ── Search bar: tighter, no top gap ────────────────────── */
  .search-bar-wrap {
    padding: 0.55rem 1rem !important;
    margin-top: 0 !important;
  }

  /* ── Section filters: hidden ─────────────────────────────── */
  .section-filters { display: none !important; }

  /* ── News sections: tight padding ───────────────────────── */
  .news-sections   { padding: 0.5rem 0.75rem 5rem !important; }

  /* ── Cards: single column ────────────────────────────────── */
  .news-grid       { grid-template-columns: 1fr !important; gap: 0.65rem !important; }
  .card-body       { padding: 0.7rem 0.85rem 0.6rem !important; gap: 0.35rem !important; }
  .card-headline   { font-size: 1.05rem !important; -webkit-line-clamp: 3 !important; }
  .card-footer     { padding: 0.5rem 0.85rem !important; }

  /* ── Section header: tight ───────────────────────────────── */
  .news-section    { margin-bottom: 1rem !important; }
  .section-header  { padding: 0.5rem 0 !important; margin-bottom: 0.5rem !important; }
  .section-title   { font-size: 0.75rem !important; }

  /* ── Feed source pills: hide ─────────────────────────────── */
  .feed-status-section { display: none !important; }
}

/* ── Hub hero single column (no video panel) ──────────────────── */
.hub-hero--single {
  display: block !important;
  grid-template-columns: unset !important;
  min-height: auto !important;
  overflow: visible !important;
}
.hub-hero--single .hub-hero-content {
  max-width: none;
  width: 100%;
  padding: 1.75rem 2.5rem 1.5rem;
  border-right: none !important;
}

/* ── Province abbreviation nav items ─────────────────────────── */
.nav-item a[href$=".html"]:not([href="breaking.html"]):not([href="video.html"]):not([href="national.html"]):not([href="index.html"]) {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0 0.55rem;
}

/* ── Provinces / Territories nav separator ───────────────────── */
.nav-item.nav-sep {
  width: 1px;
  background: rgba(255,255,255,0.12);
  margin: 0.35rem 0.1rem;
  padding: 0;
  flex-shrink: 0;
  pointer-events: none;
}
/* Home icon — no text label needed */
.nav-item--hub a { font-size: 1rem; padding: 0 0.6rem; }

/* Utility class for JS-hidden cards */
.is-hidden { display: none !important; }
