/* MODULIQ Newsroom v1.6.8 — controlled Wide/header/ticker repair */

/* ========================================================================
   WIDE MODE
   One outer rail. Children use 100% of that rail; no nested 90% calculations.
   ======================================================================== */
body.mq-unified-frontend-shell.mq-theme-wide{
  --mq-v168-rail:min(var(--mq-v168-wide-percent,90%),var(--mq-v168-wide-max,1920px));
  overflow-x:hidden!important;
}

/* Global shell + direct page payload. */
body.mq-unified-frontend-shell.mq-theme-wide .mq-ticker-inner,
body.mq-unified-frontend-shell.mq-theme-wide .mq-header-main,
body.mq-unified-frontend-shell.mq-theme-wide .mq-nav-separate>.mq-nav-inner,
body.mq-unified-frontend-shell.mq-theme-wide .mq-featured-newsbar>.mq-container,
body.mq-unified-frontend-shell.mq-theme-wide main.mq-site-content>.mq-container,
body.mq-unified-frontend-shell.mq-theme-wide main.mq-site-content>.mq-v110-visual-home,
body.mq-unified-frontend-shell.mq-theme-wide .mq-footer-builder-shell,
body.mq-unified-frontend-shell.mq-theme-wide .mq-footer[data-mq-footer-v132] .mq-footer-builder-shell{
  width:var(--mq-v168-rail)!important;
  max-width:var(--mq-v168-wide-max,1920px)!important;
  margin-left:auto!important;
  margin-right:auto!important;
  box-sizing:border-box!important;
}

/* Visual Homepage Builder already lives inside the global Wide rail. Every
   internal row therefore fills that rail, never 90% of 90% and never 100vw. */
body.mq-unified-frontend-shell.mq-theme-wide main.mq-site-content>.mq-v110-visual-home{
  overflow:visible!important;
}
body.mq-unified-frontend-shell.mq-theme-wide .mq-v110-visual-home .mq-v110-home-row,
body.mq-unified-frontend-shell.mq-theme-wide .mq-v110-visual-home .mq-v110-row-inner,
body.mq-unified-frontend-shell.mq-theme-wide .mq-v110-visual-home .mq-v110-home-grid{
  width:100%!important;
  max-width:100%!important;
  margin-left:0!important;
  margin-right:0!important;
  transform:none!important;
  box-sizing:border-box!important;
}
body.mq-unified-frontend-shell.mq-theme-wide .mq-v110-visual-home .mq-v110-row-inner{
  padding-left:0!important;
  padding-right:0!important;
}

/* Classic homepage path: its direct .mq-container owns the Wide rail. Anything
   inside must use the available width and may not recreate viewport escapes. */
body.mq-unified-frontend-shell.mq-theme-wide main.mq-site-content>.mq-container .mq-v048-section,
body.mq-unified-frontend-shell.mq-theme-wide main.mq-site-content>.mq-container .mq-v048-classic-wrap,
body.mq-unified-frontend-shell.mq-theme-wide main.mq-site-content>.mq-container .mq-v048-width-content,
body.mq-unified-frontend-shell.mq-theme-wide main.mq-site-content>.mq-container .mq-v048-width-wide,
body.mq-unified-frontend-shell.mq-theme-wide main.mq-site-content>.mq-container .mq-v048-width-full,
body.mq-unified-frontend-shell.mq-theme-wide main.mq-site-content>.mq-container .mq-section,
body.mq-unified-frontend-shell.mq-theme-wide main.mq-site-content>.mq-container .mq-hero,
body.mq-unified-frontend-shell.mq-theme-wide main.mq-site-content>.mq-container .mq-layout{
  width:100%!important;
  max-width:100%!important;
  margin-left:0!important;
  margin-right:0!important;
  transform:none!important;
  box-sizing:border-box!important;
}

/* Historical full-width rules sometimes used 100vw / left:50% / translateX.
   Neutralise those only in global Wide mode. */
body.mq-unified-frontend-shell.mq-theme-wide .mq-site-content [class*="mq-v048-width-"],
body.mq-unified-frontend-shell.mq-theme-wide .mq-site-content .mq-v110-home-row,
body.mq-unified-frontend-shell.mq-theme-wide .mq-site-content .mq-hero,
body.mq-unified-frontend-shell.mq-theme-wide .mq-site-content .mq-section{
  left:auto!important;
  right:auto!important;
  translate:none!important;
}

