/* ==========================================================================
   Buttons, "soft lift" (owner INBOX #473, replaced 2026-11-04 00:27Z by "#473 REPLACED" = M2 soft lift;
   Daily Log 2026-11-03T22:30Z "buttons-soft-lift"; AVCENTRAL-DESIGN-GUIDE.md > Buttons).
   ONE stylesheet, loaded on every front-end page after everything else (inc/avs-buttons.php).

   Four shared looks, one recipe:
     background linear-gradient(to bottom, SOFT, BASE 70%); 1px EDGE border, top edge SOFT;
     box-shadow inset 0 1px 0 rgba(255,255,255,SHINE), 0 2px 6px rgba(0,0,0,.4).
     .avs-btn--gold   main / primary action (max one per screen)
     .avs-btn--green  scholarships buttons only
     .avs-btn--blue   Medicals buttons only (main Medicals actions)
     .avs-btn--navy   every secondary / formerly hollow button (no outline)
   (.avs-btn--line, the #418 neutral outline, now renders as navy.)
   #486: the operator "About <operator>" toggle (.aop-about-btn) is a collapsed row like the #465 FAQ rows, not a button: not
   in these lists (avc-operator-detail.css styles it).
   Sizes: main (gold / green / blue) 60 px, 0 28 px, radius 12, Bebas 21 px .12em; secondary (navy) 50 px, 0 28 px,
   radius 10, DM Sans 15 px 600; pairs 12 px gap; compact 44-48 px (.avs-btn--compact, header "Post job",
   phone hero pairs, tight rows).
   States: hover brightness(1.06); press translateY(1px) without the drop shadow; .12s ease; reduced motion = no move.

   Existing templates are NOT restyled one by one (Hard Rule 14): their button classes are mapped onto the looks
   below in the GOLD / GREEN / BLUE / NAVY lists (section 1) and repeated once in the shared ALL list (section 2+).
   ":not(#avs-raised)" + !important: several section stylesheets style these buttons with !important or long
   body-class selectors; :not(#id) matches every element but adds ID weight, so this file wins without editing them.
   Only paint, edge, shadow, type and size are set, never display / position (except section 3), so each page's
   layout and responsive hiding stay as they are.

   NOT buttons (keep their own style): text links inside cards, pills, chips, filter controls (filter sheet
   "Show N" buttons, the Filters drawer button, switches), the Near me field button, pagination, the cookie banner
   (equal-weight Accept / Reject), the Medicals table row Map / Call buttons.
   ========================================================================== */

/* ---- 1. Tokens per look ------------------------------------------------------------------------------------- */

/* GOLD (main) */
html body :is(
	.avs-btn--gold,
	.fsf-hero-btn-primary,
	a.avijs-apply-cta-card__btn,
	.avijs-mbar a.avijs-mbar__apply,
	.aviju-sheet__bar a.aviju-sheetbar-apply, /* #515: the board phone job view bar */
	.avijl-btn-find,
	.ffs-btn-gold,
	.ffs-free-cta,
	.avipaj-btn:not(.avipaj-btn--outline),
	.guide-cta-btn,
	.guide-hub-cta-btn:not([href*="aviation-medical-examiner"]),
	.ftc-hero-cta,
	.avi-unsub-cta,
	.avi-contact-email-cta,
	.fsf-btn-enquiry,
	.avi-pay-cta.primary
):not(#avs-raised) {
	--avsb-base: #e8a020; --avsb-soft: #eeae36; --avsb-edge: #a8700f; --avsb-shine: rgba(255, 255, 255, .32);
	--avsb-text: #1a1205;
}

/* GREEN (scholarships only) */
html body :is(
	.avs-btn--green
):not(#avs-raised) {
	--avsb-base: #4fb07f; --avsb-soft: #5fbd8c; --avsb-edge: #2e7a53; --avsb-shine: rgba(255, 255, 255, .28);
	--avsb-text: #06140c;
}

/* BLUE (Medicals only) */
html body :is(
	.avs-btn--blue,
	.fsm-btn--blue,
	.cv2-btn-main,
	.came-btn-primary,
	.guide-hub-cta-btn[href*="aviation-medical-examiner"]
):not(#avs-raised) {
	--avsb-base: #5aa9ff; --avsb-soft: #6db4ff; --avsb-edge: #2f73c4; --avsb-shine: rgba(255, 255, 255, .32);
	--avsb-text: #061226;
}

