/* Madbax Chrome — M3 Top App Bar (nav category dropdowns)
 * Spec: docs/madbax-home-design.md + docs/madbax-home-map.md
 */

.mbx-chrome {
  --md-sys-color-primary: #00e599;
  --md-sys-color-on-primary: #0a0a0a;
  --md-sys-color-surface: #f2f2f2;
  --md-sys-color-surface-container-lowest: #ffffff;
  --md-sys-color-surface-container-high: #e8e8eb;
  --md-sys-color-surface-container-highest: #e2e2e6;
  --md-sys-color-secondary-container: #c8f5e4;
  --md-sys-color-on-secondary-container: #003826;
  --md-sys-color-on-surface: #17191a;
  --md-sys-color-on-surface-variant: #5c6570;
  --md-sys-color-outline: #79747e;
  --md-sys-color-outline-variant: #c7c5d0;
  --md-sys-shape-corner-small: 8px;
  --md-sys-shape-corner-medium: 12px;
  --md-sys-shape-corner-extra-large: 28px;
  --md-sys-shape-corner-full: 999px;
  --md-sys-state-hover: 0.08;
  --md-sys-motion: 150ms cubic-bezier(0.2, 0, 0, 1);
  --md-sys-typescale-brand: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --md-sys-typescale-plain: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mbx-tab-h: 68px;
  --mbx-ink: #171718;
  --mbx-search-bg: #f4f3ee;
  --mbx-search-border: #e1dfd8;

  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200000;
  font-family: var(--md-sys-typescale-plain);
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
  /* No idle transform — it creates a containing block and traps
     position:fixed descendants (drawer/scrim) to chrome height. */
  transition: transform 200ms cubic-bezier(0.2, 0, 0, 1);
}

/* Never use generic .is-hidden — Bopea maps it to display:none */
.mbx-chrome.mbx-chrome--away {
  /* Auto-hide disabled — keep chrome visible; ignore legacy away class. */
  transform: none;
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .mbx-chrome {
    transition: none;
  }
  body.mbx-chrome-on {
    transition: none;
  }
}

.mbx-chrome *,
.mbx-chrome *::before,
.mbx-chrome *::after {
  box-sizing: border-box;
}

/* Hide Bopea / theme header + sticky clone everywhere chrome is present.
   Sticky bar is a DIV (.jlc-stick-main-w), not header.jlc-hmain-w — must hide both. */
body:has(.mbx-chrome) header.jlc-hmain-w,
body:has(.mbx-chrome) .jlc-hmain-w,
body:has(.mbx-chrome) .jlc-stick-main-w,
body:has(.mbx-chrome) .jlc-stick-main-in,
body:has(.mbx-chrome) .tp_head_off > header,
body:has(.mbx-chrome) .options_header,
body:has(.mbx-chrome) .jl_mobile_nav,
body:has(.mbx-chrome) .menu_mobile_large,
body:has(.mbx-chrome) #jl_mobile_nav,
body:has(.mbx-chrome) .mobile_menu_wrap,
body.mbx-chrome-on header.jlc-hmain-w,
body.mbx-chrome-on .jlc-hmain-w,
body.mbx-chrome-on .jlc-stick-main-w,
body.mbx-chrome-on .jlc-stick-main-in,
body.mbx-chrome-on .tp_head_off > header {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
}

body.mbx-chrome-on {
  padding-top: var(--mbx-chrome-offset, 68px) !important;
  /* No transition — animating padding reflows the whole page and feels like a freeze on load/refresh. */
}

/* WP admin bar */
body.admin-bar .mbx-chrome {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar .mbx-chrome {
    top: 46px;
  }
}

/* —— Top App Bar (CGLTG header-main layout) —— */
.mbx-tab {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(23, 23, 24, 0.08);
  min-height: var(--mbx-tab-h);
}

.mbx-tab__inner {
  /* Content shell — fixed max 1440 */
  width: min(1440px, 100% - 120px);
  max-width: none;
  margin-inline: auto;
  padding: 0;
  min-height: var(--mbx-tab-h);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 176px auto;
  align-items: center;
  gap: 16px;
  box-sizing: border-box;
}

@media (max-width: 1560px) {
  .mbx-tab__inner {
    width: calc(100% - 64px);
    grid-template-columns: auto minmax(0, 1fr) 42px auto;
    gap: 12px;
  }
}