/* ========================================================================
   HEADER / LOGO
   One deterministic logo slot in every frontend context and every width mode.
   ======================================================================== */
body.mq-unified-frontend-shell .mq-header-main .mq-brand{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  width:var(--mq-v168-logo-width,260px)!important;
  min-width:var(--mq-v168-logo-width,260px)!important;
  max-width:var(--mq-v168-logo-width,260px)!important;
  flex:0 0 var(--mq-v168-logo-width,260px)!important;
  overflow:visible!important;
  position:relative!important;
  z-index:8!important;
  visibility:visible!important;
  opacity:1!important;
}
body.mq-unified-frontend-shell .mq-header-main .mq-logo-link{
  display:grid!important;
  grid-template-areas:"logo"!important;
  align-items:center!important;
  justify-items:start!important;
  width:100%!important;
  min-width:100%!important;
  max-width:100%!important;
  height:var(--mq-v168-logo-height,58px)!important;
  overflow:visible!important;
  visibility:visible!important;
  opacity:1!important;
}
body.mq-unified-frontend-shell .mq-header-main .mq-mode-logo{
  grid-area:logo!important;
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  height:var(--mq-v168-logo-height,58px)!important;
  max-height:var(--mq-v168-logo-height,58px)!important;
  object-fit:contain!important;
  object-position:left center!important;
  visibility:visible!important;
  opacity:1!important;
}
body.mq-unified-frontend-shell .mq-header-main .mq-logo-dark{
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}
:root[data-mq-mode="dark"] body.mq-unified-frontend-shell .mq-header-main .mq-logo-light{
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}
:root[data-mq-mode="dark"] body.mq-unified-frontend-shell .mq-header-main .mq-logo-dark{
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
}

body.mq-unified-frontend-shell.mq-nav-location-header .mq-header-main{
  display:grid!important;
  grid-template-columns:var(--mq-v168-logo-width,260px) minmax(0,1fr) max-content!important;
  align-items:center!important;
  gap:clamp(16px,1.7vw,30px)!important;
}
body.mq-unified-frontend-shell.mq-nav-location-header .mq-nav-inline,
body.mq-unified-frontend-shell.mq-nav-location-header .mq-nav-inline .mq-nav-inner,
body.mq-unified-frontend-shell.mq-nav-location-header .mq-nav-inline .mq-menu-wrap{
  min-width:0!important;
  max-width:100%!important;
}

/* ========================================================================
   BREAKING NEWS — single line TV crawl
   Label and Subscribe are fixed columns. Only the middle viewport moves.
   ======================================================================== */
body.mq-unified-frontend-shell .mq-ticker{
  height:48px!important;
  min-height:48px!important;
  overflow:hidden!important;
}
body.mq-unified-frontend-shell .mq-ticker-inner{
  height:48px!important;
  min-height:48px!important;
  display:grid!important;
  grid-template-columns:max-content minmax(0,1fr) max-content!important;
  align-items:center!important;
  gap:18px!important;
  overflow:hidden!important;
}
body.mq-unified-frontend-shell .mq-ticker-label{
  grid-column:1!important;
  grid-row:1!important;
  display:inline-flex!important;
  align-items:center!important;
  height:30px!important;
  margin:0!important;
  position:relative!important;
  z-index:20!important;
  white-space:nowrap!important;
  flex-wrap:nowrap!important;
}
body.mq-unified-frontend-shell .mq-ticker-viewport{
  grid-column:2!important;
  grid-row:1!important;
  position:relative!important;
  min-width:0!important;
  width:100%!important;
  height:30px!important;
  overflow:hidden!important;
  white-space:nowrap!important;
  z-index:1!important;
  mask-image:none!important;
  -webkit-mask-image:none!important;
}
body.mq-unified-frontend-shell .mq-ticker-marquee{
  display:flex!important;
  flex-flow:row nowrap!important;
  align-items:center!important;
  width:max-content!important;
  min-width:max-content!important;
  height:30px!important;
  white-space:nowrap!important;
  transform:none!important;
  animation:mq-v168-breaking-scroll var(--mq-breaking-duration,70s) linear infinite!important;
  will-change:transform;
}
body.mq-unified-frontend-shell .mq-ticker-sequence{
  display:flex!important;
  flex:0 0 auto!important;
  flex-flow:row nowrap!important;
  align-items:center!important;
  width:max-content!important;
  min-width:max-content!important;
  height:30px!important;
  padding:0 28px 0 0!important;
  margin:0!important;
  white-space:nowrap!important;
  overflow:visible!important;
}
body.mq-unified-frontend-shell .mq-ticker-sequence a{
  display:inline-flex!important;
  flex:0 0 auto!important;
  align-items:center!important;
  height:30px!important;
  width:max-content!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  color:#fff!important;
  opacity:1!important;
  visibility:visible!important;
  overflow:visible!important;
  white-space:nowrap!important;
  font-size:15px!important;
  font-weight:700!important;
  line-height:30px!important;
  letter-spacing:0!important;
}
body.mq-unified-frontend-shell .mq-ticker-separator{
  display:inline-flex!important;
  flex:0 0 auto!important;
  align-items:center!important;
  justify-content:center!important;
  height:30px!important;
  margin:0 18px!important;
  padding:0!important;
  white-space:nowrap!important;
  color:rgba(255,255,255,.5)!important;
  line-height:30px!important;
}
body.mq-unified-frontend-shell .mq-ticker-subscribe{
  grid-column:3!important;
  grid-row:1!important;
  justify-self:end!important;
  align-self:center!important;
  flex:0 0 auto!important;
  margin:0!important;
  position:relative!important;
  z-index:20!important;
  white-space:nowrap!important;
}
body.mq-unified-frontend-shell .mq-ticker:hover .mq-ticker-marquee,
body.mq-unified-frontend-shell .mq-ticker:focus-within .mq-ticker-marquee{
  animation-play-state:paused!important;
}
@keyframes mq-v168-breaking-scroll{
  from{transform:translate3d(0,0,0)}
  to{transform:translate3d(-50%,0,0)}
}

