/* Give the identity room, then keep the mobile actions on their own row. */
body .site-header {
  --header-logo-size: 104px;
}

body .site-header .header-main {
  box-sizing: border-box;
  align-items: center;
  column-gap: 24px;
  padding-block: 18px;
}

body .site-header .brand {
  align-items: center;
  gap: 18px;
  min-width: 0;
}

body .site-header .brand-logo-orbit {
  width: var(--header-logo-size);
  height: var(--header-logo-size);
  flex: none;
}

body .site-header .brand-logo {
  display: block;
  width: var(--header-logo-size);
  height: var(--header-logo-size);
  max-width: none;
  flex: 0 0 var(--header-logo-size);
  object-fit: contain;
}

/* Desktop ornament: keep the white paper and decorate its empty space. */
@media (min-width: 1024px) {
  body:not(.ekusay-card-page) .site-header {
    isolation: isolate;
  }

  body:not(.ekusay-card-page) .site-header::before {
    content: "";
    position: absolute;
    inset: 0 0 60px;
    z-index: -1;
    pointer-events: none;
    background-image: url('/assets/header-art-deco.svg');
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 1600px 240px;
  }
}

@media (max-width: 900px) {
  body .site-header {
    --header-logo-size: clamp(80px, 22vw, 92px);
  }

  body .site-header .header-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 86px;
    align-items: center;
    gap: 18px 12px;
    width: 100%;
    max-width: 620px;
    margin-inline: auto;
    padding: 20px 18px 18px;
  }

  body .site-header .header-main > .brand {
    grid-column: 1 / -1;
    grid-row: 1;
    display: grid;
    grid-template-columns: var(--header-logo-size) minmax(0, max-content);
    justify-content: center;
    align-items: center;
    gap: 14px;
    width: 100%;
    margin: 0;
    font-size: clamp(18px, 5vw, 23px);
    line-height: 1.15;
  }

  body .site-header .brand-wordmark {
    min-width: 0;
    padding: 0;
    text-align: left;
    white-space: nowrap;
    font-size: inherit;
    line-height: 1.15;
  }

  body .site-header .brand-wordmark::after {
    display: none;
  }

  body .site-header .brand-imprint {
    margin: 0 0 7px;
    font-size: clamp(11.5px, 3.2vw, 13px);
    line-height: 1.35;
    letter-spacing: .8px;
  }

  body .site-header .brand small {
    margin: 0 0 8px;
    font-size: 8px;
    line-height: 1.3;
    letter-spacing: 2.5px;
  }

  body .site-header .brand-main-name {
    font-size: inherit;
    line-height: 1.15;
    letter-spacing: -.6px;
  }

  body .site-header .brand-wordmark .brand-cities {
    margin-top: 8px;
    font-size: 10px !important;
    line-height: 1.5;
  }

  body .site-header .brand-wordmark .brand-caribbean {
    min-height: 29px;
    margin-top: 8px;
    padding: 6px 12px;
    font-size: 11.5px;
  }

  body .site-header .header-main > .btn:not(.ghost) {
    display: flex !important;
    grid-column: 1;
    grid-row: 2;
    align-self: stretch;
    justify-self: stretch;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 48px;
    margin: 0;
    padding: 9px 12px;
    gap: 8px;
    border-radius: 12px;
    font-size: clamp(11.5px, 3.2vw, 13px);
    line-height: 1.35;
    white-space: nowrap;
  }

  body .site-header .header-main > .btn > span {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    font-size: 18px;
  }

  body .site-header .header-main > .menu-toggle {
    display: flex;
    grid-column: 2;
    grid-row: 2;
    align-self: stretch;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 86px;
    min-height: 48px;
    margin: 0;
    padding: 10px 8px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.35;
    white-space: nowrap;
  }

  body .site-header .header-utility {
    display: none;
  }
}

@media (max-width: 360px) {
  body .site-header .header-main {
    grid-template-columns: minmax(0, 1fr) 78px;
    gap: 16px 10px;
    padding-inline: 14px;
  }

  body .site-header .header-main > .brand {
    gap: 10px;
  }

  body .site-header .header-main > .menu-toggle {
    width: 78px;
    font-size: 12px;
  }

  body .site-header .header-main > .btn:not(.ghost) {
    padding-inline: 10px;
    font-size: 11.5px;
  }
}