@media (max-width: 1100px) {
  .mbx-tab__inner {
    width: calc(100% - 32px);
    grid-template-columns: auto 1fr auto;
    gap: 14px;
  }
}

@media (max-width: 560px) {
  .mbx-tab__inner {
    width: calc(100% - 24px);
  }
}

.mbx-tab__brand {
  flex: 0 0 auto;
  font-family: var(--md-sys-typescale-brand);
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.085em;
  color: var(--mbx-ink) !important;
  text-decoration: none !important;
  white-space: nowrap;
}

.mbx-tab__brand:hover {
  color: var(--mbx-ink) !important;
}

.mbx-tab__nav {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 1px;
  min-width: 0;
  height: var(--mbx-tab-h);
}

.mbx-tab__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: var(--mbx-tab-h);
  padding: 0 8px;
  border-radius: 0;
  position: relative;
  font-family: var(--md-sys-typescale-plain);
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--mbx-ink) !important;
  text-decoration: none !important;
  white-space: nowrap;
  background: transparent;
  transition: color var(--md-sys-motion);
}

.mbx-tab__link::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 0;
  height: 2px;
  border-radius: 3px;
  background: var(--mbx-ink);
  transform: scaleX(0);
  transform-origin: 50% center;
  transition: transform 0.2s;
}

.mbx-tab__link:hover,
.mbx-tab__link:focus-visible,
.mbx-tab__item--dropdown:hover > .mbx-tab__link,
.mbx-tab__link--dropdown[aria-expanded="true"] {
  color: var(--mbx-ink) !important;
  background: transparent;
}

.mbx-tab__link:hover::after,
.mbx-tab__link:focus-visible::after,
.mbx-tab__item--dropdown:hover > .mbx-tab__link::after,
.mbx-tab__link--dropdown[aria-expanded="true"]::after,
.mbx-tab__link.is-active::after {
  transform: scaleX(1);
}

/* WCAG 2.4.7 Focus Visible — the underline alone is not a sufficient
   focus indicator; keep a real outline for keyboard navigation. */
.mbx-tab__link:focus-visible {
  outline: 2px solid var(--md-sys-color-primary);
  outline-offset: -2px;
  border-radius: 4px;
}

.mbx-tab__item--dropdown {
  position: relative;
  display: flex;
  align-items: stretch;
  flex: 0 0 auto;
  min-width: 0;
}

button.mbx-tab__link--dropdown {
  gap: 4px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.mbx-tab__chev {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  background-color: #aaa7a0;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") center / 10px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") center / 10px no-repeat;
  transition: transform var(--md-sys-motion);
}

.mbx-tab__link--dropdown[aria-expanded="true"] .mbx-tab__chev {
  transform: rotate(180deg);
}

/* Always-visible search — CGLTG .search-form */
.mbx-tab__search {
  display: grid;
  grid-template-columns: 1fr 40px;
  align-items: stretch;
  width: 176px;
  min-height: 38px;
  height: 38px;
  margin: 0;
  padding: 0;
  border-radius: 9px;
  background: var(--mbx-search-bg);
  border: 1px solid var(--mbx-search-border);
  position: relative;
  overflow: hidden;
}

.mbx-tab__search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: #5c6570;
}

.mbx-tab__search-submit:hover {
  background: rgba(23, 23, 24, 0.06);
}

.mbx-tab__search-submit:focus-visible {
  outline: 2px solid var(--md-sys-color-primary);
  outline-offset: -2px;
}

.mbx-tab__search-icon {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  background-color: #5c6570;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.47 6.47 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5Zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14Z'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.47 6.47 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5Zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14Z'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
}

.mbx-tab__search-input {
  min-width: 0;
  width: 100%;
  height: 100%;
  margin: 0 !important;
  padding: 0 0 0 12px !important;
  border: 0 !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
  font-family: var(--md-sys-typescale-plain);
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  letter-spacing: 0;
  color: var(--mbx-ink) !important;
  opacity: 1;
  pointer-events: auto;
}

.mbx-tab__search-input::placeholder {
  color: #8b8680;
  opacity: 1;
}

.mbx-tab__search:focus-within {
  border-color: rgba(23, 23, 24, 0.28);
}

.mbx-tab__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  white-space: nowrap;
}

.mbx-tab__text-link {
  font-family: var(--md-sys-typescale-plain);
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
  color: var(--mbx-ink) !important;
  text-decoration: none !important;
}

.mbx-tab__text-link:hover {
  opacity: 0.72;
}

