/* Shared desktop shell for the Website Client Portal. */
.client-portal-page {
  width: 100% !important;
  max-width: none !important;
  min-height: calc(100svh - 76px);
  margin: 0 !important;
  padding: 0 !important;
}

.site-topbar.client-portal-topbar {
  position: sticky;
  inset: auto;
  top: 0;
  z-index: 60;
  color: #ffffff;
  background: #050a12;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.site-topbar.client-portal-topbar .site-topbar-inner {
  width: min(1180px, calc(100vw - 3rem));
  padding: 1rem 0;
}

.site-topbar.client-portal-topbar .site-brand {
  gap: 0.68rem;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.site-topbar.client-portal-topbar .site-brand img {
  width: 34px;
  height: 34px;
}

.site-topbar.client-portal-topbar .site-nav-actions .site-menu-link,
.site-topbar.client-portal-topbar .site-nav-actions .portal-logout {
  min-height: 44px;
  padding: 0.55rem 0.88rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.site-topbar.client-portal-topbar .site-menu-toggle {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
}

.site-topbar.client-portal-topbar .site-menu-toggle span {
  background: #ffffff;
}

.client-workspace-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  margin: 0 0 1.15rem;
  padding: 0 0 0.7rem;
  position: sticky;
  top: 76px;
  z-index: 20;
  background: #ffffff;
  border-bottom: 1px solid var(--portal-line);
}

.client-workspace-banner .portal-kicker {
  justify-self: start;
  margin: 0;
}

.client-workspace-banner > strong {
  justify-self: center;
  color: var(--portal-ink);
  font-size: 0.78rem;
  font-weight: 800;
}

.client-workspace-banner > span {
  justify-self: end;
  color: var(--portal-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

@media (min-width: 801px) {
  .site-topbar.client-portal-topbar .site-menu-toggle { display: none; }

  .client-portal-page > .portal-layout {
    grid-template-columns: 252px minmax(0, 1fr);
    gap: 0;
    min-height: calc(100svh - 76px);
  }

  .client-portal-page .portal-nav {
    position: sticky;
    top: 76px;
    align-self: stretch;
    height: calc(100svh - 76px);
    overflow-y: auto;
    align-content: start;
    grid-auto-rows: max-content;
    gap: 0.16rem;
    padding: 1.35rem 1rem 2rem;
    border: 0;
    border-right: 1px solid var(--portal-line);
    border-radius: 0;
    box-shadow: none;
  }

  .client-portal-page .portal-nav button,
  .client-portal-page .portal-nav a,
  .client-portal-page .portal-nav span {
    padding: 0.66rem 0.75rem;
  }

  .client-portal-page .portal-nav-label {
    margin: 0.45rem 0.75rem 0.25rem;
  }

  .client-portal-page .portal-nav-divider {
    margin: 0.75rem 0.35rem;
  }

  .client-portal-page .portal-layout > .portal-workspace {
    min-height: calc(100svh - 76px);
    padding: clamp(1.75rem, 4vw, 3.25rem);
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}

@media (max-width: 800px) {
  .client-portal-page {
    width: min(1180px, calc(100vw - 2rem)) !important;
    margin: 0 auto !important;
    padding: 2rem 0 3rem !important;
  }

  .client-workspace-banner {
    grid-template-columns: 1fr auto;
    gap: 0.45rem 0.7rem;
    position: static;
  }

  .client-workspace-banner > strong { grid-column: 1 / -1; grid-row: 1; }
  .client-workspace-banner .portal-kicker,
  .client-workspace-banner > span { grid-row: 2; }
}
