/* =========================================================
   BANK OF ST. GEORGE
   UNIVERSAL SITE STYLES
   bsg.css
   ========================================================= */


/* =========================================================
   GLOBAL VARIABLES
   ========================================================= */

:root {
  --header-height: 90px;

  --bank-orange: #ff8536;
  --bank-orange-hover: #ff8c42;
  --bank-blue: #628fba;
  --bank-navy: #315d87;

  --footer-gray: #585858;
  --ink: #202020;

  --content-width: 1320px;
  --content-gutter: 40px;
}


/* =========================================================
   RESET / GLOBAL
   ========================================================= */

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  color: var(--ink);
  background: #fff;
  font-family: "Poppins", Arial, sans-serif;
}

a,
button {
  font: inherit;
}

img {
  max-width: 100%;
}

.page-arrival {
  min-height: 100vh;
}


/* =========================================================
   UNIVERSAL PAGE LAYOUT
   ========================================================= */

.page-section {
  position: relative;
  background: #fff;
}

.page-section__inner {
  width: min(var(--content-width), calc(100% - 80px));
  margin: 0 auto;
  padding: 88px 0 82px;
}

.page-section__inner--narrow {
  max-width: 1000px;
}

.page-section__inner--text {
  max-width: 900px;
}

.page-title {
  margin: 0 0 27px;
  color: #050505;
  font-size: clamp(42px, 3.45vw, 58px);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.02em;
}

.page-title--white {
  color: #fff;
}

.page-subtitle {
  margin: 0 0 22px;
  color: #050505;
  font-size: clamp(28px, 2.25vw, 38px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.page-text {
  margin: 0;
  color: #111;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.62;
  letter-spacing: 0;
}

.page-text + .page-text {
  margin-top: 22px;
}

.page-text--white {
  color: #fff;
}


/* =========================================================
   SHARED BSG BACKGROUND PATTERNS
   ========================================================= */

/*
  These classes provide a small family of related "sand line"
  treatments that can be reused across interior pages.

  Usage:
    class="... bsg-pattern bsg-pattern--contour"
    class="... bsg-pattern bsg-pattern--dune"
    class="... bsg-pattern bsg-pattern--flow"

  For dark backgrounds, add:
    bsg-pattern--white

  Pattern strength can be adjusted per section without editing the
  SVG data itself:
    style="--bsg-pattern-opacity: 0.07;"
*/

.bsg-pattern {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  --bsg-pattern-opacity: 0.08;
}

.bsg-pattern::before {
  content: "";

  position: absolute;
  inset: 0;
  z-index: 0;

  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;

  opacity: var(--bsg-pattern-opacity);

  pointer-events: none;
}

.bsg-pattern > * {
  position: relative;
  z-index: 1;
}


/* Familiar topographic contour treatment */

.bsg-pattern--contour::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900'%3E%3Cg fill='none' stroke='%23b88d74' stroke-width='2'%3E%3Cpath d='M-120 130C100 20 260 20 430 92s352 78 520-4 344-90 560-12 290 64 390 16'/%3E%3Cpath d='M-140 170C80 60 250 55 420 126s350 78 520-4 348-88 565-10 290 62 390 16'/%3E%3Cpath d='M-160 210C60 100 240 92 410 162s350 76 522-6 350-88 567-8 286 58 390 14'/%3E%3Cpath d='M-180 250C40 140 228 128 400 198s352 74 524-8 352-84 570-6 282 56 386 12'/%3E%3Cpath d='M-120 680C90 588 280 572 470 632s354 54 530-26 348-72 540 10 268 72 382 38'/%3E%3Cpath d='M-140 720C70 628 270 608 460 668s356 52 532-28 350-70 542 12 266 70 380 36'/%3E%3Cpath d='M-160 760C50 668 258 644 450 704s358 50 534-30 352-66 544 14 264 68 378 34'/%3E%3Cpath d='M-180 800C30 708 246 680 440 740s360 48 536-32 354-64 546 16 262 66 376 32'/%3E%3C/g%3E%3C/svg%3E");
}


/* Broader, quieter dune-like arcs */

.bsg-pattern--dune::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900'%3E%3Cg fill='none' stroke='%23b88d74' stroke-width='2'%3E%3Cpath d='M-180 245C110 90 390 88 650 214s520 116 770-12 420-120 590-42'/%3E%3Cpath d='M-200 310C90 155 380 150 640 276s524 114 776-14 422-116 594-38'/%3E%3Cpath d='M-220 375C70 220 370 212 632 338s528 112 782-16 424-112 598-34'/%3E%3Cpath d='M-170 620C95 520 355 515 602 600s500 82 738-4 430-86 612-24'/%3E%3Cpath d='M-190 682C75 582 345 575 594 660s504 80 744-6 432-82 616-20'/%3E%3Cpath d='M-210 744C55 644 335 635 586 720s508 78 750-8 434-78 620-16'/%3E%3C/g%3E%3C/svg%3E");
}


/* Longer, more open flowing lines for digital/service sections */