.mbx-tab__cta {
  flex: 0 0 auto;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  padding: 12px 15px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: var(--mbx-ink) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-family: var(--md-sys-typescale-plain) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: -0.01em !important;
  text-decoration: none !important;
  text-transform: none !important;
  white-space: nowrap !important;
  box-shadow: none !important;
  transition: filter var(--md-sys-motion);
}

.mbx-tab__cta:hover {
  filter: brightness(1.08);
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.mbx-tab__cta:focus-visible {
  outline: 2px solid var(--md-sys-color-primary);
  outline-offset: 2px;
}

.mbx-tab__menu-btn {
  display: none;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  color: #17191a !important;
  -webkit-text-fill-color: #17191a !important;
}

.mbx-tab__menu-icon {
  width: 24px;
  height: 24px;
  background-color: #17191a !important;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z'/%3E%3C/svg%3E") center / 24px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z'/%3E%3C/svg%3E") center / 24px no-repeat;
}

.mbx-tab__menu-btn:focus-visible {
  outline: 2px solid var(--md-sys-color-primary);
  outline-offset: 2px;
}

/* Drawer — MUST use literal colors: drawer/scrim live outside .mbx-chrome
   so CSS variables from .mbx-chrome do not apply (transparent menu bug). */
.mbx-tab__scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.32) !important;
  z-index: 200010;
}

.mbx-tab__drawer {
  --md-sys-color-primary: #00e599;
  --md-sys-color-on-primary: #0a0a0a;
  --md-sys-color-surface-container-lowest: #ffffff;
  --md-sys-color-on-surface: #17191a;
  --md-sys-color-on-surface-variant: #5c6570;
  --md-sys-shape-corner-small: 8px;
  --md-sys-shape-corner-full: 999px;
  --md-sys-typescale-brand: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 86vw);
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  background: #ffffff !important;
  background-color: #ffffff !important;
  z-index: 200020;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.18);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: max(24px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
}

.mbx-tab__drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mbx-tab__drawer-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: var(--md-sys-shape-corner-small);
  font-family: var(--md-sys-typescale-brand);
  font-size: 16px;
  font-weight: 500;
  color: var(--md-sys-color-on-surface) !important;
  text-decoration: none !important;
}

.mbx-tab__drawer-nav a:hover {
  background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, transparent);
}

.mbx-tab__drawer-cta {
  margin-top: 12px !important;
  justify-content: center !important;
  background: var(--md-sys-color-primary) !important;
  color: var(--md-sys-color-on-primary) !important;
  font-weight: 600 !important;
  border-radius: var(--md-sys-shape-corner-full) !important;
}

.mbx-tab__drawer-group {
  margin: 0;
  padding: 0;
  border: 0;
}

.mbx-tab__drawer-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 16px;
  border-radius: var(--md-sys-shape-corner-small);
  font-family: var(--md-sys-typescale-brand);
  font-size: 16px;
  font-weight: 500;
  color: #17191a !important;
  cursor: pointer;
  list-style: none;
}

.mbx-tab__drawer-summary::-webkit-details-marker {
  display: none;
}

.mbx-tab__drawer-summary::after {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") center / 18px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") center / 18px no-repeat;
  transition: transform var(--md-sys-motion);
}

.mbx-tab__drawer-group[open] > .mbx-tab__drawer-summary::after {
  transform: rotate(180deg);
}

.mbx-tab__drawer-summary:hover {
  background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, transparent);
}

.mbx-tab__drawer-sub {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 0 8px 8px;
}

.mbx-tab__drawer-sub a {
  min-height: 40px;
  font-size: 15px;
  font-weight: 400;
  color: #5c6570 !important;
}

/* Nav dropdown menu — literal colors: JS portals menu to document.body
   outside .mbx-chrome, so CSS variables from .mbx-chrome do not apply. */
.mbx-tab__menu {
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  z-index: 20;
  min-width: 200px;
  max-height: 280px;
  overflow: auto;
  margin: 0;
  padding: 13px;
  list-style: none;
  background-color: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid #e3e1db !important;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 24px 65px rgba(27, 25, 20, 0.14);
}

.mbx-tab__menu-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  width: 100% !important;
  text-align: left !important;
  border: 0 !important;
  background: transparent !important;
  padding: 8px !important;
  margin: 0 !important;
  min-height: 34px !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  line-height: 20px !important;
  color: #54514c !important;
  -webkit-text-fill-color: #54514c !important;
  text-decoration: none !important;
  cursor: pointer !important;
  text-transform: none !important;
  box-shadow: none !important;
  border-radius: 6px !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

