/* All rules are scoped so page-builder/theme styling elsewhere is untouched. */
.btcc-header {
  --btcc-blue: #064281;
  --btcc-yellow: #fbf104;
  --btcc-ink: #123554;
  --btcc-muted: #52677e;
  --btcc-line: #e1e8f0;
  position: relative; z-index: 99; width: 100%; max-width: none;
  margin: 0; padding: 0; text-align: left; color: var(--btcc-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px; line-height: 1.5; font-weight: 400; letter-spacing: normal;
  -webkit-font-smoothing: antialiased; isolation: isolate;
}
.btcc-header *, .btcc-header *::before, .btcc-header *::after { box-sizing: border-box; }
.btcc-header [hidden] { display: none !important; }
.btcc-header a { text-decoration: none; box-shadow: none; color: inherit; }
.btcc-header button, .btcc-header input { font: inherit; letter-spacing: normal; text-transform: none; margin: 0; }
.btcc-header button { cursor: pointer; min-height: 0; width: auto; box-shadow: none; }
.btcc-header button, .btcc-header a { -webkit-tap-highlight-color: transparent; }
.btcc-header a:focus-visible, .btcc-header button:focus-visible, .btcc-header input:focus-visible {
  outline: 3px solid var(--btcc-yellow); outline-offset: 4px;
}
.btcc-header .btcc-utility a:focus-visible, .btcc-header .sub-menu a:focus-visible,
.btcc-header .sub-menu button:focus-visible, .btcc-header .btcc-breadcrumbs a:focus-visible,
.btcc-header .btcc-apply:focus-visible { outline-color: #598dd0; }
.btcc-header .btcc-shell { width: min(100% - 80px, 1400px); margin-inline: auto; }
.btcc-header .btcc-icon { display: block; flex: 0 0 auto; width: 20px; height: 20px; }
.btcc-header .btcc-utility { background: var(--btcc-yellow); color: var(--btcc-blue); }
.btcc-header .btcc-utility-inner { display: flex; justify-content: space-between; align-items: center; min-height: 39px; gap: 20px; }
.btcc-header .btcc-contact, .btcc-header .btcc-quicklinks { display: flex; align-items: center; gap: 25px; }
.btcc-header .btcc-utility a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; padding-block: 7px; }
.btcc-header .btcc-utility a:hover { text-decoration: underline; text-underline-offset: 4px; }
.btcc-header .btcc-utility .btcc-icon { width: 14px; height: 14px; }
.btcc-header .btcc-quicklinks { gap: 20px; }
.btcc-header .btcc-directory { padding-right: 20px; border-right: 1px solid #06428130; }
.btcc-header .btcc-main { background: var(--btcc-blue); color: #fff; position: relative; }
.btcc-header .btcc-main-inner { min-height: 126px; display: flex; align-items: center; gap: 30px; position: relative; }
.btcc-header .btcc-brand { display: flex; align-items: center; gap: 17px; flex-shrink: 0; padding-block: 14px; }
.btcc-header .btcc-logo { display: block; width: 106px; height: 89px; max-width: none; object-fit: contain; }
.btcc-header .btcc-navigation { margin-left: auto; min-width: 0; }
.btcc-header ul { list-style: none; margin: 0; padding: 0; }
.btcc-header li { list-style: none; margin: 0; padding: 0; }
.btcc-header .btcc-mobile-label, .btcc-header .btcc-menu .btcc-mobile-overview { display: none; }
.btcc-header .btcc-motion-panel, .btcc-header .btcc-motion-content { display: contents; }
.btcc-header .btcc-menu { display: flex; align-items: center; gap: 44px; }
.btcc-header .btcc-menu a, .btcc-header .btcc-menu button,
.btcc-header .btcc-quicklinks a, .btcc-header .btcc-apply { text-transform: uppercase; }
.btcc-header .btcc-menu > li { display: flex; align-items: center; position: relative; }
.btcc-header .btcc-menu > li > a, .btcc-header .btcc-menu > li > .btcc-parent-toggle {
  display: inline-flex; align-items: center; min-height: 48px; padding: 12px 0; position: relative;
  white-space: nowrap; color: #fff; font-size: 17px; font-weight: 600; line-height: 1.4;
  border: 0; border-radius: 0; background: transparent;
}
.btcc-header .btcc-menu > li > a::after, .btcc-header .btcc-menu > li > .btcc-parent-toggle::after {
  content: ""; position: absolute; height: 2px; background: var(--btcc-yellow); bottom: 3px; left: 0; width: 0; transition: width .18s;
}
.btcc-header .btcc-menu > li:hover > a::after, .btcc-header .btcc-menu > li:hover > .btcc-parent-toggle::after,
.btcc-header .btcc-menu > .current-menu-item > a::after, .btcc-header .btcc-menu > .current-menu-ancestor > a::after,
.btcc-header .btcc-menu > .btcc-open > .btcc-parent-toggle::after { width: 100%; }
.btcc-header .btcc-menu > .current-menu-item > a { color: var(--btcc-yellow); }
.btcc-header .btcc-submenu-toggle { display: inline-flex; align-items: center; justify-content: center; padding: 0; margin: 0 0 0 1px; background: transparent; color: inherit; border: 0; border-radius: 4px; width: 28px; min-height: 44px; flex: 0 0 28px; }
.btcc-header .btcc-chevron { display: inline-block; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translateY(-2px); transition: transform .18s; margin-inline: 7px; flex-shrink: 0; }
.btcc-header [aria-expanded="true"] > .btcc-chevron { transform: rotate(225deg) translate(-1px, -1px); }
.btcc-header .sub-menu { position: absolute; top: 100%; left: -20px; width: 360px; padding: 12px; border: 1px solid var(--btcc-line); border-top: 3px solid var(--btcc-yellow); border-radius: 0 0 12px 12px; background: #fff; color: var(--btcc-ink); box-shadow: 0 18px 45px #062b4a24; z-index: 5; max-height: min(65vh, 560px); overflow-y: auto; overscroll-behavior: contain; }
/* This alignment is only for the CSS fallback; initialized menus position themselves. */
.btcc-header:not(.btcc-ready) .btcc-menu > li:nth-last-child(-n+2) > .sub-menu { left: auto; right: -15px; }
.btcc-header .sub-menu li { display: flex; align-items: flex-start; flex-wrap: wrap; }
.btcc-header .sub-menu a, .btcc-header .sub-menu .btcc-parent-toggle { display: flex; align-items: center; flex: 1 1 0; min-width: 0; min-height: 44px; padding: 10px 12px; font-size: 16px; font-weight: 500; color: var(--btcc-ink); white-space: normal; overflow-wrap: anywhere; border: 0; border-radius: 6px; line-height: 1.5; text-align: left; background: transparent; }
.btcc-header .sub-menu a:hover, .btcc-header .sub-menu .btcc-parent-toggle:hover, .btcc-header .sub-menu button:hover { background: #edf3fa; color: var(--btcc-blue); }
.btcc-header .sub-menu .btcc-parent-toggle { justify-content: space-between; }
.btcc-header .sub-menu .sub-menu { position: static; width: calc(100% - 13px); max-height: none; margin: 2px 0 8px 13px; padding: 2px 0 2px 8px; border: 0; border-left: 2px solid #e4ecf5; border-radius: 0; box-shadow: none; background: #f8fafd; overflow: visible; }
.btcc-header .sub-menu .sub-menu a { font-size: 15px; }
.btcc-header .sub-menu .current-menu-item > a { background: #edf3fa; color: var(--btcc-blue); font-weight: 700; }
/* A functional CSS-only menu and search form remain available without JavaScript. */
.btcc-header:not(.btcc-ready) .sub-menu { display: none; }
.btcc-header:not(.btcc-ready) li:hover > .sub-menu, .btcc-header:not(.btcc-ready) li:focus-within > .sub-menu { display: block; }
.btcc-header .btcc-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.btcc-header .btcc-apply { display: inline-flex; align-items: center; justify-content: center; gap: 17px; min-height: 44px; border-radius: 7px; padding: 11px 17px; background: var(--btcc-yellow); color: var(--btcc-blue); font-size: 16px; font-weight: 750; white-space: nowrap; transition: transform .18s, box-shadow .18s; }
.btcc-header .btcc-apply:hover { transform: translateY(-2px); box-shadow: 0 5px 0 #0002; }
.btcc-header .btcc-apply .btcc-icon { width: 17px; height: 17px; }
.btcc-header .btcc-icon-button { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: #fff; background: transparent; border: 1px solid #ffffff38; border-radius: 7px; padding: 0; }
.btcc-header .btcc-icon-button:hover, .btcc-header .btcc-icon-button[aria-expanded="true"] { border-color: var(--btcc-yellow); color: var(--btcc-yellow); background: #ffffff0d; }
.btcc-header .btcc-menu-toggle, .btcc-header .btcc-close-icon { display: none; }
.btcc-header .btcc-menu-toggle[aria-expanded="true"] .btcc-menu-icon { display: none; }
.btcc-header .btcc-menu-toggle[aria-expanded="true"] .btcc-close-icon { display: block; }
.btcc-header:not(.btcc-ready) .btcc-search-toggle { display: none; }
.btcc-header .btcc-search-panel { border-top: 1px solid #ffffff24; }
.btcc-header .btcc-search-form { padding-block: 24px 28px; }
.btcc-header .btcc-search-form label { display: block; margin-bottom: 10px; font-size: 16px; font-weight: 500; color: #fff; }
.btcc-header .btcc-search-field { display: flex; align-items: center; gap: 15px; padding: 7px 8px 7px 18px; border-radius: 8px; background: #fff; color: var(--btcc-blue); }
.btcc-header .btcc-search-field input { flex: 1; min-width: 0; width: auto; height: 44px; padding: 8px 0; border: 0; border-radius: 0; color: var(--btcc-ink); background: transparent; box-shadow: none; font-size: 17px; }
.btcc-header .btcc-search-field input::placeholder { color: #65798d; opacity: 1; }
.btcc-header .btcc-search-field button { display: flex; align-items: center; justify-content: center; gap: 15px; border: 0; border-radius: 5px; padding: 12px 20px; min-height: 44px; background: var(--btcc-yellow); color: var(--btcc-blue); font-weight: 700; font-size: 16px; }
.btcc-header .btcc-breadcrumb-bar { background: #f3f6fa; border-bottom: 1px solid var(--btcc-line); }
.btcc-header .btcc-breadcrumbs { display: flex; align-items: center; gap: 13px; min-height: 45px; padding-block: 11px; color: var(--btcc-muted); font-size: 13px; }
.btcc-header .btcc-breadcrumbs > .btcc-icon { width: 14px; height: 14px; color: var(--btcc-blue); }
.btcc-header .btcc-trail { overflow-wrap: anywhere; min-width: 0; line-height: 1.9; }
.btcc-header .btcc-trail a:hover { color: var(--btcc-blue); text-decoration: underline; text-underline-offset: 3px; }
.btcc-header .btcc-trail [aria-current="page"], .btcc-header .btcc-trail .breadcrumb_last { color: var(--btcc-blue); font-weight: 600; }
.btcc-header .btcc-separator { color: #94a4b5; padding-inline: 12px; }
.btcc-header--sticky { position: sticky; top: 0; }
body.admin-bar .btcc-header--sticky { top: 32px; }
@media (min-width: 1181px) {
  /* Leaf panels scroll independently; nested flyouts leave the parent rows in place. */
  .btcc-header.btcc-ready .btcc-menu .sub-menu {
    position: fixed; top: var(--btcc-menu-y, 0px); left: var(--btcc-menu-x, 0px); right: auto;
    width: 360px; max-width: calc(100vw - 24px); max-height: var(--btcc-menu-height, 560px);
    margin: 0; padding: 10px 0; overflow-y: auto; overscroll-behavior: contain;
    border: 1px solid var(--btcc-line); border-top: 3px solid var(--btcc-yellow);
    border-radius: 0 0 12px 12px; background: #fff; box-shadow: 0 18px 45px #062b4a24;
  }
  .btcc-header.btcc-ready .sub-menu li { flex-wrap: nowrap; padding-inline: 10px; }
  .btcc-header.btcc-ready .sub-menu .sub-menu { width: 380px; border-radius: 8px; }
  .btcc-header.btcc-ready .sub-menu .btcc-open > a,
  .btcc-header.btcc-ready .sub-menu .btcc-open > button { background: #edf3fa; color: var(--btcc-blue); }
  .btcc-header.btcc-ready .sub-menu .btcc-chevron { transform: rotate(-45deg); }
  .btcc-header.btcc-ready .sub-menu [data-btcc-side="left"] > button > .btcc-chevron { transform: rotate(135deg); }
}
@media (min-width: 1181px) and (max-width: 1430px) {
  .btcc-header .btcc-main-inner { gap: 22px; }
  .btcc-header .btcc-logo { width: 85px; height: 76px; }
  .btcc-header .btcc-brand { gap: 12px; }
  .btcc-header .btcc-menu { gap: 34px; }
  .btcc-header .btcc-actions { gap: 8px; }
  .btcc-header .btcc-apply { gap: 10px; padding-inline: 13px; }
}
@media (min-width: 1181px) and (max-width: 1280px) {
  .btcc-header .btcc-menu { gap: 20px; }
}
@media (max-width: 1180px) {
  .btcc-header .btcc-main-inner { flex-wrap: wrap; gap: 0; min-height: 110px; }
  .btcc-header .btcc-brand { margin-right: auto; }
  .btcc-header .btcc-logo { width: 92px; height: 78px; }
  .btcc-header.btcc-ready .btcc-menu-toggle { display: flex; }
  .btcc-header .btcc-navigation { order: 3; flex: 0 0 100%; margin: 0; }
  /* Opening a mobile branch must not push the breadcrumb and page up and down. */
  .btcc-header.btcc-ready .btcc-navigation { position: absolute; top: 100%; left: 0; right: 0; z-index: 10; }
  .btcc-header .btcc-menu { display: block; padding: 10px; max-height: 65vh; max-height: min(65svh, calc(100svh - var(--btcc-nav-top, 160px) - 12px)); overflow-y: auto; overscroll-behavior: contain; overflow-anchor: none; scrollbar-gutter: stable; background: #032e5b; border: 1px solid #7596b9; border-radius: 10px; scrollbar-width: thin; scrollbar-color: #fbf104 #032e5b; }
  .btcc-header.btcc-ready .btcc-navigation { filter: drop-shadow(0 12px 18px #032e5b30); }
  .btcc-header .btcc-menu > li { flex-wrap: wrap; border-bottom: 1px solid #ffffff40; }
  .btcc-header .btcc-menu > li > a, .btcc-header .btcc-menu > li > .btcc-parent-toggle { min-height: 50px; flex: 1; padding: 14px 12px; font-size: 17px; }
  .btcc-header .btcc-menu > li > .btcc-parent-toggle { justify-content: space-between; }
  .btcc-header .btcc-menu > li > a::after, .btcc-header .btcc-menu > li > .btcc-parent-toggle::after { display: none; }
  .btcc-header .btcc-submenu-toggle { min-height: 48px; width: 44px; flex-basis: 44px; }
  .btcc-header .btcc-menu .btcc-parent-link { display: none; }
  .btcc-header .btcc-mobile-label { display: block; min-width: 0; }
  .btcc-header .btcc-menu .btcc-submenu-toggle {
    flex: 1 1 100%; width: 100%; min-height: 50px; margin: 0; padding: 12px;
    justify-content: space-between; gap: 12px; text-align: left;
    font-size: 17px; font-weight: 600; line-height: 1.5; white-space: normal; overflow-wrap: anywhere;
  }
  .btcc-header .sub-menu .btcc-submenu-toggle { font-size: 16px; font-weight: 650; color: #082d50; }
  .btcc-header .sub-menu a, .btcc-header .sub-menu .btcc-parent-toggle { min-height: 48px; color: #082d50; font-weight: 600; }
  .btcc-header .btcc-menu .btcc-mobile-overview { display: flex; }
  .btcc-header .btcc-mobile-overview > a { color: var(--btcc-blue); font-weight: 600; }
  .btcc-header .sub-menu .btcc-open > button { background: var(--btcc-blue); color: #fff; }
  .btcc-header .btcc-menu > .btcc-open > button { background: var(--btcc-yellow); color: #032e5b; border-radius: 7px; }
  .btcc-header .btcc-menu > li > .sub-menu,
  .btcc-header .btcc-menu > li > .btcc-motion-panel > .btcc-motion-content > .sub-menu { position: static; flex-basis: 100%; width: 100%; max-height: none; margin: 6px 0 12px; padding: 8px; border: 1px solid #7c9cbd; border-radius: 8px; box-shadow: none; overflow: visible; }
  .btcc-header .sub-menu .sub-menu { background: #e8f0f9; border-left: 3px solid var(--btcc-blue); }
  .btcc-header .sub-menu .sub-menu a { font-size: 16px; }
  .btcc-header .sub-menu .sub-menu li + li { border-top: 1px solid #b8cbe0; }
  .btcc-header .btcc-mobile-overview > a { text-decoration: underline; text-underline-offset: 3px; }
  .btcc-header .btcc-menu .btcc-chevron { width: 8px; height: 8px; border-width: 0 2px 2px 0; transition: transform .24s ease; }
  .btcc-header .btcc-menu button:focus-visible, .btcc-header .btcc-menu a:focus-visible { outline-offset: -3px; }
  .btcc-header .sub-menu .btcc-open > button:focus-visible { outline-color: var(--btcc-yellow); }
  .btcc-header .btcc-motion-panel { display: grid; grid-template-rows: 0fr; flex: 0 0 100%; width: 100%; transition: grid-template-rows .28s cubic-bezier(.4, 0, .2, 1); }
  .btcc-header .btcc-motion-panel.btcc-expanded { grid-template-rows: 1fr; }
  .btcc-header .btcc-motion-content { display: block; min-height: 0; overflow: hidden; }
  .btcc-header:not(.btcc-ready) .sub-menu { display: block; }
}
@media (max-width: 680px) {
  .btcc-header .btcc-shell { width: calc(100% - 32px); }
  .btcc-header .btcc-utility-inner { min-height: 35px; gap: 10px; }
  .btcc-header .btcc-utility a { font-size: 12px; gap: 6px; }
  .btcc-header .btcc-email, .btcc-header .btcc-directory { display: none !important; }
  .btcc-header .btcc-main-inner { min-height: 100px; }
  .btcc-header .btcc-brand { gap: 10px; }
  .btcc-header .btcc-logo { width: 65px; height: 58px; }
  .btcc-header .btcc-actions { gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
  .btcc-header .btcc-apply { min-height: 36px; padding: 8px 10px; font-size: 14px; gap: 7px; }
  .btcc-header .btcc-apply .btcc-icon { width: 13px; height: 13px; }
  .btcc-header .btcc-icon-button { width: 40px; height: 40px; }
  .btcc-header .btcc-search-field { gap: 9px; padding-left: 12px; }
  .btcc-header .btcc-search-field > .btcc-icon { display: none; }
  .btcc-header .btcc-search-field input { font-size: 16px; }
  .btcc-header .btcc-search-field button { padding: 10px 12px; }
  .btcc-header .btcc-search-field button .btcc-icon { display: none; }
  .btcc-header .btcc-breadcrumbs { min-height: 39px; font-size: 12px; gap: 10px; padding-block: 8px; }
  body.admin-bar .btcc-header--sticky { top: 46px; }
}
@media (max-width: 520px) {
  .btcc-header .btcc-main-inner { padding-block: 13px; gap: 8px; }
  .btcc-header .btcc-brand { padding-block: 0; }
  .btcc-header .btcc-actions { max-width: 120px; }
  .btcc-header .btcc-apply { order: -1; flex-basis: 100%; min-height: 32px; }
  .btcc-header .btcc-icon-button { width: 42px; height: 36px; }
  .btcc-header .btcc-navigation { margin-top: 0; }
}
@media (max-width: 360px) {
  .btcc-header .btcc-logo { width: 51px; height: 49px; }
}
@media (max-width: 600px) { body.admin-bar .btcc-header--sticky { top: 0; } }
@media (prefers-reduced-motion: reduce) { .btcc-header *, .btcc-header *::before, .btcc-header *::after { transition: none !important; scroll-behavior: auto !important; } }
@media print {
  .btcc-header { position: static; }
  .btcc-header .btcc-navigation, .btcc-header .btcc-actions, .btcc-header .btcc-search-panel, .btcc-header .btcc-utility { display: none !important; }
  .btcc-header .btcc-main { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
