/* Sdílený anonymní shell. LicServer ho načítá spolu se site.css. */

.product-brand {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  color: inherit;
  text-decoration: none;
}

.product-brand:hover,
.product-brand:focus-visible {
  color: inherit;
  text-decoration: none;
}

.product-brand-logo {
  display: block;
  flex-shrink: 0;
  width: auto;
  max-width: none;
  height: auto;
  aspect-ratio: 166 / 30;
  object-fit: contain;
  object-position: left center;
}

.product-brand-logo--dark {
  display: none;
}

.product-brand--account {
  display: block;
  width: 100%;
  max-width: 100%;
}

.product-brand--account .product-brand-logo {
  height: auto;
  max-height: 3.25rem;
  max-width: 100%;
}

.account-page {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  color-scheme: light;
  background-color: #f8f9fa;
  color: #212529;
}

.account-page .form-label,
.account-page .form-check-label,
.account-page h1,
.account-page h2,
.account-page h3,
.account-page .account-page-brand {
  color: #212529;
}

.account-page .form-control {
  color: #212529;
  background-color: #fff;
  border-color: #ced4da;
}

.account-page-header,
.account-page-footer {
  background-color: #fff;
}

.account-page-header {
  flex-shrink: 0;
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--bs-border-color);
}

.account-page-brand-zone {
  box-sizing: border-box;
  width: 33.333%;
  max-width: 33.333vw;
  padding-left: clamp(1rem, 2.5vw, 1.75rem);
  padding-right: 0.75rem;
}

.account-page-header .account-page-brand-zone {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.account-page-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  padding-right: clamp(1rem, 2.5vw, 1.75rem);
}

.account-page-main {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  align-items: center;
  padding: 1rem 1rem 1rem 0;
}

.account-page-brand-spacer {
  flex: 0 0 33.333%;
  max-width: 33.333vw;
  min-width: 0;
}

.account-page-content {
  flex: 1 1 auto;
  width: 100%;
  max-width: 420px;
  min-width: 0;
  padding-right: clamp(1rem, 2.5vw, 1.75rem);
}

.account-page-footer {
  flex-shrink: 0;
  border-top: 1px solid #dee2e6;
  display: flex;
  padding: 0.4rem 0 0.5rem;
}

.account-page-footer .account-page-brand-zone {
  text-align: left;
}

.account-page-version {
  display: block;
  font-size: 0.6875rem;
  line-height: 1.3;
  color: var(--bs-secondary-color);
}

.account-page-version .font-monospace {
  word-break: break-all;
}

.account-page-brand {
  color: var(--bs-body-color);
  text-decoration: none;
}

.account-page-brand:hover {
  color: var(--bs-body-color);
  text-decoration: none;
}

.account-form-panel {
  max-width: 420px;
}

body:has(.account-page) {
  overflow: hidden;
  height: 100dvh;
}

.shell-culture {
  display: inline-flex;
  gap: 0.35rem;
}

.shell-culture-link {
  color: #495057;
  text-decoration: none;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.35rem;
  border-radius: 0.25rem;
}

.shell-culture-link.is-active {
  color: #0b2d5c;
  font-weight: 600;
  background: #e9eef5;
}

@media (max-width: 767.98px) {
  .account-page-brand-zone,
  .account-page-brand-spacer {
    width: 100%;
    max-width: none;
  }

  .account-page-brand-spacer {
    display: none;
  }

  .account-page-main {
    padding: 1rem;
    justify-content: center;
  }

  .account-page-content {
    max-width: 420px;
    padding-right: 0;
  }

  .product-brand--account .product-brand-logo {
    max-height: 2.5rem;
    max-width: min(100%, calc(2.5rem * 166 / 30));
  }
}
