/* Shared header geometry for every public page (GitHub issue #38).
   Each page links this file after its own stylesheet, so these .site-header-scoped rules win over
   the divergent per-page header, shell and logo declarations without editing them. The home page
   is the reference: a 76px fixed header with a centred 1200px column and a 150x44 brand box,
   collapsing to 58px / 112x38 at the 760px mobile breakpoint. */

.site-header {
  box-sizing: border-box;
  height: 76px;
}

/* .header-inner also carries each page's .shell class. height: 100% resolves against the header's
   75px content box (76px minus the 1px bottom border), so the brand centres to the same half
   pixel on every route. min-height: 0 neutralises the Return Platform mobile min-height: 58px,
   which would otherwise make the row 1px taller than the header it sits in. */
.site-header .header-inner {
  width: min(1200px, calc(100% - 48px));
  height: 100%;
  min-height: 0;
  margin-inline: auto;
  padding: 0;
}

/* The brand link and its logo occupy one 150x44 box. object-fit keeps the logo's own aspect
   ratio inside that box, matching the home page's rendering. */
.site-header .brand {
  display: inline-flex;
  align-items: center;
  width: 150px;
  height: 44px;
  flex: 0 0 auto;
}

.site-header .brand img {
  display: block;
  width: 150px;
  height: 44px;
  object-fit: contain;
}

@media (max-width: 760px) {
  .site-header {
    height: 58px;
  }

  .site-header .header-inner {
    width: calc(100% - 32px);
  }

  .site-header .brand {
    width: 112px;
    height: 38px;
  }

  .site-header .brand img {
    width: 112px;
    height: 38px;
  }
}
