/* Mobile header and login box clean-up (Six Rivers Media, 2026-12-03).
   Phones only, except the login frame size at the end. Loaded after style.css; remove this file's enqueue in functions.php to undo. */
@media all and (max-width:767px) {

/* --- Top bar: routing number, then three even buttons --- */
#top #header_meta .container { padding: 8px 12px 10px; min-height: 0; }
#top #header_meta .phone-info { float: none; width: 100%; padding: 0; margin: 0; line-height: 1.25; font-size: 12px; }
#top #header_meta .phone-info > div { display: block; width: 100%; }
#top .phone-info .mobile-only { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 6px; }
#top .phone-info .mobile-only > br,
#top .phone-info a.topbar_btn br { display: none; }
#top .phone-info .mobile-routing { grid-column: 1 / -1; float: none; margin: 0 0 2px; text-align: center; font-size: 12px; font-weight: 400; letter-spacing: .02em; }
#top .phone-info .mobile_call,
#top .phone-info .mobile_online_banking { float: none; display: block; height: auto; margin: 0; }
#top .phone-info a.topbar_btn,
#top .phone-info a.topbar_btn_call {
	display: flex; align-items: center; justify-content: center;
	height: 100%; min-height: 44px; box-sizing: border-box;
	margin: 0; padding: 6px 8px; border-radius: 8px;
	font-size: 11px; line-height: 1.25; font-weight: 600; letter-spacing: .02em;
	text-align: center; text-decoration: none;
}
#top .phone-info a.topbar_btn_call { background: #3441d5; color: #fff !important; }
#top .phone-info a.topbar_btn { background: #8ace2f; color: #072551 !important; }

/* --- Quick links row: one line --- */
#top .headerwidgetarea { border-bottom: 1px solid #e6e6e6; }
#top .headerwidgetarea ul { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 2px; margin: 0; padding: 0 6px; line-height: 1.2; }
#top .headerwidgetarea ul li { display: block; margin: 0; padding: 0; list-style: none; }
#top .headerwidgetarea ul li a { display: block; padding: 11px 4px; font-size: 10px; letter-spacing: 0; white-space: nowrap; }
#top .headerwidgetarea ul li.current-menu-item { background: none; }
#top .headerwidgetarea ul li a i { font-size: 14px; line-height: 1; }

/* --- Empty alert-ticker strip under the logo: no blank band --- */
.home #main > .container_wrap_first .content { padding-top: 0; padding-bottom: 0; }

/* --- Login box --- */
#top .signin_col { padding: 18px 16px 16px !important; margin-bottom: 0; }
#top .signin_col .login-primary-text { margin: 0 0 14px; font-size: 16px; line-height: 1.35; }
#top .signin_col .login-primary-text strong { font-size: inherit; line-height: inherit; }
#top .signin_col .login-secondary-text { margin: 12px 0 0; }
#top .signin_col .login-secondary-text a { font-size: 14px; line-height: 1.35 !important; }
#top #av_section_1 .container { padding-top: 0; padding-bottom: 0; }
}

/* --- Login frame, all screen sizes ---
   The bank's form inside the frame stacks to 203px wide and 151px tall whenever the frame is narrower than 462px.
   Size the frame to fit the form (so LOG ON is not cut off), centre it, and scale it up to fill the card.
   margin-bottom makes room for the scaled height: 151 x (scale - 1). */
#top .signin_col #tethered_frame { display: block; width: 203px !important; max-width: none; height: 151px !important; margin: 0 auto 23px; transform: scale(1.15); transform-origin: top center; }
#top .signin_col .login-secondary-text { margin: 0; padding-top: 12px; }

@media all and (min-width:768px) {
	/* Keep the login card one size on every desktop width instead of stretching with the screen */
	#top #av_section_1 .signin_col { width: 380px !important; min-width: 380px; max-width: 380px; box-sizing: border-box; padding: 22px 24px 20px !important; }
	#top #av_section_1 .flex_column_table .av_two_third { width: auto !important; }
	#top .signin_col #tethered_frame { transform: scale(1.4); margin-bottom: 61px; }
	#top .signin_col .login-primary-text { margin: 0 0 16px; line-height: 1.4; }
	#top .signin_col .login-primary-text strong { line-height: inherit; }
	#top .signin_col .login-secondary-text { padding-top: 14px; }
}
