/* The extracted two-row header, adapted to the existing BridgeFort theme.
   Colors, typography, buttons, container width and focus states use site tokens. */
.site-header--account { font-family: var(--bridge-font-family); }
.site-header--account .account-header__topbar { display: block; padding: 0; }
.account-header__utility { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.account-header__utility > nav { display: flex; align-items: center; flex-wrap: wrap; gap: 0 18px; }
.account-header__utility .top-link { font-size: var(--bridge-metadata-size); }
.account-header__actions { flex-shrink: 0; }
.account-header__actions a { display: inline-flex; align-items: center; min-height: 48px; color: inherit; text-decoration: none; font-size: var(--bridge-link-size); font-weight: var(--bridge-label-weight); line-height: var(--bridge-ui-line-height); }
.account-header__actions a:hover, .account-header__support a:hover { text-decoration: underline; text-underline-offset: 3px; }
.account-header__main { padding-block: 26px; background: var(--border); color: var(--navy); }
.account-header__main :focus-visible { outline-color: var(--fb-focus-color); }
.account-header__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(250px, .85fr); align-items: center; gap: 28px; }
.site-header--account .brand { min-width: 0; width: 180px; max-width: 100%; justify-self: start; }
.site-header--account .brand img { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; background: transparent; }
/* Crop only the transparent canvas around the approved artwork. Geometry is supplied per asset. */
.brand-logo-frame { position: relative; display: block; flex: none; width: 100%; aspect-ratio: var(--brand-logo-ratio); overflow: hidden; }
.site-header--account .brand .brand-logo-frame img,
.bf-capital-footer__brand .brand-logo-frame img { position: absolute; width: var(--brand-logo-image-width); max-width: none; max-height: none; height: auto; aspect-ratio: auto; left: var(--brand-logo-image-left); top: var(--brand-logo-image-top); }
/* Administrator-selected images keep their own proportions and are never cropped to the official mark. */
.brand-logo-frame--custom { aspect-ratio: auto; overflow: visible; }
.site-header--account .brand .brand-logo-frame--custom img,
.bf-capital-footer__brand .brand-logo-frame--custom img { position: static; width: 100%; max-width: 100%; height: auto; aspect-ratio: auto; left: auto; top: auto; object-fit: contain; }
.account-header__support { display: flex; align-items: center; gap: 12px; }
.account-header__support-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border: 1px solid currentColor; border-radius: 50%; }
.account-header__support-title { display: block; font-size: var(--bridge-subheading-size); font-weight: var(--bridge-subheading-weight); line-height: var(--bridge-subheading-line-height); letter-spacing: var(--bridge-subheading-letter-spacing); margin-bottom: 4px; }
.account-header__support-links { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.account-header__support-links a { color: inherit; text-decoration: none; font-size: var(--bridge-link-size); font-weight: var(--bridge-paragraph-weight); line-height: var(--bridge-ui-line-height); }
.account-header__banking > .button { width: calc(100% - 24px); max-width: 300px; margin-inline: auto; display: flex; border-radius: var(--fb-button-radius, 99px); corner-shape: squircle; }
.account-header__banking > .button svg { flex: none; }
.site-header--account .nav-wrap { min-height: 64px; padding-block: 8px; border-top: 1px solid var(--border); }
.account-header__menu-label { display: none; }
@media (max-width: 1279px) and (min-width: 1132px) {
  .account-header__utility { gap: 18px; }
  .account-header__utility > nav { gap: 0 12px; }
}
@media (max-width: 1131px) {
  .site-header--account .account-header__topbar { border-bottom: 1px solid var(--border); }
  .account-header__utility { justify-content: center; }
  .account-header__utility > nav[aria-label="Audience"] { display: none; }
  .account-header__actions { justify-content: center; }
  .account-header__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 28px; }
  .account-header__support { justify-self: end; }
  .account-header__banking { grid-column: 1 / -1; justify-self: stretch; }
  .account-header__banking > .button { max-width: 320px; }
  .account-header__menu-label { display: inline; font-size: var(--bridge-navigation-size); }
}
@media (max-width: 600px) {
  .site-header--account .brand { width: 148px; }
  .account-header__main { padding-block: 20px; }
  .account-header__row { gap: 20px 16px; }
  .account-header__utility > .account-header__actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 0 14px; }
  .account-header__actions a { justify-content: center; text-align: center; font-size: var(--bridge-metadata-size); }
  .account-header__support { gap: 8px; }
  .account-header__support-icon { display: none; }
  .account-header__support-title { font-size: var(--bridge-label-size); }
  .account-header__support-links { gap: 4px 10px; }
  .account-header__support-links a { font-size: var(--bridge-metadata-size); }
  .account-header__banking > .button { width: calc(100% - 64px); max-width: 240px; min-height: 44px; padding: 10px 18px; }
}
@media (max-width: 360px) {
  .site-header--account .brand { width: 132px; }
  .account-header__utility > .account-header__actions { column-gap: 10px; }
  .account-header__actions a { font-size: var(--bridge-badge-size); }
}
