/* The bar stays in the same scrolling container as the sections it indexes. */
.fx-editorial main :is(.fx-case-nav-row.vc_row,.fx-dir-jumps.vc_row,.fx-anchor-bar) {
  position: sticky;
  top: calc(var(--fx-admin-offset, 0px) + var(--fx-mast-height, 0px));
  z-index: 8;
  background: #fff;
  color: #171717;
  border-block: 1px solid #d3d3cd;
  padding-block: 0;
}
.fx-editorial main :is(.fx-case-menu,.fx-client-menu) :is(p,.fx-local-list) {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  margin: 0;
}
:is(.fx-case-menu,.fx-client-menu) p > span:first-child,
.fx-local-toggle > span { color: #555650; font: 600 .87rem/1.25 var(--fx-sans); }
.fx-editorial main :is(.fx-case-menu,.fx-client-menu) a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: 600 .98rem/1.25 var(--fx-sans);
  color: #171717;
  text-decoration: none;
}
.fx-editorial main :is(.fx-case-menu,.fx-client-menu) a:is(:hover,:focus-visible,[aria-current="location"]) {
  text-decoration: underline;
  text-underline-offset: .34em;
  text-decoration-thickness: 2px;
}
.fx-local-toggle { display: none; }
.fx-editorial main :is(.fx-case-row[id],.fx-dir-sector[id],[data-fx-section-target]) {
  scroll-margin-top: calc(var(--fx-admin-offset, 0px) + var(--fx-mast-height, 0px) + var(--fx-section-bar-height, 46px) + 8px);
}
/* This section already has its own top padding and begins directly below the sticky menu. */
.fx-editorial main .fx-case-nav-row + .fx-case-details-row[id] {
  scroll-margin-top: calc(var(--fx-admin-offset, 0px) + var(--fx-mast-height, 0px) + var(--fx-section-bar-height, 46px));
}
.fx-directory-page:has(.fx-client-menu) [data-fxe-categories] { display: none; }
.fx-directory-page:has(.fx-client-menu) :is(.fx-dir-sector,.fx-dir-logos) { background: #fff; }
.fx-directory-page .fx-dir-jumps + .fx-dir-sector,
.fx-directory-page .fx-dir-logos + .fx-dir-sector { padding-top: var(--fx-section-gap); }
body:is(.vc_editor,.compose-mode) main :is(.fx-case-nav-row.vc_row,.fx-dir-jumps.vc_row) { position: static; }

@media (max-width:800px) {
  .fx-mast .fx-site-header-grid.vc_row {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: center;
    gap: .65rem;
    width: 100%;
    margin: 0;
    position: relative;
  }
  .fx-mast.fx-native-header .fx-site-header-grid.vc_row {
    padding: .43rem var(--fx-gutter);
    min-height: 60px;
  }
  .fx-mast .fx-site-header-grid.vc_row::before,
  .fx-mast .fx-site-header-grid.vc_row::after { display: none; }
  .fx-mast .fx-site-header-grid.vc_row > .wpb_column { position: static; width: auto; min-width: 0; margin: 0; }
  .fx-mast .fx-site-header-grid.vc_row > .wpb_column > .vc_column-inner { padding: 0; }
  .fx-mast .fx-site-header-grid .fx-native-brand { text-align: start; }
  .fx-mast .fx-site-header-grid .fx-native-brand img,
  .fx-mast .fx-brand :is(.fx-wordmark,.custom-logo) { width: clamp(76px,19vw,100px); height: auto; }
  .fx-mast :is(.fx-mark-paper,.fx-mark-reverse,.fx-native-brand) img { vertical-align: middle; }
  .fx-mast .fx-mobile-nav { display: flex; align-items: center; justify-content: flex-end; gap: clamp(.5rem,2.5vw,.85rem); margin-left: auto; }
  .fx-mast .fx-mobile-section { font: 600 .98rem/1.2 var(--fx-sans); max-width: 33vw; }
  .fx-mast .fx-menu-button {
    flex: none;
    padding: .45rem .95rem;
    min-height: 44px;
    border: 1px solid #898982;
    border-radius: 0;
    background: var(--fx-surface,#fff);
    color: inherit;
    line-height: 1.2;
  }
  .fx-mast .fx-native-breadcrumb-row { display: none; }
  .fx-mast .fx-site-header-grid #fx-main-nav.fx-collapsible.is-open {
    position: absolute;
    z-index: 9;
    inset: 100% 0 auto;
    width: 100%;
    max-height: 65vh;
    overflow-y: auto;
    padding: .35rem var(--fx-gutter);
    background: var(--fx-surface,#fff);
    border-bottom: 1px solid #ccc;
    box-shadow: 0 8px 14px #0001;
  }
  .fx-mast .fx-site-header-grid #fx-main-nav.is-open .fx-menu { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .fx-mast .fx-site-header-grid #fx-main-nav.is-open a { display: block; }
  .fx-native-header .fx-site-header-grid:has(#fx-main-nav:not(.fx-collapsible)) > .wpb_column:has(#fx-main-nav) { grid-column: 1/-1; }
  .fx-mast .fx-mobile-nav:has(.fx-menu-button[hidden]) { display: none; }

  .fx-local-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: clamp(.65rem,4.3vw,1.4rem);
    min-height: 46px;
    border: 0;
    border-radius: 0;
    background: #fff;
    padding: .55rem 0;
    text-align: start;
    color: #171717;
    cursor: pointer;
  }
  .fx-local-toggle > span { flex: none; }
  .fx-local-toggle strong { min-width: 0; overflow-wrap: anywhere; font: 700 1rem/1.22 var(--fx-sans); }
  .fx-local-toggle::after {
    content: "";
    flex: none;
    width: .43rem; height: .43rem;
    border: solid currentColor; border-width: 0 2px 2px 0;
    margin-inline: auto .22rem;
    transform: translateY(-.1em) rotate(45deg);
  }
  .fx-local-toggle[aria-expanded="true"]::after { transform: translateY(.1em) rotate(225deg); }
  .fx-editorial main .fx-local-toggle + .fx-local-list { display: none; }
  .fx-editorial main .fx-local-toggle[aria-expanded="true"] + .fx-local-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    inset: 100% 0 auto;
    z-index: 1;
    max-height: min(53vh,20rem);
    overflow-y: auto;
    gap: 0;
    padding: .2rem var(--fx-gutter) .5rem;
    background: #fff;
    border-block: 1px solid #d3d3cd;
    box-shadow: 0 8px 14px #0001;
  }
  .fx-local-toggle + .fx-local-list > span:first-child,
  .fx-local-toggle + .fx-local-list > p:first-child > span:first-child { display: none; }
  .fx-local-list :is(ul,ol) { list-style: none; margin: 0; padding: 0; }
  .fx-local-toggle + .fx-local-list li a { width: 100%; }
  .fx-editorial .fx-directory-page .fx-dir-logos .fx-native-card { padding: clamp(.45rem,1.7vw,.8rem) .5rem; }
  .fx-editorial .fx-directory-page .fx-dir-logos .wpb_single_image,
  .fx-editorial .fx-directory-page .fx-dir-logos .wpb_single_image :is(figure,.vc_single_image-wrapper,a) { height: clamp(3.4rem,12vw,5.1rem); }
  .fx-editorial .fx-directory-page .fx-dir-logos .wpb_single_image img { max-height: 100%; height: auto; }
  .fx-editorial .fx-directory-page .fx-dir-logos .wpb_text_column p { color: #555650; margin: .45rem 0 .1rem; font: 400 .89rem/1.25 var(--fx-sans); }
  .fx-local-list > a + a { border-top: 1px solid #eeeee9; }
  .fx-editorial main :is(.fx-case-nav-row,.fx-dir-jumps) :is(.wpb_column,.vc_column-inner,.wpb_wrapper) { position: static; }
  .fx-local-toggle:focus-visible,.fx-mobile-nav button:focus-visible { outline: 2px solid currentColor; outline-offset: -3px; }
}

@media print {
  .fx-editorial main :is(.fx-case-nav-row,.fx-dir-jumps,.fx-anchor-bar) { display: none; }
}
.fx-editorial main :is(.fx-case-menu,.fx-client-menu) a[hidden] { display: none; }