.bsg-pattern--flow::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900'%3E%3Cg fill='none' stroke='%23b88d74' stroke-width='1.8'%3E%3Cpath d='M-140 125C120 58 285 150 520 132s382-112 610-72 334 146 610 74'/%3E%3Cpath d='M-160 205C100 138 275 228 512 210s386-110 616-70 336 144 612 72'/%3E%3Cpath d='M-180 285C80 218 265 306 504 288s390-108 622-68 338 142 614 70'/%3E%3Cpath d='M-140 590C110 530 300 602 530 582s370-92 594-54 352 126 626 64'/%3E%3Cpath d='M-160 670C90 610 290 680 522 660s374-90 600-52 354 124 628 62'/%3E%3Cpath d='M-180 750C70 690 280 758 514 738s378-88 606-50 356 122 630 60'/%3E%3C/g%3E%3C/svg%3E");
}


/*
  The SVGs above use the shared sand color. This modifier converts
  their lines to white for blue/orange/dark sections.
*/

.bsg-pattern--white::before {
  filter: brightness(0) invert(1);
}


/*
  Optional positioning modifiers for cases where a section's content
  benefits from moving the pattern's visual weight.
*/

.bsg-pattern--top::before {
  background-position: center top;
}

.bsg-pattern--bottom::before {
  background-position: center bottom;
}


/* =========================================================
   UNIVERSAL BUTTONS
   ========================================================= */

