.site-header .region-panel > p:first-of-type {
  min-height: 24px;
  padding-inline-end: 40px;
}

.site-header .region-panel-close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font: 26px/1 system-ui, sans-serif;
  cursor: pointer;
}

.site-header .region-panel-close:hover,
.site-header .region-panel-close:focus-visible {
  background: rgb(255 255 255 / 10%);
}

@media (min-width: 721px) {
  html body .site-header .brand .brand-claim {
    align-self: flex-start;
    width: 72%;
    margin-inline-start: 16.22%;
    text-align: left;
  }

  .site-header .brand .seo-brand-line { block-size: 2.1em; }
}

@media (min-width: 1101px) {
  .site-header .brand .seo-brand-line { block-size: 3.15em; }
}

@media (min-width: 851px) and (scripting: enabled) {
  /* Keep the copy and order controls in place while their scripts initialize. */
  html body .free-detail-copy:not([data-title-fit]) > :is(h1, .free-tagline):has(> .detail-fit-text) {
    display: flex;
    align-items: center;
    min-width: 0;
    max-width: none;
    overflow: clip;
  }

  .free-detail-copy:not([data-title-fit]) .detail-fit-text { white-space: nowrap; }
  html body .free-detail-copy:not([data-title-fit]) > h1:has(> .detail-fit-text) {
    block-size: calc(var(--detail-title-size) * 1.08);
  }
  html body .free-detail-copy:not([data-title-fit]) > .free-tagline:has(> .detail-fit-text) {
    block-size: 1.5rem;
  }

  .free-purchase .purchase-live[hidden] .purchase-price[hidden] {
    display: flex !important;
    visibility: hidden;
    min-block-size: calc(1.6rem * 1.15);
  }
  .free-purchase .purchase-live[hidden] .purchase-price strong:empty::before {
    content: "0";
  }
}

@media (max-width: 720px) {
  html body .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    grid-template-rows: 28px auto;
    align-items: start;
    gap: 0 8px;
    width: calc(100% - 16px);
    min-height: 0;
    margin-top: 0;
    padding: 0 3px 8px 4px;
  }

  html body .site-header .brand {
    grid-area: 1 / 1 / 3 / 2;
    justify-self: start;
    max-width: 100%;
    margin: 23px 0 0;
    translate: none;
  }

  html body .site-header .region-bar {
    grid-area: 1 / 2;
    justify-self: end;
    margin: 0;
    translate: 0 4px;
  }

  html body .site-header .region-settings summary {
    min-height: 28px;
    padding: 0 2px;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .site-header .region-settings summary::after { margin-left: 0; }

  html body .site-header .menu-toggle[aria-controls] {
    grid-area: 2 / 2;
    justify-self: end;
    justify-content: flex-end;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0 2px 0 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    font-size: 0;
    translate: 0 6px;
  }

  .site-header .menu-toggle > span { display: none; }
  .site-header .menu-toggle::before {
    content: "";
    width: 25px;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    box-shadow: 0 -7px currentColor, 0 7px currentColor;
    transform: translateY(-7px);
  }
}
