:root {
  --webmap-shell-accent: #0f766e;
  --webmap-shell-accent-strong: #0f5f59;
  --webmap-shell-hero-start: #1d4ed8;
  --webmap-shell-hero-end: #0d9488;
  --webmap-shell-surface: #ffffff;
  --webmap-shell-page: #f2f4f7;
  --webmap-shell-border: rgba(15, 23, 42, 0.1);
  --webmap-shell-muted: #64748b;
  --webmap-shell-radius: 12px;
  --webmap-shell-shadow: 0 5px 20px rgba(15, 23, 42, 0.1);
}

body.webmap-audience-adult {
  --webmap-shell-accent: #be185d;
  --webmap-shell-accent-strong: #9d174d;
  --webmap-shell-hero-start: #5b1647;
  --webmap-shell-hero-end: #e11d48;
}

body.webmap-onenav-demo-shell {
  background: var(--webmap-shell-page);
}

.webmap-theme-shell-hidden {
  display: none !important;
}

body.webmap-onenav-demo-shell .main-header {
  height: 80px;
}

body.webmap-onenav-demo-shell .main-header .header-nav {
  width: calc(100% - 20px);
  height: 60px;
  margin: 10px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--webmap-shell-radius);
  background: rgba(255, 255, 255, 0.82) !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

body.webmap-onenav-demo-shell .navbar-logo {
  flex: 0 0 auto;
  margin-right: 22px !important;
}

body.webmap-onenav-demo-shell .navbar-logo .logo-expanded img {
  width: auto !important;
  max-width: 172px !important;
  max-height: 42px;
}

body.webmap-onenav-demo-shell .navbar-header-menu {
  display: block;
  min-width: 0;
}

.webmap-official-nav__list {
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.webmap-official-nav__item > a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 9px;
  color: #3f4650;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.webmap-official-nav__item > a:hover,
.webmap-official-nav__item > a:focus-visible {
  background: rgba(15, 118, 110, 0.1);
  color: var(--webmap-shell-accent-strong);
}

#search.webmap-search-parity {
  position: relative;
  display: flex;
  width: 100% !important;
  max-width: none !important;
  min-height: 530px;
  align-items: stretch;
  margin: 0 !important;
  padding: 112px 24px 42px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.2), transparent 32%),
    radial-gradient(circle at 22% 78%, rgba(255, 255, 255, 0.12), transparent 28%),
    linear-gradient(135deg, var(--webmap-shell-hero-start), var(--webmap-shell-hero-end));
}

#search.webmap-search-parity::after {
  position: absolute;
  right: -10%;
  bottom: -145px;
  left: -10%;
  height: 260px;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(to bottom, rgba(242, 244, 247, 0), var(--webmap-shell-page) 76%);
  content: '';
  pointer-events: none;
}

#search.webmap-search-parity > :not(.webmap-unified-search) {
  display: none !important;
}

.webmap-unified-search {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(1200px, 100%);
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #fff;
  text-align: center;
}

.webmap-unified-search__copy {
  width: min(820px, 100%);
  margin: 0 auto;
}

.webmap-unified-search__copy h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 3vw, 36px) !important;
  font-weight: 750;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-shadow: 0 3px 18px rgba(15, 23, 42, 0.2);
}

.webmap-unified-search__copy p {
  margin: 9px 0 16px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
}

.webmap-unified-search__copy .webmap-language-fallback-notice {
  margin: -8px 0 14px;
  font-size: 13px;
}

.webmap-language-switcher {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin: 0 0 14px;
}

.webmap-language-switcher a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.webmap-language-switcher a:hover,
.webmap-language-switcher a:focus-visible,
.webmap-language-switcher a[aria-current='page'] {
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.webmap-unified-search__form {
  display: grid;
  width: min(820px, 100%);
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0;
  margin: 0 auto;
  padding: 4px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.22);
}

.webmap-unified-search__form input[type='search'] {
  min-width: 0;
  min-height: 48px;
  padding: 11px 15px;
  border: 0;
  border-radius: 10px 0 0 10px;
  background: #fff;
  color: #0f172a;
  font-size: 16px;
  outline: 0;
}

.webmap-unified-search__form button {
  min-width: 116px;
  min-height: 48px;
  padding: 10px 18px;
  border: 0;
  border-radius: 10px;
  background: var(--webmap-shell-accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.webmap-unified-search__form button:hover,
.webmap-unified-search__form button:focus-visible {
  background: var(--webmap-shell-accent-strong);
}

.webmap-unified-search__categories {
  width: min(1200px, 100%);
  margin: 60px auto 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: var(--webmap-shell-radius);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--webmap-shell-shadow);
  color: #4b5563;
  text-align: left;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.webmap-unified-search__hot-label {
  margin: 0 2px 8px;
  color: #4b5563;
  font-size: 14px;
  font-weight: 700;
}

.webmap-unified-search__hot-label::before {
  margin-right: 6px;
  color: var(--webmap-shell-accent);
  content: '\2605';
}

.webmap-unified-search__category-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.webmap-unified-search__category-list a {
  display: flex;
  min-width: 0;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(241, 245, 249, 0.88);
  color: #4b5563;
  font-size: 13px;
  text-decoration: none;
}

.webmap-unified-search__category-list a:hover,
.webmap-unified-search__category-list a:focus-visible {
  background: #fff;
  color: var(--webmap-shell-accent-strong);
}

.webmap-unified-search__category-list span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.webmap-unified-search__category-list small {
  flex: 0 0 auto;
  color: #94a3b8;
  font-size: 12px !important;
}

.webmap-unified-search__form input:focus-visible,
.webmap-unified-search__form button:focus-visible,
.webmap-language-switcher a:focus-visible,
.webmap-official-nav__item > a:focus-visible,
.webmap-unified-search__category-list a:focus-visible,
.webmap-unified-footer a:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.62);
  outline-offset: 2px;
}

