.site-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  max-width: min(360px, calc(100vw - 32px));
  padding: 14px 16px;
  border-radius: 12px;
  background: #181919;
  color: #ffffff;
  box-shadow: 0 16px 40px rgba(24, 25, 25, 0.2);
  font: 600 14px/1.45 Manrope, system-ui, sans-serif;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.site-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.site-mobile-toggle {
  display: none;
}

.site-mobile-panel {
  display: none;
}

.form-error {
  color: #ba1a1a;
  font-size: 13px;
  margin-top: 6px;
}

.is-invalid {
  outline: 1px solid #ba1a1a !important;
}

:root {
  --site-topbar-height: 80px;
  --site-topbar-max-width: 1280px;
}

.site-topbar {
  width: 100%;
  border-bottom: 1px solid rgba(214, 211, 209, 0.9);
  background: rgba(247, 243, 240, 0.94);
  color: #1b1c1c;
  box-shadow: 0 1px 8px rgba(24, 25, 25, 0.06);
  backdrop-filter: blur(14px);
}

.site-topbar--fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
}

.site-topbar--sticky {
  position: sticky;
  top: 0;
  z-index: 50;
}

.dark .site-topbar {
  border-bottom-color: rgba(41, 37, 36, 0.9);
  background: rgba(26, 26, 26, 0.94);
  color: #f7f3f0;
  box-shadow: none;
}

.site-topbar-inner {
  display: grid;
  grid-template-columns: minmax(168px, 1fr) auto minmax(168px, 1fr);
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: var(--site-topbar-max-width);
  height: var(--site-topbar-height);
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 64px);
}

.site-topbar-brand {
  justify-self: start;
  color: inherit;
  font: 700 20px/1.1 "Noto Serif", Georgia, serif;
  text-decoration: none;
  white-space: nowrap;
}

.site-topbar-menu {
  display: flex;
  align-items: stretch;
  justify-self: center;
  gap: 24px;
  height: 100%;
  white-space: nowrap;
}

.site-topbar-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: 12px;
  min-width: 168px;
}

.site-topbar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: #57534e;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.site-topbar-icon:hover {
  background: rgba(214, 211, 209, 0.45);
  color: #1b1c1c;
}

.site-topbar-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  color: #1b1c1c;
  font: 600 14px/1.2 "Noto Serif", Georgia, serif;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease;
}

.site-topbar-action:hover {
  color: #57534e;
}

.dark .site-topbar-icon {
  color: #d6d3d1;
}

.dark .site-topbar-icon:hover {
  background: rgba(68, 64, 60, 0.55);
  color: #f7f3f0;
}

.dark .site-topbar-action {
  color: #f7f3f0;
}

.dark .site-topbar-action:hover {
  color: #d6d3d1;
}

.site-nav-link {
  display: inline-flex;
  align-items: center;
  height: 100%;
  min-height: 44px;
  padding: 2px 0 0;
  border-bottom: 2px solid transparent;
  color: #6b7280;
  font: 600 14px/1.2 "Noto Serif", Georgia, serif;
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease;
}

.site-nav-link:hover {
  color: #1b1c1c;
}

.site-nav-link[aria-current="page"] {
  color: #1b1c1c;
  border-bottom-color: #1b1c1c;
  font-weight: 700;
}

.dark .site-nav-link {
  color: #a8a29e;
}

.dark .site-nav-link:hover,
.dark .site-nav-link[aria-current="page"] {
  color: #f7f3f0;
}

.dark .site-nav-link[aria-current="page"] {
  border-bottom-color: #f7f3f0;
}

@media (min-width: 1024px) and (max-width: 1240px) {
  .site-topbar-inner {
    grid-template-columns: minmax(136px, 1fr) auto minmax(136px, 1fr);
    gap: 16px;
    padding: 0 24px;
  }

  .site-topbar-menu {
    gap: 16px;
  }

  .site-topbar-actions {
    min-width: 136px;
  }
}

@media (max-width: 1023px) {
  :root {
    --site-topbar-height: 72px;
  }

  .site-topbar-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 0 20px;
  }

  .site-topbar-brand {
    overflow: hidden;
    font-size: 18px;
    text-overflow: ellipsis;
  }

  .site-topbar-menu {
    display: none;
  }

  .site-topbar-actions {
    min-width: 0;
    gap: 8px;
  }

  .site-topbar-action {
    display: none;
  }

  .site-mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 9999px;
    background: transparent;
    color: #1b1c1c;
    cursor: pointer;
  }

  .site-mobile-panel {
    display: none;
    position: fixed;
    inset: calc(var(--site-topbar-height) + 12px) 16px auto 16px;
    z-index: 9998;
    padding: 16px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 18px 48px rgba(24, 25, 25, 0.16);
  }

  .site-mobile-panel.is-open {
    display: grid;
    gap: 8px;
  }

  .site-mobile-panel a {
    display: block;
    height: auto;
    min-height: 0;
    padding: 12px 14px;
    border-bottom: 0;
    border-radius: 10px;
    color: #1b1c1c;
    font: 600 14px/1.2 Manrope, system-ui, sans-serif;
  }

  .site-mobile-panel a[aria-current="page"] {
    background: #efeded;
  }

  .dark .site-mobile-panel {
    background: #1c1917;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  }

  .dark .site-mobile-toggle {
    color: #f7f3f0;
  }

  .dark .site-mobile-panel a {
    color: #f7f3f0;
  }

  .dark .site-mobile-panel a[aria-current="page"] {
    background: #292524;
  }
}