.mbx-tab__menu-item span {
  color: #aaa69e !important;
  -webkit-text-fill-color: #aaa69e !important;
  font-weight: 400 !important;
}

.mbx-tab__menu-item:hover {
  color: #171718 !important;
  -webkit-text-fill-color: #171718 !important;
  background: #f1f0eb !important;
}

/* CGLTG course mega panel */
.mbx-tab__menu--mega {
  width: min(820px, calc(100vw - 48px)) !important;
  max-width: min(820px, calc(100vw - 48px)) !important;
  min-width: 0 !important;
  max-height: none !important;
  overflow: hidden !important;
  padding: 0 !important;
  border-radius: 0 0 18px 18px !important;
  display: block !important;
}

.mbx-tab__mega-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 66px;
  padding: 14px 20px;
  background: #f5f4ef !important;
  border-bottom: 1px solid #e7e4dc;
}

.mbx-tab__mega-intro > div {
  display: grid;
  gap: 4px;
}

.mbx-tab__mega-intro strong {
  color: #282724;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.mbx-tab__mega-intro span {
  color: #8b877f;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.mbx-tab__mega-all {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 9px 14px !important;
  border: 1px solid #d9d6cd !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #393733 !important;
  -webkit-text-fill-color: #393733 !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  text-decoration: none !important;
  white-space: nowrap;
}

.mbx-tab__mega-all:hover {
  background: #00e599 !important;
  border-color: #00e599 !important;
  color: #0a0a0a !important;
  -webkit-text-fill-color: #0a0a0a !important;
}

.mbx-tab__mega-all b {
  font-size: 13px;
  font-weight: 400;
}

.mbx-tab__mega-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mbx-tab__menu--cols-1 .mbx-tab__mega-groups {
  grid-template-columns: minmax(0, 1fr);
}

.mbx-tab__menu--cols-2 .mbx-tab__mega-groups {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mbx-tab__menu--cols-3 .mbx-tab__mega-groups {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mbx-tab__mega-group {
  min-width: 0;
  padding: 18px 13px 20px;
}

.mbx-tab__mega-group + .mbx-tab__mega-group {
  border-left: 1px solid #eeece6;
}

.mbx-tab__mega-group > strong {
  display: block;
  margin: 0 8px 9px;
  color: #969189;
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mbx-tab__mega-group > div {
  display: grid;
  gap: 2px;
}

.mbx-tab__item--mega:nth-of-type(1) .mbx-tab__menu--mega {
  left: -65px;
}

@media (max-width: 899px) {
  .mbx-tab__mega-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .mbx-tab__mega-groups {
    grid-template-columns: 1fr;
  }
  .mbx-tab__mega-group + .mbx-tab__mega-group {
    border-left: 0;
    border-top: 1px solid #eeece6;
  }
}

@media (max-width: 1240px) {
  .mbx-tab__link {
    padding: 0 6px;
    font-size: 10px;
  }

  .mbx-tab__search {
    width: 42px;
    grid-template-columns: 42px;
  }

  .mbx-tab__search-input {
    display: none;
  }
}

/* Compact */
@media (max-width: 899px) {
  .mbx-tab__nav,
  .mbx-tab__actions .mbx-tab__text-link {
    display: none;
  }

  .mbx-tab__inner {
    grid-template-columns: auto 1fr auto auto;
    gap: 10px;
  }

  .mbx-tab__search {
    width: 176px;
    grid-template-columns: 1fr 40px;
    justify-self: end;
  }

  .mbx-tab__search-input {
    display: block;
  }

  .mbx-tab__menu-btn {
    display: inline-flex;
  }
}

@media (max-width: 599px) {
  .mbx-tab__search {
    width: 42px;
    grid-template-columns: 42px;
  }

  .mbx-tab__search-input {
    display: none;
  }

  .mbx-tab__cta {
    padding: 10px 12px !important;
    font-size: 10px !important;
  }
}

/* Bopea single-post header prints breadcrumbs AND .jl_f_cat chips.
   Chips repeat the same parent+child terms. Keep crumbs only. */
body.single.single-post .jl_shead_tpl1 .jl_f_cat,
body.single .jl_shead_tpl_txt > .jl_f_cat {
  display: none !important;
}
