/* ============================================================
   Global Politics — styles.css
   Reorganized + commented for quick navigation.

   Affects:
   - pages/index.html (feed + sidebar + rail + TOC + tags + pager)
   - pages/article.html (article layout, prose, aside, CTA, actions)
   - pages/about.html (hero + inline images + editorial layout)
   - components/header.html (topbar, language dropdown, auth modal)
   - components/region-menu.html (region chips + search)

   QUICK FIND GUIDE
   =================
   1) THEME TOKENS
   2) BUTTON LOADING STATE
   3) PERFORMANCE OPTIMIZATIONS
   4) BASE / RESET
   5) GLOBAL MEDIA SAFETY
   6) LINKS + TEXT HELPERS
   7) TOP NAV / HEADER
   8) MOBILE MENU
   9) SECTION LANDING PAGES
   10) INDEX PAGE GRID LAYOUT
   11) POSITIONING BAR + SUBSCRIBE
   12) INDEX VOTE STRIP
   13) FORMS
   14) BUTTONS / CHIPS / PILLS
   15) FILTER BAR
   16) PAGINATION
   17) CARD GRID + ARTICLE CARDS
   18) GLOBAL VOTE BUTTONS  <-- easiest future edit point
   19) RIGHT RAIL
   20) LANGUAGE CHIPS + REGION MENU
   21) SEARCH HELPERS
   22) ARTICLE PAGE LAYOUT
   23) ABOUT PAGE
   24) AUTH MODAL
   25) FOOTER
   26) RAIL HEADER
   27) HOMEPAGE VOTE HERO
   28) SECTION FEED / ARTICLE CARDS
============================================================ */

/* ============================================================
   HOMEPAGE OVERVIEW CARD
============================================================ */
#homepageOverview{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 0 0 18px 0;
  margin-bottom: 16px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

#homepageOverview .railHeader{
  margin: 0;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: #eef4fb;
  padding: 16px 20px;
  text-align: center;
}

#homepageOverview .homepageOverviewCard{
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 20px;
}

#homepageOverview .homepageOverviewText{
  margin: 0 0 18px 0;
}

#homepageOverview .homepageOverviewText:last-of-type{
  margin-bottom: 16px;
}

#homepageOverview .homepageOverviewNav{
  margin-top: 0;
}

#homepageOverview .langChips{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================================
   1) THEME TOKENS (all pages)
============================================================ */
:root{
  --bg: #0b0c10;
  --panel: #111218;
  --panel2: #151724;
  --text: #eaeaf2;
  --muted: #a6a7b3;
  --border: rgba(255,255,255,0.08);
  --link: #9bbcff;

  /* Brand tokens (Global Politics) */
  --brand-navy: #0b1f3a;
  --brand-blue: #142f55;
  --brand-blue2: #1b3f73;
  --brand-gold: #d4af37;

  /* Used by comment status link, etc. */
  --accent: var(--brand-gold);

  /* Index layout sizing */
  --index-rail-w: 360px;
  --site-max: 1180px;
  --site-pad: 16px;

  /* Sticky offset for region menu */
  --header-h: 72px;
}

/* Light mode overrides */
@media (prefers-color-scheme: light){
  :root{
    --bg: #f6f7fb;
    --panel: #ffffff;
    --panel2: #ffffff;
    --text: #14151a;
    --muted: #5a5d6b;
    --border: rgba(0,0,0,0.08);
    --link: #1b4cff;
  }
}

@media (max-width: 820px){
  :root{
    --header-h: 88px;
    --site-pad: 12px;
  }
}


/* ============================================================
   2) BUTTON LOADING STATE (Stripe-style)
============================================================ */
.primaryBtn{
  position: relative;
}

.primaryBtn .btnSpinner{
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: authSpin .7s linear infinite;
  display: inline-block;
}

.primaryBtn.isLoading .btnText{
  visibility: hidden;
}

.primaryBtn.isLoading .btnSpinner{
  display: inline-block;
}

.primaryBtn:not(.isLoading) .btnSpinner{
  display: none;
}


/* ============================================================
   3) PERFORMANCE OPTIMIZATIONS (safe, no visual changes)
   - Skip rendering offscreen content
   - Reduce layout/paint scope
============================================================ */
@supports (content-visibility: auto){
  .cards,
  .latestList,
  .rail,
  .articleShell,
  .about,
  .page.about{
    content-visibility: auto;
    contain-intrinsic-size: 800px;
  }
}

.card,
.latestItem,
.sidebarSection,
.rail,
.articleAside,
.prose{
  contain: layout paint;
}

.layout,
.rail,
.content{
  will-change: contents;
}

[aria-busy="true"]{
  min-height: 120px;
}


/* ============================================================
   4) BASE / RESET (all pages)
============================================================ */
html,
body{
  overflow: visible;
}

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

body.modalOpen{
  overflow: hidden;
}

body.menuOpen{
  overflow: hidden;
}


/* ============================================================
   5) GLOBAL MEDIA SAFETY (all pages)
============================================================ */
img,
video,
svg,
canvas{
  max-width: 100%;
  height: auto;
  display: block;
}

.card img,
.articleHero img,
#articleHero img,
.about-hero img,
.about-inline img{
  width: 100%;
  height: auto;
  object-fit: cover;
}


/* ============================================================
   6) LINKS + TEXT HELPERS (all pages)
============================================================ */
a{ color: var(--link); }
a:hover{ text-decoration: underline; }
.muted{ color: var(--muted); }


/* ============================================================
   7) TOP NAV / HEADER (components/header.html)
   Goal:
   - Make homepage header match the /ai-ask/ admin header look
   - Clean up duplicate auth pill/button behavior
============================================================ */

/* ===== HEADER LOGO ===== */
.brand{
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.4px;
  flex: 0 0 auto;
}

.brand:hover{
  color: #f2d77a;
}

.brand-logo{
  height: 32px;
  width: auto;
  display: block;
}

/* Sticky header wrapper */
#header{
  position: sticky;
  top: 0;
  z-index: 2000;
  margin: 0;
  padding: 0;
  background: linear-gradient(
    135deg,
    var(--brand-navy) 0%,
    var(--brand-blue) 60%,
    var(--brand-blue2) 100%
  );
}

.topbarWrap{
  margin: 0;
  padding: 0;
  width: 100%;
}

.topbar{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 14px 22px;
  margin: 0 !important;
  min-height: 72px;
  position: relative;

  background: linear-gradient(
    135deg,
    var(--brand-navy) 0%,
    var(--brand-blue) 60%,
    var(--brand-blue2) 100%
  );

  border-bottom: 1px solid rgba(212,175,55,0.35);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  contain: paint;
}

.topbar::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(212,175,55,0.8),
    transparent
  );
  opacity: 0.6;
  pointer-events: none;
}

/* Desktop nav layout */
.topbarNav,
.desktopNav{
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 14px;
  margin-left: auto;
}

/* Desktop nav links */
.topbar nav a,
.topbarNav a,
.desktopNav a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  margin: 0;

  color: rgba(255,255,255,0.92);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  line-height: 1;

  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);

  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.topbar nav a:hover,
.topbarNav a:hover,
.desktopNav a:hover{
  color: #ffffff;
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.22);
  text-decoration: none;
  transform: translateY(-1px);
}

.topbar nav a[aria-current="page"],
.topbarNav a[aria-current="page"],
.desktopNav a[aria-current="page"]{
  background: rgba(212,175,55,0.12);
  color: #ffffff;
  border-color: rgba(212,175,55,0.70);
  box-shadow: 0 0 0 2px rgba(212,175,55,0.14);
}

.mobileMenu a[aria-current="page"]{
  background: rgba(212,175,55,0.16);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(212,175,55,0.38);
}

/* Shared ghost base */
.ghost{
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
  font: inherit;
}

.ghost:hover{
  opacity: 0.85;
}

/* Header-specific ghost */
.topbar .ghost,
.mobileMenu .ghost{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;

  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  color: #ffffff;

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1;
  white-space: nowrap;

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    opacity 0.2s ease;
}

.topbar .ghost:hover,
.mobileMenu .ghost:hover{
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.22);
  opacity: 1;
  transform: translateY(-1px);
}