/* main size (gold / green / blue) */
html body :is(
	.avs-btn--gold, .fsf-hero-btn-primary, a.avijs-apply-cta-card__btn, .avijs-mbar a.avijs-mbar__apply, .aviju-sheet__bar a.aviju-sheetbar-apply, .avijl-btn-find,
	.ffs-btn-gold, .ffs-free-cta, .avipaj-btn:not(.avipaj-btn--outline), .guide-cta-btn, .guide-hub-cta-btn, .ftc-hero-cta,
	.avi-unsub-cta, .avi-contact-email-cta, .fsf-btn-enquiry, .avi-pay-cta.primary,
	.avs-btn--green,
	.avs-btn--blue, .fsm-btn--blue, .cv2-btn-main, .came-btn-primary
):not(#avs-raised) {
	--avsb-h: 60px;
	--avsb-pad: 0 28px;
	--avsb-r: 12px;
	--avsb-font: 400 21px/1 'Bebas Neue', 'DM Sans', sans-serif;
	--avsb-ls: .12em;
	--avsb-case: uppercase;
}

/* NAVY (every formerly hollow / outline / secondary button) */
html body :is(
	.avs-btn--navy,
	.avs-btn--line,
	.fsf-hero-btn-outline,
	.avc-mhdr-post,
	.avijl-btn-post-job,
	.avijs-hpost,
	.avc-smenu a.avc-smenu__btn,
	.aviju-pager a.aviju-loadmore,
	.aviju-pager a.aviju-pager__newer,
	.avijs-backbtn,
	.avijs-card .avijs-share--card,
	.avijs-card a.avijs-origad,
	.avijs-mbar button.avijs-mbar__share,
	.aviju-sheet__bar button.aviju-sheetbar-share, /* #515 */
	.avijs-empcard__btn,
	.avijl-btn-getstarted,
	.avijs-btn-getstarted,
	.fss-btn,
	.fsm-btn:not(.fsm-btn--blue),
	.cv2-btn-alt,
	.came-btn-secondary,
	.came-guides-btn,
	.aop-btn,
	.avipaj-btn--outline,
	.avid2b-btn-o,
	.avi-pay-close-btn,
	.avi-pay-cta:not(.primary)
):not(#avs-raised) {
	--avsb-base: #0f1f3a; --avsb-soft: #16294b; --avsb-edge: #1f3354; --avsb-shine: rgba(255, 255, 255, .10);
	--avsb-text: #ffffff;
	--avsb-h: 50px;
	--avsb-pad: 0 28px;
	--avsb-r: 10px;
	--avsb-font: 600 15px/1.2 'DM Sans', sans-serif;
	--avsb-ls: 0;
	--avsb-case: none;
}

