:root {
  --ld-ink: #08122f;
  --ld-panel: #101d46;
  --ld-red: #ef321c;
  --ld-gold: #ffbd31;
  --ld-cream: #fff7df;
}

html {
  scroll-padding-top: 94px;
}

body {
  padding-top: 80px;
}

.header {
  position: fixed !important;
  inset: 0 0 auto 0;
  z-index: 50 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 11px 0 !important;
  background: rgba(8, 18, 47, 0.97);
  box-shadow: 0 12px 32px rgba(1, 6, 22, 0.34);
  backdrop-filter: blur(14px);
}

.header .header-content {
  min-height: 58px;
  gap: 20px;
}

.header .custom-logo-link {
  flex: 0 0 128px;
  width: 128px;
  height: 56px;
  padding: 2px;
}

.header .custom-logo {
  display: block;
  width: 128px !important;
  height: 52px !important;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.header .nav {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  white-space: nowrap;
}

.header .nav a {
  position: relative;
  padding: 8px 2px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.header .nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--ld-gold);
  transform: scaleX(0);
  transition: transform 160ms ease;
}

.header .nav a:hover::after,
.header .nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header .header-buttons {
  position: static !important;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  width: auto;
  transform: none !important;
}

.header .header-buttons .btn {
  width: auto !important;
  min-width: 116px;
  max-width: none;
  margin: 0 !important;
  padding: 0 17px;
  line-height: 42px;
  border-radius: 10px;
  animation: none !important;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.header .header-buttons .btn-danger {
  color: #fff;
  background: linear-gradient(135deg, #ff4a25, var(--ld-red));
  box-shadow: 0 8px 22px rgba(239, 50, 28, 0.28);
}

.header .header-buttons .btn-primary {
  color: var(--ld-ink);
  background: linear-gradient(135deg, #ffd96b, var(--ld-gold));
  box-shadow: 0 8px 22px rgba(255, 189, 49, 0.22);
}

.header .mobile-btn {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 189, 49, 0.48);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.06);
}

.mobile-wrap {
  z-index: 60;
}

.mobile-nav a {
  display: block;
  margin-bottom: 10px;
  padding: 11px 8px;
  color: #fff;
  font-weight: 750;
}

/* The archived CookieAdmin export embeds an invalid data-image inside its
   wordmark SVG. Keep the required attribution readable without rendering the
   broken image placeholder on any restored route. */
.cookieadmin-poweredby svg {
  display: none !important;
}

.cookieadmin-poweredby a::after {
  content: "CookieAdmin";
  margin-left: 5px;
  color: #173251;
  font-weight: 800;
}

@media (max-width: 1100px) {
  .header .nav.max-1100\:hidden {
    display: none !important;
  }
}

@media (max-width: 700px) {
  html {
    scroll-padding-top: 138px;
  }

  body {
    padding-top: 132px;
  }

  .header {
    min-height: 126px;
    padding: 9px 0 63px !important;
  }

  .header .header-content {
    min-height: 54px;
  }

  .header .custom-logo-link {
    flex-basis: 110px;
    width: 110px;
    height: 50px;
  }

  .header .custom-logo {
    width: 110px !important;
    height: 48px !important;
  }

  .header .header-buttons {
    position: absolute !important;
    right: 15px;
    bottom: 10px !important;
    left: 15px !important;
    width: auto !important;
    gap: 8px;
  }

  .header .header-buttons .btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 10px;
    line-height: 42px;
    font-size: 13px;
  }
}
