.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 70;
  height: var(--header-height);
  background: linear-gradient(#0a0e13d9, transparent);
  transition: background 0.2s;
}
.site-header.scrolled {
  background: #0a0e13ed;
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 34px;
}
.brand {
  color: white;
  white-space: nowrap;
  font-family: Impact, "Arial Narrow", sans-serif;
  font-stretch: condensed;
  letter-spacing: -1.5px;
  font-size: 40px;
  line-height: 1;
  font-weight: 900;
  display: inline-block;
  transform: scaleX(0.82);
  transform-origin: left center;
  margin-right: -26px;
}
.brand small {
  font-size: 10px;
  letter-spacing: 2px;
  display: block;
  font-family: var(--font);
  transform: scaleX(1.22);
  margin-top: 5px;
  font-weight: 400;
  color: #9ba8b7;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 5px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  color: #c3ccd6;
  border-radius: 12px;
  background: none;
  border: 0;
}
.nav-link.active,
.nav-link:hover {
  color: white;
  background: #ffffff17;
}
.nav-group {
  position: relative;
}
.nav-group .chevron {
  font-size: 15px;
}
.mega-menu {
  position: absolute;
  top: 47px;
  left: 0;
  width: min(760px, 75vw);
  padding: 25px;
  background: #111923fa;
  border: 1px solid #ffffff17;
  border-radius: 16px;
  box-shadow: 0 20px 80px #0009;
  backdrop-filter: blur(20px);
  display: none;
}
.nav-group:hover .mega-menu,
.nav-group:focus-within .mega-menu,
.nav-group.open .mega-menu {
  display: block;
}
.mega-title {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 700;
}
.mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px 15px;
}
.mega-grid a {
  color: #aeb9c7;
  font-size: 13px;
  padding: 7px;
  border-radius: 6px;
}
.mega-grid a:hover {
  color: white;
  background: #ffffff0a;
}
.header-actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
}
.mobile-trigger {
  display: none;
}
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: #0a0e13;
  overflow: auto;
  padding: 24px;
}
.drawer-links {
  display: grid;
  gap: 8px;
  margin-top: 30px;
}
.drawer-links a {
  padding: 13px;
  background: #ffffff06;
  border-radius: 8px;
}
.drawer-categories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 20px 0 35px;
}
.drawer-categories a {
  font-size: 13px;
  color: #a9b5c6;
}
.site-footer {
  margin-top: 80px;
  padding: 55px var(--gutter) 30px;
  border-top: 1px solid var(--line);
  background: #090d12;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 0.8fr;
  gap: 38px;
}
.footer-brand p {
  color: var(--muted);
  max-width: 280px;
  font-size: 13px;
  margin-top: 24px;
}
.footer-group h3 {
  font-size: 14px;
  letter-spacing: 0;
  margin-bottom: 22px;
}
.footer-group a {
  display: block;
  color: #8693a4;
  font-size: 13px;
  margin-bottom: 11px;
}
.footer-group a:hover {
  color: white;
}
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  margin-top: 38px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  color: #667487;
  font-size: 12px;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}
