/* Unified HH.CGLTGCG header. Loaded after page-specific preview styles. */

html {
  color-scheme: light !important;
}

body,
body.white-theme,
body.dark-theme {
  --key-color: #333;
  --main-color: #4e5358;
  --main-shadow: rgba(116, 116, 116, .08);
  --muted-color: #777;
  --muted-2-color: #999;
  --muted-3-color: #b1b1b1;
  --muted-4-color: #d2d2d2;
  --body-bg-color: #f5f6f7;
  --main-bg-color: #fff;
  --muted-bg-color: #eee;
  --main-border-color: rgba(50, 50, 50, .06);
  --muted-border-color: rgba(0, 0, 0, .03);
  --blur-bg: rgba(255, 255, 255, .8);
  --float-btn-bg: rgba(200, 200, 200, .4);
  --header-bg: var(--blur-bg);
  --header-color: var(--main-color);
  --footer-bg: var(--main-bg-color);
  --footer-color: var(--muted-2-color);
  color-scheme: light !important;
}

body .toggle-theme {
  display: none !important;
}

body .modal-content,
body .modal-content > .box-body,
body .modal-content .modal-body,
body .modal-content .modal-header,
body .modal-content .modal-footer,
body .modal-content .payvip-modal,
body .modal-content .sign,
body .modal-content #u_sign {
  --key-color: #333;
  --main-color: #4e5358;
  --muted-color: #777;
  --muted-2-color: #999;
  --muted-3-color: #b1b1b1;
  --muted-4-color: #d2d2d2;
  --body-bg-color: #f5f6f7;
  --main-bg-color: #fff;
  --muted-bg-color: #eee;
  --main-border-color: rgba(50, 50, 50, .08);
  --muted-border-color: rgba(0, 0, 0, .04);
  background-color: #fff !important;
  color: #4e5358 !important;
  color-scheme: light !important;
}

body .modal-content input,
body .modal-content textarea,
body .modal-content select,
body .modal-content .form-control,
body .modal-content .line-form-input {
  background-color: #fff !important;
  color: #333 !important;
  color-scheme: light !important;
}

/* Catalog and search are intentionally light pages. Keep the parent theme's
   saved dark-mode canvas from showing through between the header and content. */
body.category,
body.search,
body.page-id-34475,
body.category .main-bg,
body.category .body-bg,
body.search .main-bg,
body.search .body-bg,
body.page-id-34475 .main-bg,
body.page-id-34475 .body-bg {
  background: #fff !important;
}

.hh-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body .hh-skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 99999;
  min-height: 42px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  border: 2px solid #fff;
  background: #153f35;
  color: #fff !important;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
  text-decoration: none;
  box-shadow: 0 0 0 3px #153f35, 0 8px 24px rgba(0, 0, 0, .2);
  transform: translateY(calc(-100% - 16px));
}

body .hh-skip-link:focus,
body .hh-skip-link:focus-visible {
  outline: 3px solid #f4c84b !important;
  outline-offset: 2px;
  transform: translateY(0);
}

body .hh-main-anchor {
  position: relative;
  display: block;
  width: 1px;
  height: 0;
  overflow: hidden;
  scroll-margin-top: 112px;
  outline: 0;
}

body .hh-site-header {
  position: sticky;
  top: 0;
  z-index: 1100;
  width: 100%;
  border-bottom: 1px solid #e5e5e2;
  background: rgba(255, 255, 255, .97) !important;
  color: #171816;
  box-shadow: 0 8px 24px rgba(25, 27, 24, .035);
  backdrop-filter: blur(14px);
}

body.admin-bar .hh-site-header {
  top: 32px;
}

body .hh-site-header-inner {
  position: relative;
  width: min(1240px, calc(100% - 48px));
  min-height: 100px;
  margin: 0 auto;
  padding: 7px 0 5px;
  display: grid;
  grid-template-columns: 150px minmax(390px, 1fr) minmax(230px, 310px) auto;
  grid-template-rows: 52px 36px;
  gap: 0 22px;
  align-items: center;
  overflow: visible !important;
}

