/**
 * Schoolyard Melbourn Primary header.
 * Standard two-logo Schoolyard header.
 */

.site-header {
  background: #ffffff;
  margin-bottom: 0;
  padding-top: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: none;
}

.site-header .col-full {
  position: relative;
}

/* Hide original Storefront branding/search so only our controlled logo row appears */
.site-header .site-branding,
.site-header .site-search,
.site-search .widget_product_search,
.site-header .widget form {
  display: none !important;
}

/* Controlled header branding row */
.schoolyard-header-branding {
  position: relative;
  width: 100%;
  height: 130px;
  min-height: 130px;
}

/* Schoolyard logo is centred in the header container */
.schoolyard-header-main-logo {
  position: absolute;
  left: 50%;
  top: 0;
  height: 130px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.schoolyard-header-main-logo a {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Melbourn Primary logo sits on the right of the same header row */
.schoolyard-header-school-logo {
  position: absolute;
  right: 0;
  top: 0;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.schoolyard-header-main-logo img,
.schoolyard-header-school-logo img {
  display: block;
  width: auto;
  height: 130px;
  max-height: 130px;
  object-fit: contain;
}

/* Hide unused spacer in absolute-positioned version */
.schoolyard-header-spacer {
  display: none;
}

/* Mini-cart belongs to the navigation row */
.site-header-cart {
  width: auto;
  margin: 0;
  text-align: right;
  z-index: 20;
}

.site-header-cart .cart-contents {
  display: inline-block;
  padding: 0.75rem 0;
  font-weight: 600;
  text-decoration: none;
}

/* Remove unwanted Storefront focus effects */
.site-header a:focus,
.site-header button:focus,
.site-header-cart a:focus {
  outline: none;
  box-shadow: none;
}

.site-header a:focus-visible,
.site-header button:focus-visible,
.site-header-cart a:focus-visible {
  outline: 1px dotted currentColor;
  outline-offset: 3px;
  box-shadow: none;
}