/* Desktop signed-in user pill */
.topbarNav #authUser{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  min-height: 46px;
  padding: 0 18px;
  margin: 0;

  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);

  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1;
  white-space: nowrap;
}

.topbarNav #authUser[hidden]{
  display: none !important;
}

/* Mobile signed-in user pill */
#authUserMobile{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  min-height: 46px;
  padding: 0 18px;
  margin: 0;

  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);

  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1;
  white-space: nowrap;
  word-break: normal;
}

#authUserMobile[hidden]{
  display: none !important;
}

/* Admin badge inside user pill */
.adminBadgeInline{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 4px 10px;
  border-radius: 999px;

  background: #d4af37;
  color: #111111;

  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.topbar select.ghost{
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.topbar select.ghost option{
  color: #111;
  background: #fff;
}

.topbar select.ghost option:checked,
.topbar select.ghost option:hover{
  color: #111;
}

/* ============================================================
   8) MOBILE HAMBURGER + MOBILE MENU
============================================================ */
.menuToggle{
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;

  width: 44px;
  height: 44px;
  padding: 0;
  margin-left: auto;
  flex: 0 0 44px;

  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  cursor: pointer;

  backdrop-filter: blur(6px);
  position: relative;
  z-index: 3005;
  appearance: none;
  -webkit-appearance: none;
  touch-action: manipulation;
  pointer-events: auto;
}

.menuToggle:hover{
  background: rgba(255,255,255,0.16);
}

.menuToggle span{
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
  pointer-events: none;
}

.mobileMenu{
  display: block;
  background: linear-gradient(
    180deg,
    rgba(11,31,58,0.98),
    rgba(20,47,85,0.98)
  );
  border-bottom: 1px solid rgba(212,175,55,0.26);
  box-shadow: 0 12px 26px rgba(0,0,0,0.24);
  position: relative;
  z-index: 3000;
}

.mobileMenu[hidden]{
  display: none !important;
}

.mobileMenu-inner{
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px 16px;
}

.mobileMenu a{
  display: block;
  color: rgba(255,255,255,0.94);
  text-decoration: none;
  padding: 13px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.mobileMenu a:hover{
  background: rgba(255,255,255,0.11);
  border-color: rgba(255,255,255,0.16);
  text-decoration: none;
}

.mobileMenu-auth{
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.mobileMenu-auth .ghost{
  width: 100%;
  text-align: center;
  border-radius: 12px;
  padding: 12px 14px;
}

#authUserMobile{
  padding: 4px 2px 0;
  color: rgba(255,255,255,0.78);
  font-size: 0.95rem;
  word-break: break-word;
}

@media (max-width: 900px){
  .topbar{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    position: relative;
    z-index: 3002;
  }

  .brand{
    flex: 0 1 auto;
    min-width: 0;
  }

  .brand-logo{
    height: 28px;
  }

  .menuToggle{
    display: inline-flex !important;
  }

  .desktopNav,
  .topbarNav,
  .topbar > nav{
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .topbar::after{
    pointer-events: none;
  }
}

@media (min-width: 901px){
  .mobileMenu{
    display: none !important;
  }
}


/* ============================================================
   9) SECTION LANDING PAGES
============================================================ */
.sectionPage{
  min-height: 100vh;
}

.sectionHero{
  padding: 34px 16px 18px;
}

.sectionHero-inner{
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 32px;
  border-radius: 18px;

  background: linear-gradient(
    135deg,
    rgba(11, 31, 58, 0.96),
    rgba(20, 47, 85, 0.96),
    rgba(27, 63, 115, 0.96)
  );

  border: 1px solid rgba(212,175,55,0.22);
  box-shadow: 0 14px 34px rgba(0,0,0,0.24);
}

.sectionEyebrow{
  margin: 0 0 8px 0;
  color: rgba(212,175,55,0.92);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.sectionTitle{
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.sectionIntro{
  margin: 14px 0 0 0;
  max-width: 780px;
  color: rgba(234,234,242,0.9);
  font-size: 1.02rem;
  line-height: 1.65;
}

.sectionContentWrap{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px 28px;
}

.sectionContentGrid{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.sectionMain,
.sectionRail{
  min-width: 0;
}

.sectionBlock{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 18px;
}

.sectionBlockTitle{
  margin: 0 0 14px 0;
  font-size: 1.2rem;
  line-height: 1.2;
}

.sectionCards{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.sectionCard{
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}

.sectionCard h3{
  margin: 0 0 8px 0;
  font-size: 1.05rem;
  line-height: 1.2;
}

.sectionCard p{
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.sectionCardMeta{
  margin-bottom: 8px;
  color: var(--brand-gold);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sectionEmptyState{
  padding: 18px;
  border-radius: 14px;
  border: 1px dashed var(--border);
  color: var(--muted);
  background: rgba(255,255,255,0.02);
  line-height: 1.6;
}

.sectionRailCard{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 18px;
}

.sectionRailCard h3{
  margin: 0 0 10px 0;
  font-size: 1rem;
}

.sectionRailCard p{
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.sectionLinkList{
  list-style: none;
  padding: 0;
  margin: 0;
}

.sectionLinkList li + li{
  margin-top: 10px;
}

.sectionLinkList a{
  text-decoration: none;
  font-weight: 600;
}

.sectionLinkList a:hover{
  text-decoration: underline;
}

@media (max-width: 980px){
  .sectionContentGrid{
    grid-template-columns: 1fr;
  }

  .sectionCards{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px){
  .sectionHero{
    padding: 20px 12px 14px;
  }

  .sectionHero-inner{
    padding: 22px 18px;
  }

  .sectionContentWrap{
    padding: 0 12px 22px;
  }

  .sectionBlock,
  .sectionRailCard{
    padding: 16px;
  }
}

/* ============================================================ 
   10) INDEX PAGE GRID LAYOUT (pages/index.html)
============================================================ */
.layout{
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--index-rail-w);
  gap: 20px;
  align-items: start;
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 6px var(--site-pad) 2rem;
}

.sidebar{
  display: none !important;
}

.sidebar,
.rail{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.sidebar{
  padding: 12px;
  position: sticky;
  top: 12px;
  height: calc(100vh - 24px);
  overflow: auto;
}

.content{
  padding: 0;
  padding-top: 0;
  min-width: 0;
  grid-column: 1;
}

.content > *{
  min-width: 0;
}

.content .contentPanel,
.content .feedPanel,
.content .contentInner,
.content .innerPanel,
.content .panel,
.content .page{
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.rail{
  padding: 12px 16px 16px;
  position: sticky;
  top: 12px;
  height: calc(100vh - 24px);
  overflow: auto;
  min-width: 0;
  grid-column: 2;
}
.rail{
  border-radius: 14px 14px 14px 14px;
  border-top-left-radius: 0;
}

/* New top row above content + rail */
.layoutTopRow{
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--index-rail-w);
  gap: 20px;
  align-items: center;
  min-width: 0;
  margin-bottom: 0;
  padding: 0;
  border-radius: 999px;
  background: transparent; /* 🔥 FIX: removes mismatch */
}

#featured{
  margin-top: 0 !important; /* 🔥 kills extra spacing */
}

.cards{
  margin-top: 0 !important; /* 🔥 ensures no gap */
}

.layoutTopMain,
.layoutTopRail{
  min-width: 0;
}

.layoutTopMain{
  grid-column: 1;
}

.layoutTopRail{
  grid-column: 2;
}

/* ============================================================
   🔥 FORCE COMPACT HEIGHT (THIS IS THE REAL FIX)
============================================================ */

/* LEFT SIDE (Filtered By box) */
.filterbar{
  min-height: 24px !important;         /* 🔥 force smaller height */
  padding: 4px 10px !important;        /* 🔥 reduce vertical padding */
  border-radius: 999px;
}

/* shrink inner chips so they don't stretch height */
.filterbar .badge{
  padding: 1px 10px !important;        /* 🔥 smaller pills */
  min-height: 24px !important;
  font-size: 0.9rem;
}

.filterbar .clearBtn{
  padding: 4px 10px !important;
  min-height: 24px !important;
}

/* RIGHT SIDE (Search box) */
.railSearchTop{
  margin: 0;
  display: flex;
  align-items: center;
}

.railSearchTop .searchField{
  width: 100%;
  display: flex;
  align-items: center;
}

/* 🔥 THIS overrides global input styles */
.railSearchTop input[type="search"]{
  height: 34px !important;            /* 🔥 force exact height */
  min-height: 34px !important;
  padding: 4px 36px 4px 12px !important; /* 🔥 reduce vertical padding */
  border-radius: 999px;
  font-size: 0.95rem;
}

/* shrink clear button to match */
.railSearchTop .searchClearBtn{
  width: 24px;
  height: 24px;
  font-size: 14px;
}

/* ============================================================ */

@media (max-width: 1100px){
  .layout{
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 4px;
  }

  .layoutTopRow{
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .layoutTopMain,
  .layoutTopRail,
  .content,
  .rail{
    grid-column: 1;
  }

  .layoutTopRail{
    order: -1;
  }

  .rail{
    display: none;
  }
}

@media (max-width: 820px){
  .layout{
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 4px 12px 18px;
  }

  .layoutTopRow{
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .sidebar{
    position: static;
    height: auto;
  }
}

/* Feed headline improvements */
.feedHeadline{
  text-wrap: balance;
}

@media (max-width: 480px){
  .feedHeadline{
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: -0.2px;
  }
}

/* ============================================================
   11) POSITIONING BAR + WEEKLY BRIEFING (TIGHTENED)
============================================================ */

.gpPositionBar{
  margin: 4px auto 6px;
  max-width: 1180px;
  padding: 0 16px;
}

.gpPositionInner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  border-radius: 16px;
  border: 1px solid rgba(155, 188, 255, 0.18);

  background: linear-gradient(
    135deg,
    rgba(11, 31, 58, 0.92),
    rgba(10, 18, 40, 0.92)
  );

  box-shadow: 0 8px 20px rgba(0,0,0,0.20);
  padding: 10px 14px;
}

.gpPositionLeft{
  min-width: 0;
}

.gpPositionTitle{
  color: #ffffff;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.2;
  font-size: 0.95rem;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gpPositionSub{
  margin-top: 2px;
  color: rgba(234, 234, 242, 0.82);
  font-size: 0.85rem;
  line-height: 1.3;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gpPositionRight{
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.gpPositionBadge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-gold);
  border: 1px solid rgba(214, 170, 70, 0.45);
  background: rgba(0,0,0,0.20);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.10);
}

.gpSubscribe{
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
  min-width: 320px;
}

.gpSubscribeBadge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-gold);
  border: 1px solid rgba(214, 170, 70, 0.45);
  background: rgba(0,0,0,0.20);
}

.gpSubscribeRow{
  display: flex;
  gap: 6px;
  align-items: center;
  width: 100%;
}

.gpSubscribeInput{
  flex: 1 1 auto;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(155, 188, 255, 0.28);
  background: rgba(255,255,255,0.96);
  color: #0a1937;
  font: inherit;
  outline: none;
}

.gpSubscribeInput::placeholder{
  color: rgba(10, 25, 55, 0.60);
}

.gpSubscribeInput:focus{
  border-color: rgba(155, 188, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(155, 188, 255, 0.18);
}

.gpSubscribeBtn{
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  border: 1px solid rgba(214, 170, 70, 0.55);
  background: rgba(214, 170, 70, 0.16);
  color: #ffffff;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.gpSubscribeBtn:hover{
  background: rgba(214, 170, 70, 0.22);
}

.gpSubscribeBtn:disabled{
  opacity: 0.65;
  cursor: default;
}

.gpSubscribeMsg{
  font-size: 0.82rem;
  line-height: 1.2;
  color: rgba(234, 234, 242, 0.88);
  text-align: right;
  min-height: 1em;
}

@media (max-width: 720px){
  .gpSubscribe{
    align-items: stretch;
    min-width: 0;
    width: 100%;
  }

  .gpSubscribeMsg{
    text-align: left;
  }

  .gpPositionInner{
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .gpPositionRight{
    width: 100%;
    justify-content: flex-start;
  }
}


/* ============================================================
   12) INDEX – VOTE STRIP HIGHLIGHT
============================================================ */
.cardVoteStrip{
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    rgba(240, 246, 255, 0.95),
    rgba(232, 241, 255, 0.95)
  );
  border: 1px solid rgba(31, 78, 216, 0.12);
}

.voteHintLink{
  margin-left: auto;
  font-weight: 600;
  color: var(--brand-navy);
  text-decoration: none;
  white-space: nowrap;
}

.voteHintLink:hover{
  text-decoration: underline;
  opacity: 0.85;
}

/* Index-only vote buttons */
.cardVoteStrip .voteBtn{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: var(--text);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 999px;
  padding: 8px 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.cardVoteStrip .voteBtn:hover{
  background: #f2f6fb;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  text-decoration: none;
}

/* ============================================================
   INDEX FEED — DEBATE PREVIEW
   Replaces homepage YES / NO / UNSURE buttons
   Shows live vote distribution + article CTA
============================================================ */
.cardVotePreview{
  margin-top: 12px;
  padding: 14px 14px 12px;
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    rgba(240,246,255,0.95),
    rgba(232,241,255,0.95)
  );
  border: 1px solid rgba(31,78,216,0.12);
}

.cardVoteBars{
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.cardVoteLine{
  display: grid;
  grid-template-columns: 118px 1fr 46px;
  align-items: center;
  gap: 10px;
}

.cardVoteLabel{
  font-size: 13px;
  font-weight: 800;
  color: #102544;
  white-space: nowrap;
}

.cardVoteMeter{
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(15,23,42,0.08);
  box-shadow: inset 0 1px 2px rgba(15,23,42,0.08);
}

.cardVoteFill{
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
}

.cardVoteFill.agree{
  background: linear-gradient(90deg, #22c55e, #16a34a);
}

.cardVoteFill.disagree{
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

.cardVoteFill.uncertain{
  background: linear-gradient(90deg, #94a3b8, #64748b);
}

.cardVotePct{
  font-size: 13px;
  font-weight: 800;
  color: #102544;
  text-align: right;
}

.cardVotePreviewFooter{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.cardVoteTotal{
  font-size: 13px;
  font-weight: 700;
  color: #5b6474;
}

.cardVoteAction{
  margin-left: auto;
  font-weight: 800;
  color: var(--brand-navy);
  text-decoration: none;
  white-space: nowrap;
}

.cardVoteAction:hover{
  text-decoration: underline;
}

@media (max-width: 640px){
  .cardVoteLine{
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .cardVotePct{
    text-align: left;
  }

  .cardVotePreviewFooter{
    align-items: flex-start;
  }

  .cardVoteAction{
    margin-left: 0;
  }
}

/* ============================================================
   13) FORMS
============================================================ */
input[type="text"],
input[type="search"]{
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel2);
  color: var(--text);
  outline: none;
}


/* ============================================================
   14) BUTTONS / CHIPS / PILLS
============================================================ */
.chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 6px 6px 0 0;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.chip-count{
  color: var(--muted);
  font-size: 0.85em;
}

.pill{
  font-size: 0.78rem;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
}


/* ============================================================
   15) FILTER BAR (pages/index.html)
============================================================ */
.filterbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  min-height: 56px;
  padding: 6px 14px;

  border: 1px solid rgba(11,31,58,0.10);
  background: #ffffff;
  color: #1b2230;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(10,25,55,0.06);

  margin: 0;
  line-height: 1;
}

.filterbar .left{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  min-height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(11,31,58,0.10);
  background: #ffffff;
  color: #1b2230;
  font-size: 0.95rem;
}

.badge .k{
  color: #6d7483;
  font-size: 0.95em;
}

.clearBtn{
  border: 1px solid rgba(11,31,58,0.10);
  background: #ffffff;
  color: #1b2230;
  border-radius: 999px;
  min-height: 36px;
  padding: 8px 14px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(10,25,55,0.04);
}

.clearBtn:hover{
  background: #f5f8fd;
  opacity: 1;
}


/* ============================================================
   16) PAGINATION (pages/index.html)
============================================================ */
.pager{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 18px 0 8px;
}

.pager button[disabled]{
  opacity: .5;
  cursor: not-allowed;
}


/* ============================================================
   17) CARD GRID + ARTICLE CARDS (pages/index.html)
============================================================ */
.cards{
  display: grid;
  gap: 8px; /* 🔥 tighter vertical rhythm */
}

.content{
  margin-top: 0 !important;
}

.layoutTopRow{ margin-bottom: 0; }
.cards{ margin-top: 2px; }

.card{
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 14px;
  overflow: hidden;
  margin-top: 2px;
}

.card-title{
  margin: 0 0 6px 0;
  font-size: 1.05rem;
}

.card-meta{
  font-size: 0.85rem;
  color: var(--muted);
}

.card-excerpt{
  margin: 8px 0 10px;
  color: var(--text);
  opacity: 0.92;
}

.card-tags{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card-debate{
  margin-top: 10px;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.4;
}

.card-actions{
  margin-top: 14px;
}

.btn-primary{
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  background: #1f4ed8;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: 0.15s;
}

.btn-primary:hover{
  background: #183fb5;
}

.card .cardMedia{
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--panel2);
}

.card .cardMedia img{
  width: 100%;
  height: auto;
  display: block;
}

.card-cover{
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--panel2);
}

.card-cover img{
  width: 100%;
  height: auto;
  display: block;
}

.cardVoteStrip{
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
}

.cardQuestion{
  font-weight: 800;
  margin: 0 0 8px;
  line-height: 1.25;
}

.cardVoteRow{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.voteHint{
  color: var(--muted);
  font-size: 13px;
  margin-left: auto;
  white-space: nowrap;
}

@media (max-width: 720px){
  .voteHint{
    margin-left: 0;
    width: 100%;
  }
}

.cardVoteStrip + .card-tags{
  margin-top: 4px;
}

.card-tags{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}


/* ============================================================
   18) GLOBAL VOTE BUTTONS
   NOTE:
   - This is the easiest place to edit generic vote button styling.
   - Index cards use this directly.
   - Article page buttons are further customized in article.css.
============================================================ */
.voteBtn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 2px solid transparent;
  background: #f3f4f6;
  color: #111827;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  cursor: pointer;
  opacity: 1;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    opacity 0.18s ease;
}

.voteBtn:hover{
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
  text-decoration: none;
}

.voteBtn:focus-visible{
  outline: 2px solid rgba(31,78,216,0.35);
  outline-offset: 2px;
}

.voteBtn.selected,
.voteBtn.is-selected{
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

.voteBtn:disabled{
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Generic color variants by vote choice */
.voteBtn[data-choice="yes"]{
  background: #e7f6ec;
  border-color: #22c55e;
  color: #166534;
}

.voteBtn[data-choice="no"]{
  background: #fde8e8;
  border-color: #ef4444;
  color: #991b1b;
}

.voteBtn[data-choice="unsure"]{
  background: #f4f4f5;
  border-color: #a1a1aa;
  color: #27272a;
}

/* Selected emphasis */
.voteBtn[data-choice="yes"].selected,
.voteBtn[data-choice="yes"].is-selected{
  background: #dcfce7;
  border-color: #16a34a;
  color: #14532d;
}

.voteBtn[data-choice="no"].selected,
.voteBtn[data-choice="no"].is-selected{
  background: #fee2e2;
  border-color: #dc2626;
  color: #7f1d1d;
}

.voteBtn[data-choice="unsure"].selected,
.voteBtn[data-choice="unsure"].is-selected{
  background: #e5e7eb;
  border-color: #6b7280;
  color: #1f2937;
}


/* ============================================================
   19) RIGHT RAIL: LATEST ARTICLES (pages/index.html)
============================================================ */
.sidebarSection{
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
}

.sidebarTitle{
  font-weight: 800;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--panel2);
  border: 1px solid var(--border);
  color: var(--text);
  text-align: left;
  margin: 0 0 10px 0;
}

.latestList{
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.latestItem{
  display: grid;
  grid-template-columns: 104px 1fr;
  grid-template-areas:
    "thumb title"
    "date  title";
  column-gap: 10px;
  row-gap: 6px;
  align-items: start;
  text-decoration: none;
  color: inherit;
  padding: 6px 8px;
  border-radius: 12px;
  margin: 0;
}

.latestItem:not(:last-child){
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding-bottom: 6px;
  margin-bottom: 2px;
}

.latestItem + .latestItem{
  padding-top: 2px;
}

.latestItem:hover{
  background: var(--panel2);
}

.latestThumb{
  grid-area: thumb;
  width: 104px;
  height: 60px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
}

.latestThumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.latestMeta{
  grid-area: title;
  min-width: 0;
  margin: 0;
}

.latestItem h3,
.latestItem .latestTitle{
  margin-bottom: 4px;
}

.latestDate{
  grid-area: date;
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.2;
}

.latestPager{
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* ============================================================
   19) RIGHT RAIL: LATEST ARTICLES (pages/index.html)
============================================================ */
.sidebarSection{
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
}

.sidebarTitle{
  font-weight: 800;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--panel2);
  border: 1px solid var(--border);
  color: var(--text);
  text-align: left;
  margin: 0 0 10px 0;
}

.latestList{
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.latestItem{
  display: grid;
  grid-template-columns: 104px 1fr;
  column-gap: 10px;
  align-items: start;
  text-decoration: none;
  color: inherit;
  padding: 6px 8px;
  border-radius: 12px;
  margin: 0;
}

.latestItem:not(:last-child){
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding-bottom: 6px;
  margin-bottom: 2px;
}

.latestItem + .latestItem{
  padding-top: 2px;
}

.latestItem:hover{
  background: var(--panel2);
}

.latestSide{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 104px;
}

.latestThumb{
  width: 104px;
  height: 60px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
}

.latestThumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.latestMeta{
  min-width: 0;
  margin: 0;
}

.latestItem h3,
.latestItem .latestTitle{
  margin: 0;
}

.latestDate{
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.2;
  text-align: center;
}

.latestPager{
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Clear (X) button */
.railSearch .searchClearBtn{
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);

  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;

  background: rgba(15,23,42,0.06);
  color: #1b2230;

  font-size: 18px;
  line-height: 1;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  transition:
    background 0.16s ease,
    transform 0.12s ease,
    opacity 0.12s ease;
}

.railSearch .searchClearBtn:hover{
  background: rgba(15,23,42,0.12);
}

.railSearch .searchClearBtn:active{
  transform: translateY(-50%) scale(0.95);
}

.railSearch .searchClearBtn[hidden]{
  display: none !important;
}


/* ============================================================
   20) LANGUAGE CHIPS + REGION MENU
============================================================ */
.langChips{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 0;
}

.langChip{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  user-select: none;
  font-size: .9rem;
}

.langChip:hover{
  background: var(--panel2);
}

.langChip.is-active{
  background: var(--panel2);
  border-color: rgba(255,255,255,0.18);
  font-weight: 600;
}

.langChipAll{
  opacity: .95;
}

#regionMenu{
  background: #ffffff;
}

.regionMenu{
  margin: 0;
  padding: 10px 0 12px 0;
  background: #ffffff;
  border-top: 1px solid rgba(212,175,55,0.22);
  border-bottom: 1px solid rgba(11,31,58,0.08);
  box-shadow: 0 8px 18px rgba(10,25,55,0.06);
}

.regionMenu-inner{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: transparent;
}

.regionMenu .region-chip{
  background: #ffffff;
  color: #1b2230;
  border: 1px solid rgba(11,31,58,0.12);
}

.regionMenu .region-chip:hover{
  background: #f5f8fd;
}

.regionMenu .region-chip.active{
  background: linear-gradient(135deg, #0f2a4f, #173d70);
  color: #ffffff;
  border: 1px solid #c9a227;
}

.regionMenu-search input[type="search"]{
  background: #ffffff;
  color: #1b2230;
  border: 1px solid rgba(11,31,58,0.12);
}

.regionMenu-chips{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.regionMenu-search{
  margin-left: auto;
  display: flex;
  align-items: center;
}

.regionMenu-search input[type="search"],
.regionMenu-search input[type="text"]{
  width: min(360px, 42vw);
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(11,31,58,0.12);
  background: #ffffff;
  color: #1b2230;
  box-shadow: 0 1px 2px rgba(10,25,55,0.04);
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background-color 0.16s ease;
}

.regionMenu-search input[type="search"]:focus,
.regionMenu-search input[type="text"]:focus{
  border-color: rgba(27,76,255,0.35);
  box-shadow: 0 0 0 4px rgba(27,76,255,0.10);
  background: #ffffff;
}

.regionMenu-search input[type="search"]::placeholder,
.regionMenu-search input[type="text"]::placeholder{
  color: rgba(27,34,48,0.60);
}

.regionMenu .region-chip{
  appearance: none;
  border: 1px solid rgba(11,31,58,0.10);
  background: #ffffff;
  color: #1b2230;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
  white-space: nowrap;
  transition:
    transform 140ms ease,
    opacity 140ms ease,
    background-color 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease;
  opacity: 0.96;
  box-shadow: 0 1px 2px rgba(10,25,55,0.04);
}

.regionMenu .region-chip:hover{
  opacity: 1;
  transform: translateY(-1px);
  background: #f5f8fd;
  border-color: rgba(23,61,112,0.18);
}

.regionMenu .region-chip.active{
  opacity: 1;
  background: linear-gradient(135deg, #0f2a4f, #173d70);
  border: 1px solid #c9a227;
  color: #ffffff;
  font-weight: 800;
  box-shadow:
    0 0 0 2px rgba(201, 162, 39, 0.22),
    0 6px 14px rgba(15,42,79,0.18);
}

.regionMenu .region-chip:focus-visible{
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

@media (max-width: 820px){
  .regionMenu{
    padding: 8px 0 12px 0;
  }

  .regionMenu-inner{
    flex-wrap: wrap;
    padding: 0 14px;
  }

  .regionMenu-chips{
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    width: 100%;
  }

  .regionMenu-chips::-webkit-scrollbar{
    height: 8px;
  }

  .regionMenu-chips::-webkit-scrollbar-thumb{
    background: rgba(11,31,58,0.14);
    border-radius: 999px;
  }

  .regionMenu-search{
    width: 100%;
    margin-left: 0;
  }

  .regionMenu-search input[type="search"],
  .regionMenu-search input[type="text"]{
    width: 100%;
  }
}

/* Legacy region helper classes */
.regionBar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: nowrap;
}

.regionChips{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.regionSearch{
  margin-left: auto;
  display: flex;
  align-items: center;
}

input[type="search"].regionSearchInput{
  width: min(340px, 36vw);
  padding: 8px 10px;
  border-radius: 999px;
}

@media (max-width: 820px){
  .regionBar{ flex-wrap: wrap; }
  .regionSearch{ width: 100%; margin-left: 0; }
  input[type="search"].regionSearchInput{ width: 100%; }
}

.region-chip{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}


/* ============================================================
   21) SEARCH HELPERS + HOMEPAGE RIGHT-RAIL SEARCH
   ------------------------------------------------------------
   What this section controls:
   1) The "Filtered by" bar visibility spacing
   2) The homepage right-column search box positioning
   3) The shared search field layout
   4) The search icon inside the input
   5) The custom clear button (only if still used)

   Important:
   - Keep ALL search-field styling here in one place
   - Do not duplicate .searchField or .layoutTopRow later
   - If you change search spacing, change it here only
============================================================ */

/* ------------------------------------------------------------
   A) FILTER BAR ABOVE THE LEFT CONTENT COLUMN
   - Hidden state must fully collapse so no empty gap remains
------------------------------------------------------------ */
#activeFilters{
  margin: 0 0 16px 0;
}

#activeFilters[hidden]{
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ------------------------------------------------------------
   B) HOMEPAGE RIGHT-RAIL SEARCH POSITIONING
   - Places the search box above the right sidebar
   - Keeps the left content column free for About / Filtered by
------------------------------------------------------------ */
.layout{
  position: relative;
}

.layoutTopRow{
  position: absolute;
  top: 4px;
  right: 31px;               /* nudges search box slightly left */
  width: var(--index-rail-w);
  padding: 0 12px;           /* visually matches rail inner width */
  margin: 0;
  box-sizing: border-box;
  z-index: 5;
}

.layoutTopMain{
  display: none !important;
}

.layoutTopRail{
  width: 100%;
  max-width: 100%;
}

.railSearchTop{
  width: 100%;
  margin: 0;
}

.rail{
  margin-top: 33px;          /* lifts sidebar upward under search */
}

.content,
.rail{
  min-width: 0;
}

/* ------------------------------------------------------------
   C) SHARED SEARCH FIELD STRUCTURE
   - Used for search input wrappers
------------------------------------------------------------ */
.searchField{
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.regionSearchInput{
  padding-right: 36px;
}

/* ------------------------------------------------------------
   D) SEARCH ICON INSIDE INPUT
   - Icon sits inside the field on the left
   - Input text is pushed right so it does not overlap
------------------------------------------------------------ */
.searchIcon{
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  line-height: 1;
  opacity: 0.6;
  pointer-events: none;
  z-index: 2;
}

/* Main search input styling override
   Note: !important is used here intentionally because
   broader global input styles may otherwise override padding.
*/
.searchField input,
.searchField input[type="search"]{
  width: 100%;
  box-sizing: border-box;
  padding-left: 38px !important;   /* space for left icon */
  padding-right: 36px;
  border-radius: 12px 12px 0 0;
}

/* ------------------------------------------------------------
   E) CUSTOM CLEAR BUTTON
   - Keep this only if you still use a custom clear button
   - If you rely only on the browser's native search clear X,
     this block can be removed later
------------------------------------------------------------ */
.searchClearBtn{
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(11,31,58,0.12);
  background: #ffffff;
  color: #6d7483;
  cursor: pointer;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.searchClearBtn:hover{
  color: #1b2230;
  background: #f5f8fd;
}

/* ------------------------------------------------------------
   F) MOBILE / NARROW LAYOUT
   - Returns the search box to normal document flow
------------------------------------------------------------ */
@media (max-width: 980px){
  .layoutTopRow{
    position: static;
    top: auto;
    right: auto;
    width: 100%;
    padding: 0;
    margin: 0 0 16px 0;
  }

  .layoutTopRail,
  .railSearchTop,
  .railSearchTop .searchField{
    width: 100%;
    max-width: none;
  }

  .rail{
    margin-top: 0;
  }
}

/* ============================================================
   22) ARTICLE PAGE LAYOUT + TYPOGRAPHY
============================================================ */
.articleShell{
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 16px;
  max-width: 1180px;
  margin: 16px auto;
  padding: 0 16px;
}

.prose{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  line-height: 1.65;
  max-width: 75ch;
}

.prose h1{
  margin: 0 0 10px;
  line-height: 1.15;
  font-size: 2rem;
}

.prose h2{
  margin: 28px 0 10px;
  line-height: 1.25;
  font-size: 1.35rem;
}

.prose h3{
  margin: 18px 0 8px;
  line-height: 1.25;
  font-size: 1.1rem;
}

.prose p{
  margin: 10px 0;
}

.prose ul,
.prose ol{
  margin: 10px 0 10px 20px;
}

.prose hr{
  border: 0;
  border-top: 1px solid var(--border);
  margin: 18px 0;
}

.articleAside{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}

.sticky{
  position: sticky;
  top: 16px;
}

.onPageToc a{
  display: block;
  padding: 6px 8px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid transparent;
}

.onPageToc a:hover{
  border-color: var(--border);
  background: var(--panel2);
}

.onPageToc a.depth-3{
  padding-left: 18px;
  color: var(--muted);
}

.related .card{
  margin-top: 10px;
}

@media (max-width: 1000px){
  .articleShell{ grid-template-columns: 1fr; }
  .articleAside{ order: -1; }
  .prose{ max-width: 100%; }
}

.gp-cta{
  margin-top: 18px;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--panel2);
}

.gp-cta h3{
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.gp-cta p{
  margin: 8px 0;
  color: var(--text);
}

.gp-cta .muted{
  color: var(--muted);
}

.gp-cta .cta-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.gp-cta .cta-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
}

.gp-cta .cta-btn:hover{
  opacity: 0.85;
}

.articleActions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 1180px;
  margin: 16px auto 10px;
  padding: 0 16px;
}

.backToTop{
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel2);
  color: var(--text);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}

.backToTop:hover{
  opacity: 0.85;
}


/* ============================================================
   23) ABOUT PAGE
============================================================ */
.about-hero{
  max-width: 900px;
  margin: 0 auto 32px auto;
  text-align: center;
}

.about-hero img{
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
  object-fit: cover;
}

.about-hero figcaption{
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--muted);
}

@media (min-width: 1400px){
  .about-hero{ max-width: 820px; }
}

.page.about{
  max-width: 860px;
  margin: 0 auto;
  line-height: 1.65;
}

.about-inline{
  width: 320px;
  max-width: 38%;
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--border);
}

.about-inline img{
  width: 100%;
  height: auto;
  display: block;
}

.about-inline.left{
  float: left;
  margin: 0 22px 6px 0;
}

.about-inline.right{
  float: right;
  margin: 0 0 6px 22px;
}

.about p{
  margin-top: 10px;
  margin-bottom: 14px;
}

.about h2{
  clear: both;
  margin-top: 26px;
  margin-bottom: 10px;
  line-height: 1.25;
}

.about h2 + p{
  margin-top: 0;
}

@media (max-width: 800px){
  .about-inline,
  .about-inline.left,
  .about-inline.right{
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 14px 0;
  }
}


/* ============================================================
   24) AUTH MODAL
============================================================ */
.modal[hidden]{
  display: none;
}

.modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.modalBackdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.modalPanel{
  position: relative;
  width: min(520px, calc(100vw - 32px));
  margin: 24px auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 14px 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  max-height: calc(100vh - 24px);
  overflow: hidden;
}

.modalPanel.compactAuth .authModeIntro{
  display: none;
}

.authBusyOverlay[hidden],
.authLoadingMsg[hidden]{
  display: none !important;
}

.authBusyOverlay{
  display: flex;
}

.modalHead{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 2px;
}

.iconBtn{
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.authTabs{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.tab{
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}

.tab.active{
  background: var(--panel2);
}

.authForm{
  margin-top: 10px;
  max-height: calc(100vh - 200px);
  overflow: auto;
  padding-right: 4px;
}

.field{
  display: block;
  margin: 10px 0;
}

.field span{
  display: block;
  color: var(--muted);
  margin-bottom: 6px;
}

.field input{
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
}

.primaryBtn{
  width: 100%;
  margin-top: 8px;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #0a7a6a;
  color: white;
  cursor: pointer;
  font-weight: 600;
}

.primaryBtn:hover{
  opacity: 0.9;
}

.authRow{
  display: flex;
  justify-content: flex-end;
}

.forgotLink{
  display: inline-block;
  font-weight: 600;
  text-decoration: underline;
}

.authError{
  margin: 6px 0 8px;
  font-size: 0.95rem;
  color: #e53935;
  font-weight: 700;
  min-height: 18px;
}

#commentStatus a{
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.authLoadingMsg{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}

.authSpinner{
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0,0,0,0.15);
  border-top-color: rgba(0,0,0,0.65);
  border-radius: 50%;
  animation: authSpin 0.8s linear infinite;
  flex: 0 0 16px;
}

.authSpinnerLg{
  width: 24px;
  height: 24px;
}

@keyframes authSpin{
  to{
    transform: rotate(360deg);
  }
}

.primaryBtn.isLoading{
  opacity: 0.75;
  pointer-events: none;
}

.authBusyOverlay{
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(2px);
}

.authBusyCard{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 220px;
  padding: 18px 22px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  color: #1b2230;
  font-weight: 700;
  text-align: center;
}

.authBusySub{
  font-size: 13px;
  line-height: 1.35;
  color: #666;
  font-weight: 400;
}


/* ============================================================
   25) FOOTER
============================================================ */
.footer{
  margin-top: 2.5rem;
  background:
    linear-gradient(
      135deg,
      rgba(8,18,36,0.98) 0%,
      rgba(11,31,58,0.98) 45%,
      rgba(20,47,85,0.98) 100%
    );
  color: #ffffff;
  border-top: 1px solid rgba(212,175,55,0.22);
  box-shadow: 0 -10px 30px rgba(0,0,0,0.18);
}

.footer-inner{
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 16px 18px;
}

.footer-top{
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(0, 2fr);
  gap: 28px;
  align-items: start;
}

.footer-brand{
  padding: 0 6px 0 0;
}

.footer-brandLink{
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.footer-brandLink:hover{
  text-decoration: none;
}

.footer-logo{
  height: 34px;
  width: auto;
  display: block;
}

.footer-tagline{
  margin: 16px 0 0 0;
  max-width: 360px;
  color: rgba(234,234,242,0.84);
  line-height: 1.72;
  font-size: 0.98rem;
}

.footer-cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(212,175,55,0.46);
  background: rgba(212,175,55,0.12);
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.footer-cta:hover{
  text-decoration: none;
  background: rgba(212,175,55,0.2);
  border-color: rgba(212,175,55,0.68);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

.footer-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.footer-col{
  min-width: 0;
}

.footer-title{
  margin: 0 0 14px 0;
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links{
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li + li{
  margin-top: 10px;
}

.footer-links a{
  color: rgba(234,234,242,0.84);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.5;
  transition: color 0.18s ease, transform 0.18s ease;
}

.footer-links a:hover{
  color: #ffffff;
  text-decoration: none;
}

.footer-featureText{
  margin: 0;
  color: rgba(234,234,242,0.84);
  line-height: 1.72;
}

.footer-textLink{
  display: inline-block;
  margin-top: 14px;
  color: var(--brand-gold);
  text-decoration: none;
  font-weight: 800;
}

.footer-textLink:hover{
  color: #f0cd67;
  text-decoration: underline;
}

.footer-bottom{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-copy{
  margin: 0;
  color: rgba(234,234,242,0.72);
  font-size: 0.92rem;
}

.footer-bottomLinks{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-bottomLinks a{
  color: rgba(234,234,242,0.78);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.footer-bottomLinks a:hover{
  color: #ffffff;
  text-decoration: underline;
}

@media (max-width: 980px){
  .footer-top{
    grid-template-columns: 1fr;
  }

  .footer-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px){
  .footer-inner{
    padding: 28px 14px 16px;
  }

  .footer-grid{
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-bottom{
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottomLinks{
    gap: 10px 14px;
  }

  .footer-logo{
    height: 30px;
  }
}


/* ============================================================
   26) GLOBAL RAIL HEADER
============================================================ */
.railHeader{
  color: var(--brand-navy);
  text-align: center;
  padding: 12px 14px;
  margin: 0 0 10px 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.95),
    rgba(230,240,255,0.95)
  );
  border: 1px solid rgba(155, 188, 255, 0.25);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}


/* ============================================================
   27) VOTE HERO SECTION (Homepage focus)
   Retained for fallback use on pages that still include it.
============================================================ */
.voteHero{
  text-align: center;
  max-width: 900px;
  margin: 0 auto 10px auto;
  padding: 22px 24px;
  background: linear-gradient(135deg,#16233b,#1e355d);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 18px rgba(0,0,0,0.28);
}

.voteHeroTitle{
  font-size: 30px;
  font-weight: 900;
  letter-spacing: .3px;
  margin-bottom: 0;
  color: white;
}

.voteHeroSubtitle{
  font-size: 17px;
  font-weight: 700;
  color: #d6def5;
  margin-bottom: 0;
}

.voteHeroDescription{
  font-size: 14px;
  color: #b9c4e5;
  line-height: 1.45;
}


/* ============================================================
   28) SECTION FEED / ARTICLE CARDS
============================================================ */
.sectionArticles{
  display: grid;
  gap: 14px;
}

.sectionFeedCard{
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}

.sectionFeedCard-media{
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
}

.sectionFeedCard-media img{
  width: 100%;
  height: 100%;
  min-height: 140px;
  object-fit: cover;
  display: block;
}

.sectionFeedCard-body{
  min-width: 0;
}

.sectionFeedCard-meta{
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 6px;
}

.sectionFeedCard-title{
  margin: 0 0 8px 0;
  font-size: 1.15rem;
  line-height: 1.2;
}

.sectionFeedCard-title a{
  text-decoration: none;
}

.sectionFeedCard-title a:hover{
  text-decoration: underline;
}

.sectionFeedCard-excerpt{
  margin: 0 0 12px 0;
  color: var(--text);
  opacity: 0.92;
  line-height: 1.6;
}

.sectionFeedCard-tags{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.sectionFeedCard-actions{
  margin-top: 8px;
}

@media (max-width: 760px){
  .sectionFeedCard{
    grid-template-columns: 1fr;
  }

  .sectionFeedCard-media img{
    min-height: 180px;
  }
}

.sectionArticleCard{
  display: block;
  overflow: hidden;
}

.sectionArticleThumbLink{
  float: left;
  display: block;
  width: 180px;
  margin: 0 20px 12px 0;
  text-decoration: none;
}

.sectionArticleThumb{
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.sectionArticleBody{
  display: block;
}

.sectionArticleTitle{
  margin: 0 0 10px 0;
}

.sectionArticleExcerpt{
  margin: 0 0 12px 0;
  line-height: 1.6;
}

.sectionArticleDate{
  margin-bottom: 12px;
}

.sectionArticleActions{
  margin-top: 8px;
}

.sectionArticleActions .chip{
  display: inline-block;
  background: #0b1f3a;
  color: #fff;
  border: 1px solid #0b1f3a;
  text-decoration: none;
}

.sectionArticleActions .chip:hover{
  background: #102a4d;
  color: #fff;
  border-color: #102a4d;
}

@media (max-width: 700px){
  .sectionArticleThumbLink{
    float: none;
    width: 100%;
    max-width: 220px;
    margin: 0 0 14px 0;
  }
}

.sectionArticleMeta{
  position: relative;
  display: flex;
  align-items: center;
  margin-top: -4px;
}

.sectionArticleDate{
  font-size: 0.95rem;
}

.sectionArticleButton{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: #0b1f3a;
  color: #fff;
  border: 1px solid #0b1f3a;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  flex-shrink: 0;
  width: fit-content;
}

.sectionArticleButton:hover{
  background: #102a4d;
  border-color: #102a4d;
}

@media (max-width: 480px){
  .sectionArticleButton{
    font-size: 14px;
    padding: 8px 16px;
  }
}

.sectionFeaturedCard{
  display: flex;
  flex-direction: column;
}

.sectionCardThumb{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  object-fit: cover;
}

.sectionCardTitle{
  margin: 10px 0 10px;
  line-height: 1.25;
}

.sectionCardExcerpt,
.sectionCard p{
  margin: 0 0 12px;
  line-height: 1.7;
}

.sectionCardActions{
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.sectionCardActions .sectionArticleButton{
  position: static;
  left: auto;
  transform: none;
}

.sectionBlockPlain{
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}


.about-icon-figure{
  width: 120.4px;
  height: 120.4px;
  min-width: 120.4px;
  min-height: 120.4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.about-inline-svg{
  width: 120.4px;
  height: 120.4px;
  min-width: 120.4px;
  min-height: 120.4px;
  display: block;
  flex: 0 0 120.4px;
}

/* Fix vertical centering for header nav buttons */
.topbarNav a,
.topbar .ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  line-height: 1;
  height: 46px;          /* force consistent height */
  padding: 0 18px;       /* remove vertical padding */
}
/* Force the Admin nav item to align exactly like the other header pills */
#adminNavItem,
#adminNavItemMobile{
  align-items: center;
  justify-content: center;
  height: 46px;
  min-height: 46px;
  padding: 0 18px;
  line-height: 1;
  vertical-align: middle;
  box-sizing: border-box;
}

#adminNavItem:not([hidden]){
  display: inline-flex !important;
}

#adminNavItemMobile:not([hidden]){
  display: block !important;
}

#adminNavItem[hidden],
#adminNavItemMobile[hidden]{
  display: none !important;
}

#adminNavItem{
  position: relative;
  top: 1px;
}

/* =========================================
   GLOBAL HEADER BACKDROP (FINAL CLEAN VERSION)
========================================= */

.topbarWrap {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(18, 32, 58, 0.80) 0%,
    rgba(16, 29, 52, 0.74) 55%,
    rgba(13, 24, 43, 0.82) 100%
  );
}

/* Main header image */
.topbarWrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(20, 36, 64, 0.08) 0%,
      rgba(20, 36, 64, 0.03) 45%,
      rgba(10, 18, 32, 0.10) 100%
    ),
    url("/assets/img/header-bg.jpg") center 45% / cover no-repeat;
  opacity: 0.68;
  z-index: 0;
  pointer-events: none;
}

/* Subtle side fade */
.topbarWrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(15, 23, 42, 0.14) 0%,
      rgba(15, 23, 42, 0.015) 14%,
      rgba(15, 23, 42, 0.015) 86%,
      rgba(15, 23, 42, 0.14) 100%
    );
  z-index: 0;
  pointer-events: none;
}

/* Ensure content sits above background */
.topbar,
.regionMenu,
.mobileMenu {
  position: relative;
  z-index: 1;
}

/* Top navigation (lighter glass, less blur) */
.topbar {
  background: rgba(22, 34, 58, 0.18) !important;
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.20);
  min-height: 112px;
}

/* Region strip (cleaner, less heavy) */
.regionMenu {
  background: rgba(11, 20, 37, 0.14) !important;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  padding-top: 12px;
  padding-bottom: 12px;
}

/* Mobile menu (keep readable) */
.mobileMenu {
  background: rgba(15, 23, 42, 0.96) !important;
}


/* Copy Button on admin.html */
.cmsCopyBtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ============================================================
   GLOBAL POLITICS — CONFLICTS PAGE
   Full final version for conflicts.html
   Paste at the VERY END of styles.css
============================================================ */

.gpConflictsPage{
  background: linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%);
}

/* ============================================================
   HERO
============================================================ */

.gpConflictsHero{
  padding: 16px 16px 10px;
  background: transparent;
}

.gpConflictsHeroInner{
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 20px 16px;
  border-radius: 28px;
  background: linear-gradient(
    135deg,
    rgba(11,31,58,0.96),
    rgba(20,47,85,0.96),
    rgba(27,63,115,0.96)
  );
  border: 1px solid rgba(212,175,55,0.20);
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}

.gpConflictsHero .sectionEyebrow{
  color: #d4af37;
  margin: 0 0 8px;
}

.gpConflictsHero .sectionTitle{
  margin: 0 0 12px;
  color: #ffffff;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 900;
}

.gpConflictsHero .sectionIntro{
  margin: 0;
  max-width: 1100px;
  color: rgba(255,255,255,0.90);
  font-size: 15px;
  line-height: 1.65;
}

/* ============================================================
   HERO METRICS
============================================================ */

.gpConflictsHeroMetrics{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
  margin-top: 18px;
}

.gpConflictsMetric{
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(11,31,58,0.10);
  background: rgba(255,255,255,0.94);
  box-shadow:
    0 8px 22px rgba(11,31,58,0.05),
    inset 0 1px 0 rgba(255,255,255,0.95);
}

.gpConflictsMetric .sectionHeroMetricLabel{
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(11,31,58,0.56);
}

.gpConflictsMetric strong{
  display: block;
  font-size: 18px;
  line-height: 1.32;
  color: #0b1f3a;
}

.gpConflictsMetricLink{
  text-decoration: none;
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease,
    background .18s ease;
}

.gpConflictsMetricLink:hover{
  transform: translateY(-1px);
  border-color: rgba(212,175,55,0.30);
  background: rgba(255,255,255,1);
  box-shadow: 0 12px 26px rgba(11,31,58,0.08);
}

/* ============================================================
   PAGE LAYOUT
============================================================ */

.gpConflictsPage .sectionContentWrap{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px 28px;
  background: transparent;
}

.gpConflictsPage .conflictsLayoutGrid{
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 360px);
  gap: 22px;
  align-items: start;
  background: transparent;
}

.gpConflictsPage .sectionMain,
.gpConflictsPage .sectionRail{
  min-width: 0;
}

.gpConflictsPage .conflictsRailSticky{
  position: sticky;
  top: calc(var(--header-h, 72px) + 14px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ============================================================
   TOP NOTE CARD
============================================================ */

.gpConflictsPage .conflictsTopNoteWrap{
  margin-bottom: 18px;
}

.gpConflictsPage .conflictsTopNote{
  padding: 20px 22px;
  border-radius: 22px;
  border: 1px solid rgba(11,31,58,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.97) 0%, rgba(246,249,253,0.97) 100%);
  box-shadow: 0 12px 30px rgba(11,31,58,0.06);
}

.gpConflictsPage .conflictsTopNoteHead{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.gpConflictsPage .conflictsTopNote .sectionBlockTitle{
  color: #0b1f3a;
  font-size: 1.15rem;
  margin: 0;
}

.gpConflictsPage .conflictsTopNoteText{
  color: rgba(11,31,58,0.78);
  line-height: 1.72;
  margin: 0;
}

.gpConflictsPage .conflictsTopNoteBadge{
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  color: #9a7410;
  background: rgba(212,175,55,0.12);
  border: 1px solid rgba(212,175,55,0.22);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
}

/* ============================================================
   SECTION HEAD
============================================================ */

.gpConflictsPage .conflictsSectionHead{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.gpConflictsPage .conflictsSectionSubhead{
  color: rgba(11,31,58,0.68);
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.55;
}

.gpConflictsPage .conflictsCountPill{
  color: #0b1f3a;
  background: rgba(255,255,255,0.84);
  border: 1px solid rgba(11,31,58,0.08);
  box-shadow: 0 8px 18px rgba(11,31,58,0.04);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

/* ============================================================
   LEFT COLUMN ARTICLE GRID
============================================================ */

.gpConflictsPage .conflictsArticlesGrid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.gpConflictsPage .conflictsCard{
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(10,20,42,0.72) 0%, rgba(13,27,54,0.92) 100%);
  box-shadow: 0 18px 48px rgba(0,0,0,0.22);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.gpConflictsPage .conflictsCard:hover{
  transform: translateY(-2px);
  box-shadow: 0 24px 56px rgba(0,0,0,0.28);
  border-color: rgba(212,175,55,0.18);
}

.gpConflictsPage .conflictsCardCover{
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
}

.gpConflictsPage .conflictsCardCover img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gpConflictsPage .conflictsCardBody{
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 16px 18px;
}

.gpConflictsPage .conflictsCardMetaRow{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.gpConflictsPage .conflictsCardDate{
  color: rgba(230,235,245,0.66);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}

.gpConflictsPage .conflictsCardFeaturedBadge{
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .03em;
  text-transform: uppercase;
  background: rgba(212,175,55,0.14);
  border: 1px solid rgba(212,175,55,0.22);
  color: #f2d87a;
}

.gpConflictsPage .conflictsCardTitle{
  margin: 0;
  font-size: 22px;
  line-height: 1.28;
}

.gpConflictsPage .conflictsCardTitle a{
  color: #ffffff;
  text-decoration: none;
}

.gpConflictsPage .conflictsCardTitle a:hover{
  color: #f3e29a;
}

.gpConflictsPage .conflictsCardExcerpt{
  color: rgba(236,240,248,0.84);
  margin: 0;
  line-height: 1.65;
  font-size: 14px;
}

.gpConflictsPage .conflictsCardTags{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gpConflictsPage .conflictsCardActions{
  margin-top: auto;
  padding-top: 2px;
}

.gpConflictsPage .pill{
  color: rgba(234,238,247,0.82);
  border-color: rgba(255,255,255,0.12);
}


/* ============================================================
   RIGHT RAIL — LIGHT SHELL, DARK ARTICLE BOXES
============================================================ */

.gpConflictsPage .conflictsRail{
  background: transparent;
}

.gpConflictsPage .conflictsRailSticky{
  position: sticky;
  top: calc(var(--header-h, 72px) + 14px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.gpConflictsPage .conflictsStickyCard,
.gpConflictsPage .conflictsLatestCard{
  border-radius: 22px;
  border: 1px solid rgba(11,31,58,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.97) 0%, rgba(246,249,253,0.97) 100%);
  box-shadow: 0 12px 30px rgba(11,31,58,0.06);
  padding: 18px;
}

.gpConflictsPage .conflictsStickyCard h3,
.gpConflictsPage .conflictsLatestCard > .conflictsRailHead h3{
  color: #0b1f3a;
}

.gpConflictsPage .conflictsStickyCard p{
  color: rgba(11,31,58,0.72);
}

.gpConflictsPage .conflictsMiniStats{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gpConflictsPage .miniStatChip{
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(11,31,58,0.04);
  border: 1px solid rgba(11,31,58,0.08);
  color: rgba(11,31,58,0.72);
  font-size: 12px;
  font-weight: 800;
}

.gpConflictsPage .conflictsRailHead{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.gpConflictsPage .conflictsRailHeadCount{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(212,175,55,0.12);
  border: 1px solid rgba(212,175,55,0.22);
  color: #9a7410;
  font-weight: 900;
  font-size: 13px;
}

.gpConflictsPage .latestListConflicts{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* EACH latest article item stays dark */
.gpConflictsPage .conflictsLatestItem{
  display: grid;
  grid-template-columns: 74px minmax(0,1fr);
  gap: 12px;
  align-items: start;
  padding: 10px;
  border-radius: 16px;
  text-decoration: none;
  background: linear-gradient(180deg, rgba(12,24,45,0.95) 0%, rgba(9,18,35,0.98) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 10px 24px rgba(0,0,0,0.16);
  transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.gpConflictsPage .conflictsLatestItem:hover{
  background: linear-gradient(180deg, rgba(14,28,52,0.98) 0%, rgba(10,20,39,1) 100%);
  border-color: rgba(212,175,55,0.20);
  box-shadow: 0 12px 28px rgba(0,0,0,0.22);
  transform: translateY(-1px);
}

.gpConflictsPage .conflictsLatestItem .latestThumb{
  width: 74px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}

.gpConflictsPage .conflictsLatestItem .latestThumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gpConflictsPage .conflictsLatestItem .latestMeta{
  min-width: 0;
}

.gpConflictsPage .conflictsLatestItem .latestDate{
  margin-bottom: 4px;
  color: rgba(234,238,247,0.78);
  font-size: 12px;
  font-weight: 700;
}

.gpConflictsPage .conflictsLatestItem .latestTitle{
  color: #ffffff;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 800;
}

.gpConflictsPage .latestPagerConflicts{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

/* ============================================================
   PAGERS — CONFLICTS PAGE
============================================================ */

.gpConflictsPage .conflictsPager,
.gpConflictsPage .latestPagerConflicts{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.gpConflictsPage .pagerBtn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(11,31,58,0.10);
  background: #ffffff;
  color: #0b1f3a;
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(11,31,58,0.05);
  transition:
    background .18s ease,
    border-color .18s ease,
    color .18s ease,
    transform .18s ease,
    box-shadow .18s ease,
    opacity .18s ease;
}

.gpConflictsPage .pagerBtn:hover:not(:disabled){
  background: #ffffff;
  border-color: rgba(212,175,55,0.30);
  color: #0b1f3a;
  box-shadow: 0 10px 22px rgba(11,31,58,0.08);
  transform: translateY(-1px);
}

.gpConflictsPage .pagerBtn:disabled{
  opacity: 0.45;
  cursor: default;
  box-shadow: none;
  transform: none;
}

.gpConflictsPage .pagerBtnSmall{
  min-width: 42px;
  padding: 0 12px;
}

.gpConflictsPage .pagerInfo{
  color: rgba(11,31,58,0.72);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.gpConflictsPage .pagerInfoSmall{
  min-width: 96px;
  text-align: center;
}

/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 1080px){
  .gpConflictsPage .conflictsLayoutGrid{
    grid-template-columns: 1fr;
  }

  .gpConflictsPage .conflictsRailSticky{
    position: static;
  }

  .gpConflictsHeroMetrics{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px){
  .gpConflictsPage .conflictsArticlesGrid{
    grid-template-columns: 1fr;
  }

  .gpConflictsPage .conflictsSectionHead,
  .gpConflictsPage .conflictsTopNoteHead{
    flex-direction: column;
    align-items: flex-start;
  }

  .gpConflictsHeroInner{
    padding: 16px 16px 14px;
  }

  .gpConflictsHero .sectionTitle{
    font-size: clamp(38px, 10vw, 52px);
  }
}