body .hh-site-logo {
  grid-column: 1;
  grid-row: 1;
  width: auto;
  min-width: 0;
  height: 44px;
  display: inline-flex;
  align-items: center;
  overflow: visible;
  color: #171816 !important;
  text-decoration: none;
  white-space: nowrap;
}

body .hh-site-logo-text {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.04em;
}

body .hh-site-nav {
  position: relative;
  z-index: 1120;
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.25vw, 18px);
  overflow: visible !important;
  white-space: nowrap;
}

body .hh-nav-item {
  position: relative;
  z-index: 1;
}

body .hh-nav-link,
body .hh-nav-dropdown a {
  color: #242522 !important;
  text-decoration: none;
}

body .hh-nav-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

body .hh-nav-link.is-member {
  color: #a92f29 !important;
}

body .hh-nav-item.has-dropdown > .hh-nav-link::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: .55;
}

body .hh-nav-link:hover,
body .hh-nav-link:focus-visible,
body .hh-nav-dropdown a:hover,
body .hh-nav-dropdown a:focus-visible {
  color: #1f6654 !important;
}

body .hh-nav-dropdown {
  position: absolute;
  top: calc(100% + 5px);
  left: 50%;
  z-index: 1180;
  min-width: 190px;
  max-height: min(68vh, 560px);
  padding: 10px;
  display: grid;
  gap: 2px;
  overflow: auto;
  border: 1px solid #deded9;
  background: #fff;
  box-shadow: 0 20px 48px rgba(20, 24, 20, .14);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 7px);
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

