/* /aviation-scholarships/ hub slides at every width: owner INBOX #468 (phones) + #489 (tablets / desktop: the same
   slides, order and copy, laid out for width). Markup: inc/fsf-scholarships-phone.php; reveal:
   assets/js/fsf-scholarships-phone.js; slides, side-scroll row and play-in timing: avi-shared.css (.avs-panel--slide /
   --first, .avs-hscroll, [data-avs-in]); coverflow + pointer tilt: assets/js/avs-coverflow.js; the green button:
   avs-buttons.css (.avs-btn--green).
   One accent: Scholarships green #8fdc6f ("GREEN.", the tracked count, the category cards' band + icon, the open FAQ
   chevron; the soft-lift green button). No coloured outlines; gradients only on the cards' colour band (the Schools hub
   card treatment) and the shared card / button surfaces.
   Desktop (>= 768 px): slides exactly the window under the header (#453), 1200 px content, slide assist (#454). */

.fss-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
body .fss-results:not(.has-filter) { display: none !important; } /* the full list shows after a search or with filters in the URL */
body .fss-results { scroll-margin-top: 64px; }

/* a flex column, so the shared slide rules (avi-shared.css) can centre the content / place the first slide at ~45 %;
   where those rules don't apply (short phones, landscape, short windows) it is sized to its content */