body.webmap-onenav-demo-shell #webmap-directory-start {
  scroll-margin-top: 96px;
}

body.webmap-onenav-demo-shell .ioui-main {
  padding-top: 28px;
}

body.webmap-onenav-demo-shell #layout_aside .aside-card {
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--webmap-shell-radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--webmap-shell-shadow);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

body.webmap-onenav-demo-shell #layout_aside .aside-btn {
  min-height: 42px;
  border-radius: 8px;
  color: #4b5563;
  font-size: 14px;
}

body.webmap-onenav-demo-shell #layout_aside .aside-btn:hover,
body.webmap-onenav-demo-shell #layout_aside .aside-btn:focus-visible,
body.webmap-onenav-demo-shell #layout_aside .aside-btn.active {
  background: rgba(15, 118, 110, 0.1);
  color: var(--webmap-shell-accent-strong);
}

body.webmap-onenav-demo-shell .content-card {
  margin-bottom: 26px;
}

body.webmap-onenav-demo-shell .posts-item.sites-item {
  min-height: 60px;
  border: 1px solid rgba(15, 23, 42, 0.025);
  border-radius: var(--webmap-shell-radius);
  background: var(--webmap-shell-surface);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.025);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

body.webmap-onenav-demo-shell .posts-item.sites-item:hover,
body.webmap-onenav-demo-shell .posts-item.sites-item:focus-within {
  z-index: 2;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}

body.webmap-onenav-demo-shell .tab-title {
  color: #4b5563 !important;
  font-size: 16px !important;
  font-weight: 700;
}

.webmap-unified-footer {
  margin: 36px 0 0;
  padding: 26px 24px 30px;
  border-top: 1px solid var(--webmap-shell-border);
  background: #fff;
  color: #64748b;
  text-align: center;
}

.webmap-unified-footer p {
  margin: 0 0 10px;
}

.webmap-unified-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
}

.webmap-unified-footer a {
  color: var(--webmap-shell-accent-strong);
  text-decoration: none;
}

.webmap-unified-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.webmap-official-mobile-nav {
  margin-top: 16px;
  padding: 0;
  list-style: none;
}

.webmap-official-mobile-nav .webmap-official-nav__item > a {
  display: flex;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --webmap-shell-surface: #171b22;
    --webmap-shell-page: #10141a;
    --webmap-shell-border: rgba(226, 232, 240, 0.14);
    --webmap-shell-muted: #94a3b8;
  }

  body.webmap-onenav-demo-shell .main-header .header-nav,
  body.webmap-onenav-demo-shell #layout_aside .aside-card,
  .webmap-unified-footer {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(23, 27, 34, 0.86) !important;
    color: #cbd5e1;
  }

  .webmap-official-nav__item > a,
  body.webmap-onenav-demo-shell #layout_aside .aside-btn {
    color: #cbd5e1;
  }

  body.webmap-onenav-demo-shell .tab-title {
    color: #cbd5e1 !important;
  }
}

@media (max-width: 1199.98px) {
  .webmap-official-nav__item:nth-last-child(-n + 2) {
    display: none;
  }

  .webmap-unified-search__category-list {
    grid-template-columns: repeat(5, minmax(120px, 1fr));
  }
}

@media (max-width: 991.98px) {
  #search.webmap-search-parity {
    min-height: 540px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .webmap-unified-search__category-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .webmap-unified-search__category-list li:nth-child(n + 7) {
    display: none;
  }
}

@media (max-width: 767.98px) {
  body.webmap-onenav-demo-shell .main-header .header-nav {
    width: calc(100% - 12px);
    margin: 6px;
    border-radius: 10px;
  }

  body.webmap-onenav-demo-shell .navbar-logo .logo-expanded img {
    max-width: 154px !important;
    max-height: 38px;
  }

  #search.webmap-search-parity {
    min-height: 520px;
    padding-top: 100px;
    padding-bottom: 30px;
  }

  .webmap-unified-search__copy h1 {
    font-size: 29px !important;
  }

  .webmap-unified-search__categories {
    margin-top: 56px;
  }

  body.webmap-onenav-demo-shell .ioui-main {
    width: 100% !important;
    margin-left: 0 !important;
    padding-top: 20px;
  }

  body.webmap-onenav-demo-shell #layout_aside {
    display: none !important;
  }
}

@media (max-width: 575.98px) {
  #search.webmap-search-parity {
    min-height: 530px;
    padding: 94px 10px 24px;
  }

  .webmap-unified-search__copy h1 {
    font-size: 26px !important;
  }

  .webmap-unified-search__copy p {
    margin-bottom: 12px;
    font-size: 14px;
  }

  .webmap-language-switcher a {
    padding-right: 8px;
    padding-left: 8px;
    font-size: 13px;
  }

  .webmap-unified-search__form {
    padding: 3px;
  }

  .webmap-unified-search__form input[type='search'] {
    min-height: 46px;
    padding-right: 10px;
    padding-left: 10px;
    font-size: 15px;
  }

  .webmap-unified-search__form button {
    min-width: 88px;
    min-height: 46px;
    padding-right: 11px;
    padding-left: 11px;
    font-size: 14px;
  }

  .webmap-unified-search__categories {
    margin-top: 44px;
    padding: 9px;
  }

  .webmap-unified-search__category-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .webmap-unified-search__category-list li:nth-child(n + 7) {
    display: none;
  }

  .webmap-unified-footer {
    padding-right: 16px;
    padding-left: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.webmap-onenav-demo-shell .posts-item.sites-item {
    transition: none;
  }
}
