/* Page frame, top: announcement bar, top bar (desktop), sticky header with the main menu and mega panels, search panel, phone menu. */

/* ---- announcement bar */
.nv-announcement { background: var(--nv-primary); color: var(--nv-on-primary); font-size: 14px; }
.nv-announcement__in { position: relative; display: flex; align-items: center; justify-content: center; min-height: 44px; padding-block: 6px; padding-inline: calc(var(--nv-site-gutter) + 36px); }
.nv-announcement__text { text-align: center; line-height: 1.4; text-wrap: balance; }
.nv-announcement a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.nv-announcement__close { position: absolute; right: calc(var(--nv-site-gutter) - 8px); top: 50%; translate: 0 -50%; color: inherit; }
.nv-announcement__close:hover { background: rgba(255, 255, 255, .16); color: inherit; }
.nv-announcement[hidden] { display: none; }

/* ---- top bar: segments, utility links, search (desktop only) */
.nv-topbar { position: relative; }
.nv-topbar .nv-container { position: relative; }
.nv-topbar__space { flex: 1; }
.nv-segments { display: flex; gap: 2px; }
.nv-segments__item {
  display: inline-flex; align-items: center; height: 38px; padding: 0 13px; font-size: 13px; font-weight: 400; color: var(--nv-text-3); background: transparent;
  transition: color var(--nv-dur-hover) ease;
}
.nv-segments__item:hover { color: var(--nv-text); }
.nv-segments__item.is-active { background: var(--nv-surface); color: var(--nv-text); font-weight: 600; }
.nv-util { display: flex; align-items: center; gap: 22px; margin: 0; padding: 0; list-style: none; }
.nv-util__item { position: static; }
.nv-util__link, .nv-util__btn {
  display: inline-flex; align-items: center; gap: 5px; min-height: 38px; padding: 0; border: 0; background: transparent; color: var(--nv-text-2); font-size: 13px; text-decoration: none; cursor: pointer;
}
.nv-util__link:hover, .nv-util__btn:hover { color: var(--nv-text); }
.nv-util__chev, .nv-sitenav__chev { flex: none; transition: transform .18s ease; }
[aria-expanded="true"] > .nv-util__chev, [aria-expanded="true"] > .nv-sitenav__chev { transform: rotate(180deg); }
.nv-util__panel {
  position: absolute; right: var(--nv-site-gutter); top: 100%; z-index: 60; width: 248px; padding: 7px; border: 1px solid var(--nv-border); border-radius: var(--nv-r-md);
  background: var(--nv-surface); box-shadow: 0 18px 40px rgba(var(--nv-ink-rgb), .18); animation: nv-mega .16s ease both;
}
.nv-util__sub { display: block; padding: 9px 10px; border-radius: var(--nv-r-sm); color: var(--nv-text-2); font-size: 14px; }
.nv-util__sub:hover { background: var(--nv-surface-alt); color: var(--nv-primary); }

/* a touch screen wider than a phone (a tablet on its side) gets the 44px targets in the top bar too (R13); a mouse keeps the slim bar */
@media (pointer: coarse) {
  .nv-topbar .nv-container { height: 44px; }
  .nv-segments__item { height: 44px; }
  .nv-util__link, .nv-util__btn { min-height: 44px; }
}

/* ---- sticky header */
.nv-sitehead { box-shadow: 0 0 0 rgba(var(--nv-ink-rgb), 0); transition: box-shadow var(--nv-dur-hover) ease; }
.nv-sitehead.is-stuck { box-shadow: 0 1px 0 var(--nv-border-soft), 0 10px 30px -18px rgba(var(--nv-ink-rgb), .35); }
.nv-sitehead .nv-sitehead__bar { height: var(--nv-head-h); gap: 10px; }
.nv-sitehead__brand { display: inline-flex; align-items: center; flex: 0 1 auto; min-width: 0; min-height: 44px; margin-right: 10px; overflow: hidden; color: var(--nv-text); }   /* a long bank name gives way (it is cut short) before the bar runs off the screen (R13) */
.nv-sitehead__brand .nv-logo { min-width: 0; max-width: 100%; }
.nv-sitehead__brand .nv-logo__word { overflow: hidden; text-overflow: ellipsis; }
.nv-sitehead__space { flex: 1 1 auto; }
/* the logo as the design draws it in the header, the footer and the phone menu (the kit's proportions are for the apps) */
.nv-sitehead__brand .nv-logo, .nv-sitefoot__brand .nv-logo { gap: 10px; }
.nv-sitehead__brand .nv-logo__word { font-size: 17px; }
.nv-sitefoot__brand .nv-logo__word { font-size: 15px; }
.nv-sitehead__brand .nv-logo__sub, .nv-sitefoot__brand .nv-logo__sub { font-size: 11px; letter-spacing: .18em; }
.nv-sitehead__menu { display: none; width: 44px; height: 44px; background: var(--nv-surface); color: var(--nv-text); }
.nv-sitehead__search { display: inline-grid; flex: none; width: 44px; height: 44px; background: transparent; color: var(--nv-text); }
.nv-sitehead__search:hover { background: var(--nv-surface-alt); color: var(--nv-primary); }
.nv-sitehead .nv-sitehead__signin, .nv-sitehead .nv-sitehead__cta { --nv-btn-h: 44px; min-height: 44px; flex: none; padding: 0 20px; font-size: 14.5px; }

