/* Shared masthead sizing. Keep the site frame and scale the visible logo,
   not a letterboxed image box. Scope overrides here to the public header. */
.site-header {
  --masthead-height: 80px;
  height: var(--masthead-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-inline: var(--site-edge);
}
.site-header::after { content: none; }
.site-header .brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  width: clamp(320px, 24vw, 372px);
  height: 100%;
  line-height: 0;
}
.site-header .brand img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  /* Visible artwork is centred about 5% above the source-image centre. */
  transform: translateY(5%);
}
.site-header nav {
  position: static;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  align-self: stretch;
  height: 100%;
  gap: clamp(22px, 1.8vw, 34px);
  transform: none;
}
.site-header nav a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: .025em;
  white-space: nowrap;
}
.site-header nav a.active::after {
  width: 100%;
  height: 3px;
  left: 0;
  bottom: 0;
}
.site-header nav a:focus-visible { outline: none; box-shadow: none; }
.site-header nav a:focus-visible::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -6px;
  right: -6px;
  height: 44px;
  border: 2px solid rgba(16, 39, 79, .54);
  transform: translateY(-50%);
  pointer-events: none;
}
@media (min-width: 801px) and (max-width: 1100px) {
  .site-header { gap: 20px; }
  .site-header .brand { width: clamp(260px, 28vw, 308px); }
  .site-header nav { gap: clamp(16px, 1.75vw, 19px); }
  .site-header nav a { font-size: 16px; }
}
@media (max-width: 800px) {
  .site-header { --masthead-height: 68px; gap: 16px; }
  .site-header .brand { width: clamp(202px, 62vw, 270px); }
  .site-header .nav-toggle {
    display: block;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.25;
  }
  .site-header nav {
    display: none;
    position: absolute;
    top: var(--masthead-height);
    left: 0;
    right: 0;
    height: auto;
  }
  .site-header nav.open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 22px;
    padding: 10px var(--site-edge) 14px;
  }
  .site-header nav a { height: 48px; font-size: 17px; }
  .site-header nav a.active::after { content: none; }
}
