/* Brochure shortcut beside FMO Login across the shared header. */
html[data-theme] body .header .brochure-nav-v1 {
  order: 2 !important;
  box-sizing: border-box !important;
  flex: 0 0 94px !important;
  width: 94px !important;
  min-width: 94px !important;
  height: 46px !important;
  min-height: 46px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 9px !important;
  border: 1px solid rgba(243,179,36,.68) !important;
  border-radius: 10px !important;
  background: linear-gradient(180deg,#171a15,#090b09) !important;
  color: #f7c44b !important;
  font: 900 10px/1 Inter,Arial,sans-serif !important;
  letter-spacing: .055em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07) !important;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease !important;
}
html[data-theme] body .header .brochure-nav-v1:hover {
  border-color: #f3b324 !important;
  background: #24200f !important;
  color: #fff !important;
  transform: translateY(-1px) !important;
}
html[data-theme] body .header .brochure-nav-v1:focus-visible {
  outline: 2px solid #ffd56b !important;
  outline-offset: 2px !important;
}

/* The existing desktop control area had no room for another readable button. */
@media (min-width:1541px) {
  html[data-theme] body .header {
    grid-template-columns: 280px minmax(0,1fr) 545px !important;
  }
  html[data-theme] body .header .header-actions-v56 {
    width: 545px !important;
    min-width: 545px !important;
    max-width: 545px !important;
  }
}
@media (min-width:1221px) and (max-width:1540px) {
  html[data-theme] body .header {
    grid-template-columns: 246px minmax(0,1fr) 490px !important;
  }
  html[data-theme] body .header .header-actions-v56 {
    width: 490px !important;
    min-width: 490px !important;
    max-width: 490px !important;
  }
  html[data-theme] body .header .brochure-nav-v1 {
    flex-basis: 90px !important;
    width: 90px !important;
    min-width: 90px !important;
  }
}
/* Use the established drawer until the full section row has room again. */
@media (min-width:1221px) and (max-width:1300px) {
  html[data-theme] body .header .nav-shell,
  html[data-theme] body .header .jump-nav { display: none !important; }
  html[data-theme] body .header .pages-menu-btn-v56 { display: inline-flex !important; }
  html[data-theme] body .header .pages-menu-btn-v56 b {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
  }
}
@media (min-width:561px) and (max-width:1220px) {
  html[data-theme] body .header .brochure-nav-v1 {
    flex-basis: 88px !important;
    width: 88px !important;
    min-width: 88px !important;
    height: 44px !important;
    min-height: 44px !important;
    font-size: 9px !important;
  }
}

/* Phone: keep two rows. The theme control moves into the unused first-row
   space beside the logo, leaving FMO and Brochure together in the action row. */
@media (max-width:560px) {
  html[data-theme] body .header {
    box-sizing: border-box !important;
    top: max(8px,env(safe-area-inset-top)) !important;
    width: calc(100% - 20px - env(safe-area-inset-left) - env(safe-area-inset-right)) !important;
    height: 110px !important;
    min-height: 110px !important;
    max-height: none !important;
    padding: 4px 6px !important;
    display: grid !important;
    grid-template-columns: minmax(0,1fr) !important;
    grid-template-rows: 48px 48px !important;
    gap: 6px !important;
  }
  html[data-theme] body .header .logo {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: min(190px,calc(100% - 70px)) !important;
    min-width: 0 !important;
    height: 48px !important;
    min-height: 48px !important;
  }
  html[data-theme] body .header .header-actions-v56 {
    position: static !important;
    box-sizing: border-box !important;
    grid-column: 1 !important;
    grid-row: 2 !important;
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 2px !important;
    gap: 3px !important;
    justify-content: space-between !important;
    overflow: visible !important;
  }
  html[data-theme] body .header .fmo-login-v56 {
    order: 1 !important;
    box-sizing: border-box !important;
    flex: 1 1 96px !important;
    width: auto !important;
    min-width: 86px !important;
    max-width: none !important;
    min-height: 44px !important;
    padding: 0 5px !important;
    font-size: 9px !important;
    letter-spacing: .025em !important;
    white-space: nowrap !important;
  }
  html[data-theme] body .header .brochure-nav-v1 {
    order: 2 !important;
    flex: 0 0 78px !important;
    width: 78px !important;
    min-width: 78px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 3px !important;
    font-size: 8px !important;
    letter-spacing: .025em !important;
  }
  html[data-theme] body .header .a11y-menu-v163 {
    order: 3 !important;
    flex: 0 0 44px !important;
    width: 44px !important;
    min-width: 44px !important;
  }
  html[data-theme] body .header .pages-menu-btn-v56 {
    order: 4 !important;
    flex: 0 0 44px !important;
    width: 44px !important;
    min-width: 44px !important;
  }
  html[data-theme] body .header .header-actions-v56 .sky-theme-switch[data-theme-toggle] {
    position: absolute !important;
    top: 6px !important;
    right: 8px !important;
    order: 5 !important;
    width: 60px !important;
    min-width: 60px !important;
    max-width: 60px !important;
    min-height: 44px !important;
    margin: 0 !important;
  }
  html[data-theme] body .header .social-link-v75 { display: none !important; }
  html[data-theme] body:not(.fueltek-home-header-clearance):not(.about-fueltek-page) {
    padding-top: 132px !important;
  }
  html:has(body:not(.about-fueltek-page)) { scroll-padding-top: 138px; }
}