/* ---- 2. The shared recipe (ALL list) ------------------------------------------------------------------------ */
html body :is(
	.avs-btn--gold, .fsf-hero-btn-primary, a.avijs-apply-cta-card__btn, .avijs-mbar a.avijs-mbar__apply, .aviju-sheet__bar a.aviju-sheetbar-apply, .avijl-btn-find,
	.ffs-btn-gold, .ffs-free-cta, .avipaj-btn, .guide-cta-btn, .guide-hub-cta-btn, .ftc-hero-cta,
	.avi-unsub-cta, .avi-contact-email-cta, .fsf-btn-enquiry, .avi-pay-cta,
	.avs-btn--green, .avs-btn--blue, .fsm-btn, .cv2-btn-main, .came-btn-primary,
	.avs-btn--navy, .avs-btn--line, .fsf-hero-btn-outline, .avc-mhdr-post, .avijl-btn-post-job, .avijs-hpost,
	.avc-smenu a.avc-smenu__btn, .aviju-pager a.aviju-loadmore, .aviju-pager a.aviju-pager__newer, .avijs-backbtn,
	.avijs-card .avijs-share--card, .avijs-card a.avijs-origad, .avijs-mbar button.avijs-mbar__share, .aviju-sheet__bar button.aviju-sheetbar-share, .avijs-empcard__btn,
	.avijl-btn-getstarted, .avijs-btn-getstarted, .fss-btn, .cv2-btn-alt, .came-btn-secondary,
	.came-guides-btn, .aop-btn, .avid2b-btn-o, .avi-pay-close-btn
):not(#avs-raised) {
	box-sizing: border-box;
	-webkit-appearance: none;
	appearance: none;
	align-items: center;
	justify-content: center;
	text-align: center;
	height: auto !important;
	min-height: var(--avsb-h) !important;
	padding: var(--avsb-pad) !important;
	background: linear-gradient(to bottom, var(--avsb-soft), var(--avsb-base) 70%) !important;
	border: 1px solid var(--avsb-edge) !important;
	border-top-color: var(--avsb-soft) !important;
	border-radius: var(--avsb-r) !important;
	box-shadow: inset 0 1px 0 var(--avsb-shine), 0 2px 6px rgba(0, 0, 0, .4) !important;
	color: var(--avsb-text) !important;
	font: var(--avsb-font) !important;
	letter-spacing: var(--avsb-ls) !important;
	text-transform: var(--avsb-case) !important;
	text-decoration: none !important;
	text-shadow: none !important;
	filter: none;
	transform: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: transform .12s ease, box-shadow .12s ease, filter .12s ease !important;
}
/* the label keeps the button's colour (some buttons hold spans / icons coloured by their old style) */
html body :is(
	.avs-btn--gold, .fsf-hero-btn-primary, a.avijs-apply-cta-card__btn, .avijs-mbar a.avijs-mbar__apply, .aviju-sheet__bar a.aviju-sheetbar-apply, .avijl-btn-find,
	.ffs-btn-gold, .ffs-free-cta, .avipaj-btn, .guide-cta-btn, .guide-hub-cta-btn, .ftc-hero-cta,
	.avi-unsub-cta, .avi-contact-email-cta, .fsf-btn-enquiry, .avi-pay-cta,
	.avs-btn--green, .avs-btn--blue, .fsm-btn, .cv2-btn-main, .came-btn-primary,
	.avs-btn--navy, .avs-btn--line, .fsf-hero-btn-outline, .avc-mhdr-post, .avijl-btn-post-job, .avijs-hpost,
	.avc-smenu a.avc-smenu__btn, .aviju-pager a.aviju-loadmore, .aviju-pager a.aviju-pager__newer, .avijs-backbtn,
	.avijs-card .avijs-share--card, .avijs-card a.avijs-origad, .avijs-mbar button.avijs-mbar__share, .aviju-sheet__bar button.aviju-sheetbar-share, .avijs-empcard__btn,
	.avijl-btn-getstarted, .avijs-btn-getstarted, .fss-btn, .cv2-btn-alt, .came-btn-secondary,
	.came-guides-btn, .aop-btn, .avid2b-btn-o, .avi-pay-close-btn
):not(#avs-raised) :is(span, svg, i) {
	color: inherit !important;
}

