/* 1.1.34: eight-item primary nav (Gift Cards + search) on one line.
   Canonical gap/type scale. PHP also writes this into inline #tc-nav-bold-css
   on Divi-built pages, which would otherwise keep the old 36px-at-1440 scale. */

/* Base desktop typography. 36px gap is for wide screens (1800px+). */
@media (min-width: 1024px) {
  #main-header #top-menu { --tc-nav-gap: 36px; }
  #main-header #top-menu > li > a {
    font-size: 16.5px !important;
    font-weight: 700 !important;
  }
  #main-header #top-menu > li {
    position: relative !important;
    padding-right: var(--tc-nav-gap, 36px) !important;
  }
  #main-header #top-menu > li:last-child { padding-right: 0 !important; }
  #main-header #top-menu > li.menu-item-has-children > a,
  #main-header #top-menu > li.page_item_has_children > a { padding-right: 16px !important; }
  #main-header #et_top_search { margin-left: 8px !important; }
  #main-header #top-menu > li > ul.sub-menu > li > a {
    font-size: 15px !important;
    font-weight: 700 !important;
  }
  #main-header #top-menu > li:not(:last-child):not(.tc-book):not(:has(> .tc-book, > a.et_pb_button))::after {
    content: "";
    position: absolute;
    top: 50%;
    right: calc(var(--tc-nav-gap, 36px) / 2);
    width: 1px;
    height: 0.6em;
    font-size: 16.5px;
    background: #000;
    transform: translate(50%, -50%);
    pointer-events: none;
  }
}

/* 1600–1799 */
@media (min-width: 1600px) and (max-width: 1799px) {
  #main-header #top-menu { --tc-nav-gap: 24px; }
}

/* 1440–1599: 18px is the maximum 16.5px gap that fits at 1440 */
@media (min-width: 1440px) and (max-width: 1599px) {
  #main-header #top-menu { --tc-nav-gap: 18px; }
}

/* 1360–1439 (includes 1366): 16.5px cannot fit 8 items; 16px + 8px gap */
@media (min-width: 1360px) and (max-width: 1439px) {
  #main-header #top-menu { --tc-nav-gap: 10px; }
  #main-header #top-menu > li > a {
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
  }
  #main-header #top-menu > li.menu-item-has-children > a,
  #main-header #top-menu > li.page_item_has_children > a { padding-right: 14px !important; }
  #main-header #et_top_search { margin-left: 6px !important; }
  /* 10px is too tight for the 1px divider to sit between labels. */
  #main-header #top-menu > li:not(:last-child):not(.tc-book):not(:has(> .tc-book, > a.et_pb_button))::after { content: none; }
}

/* 1280–1359 */
@media (min-width: 1280px) and (max-width: 1359px) {
  #main-header #top-menu { --tc-nav-gap: 8px; }
  #main-header #top-menu > li > a {
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
  }
  #main-header #top-menu > li.menu-item-has-children > a,
  #main-header #top-menu > li.page_item_has_children > a { padding-right: 14px !important; }
  #main-header #et_top_search { margin-left: 6px !important; }
  /* 8px is too tight for the 1px divider to sit between labels. */
  #main-header #top-menu > li:not(:last-child):not(.tc-book):not(:has(> .tc-book, > a.et_pb_button))::after { content: none; }
}

/* 1120–1279 */
@media (min-width: 1120px) and (max-width: 1279px) {
  #main-header #top-menu { --tc-nav-gap: 4px; }
  #main-header .container.et_menu_container,
  #main-header .et_menu_container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  #main-header #top-menu > li > a {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    letter-spacing: -0.03em !important;
  }
  #main-header #top-menu > li.menu-item-has-children > a,
  #main-header #top-menu > li.page_item_has_children > a { padding-right: 12px !important; }
  #main-header #et_top_search { margin-left: 6px !important; }
  #main-header #top-menu > li:not(:last-child):not(.tc-book):not(:has(> .tc-book, > a.et_pb_button))::after { content: none; }
}

/* 1024–1119 */
@media (min-width: 1024px) and (max-width: 1119px) {
  #main-header #top-menu { --tc-nav-gap: 4px; }
  #main-header .container.et_menu_container,
  #main-header .et_menu_container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  #main-header #logo,
  .et_header_style_left #logo {
    max-width: 200px !important;
  }
  #main-header #top-menu > li > a {
    font-size: 12.5px !important;
    font-weight: 700 !important;
    letter-spacing: -0.03em !important;
  }
  #main-header #top-menu > li.menu-item-has-children > a,
  #main-header #top-menu > li.page_item_has_children > a { padding-right: 12px !important; }
  #main-header #et_top_search { margin-left: 4px !important; }
  #main-header #top-menu > li:not(:last-child):not(.tc-book):not(:has(> .tc-book, > a.et_pb_button))::after { content: none; }
}

/* Keep hamburger typography from the original #tc-nav-bold-css block. */
@media (max-width: 1023px) {
  body #main-header .et_mobile_menu li a,
  body #main-header ul#mobile_menu li a {
    font-size: 20px !important;
    font-weight: 700 !important;
    padding-top: 16px !important;
    padding-bottom: 16px !important;
  }
  body #main-header .et_mobile_menu li li a,
  body #main-header ul#mobile_menu li li a {
    font-size: 18px !important;
    font-weight: 700 !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }
  body #main-header .et_mobile_menu > li:not(:last-child),
  body #main-header ul#mobile_menu > li:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.14);
  }
  body #main-header .et_mobile_menu li.current-menu-item > a,
  body #main-header .et_mobile_menu li.current_page_item > a,
  body #main-header ul#mobile_menu li.current-menu-item > a,
  body #main-header ul#mobile_menu li.current_page_item > a {
    color: #ff3215 !important;
  }
}