.bsg-button {
  width: 285px;
  min-height: 58px;
  padding: 0 15px 0 25px;
  border: 1px solid #202020;

  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  color: #171717;
  background: transparent;

  font-size: 18px;
  font-weight: 500;
  line-height: 1.15;

  text-decoration: none;
  cursor: pointer;

  transition:
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.bsg-button:hover,
.bsg-button:focus-visible {
  color: #fff;
  border-color: var(--bank-orange-hover);
  background: var(--bank-orange-hover);
  text-decoration: none;
}

.bsg-button:active {
  color: #fff;
  border-color: var(--bank-orange-hover);
  background: var(--bank-orange-hover);
  transform: translateY(1px);
}

.bsg-button svg {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;

  display: block;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* Orange filled button */

.bsg-button--orange {
  border-color: var(--bank-orange);
  color: #fff;
  background: var(--bank-orange);
}

.bsg-button--orange:hover,
.bsg-button--orange:focus-visible,
.bsg-button--orange:active {
  border-color: var(--bank-orange-hover);
  color: #fff;
  background: var(--bank-orange-hover);
}


/* White outline button for colored backgrounds */

.bsg-button--white {
  border-color: #fff;
  color: #fff;
  background: transparent;
}

.bsg-button--white:hover,
.bsg-button--white:focus-visible,
.bsg-button--white:active {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}


/* Full-width version */

.bsg-button--full {
  width: 100%;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: relative;
  z-index: 10;

  height: var(--header-height);

  background: #fff;
}

.brand-logo {
  position: absolute;
  top: 10px;
  left: 17px;

  width: 225px;
  height: auto;

  display: block;
}


/*
  Desktop logo sizing.
  The header height stays unchanged.
*/

@media (min-width: 981px) {
  .brand-logo {
    width: 245px;
  }
}


/* =========================================================
   FDIC HEADER LOCKUP
   ========================================================= */

.fdic-lockup {
  position: absolute;
  top: 14px;
  right: 26px;

  display: flex;
  align-items: center;

  white-space: nowrap;

  color: #555;

  font-size: 13px;
  font-weight: 400;
  line-height: 1;
}

.fdic-lockup img {
  width: 49px;
  height: auto;
  margin-right: 8px;

  display: block;
}

.fdic-mobile-strip {
  display: none;
}


/* =========================================================
   HEADER ROUTING NUMBER
   ========================================================= */

.header-routing {
  position: absolute;
  right: 356px;
  bottom: 12px;

  display: flex;
  align-items: baseline;
  gap: 8px;

  color: #171717;

  font-size: 13px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0;

  white-space: nowrap;
}

.header-routing__label {
  font-weight: 300;
  text-transform: uppercase;
}

.header-routing__number {
  font-weight: 300;
  letter-spacing: 0.01em;
}


/* =========================================================
   HEADER UTILITY NAVIGATION
   ========================================================= */

.utility-nav {
  position: absolute;
  right: 20px;
  bottom: 9px;

  display: flex;
  align-items: center;
  gap: 28px;
}

.utility-button {
  width: 31px;
  height: 31px;
  padding: 0;
  border: 0;

  display: grid;
  place-items: center;

  color: #171717;
  background: transparent;

  text-decoration: none;
  cursor: pointer;
}

.utility-button:hover,
.utility-button:focus-visible {
  color: var(--bank-orange);
  text-decoration: none;
}

.utility-button svg {
  width: 28px;
  height: 28px;

  display: block;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/*
  Keep the visible line weight consistent even when individual
  utility SVGs are displayed at different dimensions.
*/
.utility-button svg * {
  vector-effect: non-scaling-stroke;
}


/*
  The phone glyph occupies less of its viewBox
  than the other utility icons.
*/

.utility-nav .utility-button:nth-child(2) svg {
  width: 32px;
  height: 32px;
}


/* Hamburger */

.utility-button.menu-button {
  width: 52px;
}

.utility-button.menu-button svg {
  width: 52px;
  height: 29px;

  stroke-width: 1.6;
}


/* =========================================================
   HEADER TOOLTIPS
   ========================================================= */

.utility-button[data-tooltip] {
  position: relative;
}

.utility-button[data-tooltip]::before {
  content: "";

  position: absolute;
  left: 50%;
  top: calc(100% + 7px);
  z-index: 30;

  transform: translateX(-50%) translateY(-3px);

  border-right: 6px solid transparent;
  border-bottom: 6px solid #222;
  border-left: 6px solid transparent;

  opacity: 0;
  pointer-events: none;

  transition:
    opacity 140ms ease,
    transform 140ms ease;
}

.utility-button[data-tooltip]::after {
  content: attr(data-tooltip);

  position: absolute;
  left: 50%;
  top: calc(100% + 13px);
  z-index: 30;

  min-width: max-content;
  padding: 7px 10px;

  transform: translateX(-50%) translateY(-3px);

  border-radius: 3px;

  color: #fff;
  background: #222;

  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.25);

  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;

  white-space: nowrap;

  opacity: 0;
  pointer-events: none;

  transition:
    opacity 140ms ease,
    transform 140ms ease;
}

.utility-button[data-tooltip]:hover::before,
.utility-button[data-tooltip]:hover::after,
.utility-button[data-tooltip]:focus-visible::before,
.utility-button[data-tooltip]:focus-visible::after {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}


/* =========================================================
   FULL-SCREEN SLIDING MENU
   ========================================================= */

body.menu-open {
  overflow: hidden;
}

.fullscreen-menu {
  position: fixed;
  inset: 0;
  z-index: 1000;

  min-height: 100vh;
  overflow-y: auto;

  color: #fff;
  background: var(--bank-orange);

  transform: translateX(100%);
  visibility: hidden;

  transition:
    transform 520ms cubic-bezier(0.77, 0, 0.175, 1),
    visibility 0s linear 520ms;

  will-change: transform;
}

.fullscreen-menu.is-open {
  transform: translateX(0);
  visibility: visible;

  transition:
    transform 520ms cubic-bezier(0.77, 0, 0.175, 1),
    visibility 0s linear 0s;
}


/* =========================================================
   FULL-SCREEN MENU HEADER
   ========================================================= */

.fullscreen-menu__header {
  position: relative;
  min-height: 118px;
}

.fullscreen-menu__logo {
  position: absolute;
  top: 16px;
  left: 22px;

  width: 225px;
  height: auto;

  display: block;
}


/* =========================================================
   FULL-SCREEN MENU QUICK LINKS
   ========================================================= */

.fullscreen-menu__utility-nav {
  position: absolute;
  top: 27px;
  left: 50%;

  transform: translateX(-50%);

  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(30px, 3.2vw, 54px);

  white-space: nowrap;
}

.fullscreen-menu__utility-link {
  display: flex;
  align-items: center;
  gap: 4px;

  color: #fff;

  font-size: 14px;
  font-weight: 400;
  line-height: 1;

  text-decoration: none;

  transition: opacity 150ms ease;
}

.fullscreen-menu__utility-link:hover,
.fullscreen-menu__utility-link:focus-visible {
  color: #fff;
  opacity: 0.82;

  text-decoration: none;
}

.fullscreen-menu__utility-link svg {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;

  display: block;

  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fullscreen-menu__utility-link--security svg {
  width: 33px;
  height: 33px;
}


/* =========================================================
   FULL-SCREEN MENU CLOSE BUTTON
   ========================================================= */

.fullscreen-menu__close {
  position: absolute;
  top: 18px;
  right: 25px;

  width: 58px;
  height: 58px;
  padding: 0;

  border: 0;

  color: #fff;
  background: transparent;

  cursor: pointer;
}

.fullscreen-menu__close::before,
.fullscreen-menu__close::after {
  content: "";

  position: absolute;
  top: 27px;
  left: 3px;

  width: 52px;
  height: 4px;

  background: currentColor;

  transform-origin: center;
}

.fullscreen-menu__close::before {
  transform: rotate(45deg);
}

.fullscreen-menu__close::after {
  transform: rotate(-45deg);
}

.fullscreen-menu__close:hover,
.fullscreen-menu__close:focus-visible {
  opacity: 0.82;
}


/* =========================================================
   FULL-SCREEN MENU COLUMNS
   ========================================================= */

.fullscreen-menu__nav {
  --menu-space: clamp(48px, 6vw, 110px);

  width: 100%;
  margin: 66px auto 80px;
  padding-right: var(--menu-space);
  padding-left: var(--menu-space);

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--menu-space);

  align-items: stretch;
}

.menu-column {
  min-width: 0;

  display: flex;
  flex-direction: column;
}

.menu-column h2 {
  margin: 0 0 22px -2px;

  color: #fff;

  font-size: 32px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0;
}


/* Linked menu column headings */

.menu-column h2 a {
  display: inline-block;

  color: inherit;

  text-decoration: none;

  transition: opacity 140ms ease;
}

.menu-column h2 a:hover,
.menu-column h2 a:focus-visible {
  color: inherit;
  opacity: 0.82;

  text-decoration: none;
}

.menu-column ul {
  margin: 0;
  padding: 0;

  list-style: none;
}

.menu-column li + li {
  margin-top: 14px;
}

.menu-column li > a {
  display: inline-block;

  max-width: 100%;

  margin: -5px -11px;
  padding: 4px 10px;

  color: #fef3eb;

  font-size: 22px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0;

  text-decoration: none;

  cursor: pointer;

  transition:
    color 140ms ease,
    opacity 140ms ease;
}

.menu-column li:hover > a,
.menu-column li > a:hover,
.menu-column li > a:focus-visible {
  color: #fff;
  opacity: 0.82;

  text-decoration: none;
}


/* =========================================================
   MENU ACCOUNT BUTTON
   ========================================================= */

.menu-account-button {
  width: 100%;
  min-height: 60px;
  margin-top: auto;
  padding: 0 22px;

  border: 1px solid #fff;

  display: flex;
  align-items: center;
  justify-content: space-between;

  color: #fff;
  background: transparent;

  font-size: 16px;
  font-weight: 500;
  line-height: 1.15;

  text-decoration: none;

  cursor: pointer;

  transition: background-color 160ms ease;
}

.menu-account-button:hover,
.menu-account-button:focus-visible,
.menu-account-button:active {
  color: #fff;
  background: var(--bank-orange-hover);

  text-decoration: none;
}

.menu-account-button svg {
  width: 27px;
  height: 27px;
  margin-left: 18px;
  flex: 0 0 auto;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* =========================================================
   MENU NEWSLETTER
   ========================================================= */

.menu-column em {
  font-style: italic;
}

.menu-newsletter-feature {
  width: max-content;
  max-width: 100%;

  margin-top: 44px;

  display: block;
  align-self: flex-start;

  color: #fff;

  text-decoration: none;
}

.menu-newsletter-feature:hover,
.menu-newsletter-feature:focus-visible {
  color: #fff;

  text-decoration: none;
}

.menu-newsletter-feature__label {
  margin-bottom: 11px;

  display: block;

  color: #fff;

  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.01em;

  text-transform: uppercase;
}

.menu-newsletter-feature__row {
  display: flex;
  align-items: center;
  gap: 22px;
}

.menu-newsletter-feature__card {
  width: 120px;
  padding: 5px 3px;

  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 4px;

  display: block;

  transition:
    background-color 150ms ease,
    border-color 150ms ease;
}

.menu-newsletter-feature__card img {
  width: 100%;
  height: auto;

  display: block;
}

.menu-newsletter-feature__arrow {
  width: 29px;
  height: 29px;
  flex: 0 0 auto;

  display: block;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;

  transition:
    opacity 150ms ease,
    transform 150ms ease;
}

.menu-newsletter-feature:hover .menu-newsletter-feature__card,
.menu-newsletter-feature:focus-visible .menu-newsletter-feature__card {
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
}

.menu-newsletter-feature:hover .menu-newsletter-feature__arrow,
.menu-newsletter-feature:focus-visible .menu-newsletter-feature__arrow {
  opacity: 0.88;
  transform: translateX(3px);
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  position: relative;
  z-index: 2;

  color: var(--footer-gray);
  background: #fff;
}

.site-footer__main {
  width: min(1400px, calc(100% - 80px));
  min-height: 480px;

  margin: 0 auto;
  padding: 92px 0 15px;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas:
    ". identity ."
    "badges social legal";

  column-gap: 48px;
  row-gap: 76px;

  align-items: end;
}


/* =========================================================
   FOOTER IDENTITY
   ========================================================= */

.site-footer__identity {
  grid-area: identity;
  justify-self: center;

  text-align: center;
}

.site-footer__logo {
  width: 290px;
  height: auto;

  margin: 0 auto 26px;

  display: block;
}

.site-footer__logo-link {
  display: inline-block;

  color: inherit;

  text-decoration: none;
}

@media (min-width: 981px) {
  .site-footer__logo {
    width: 255px;
  }
}

.site-footer__address,
.site-footer__phone {
  margin: 0;

  color: #202020;

  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.site-footer__phone {
  margin-top: 22px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;

  text-decoration: none;
}

.site-footer__phone:hover,
.site-footer__phone:focus-visible {
  color: var(--bank-orange);
}

.site-footer__phone svg {
  width: 24px;
  height: 24px;

  display: block;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* =========================================================
   FOOTER BADGES
   ========================================================= */

.site-footer__badges {
  grid-area: badges;

  justify-self: start;
  align-self: end;

  margin-bottom: 0;

  display: flex;
  align-items: center;
  gap: 8px;
}

.site-footer__badge-link {
  display: block;

  line-height: 0;

  text-decoration: none;
}

.site-footer__badges img {
  width: auto;
  height: 58px;

  display: block;
}


/* =========================================================
   FOOTER SOCIAL
   ========================================================= */

.site-footer__social {
  grid-area: social;

  justify-self: center;

  display: flex;
  align-items: center;
  gap: 18px;
}

.site-footer__social a {
  width: 38px;
  height: 38px;

  display: grid;
  place-items: center;

  color: var(--footer-gray);

  font-size: 31px;
  line-height: 1;

  text-decoration: none;

  transition:
    color 150ms ease,
    transform 150ms ease;
}

.site-footer__social a:hover,
.site-footer__social a:focus-visible {
  color: var(--bank-orange);

  transform: translateY(-1px);
}


/* =========================================================
   FOOTER LEGAL
   ========================================================= */

.site-footer__legal {
  grid-area: legal;

  justify-self: end;

  display: flex;
  align-items: center;
  flex-wrap: wrap;

  color: var(--footer-gray);

  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.site-footer__legal a {
  color: inherit;

  text-decoration: none;
}

.site-footer__legal a:hover,
.site-footer__legal a:focus-visible {
  color: var(--bank-orange);

  text-decoration: underline;
}

.site-footer__separator {
  margin: 0 10px;
}


/* =========================================================
   FOOTER COPYRIGHT BAR
   ========================================================= */

.site-footer__copyright {
  min-height: 90px;
  padding: 0 32px;

  display: flex;
  align-items: center;

  color: #fff;
  background: var(--bank-navy);

  font-size: 11px;
  font-weight: 300;
}


/* =========================================================
   BACK TO TOP
   ========================================================= */

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;

  width: 52px;
  height: 52px;
  padding: 0;

  border: 1px solid rgba(255, 255, 255, 0.95);

  display: grid;
  place-items: center;

  color: #fff;
  background: #315d87;

  cursor: pointer;

  opacity: 0;
  visibility: hidden;

  transform: translateY(10px);

  transition:
    opacity 180ms ease,
    visibility 0s linear 180ms,
    transform 180ms ease,
    background-color 160ms ease;

  backdrop-filter: blur(3px);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;

  transform: translateY(0);

  transition:
    opacity 180ms ease,
    visibility 0s linear 0s,
    transform 180ms ease,
    background-color 160ms ease;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: #3b6d9c;
}

.back-to-top svg {
  width: 25px;
  height: 25px;

  display: block;

  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* =========================================================
   FLOATING DESKTOP MENU BUTTON
   ========================================================= */

.floating-menu-button {
  position: fixed;
  top: 28px;
  right: 28px;
  z-index: 1050;

  width: 72px;
  height: 52px;
  padding: 0;

  border: 0;

  display: grid;
  place-items: center;

  color: #171717;
  background: rgba(255, 255, 255, 0.94);

  opacity: 0;
  visibility: hidden;

  transform: translateY(-8px);

  cursor: pointer;

  transition:
    opacity 180ms ease,
    visibility 0s linear 180ms,
    transform 180ms ease,
    background-color 150ms ease;
}

.floating-menu-button.is-visible {
  opacity: 1;
  visibility: visible;

  transform: translateY(0);

  transition:
    opacity 180ms ease,
    visibility 0s linear 0s,
    transform 180ms ease,
    background-color 150ms ease;
}

.floating-menu-button:hover,
.floating-menu-button:focus-visible {
  background: #fff;
}

.floating-menu-button svg {
  width: 48px;
  height: 28px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: square;
}

@media (max-width: 760px) {
  .floating-menu-button {
    top: 18px;
    right: 14px;

    width: 58px;
    height: 44px;
  }

  .floating-menu-button svg {
    width: 40px;
    height: 26px;
  }
}


/* =========================================================
   RESPONSIVE — HEADER / FDIC
   ========================================================= */

@media (max-width: 1100px) {

  :root {
    --fdic-strip-height: 34px;
    --header-height: 124px;
  }

  .fdic-lockup {
    display: none;
  }

  .fdic-mobile-strip {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;

    width: 100%;
    height: var(--fdic-strip-height);

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: #fff;
  }

  .fdic-mobile-strip img {
    width: min(720px, 50%);
    height: auto;

    display: block;
  }

  .brand-logo {
    top: calc(
      var(--fdic-strip-height) +
      ((var(--header-height) - var(--fdic-strip-height)) / 2)
    );

    transform: translateY(-50%);
  }

  .header-routing {
    top: calc(
      var(--fdic-strip-height) +
      ((var(--header-height) - var(--fdic-strip-height)) / 2)
    );
    right: 310px;
    bottom: auto;

    transform: translateY(-50%);

    font-size: 12px;
  }

  .utility-nav {
    top: calc(
      var(--fdic-strip-height) +
      ((var(--header-height) - var(--fdic-strip-height)) / 2)
    );

    bottom: auto;

    transform: translateY(-50%);
  }
}


/* =========================================================
   RESPONSIVE — MENU SHORTER DESKTOPS
   ========================================================= */

@media (min-width: 761px) and (max-height: 850px) {

  /*
    Compact the menu vertically on shorter desktop browser windows.
  */

  .fullscreen-menu__header {
    min-height: 106px;
  }

  .fullscreen-menu__nav {
    margin-top: 40px;
    margin-bottom: 42px;
  }

  .menu-column h2 {
    margin-bottom: 17px;
  }

  .menu-column li > a {
    line-height: 1.18;
  }

  .menu-column li + li {
    margin-top: 9px;
  }
}


/* =========================================================
   RESPONSIVE — MENU MEDIUM WIDTH
   ========================================================= */

@media (max-width: 1320px) {

  .fullscreen-menu__utility-nav {
    gap: 25px;
  }

  .fullscreen-menu__utility-link {
    gap: 4px;

    font-size: 17px;
  }

  .fullscreen-menu__utility-link svg {
    width: 30px;
    height: 30px;
  }

  .fullscreen-menu__utility-link--phone svg {
    width: 32px;
    height: 32px;
  }

  .fullscreen-menu__utility-link--security svg {
    width: 33px;
    height: 33px;
  }
}


/* =========================================================
   RESPONSIVE — TABLETS
   ========================================================= */

@media (max-width: 980px) {

  .brand-logo {
    width: 185px;
  }

  .utility-nav {
    gap: 21px;
  }


  /* Menu header */

  .fullscreen-menu__header {
    min-height: 190px;
  }

  .fullscreen-menu__utility-nav {
    top: 98px;
    right: 38px;
    left: 38px;

    transform: none;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px 28px;
  }

  .fullscreen-menu__utility-link {
    gap: 8px;

    font-size: 16px;
  }

  .fullscreen-menu__utility-link svg {
    width: 28px;
    height: 28px;
  }

  .fullscreen-menu__utility-link--phone svg {
    width: 30px;
    height: 30px;
  }

  .fullscreen-menu__utility-link--security svg {
    width: 30px;
    height: 30px;
  }


  /* Stack the three menu columns */

  .fullscreen-menu__nav {
    display: block !important;

    width: calc(100% - 54px) !important;

    margin: 22px auto 28px !important;
    padding-right: 0 !important;
    padding-left: 0 !important;

    grid-template-columns: none !important;

    column-gap: 0 !important;
    row-gap: 0 !important;
  }

  .fullscreen-menu__nav > .menu-column {
    display: flex !important;

    width: 100% !important;
    min-width: 0 !important;
  }

  .fullscreen-menu__nav > .menu-column + .menu-column {
    margin-top: 26px !important;
  }

  .menu-column h2 {
    font-size: 24px;
  }

  .menu-column li > a {
    font-size: 20px;
  }

  .menu-newsletter-feature {
    margin-top: 26px;
  }

  .menu-newsletter-feature__label {
    font-size: 13px;
  }

  .menu-newsletter-feature__card {
    width: 175px;
  }

  .menu-newsletter-feature__row {
    gap: 18px;
  }


  /* Universal page typography */

  .page-section__inner {
    width: min(100% - 64px, 1040px);

    padding-top: 76px;
    padding-bottom: 76px;
  }

  .page-title {
    font-size: clamp(40px, 4.6vw, 52px);
  }

  .page-text {
    font-size: 18px;
  }

  .bsg-button {
    width: 245px;
    min-height: 54px;

    font-size: 16px;
  }
}


/* =========================================================
   RESPONSIVE — PHONES
   ========================================================= */

@media (max-width: 760px) {

  :root {
    --fdic-strip-height: 28px;
    --header-height: 128px;
  }


  /* FDIC strip */

  .fdic-mobile-strip {
    height: var(--fdic-strip-height);
  }

  .fdic-mobile-strip img {
    width: 90%;
    max-width: 400px;
    min-width: 300px;
  }


  /* Header */

  .brand-logo {
    top: calc(
      var(--fdic-strip-height) +
      ((var(--header-height) - var(--fdic-strip-height) - 18px) / 2)
    );

    left: 11px;

    width: 178px;

    transform: translateY(-50%);
  }

  .fdic-lockup {
    display: none;
  }

  .header-routing {
    top: auto;
    right: auto;
    bottom: 5px;
    left: 11px;

    transform: none;

    gap: 5px;

    font-size: 10px;
  }

  .utility-nav {
    top: calc(
      var(--fdic-strip-height) +
      ((var(--header-height) - var(--fdic-strip-height) - 18px) / 2)
    );

    right: 10px;
    bottom: auto;

    gap: 15px;

    transform: translateY(-50%);
  }

  .utility-button {
    width: 27px;
    height: 27px;
  }

  .utility-button svg {
    width: 25px;
    height: 25px;
  }

  .utility-nav .utility-button:nth-child(2) svg {
    width: 30px;
    height: 30px;
  }

  .utility-button.menu-button,
  .utility-button.menu-button svg {
    width: 44px;
  }


  /* Full-screen menu */

  .fullscreen-menu__header {
    min-height: 176px;
  }

  .fullscreen-menu__logo {
    top: 15px;
    left: 16px;

    width: 220px;
  }

  .fullscreen-menu__close {
    top: 19px;
    right: 15px;

    width: 46px;
    height: 46px;
  }

  .fullscreen-menu__close::before,
  .fullscreen-menu__close::after {
    top: 21px;
    left: 2px;

    width: 42px;
    height: 3px;
  }

  .fullscreen-menu__utility-nav {
    top: 94px;
    right: 22px;
    left: 22px;

    transform: none;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 22px;
  }

  .fullscreen-menu__utility-link {
    gap: 8px;

    font-size: 16px;
  }

  .fullscreen-menu__utility-link svg {
    width: 28px;
    height: 28px;
  }

  .fullscreen-menu__utility-link--phone svg {
    width: 30px;
    height: 30px;
  }

  .fullscreen-menu__utility-link--security svg {
    width: 29px;
    height: 29px;
  }

  .fullscreen-menu__nav {
    width: calc(100% - 54px) !important;

    margin: 22px auto 28px !important;

    padding-right: 0 !important;
    padding-left: 0 !important;
  }

  .menu-column h2 {
    margin-bottom: 10px;

    font-size: 24px;
    line-height: 1.1;
  }

  .menu-column li > a {
    font-size: 18px;
    line-height: 1.15;
  }

  .menu-column li + li {
    margin-top: 6px;
  }

  .menu-account-button {
    min-height: 58px;

    margin-top: 22px;

    font-size: 18px;
  }

  .menu-newsletter-feature {
    margin-top: 26px;
  }

  .menu-newsletter-feature__label {
    font-size: 13px;
  }

  .menu-newsletter-feature__card {
    width: 175px;
  }

  .menu-newsletter-feature__row {
    gap: 18px;
  }


  /* Universal page layout */

  .page-section__inner {
    width: calc(100% - 40px);

    padding-top: 62px;
    padding-bottom: 66px;
  }

  .page-title {
    margin-bottom: 22px;

    font-size: clamp(38px, 10vw, 50px);
    line-height: 1.04;
  }

  .page-text {
    font-size: 17px;
    line-height: 1.58;
  }

  .bsg-button {
    width: 100%;
    min-height: 58px;

    font-size: 17px;
  }


  /* Back to top is omitted on phones */

  .back-to-top {
    display: none;
  }


  /* Footer */

  .site-footer__main {
    width: calc(100% - 40px);
    min-height: 0;

    padding: 68px 0 28px;

    grid-template-columns: 1fr;
    grid-template-areas:
      "identity"
      "social"
      "badges"
      "legal";

    row-gap: 44px;

    justify-items: center;

    text-align: center;
  }

  .site-footer__identity,
  .site-footer__badges,
  .site-footer__social,
  .site-footer__legal {
    justify-self: center;
  }

  .site-footer__identity {
    text-align: center;
  }

  .site-footer__logo {
    width: min(250px, 76vw);

    margin-bottom: 24px;
  }

  .site-footer__phone {
    justify-content: center;
  }

  .site-footer__badges img {
    width: auto;
    height: 40px;
  }

  .site-footer__legal {
    justify-content: center;
  }

  .site-footer__copyright {
    min-height: 72px;

    padding: 0 20px;

    justify-content: center;

    text-align: center;
  }
}


/* =========================================================
   RESPONSIVE — SMALL PHONES
   ========================================================= */

@media (max-width: 470px) {

  .brand-logo {
    width: 165px;
  }


  /*
    Hide the location icon on very narrow phones.
    Phone, Security, Sign in and Menu remain.
  */

  .utility-nav .utility-button:first-child {
    display: none;
  }


  /* Full-screen menu */

  .fullscreen-menu__logo {
    width: 195px;
  }

  .fullscreen-menu__nav {
    width: calc(100% - 40px) !important;
  }


  /* Universal page typography */

  .page-section__inner {
    padding-top: 52px;
    padding-bottom: 58px;
  }

  .page-title {
    font-size: 38px;
  }

  .page-text {
    font-size: 16px;
  }


  /* Footer */

  .site-footer__main {
    padding-top: 64px;
  }

  .site-footer__social {
    gap: 12px;
  }

  .site-footer__social a {
    width: 35px;
    height: 35px;

    font-size: 28px;
  }

  .site-footer__legal {
    display: block;

    line-height: 1.9;
  }

  .site-footer__separator {
    margin: 0 6px;
  }
}


/* =========================================================
   RESPONSIVE — SHORT PHONE SCREENS
   ========================================================= */

@media (max-width: 760px) and (max-height: 760px) {

  .fullscreen-menu__header {
    min-height: 158px;
  }

  .fullscreen-menu__logo {
    top: 11px;

    width: 175px;
  }

  .fullscreen-menu__close {
    top: 12px;
  }

  .fullscreen-menu__utility-nav {
    top: 78px;

    gap: 7px 18px;
  }

  .fullscreen-menu__utility-link {
    font-size: 14px;
  }

  .fullscreen-menu__nav {
    margin-top: 18px !important;
    margin-bottom: 18px !important;
  }

  .fullscreen-menu__nav > .menu-column + .menu-column {
    margin-top: 18px !important;
  }

  .menu-column h2 {
    margin-bottom: 7px;

    font-size: 21px;
    line-height: 1.05;
  }

  .menu-column li > a {
    font-size: 16px;
    line-height: 1.08;
  }

  .menu-column li + li {
    margin-top: 4px;
  }

  .menu-account-button {
    min-height: 52px;

    margin-top: 16px;

    padding-right: 16px;
    padding-left: 16px;

    font-size: 16px;
  }

  .menu-newsletter-feature {
    margin-top: 18px;
  }

  .menu-newsletter-feature__label {
    margin-bottom: 8px;
    font-size: 12px;
  }

  .menu-newsletter-feature__card {
    width: 150px;
    padding: 8px 9px;
  }

  .menu-newsletter-feature__row {
    gap: 15px;
  }

  .menu-newsletter-feature__arrow {
    width: 25px;
    height: 25px;
  }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  .fullscreen-menu,
  .utility-button,
  .menu-account-button,
  .menu-newsletter-feature__card,
  .menu-newsletter-feature__arrow,
  .bsg-button,
  .floating-menu-button,
  .back-to-top {
    transition-duration: 0.01ms;
  }
}

/* =========================================================
   MOBILE MENU ACCORDION + FLOATING CONTROL CLEANUP
   ========================================================= */


/* Accordion toggles are injected by bsg.js.
   Hidden everywhere except phone layouts. */

.menu-column__toggle {
  display: none;
}


/* Never leave page-level floating controls sitting above
   the full-screen navigation drawer. */

body.menu-open .floating-menu-button,
body.menu-open .back-to-top {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}


/* =========================================================
   MOBILE MENU ACCORDION
   ========================================================= */

@media (max-width: 760px) {

  /*
    Turn the three menu columns into compact accordion rows.
  */

  .fullscreen-menu__nav > .menu-column {
    border-bottom: 1px solid rgba(255, 255, 255, 0.38);
  }

  .fullscreen-menu__nav > .menu-column + .menu-column {
    margin-top: 0 !important;
  }


  /*
    Column heading remains a real page link.
    The caret button occupies the right side.
  */

  .menu-column h2 {
    position: relative;

    min-height: 62px;
    margin: 0;
    padding: 18px 52px 18px 0;

    display: flex;
    align-items: center;
  }

  .menu-column h2 a {
    flex: 1 1 auto;
  }


  /* Caret button */

  .menu-column__toggle {
    position: absolute;
    top: 50%;
    right: 0;

    width: 42px;
    height: 42px;
    padding: 0;

    border: 0;

    display: grid;
    place-items: center;

    color: #fff;
    background: transparent;

    transform: translateY(-50%);

    cursor: pointer;
  }

  .menu-column__toggle:hover,
  .menu-column__toggle:focus-visible {
    color: #fff;
    opacity: 0.82;
  }

  .menu-column__toggle svg {
    width: 24px;
    height: 24px;

    display: block;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;

    transition: transform 180ms ease;
  }

  .menu-column.is-expanded .menu-column__toggle svg {
    transform: rotate(180deg);
  }


  /*
    Start each section folded.

    Personal / Business:
      ul + account-button wrapper

    About:
      ul + newsletter feature
  */

  .menu-column > ul,
  .menu-column > div,
  .menu-column > .menu-newsletter-feature {
    display: none !important;
  }


  /*
    bsg.js adds .is-expanded to the selected column.
  */

  .menu-column.is-expanded > ul,
  .menu-column.is-expanded > div,
  .menu-column.is-expanded > .menu-newsletter-feature {
    display: block !important;
  }

  .menu-column.is-expanded > ul {
    padding-bottom: 6px;
  }

  .menu-column.is-expanded > .menu-newsletter-feature {
    margin-bottom: 28px;
  }
}


/* =========================================================
   SHORT PHONE MENU
   ========================================================= */

@media (max-width: 760px) and (max-height: 760px) {

  .fullscreen-menu__nav > .menu-column + .menu-column {
    margin-top: 0 !important;
  }

  .menu-column h2 {
    min-height: 54px;
    margin: 0;
    padding-top: 14px;
    padding-bottom: 14px;

    font-size: 21px;
    line-height: 1.05;
  }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  .menu-column__toggle svg {
    transition-duration: 0.01ms;
  }
}
/* =========================================================
   LANDSCAPE TABLET MENU
   Keep the desktop-style three-column menu, but compact it
   for short, wide tablet screens.
   ========================================================= */

@media (min-width: 761px) and (max-width: 1100px) and (orientation: landscape) {

  /* ---------------------------------------------------------
     Menu header
     --------------------------------------------------------- */

  .fullscreen-menu__header {
    min-height: 138px;
  }

  .fullscreen-menu__logo {
    top: 14px;
    left: 20px;

    width: 190px;
  }

  .fullscreen-menu__close {
    top: 13px;
    right: 18px;

    width: 50px;
    height: 50px;
  }

  .fullscreen-menu__close::before,
  .fullscreen-menu__close::after {
    top: 23px;
    left: 3px;

    width: 44px;
    height: 3px;
  }


  /* ---------------------------------------------------------
     Quick links
     --------------------------------------------------------- */

  .fullscreen-menu__utility-nav {
    top: 82px;
    right: 34px;
    left: 34px;

    transform: none;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: clamp(18px, 2.8vw, 32px);
  }

  .fullscreen-menu__utility-link {
    gap: 5px;

    font-size: 14px;
  }

  .fullscreen-menu__utility-link svg {
    width: 25px;
    height: 25px;
  }

  .fullscreen-menu__utility-link--phone svg {
    width: 27px;
    height: 27px;
  }

  .fullscreen-menu__utility-link--security svg {
    width: 25px;
    height: 25px;
  }


  /* ---------------------------------------------------------
     Restore three-column menu
     --------------------------------------------------------- */

  .fullscreen-menu__nav {
    width: 100% !important;

    margin: 12px auto 30px !important;
    padding-right: 34px !important;
    padding-left: 34px !important;

    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;

    column-gap: 34px !important;
    row-gap: 0 !important;

    align-items: start;
  }

  .fullscreen-menu__nav > .menu-column {
    width: auto !important;
    min-width: 0 !important;

    display: flex !important;
  }

  .fullscreen-menu__nav > .menu-column + .menu-column {
    margin-top: 0 !important;
  }


  /* ---------------------------------------------------------
     Compact menu typography
     --------------------------------------------------------- */

  .menu-column h2 {
    margin: 0 0 12px -2px;

    font-size: 22px;
    line-height: 1.08;
  }

  .menu-column li + li {
    margin-top: 7px;
  }

  .menu-column li > a {
    margin: -3px -7px;
    padding: 3px 7px;

    font-size: 16px;
    line-height: 1.16;
  }


  /* ---------------------------------------------------------
     Account buttons
     --------------------------------------------------------- */

  .menu-account-button {
    min-height: 48px;
    margin-top: 18px;
    padding: 0 14px;

    font-size: 14px;
  }

  .menu-account-button svg {
    width: 23px;
    height: 23px;
    margin-left: 12px;
  }


  /* ---------------------------------------------------------
     Newsletter
     --------------------------------------------------------- */

  .menu-newsletter-feature {
    margin-top: 20px;
  }

  .menu-newsletter-feature__label {
    margin-bottom: 8px;

    font-size: 11px;
  }

  .menu-newsletter-feature__card {
    width: 100px;
  }

  .menu-newsletter-feature__row {
    gap: 14px;
  }

  .menu-newsletter-feature__arrow {
    width: 24px;
    height: 24px;
  }
}