.cookie-banner {
  position: fixed;
  left: 20px;
  bottom: 20px;
  width: 415px;
  max-width: calc(100vw - 40px);
  background: linear-gradient(135deg, #17233a, #151a21);
  border: 1px solid #ffffff1a;
  border-radius: 22px;
  z-index: 120;
  padding: 20px;
  box-shadow: 0 20px 80px #0007;
  backdrop-filter: blur(20px);
}
.cookie-banner h2 {
  font-size: 16px;
  letter-spacing: 0;
  line-height: 1.4;
  margin-bottom: 18px;
}
.cookie-banner p {
  font-size: 13px;
  color: #9faaba;
  line-height: 1.7;
}
.cookie-banner .row > * {
  flex: 1;
  border-radius: 30px;
  font-size: 12px;
  padding-inline: 10px;
}
.cookie-banner a {
  text-decoration: underline;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  padding: 14px 24px;
  background: #202d40;
  border: 1px solid #456089;
  border-radius: 12px;
  z-index: 250;
  box-shadow: 0 12px 50px #0008;
  max-width: 90vw;
  text-align: center;
  font-size: 14px;
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: #030609dd;
  backdrop-filter: blur(16px);
  overflow: auto;
  padding: 7vh 20px;
  display: grid;
  place-items: start center;
}
.modal-panel {
  background: #111923;
  border: 1px solid var(--line);
  border-radius: 20px;
  width: min(520px, 100%);
  padding: 30px;
  position: relative;
  box-shadow: 0 30px 100px #0009;
}
.modal-panel .modal-close {
  position: absolute;
  right: 18px;
  top: 18px;
}
.modal-panel h2 {
  font-size: 25px;
  padding-right: 38px;
}
.modal-panel form {
  display: grid;
  gap: 15px;
}
.form-field {
  display: grid;
  gap: 7px;
  font-size: 13px;
}
.form-footer {
  font-size: 13px;
  text-align: center;
  color: var(--muted);
}
.form-footer a {
  color: #9bb6ff;
}
.check-field {
  display: flex;
  align-items: start;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}
.check-field input {
  margin-top: 5px;
}
.search-dialog {
  position: fixed;
  inset: 0;
  z-index: 130;
  background: #070b10f7;
  backdrop-filter: blur(18px);
  overflow-y: auto;
  padding: 34px max(6.7vw, 20px);
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.search-input-wrap {
  display: flex;
  align-items: center;
  flex: 1;
  border: 1px solid #283750;
  border-radius: 40px;
  padding: 7px 18px;
  background: #121a25;
  box-shadow: 0 0 0 4px #244fe80b;
}
.search-input-wrap input {
  border: 0;
  background: none;
  outline: none;
  box-shadow: none;
  padding: 10px 14px;
  width: 100%;
  font-size: 20px;
}
.search-dialog .close-search {
  width: 60px;
  height: 60px;
}
.search-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}
.search-meta small {
  color: #586575;
}
.search-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
.search-grid .media-card {
  width: auto;
}
.search-heading {
  font-size: 20px;
  margin: 28px 0 18px;
}
@media (min-width: 1650px) {
  .brand {
    font-size: 46px;
  }
  .header-inner {
    gap: 42px;
  }
}
@media (max-width: 1150px) {
  .header-inner {
    gap: 18px;
  }
  .nav-link {
    padding: 10px 9px;
    font-size: 13px;
  }
  .brand {
    font-size: 32px;
  }
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 30px;
  }
  .footer-brand {
    grid-row: span 2;
  }
}
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .mobile-trigger {
    display: grid;
  }
  .brand {
    font-size: 31px;
  }
  .header-inner {
    gap: 20px;
  }
  .search-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .brand {
    font-size: 28px;
  }
  .header-inner {
    gap: 12px;
  }
  .header-actions {
    gap: 8px;
  }
  .header-actions .icon-button,
  .mobile-trigger {
    width: 36px;
    height: 36px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }
  .footer-brand {
    grid-column: span 2;
    grid-row: auto;
  }
  .footer-group:last-child {
    display: none;
  }
  .site-footer {
    margin-top: 45px;
    padding-top: 35px;
  }
  .search-dialog {
    padding: 20px 16px;
  }
  .search-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .search-input-wrap {
    padding-inline: 12px;
  }
  .search-input-wrap input {
    font-size: 15px;
    padding-inline: 8px;
  }
  .search-dialog .close-search {
    width: 42px;
    height: 42px;
  }
  .search-meta small {
    display: none;
  }
  .modal-panel {
    padding: 25px 20px;
  }
  .cookie-banner {
    left: 12px;
    bottom: 12px;
    max-width: calc(100vw - 24px);
  }
}
.brand {
  font-family: BrandCondensed, "Arial Narrow", sans-serif;
  font-weight: 700;
  letter-spacing: -0.6px;
  transform: none;
  margin-right: 0;
  font-size: 42px;
}
@media (max-width: 1150px) {
  .brand {
    font-size: 36px;
  }
}
@media (max-width: 640px) {
  .brand {
    font-size: 28px;
  }
}
/* Match the reference chevron without depending on a font glyph baseline. */
.nav-link {
  height: 38px;
  padding-block: 0;
}
.nav-chevron {
  display: block;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  opacity: 0.85;
}
.nav-group::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 12px;
}