/* main menu: a pill per item; an item with a panel is a button that opens it */
.nv-sitenav { flex: 0 1 auto; min-width: 0; }
.nv-sitenav__list { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nv-sitenav__item { min-width: 0; }
.nv-sitenav__btn, .nv-sitenav__link {
  display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 0; border-radius: var(--nv-r-pill); background: transparent; color: var(--nv-text);
  font-size: 15px; font-weight: 500; line-height: 1.15; text-align: left; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background var(--nv-dur-hover) ease, color var(--nv-dur-hover) ease;
}
.nv-sitenav__label { min-width: 0; }
.nv-sitenav__btn:hover, .nv-sitenav__link:hover { color: var(--nv-primary); }
.nv-sitenav__btn[aria-expanded="true"] { background: var(--nv-primary-light); color: var(--nv-primary); }
.nv-sitenav__btn.is-current, .nv-sitenav__link.is-current { color: var(--nv-primary); font-weight: 600; }

/* mega panels hang from the bottom of the header (the kit's .nv-mega) */
.nv-mega { z-index: 55; }
.nv-mega__in { display: flex; align-items: flex-start; gap: 32px; width: 100%; max-width: var(--nv-site-max); margin: 0 auto; padding: 18px var(--nv-site-gutter) 22px; }
.nv-mega__cols { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 220px); gap: 8px 48px; min-width: 0; }
.nv-mega__col { min-width: 0; }
.nv-mega__title { margin-bottom: 4px; font-size: 12.5px; font-weight: 700; color: var(--nv-text-3); }
.nv-mega__links { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.nv-mega__link { display: flex; align-items: center; min-height: 44px; font-size: 15px; color: var(--nv-text); }
.nv-mega__link:hover { color: var(--nv-primary); }
/* one small highlight, wide screens only; no picture inside a menu */
.nv-mega__promo { flex: 0 1 300px; min-width: 0; margin-left: auto; padding: 16px 18px; border: 1px solid var(--nv-primary-tint); border-radius: var(--nv-r-card); background: var(--nv-canvas); }
.nv-mega__promo-pic { display: none; }
.nv-mega__tag { margin-bottom: 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--nv-primary); }
.nv-mega__promo-title { margin-bottom: 6px; font-size: 16px; line-height: 1.25; letter-spacing: -.01em; color: var(--nv-text); font-weight: 600; }
.nv-mega__promo-body { margin: 0 0 12px; font-size: 13.5px; line-height: 1.5; color: var(--nv-text-2); }
.nv-mega__promo .nv-btn { --nv-btn-h: 40px; padding: 0 15px; font-size: 14px; }

