/* H01. Header and Navigation — FortBridge adaptation of the Metro hierarchy.
   One authoritative header stylesheet; typography remains in typography.css. */
.site-header { position: relative; z-index: 50; background: var(--header); color: #fff; }
.site-header :focus-visible { outline-color: var(--fb-focus-on-dark); }
.site-header .nav-dropdown :focus-visible { outline-color: var(--fb-focus-color); }
.topbar { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 max(var(--fb-gutter, 24px), calc((100% - 1120px) / 2)); border-bottom: 1px solid #ffffff26; }
.topbar > nav { display: flex; align-self: stretch; flex-wrap: wrap; gap: 0 24px; }
.top-link { display: flex; align-items: center; position: relative; padding: 14px 0; color: #fff; text-decoration: none; }
.top-link.active::after { content: ""; height: 4px; background: var(--red); position: absolute; inset: auto 0 0; }
.utility-links { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.utility-link { display: inline-flex; align-items: center; gap: 5px; color: #fff; text-decoration: none; }
.utility-link svg { flex: none; }
.nav-wrap { position: relative; max-width: 1168px; margin: auto; display: flex; align-items: center; gap: 24px; min-height: 88px; padding: 16px var(--fb-gutter, 24px); }
.brand { display: flex; align-items: center; text-decoration: none; color: #fff; flex: none; }
.brand img { display: block; width: 160px; height: auto; }
.primary-navigation { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.nav-item { display: flex; align-items: center; position: static; min-width: 0; }
.nav-link { color: #fff; text-decoration: none; padding: 16px 2px; }
.nav-link.current { box-shadow: inset 0 -2px var(--red); }
.nav-expand { border: 0; color: #fff; background: none; padding: 8px; min-height: 44px; min-width: 30px; }
.nav-expand[aria-expanded="true"] { background: var(--red); }
.nav-dropdown { position: absolute; top: 100%; left: var(--fb-gutter); right: var(--fb-gutter); padding: var(--fb-panel-padding); background: var(--white); box-shadow: var(--fb-shadow-floating); border-top: 4px solid var(--red); color: var(--navy); z-index: 60; max-height: min(70vh, 680px); overflow-y: auto; overscroll-behavior: contain; }
.mega-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.nav-dropdown strong { display: block; margin-bottom: 15px; }
.dropdown-link { display: flex; align-items: center; min-height: var(--fb-button-compact-min-height); text-decoration: none; border-top: 1px solid var(--border); padding: 10px 0; overflow-wrap: anywhere; }
.dropdown-link:hover:not(.link-unavailable), .nav-link:hover, .utility-link:hover { text-decoration: underline; }
.menu-toggle, .site-nav__drawer-heading, .site-nav__shortcuts, .menu-group__toggle { display: none; }
.search-button { flex: none; border: 0; background: #ffffff22; color: #fff; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; }
.search-button svg { width: var(--fb-icon-size); height: var(--fb-icon-size); stroke: currentColor; fill: none; stroke-width: var(--fb-icon-stroke); }
/* Internet Banking uses the same white disclosure, red rule and link rows as Bank accounts. */
.site-login__panel { position: absolute; top: 100%; bottom: auto; left: max(var(--fb-gutter, 24px), calc((100% - 1120px) / 2)); right: max(var(--fb-gutter, 24px), calc((100% - 1120px) / 2)); z-index: 70; width: auto; padding: var(--fb-panel-padding); background: var(--white); color: var(--navy); border-top: 4px solid var(--red); box-shadow: var(--fb-shadow-floating); max-height: min(70vh, 680px); overflow-y: auto; overscroll-behavior: contain; }
.site-login__panel a { color: inherit; }
.site-login__panel .menu-group__title { display: block; }
.site-login__panel .dropdown-link { display: flex; }
@media (max-width: 1131px) {
  .site-header .site-login__panel { position: absolute; width: auto; max-height: min(70vh, 680px); padding: var(--fb-panel-padding); overflow-y: auto; border-top: 4px solid var(--red); box-shadow: var(--fb-shadow-floating); }
  .site-login__panel .menu-group + .menu-group { margin-top: 20px; }
  .site-header .site-login__panel .menu-group__title { display: block; }
}
.site-nav__backdrop { position: fixed; inset: 0; z-index: 90; background: #000d4599; }
body.site-nav-open { overflow: hidden; }
/* The modal drawer must paint above the first-visit cookie banner (z-index 80). */
body.site-nav-open .site-header { z-index: 100; }
/* Desktop labels expose their menus directly; separate arrow controls remain in the mobile drawer. */
@media (min-width: 1132px) {
  .primary-navigation .nav-expand { display: none; }
}
@media (min-width: 1132px) and (max-width: 1279px) {
  .nav-wrap { gap: 16px; }
  .brand img { width: 132px; }
  .primary-navigation { gap: 4px; }
  .nav-expand { padding-inline: 5px; }
  .topbar { gap: 16px; }
  .topbar > nav { gap: 0 16px; }
  .utility-links { gap: 16px; }
}
@media (max-width: 1131px) {
  .topbar { min-height: 0; padding: 0; border: 0; }
  .topbar > nav, .utility-links > .utility-link { display: none; }
  .utility-links { position: static; }
  /* Position the trigger, not its container: the disclosure spans the header.
     Keep its hit area above the later positioned main navigation row. */
  .utility-links .site-login > button { position: absolute; z-index: 1; top: 22px; right: calc(var(--fb-gutter, 24px) + 56px); }
  .nav-wrap { min-height: 88px; padding-block: 18px; gap: 16px; }
  .brand img { width: 160px; }
  .search-button { margin-left: auto; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 6px; border: 0; background: none; padding: 8px; width: 44px; height: 44px; flex: none; }
  .menu-toggle span { height: 3px; width: 100%; background: #fff; display: block; }
  .primary-navigation { display: none; position: fixed; inset: 0 auto 0 0; width: min(340px, calc(100vw - 24px)); height: 100vh; height: 100dvh; overflow-y: auto; overscroll-behavior: contain; background: var(--header); padding: 16px; z-index: 100; }
  .primary-navigation.is-open { display: block; }
  .site-nav__drawer-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #ffffff40; padding-bottom: 12px; }
  .site-nav__close { border: 1px solid #ffffff70; border-radius: var(--radius); background: none; color: #fff; min-width: 44px; min-height: 44px; }
  .site-nav__shortcuts { display: flex; flex-wrap: wrap; gap: 4px 18px; padding-block: 12px; border-bottom: 1px solid #ffffff40; }
  .site-nav__shortcuts .top-link, .site-nav__shortcuts .utility-link { padding-block: 10px; }
  .nav-item { flex-wrap: wrap; border-bottom: 1px solid #ffffff40; }
  .nav-link { flex: 1; padding: 16px 6px; }
  .nav-expand { width: 44px; min-height: 52px; }
  .nav-dropdown { position: static; width: 100%; max-height: none; overflow: visible; box-shadow: none; border: 0; padding: 0 14px; }
  .mega-menu { display: block; }
  .nav-dropdown .menu-group__title { display: none; }
  .menu-group__toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; text-align: left; padding: 14px 0; min-height: 48px; color: var(--navy); background: none; border: 0; border-bottom: 1px solid var(--border); font: inherit; font-size: var(--bridge-navigation-size); font-weight: 600; line-height: 1.4; }
  .menu-group__toggle[aria-expanded="true"] span { transform: rotate(180deg); }
  .menu-group__links { padding: 0 8px 14px; }
}
@media (max-width: 700px) {
  .brand img { width: 132px; }
  .nav-wrap { gap: 10px; }
  .utility-links .button { padding-inline: 10px; min-height: 44px; }
}
@media (max-width: 390px) {
  .nav-wrap { gap: 6px; }
  .brand img { width: 119px; }
  .utility-links .site-login > button { right: calc(var(--fb-gutter, 18px) + 50px); }
  .utility-links .button { padding-inline: 10px; min-height: 44px; }
}
@media (max-width: 360px) {
  .brand img { width: 96px; }
  .nav-wrap { gap: 4px; }
}

/* 04. Hero and Breadcrumbs */
.crumbs {
  list-style: none;
  margin-block: 0;
}
/* 07. Forms and Balanced Content Panels */
fieldset[data-js-form] {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--fb-compact-gap);
  min-width: 0;
}
.split-content.split-balanced {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
/* 90. Footer */
.footer-links {
  list-style: none;
  padding: 0;
}
.footer-bottom {
  flex-wrap: wrap;
}
@media (max-width: 700px) {
  .split-content.split-balanced { grid-template-columns: 1fr; }
}
/* Named spacing and layout utilities, shared by the existing page structures. */
body .u-margin-top-16 {
  margin-top: 16px;
}
.u-actions-wrap {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
body .u-margin-top-18 {
  margin-top: 18px;
}
.u-center-inline {
  margin-inline: auto;
}
body .u-margin-top-24 {
  margin-top: 24px;
}
body .u-margin-top-28 {
  margin-top: 28px;
}
.u-max-width-360 {
  max-width: 360px;
}
.u-text-center { text-align: center; }
.u-text-left { text-align: left; }
.u-text-underline { text-decoration: underline; }
.u-surface-white { background-color: var(--white); }
.u-text-accent { color: var(--red); }
.u-text-navy { color: var(--navy); }

