/**
 * Beacon presentation for category mini navigation pages.
 * Search configuration and category/resource output remain OneNav contracts.
 *
 * @package BeaconMap
 */

body.page-template-template-mininav #beacon-main > .header-banner {
  height: auto !important;
  min-height: 0 !important;
  margin-top: -72px !important;
  padding-top: 72px !important;
}

body.page-template-template-mininav #beacon-main > .header-banner #search {
  --big-search-height: 400px !important;
  --big-mobile-height: 300px !important;
  height: 400px !important;
  min-height: 400px !important;
}

body.page-template-template-mininav #beacon-main > .header-banner .big-title {
  margin-bottom: 12px !important;
}

body.page-template-template-mininav #beacon-main > .header-banner .big-title h2 {
  letter-spacing: 0.08em !important;
}

body.page-template-template-mininav #beacon-main > .header-banner .beacon-banner {
  width: 100%;
}

body.page-template-template-mininav #beacon-main > .header-banner .search-list-menu {
  border-bottom: 1px solid var(--bc-hairline);
}

body.page-template-template-mininav #beacon-main > .header-banner .search-list-menu .anchor {
  display: none !important;
}

body.page-template-template-mininav #beacon-main > .header-banner .search-list-menu .search-menu {
  position: relative;
  min-height: 40px;
  color: var(--bc-body);
  font-size: 14px;
}

body.page-template-template-mininav #beacon-main > .header-banner .search-list-menu .search-menu.active {
  color: var(--bc-ink);
  font-weight: 600;
}

body.page-template-template-mininav #beacon-main > .header-banner .search-list-menu .search-menu.active::after {
  position: absolute;
  right: 25%;
  bottom: 0;
  left: 25%;
  height: 2px;
  background: var(--bc-ink);
  content: "";
}

body.page-template-template-mininav #beacon-main > .header-banner .search-form {
  border: 1px solid var(--bc-hairline);
  border-radius: var(--bc-rounded-sm);
  background: var(--bc-semantic-color-surface-search-field);
}

body.page-template-template-mininav #beacon-main > .header-banner .search-form .search-key {
  min-height: 48px;
  border: 0 !important;
  background: transparent;
}

body.page-template-template-mininav #beacon-main > .custom-background {
  margin-top: 0;
}

body.page-template-template-mininav #beacon-main > .custom-background .content-card {
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--bc-hairline);
  border-radius: var(--bc-rounded-sm);
  background: var(--bc-canvas);
  box-shadow: none;
}

body.page-template-template-mininav #beacon-main > .custom-background .tab-title {
  color: var(--bc-ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

body.page-template-template-mininav #beacon-main > .custom-background .btn-more {
  color: var(--bc-body);
}

body.page-template-template-mininav #beacon-main > .custom-background .btn-more:hover {
  color: var(--bc-accent-text);
}

html.io-black-mode:not(#_) body.page-template-template-mininav #beacon-main > .header-banner .search-list-menu {
  border-bottom-color: var(--bc-surface-dark-soft);
}

html.io-black-mode:not(#_) body.page-template-template-mininav #beacon-main > .header-banner .search-list-menu .search-menu {
  color: var(--bc-body-on-dark);
}

html.io-black-mode:not(#_) body.page-template-template-mininav #beacon-main > .header-banner .search-list-menu .search-menu.active {
  color: var(--bc-on-dark);
}

html.io-black-mode:not(#_) body.page-template-template-mininav #beacon-main > .header-banner .search-list-menu .search-menu.active::after {
  background: var(--bc-on-dark);
}

html.io-black-mode:not(#_) body.page-template-template-mininav #beacon-main > .header-banner .search-form {
  border-color: var(--bc-surface-dark-soft);
  background: var(--bc-semantic-color-surface-inverse-raised);
}

html.io-black-mode:not(#_) body.page-template-template-mininav #beacon-main > .custom-background .content-card {
  border-color: var(--bc-surface-dark-soft);
  background: var(--bc-canvas-dark);
}

html.io-black-mode:not(#_) body.page-template-template-mininav #beacon-main > .custom-background .tab-title {
  color: var(--bc-on-dark) !important;
}

html.io-black-mode:not(#_) body.page-template-template-mininav #beacon-main > .custom-background .btn-more {
  color: var(--bc-body-on-dark);
}

