/* Keep Astra's editable menu as the source and the no-script fallback. */
.site-header .bfa-category-mega[data-bfa-mega] > :is(a,.sub-menu,.ast-menu-toggle) { display:none!important }
.site-header .bfa-category-mega[data-bfa-mega] {
  position:static;
  --bm-ink:#f3f4ea;
  --bm-muted:#bec5b5;
  --bm-surface:#191e17;
  --bm-inset:#232a20;
  --bm-hover:#333e2d;
  --bm-lime:#c4f542;
  --bm-on-lime:#151b0e;
}
.site-header .bfa-mega-trigger,.site-header .bfa-mega-panel :is(button,input) {
  font:inherit;letter-spacing:normal;text-transform:none;
}
.site-header .bfa-mega-trigger,.site-header .bfa-mega-panel button {
  appearance:none;border:0;box-shadow:none;cursor:pointer;
}
.site-header .bfa-mega-trigger {
  display:flex;align-items:center;gap:9px;height:100%;min-height:48px;padding:0 18px;
  background:transparent;border-radius:0;color:var(--bm-ink);font-weight:650;
}
.site-header .bfa-mega-trigger > svg,.site-header .bfa-mega-title > svg {
  display:block;flex:none;box-sizing:border-box;width:22px;height:22px;padding:4px;
  background:var(--bm-lime);color:var(--bm-on-lime);border-radius:4px;stroke-width:2.8;
}
.site-header .bfa-mega-trigger[aria-expanded=true] > svg {transform:rotate(180deg)}
.site-header .bfa-mega-panel {
  position:fixed;z-index:10000;top:var(--bm-top,76px);left:50%;transform:translateX(-50%);
  width:min(1100px,calc(100vw - 40px));max-height:calc(100dvh - var(--bm-top,76px) - 12px);
  display:flex;flex-direction:column;overflow:auto;box-sizing:border-box;border-radius:6px;
  background:var(--bm-surface);color:var(--bm-ink);
  font-family:inherit;text-align:left;line-height:1.4;letter-spacing:normal;
}
.site-header .bfa-mega-panel[hidden],.site-header .bfa-mega-panel [hidden] {display:none!important}
.site-header .bfa-mega-panel a {text-decoration:none;color:inherit}
.site-header .bfa-mega-panel svg {width:18px;height:18px;display:block;flex:none}
.site-header .bfa-mega-bar {
  display:flex;align-items:center;gap:24px;flex:none;padding:16px 20px;background:var(--bm-inset);
}
.site-header .bfa-mega-filter {
  display:flex;align-items:center;gap:10px;min-width:0;width:39%;padding:0 13px;
  margin:0;background:#f1f2e9;color:#30362d;border-radius:4px;cursor:text;
}
.site-header .bfa-mega-filter:focus-within {outline:2px solid var(--bm-lime);outline-offset:3px}
.site-header .bfa-mega-filter input[type=search] {
  appearance:auto;box-sizing:border-box;min-width:0;width:100%;height:44px;padding:0;margin:0;
  color:#181e15;background:transparent;border:0;border-radius:0;outline:0;box-shadow:none;
  font-size:16px;line-height:1.4;
}
.site-header .bfa-mega-input::placeholder {color:#51594d;opacity:1}
.site-header .bfa-mega-shortcuts {display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.site-header .bfa-mega-shortcuts-label {font-size:14px;color:var(--bm-muted)}
.site-header a.bfa-mega-shortcut {
  display:inline-flex;align-items:center;min-height:36px;padding:0;
  color:var(--bm-ink);font-size:15px;font-weight:700;line-height:1.25;
  text-decoration:underline;text-decoration-color:#77836f;text-underline-offset:4px;
}
.site-header a.bfa-mega-shortcut:hover {color:var(--bm-lime);text-decoration-color:currentColor}
.site-header .bfa-mega-close {
  display:grid;place-items:center;margin-left:auto;flex:none;width:40px;height:40px;padding:0;
  background:transparent;color:var(--bm-muted);border-radius:4px;
}
.site-header .bfa-mega-close:hover {background:var(--bm-hover);color:var(--bm-ink)}
.site-header .bfa-mega-body {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.04fr);min-height:0;overflow:auto}
.site-header .bfa-mega-directory,.site-header .bfa-mega-detail,.site-header .bfa-mega-results {min-width:0;padding:22px 22px 24px}
.site-header .bfa-mega-detail {background:#10150f;padding-inline:26px}
.site-header a.bfa-mega-title {
  display:inline-flex;align-items:center;gap:12px;min-height:40px;margin:0 0 12px;padding:0;
  font-size:clamp(24px,2vw,28px);font-weight:750;line-height:1.17;letter-spacing:-.035em;
}
.site-header .bfa-mega-title:hover {color:var(--bm-lime)}
.site-header .bfa-mega-title > svg {width:22px;height:22px}
.site-header .bfa-mega-directory .bfa-mega-title {font-size:19px}
.site-header .bfa-mega-directory .bfa-mega-title > svg {background:transparent;color:var(--bm-lime);padding:2px}
.site-header .bfa-mega-choices {
  display:grid;grid-auto-flow:column;grid-template-columns:repeat(2,minmax(0,1fr));
  grid-template-rows:repeat(var(--bfa-group-rows),auto);gap:2px 7px;
}
.site-header .bfa-mega-choices .bfa-mega-choice {
  display:flex;align-items:center;gap:9px;min-width:0;min-height:42px;margin:0;padding:7px 9px;
  border:0;border-radius:4px;background:transparent;color:var(--bm-ink);
  font-size:15px;font-weight:600;line-height:1.3;text-align:left;white-space:normal;
}
.site-header .bfa-mega-choice .bfa-category-icon {display:block;width:18px;height:18px;color:inherit;flex:none}
.site-header .bfa-mega-choice svg:first-child {width:17px;height:17px}
.site-header .bfa-mega-choice > :first-child {color:#b4c1a9}
.site-header .bfa-mega-choice .bfa-mega-name {flex:1;min-width:0;overflow-wrap:anywhere}
.site-header .bfa-mega-choice > svg:last-child {width:13px;height:13px;color:#a4ae9c}
.site-header .bfa-mega-choices .bfa-mega-choice:hover {background:var(--bm-hover);color:var(--bm-ink)}
.site-header .bfa-mega-choices .bfa-mega-choice[aria-expanded=true] {background:var(--bm-lime);color:var(--bm-on-lime)}
.site-header .bfa-mega-choice[aria-expanded=true] > :is(:first-child,svg:last-child) {color:inherit}
.site-header .bfa-mega-panel ul.bfa-mega-link-list {
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 12px;position:static;
  width:auto;margin:0;padding:0;list-style:none;box-shadow:none;border:0;background:none;
}
.site-header .bfa-mega-panel .bfa-mega-link-list li {width:auto;margin:0;padding:0;list-style:none}
.site-header .bfa-mega-link-list .bfa-mega-link {
  display:flex;flex-direction:column;justify-content:center;min-height:39px;padding:7px 8px;margin:0;
  font-size:16px;line-height:1.35;font-weight:500;border-radius:3px;white-space:normal;overflow-wrap:anywhere;
}
.site-header .bfa-mega-destinations .bfa-mega-link-list {margin-left:-8px}
.site-header .bfa-mega-link-list .bfa-mega-link:hover,.site-header .bfa-mega-link-list .bfa-mega-link:focus-visible {
  background:var(--bm-inset);color:var(--bm-lime);text-decoration:underline;text-underline-offset:4px;
}
.site-header .bfa-mega-panel a[aria-current=page] {text-decoration:underline;text-underline-offset:4px}
.site-header .bfa-mega-back {display:none}
.site-header .bfa-mega-results {overflow:auto;min-height:0}
.site-header .bfa-mega-results .bfa-mega-link-list {grid-template-columns:repeat(3,minmax(0,1fr))}
.site-header .bfa-mega-parent {font-size:12px;font-weight:500;color:var(--bm-muted);line-height:1.5}
.site-header .bfa-mega-empty {margin:0;padding:8px;font-size:16px}
.site-header .bfa-mega-panel :is(a,button):focus-visible,.site-header .bfa-mega-trigger:focus-visible {
  outline:2px solid var(--bm-lime);outline-offset:1px;
}

#ast-mobile-header #ast-hf-mobile-menu > .menu-item > .menu-link {padding-inline:20px}
#ast-mobile-header .bfa-mega-trigger {
  justify-content:space-between;width:100%;min-height:50px;padding:12px 20px;color:var(--bm-ink);
}
#ast-mobile-header .bfa-mega-panel {
  position:static;transform:none;width:100%;max-height:none;margin:0;border-radius:0;box-shadow:none;overflow:visible;
}
#ast-mobile-header .bfa-mega-bar {display:grid;grid-template-columns:minmax(0,1fr);gap:6px;padding:12px 16px 8px}
#ast-mobile-header .bfa-mega-filter {width:100%}
#ast-mobile-header .bfa-mega-close {display:none}
#ast-mobile-header .bfa-mega-shortcuts {grid-column:1/-1;gap:0 16px}
#ast-mobile-header .bfa-mega-shortcuts-label {font-size:13px}
#ast-mobile-header a.bfa-mega-shortcut {min-height:44px}
#ast-mobile-header .bfa-mega-body,#ast-mobile-header .bfa-mega-results {
  display:block;max-height:min(56dvh,540px);overflow:auto;overscroll-behavior-y:contain;
}
#ast-mobile-header .bfa-mega-directory,#ast-mobile-header .bfa-mega-detail,#ast-mobile-header .bfa-mega-results {padding:10px 16px 16px}
#ast-mobile-header .bfa-mega-directory .bfa-mega-title {font-size:18px;min-height:44px;margin:0 0 3px}
#ast-mobile-header .bfa-mega-choices {grid-auto-flow:row;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:none;gap:2px 6px}
#ast-mobile-header .bfa-mega-choices .bfa-mega-choice {min-height:48px;padding:6px 4px;gap:6px;font-size:15px}
#ast-mobile-header .bfa-mega-choice > svg:last-child {width:12px}
#ast-mobile-header .bfa-mega-back {display:flex;align-items:center;gap:8px;min-height:44px;padding:0;margin:0 0 2px;background:transparent;color:var(--bm-muted);font-size:14px}
#ast-mobile-header .bfa-mega-destinations .bfa-mega-title {font-size:22px;min-height:44px;margin:0 0 5px}
#ast-mobile-header .bfa-mega-link-list {grid-template-columns:repeat(2,minmax(0,1fr));gap:0 6px}
#ast-mobile-header .bfa-mega-link-list .bfa-mega-link {min-height:46px}
#ast-mobile-header .bfa-mega-results .bfa-mega-link-list {grid-template-columns:1fr}
@media (max-width:374px) {
  #ast-mobile-header .bfa-mega-choices {grid-template-columns:1fr}
  #ast-mobile-header .bfa-mega-choices .bfa-mega-choice {font-size:16px;gap:12px}
}
@media (max-width:359px) {
  #ast-mobile-header .bfa-mega-link-list {grid-template-columns:1fr}
  #ast-mobile-header .bfa-mega-shortcuts {gap:0 10px}
  #ast-mobile-header a.bfa-mega-shortcut {font-size:14px}
}
@media(max-width:921px){html:has(body.admin-bar){overflow-x:clip}}

/* Two interaction levels: deeper branches are grouped, directly clickable links. */
.site-header .bfa-mega-sections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:8px}
.site-header .bfa-mega-section{min-width:0}
.site-header .bfa-mega-section-title{font-size:17px;line-height:1.35;margin:0 0 6px;color:var(--bm-ink);font-weight:700}
.site-header .bfa-mega-section-title .bfa-mega-section-link{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;padding:0 8px;color:var(--bm-lime)}
.site-header .bfa-mega-section-link:hover{text-decoration:underline;text-underline-offset:4px}
.site-header .bfa-mega-section-link:focus-visible{outline:2px solid var(--bm-lime);outline-offset:2px}
.site-header .bfa-mega-panel .bfa-mega-section ul.bfa-mega-link-list{grid-template-columns:1fr}
#ast-mobile-header .bfa-mega-sections{grid-template-columns:1fr;gap:14px}
#ast-mobile-header .bfa-mega-section .bfa-mega-link-list{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:359px){#ast-mobile-header .bfa-mega-section .bfa-mega-link-list{grid-template-columns:1fr}}
