/* The top inset scrolls out of view before the navigation docks. Its height
   stays in document flow, so shrinking the header never moves the content. */
.mast {
  --inset: 1.25rem;
  position: sticky;
  top: calc(0px - var(--inset));
  z-index: 10;
  padding-top: var(--inset);
  background: #fffffff5;
  border-bottom: 1px solid #e8e5ea;
  backdrop-filter: blur(14px);
}
.mast-row {
  width: min(91%, 75rem);
  margin: auto;
  min-height: 3.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}
.brand { flex: 0 1 auto; min-width: 0; }
.brand img { display: block; width: clamp(7.5rem, 17vw, 13rem); height: auto; transform-origin: left center; }
.mast nav { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem clamp(.8rem, 2.4vw, 2rem); }
.mast nav a { color: #24202b; font-size: .94rem; font-weight: 650; text-decoration: none; }
.mast nav a:hover { color: #b00051; text-decoration: underline; text-underline-offset: .3em; }
.mast .account-link { padding: .5rem .85rem; border: 1px solid #d5ced6; border-radius: 2rem; }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .mast-row, .brand img {
      animation: center-header linear both;
      animation-timeline: scroll(root);
      animation-range: 0 5rem;
    }
    .brand img { animation-name: shrink-brand; }
    @keyframes center-header { from { translate: 0 -.5rem; } to { translate: 0 0; } }
    @keyframes shrink-brand { from { scale: 1; } to { scale: .85; } }
  }
}
@media (max-width: 37rem) {
  .mast { --inset: .75rem; }
  .mast-row { min-height: 3.35rem; }
  .mast nav { column-gap: .7rem; }
  .mast nav a { font-size: .85rem; }
  .mast .account-link { padding: .35rem .55rem; }
}
@media (max-width: 23rem) {
  .mast-row { width: 95%; gap: .4rem; }
  .brand img { width: 6.35rem; }
  .mast nav { column-gap: .5rem; }
}