/* Legacy ticker runner no longer participates. */
body.mq-unified-frontend-shell .mq-ticker-track{display:none!important}

@media(max-width:1280px) and (min-width:761px){
  body.mq-unified-frontend-shell .mq-header-main .mq-brand{
    width:min(220px,var(--mq-v168-logo-width,260px))!important;
    min-width:min(220px,var(--mq-v168-logo-width,260px))!important;
    max-width:min(220px,var(--mq-v168-logo-width,260px))!important;
    flex-basis:min(220px,var(--mq-v168-logo-width,260px))!important;
  }
  body.mq-unified-frontend-shell.mq-nav-location-header .mq-header-main{
    grid-template-columns:min(220px,var(--mq-v168-logo-width,260px)) minmax(0,1fr) max-content!important;
  }
}

@media(max-width:760px){
  body.mq-unified-frontend-shell.mq-theme-wide{
    --mq-v168-rail:calc(100% - 24px);
  }
  body.mq-unified-frontend-shell .mq-ticker-inner{gap:8px!important}
  body.mq-unified-frontend-shell .mq-ticker-sequence a{font-size:13px!important}
  body.mq-unified-frontend-shell .mq-ticker-subscribe{padding:7px 10px!important;font-size:11px!important}
  body.mq-unified-frontend-shell .mq-header-main .mq-brand{
    width:min(190px,52vw)!important;
    min-width:0!important;
    max-width:min(190px,52vw)!important;
    flex:1 1 auto!important;
  }
  body.mq-unified-frontend-shell .mq-header-main .mq-logo-link,
  body.mq-unified-frontend-shell .mq-header-main .mq-mode-logo{
    height:42px!important;
    max-height:42px!important;
  }
}

@media(max-width:520px){
  body.mq-unified-frontend-shell .mq-ticker-label{display:none!important}
  body.mq-unified-frontend-shell .mq-ticker-inner{grid-template-columns:minmax(0,1fr) max-content!important}
  body.mq-unified-frontend-shell .mq-ticker-viewport{grid-column:1!important}
  body.mq-unified-frontend-shell .mq-ticker-subscribe{grid-column:2!important}
}

@media(prefers-reduced-motion:reduce){
  body.mq-unified-frontend-shell .mq-ticker-marquee{animation:none!important;transform:none!important}
  body.mq-unified-frontend-shell .mq-ticker-sequence[aria-hidden="true"]{display:none!important}
  body.mq-unified-frontend-shell .mq-ticker-sequence{max-width:100%!important;overflow:hidden!important}
  body.mq-unified-frontend-shell .mq-ticker-sequence a:not(:first-of-type),
  body.mq-unified-frontend-shell .mq-ticker-separator{display:none!important}
  body.mq-unified-frontend-shell .mq-ticker-sequence a:first-of-type{max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important}
}