/* ---- search panel under the header */
.nv-search-panel { border-top: 1px solid var(--nv-border-soft); background: var(--nv-canvas); animation: nv-mega .18s ease both; }
.nv-search-panel__in { width: 100%; max-width: var(--nv-site-max); margin: 0 auto; padding: 18px var(--nv-site-gutter) 22px; }
.nv-search-panel__row { position: relative; display: flex; align-items: center; gap: 10px; max-width: 640px; }
.nv-search-panel__icon { position: absolute; left: 14px; top: 16px; color: var(--nv-text-3); pointer-events: none; display: flex; }
.nv-search-panel__input {
  flex: 1 1 auto; width: 100%; min-width: 0; height: 50px; padding: 0 14px 0 42px; border: 1px solid transparent; border-radius: var(--nv-r-md); background: var(--nv-surface-alt);
  color: var(--nv-text); font-size: 15px; appearance: none;
}
.nv-search-panel__input:focus-visible { border-color: var(--nv-ring); outline-offset: 0; }
@media (max-width: 899px), (pointer: coarse) { .nv-search-panel__input { font-size: 16px; } }   /* phones: 16px so iOS does not zoom on focus (R13) */
.nv-search-panel__results { margin-top: 14px; }
.nv-search-panel__quick, .nv-search-group__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.nv-search-panel__chip {
  height: 36px; padding: 0 14px; border: 1px solid var(--nv-border-soft); border-radius: 20px; background: var(--nv-surface); color: var(--nv-text-2); font-size: 14px; font-weight: 500;
}
.nv-search-panel__chip:hover { color: var(--nv-text); }
.nv-search-group + .nv-search-group { margin-top: 18px; }
.nv-search-group__title { margin: 0 0 8px; font-size: 12.5px; font-weight: 700; color: var(--nv-text-3); letter-spacing: 0; }
.nv-search-group__list { flex-direction: column; gap: 4px; max-width: 640px; }
.nv-search-hit { display: flex; flex-direction: column; gap: 2px; min-height: 44px; padding: 8px 12px; border-radius: var(--nv-r-md); color: var(--nv-text); }
.nv-search-hit:hover, .nv-search-hit:focus-visible { background: var(--nv-surface); color: var(--nv-text); }
.nv-search-hit__title { font-size: 15px; font-weight: 600; }
.nv-search-hit__sum { font-size: 13.5px; color: var(--nv-text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv-search-note { margin: 0; font-size: 14px; color: var(--nv-text-3); }
.nv-search-panel__close { flex: none; }

/* ---- phone menu (the kit's left drawer, wider to match the design) */
.nv-mdrawer .nv-drawer { --nv-w: 360px; width: min(var(--nv-w), 90vw); padding-bottom: env(safe-area-inset-bottom); }
.nv-mdrawer__head { min-height: var(--nv-head-h); padding: 6px 12px 6px 16px; }
.nv-mdrawer__head .nv-iconbtn { width: 44px; height: 44px; background: var(--nv-surface-alt); color: var(--nv-text); }
.nv-mdrawer__brand { display: inline-flex; color: var(--nv-text); }
.nv-mdrawer__brand .nv-logo { gap: 9px; }
.nv-mdrawer__brand .nv-logo__word { font-size: 15px; }
.nv-mdrawer__brand .nv-logo__sub { display: none; }
.nv-mdrawer__segments { display: flex; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--nv-border-soft); }
.nv-mdrawer__segments .nv-segments__item { flex: 1; justify-content: center; height: 40px; padding: 0; border-radius: var(--nv-r-pill); background: var(--nv-surface-alt); color: var(--nv-text-2); font-size: 14px; font-weight: 600; }
.nv-mdrawer__segments .nv-segments__item.is-active { background: var(--nv-primary-light); color: var(--nv-primary); }
.nv-mdrawer__body { padding: 8px 10px 20px; }
.nv-mdrawer__acc .nv-acc__item { border-top: 0; border-bottom: 1px solid var(--nv-border-soft); }
.nv-mdrawer__acc .nv-acc__btn { min-height: 52px; padding: 12px 8px; font-size: 16px; font-weight: 600; }
.nv-mdrawer__acc .nv-acc__panel { padding: 0 8px 12px; }
.nv-mdrawer__links, .nv-mdrawer__rows { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nv-mdrawer__link { display: flex; align-items: center; min-height: 44px; padding: 8px 10px; border-radius: var(--nv-r-sm); color: var(--nv-text-2); font-size: 15px; }
.nv-mdrawer__link:hover { background: var(--nv-surface-alt); color: var(--nv-primary); }
.nv-mdrawer__rows { padding-top: 6px; }
.nv-mdrawer__row {
  display: flex; align-items: center; width: 100%; min-height: 46px; padding: 12px 8px; border: 0; border-radius: 0; background: transparent; color: var(--nv-text); font-size: 15px; font-weight: 500;
  text-align: left; text-decoration: none; cursor: pointer;
}
.nv-mdrawer__row:hover { color: var(--nv-primary); }
.nv-mdrawer__foot { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--nv-border-soft); }
.nv-mdrawer__foot .nv-btn { --nv-btn-h: 48px; font-size: 15px; }
.nv-mdrawer__extras .nv-mdrawer__row { min-height: 44px; font-weight: 400; color: var(--nv-text-2); }

/* ---- phones: one bar, a round menu button, the top bar gone (980px, as in the design) */
@media (max-width: 1119px) {
  .nv-sitehead__cta, .nv-mega__promo { display: none; }   /* the button and the highlight need the room; "Open an account" stays in the Accounts menu and on the pages */
}
@media (max-width: 979px) {
  .nv-topbar, .nv-sitenav, .nv-mega, .nv-sitehead__cta { display: none; }
  .nv-sitehead__menu { display: inline-grid; }
  .nv-sitehead .nv-sitehead__signin { padding: 0 16px; font-size: 14px; }
  .nv-search-panel__in { padding-top: 12px; }
}
@media (max-width: 599px) {
  .nv-sitehead__brand .nv-logo__sub { display: none; }   /* the small line under the name needs room a phone has not got; the phone menu leaves it out too */
  .nv-sitehead__search { display: none; }   /* a phone's menu has the Search row; the bar keeps the menu, the brand and Sign in */
  .nv-sitehead .nv-sitehead__bar { gap: 8px; }
}
@media (min-width: 980px) {
  .nv-mdrawer { display: none !important; }
}