body .hh-nav-dropdown.is-course {
  min-width: 360px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body .hh-nav-dropdown.is-wide {
  min-width: 500px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

body .hh-nav-dropdown.is-compact {
  left: auto;
  right: 0;
  min-width: 170px;
  transform: translateY(7px);
}

body .hh-nav-dropdown-col {
  display: grid;
  gap: 2px;
  min-width: 0;
}

body .hh-nav-dropdown a {
  min-height: 38px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

body .hh-nav-dropdown .hh-nav-dropdown-head {
  margin: 0 0 4px;
  border-bottom: 1px solid #e7e7e2;
  color: #171816 !important;
  font-weight: 900;
}

body .hh-nav-item:hover > .hh-nav-dropdown,
body .hh-nav-item:focus-within > .hh-nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

body .hh-nav-item:hover > .hh-nav-dropdown.is-compact,
body .hh-nav-item:focus-within > .hh-nav-dropdown.is-compact {
  transform: translateY(0);
}

body .hh-nav-item[data-hh-keyboard-closed="true"]:focus-within > .hh-nav-dropdown {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body .hh-nav-link[aria-current="page"] {
  color: #174d3f !important;
  box-shadow: inset 0 -2px #174d3f;
}

body .hh-site-search {
  grid-column: 3;
  grid-row: 1;
  min-width: 0;
  min-height: 40px;
  height: 40px;
  padding: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 54px;
  align-items: center;
  gap: 0;
  overflow: hidden;
  border: 1px solid #dcdcd7;
  background: #f5f5f1;
}

body .hh-site-search:focus-within {
  border-color: #1f6654;
  box-shadow: 0 0 0 3px rgba(31, 102, 84, .12);
}

body .hh-site-search-icon {
  position: static;
  width: auto;
  color: #6f716c;
  font-size: 14px;
  text-align: center;
}

body .hh-site-search input:not([type="hidden"]) {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 6px;
  border: 0 !important;
  background: transparent !important;
  color: #171816;
  font-size: 13px;
  font-weight: 700;
  box-shadow: none !important;
}

body .hh-site-search button {
  min-width: 54px;
  height: 40px;
  padding: 0 9px;
  border: 0;
  background: #20211f;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

body .hh-site-account {
  position: relative;
  z-index: 1130;
  grid-column: 4;
  grid-row: 1;
  min-width: 0;
  margin: 0;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

body .hh-site-account .menu-link,
body .hh-member-link,
body .hh-zibll-account .but,
body .hh-zibll-account .btn {
  min-height: 34px;
  padding: 0 10px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border: 1px solid #deded9 !important;
  background: #fff !important;
  color: #20211f !important;
  font-size: 12px;
  font-weight: 800;
  box-shadow: none !important;
}

body .hh-zibll-account .payvip-icon,
body .hh-member-link {
  border-color: #20211f !important;
  background: #20211f !important;
  color: #fff !important;
}

body .hh-zibll-account .nav-search-btn,
body .hh-zibll-account .main-search-btn,
body .hh-zibll-account .show-nav-but,
body .hh-zibll-account .list-inline > li:has(.nav-search-btn),
body .hh-zibll-account .list-inline > li:has(.main-search-btn) {
  display: none !important;
}

body .hh-site-header .hh-zibll-account ul.sub-menu,
body .hh-site-header .hh-zibll-account div.hover-show-con {
  z-index: 1190 !important;
}

body .hh-course-nav {
  position: relative;
  z-index: 1110;
  grid-column: 1 / -1;
  grid-row: 2;
  min-width: 0;
  min-height: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
  border-top: 1px solid #ecece7;
  border-bottom: 0;
  background: transparent;
  box-shadow: none;
  clip-path: none;
}

body .hh-course-nav-title {
  flex: 0 0 auto;
  min-height: 35px;
  padding: 0 18px 0 0;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 7px;
  border-right: 1px solid #deded9;
  color: #174d3f !important;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

body .hh-course-nav-icon {
  flex: 0 0 23px;
  width: 23px;
  height: 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #28594b;
  color: #fff;
  font-size: 10px;
}

body .hh-course-nav-links {
  min-width: 0;
  padding-left: 8px;
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
}

body .hh-course-nav-links::-webkit-scrollbar {
  display: none;
}

body .hh-course-nav-links a {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  color: #4f514c !important;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

body .hh-course-nav-links a:hover,
body .hh-course-nav-links a:focus-visible {
  color: #1f6654 !important;
  background: #f3f5f1;
}

body .hh-mobile-menu {
  display: none;
}

body .hh-site-header a:focus-visible,
body .hh-site-header button:focus-visible,
body .hh-site-header summary:focus-visible,
body .hh-site-header input:focus-visible {
  outline: 3px solid #2c6ed5 !important;
  outline-offset: 2px;
}

body :where(.hh-home, .hh-archive, .hh-guide) :where(a[href], button, input, select, textarea, summary, [tabindex]):focus-visible,
body :where(.navbar-search, .sign, #u_sign) :where(a[href], button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid #2c6ed5 !important;
  outline-offset: 3px;
}

body .hh-site-header .hh-skip-link:focus,
body .hh-site-header .hh-skip-link:focus-visible {
  outline: 3px solid #f4c84b !important;
  outline-offset: 2px;
}

@media (max-width: 1120px) {
  body .hh-site-header-inner {
    width: min(100% - 32px, 1040px);
    grid-template-columns: 132px minmax(340px, 1fr) minmax(210px, 260px) auto;
    gap: 0 14px;
  }

  body .hh-site-logo-text {
    font-size: 19px;
  }

  body .hh-site-nav {
    gap: 15px;
  }

  body .hh-nav-link {
    font-size: 13px;
  }
}

@media (max-width: 900px) {
  body.admin-bar .hh-site-header {
    top: 46px;
  }

  body .hh-site-header-inner {
    width: calc(100% - 28px);
    min-height: 126px;
    padding: 5px 0;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 42px 38px 36px;
    gap: 3px 10px;
  }

  body .hh-site-logo {
    grid-column: 1;
    grid-row: 1;
    width: auto;
    height: 40px;
  }

  body .hh-site-logo-text {
    font-size: 19px;
  }

  body .hh-site-nav,
  body .hh-site-account {
    display: none !important;
  }

  body .hh-site-search {
    grid-column: 1 / -1;
    grid-row: 2;
    height: 38px;
    min-height: 38px;
    grid-template-columns: 32px minmax(0, 1fr) 52px;
  }

  body .hh-site-search input:not([type="hidden"]) {
    height: 36px;
  }

  body .hh-site-search button {
    min-width: 52px;
    height: 38px;
  }

  body .hh-course-nav {
    grid-column: 1 / -1;
    grid-row: 3;
    min-height: 36px;
    height: 36px;
  }

  body .hh-course-nav-title {
    min-height: 35px;
    padding-right: 12px;
  }

  body .hh-course-nav-links {
    padding-left: 4px;
  }

  body .hh-course-nav-links a {
    min-height: 34px;
    padding: 0 11px;
    font-size: 11px;
  }

  body .hh-mobile-menu {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    display: block;
  }

  body .hh-mobile-menu > summary {
    min-width: 66px;
    min-height: 36px;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #d9d9d4;
    background: #fff;
    color: #20211f;
    font-size: 12px;
    font-weight: 900;
    list-style: none;
    cursor: pointer;
    user-select: none;
  }

  body .hh-mobile-menu > summary::-webkit-details-marker {
    display: none;
  }

  body .hh-mobile-menu-icon {
    width: 15px;
    display: grid;
    gap: 3px;
  }

  body .hh-mobile-menu-icon i {
    width: 15px;
    height: 1.5px;
    display: block;
    background: currentColor;
    transition: transform .15s ease, opacity .15s ease;
  }

  body .hh-mobile-menu[open] .hh-mobile-menu-icon i:nth-child(1) {
    transform: translateY(4.5px) rotate(45deg);
  }

  body .hh-mobile-menu[open] .hh-mobile-menu-icon i:nth-child(2) {
    opacity: 0;
  }

  body .hh-mobile-menu[open] .hh-mobile-menu-icon i:nth-child(3) {
    transform: translateY(-4.5px) rotate(-45deg);
  }

  body .hh-mobile-drawer {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    z-index: 1210;
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    border: 1px solid #deded9;
    background: #fff;
    box-shadow: 0 24px 50px rgba(20, 24, 20, .18);
  }

  body .hh-mobile-drawer > a,
  body .hh-mobile-tools a {
    min-height: 42px;
    padding: 9px 11px;
    display: flex;
    align-items: center;
    border: 1px solid #e5e5e0;
    background: #f8f8f5;
    color: #242522 !important;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
  }

  body .hh-mobile-drawer > a:hover,
  body .hh-mobile-drawer > a:focus-visible,
  body .hh-mobile-tools a:hover,
  body .hh-mobile-tools a:focus-visible {
    border-color: #1f6654;
    color: #1f6654 !important;
  }

  body .hh-mobile-drawer > a[aria-current="page"] {
    border-color: #1f6654;
    background: #edf4f0;
    color: #174d3f !important;
    box-shadow: inset 3px 0 #1f6654;
  }

  body .hh-mobile-tools {
    grid-column: 1 / -1;
    padding-top: 8px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    border-top: 1px solid #e6e6e1;
  }
}

@media (max-width: 480px) {
  body .hh-site-header-inner {
    width: calc(100% - 22px);
  }

  body .hh-site-logo-text {
    font-size: 18px;
  }

  body .hh-course-nav-title {
    font-size: 11px;
  }

  body .hh-course-nav-icon {
    display: none;
  }

  body .hh-mobile-drawer {
    grid-template-columns: 1fr;
  }

  body .hh-mobile-tools {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  body .hh-site-header *,
  body .hh-site-header *::before,
  body .hh-site-header *::after,
  body .hh-home *,
  body .hh-home *::before,
  body .hh-home *::after,
  body .hh-archive *,
  body .hh-archive *::before,
  body .hh-archive *::after,
  body .hh-guide *,
  body .hh-guide *::before,
  body .hh-guide *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
