/* Soft side rails + chrome surfaces */

:root {
  --chrome-accent: #008dab;
  --chrome-ink: #0b4660;
  --chrome-surface: rgba(255, 255, 255, 0.92);
  --chrome-shadow: 0 6px 20px rgba(8, 38, 54, 0.08);
}

/* ---- Fixed backdrop: only left & right rails (non-home pages) ---- */
.news-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #e8f0f3;
}

.news-backdrop__veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(
      90deg,
      rgba(232, 240, 243, 0.2) 0%,
      rgba(247, 252, 254, 0.94) 26%,
      rgba(247, 252, 254, 0.98) 50%,
      rgba(247, 252, 254, 0.94) 74%,
      rgba(232, 240, 243, 0.2) 100%
    );
}

.news-backdrop__rails {
  position: absolute;
  inset: -6% 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
}

.news-backdrop__rail {
  width: min(16vw, 200px);
  overflow: hidden;
  opacity: 0.4;
  filter: saturate(0.55) contrast(0.95);
}

.news-backdrop__rail--left { margin-left: 0.4vw; }
.news-backdrop__rail--right { margin-right: 0.4vw; }

.news-backdrop__track {
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: news-backdrop-scroll var(--scroll-duration, 60s) linear infinite;
}

.news-backdrop__rail.is-reverse .news-backdrop__track {
  animation-direction: reverse;
}

.news-backdrop__tile {
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #c5d5dc;
}

.news-backdrop__tile.is-logo {
  display: none;
}

.news-backdrop__tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-backdrop__tile.is-logo img {
  object-fit: contain;
  height: auto;
  max-height: 100%;
}

@keyframes news-backdrop-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, -50%, 0); }
}

@media (max-width: 991.98px) {
  .news-backdrop__rail {
    width: min(20vw, 120px);
    opacity: 0.28;
  }
}

@media (max-width: 575.98px) {
  .news-backdrop { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .news-backdrop__track { animation: none !important; }
}

/* ---- Body stacking ---- */
body.site-body {
  position: relative;
  z-index: 1;
  background: #f3f7f9;
}

body.site-body > .news-backdrop { z-index: 0; }

body.site-body > .topbar,
body.site-body > header,
body.site-body > .site-header,
body.site-body > .container,
body.site-body > .container-fluid,
body.site-body > main,
body.site-body > .site-footer,
body.site-body > .nav-overlay {
  position: relative;
  z-index: 1;
}

body.site-body > .topbar,
body.site-body > header.site-header {
  z-index: 1050;
}

main.site-main-bleed {
  position: relative;
  z-index: 1;
  padding: 0;
  margin: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

body.site-body > .container > main,
body.site-body > .container-fluid > main {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(8, 38, 54, 0.06);
  padding-top: 0.5rem;
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
}

/* ---- Navbar chrome ---- */
.topbar {
  background: rgba(244, 246, 247, 0.96) !important;
  backdrop-filter: blur(12px) saturate(1.02);
  -webkit-backdrop-filter: blur(12px) saturate(1.02);
  border-bottom: 1px solid rgba(11, 70, 96, 0.06) !important;
  box-shadow: none !important;
}

header .navbar,
.site-header .navbar,
nav.navbar.navbar-light {
  background: #f4f6f7;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(11, 70, 96, 0.06);
  box-shadow: 0 4px 14px rgba(8, 38, 54, 0.04);
}