/* hover (mouse only): a touch brighter; the old hover paints are cancelled */
@media (hover: hover) and (pointer: fine) {
	html body :is(
		.avs-btn--gold, .fsf-hero-btn-primary, a.avijs-apply-cta-card__btn, .avijs-mbar a.avijs-mbar__apply, .aviju-sheet__bar a.aviju-sheetbar-apply, .avijl-btn-find,
		.ffs-btn-gold, .ffs-free-cta, .avipaj-btn, .guide-cta-btn, .guide-hub-cta-btn, .ftc-hero-cta,
		.avi-unsub-cta, .avi-contact-email-cta, .fsf-btn-enquiry, .avi-pay-cta,
		.avs-btn--green, .avs-btn--blue, .fsm-btn, .cv2-btn-main, .came-btn-primary,
		.avs-btn--navy, .avs-btn--line, .fsf-hero-btn-outline, .avc-mhdr-post, .avijl-btn-post-job, .avijs-hpost,
		.avc-smenu a.avc-smenu__btn, .aviju-pager a.aviju-loadmore, .aviju-pager a.aviju-pager__newer, .avijs-backbtn,
		.avijs-card .avijs-share--card, .avijs-card a.avijs-origad, .avijs-mbar button.avijs-mbar__share, .aviju-sheet__bar button.aviju-sheetbar-share, .avijs-empcard__btn,
		.avijl-btn-getstarted, .avijs-btn-getstarted, .fss-btn, .cv2-btn-alt, .came-btn-secondary,
		.came-guides-btn, .aop-btn, .avid2b-btn-o, .avi-pay-close-btn
	):not(#avs-raised):hover,
	html body .avijs-empcard__main:hover .avijs-empcard__btn:not(#avs-raised) {
		filter: brightness(1.06);
		transform: none;
		background: linear-gradient(to bottom, var(--avsb-soft), var(--avsb-base) 70%) !important;
		color: var(--avsb-text) !important;
		border-color: var(--avsb-edge) !important;
		border-top-color: var(--avsb-soft) !important;
	}
}

/* press: 1 px down, the drop shadow goes */
html body :is(
	.avs-btn--gold, .fsf-hero-btn-primary, a.avijs-apply-cta-card__btn, .avijs-mbar a.avijs-mbar__apply, .aviju-sheet__bar a.aviju-sheetbar-apply, .avijl-btn-find,
	.ffs-btn-gold, .ffs-free-cta, .avipaj-btn, .guide-cta-btn, .guide-hub-cta-btn, .ftc-hero-cta,
	.avi-unsub-cta, .avi-contact-email-cta, .fsf-btn-enquiry, .avi-pay-cta,
	.avs-btn--green, .avs-btn--blue, .fsm-btn, .cv2-btn-main, .came-btn-primary,
	.avs-btn--navy, .avs-btn--line, .fsf-hero-btn-outline, .avc-mhdr-post, .avijl-btn-post-job, .avijs-hpost,
	.avc-smenu a.avc-smenu__btn, .aviju-pager a.aviju-loadmore, .aviju-pager a.aviju-pager__newer, .avijs-backbtn,
	.avijs-card .avijs-share--card, .avijs-card a.avijs-origad, .avijs-mbar button.avijs-mbar__share, .aviju-sheet__bar button.aviju-sheetbar-share, .avijs-empcard__btn,
	.avijl-btn-getstarted, .avijs-btn-getstarted, .fss-btn, .cv2-btn-alt, .came-btn-secondary,
	.came-guides-btn, .aop-btn, .avid2b-btn-o, .avi-pay-close-btn
):not(#avs-raised):active {
	transform: translateY(1px) !important;
	box-shadow: inset 0 1px 0 var(--avsb-shine) !important;
	background: linear-gradient(to bottom, var(--avsb-soft), var(--avsb-base) 70%) !important;
	color: var(--avsb-text) !important;
}

/* reduced motion: no movement, no transition */
@media (prefers-reduced-motion: reduce) {
	html body :is(
		.avs-btn--gold, .fsf-hero-btn-primary, a.avijs-apply-cta-card__btn, .avijs-mbar a.avijs-mbar__apply, .aviju-sheet__bar a.aviju-sheetbar-apply, .avijl-btn-find,
		.ffs-btn-gold, .ffs-free-cta, .avipaj-btn, .guide-cta-btn, .guide-hub-cta-btn, .ftc-hero-cta,
		.avi-unsub-cta, .avi-contact-email-cta, .fsf-btn-enquiry, .avi-pay-cta,
		.avs-btn--green, .avs-btn--blue, .fsm-btn, .cv2-btn-main, .came-btn-primary,
		.avs-btn--navy, .avs-btn--line, .fsf-hero-btn-outline, .avc-mhdr-post, .avijl-btn-post-job, .avijs-hpost,
		.avc-smenu a.avc-smenu__btn, .aviju-pager a.aviju-loadmore, .aviju-pager a.aviju-pager__newer, .avijs-backbtn,
		.avijs-card .avijs-share--card, .avijs-card a.avijs-origad, .avijs-mbar button.avijs-mbar__share, .aviju-sheet__bar button.aviju-sheetbar-share, .avijs-empcard__btn,
		.avijl-btn-getstarted, .avijs-btn-getstarted, .fss-btn, .cv2-btn-alt, .came-btn-secondary,
		.came-guides-btn, .aop-btn, .avid2b-btn-o, .avi-pay-close-btn
	):not(#avs-raised),
	html body :is(.avs-btn--gold, .avs-btn--green, .avs-btn--blue, .avs-btn--navy, .avs-btn--line):not(#avs-raised):active {
		transition: none !important;
		transform: none !important;
	}
}

/* ---- 3. Layout helpers for the few buttons that were block / inline-block (text centred in the taller box) ---- */
/* never on a [hidden] button: these rules outweigh a page's own "[hidden] { display: none }" */
html body :is(.avs-btn--gold, .avs-btn--green, .avs-btn--blue, .avs-btn--navy):not([hidden]):not(#avs-raised) { display: inline-flex; gap: 8px; }
html body :is(.avijs-empcard__btn, .avijl-btn-find, .fsf-btn-enquiry):not([hidden]):not(#avs-raised) { display: flex; }
html body :is(.ffs-free-cta, .avipaj-btn, .guide-cta-btn):not([hidden]):not(#avs-raised) { display: inline-flex; }

/* ---- 4. Sizes: compact (44-48 px) and pairs ------------------------------------------------------------------
   These only change the --avsb-* tokens; the second :not(#avs-r2) lifts them above the token rules in section 1. */

/* compact, on request */
html body .avs-btn--compact:not(#avs-raised):not(#avs-r2) { --avsb-h: 48px; --avsb-pad: 0 20px; }

/* header "Post job" (phone header, jobs board header, job page header): compact 44 px at every width */
html body :is(.avc-mhdr-post, .avijl-btn-post-job, .avijs-hpost):not(#avs-raised):not(#avs-r2) {
	--avsb-h: 44px; --avsb-pad: 0 16px;
}
/* job page "Back to jobs": compact 44 px */
html body .avijs-backbtn:not(#avs-raised):not(#avs-r2) { --avsb-h: 44px; --avsb-pad: 0 18px; }
/* job page phone apply bar: compact gold 48 px + the share icon button 48 px */
html body .avijs-mbar a.avijs-mbar__apply:not(#avs-raised):not(#avs-r2) {
	--avsb-h: 48px; --avsb-pad: 0 18px;
}
html body .avijs-mbar button.avijs-mbar__share:not(#avs-raised):not(#avs-r2) { --avsb-h: 48px; --avsb-pad: 0 14px; }
/* #515 (Chris, 2026-11-04): the board's phone full-screen job view has its own bar (#aviju-sheet-bar, renderSheetBar() in
   avi-jobs-unified.js), which was not in these lists, so it kept the old light-blue outlined Apply and the outlined Share:
   compact gold "Apply now" (DM Sans sentence case) + navy "Share", 48 px */
html body .aviju-sheet__bar a.aviju-sheetbar-apply:not(#avs-raised):not(#avs-r2) { --avsb-h: 48px; --avsb-pad: 0 18px; flex: 1 1 auto; display: flex; }
html body .aviju-sheet__bar button.aviju-sheetbar-share:not(#avs-raised):not(#avs-r2) { --avsb-h: 48px; --avsb-pad: 0 18px; flex: 0 0 auto; display: inline-flex; }
/* CAME detail phone call bar ("Call …" / "Book online" + the second button): compact 48 px */
html body :is(.cv2-btn-main, .cv2-btn-alt):not(#avs-raised):not(#avs-r2) { --avsb-h: 48px; --avsb-pad: 0 16px; }
/* job page apply card: the label carries the employer name ("Apply on Harbour Air's site"), so a little tighter */
html body .avijs-card a.avijs-apply-cta-card__btn:not(#avs-raised):not(#avs-r2) { --avsb-pad: 0 24px; --avsb-ls: .08em; }
/* company profile card: its button sits inside the card link, full card width */
html body .avijs-empcard__btn:not(#avs-raised):not(#avs-r2) { --avsb-pad: 0 18px; }

/* pairs: same height, 12 px gap */
html body :is(.fsf-hero-buttons, .avs-btn-pair, .avc-smenu__btns):not(#avs-raised):not(#avs-r2) { gap: 12px !important; align-items: stretch; }
/* Schools hub hero pair ("Compare 154 schools" + "I'm a school →"): desktop both 60 px; the navy one follows the gold */
html body .fsf-hero-buttons > a.fsf-hero-btn-outline:not(#avs-raised):not(#avs-r2) { --avsb-h: 60px; }
html body .avc-smenu a.avc-smenu__btn:not(#avs-raised):not(#avs-r2) { --avsb-pad: 0 16px; }
/* pay carrier hero row ("Compare carriers" + operator profile + "Open … jobs"): a tight row, compact 48 px, same height */
html body .hero-ctas > .avi-pay-cta:not(#avs-raised):not(#avs-r2) { --avsb-h: 48px; --avsb-pad: 0 20px; }
html body .hero-ctas:not(#avs-raised):not(#avs-r2) { gap: 12px !important; }
/* school details hero pair ("Enquire now" gold + "View programs" navy, #508): one height, 50 px desktop / 48 px phones */
html body .fsf-hero-actions.avs-btn-pair > a:not(#avs-raised):not(#avs-r2) { --avsb-h: 50px; --avsb-pad: 0 24px; white-space: nowrap; }
@media (max-width: 767.98px) {
	html body .fsf-hero-actions.avs-btn-pair > a:not(#avs-raised):not(#avs-r2) { --avsb-h: 48px; --avsb-pad: 0 18px; }
}
/* /post-a-job/ sign-in: "Continue" sits beside the email field: the field's height (58 px), pair text */
html body #avipaj-signin-form .avipaj-btn:not(#avs-raised):not(#avs-r2) { --avsb-h: 58px; }

/* #473 add-on (Chris, 00:44Z): every PAIR and every COMPACT / phone-size button = DM Sans 16 px 600, sentence case,
   >= 16 px side padding, same height (gold / blue / green keep their colour). Bebas caps only for a standalone main
   button with room. Header "Post job" 15 px (tight). */
html body :is(
	.fsf-hero-buttons > a,
	.hero-ctas > .avi-pay-cta,
	.avs-btn-pair > a, .avs-btn-pair > button,
	.avs-btn--compact,
	.avijs-mbar a.avijs-mbar__apply,
	.aviju-sheet__bar a.aviju-sheetbar-apply,
	.cv2-btn-main, .cv2-btn-alt,
	#avipaj-signin-form .avipaj-btn,
	.ffs-nav-right .ffs-btn-gold,
	.avc-smenu a.avc-smenu__btn,
	.fsf-enquiry-form .fsf-btn-enquiry /* #503.5 (owner): school enquiry "Send enquiry", gold, DM Sans sentence case */
):not(#avs-raised):not(#avs-r2) {
	--avsb-font: 600 16px/1.2 'DM Sans', sans-serif;
	--avsb-ls: 0;
	--avsb-case: none;
}
html body :is(.avc-mhdr-post, .avijl-btn-post-job, .avijs-hpost):not(#avs-raised):not(#avs-r2) {
	--avsb-font: 600 15px/1.2 'DM Sans', sans-serif; --avsb-ls: 0; --avsb-case: none;
}

@media (max-width: 767.98px) {
	/* phone hero pair: compact 48 px, labels on one line; if both don't fit side by side with 16 px padding
	   (390 px: "Compare 154 schools" needs ~180 px) they stack, full width, same height (#473 add-on) */
	html body .fsf-hero-buttons > a:is(.fsf-hero-btn-primary, .fsf-hero-btn-outline):not(#avs-raised):not(#avs-r2) {
		--avsb-h: 48px; --avsb-pad: 0 16px; white-space: nowrap;
	}
	html body .fsf-hero-buttons:not(#avs-raised):not(#avs-r2) { grid-template-columns: minmax(0, 1fr) !important; }
	html body .avijs-card a.avijs-apply-cta-card__btn:not(#avs-raised):not(#avs-r2) { --avsb-pad: 0 16px; --avsb-font: 400 20px/1 'Bebas Neue', 'DM Sans', sans-serif; --avsb-ls: .06em; }
	html body .aviju-pager a.aviju-loadmore:not(#avs-raised):not(#avs-r2) { --avsb-pad: 0 24px; }
	/* /post-a-job/ on phones: the field and "Continue" stack; the button is compact 48 px */
	html body #avipaj-signin-form .avipaj-btn:not(#avs-raised):not(#avs-r2) { --avsb-h: 48px; }
}

/* ---- 5. Page bits that come with the buttons ---------------------------------------------------------------- */
/* Scholarships: "Scholarship guides" centred under "Aviation scholarship questions?" (#473) */
html body .fss-legacy-faq .avs-btn--green:not(#avs-raised):not(#avs-r2) { margin: 0 auto; }
