/* QBK site header, copied from the calendar's styles.css; the phone layout always applies here. */
.site-header { position: relative; z-index: 4; background: #fff; border-bottom: 1px solid #e9edf0; color: #111; font: 1rem/1.5 system-ui, sans-serif; }
.site-header-inner { display: flex; align-items: center; gap: clamp(.8rem, 2.4vw, 2rem); width: min(100% - 2rem, 74rem); min-height: 6.25rem; margin-inline: auto; }
.site-header a { color: inherit; font-weight: 700; text-decoration: none; }
.site-header a:hover { color: #277f69; }
.site-logo img { display: block; width: 5.9rem; height: auto; }
.site-nav { display: flex; flex: 1; justify-content: space-evenly; align-items: center; gap: 1rem; font: 700 .76rem/1.4 Arial, sans-serif; text-transform: uppercase; }
.site-court { flex: none; font-weight: 700; padding: .35rem 1.05rem; border: 3px solid transparent; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(#a8cfbe, #efb53f) border-box; }
.site-header .site-account { position: relative; flex: none; width: 2.7rem; height: 2.7rem; border-radius: 50%; background: #080808; color: #fff; }
.site-account::before, .site-account::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); border: 2px solid currentColor; }
.site-account::before { top: .55rem; width: .42rem; height: .42rem; border-radius: 50%; }
.site-account::after { top: 1.35rem; width: .87rem; height: .58rem; border-width: 2px 2px 0; border-radius: .8rem .8rem 0 0; }
.site-mobile-menu { display: none; }
@media all {
  .site-header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; min-height: 4.5rem; gap: .5rem; }
  .site-nav, .site-court { display: none; }
  .site-logo { grid-area: 1 / 1; justify-self: start; }
  .site-logo img { width: 4.25rem; }
  .site-account { grid-area: 1 / 2; }
  .site-header .site-account:not(.has-name):not(.has-photo) { display: none; }
  .site-mobile-menu { display: block; grid-area: 1 / 3; }
  .site-mobile-menu > summary { display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
    border-radius: .4rem; list-style: none; cursor: pointer; }
  .site-mobile-menu summary::-webkit-details-marker { display: none; }
  .site-mobile-menu > summary::after { content: ""; width: 1.35rem; height: .8rem;
    border-block: 2px solid currentColor;
    background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat; }
  .site-mobile-menu[open] > summary::after {
    width: 1.35rem; height: 1.35rem; border: 0;
    background: linear-gradient(45deg, transparent 46%, currentColor 46% 54%, transparent 54%),
                linear-gradient(-45deg, transparent 46%, currentColor 46% 54%, transparent 54%);
  }
  .site-mobile-links {
    position: absolute; inset: 100% 0 auto; background: #fff; box-shadow: none;
    box-sizing: border-box;
    display: flex; flex-direction: column;
    height: calc(var(--phone-height, 100dvh) - 4.5rem - 1px - env(safe-area-inset-top));
    overflow-y: auto; overscroll-behavior: contain;
    padding: 1rem 1.25rem max(1rem, env(safe-area-inset-bottom));
  }
  .site-mobile-links > a {
    flex: none;
    display: block; padding: .9rem 0; border-bottom: 1px solid #e9edf0;
    text-transform: none; font: 700 1.5rem/1.25 "Space Grotesk", system-ui, sans-serif;
  }
  .site-mobile-links a[aria-current="page"] { color: #205f4d; }
  .site-mobile-links > [hidden] { display: none; }
  .site-mobile-profile {
    display: flex; flex: none; align-items: center; gap: .75rem;
    margin-block-start: 1.5rem;
    padding-block: 1rem; border-block: 1px solid #e9edf0; color: #172523;
  }
  .site-mobile-profile:not([hidden]) ~ .site-mobile-social { margin-top: auto; }
  .site-mobile-account-summary {
    flex: none; padding-block: .35rem .55rem; border-bottom: 1px solid #e9edf0;
    color: #172523; font-size: .875rem;
  }
  .site-mobile-account-summary :is(dl, p) { margin: 0; }
  .site-mobile-account-summary p { padding-block: .6rem; color: #455e56; }
  .site-mobile-account-summary dl > div {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: .75rem;
    align-items: baseline; padding-block: .5rem;
  }
  .site-mobile-account-summary dl > div + div { border-top: 1px solid #e9edf0; }
  .site-mobile-account-summary dt { font-weight: 600; }
  .site-mobile-account-summary dd { margin: 0; color: #455e56; text-align: right; overflow-wrap: anywhere; }
  .site-header .site-mobile-profile-photo {
    position: relative; flex: none; padding: .2rem; border: 1px solid #d5dfd9; border-radius: 50%;
  }
  .site-mobile-profile-avatar {
    display: grid; place-items: center; width: 3.2rem; height: 3.2rem;
    overflow: hidden; border-radius: 50%; background: #172523; color: #fff;
  }
  .site-mobile-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
  .site-mobile-profile-photo svg {
    position: absolute; bottom: -.15rem; right: -.15rem; box-sizing: border-box;
    width: 1.4rem; height: 1.4rem; padding: .23rem; border: 1px solid #d5dfd9;
    border-radius: 50%; background: #fff; color: #205f4d;
  }
  .site-header .site-mobile-profile-name {
    display: block; padding: 0; font: 700 1.15rem/1.25 "Space Grotesk", system-ui, sans-serif;
    text-transform: none;
  }
  .site-mobile-profile-actions { display: flex; flex-wrap: wrap; gap: .45rem 1rem; margin-top: .35rem; }
  .site-header .site-mobile-profile-actions a, .site-mobile-profile-actions button {
    padding: 0; border: 0; background: transparent; color: #205f4d;
    font: inherit; font-size: .875rem; font-weight: 600; text-transform: none; cursor: pointer;
  }
  .site-mobile-profile-actions :is(a, button):hover { text-decoration: underline; }
  .site-mobile-profile p { margin: .35rem 0 0; font-size: .8rem; }
  .site-mobile-social {
    display: flex; flex: none; justify-content: center; gap: .75rem;
  }
  .site-header .site-mobile-social a {
    display: grid; place-items: center; box-sizing: border-box; width: 2.75rem; height: 2.75rem;
    padding: 0; border-radius: 50%; color: #172523;
  }
  .site-header .site-mobile-social a:is(:hover, :focus-visible) { background: #eef8f3; color: #205f4d; }
  .site-mobile-social svg { width: 1.4rem; height: 1.4rem; }
}
.embed-mode .site-header { display: none; }
.site-account img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.site-account.has-photo::before, .site-account.has-photo::after { display: none; }

/* Header account chip: photo + first name, like the dashboard's profile block. */
.site-header .site-account.has-name { display: inline-flex; align-items: center; gap: .5rem; width: auto; height: 2.7rem;
  padding: 0 .7rem 0 .25rem; border-radius: 999px; background: #fff; color: #172523; box-shadow: inset 0 0 0 1px #d5dfd9; }
.site-header .site-account.has-name .site-account-avatar { width: 2.2rem; height: 2.2rem; }
.site-header .site-account.has-name::before, .site-header .site-account.has-name::after { display: none; }
.site-account-avatar { position: relative; flex: none; display: grid; place-items: center; width: 2.7rem; height: 2.7rem;
  border-radius: 50%; overflow: hidden; background: #080808; color: #fff; font: 700 1rem/1 "Space Grotesk", system-ui, sans-serif; }
.site-header .site-account .site-account-avatar img { position: static; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.site-account-name { min-width: 0; max-width: 7rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 700 .95rem/1.2 "Space Grotesk", system-ui, sans-serif; }
@media all {
  .site-header .site-account.has-name { gap: .4rem; padding-right: .7rem; }
  .site-account-name { max-width: 4.6rem; font-size: .9rem; }
}
@media (max-width: 359px) {
  .site-header .site-account.has-name { gap: 0; padding: 0; box-shadow: none; background: transparent; }
  .site-header .site-account.has-name .site-account-avatar { width: 2.7rem; height: 2.7rem; }
  .site-account-name { display: none; }
}

html:has(.site-header .site-mobile-menu[open]) { overflow: hidden; }
