/* KSQ concept - banner tone.
   Dark photo: white text, white hamburger, photo darkened.
   Bright photo: brand blue text, blue hamburger, photo brightened.
   The classes are swapped in partials/header*.php from inc/banner-tone.php. */

/* Scrim over the photo, under the text. */
.banner .banner-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
}

/* The scrim is an ::after on an absolutely positioned div, so it paints above
   unpositioned content. Lift the header content or the hero text washes out. */
.ksq-banner-toned .banner .container-top {
  position: relative;
  z-index: 1;
}

/* No image, no empty band: the header takes the height of the brand and the menu.
   The theme's 70vh exists to hold a photo; without one it is just a hole. */
.ksq-banner-plain .banner {
  height: auto;
  overflow: visible;
  padding-bottom: 1.25rem;
}

.ksq-banner-plain .banner .container-top {
  height: auto;
  min-height: 0;
}

/* The theme's menu button is 44x35 - under the 44x44 touch target the design role asks for.
   Padding grows the hit area; the bars stay where they are. */
.ksq-banner-toned .banner .hamburger {
  padding: 5px 0;
  box-sizing: content-box;
}

.ksq-banner-dark .banner .banner-img::after {
  background: rgba(0, 0, 0, .6);
}

.ksq-banner-bright .banner .banner-img::after {
  background: rgba(255, 255, 255, .72);
}

/* Focus ring must stay visible on either ground. */
.ksq-banner-bright .banner .brand:focus-visible,
.ksq-banner-bright .banner .hamburger:focus-visible {
  outline: 2px solid #003363;
  outline-offset: 3px;
}

.ksq-banner-dark .banner .brand:focus-visible,
.ksq-banner-dark .banner .hamburger:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* The theme ships .blueHamburger, but the bars still render white on a bright banner,
   so state the colour here with the same weight the theme uses elsewhere. */
.ksq-banner-bright .banner .hamburger .hamburger-inner,
.ksq-banner-bright .banner .hamburger .hamburger-inner::before,
.ksq-banner-bright .banner .hamburger .hamburger-inner::after {
  background-color: #003363 !important;
}

.ksq-banner-dark .banner .hamburger .hamburger-inner,
.ksq-banner-dark .banner .hamburger .hamburger-inner::before,
.ksq-banner-dark .banner .hamburger .hamburger-inner::after {
  background-color: #fff !important;
}
