/* Global Politics — base.css
   Shared critical CSS used by index.html and article.html.
   Keep page-specific layout in index.css or article.css.
*/

   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: 58px;
  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%
  );
  transform: translateY(0);
  opacity: 1;
  transition:
    transform 0.34s ease,
    opacity 0.24s ease,
    box-shadow 0.24s ease;
  will-change: transform, opacity;
}

#header.gpHeaderHidden{
  transform: translateY(-105%);
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce){
  #header{
    transition: none;
  }
}

.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: 50px;
  }

  .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;
  }
}


/* ============================================================

   11) WEEKLY BRIEFING / SUBSCRIBE
============================================================ */


.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;
  }
}


/* ============================================================
   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);
}


/* ============================================================

   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);
}


/* ============================================================

