/* ==========================================================================
   Phone header actions + full-screen site menu (owner INBOX #297, 2026-11-02).
   Markup: inc/avc-site-menu.php. Script: assets/js/avc-site-menu.js.
   Phones = < 768 px: full-screen menu with the gold / navy wipe. >= 768 px (#416): the same button and menu, as a
   right-hand panel over a dimmed page (block "Tablet + desktop" below).
   ========================================================================== */

.avc-mhdr-actions { display: none; }

/* -------- Back-to-top (#297.6): smaller, navy with a thin border (was a 44 px button) -------- */
html body .fsf-back-top {
	width: 36px !important;
	height: 36px !important;
	font-size: 16px !important;
	background: #0a1628 !important;
	border: 1px solid rgba(232, 238, 245, .28) !important;
	color: #e8eef5 !important;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .35) !important;
	backdrop-filter: none !important;
	-webkit-backdrop-filter: none !important;
}
html body .fsf-back-top:hover { background: #12233d !important; border-color: rgba(232, 238, 245, .5) !important; transform: none !important; box-shadow: 0 2px 10px rgba(0, 0, 0, .35) !important; }
html body .fsf-back-top:focus-visible { outline: 2px solid #e8a020; outline-offset: 2px; }

@media (max-width: 767px) {
	/* -------- Header right side: [Post a Job] [menu] (#297.2) -------- */
	.avc-mhdr-actions {
		display: flex;
		align-items: center;
		gap: 10px;
		margin-left: auto;
		flex: 0 0 auto;
		order: 50; /* last in every header row (the operators search box stays between logo and menu) */
	}
	/* Old phone right-side controls: the jobs sliders icon, the jobs headers' own Post a Job, the signed-out
	   avatar "Sign in", the contact status pill, the for-schools in-page links. The menu replaces them. */
	.avim-header-cluster,
	.avijl-header .avijl-header-right,
	.avijl-header .aviju-header__filter-pill,
	.avijs-siteheader .avijs-hpost,
	.fsf-topnav .fsf-nav-avatar:has(.fsf-nav-avatar-label),
	.avi-contact-topbar .avi-contact-status-pill,
	.ffs-nav .ffs-nav-right { display: none !important; }
	/* A signed-in avatar stays, just before the menu button. */
	.fsf-topnav .fsf-nav-avatar { order: 49; margin-left: auto; }
	.fsf-topnav:has(.fsf-nav-avatar:not(:has(.fsf-nav-avatar-label))) .avc-mhdr-actions { margin-left: 10px; }

	/* Homepage bar: the clock row wraps under the logo on phones, so the button sits at the logo row's right end. */
	.fs-utility { position: relative; }
	.fs-utility > .avc-mhdr-actions { position: absolute; top: 7px; right: 16px; margin: 0; }

	.avc-mhdr-post {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		box-sizing: border-box;
		height: 34px;
		padding: 0 12px;
		background: rgba(142, 163, 188, .16);
		color: #c9d6e4;
		border: 1px solid rgba(142, 163, 188, .40);
		border-radius: 10px;
		font-family: 'DM Sans', sans-serif;
		font-size: 13px;
		font-weight: 600;
		line-height: 1;
		text-decoration: none;
		white-space: nowrap;
	}
	.avc-mhdr-post:hover, .avc-mhdr-post:focus-visible { background: rgba(142, 163, 188, .26); color: #e8eef5; text-decoration: none; }
	.avc-mhdr-post:focus-visible { outline: 2px solid #e8a020; outline-offset: 2px; }

	/* -------- Hide on scroll down, show on scroll up (#297.6) -------- */
	.avc-mhdr { transition: transform .25s ease, visibility 0s; will-change: transform; }
	.avc-mhdr.avc-mhdr--stick { position: sticky !important; top: 0; z-index: 60; }
	/* #383.1: while hidden above the screen the header is not rendered (after the slide-up); it shows at once on scroll up. */
	.avc-mhdr.avc-mhdr--hide { transform: translateY(-100%) !important; visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; }
	html.avc-smenu-open .avc-mhdr { transform: none !important; visibility: visible; transition: transform .25s ease, visibility 0s; }
}

/* -------- Menu button: two lines that morph into an X -------- */
.avc-menu-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 10px;
	color: #e8eef5;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.avc-menu-btn,
.avc-menu-btn:hover,
.avc-menu-btn:focus,
.avc-menu-btn:active { background: transparent !important; color: #e8eef5 !important; box-shadow: none !important; border: 0 !important; }
.avc-menu-btn:hover { background: rgba(232, 238, 245, .08) !important; }
.avc-menu-btn:focus { outline: none; }
.avc-menu-btn:focus-visible { outline: 2px solid #e8a020 !important; outline-offset: 2px; }
.avc-menu-btn__bar {
	position: absolute;
	left: 9px;
	width: 22px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform .3s ease-in-out;
}
.avc-menu-btn__bar:first-child { top: 15px; }
.avc-menu-btn__bar:last-child { top: 23px; }
.avc-menu-btn[aria-expanded="true"] .avc-menu-btn__bar:first-child,
.avc-menu-btn.is-open .avc-menu-btn__bar:first-child { transform: translateY(4px) rotate(45deg); }
.avc-menu-btn[aria-expanded="true"] .avc-menu-btn__bar:last-child,
.avc-menu-btn.is-open .avc-menu-btn__bar:last-child { transform: translateY(-4px) rotate(-45deg); }
/* The close button inside the menu starts as two lines and morphs once the menu is open. */
.avc-smenu:not(.is-open) .avc-menu-btn--close .avc-menu-btn__bar { transform: none; }

/* -------- Full-screen menu (#297.3) -------- */
html.avc-smenu-open, html.avc-smenu-open body { overflow: hidden !important; }
.avc-smenu {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	overflow: hidden;
	color: #e8eef5;
	font-family: 'DM Sans', sans-serif;
}
.avc-smenu[hidden] { display: none !important; }
/* #348 (owner, 2026-11-02; replaces #344): the original #297 open / close — a gold layer then a navy layer wipe UP the
   full screen (~0.7 s, ease-in-out, navy just behind the gold), then the rows rise 70 ms apart; on close the wipe sweeps
   back DOWN (navy first, then gold). Safari's bars must stay navy (#329):
     edge mode "strips" (default): html / body stay #060f1e and two 4 px navy strips sit at the very top and bottom of the
       screen, above the wipe layers, only while a wipe runs (.is-wiping);
     edge mode "inset" (fallback, data-edge="inset" on #avc-site-menu, set by EDGE_MODE in avc-site-menu.js): the gold
       layer never reaches the top or bottom 60 px; the navy layer is full height.
   Once the open wipe has finished, the gold layer is hidden (.is-settled) and the menu itself is navy. */
html.avc-smenu-open, html.avc-smenu-open body { background-color: #060f1e !important; }
.avc-smenu.is-settled { background: #060f1e; }
/* #372 (owner, 2026-11-03): a wipe that is not moving is PARKED: above the screen (translateY(-100%)) and
   visibility:hidden, so nothing gold ever sits below the viewport where iPhone Safari's floating bottom bar samples its
   tint. A wipe is shown only while it runs: .is-wipe-in places it just below the screen (no transition) for one frame,
   then .is-open / .is-closing move it; on its transitionend (or the JS fallback timer) it gets .is-parked again. */
.avc-smenu__wipe {
	position: absolute;
	inset: 0;
	transform: translateY(-100%);
	visibility: hidden;
	transition: none;
}
/* (!important: these one-frame starting positions must jump, even while .is-open still carries the transition) */
.avc-smenu.is-wipe-in .avc-smenu__wipe { transform: translateY(100%) !important; visibility: visible; transition: none !important; }
.avc-smenu.is-cover .avc-smenu__wipe { transform: translateY(0) !important; visibility: visible; transition: none !important; } /* close starts from a covered screen */
.avc-smenu.is-cover .avc-smenu__goldbox { visibility: visible; }
.avc-smenu.is-open .avc-smenu__wipe,
.avc-smenu.is-closing .avc-smenu__wipe { visibility: visible; transition: transform .55s cubic-bezier(.65, 0, .35, 1); }
.avc-smenu__wipe--gold { background: var(--brand-gold, #e8a020); }
.avc-smenu__wipe--navy { background: #060f1e; }
.avc-smenu.is-open .avc-smenu__wipe { transform: translateY(0); }
.avc-smenu.is-open .avc-smenu__wipe--navy { transition-delay: .15s; } /* gold first, navy over it: ~0.7 s in all */
/* Close: sweeps back down, navy first, then gold. */
.avc-smenu.is-closing .avc-smenu__wipe { transform: translateY(100%); }
.avc-smenu.is-closing .avc-smenu__wipe--navy { transition-delay: 0s; }
.avc-smenu.is-closing .avc-smenu__wipe--gold { transition-delay: .12s; }
.avc-smenu .avc-smenu__wipe.is-parked,
.avc-smenu.is-settled .avc-smenu__wipe { transform: translateY(-100%); visibility: hidden !important; transition: none !important; }
.avc-smenu.is-settled .avc-smenu__goldbox { visibility: hidden; }
/* The gold layer moves inside a fixed box (full screen by default). Fallback edge mode: the box is 60 px clear of the
   top and the bottom and clips the gold, so it never reaches the screen edges while it moves. */
.avc-smenu__goldbox { position: absolute; inset: 0; overflow: hidden; }
.avc-smenu[data-edge="inset"] .avc-smenu__goldbox { top: 60px; bottom: 60px; }
/* Default edge mode: navy strips over the wipes at the very top / bottom while a wipe runs. */
.avc-smenu__strip { display: none; position: absolute; left: 0; right: 0; height: 4px; background: #060f1e; z-index: 5; pointer-events: none; }
.avc-smenu__strip--top { top: 0; }
.avc-smenu__strip--bottom { bottom: 0; height: calc(100px + env(safe-area-inset-bottom, 0px)); z-index: 6; } /* #372: gold never touches the bottom ~100 px (Safari's floating bar) */
.avc-smenu.is-wiping:not([data-edge="inset"]) .avc-smenu__strip { display: block; }

.avc-smenu__panel {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	box-sizing: border-box;
	padding: 0 16px calc(20px + env(safe-area-inset-bottom, 0px));
	overflow-y: auto;
	overscroll-behavior: contain;
	opacity: 0;
	transition: opacity .2s ease;
}
.avc-smenu.is-open .avc-smenu__panel { opacity: 1; transition-delay: .5s; }
.avc-smenu.is-closing .avc-smenu__panel { opacity: 0; transition-delay: 0s; transition-duration: .15s; }

.avc-smenu__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 56px;
	flex: 0 0 auto;
}
.avc-smenu__logo { display: inline-flex; }
.avc-smenu__logo img { display: block; width: 145px; height: 24px; }
.avc-smenu__logo:focus-visible { outline: 2px solid #e8a020; outline-offset: 4px; border-radius: 2px; }
.avc-smenu__top .avc-menu-btn { margin-right: -4px; }

/* -------- #432 (owner, 2026-11-03): the site-wide search, at the top of the menu at every width -------- */
/* The guide's search field: bg-card, 1 px border-strong, 12 px radius, 58 px, white magnifier, white 17 px text
   (17 px also keeps iPhone Safari from zooming in), text-muted placeholder; focus = gold border + 3 px gold ring at 18 %. */
.avc-smenu__search { position: relative; flex: 0 0 auto; margin: 4px 0 14px; }
.avc-smenu__search-icon { position: absolute; left: 16px; top: 50%; margin-top: -10px; color: #e8eef5; pointer-events: none; }
html body .avc-smenu .avc-smenu__search-input {
	display: block;
	width: 100%;
	height: 58px;
	box-sizing: border-box;
	margin: 0;
	padding: 0 16px 0 46px;
	background: #0c1a30;
	border: 1px solid #2a4266;
	border-radius: 12px;
	color: #e8eef5;
	font: 400 17px/1.2 'DM Sans', sans-serif;
	box-shadow: none;
	outline: 0;
	-webkit-appearance: none;
	appearance: none;
}
html body .avc-smenu .avc-smenu__search-input::placeholder { color: #7d93ad; opacity: 1; transition: opacity .45s ease; }
/* #517: the typed examples are an overlay (assets/js/avi-typed.js): after the magnifier, in the placeholder colour; the field's placeholder is empty while one shows */
html body .avc-smenu .avc-smenu__type { position: absolute; left: 46px; right: 16px; top: 0; bottom: 0; display: none; align-items: center; overflow: hidden; pointer-events: none;
	font: 400 17px/1.2 'DM Sans', sans-serif; white-space: nowrap; color: #7d93ad; }
html body .avc-smenu .avc-smenu__type.is-on { display: flex; }
@media (prefers-reduced-motion: reduce) { html body .avc-smenu .avc-smenu__search-input::placeholder { transition: none; } }
html body .avc-smenu .avc-smenu__search-input::-webkit-search-cancel-button { -webkit-appearance: none; }
html body .avc-smenu .avc-smenu__search-input:focus { border-color: #e8a020; box-shadow: 0 0 0 3px rgba(232, 160, 32, .18); }
.avc-smenu__sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; white-space: nowrap; }

.avc-smenu__nav { flex: 1 0 auto; }
.avc-smenu__list { list-style: none; margin: 4px 0 0; padding: 0; }
.avc-smenu__row {
	margin: 0;
	border-bottom: 1px solid rgba(232, 238, 245, .12);
	opacity: 0;
	transform: translateY(18px);
	transition: opacity .35s ease, transform .35s ease;
	transition-delay: 0s;
}
.avc-smenu__row:first-child { border-top: 1px solid rgba(232, 238, 245, .12); }
/* Rows rise in one at a time, ~70 ms apart, once the wipe has covered the screen (#297, restored by #348). */
.avc-smenu.is-open .avc-smenu__row { opacity: 1; transform: none; }
.avc-smenu.is-open .avc-smenu__row:nth-child(1) { transition-delay: .60s; }
.avc-smenu.is-open .avc-smenu__row:nth-child(2) { transition-delay: .67s; }
.avc-smenu.is-open .avc-smenu__row:nth-child(3) { transition-delay: .74s; }
.avc-smenu.is-open .avc-smenu__row:nth-child(4) { transition-delay: .81s; }
.avc-smenu.is-open .avc-smenu__row:nth-child(5) { transition-delay: .88s; }
.avc-smenu.is-open .avc-smenu__row:nth-child(6) { transition-delay: .95s; }
.avc-smenu.is-open .avc-smenu__row:nth-child(7) { transition-delay: 1.02s; }
.avc-smenu.is-open .avc-smenu__row:nth-child(8) { transition-delay: 1.09s; }
.avc-smenu.is-closing .avc-smenu__row { transition-delay: 0s !important; transition-duration: .12s; }

.avc-smenu__link {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 64px;
	padding: 10px 2px;
	color: inherit;
	text-decoration: none;
}
.avc-smenu__link:focus-visible { outline: 2px solid #e8a020; outline-offset: -2px; border-radius: 4px; }
.avc-smenu__text { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.avc-smenu__name {
	/* #374.1 (owner, 2026-11-03): the #316 menu again (replaces #298's Inter): Bebas Neue caps ~30 px; the current
	   section's name in gold (below). Inter is no longer drawn here, so the browser never fetches it. */
	font-family: 'Bebas Neue', Impact, sans-serif;
	font-size: 30px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: #e8eef5;
}
.avc-smenu__desc {
	margin-top: 4px;
	font-family: 'DM Sans', sans-serif; /* #316 / #374.1: DM Sans 13 px text-secondary */
	font-size: 13px;
	font-weight: 400;
	line-height: 1.3;
	color: #94a7be;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.avc-smenu__arrow { flex: 0 0 auto; color: #8ea3bc; transition: transform .15s ease, color .15s ease; }
.avc-smenu__link:hover .avc-smenu__arrow { transform: translateX(3px); color: #e8eef5; }
.avc-smenu__row.is-current .avc-smenu__name,
.avc-smenu__row.is-current .avc-smenu__arrow { color: var(--brand-gold, #e8a020); }

.avc-smenu__foot {
	flex: 0 0 auto;
	padding-top: 22px;
	opacity: 0;
	transition: opacity .35s ease;
}
.avc-smenu.is-open .avc-smenu__foot { opacity: 1; transition-delay: 1.09s; }
.avc-smenu.is-closing .avc-smenu__foot { opacity: 0; transition-delay: 0s; transition-duration: .12s; }
.avc-smenu__btns { display: flex; gap: 12px; }
/* #350 (owner, 2026-11-02): the guide's standard secondary button (AVCENTRAL-DESIGN-GUIDE.md, Components > Buttons, #343):
   48 px, 10 px radius, white DM Sans 15 px 600, no tint; #418 (2026-11-03): the border is neutral grey (border-strong
   #2a4266, text-muted #7d93ad on hover / tap), no longer gold; a pair sits side by side at equal width with a 12 px gap and stacks below 340 px. */
.avc-smenu__btn {
	flex: 1 1 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 12px;
	box-sizing: border-box;
	background: transparent;
	border: 1px solid #2a4266; /* #418: neutral outline (border-strong), never gold */
	border-radius: 10px;
	color: #ffffff;
	font-family: 'DM Sans', sans-serif;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	-webkit-tap-highlight-color: transparent;
	transition: border-color .15s ease;
}
/* #418: hover (mouse only) = slightly brighter grey edge + white label, no gold; the focus ring below stays */
@media (hover: hover) and (pointer: fine) {
	.avc-smenu__btn:hover { background: transparent; border-color: #7d93ad; color: #ffffff; text-decoration: none; }
}
.avc-smenu__btn:focus-visible { outline: 2px solid #e8a020; outline-offset: 2px; }
/* beats body.fsf-dark-theme a { color: inherit } (the menu text colour is #e8eef5) */
html body .avc-smenu a.avc-smenu__btn, html body .avc-smenu a.avc-smenu__btn:hover, html body .avc-smenu a.avc-smenu__btn:active { color: #ffffff; }
@media (max-width: 339px) {
	.avc-smenu__btns { flex-direction: column; }
	.avc-smenu__btn { flex: 0 0 auto; width: 100%; }
}
.avc-smenu__mail {
	display: block;
	margin: 16px auto 0;
	text-align: center;
	font-size: 14px;
	color: #8ea3bc;
	text-decoration: none;
}
.avc-smenu__cookie { margin-top: 8px; }  /* #532: "Cookie settings" under the support address */
/* #532: Guides sub-links (Flight training / Medical / Scholarship) under the Guides row. */
.avc-smenu__sub { display: flex; flex-wrap: wrap; gap: 4px 8px; padding: 0 2px 12px; margin-top: -4px; }
.avc-smenu__sublink {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid #2a4266;
	border-radius: 10px;
	font-family: 'DM Sans', sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: #e8eef5;
	text-decoration: none;
}
.avc-smenu__sublink:focus-visible { outline: 2px solid #e8a020; outline-offset: 2px; }
@media (hover: hover) { .avc-smenu__sublink:hover { border-color: #7d93ad; color: #ffffff; } }
/* #532 (owner, #538 follow-up): phones: the whole menu (search, 8 rows, Guides hubs, Post job + School login, support,
   Cookie settings) fits 390x844 without scrolling. Rows 50 px (still a 48 px target), tighter gaps; the Guides hubs stay on one line. */
@media (max-width: 767px) {
	.avc-smenu__link { min-height: 50px; padding: 5px 2px; }
	.avc-smenu__search { margin: 0 0 8px; }
	.avc-smenu__list { margin-top: 0; }
	.avc-smenu__sub { flex-wrap: nowrap; gap: 6px; padding-bottom: 8px; margin-top: -2px; }
	.avc-smenu__sublink { flex: 1 1 0; justify-content: center; min-height: 40px; padding: 0 8px; white-space: nowrap; font-size: 13px; }
	.avc-smenu__foot { padding-top: 14px; }
	.avc-smenu__mail { margin-top: 10px; }
	.avc-smenu__cookie { margin-top: 4px; }
}
/* Tablet / desktop panel: rows 68 -> 58 px so the 8 rows + Guides hubs + buttons fit a 1440x900 screen. */
@media (min-width: 768px) {
	.avc-smenu .avc-smenu__link { min-height: 58px; padding: 6px 2px; } /* .avc-smenu prefix: beats the later 68 px rule */
	.avc-smenu__sub { padding-bottom: 8px; }
	.avc-smenu__search { margin-bottom: 8px; }
}
/* Short phones (375x667 and the like): the one-line descriptions go, every item stays. */
@media (max-width: 767px) and (max-height: 760px) {
	.avc-smenu__desc { display: none; }
	.avc-smenu__link { min-height: 44px; padding: 2px; }
	.avc-smenu__name { font-size: 26px; }
	.avc-smenu__top { min-height: 48px; }
	.avc-smenu__foot { padding-top: 10px; }
	.avc-smenu__mail { margin-top: 6px; }
}
.avc-smenu__mail:hover { color: #e8eef5; text-decoration: underline; }
.avc-smenu__mail:focus-visible { outline: 2px solid #e8a020; outline-offset: 2px; border-radius: 2px; }

/* -------- Tablet + desktop (>= 768 px, owner INBOX #416, 2026-11-03): the same menu button, top right of every
   header, opening the same #avc-site-menu, here as a panel on the right over a dimmed page (no gold / navy wipe).
   Closes with the X, Esc or a click outside the panel; focus moves into the panel, stays there (Tab loops) and returns
   to the button (assets/js/avc-site-menu.js). One header markup for every width (phase 3 of #396). -------- */
@media (min-width: 768px) {
	.avc-mhdr-actions {
		display: flex;
		align-items: center;
		gap: 10px;
		flex: 0 0 auto;
		order: 50;        /* last in every header row: after Post a Job, the pay-data pill */
		margin-left: 12px !important;
	}
	/* #432: no search field in the header any more (it pushed the right-hand items over with margin-left:auto). The logo
	   takes the free space now, so the page item and the menu button sit together at the right end; other items' own
	   auto margins / growth are neutralised so they never split that space (an empty bar item would park mid-bar). */
	.avc-brand-lockup { margin-right: auto; }
	.avc-brand-lockup ~ :not(.avc-mhdr-actions) { margin-left: 0 !important; flex-grow: 0 !important; }
	/* The jobs headers keep their own desktop Post a Job button; the phone pill stays phone-only. */
	.avc-mhdr-actions .avc-mhdr-post { display: none; }
	/* #419 (owner), #432: every header = logo · one page item only where it adds something (home UTC strip,
	   salaries pay-data pill, jobs Post a Job) · menu button last (the site search is in the menu, #432). Header links that repeat the menu, or are a page's
	   own extras, are not shown from 768 px:
	     operators bar "Jobs · Companies"; pay carrier / rank / aircraft bar "Salaries · Jobs";
	     scholarship deadlines / filtered / FAQ bar "Medicals · Scholarships · Guides";
	     for-schools bar "What you get · School login · Claim Your School" (School login is in the menu; the page's
	     own Claim buttons stay in the page). */
	.fsf-header-nav,
	.avi-pay-topbar > nav,
	.fsf-sch-topbar .fsf-sch-toplinks,
	.ffs-nav .ffs-nav-right { display: none !important; }
	/* Homepage bar: logo left, the UTC strip pushed right, then the menu button. */
	.fs-utility .fs-status { margin-left: auto; }
	.fs-utility > .avc-mhdr-actions { margin-left: 20px; }

	/* The page keeps its width while the menu is open (no scrollbar jump). */
	html.avc-smenu-open { scrollbar-gutter: stable; }

	/* Dimmed page behind the panel; a click on it closes the menu. */
	.avc-smenu,
	.avc-smenu.is-settled { background: rgba(6, 15, 30, .62); }
	.avc-smenu { opacity: 0; transition: opacity .25s ease; }
	.avc-smenu.is-open { opacity: 1; }
	.avc-smenu.is-closing { opacity: 0; transition-duration: .22s; }
	.avc-smenu__goldbox,
	.avc-smenu__wipe,
	.avc-smenu__strip { display: none !important; }

	.avc-smenu__panel {
		position: absolute;
		top: 0;
		right: 0;
		bottom: 0;
		width: min(420px, 100%);
		height: auto;
		padding: 0 24px 24px;
		background: #060f1e;               /* page background, as the phone menu (owner 2026-11-21: was #0f1e38, read lighter) */
		border-left: 1px solid #1f3354;    /* border */
		box-shadow: -24px 0 48px rgba(0, 0, 0, .35);
		opacity: 1;
		transform: translateX(100%);
		transition: transform .32s cubic-bezier(.33, 1, .68, 1);
	}
	.avc-smenu.is-open .avc-smenu__panel { opacity: 1; transform: none; transition-delay: 0s; }
	.avc-smenu.is-closing .avc-smenu__panel { opacity: 1; transform: translateX(100%); transition-duration: .22s; }

	/* The page's own logo shows beside the panel: the X only (lined up with the header's button by the script). */
	.avc-smenu__top { justify-content: flex-end; }
	.avc-smenu__logo { display: none; }

	/* Rows rise in as the panel slides in (no wipe to wait for). */
	.avc-smenu.is-open .avc-smenu__row:nth-child(1) { transition-delay: .10s; }
	.avc-smenu.is-open .avc-smenu__row:nth-child(2) { transition-delay: .14s; }
	.avc-smenu.is-open .avc-smenu__row:nth-child(3) { transition-delay: .18s; }
	.avc-smenu.is-open .avc-smenu__row:nth-child(4) { transition-delay: .22s; }
	.avc-smenu.is-open .avc-smenu__row:nth-child(5) { transition-delay: .26s; }
	.avc-smenu.is-open .avc-smenu__row:nth-child(6) { transition-delay: .30s; }
	.avc-smenu.is-open .avc-smenu__row:nth-child(7) { transition-delay: .34s; }
	.avc-smenu.is-open .avc-smenu__row:nth-child(8) { transition-delay: .38s; }
	.avc-smenu.is-open .avc-smenu__foot { transition-delay: .40s; }
	.avc-smenu__link { min-height: 68px; }
	.avc-smenu__foot { padding-top: 24px; }
}
@media (min-width: 768px) and (hover: hover) and (pointer: fine) {
	.avc-smenu__row:not(.is-current) .avc-smenu__link:hover .avc-smenu__name { color: #ffffff; }
}
/* Owner 2026-11-17 (option A): the Guides row is a label (no link, arrow or line); the pills below it are the links. */
.avc-smenu .avc-smenu__row .avc-smenu__link--label { min-height: 0; padding: 14px 2px 8px; cursor: default; }
.avc-smenu__row:not(.is-current) .avc-smenu__link--label:hover .avc-smenu__name { color: #e8eef5; }
@media (min-width: 768px) and (prefers-reduced-motion: reduce) {
	.avc-smenu,
	.avc-smenu__panel { transition: none !important; }
	html .avc-smenu.is-open { background: rgba(6, 15, 30, .62); } /* not the phone's solid navy */
}

/* -------- Reduced motion (#297.7, #348.4): opens and closes at once (no wipe); the button swaps icons -------- */
@media (prefers-reduced-motion: reduce) {
	.avc-smenu.is-open { background: #060f1e; }
	.avc-smenu__wipe,
	.avc-smenu__goldbox,
	.avc-smenu__strip { transition: none !important; display: none !important; }
	.avc-smenu__panel,
	.avc-smenu__row,
	.avc-smenu__foot,
	.avc-menu-btn__bar,
	.avc-mhdr { transition: none !important; transition-delay: 0s !important; }
}

/* ==========================================================================
   Site-wide phone + search details (owner INBOX #355, 2026-11-02)
   ========================================================================== */
/* #355.3: the magnifier in every search field is white text-primary #e8eef5 (was gold / slate); the focus ring stays
   gold (each field's own :focus-within rule, unchanged). Listed by class so it holds for the fields on other branches
   too: home (.fs-find-icon), schools hub (.fsh-search-icon), medicals (.fsm-search-icon), site search (.avi-ss-icon),
   jobs board (.aviju-kw__icon, .aviju-header-search__icon, .avijl-search-pill__icon), job page (.avijs-hsearch__icon),
   school pages (.fsf-nav-search-icon), operators (.avc-op-search svg), for-schools (.ffs-search-icon). */
.fs-find-icon, .fsh-search-icon, .fsm-search-icon, .avi-ss-icon,
body.aviju-page .aviju-kw__icon, .aviju-header-search__icon, .avijl-search-pill__icon,
body.single-avi_job .avijs-hsearch__icon, .fsf-nav-search-icon, .avc-op-search svg, .ffs-search-icon {
	color: #e8eef5 !important;
	stroke: #e8eef5 !important;
}

/* -------- Slim footer (owner INBOX #436.11, 2026-11-03; was phones only, #355.6/.7): every page, every width, ends with
   the two-line row printed by fsf_render_footer() (inc/fsf-template-parts.php). The section links are in the menu. -------- */
/* A plain line, exactly as the home closing slide's row: no background, border or box of its own (it may sit inside a
   slide, e.g. the Medicals closing slide); only the 24 px padding (+ the safe area) that ends the page. */
.fsf-footer-compact {
	display: block;
	padding: 24px 16px calc(24px + env(safe-area-inset-bottom, 0px));
	background: none;
	border: 0;
	text-align: center;
	font-family: 'DM Sans', sans-serif;
	font-size: 13px;
	line-height: 1.7;
	color: #7d93ad;
}
.fsf-footer-compact__line { margin: 0; }
.fsf-footer-compact__line + .fsf-footer-compact__line { margin-top: 4px; }
html body .fsf-footer-compact a { color: #7d93ad; text-decoration: none; -webkit-tap-highlight-color: transparent; }
html body .fsf-footer-compact a:active,
html body .fsf-footer-compact a:focus-visible { color: #ffffff; }
@media (hover: hover) and (pointer: fine) { html body .fsf-footer-compact a:hover { color: #ffffff; } }
html body .fsf-footer-compact a:focus-visible { outline: 2px solid #e8a020; outline-offset: 2px; border-radius: 2px; }
@media (max-width: 767px) {
	/* #355.6: the old section-links footer / legal bar never show on phones (no longer printed since #436.11) */
	.fsf-footer-nav,
	.fsf-footer-legal { display: none !important; }
}