.fss-stage { display: flex; flex-direction: column; box-sizing: border-box; text-align: center; font-family: 'DM Sans', sans-serif; color: #e8eef5; }
.fss-stage.avs-panel { padding: 40px 16px 32px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); } /* subtle slide edge, neutral */
.fss-s1.avs-panel { margin-top: 8px; }
.fss-h2 { margin: 0 0 12px; padding: 0; border: 0; color: #fff; font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: 40px; line-height: 1; letter-spacing: .02em; text-transform: uppercase; }
.fss-sub { margin: 18px auto 0; max-width: 340px; color: #94a7be; font-size: 16px; line-height: 1.5; }
.fss-sub--sm { margin: 0 auto 20px; font-size: 15px; }
.fss-quiet { display: inline-flex; align-items: center; min-height: 28px; color: #7d93ad !important; font-size: 13px; text-decoration: none !important; }
.fss-quiet:hover, .fss-quiet:focus-visible { color: #e8eef5 !important; }
.fss-stage a:focus-visible, .fss-stage summary:focus-visible, .fss-results a:focus-visible { outline: 2px solid #e8a020; outline-offset: 2px; }

/* ── Slide 1: hero ── */
.fss-s1.avs-panel { position: relative; overflow: hidden; }
.fss-eyebrow { margin: 0 0 16px; color: #7d93ad; font-family: 'JetBrains Mono', monospace; font-size: 11px; line-height: 1.5; letter-spacing: .24em; text-transform: uppercase; }
/* "LET'S FIND YOU" ~ 7.1 em in Bebas: ~58 px, never wider than the screen */
.fss-h1 { margin: 0; color: #fff; font-family: 'Bebas Neue', sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: .02em;
	font-size: min(64px, calc((100vw - 48px) / 6)); line-height: .95; }
.fss-h1 > span { display: block; }
.fss-green, .fss-n { color: #8fdc6f; }
.fss-n { font-weight: 600; }
.fss-search { position: relative; width: 100%; margin: 26px auto 0; text-align: left; }
.fss-search-icon { position: absolute; left: 18px; top: 19px; color: #e8eef5; pointer-events: none; }
body .fss-search input.fss-input[type="search"] {
	display: block; width: 100%; height: 58px; margin: 0; box-sizing: border-box; padding: 0 16px 0 50px !important;
	background: #0c1a30 !important; border: 1px solid #2a4266 !important; border-radius: 12px !important; box-shadow: none !important;
	color: #fff !important; font-family: 'DM Sans', sans-serif; font-size: 17px; -webkit-appearance: none; appearance: none; transition: border-color .15s;
}
body .fss-search input.fss-input[type="search"]::placeholder { color: #7d93ad !important; opacity: 1; }
body .fss-search input.fss-input[type="search"]:focus { outline: none; border-color: #7d93ad !important; } /* neutral focus (#464) */
/* typed examples (assets/js/avi-typed.js) */
.fss-search .avi-type { position: absolute; left: 50px; right: 16px; top: 0; bottom: 0; display: none; align-items: center; pointer-events: none;
	color: #7d93ad; font-size: 17px; white-space: nowrap; overflow: hidden; }
.fss-search .avi-type.is-on { display: flex; }
.fss-search .avi-type-caret { display: inline-block; width: 2px; height: 20px; margin-left: 2px; background: #94a7be; animation: fss-caret 1.05s steps(1) infinite; }
@keyframes fss-caret { 50% { opacity: 0; } }
/* static chevron at the bottom of the screen visible on load (as the home video's, #392): phones only */
.fss-cue { display: none; }
/* the ticker along the hero's top inside edge, all grey (as the Medicals NOTAM band) */
.fss-s1 .fs-atis-band[data-section="scholarships"] { position: absolute; top: 0; left: 0; right: 0; width: auto; margin: 0;
	background: rgba(255, 255, 255, .02); border: 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.fss-s1 .fs-atis-band[data-section="scholarships"] .fs-atis-inner { padding: 0 16px; }
.fss-s1 .fs-atis-band[data-section="scholarships"] .fs-atis-chip { color: #7d93ad !important; border-color: #2a4266 !important; }
.fss-s1 .fs-atis-band[data-section="scholarships"] .fs-atis-chip *,
.fss-s1 .fs-atis-band[data-section="scholarships"] .fs-ticker-track,
.fss-s1 .fs-atis-band[data-section="scholarships"] .fs-ticker-track *,
.fss-s1 .fs-atis-band[data-section="scholarships"] a.fs-ticker-item { color: #7d93ad !important; }
.fss-s1 .fs-atis-band[data-section="scholarships"] a.fs-ticker-item:hover { color: #e8eef5 !important; }

/* ── Finder slide (#497): one question at a time; choices neutral, selected = solid gold with navy text (guide
   "selected gold" rule, the soft-lift gold fill); a thin progress line; Back / Start over; the live count ── */
.fss-sf-side { text-align: left; }
.fss-sf .fss-h2 { text-align: center; }
.fss-quiz { position: relative; margin-top: 8px; overflow-x: clip; } /* the next question slides in from 40 px right: no sideways page scroll */
.fss-q-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.fss-q-n { color: #7d93ad; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.fss-q-n b { font-weight: 600; color: #e8eef5; }
.fss-bars { display: flex; gap: 6px; }
.fss-bars i { display: block; width: 24px; height: 3px; border-radius: 2px; background: #1f3354; transition: background .3s; }
.fss-bars i.is-on { background: #e8eef5; }
.fss-q { margin: 0; padding: 0; border: 0; min-width: 0; }
.fss-q[hidden] { display: none; }
.fss-q-t { display: block; margin: 0 0 14px; padding: 0; color: #fff; font-size: 20px; font-weight: 700; line-height: 1.3; }
.fss-q-t span { display: block; margin-top: 4px; color: #94a7be; font-size: 14px; font-weight: 400; }
.fss-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fss-grid--1 { grid-template-columns: 1fr; }
.fss-tile { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; box-sizing: border-box; width: 100%; min-height: 56px; margin: 0;
	padding: 10px 14px; background: #0f1e38 !important; border: 1px solid #2a4266 !important; border-radius: 12px !important; box-shadow: none !important;
	color: #e8eef5 !important; font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 600; line-height: 1.25; text-align: left; cursor: pointer;
	transition: border-color .15s, background-color .15s; -webkit-tap-highlight-color: transparent; }
.fss-tile--wide { min-height: 72px; }
.fss-tile--wide b { font-size: 16px; font-weight: 700; }
.fss-tile--wide span { margin-top: 3px; color: #94a7be; font-size: 13px; font-weight: 400; }
.fss-tile--span { grid-column: 1 / -1; }
@media (hover: hover) and (pointer: fine) { .fss-tile:not(.is-sel):hover { border-color: #7d93ad !important; } }
.fss-tile.is-sel { background: linear-gradient(to bottom, #eeae36, #e8a020 70%) !important; border-color: #a8700f !important; border-top-color: #eeae36 !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), 0 2px 6px rgba(0, 0, 0, .4) !important; color: #1a1205 !important; }
.fss-tile.is-sel span { color: #3a2a0a; }
.fss-tile:focus-visible { outline: 2px solid #e8eef5; outline-offset: 2px; }
.fss-q.is-slide { animation: fss-slide .45s cubic-bezier(.33, 1, .68, 1) both; }
@keyframes fss-slide { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.fss-q-nav { display: flex; justify-content: space-between; gap: 12px; min-height: 28px; margin: 10px 0 0; }
.fss-q-nav button.fss-quiet { padding: 0; background: none !important; border: 0 !important; box-shadow: none !important; cursor: pointer; font-family: 'DM Sans', sans-serif; }
.fss-q-nav button[hidden] { display: none; }
.fss-count { display: flex; align-items: baseline; gap: 10px; margin: 14px 0 0; padding-top: 14px; border-top: 1px solid #16294a; color: #94a7be; font-size: 15px; }
.fss-count b { color: #8fdc6f; font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: 44px; line-height: .9; }
.fss-count b:empty { display: none; }
.fss-count b { line-height: 1; }
.fss-sf.is-done .fss-count { border-top: 0; padding-top: 0; margin-top: 18px; } /* clear of Back / Start over (the big number covered them) */
.fss-q-nav { position: relative; z-index: 1; }
.fss-sf.is-done .fss-count b { font-size: 64px; }
.fss-sf.is-done .fss-count span { color: #e8eef5; font-size: 17px; font-weight: 600; }
.fss-restored { margin: 10px 0 0; color: #7d93ad; font-size: 13px; }
.fss-restored[hidden] { display: none; }
.fss-restored button.fss-quiet { padding: 0; background: none !important; border: 0 !important; cursor: pointer; text-decoration: underline !important; }
.fss-sf-res { display: none; }
.fss-sf.is-done .fss-sf-res { display: block; margin-top: 18px; text-align: center; }
.fss-sf.is-done.is-none .fss-sf-res::before { content: "No scholarship matches every answer. Try Back, or Anywhere in Canada."; display: block; padding: 12px 0; color: #94a7be; font-size: 15px; }
.fss-sf-cards .avs-hscroll__item > .fss-card { width: 100%; box-sizing: border-box; text-align: left; }
.fss-sf-row .avs-hscroll__dot.is-on { background: #e8eef5; }
.fss-sf-all[hidden] { display: none; }
.fss-sf .fss-sf-all { display: inline-flex; gap: .3em; }
.fss-sf .fss-sf-all[hidden] { display: none; }

/* ── Search / filter results head (top of the list) ── */
.fss-qhead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin: 0 0 16px; text-align: left; }
.fss-qhead-t { margin: 0; color: #e8eef5; font-size: 15px; line-height: 1.45; }
.fss-qhead-t b { font-weight: 700; }

/* ── Slide 2: next deadlines (the list's own card markup in the shared side-scroll row) ── */
.fss-hscroll .avs-hscroll__item > .fss-card { width: 100%; box-sizing: border-box; text-align: left; }
/* equal, calm cards; full text on the list. flex: none, or the inline flex: 1 stretches the clamped box and the 5th line
   shows under the ellipsis; the deadline row keeps its place at the card bottom (its own margin-top: auto) */
.fss-card .fss-card-d { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; flex: none !important; }
.fss-hscroll .avs-hscroll__dot.is-on, .fss-cf-row .avs-hscroll__dot.is-on { background: #e8eef5; }
.fss-more { display: inline-flex; align-items: center; min-height: 44px; margin: 10px auto 0; color: #e8eef5 !important; font-size: 15px; font-weight: 600; text-decoration: none !important; }
.fss-more:hover { color: #fff !important; }

/* ── Slide 3: categories = the Schools hub card (colour band at the top fading into navy, line icon drawn in), green ── */
.fss-cf-row { margin-top: 8px; }
.fss-cf-row .avs-hscroll__item { perspective: 900px; }
.fss-cf { display: flex; flex-direction: column; width: 100%; overflow: hidden; box-sizing: border-box; border: 1px solid rgba(255, 255, 255, .07); border-radius: 18px;
	background: #13223f; color: #e8eef5; text-decoration: none !important; text-align: center; transform-origin: 50% 50%; will-change: transform, opacity;
	transition: box-shadow .4s ease; -webkit-tap-highlight-color: transparent; }
.fss-cf.is-centre { box-shadow: 0 18px 44px rgba(0, 0, 0, .5), 0 4px 12px rgba(0, 0, 0, .35); }
/* the band's paint (card colour at the top fading into the navy body) and the icon colour = the shared #487 / #498
   rule in avs-card.css, from each card's inline --avs-cf-rgb */
.fss-cf-band { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; height: clamp(130px, 22svh, 180px); }
.fss-cf-ic { display: block; width: 88px; height: 88px; } /* #499: 88 px */
.fss-cf-body { display: flex; flex-direction: column; align-items: center; flex: 1 1 auto; gap: 8px; box-sizing: border-box; padding: 16px 18px 22px; }
.fss-cf-t { color: #fff; font-size: 20px; font-weight: 700; line-height: 1.25; }
.fss-cf-d { color: #94a7be; font-size: 15px; line-height: 1.4; }
.fss-cf:focus-visible { outline: 2px solid #e8a020; outline-offset: 2px; }
.fss-prov { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 8px; margin: 18px 0 0; color: #7d93ad; font-size: 13px; }
.fss-prov > span:first-child { flex: 0 0 100%; } /* "By province:" on its own line, the four links on one line under it */
.fss-prov a { display: inline-flex; align-items: center; min-height: 32px; color: #c8d8e8 !important; text-decoration: none !important; }
.fss-prov a:hover { color: #fff !important; }

/* ── Slide 4: questions (#465 row style) + the footer at the slide's bottom ── */
.fss-s4.avs-panel { justify-content: flex-start; padding-bottom: 24px; margin-bottom: 0; }
.fss-s4-in { margin-top: auto; }
.fss-faq { margin: 8px 0 0; text-align: left; }
.fss-faq-i { border-bottom: 1px solid rgba(255, 255, 255, .08); }
.fss-faq-i:first-child { border-top: 1px solid rgba(255, 255, 255, .08); }
.fss-faq-i > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 12px 0;
	color: #f8f9fc; font-size: 16px; font-weight: 600; line-height: 1.4; -webkit-tap-highlight-color: transparent; }
.fss-faq-i > summary::-webkit-details-marker { display: none; }
.fss-faq-i > summary::after { content: ""; flex: 0 0 auto; width: 8px; height: 8px; border-right: 2px solid #7d93ad; border-bottom: 2px solid #7d93ad; transform: rotate(45deg);
	margin: -4px 4px 0 0; transition: transform .15s ease, border-color .15s ease; }
.fss-faq-i[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; border-color: #8fdc6f; }
.fss-faq-i > p { margin: 0 0 18px; color: #c8d8e8; font-size: 15px; line-height: 1.7; }
.fss-s4-act { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 24px; }
.fss-s4-act .avs-btn--green { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 100%; max-width: 360px; text-decoration: none !important; }
.fss-close-foot { margin-top: auto; padding-top: 40px; }
.fss-close-foot .fsf-footer-compact,
.fss-close-foot .fsf-footer-legal { background: transparent !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important;
	margin: 0 !important; padding: 0 !important; max-width: none !important; width: auto !important; }

/* ════════ Phones (< 768 px) ════════ */
@media (max-width: 767.98px) {
	.fss-cue { display: block; position: absolute; left: 50%; top: calc(100svh - var(--avs-hdr-h, 56px) - 8px - 40px); width: 22px; height: 22px; margin-left: -11px; color: rgba(232, 238, 245, .6); pointer-events: none; }
	.fss-cue svg { display: block; }
}
@media (max-width: 767.98px) and (max-height: 700px) {
	.fss-stage.avs-panel:not(.fss-s1) { padding-top: 24px; padding-bottom: 20px; }
	.fss-cf-band { height: 120px; }
	.fss-cf-ic { width: 72px; height: 72px; }
	.fss-faq-i > summary { min-height: 50px; padding: 10px 0; }
}
/* where the first-slide rule is off (short screens, landscape) the hero is sized to its content: clear the ticker band */
@media (max-width: 767.98px) and (max-height: 599.98px), (max-width: 767.98px) and (orientation: landscape) {
	.fss-s1.avs-panel { padding-top: 72px; }
	.fss-cue { display: none; }
}
@media (max-width: 359.98px) {
	.fss-eyebrow { letter-spacing: .12em; }
	.fss-faq-i > summary { font-size: 15px; }
}

/* ════════ Tablets + desktop (>= 768 px): the same slides laid out for width ════════ */
@media (min-width: 768px) {
	.fss-stage.avs-panel { margin: 0 10px 10px; padding: clamp(40px, 6vh, 72px) max(32px, calc((100% - 1200px) / 2)); }
	.fss-s1.avs-panel { margin-top: 10px; padding-top: 72px; } /* 44 px band + room */
	.fss-stage > * { width: 100%; max-width: 1200px; margin-left: auto; margin-right: auto; box-sizing: border-box; }
	.fss-s1 .fs-atis-band[data-section="scholarships"] { max-width: none; }
	.fss-s1 .fs-atis-band[data-section="scholarships"] .fs-atis-inner { padding: 0 28px; }
	.fss-eyebrow { font-size: 12px; margin-bottom: 20px; }
	.fss-h1 { font-size: clamp(72px, 7vw, 112px); }
	.fss-sub { max-width: 640px; margin-top: 24px; font-size: 19px; }
	.fss-search { max-width: 720px; margin-top: 36px; }
	.fss-h2 { font-size: clamp(48px, 4.2vw, 64px); margin-bottom: 14px; }
	.fss-sub--sm { max-width: 640px; margin: 0 auto 32px; font-size: 17px; }

	/* Search / filter results: the list in the 1200 px column */
	body .fss-results.has-filter { max-width: 1200px; margin: 0 auto; padding: 32px max(32px, calc((100% - 1200px) / 2)) 48px !important; box-sizing: content-box; }

	/* Finder (#497): questions + live count on the left, the matches (2 x 2, updated live) + See all on the right */
	.fss-sf.avs-panel { padding-top: clamp(28px, 4vh, 56px); padding-bottom: clamp(28px, 4vh, 56px); } /* the 8 training choices fit 900 px windows */
	.fss-sf .fss-tile { min-height: 50px; }
	.fss-sf .fss-tile--wide { min-height: 68px; }
	.fss-sf-grid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); column-gap: 48px; align-items: center; text-align: left; }
	.fss-sf .fss-h2 { text-align: left; }
	.fss-sf .fss-sf-res, .fss-sf.is-done .fss-sf-res { display: block; margin-top: 0; text-align: center; }
	.fss-sf-cards.avs-hscroll__track { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--avs-card-gap, 12px); }
	.fss-sf-cards .fss-card .fss-card-d { -webkit-line-clamp: 3; }
	.fss-sf.is-done .fss-count b { font-size: 72px; }
	.fss-sf.is-none .fss-sf-res::before { content: "No scholarship matches every answer. Try Back, or Anywhere in Canada."; display: block; padding: 40px 0; color: #94a7be; font-size: 16px; } /* the empty state */

	/* Slide 2: a row of 4 cards (tablets 3) + See all */
	.fss-hscroll .avs-hscroll__track { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--avs-card-gap, 12px); }
	.fss-hscroll .avs-hscroll__item:nth-child(n+5) { display: none; }
	.fss-stage > .fss-more { width: auto; align-self: center; margin-top: 24px; }

	/* Slide 3: 3 x 2 cards, tilt toward the pointer + lift */
	.fss-cf-row { margin-top: 20px; }
	.fss-cf-row .avs-hscroll__track { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--avs-card-gap, 12px); }
	.fss-cf-band { height: clamp(120px, 19vh, 220px); } /* taller windows: taller bands, so the grid fills the slide */
	.fss-cf-body { padding: 18px 22px 24px; }
	.fss-cf-t { font-size: 22px; }
	.fss-prov { margin-top: 28px; font-size: 14px; }
	.fss-prov > span:first-child { flex: 0 0 auto; } /* one line on desktop */

	/* Slide 4: rows in a 760 px reading column, the button centred, the footer at the slide's bottom */
	.fss-s4.avs-panel { padding-bottom: 24px; }
	.fss-faq { max-width: 760px; margin: 12px auto 0; }
	.fss-s4-act { margin-top: 32px; }
	.fss-s4-act .avs-btn--green { width: auto; min-width: 280px; }
	.fss-close-foot { padding-top: 56px; }
	.fss-close-foot .fsf-footer-nav { display: none !important; }
}
@media (min-width: 768px) and (max-width: 1023.98px) {
	.fss-sf-grid { grid-template-columns: 1fr; row-gap: 28px; }
	.fss-hscroll .avs-hscroll__track { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.fss-hscroll .avs-hscroll__item:nth-child(n+4) { display: none; }
	.fss-cf-row .avs-hscroll__track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* first slide = the window under the header minus its 10 px top gap, so the next slide starts just below the fold */
@media (min-width: 768px) and (min-height: 640px) {
	.fss-s1.avs-panel--first { min-height: calc(100vh - var(--avs-header-h, 56px) - 10px); min-height: calc(100dvh - var(--avs-header-h, 56px) - 10px); }
}
@media (hover: hover) and (pointer: fine) and (min-width: 768px) and (prefers-reduced-motion: no-preference) {
	.fss-cf { transition: transform .18s ease-out, box-shadow .3s ease; }
	.fss-cf:hover { transform: perspective(800px) rotateX(var(--fss-rx, 0deg)) rotateY(var(--fss-ry, 0deg)) translateY(-6px); box-shadow: 0 12px 40px rgba(var(--avs-cf-rgb, 143, 220, 111), .15); }
	.fss-cf:hover .fss-cf-t { color: rgb(var(--avs-cf-rgb, 143, 220, 111)); }
}
@media (prefers-reduced-motion: reduce) {
	.fss-faq-i > summary::after { transition: none; }
	.fss-search .avi-type-caret { animation: none; }
}
