:root {
  --page-content-width: 64rem;
}

body.sidebar-lock {
  overflow: hidden;
}

.sidebar-toggle {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.92);
  color: #20372b;
  padding: 0.85rem 1.15rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 22px 44px rgba(23, 36, 24, 0.22);
  backdrop-filter: blur(18px);
}

.sidebar-toggle:focus-visible,
.site-sidebar .sidebar-close:focus-visible,
.sidebar-overlay:focus-visible,
.topbar-title-link:focus-visible,
.topbar-logo-link:focus-visible,
.topbar-anbi:focus-visible,
.site-sidebar .sidebar-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.96);
  outline-offset: 3px;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 55;
  border: 0;
  background: rgba(15, 28, 21, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.page-shell.sidebar-open .sidebar-overlay {
  opacity: 1;
  pointer-events: auto;
}

.page-topbar {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 1rem 1rem 0 5.75rem;
}

.page-topbar-inner {
  max-width: var(--page-content-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 1.75rem;
  background:
    linear-gradient(180deg, rgba(32, 55, 43, 0.9), rgba(39, 66, 52, 0.86)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 35%);
  color: #ffffff;
  padding: 1rem 1.1rem;
  box-shadow: 0 24px 64px rgba(18, 34, 24, 0.18);
  backdrop-filter: blur(18px);
}

.topbar-logo-link,
.topbar-title-link {
  color: inherit;
  text-decoration: none;
}

.topbar-logo-link {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.5rem;
  background: rgba(14, 28, 20, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 36px rgba(12, 24, 18, 0.22);
}

.topbar-logo {
  width: 4.35rem;
  height: 4.35rem;
  border-radius: 1.35rem;
  background: transparent;
  object-fit: contain;
}

.topbar-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.topbar-eyebrow {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.topbar-title {
  display: block;
  margin-top: 0.3rem;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 0.98;
  font-weight: 600;
  color: #ffffff;
}

.topbar-intro {
  margin: 0.55rem 0 0;
  max-width: none;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.84rem;
  line-height: 1.5;
  white-space: nowrap;
}

.topbar-anbi {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0.95rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 30px rgba(15, 30, 21, 0.18);
}

.topbar-anbi img {
  display: block;
  width: auto !important;
  height: 48px !important;
}

.site-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 60;
  width: min(19.75rem, calc(100vw - 1.5rem));
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(25, 47, 37, 0.98), rgba(35, 61, 48, 0.96)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 26%);
  box-shadow: 0 30px 80px rgba(16, 31, 22, 0.4);
  overflow-y: auto;
  transform: translateX(-108%);
  transition: transform 280ms ease;
}

.page-shell.sidebar-open .site-sidebar {
  transform: translateX(0);
}

.site-sidebar-inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  box-sizing: border-box;
}

.sidebar-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.25rem 0.25rem 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-kicker {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.sidebar-title {
  margin: 0.3rem 0 0;
  color: #ffffff;
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 600;
}

.site-sidebar .site-nav,
.site-sidebar .navbar {
  width: 100%;
}

.site-sidebar .navbar {
  display: block;
}

.site-sidebar .sidebar-close {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 0.78rem 0.98rem;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: none;
}

.site-sidebar .sidebar-links {
  display: flex !important;
  flex-direction: column;
  gap: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.45rem;
  background: rgba(255, 255, 255, 0.07);
  padding: 0.45rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.site-sidebar .sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  color: rgba(255, 255, 255, 0.86) !important;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.site-sidebar .sidebar-link::after {
  content: ">";
  color: rgba(255, 255, 255, 0.34);
  transition: transform 180ms ease, color 180ms ease;
}

.site-sidebar .sidebar-link:hover,
.site-sidebar .sidebar-link:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
  transform: translateX(2px);
}

.site-sidebar .sidebar-link:hover::after,
.site-sidebar .sidebar-link:focus-visible::after {
  color: rgba(255, 255, 255, 0.78);
  transform: translateX(2px);
}

.site-sidebar .sidebar-link-active {
  background: rgba(255, 255, 255, 0.95);
  color: #20372b !important;
  box-shadow: 0 14px 28px rgba(10, 18, 13, 0.18);
}

.site-sidebar .sidebar-link-active::after,
.site-sidebar .sidebar-link-active:hover::after,
.site-sidebar .sidebar-link-active:focus-visible::after {
  color: rgba(32, 55, 43, 0.42);
}

.site-sidebar .sidebar-link-active:hover,
.site-sidebar .sidebar-link-active:focus-visible {
  background: #ffffff;
  color: #20372b !important;
}

.page-main {
  padding-top: 1.5rem;
}

.page-main > .content {
  max-width: var(--page-content-width);
}

.page-main > .content.form-card {
  max-width: var(--page-content-width);
}

.page-main > .content .bootstrap-form {
  width: 100%;
  max-width: none;
}

.site-footer .footer-inner {
  max-width: var(--page-content-width);
}

@media (max-width: 767.98px) {
  .page-topbar {
    padding: 4.85rem 0.9rem 0;
  }

  .page-topbar-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .topbar-copy {
    text-align: center;
  }

  .topbar-intro {
    max-width: 38ch;
    margin-left: auto;
    margin-right: auto;
    white-space: normal;
  }

  .topbar-anbi,
  .topbar-logo-link {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 575.98px) {
  .page-topbar-inner {
    padding: 0.95rem;
  }

  .topbar-logo {
    width: 3.75rem;
    height: 3.75rem;
  }

  .topbar-anbi {
    margin-left: 0;
    margin-right: 0;
  }
}

@media (min-width: 1024px) {
  body.sidebar-lock {
    overflow: auto;
  }

  .page-shell {
    padding-left: 20rem;
  }

  .sidebar-toggle,
  .sidebar-overlay,
  .site-sidebar .sidebar-close {
    display: none !important;
  }

  .site-sidebar {
    transform: none;
  }

  .page-topbar {
    padding: 1.5rem 2rem 0;
  }

  .page-main {
    padding: 2rem 2rem 4rem;
  }

  .site-footer {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sidebar-overlay,
  .site-sidebar,
  .site-sidebar .sidebar-link,
  .site-sidebar .sidebar-link::after {
    transition: none;
  }
}