html.io-black-mode:not(#_) body.page-template-template-mininav #beacon-main > .custom-background .btn-more:hover {
  color: var(--bc-accent-orange);
}

@media (max-width: 767px) {
  body.page-template-template-mininav #beacon-main > .beacon-home-aside {
    position: sticky !important;
    z-index: 98;
    top: 60px;
    display: block !important;
    width: 100%;
    max-width: 100%;
    height: auto !important;
    margin: 0 auto 8px !important;
    padding: 0 12px;
    background: var(--bc-canvas);
  }

  body.page-template-template-mininav #beacon-main > .beacon-home-aside .beacon-aside-body {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    height: auto !important;
    transform: none !important;
    opacity: 1 !important;
  }

  body.page-template-template-mininav #beacon-main > .beacon-home-aside .beacon-aside-card {
    height: auto !important;
    padding: 0;
    border: 0;
    background: transparent !important;
  }

  body.page-template-template-mininav #beacon-main > .beacon-home-aside .beacon-aside-list {
    display: flex !important;
    align-items: center;
    flex-wrap: nowrap !important;
    gap: 6px;
    width: 100%;
    max-height: none !important;
    margin: 0;
    padding: 6px 0;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    list-style: none;
  }

  body.page-template-template-mininav #beacon-main > .beacon-home-aside .beacon-aside-item,
  body.page-template-template-mininav #beacon-main > .beacon-home-aside .aside-sub-item {
    flex: 0 0 auto;
    margin: 0 !important;
  }

  body.page-template-template-mininav #beacon-main > .beacon-home-aside .beacon-aside-item {
    display: flex !important;
    align-items: center;
    gap: 6px;
  }

  body.page-template-template-mininav #beacon-main > .beacon-home-aside .beacon-aside-sub {
    position: static !important;
    display: flex !important;
    align-items: center;
    gap: 6px;
    width: auto !important;
    height: auto !important;
    max-height: none !important;
    margin: 0;
    padding: 0;
    overflow: visible !important;
    list-style: none;
  }

  body.page-template-template-mininav #beacon-main > .beacon-home-aside .beacon-aside-link {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 10px !important;
    border: 1px solid var(--bc-hairline);
    border-radius: var(--bc-rounded-xs);
    background: var(--bc-canvas);
    color: var(--bc-body);
    white-space: nowrap;
  }

  body.page-template-template-mininav #beacon-main > .beacon-home-aside .beacon-aside-label {
    display: inline !important;
    max-width: none;
    overflow: visible;
  }

  body.page-template-template-mininav #beacon-main > .beacon-home-aside .aside-more,
  body.page-template-template-mininav #beacon-main > .beacon-home-aside .aside-item-outdent {
    display: none !important;
  }

  body.page-template-template-mininav #beacon-main > .beacon-home-aside .aside-sub-item .beacon-aside-link {
    border-style: dashed;
  }

  body.page-template-template-mininav #beacon-main .content-card > [id^="term-"] {
    scroll-margin-top: 120px;
  }

  body.page-template-template-mininav #beacon-main .content-card > [id^="term-"]:focus-visible {
    border-radius: var(--bc-rounded-xs);
    outline: 2px solid var(--bc-accent-orange);
    outline-offset: 4px;
  }

  body.page-template-template-mininav #beacon-main > .header-banner #search {
    height: 300px !important;
    min-height: 300px !important;
  }

  body.page-template-template-mininav #beacon-main > .header-banner .big-title {
    margin-bottom: 8px !important;
  }

  body.page-template-template-mininav #beacon-main > .custom-background .content-card {
    padding: 12px;
  }

  html.io-black-mode:not(#_) body.page-template-template-mininav #beacon-main > .beacon-home-aside {
    background: var(--bc-canvas-dark);
  }

  html.io-black-mode:not(#_) body.page-template-template-mininav #beacon-main > .beacon-home-aside .beacon-aside-link {
    border-color: var(--bc-surface-dark-soft);
    background: var(--bc-canvas-dark);
    color: var(--bc-body-on-dark);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-template-template-mininav #beacon-main .content-card,
  body.page-template-template-mininav #beacon-main .posts-item {
    transition: none;
  }
}
