/* =========================================================
   1. BASE FLUID ROOT & SEAMLESS SCREEN-BOTTOM BACKGROUND
   ========================================================= */

/* Locks black background to screen bottom so only the black footer expands */
html {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  background-color: #090909 !important;
  min-height: 100% !important;
}

body {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  background-color: #ffffff !important;
  display: block !important;
  min-height: auto !important;
}

/* Reset outer block theme wrappers back to natural flow */
.wp-site-blocks,
body > div:first-child {
  display: block !important;
  min-height: auto !important;
  flex: none !important;
}

/* =========================================================
   2. FLUID EDGE-TO-EDGE BREAKOUTS
   ========================================================= */

header.se-global-header,
main.se-home,
footer.se-global-footer {
  width: 100% !important;
  max-width: 100% !important;
  position: static !important;
  left: auto !important;
  right: auto !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

/* =========================================================
   3. RESPONSIVE GRID LAYOUTS
   ========================================================= */

.se-feature-grid,
.se-news-grid,
.se-bottom-grid,
.se-story-grid,
.se-values {
  width: 100% !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)) !important;
}

/* =========================================================
   4. BLACK FOOTER BODY & COMPACT RED SLIVER
   ========================================================= */

footer,
footer.se-global-footer,
.wp-block-template-part:has(footer),
.site-footer {
  margin-top: 5px !important; /* 5px tight dock beneath content cards */
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  background: #090909 !important;
  position: relative !important;
  clear: both !important;
  flex: none !important;
}

/* Black main footer body */
.se-footer-main {
  background: #090909 !important;
  padding: 24px 3vw 16px 3vw !important;
}

/* Slim red sliver locked strictly to content height */
.se-footer-bottom {
  background: #b8211c !important;
  padding: 4px 3vw !important; /* Minimal padding for sliver profile */
  min-height: 22px !important;
  line-height: 1 !important;
  margin-bottom: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
}

.se-footer-bottom strong {
  font-size: 8px !important;
  letter-spacing: 1px !important;
  line-height: 1 !important;
}

.se-footer-legal a,
.se-footer-legal span {
  font-size: 7.5px !important;
  line-height: 1 !important;
}
/* =========================================================
   FULL BLEED RESET: ELIMINATE ALL LEFT & RIGHT GUTTERS
   ========================================================= */

/* 1. Root canvas flush reset */
html,
body {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
}

/* 2. Strip default WordPress Block Theme side padding & width caps */
.wp-site-blocks,
.wp-site-blocks > *,
.is-layout-constrained,
.is-layout-flow,
.wp-block-post-content,
.entry-content,
.site-content,
#page,
#primary,
#content,
main {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

/* 3. Force major layout sections flush to screen bounds */
header.se-global-header,
main.se-home,
footer.se-global-footer,
.se-category-bar,
.se-tts-bar {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

/* 4. Pad story grid sections slightly so cards do not touch bare monitor edges */
.se-home .se-home-section {
  padding-left: 12px !important;
  padding-right: 12px !important;
  box-sizing: border-box !important;
}
/* =========================================================
   ELIMINATE GAP ABOVE FOOTER ON VIDEO & MEDIA PAGE
   ========================================================= */

/* 1. Strip default bottom margins/padding from content containers */
.page-id-video-and-media main,
.page-slug-video-and-media main,
.entry-content,
.wp-block-post-content,
.wp-site-blocks > main,
.wp-site-blocks > .entry-content {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* 2. Zero out block gaps injected directly before the footer */
.wp-site-blocks {
  row-gap: 0 !important;
  gap: 0 !important;
}

/* 3. Strip trailing margins from the YouTube Gallery and any adjacent tags */
.entry-content > *:last-child,
.wp-block-post-content > *:last-child,
[class*="youtube_theater"]:last-child,
[class*="youtube-theater"]:last-child,
p:empty {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* 4. Ensure the footer docks flush without top margin */
footer.se-global-footer,
.wp-block-template-part:has(footer) {
  margin-top: 0 !important;
}
/* =========================================================
   ATLASVOICE AUTOMATIC BACKGROUND ADAPTATION
   ========================================================= */

/* 1. Reset AtlasVoice wrappers to transparent so parent/adjacent colors show through */
.se-tts-bar,
.se-tts-bar [class*="atlasvoice"],
atlas-voice {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

/* 2. When placed immediately after the Category Bar, match its crimson color (#b8211c) */
.se-category-bar + .se-tts-bar,
.se-category-bar ~ .se-tts-bar {
  background-color: #b8211c !important;
}

/* 3. When placed immediately below a black header, dark card, or black container */
header + .se-tts-bar,
.se-feature-story + .se-tts-bar,
.se-video-card + .se-tts-bar {
  background-color: #0c0d10 !important;
}

/* 4. Ensure internal AtlasVoice text and buttons adapt cleanly for contrast */
.se-tts-bar button,
.se-tts-bar span,
.se-tts-bar a {
  color: #ffffff !important;
}
