/* ==========================================================================
   Filter panel A, shared (owner INBOX #440 jobs design; #467 add-on 2026-11-03: the flight-school filters use it too).
   One look for every filter panel on the site: the raised 6A panel surface (.avi-fpanel), mono caps group labels, rows
   28 px (desktop) / 32 px (phone sheets), square 16 px boxes (gold fill + navy tick when on), mono counts.
   Used by: the jobs board (desktop sidebar + phone sheet; the jobs-only rules in avi-jobs-theme.css read these tokens) and
   the flight-school compare filters (desktop sidebar on /flight-schools/compare/, phone filter sheet on /flight-schools/).
   Change a value here, both follow. Layout / style only: no school data, text or tiers.
   ========================================================================== */
:root {
	--avi-fp-surface: linear-gradient(to bottom, #14294b, #0c1a30 45%);
	--avi-fp-border: #071224;
	--avi-fp-border-top: #2a4470;
	--avi-fp-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), inset 0 -2px 0 rgba(0, 0, 0, .35), 0 14px 30px rgba(0, 0, 0, .55), 0 3px 8px rgba(0, 0, 0, .4);
	--avi-fp-radius: 12px;
	--avi-fp-divider: #1f3354;
	--avi-fp-label-font: 500 11px/1 'JetBrains Mono', monospace;
	--avi-fp-label-ls: .18em;
	--avi-fp-label: #94a7be;
	--avi-fp-row-desk: 28px;
	--avi-fp-row-phone: 32px;
	--avi-fp-label-gap: 4px;
	--avi-fp-text: #cfd9e5;
	--avi-fp-text-on: #ffffff;
	--avi-fp-count: #7d93ad;
	--avi-fp-count-font: 500 12px/1 'JetBrains Mono', monospace;
	--avi-fp-box: 16px;
	--avi-fp-box-border: #3a5784;
	--avi-fp-gold: #e8a020;
	--avi-fp-tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23060f1e' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E");
}
/* the raised panel surface (jobs sidebar panel, jobs phone sheet panel, school sidebar, school phone sheet) */
.avi-fpanel {
	border-radius: var(--avi-fp-radius); overflow: hidden;
	background: var(--avi-fp-surface); border: 1px solid var(--avi-fp-border); border-top-color: var(--avi-fp-border-top);
	box-shadow: var(--avi-fp-shadow);
}

/* ── Flight schools, desktop filter column (/flight-schools/compare/) ── */
@media (min-width: 1024px) {
	/* #467 add-on 3 (23:42Z): no inner scroll. The row takes the panel's full height (every group shows in full), the map
	   column stretches to it (flush tops and bottoms, 12 px gaps), the count line + cards start below both; on short windows
	   the page scrolls. The map is told its new size (inc/fsf-homepage.php: invalidateSize on resize). */
	html body .fsf-top-row:has(> .fsf-homepage-sidebar.avi-fpanel) {
		height: auto !important; min-height: 0 !important; max-height: none !important; align-items: stretch !important;
	}
	html body .fsf-top-row .fsf-homepage-sidebar.avi-fpanel {
		box-sizing: border-box; height: auto !important; max-height: none !important; margin: 12px 0 12px 12px; padding: 12px 0 6px;
		overflow: visible !important;
	}
	html body .fsf-top-row:has(> .fsf-homepage-sidebar.avi-fpanel) > .fsf-map-panel {
		align-self: stretch; min-height: 460px; margin: 12px 12px 12px 12px; border: 1px solid #1f3354; border-radius: var(--avi-fp-radius); overflow: hidden;
	}
	/* province chips: 5 a row, 28 px; All Canada the same neutral chip; selected = a soft fill, no blue outline (#418) */
	html body .fsf-homepage-sidebar.avi-fpanel .fsf-prov-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin: 0 0 4px; padding: 0 8px; }
	html body .fsf-homepage-sidebar.avi-fpanel .fsf-prov-btn {
		box-sizing: border-box; height: var(--avi-fp-row-desk); padding: 0; line-height: 1; border-radius: 6px;
		background: rgba(255, 255, 255, .03); border: 1px solid #2a4266; color: var(--avi-fp-text);
	}
	html body .fsf-homepage-sidebar.avi-fpanel .fsf-prov-btn--all { display: block; width: calc(100% - 16px); margin: 0 8px; }
	html body .fsf-homepage-sidebar.avi-fpanel .fsf-prov-btn:hover { border-color: #3a557d; color: var(--avi-fp-text-on); }
	html body .fsf-homepage-sidebar.avi-fpanel .fsf-prov-btn.active { background: rgba(232, 238, 245, .12); border-color: #2a4266; color: var(--avi-fp-text-on); }
	html body .fsf-homepage-sidebar.avi-fpanel .fsf-prov-btn:focus-visible { outline: 2px solid #4fc3f7; outline-offset: 2px; }
	html body .fsf-homepage-sidebar.avi-fpanel .fsf-sb-section { margin: 0; padding: 0 12px 6px; border-bottom: 0; }
	html body .fsf-homepage-sidebar.avi-fpanel .fsf-sb-section + .fsf-sb-section { padding-top: 12px; border-top: 1px solid var(--avi-fp-divider); }
	html body .fsf-homepage-sidebar.avi-fpanel .fsf-sb-heading {
		margin: 0 0 var(--avi-fp-label-gap); padding: 0 8px; font: var(--avi-fp-label-font); letter-spacing: var(--avi-fp-label-ls);
		text-transform: uppercase; color: var(--avi-fp-label);
	}
	/* !important: assets/css/fsf-gp-overrides.css sets these with !important */
	html body .fsf-homepage-sidebar.avi-fpanel .fsf-filter-item {
		box-sizing: border-box; min-height: var(--avi-fp-row-desk) !important; height: var(--avi-fp-row-desk) !important; gap: 12px !important;
		padding: 0 8px !important; border-radius: 8px !important; background: transparent !important;
	}
	html body .fsf-homepage-sidebar.avi-fpanel .fsf-filter-item:hover { background: rgba(255, 255, 255, .03) !important; }
	html body .fsf-homepage-sidebar.avi-fpanel .fsf-filter-label { font: 400 15px/1.2 'DM Sans', sans-serif !important; color: var(--avi-fp-text) !important; }
	html body .fsf-homepage-sidebar.avi-fpanel .fsf-filter-item.checked .fsf-filter-label { color: var(--avi-fp-text-on) !important; font-weight: 400 !important; }
	html body .fsf-homepage-sidebar.avi-fpanel .fsf-filter-count { font: var(--avi-fp-count-font); color: var(--avi-fp-count); }
	html body .fsf-homepage-sidebar.avi-fpanel .fsf-filter-check {
		box-sizing: border-box; width: var(--avi-fp-box) !important; height: var(--avi-fp-box) !important; border-radius: 4px !important;
		border: 1.5px solid var(--avi-fp-box-border) !important; background: transparent !important;
	}
	html body .fsf-homepage-sidebar.avi-fpanel .fsf-filter-item.checked .fsf-filter-check {
		border: 1px solid var(--avi-fp-gold) !important; background: var(--avi-fp-gold) var(--avi-fp-tick) center / 11px 11px no-repeat !important;
	}
	html body .fsf-homepage-sidebar.avi-fpanel .fsf-filter-check.checked::after { content: none; }
}

/* ── Flight schools, phone filter sheet (the full-screen filter overlay on /flight-schools/) ── */
@media (max-width: 1023px) {
	html body .fsf-filter-overlay .fsf-fo-scroll.avi-fpanel { margin: 12px 16px; padding: 4px 12px 6px; overflow-x: hidden; overflow-y: auto; }
	html body .fsf-filter-overlay .fsf-fo-scroll.avi-fpanel .fsf-fo-section { margin: 0; padding: 8px 0 6px; border: 0; }
	html body .fsf-filter-overlay .fsf-fo-scroll.avi-fpanel .fsf-fo-section + .fsf-fo-section { border-top: 1px solid var(--avi-fp-divider); }
	html body .fsf-filter-overlay .fsf-fo-scroll.avi-fpanel .fsf-fo-label {
		margin: 0 0 var(--avi-fp-label-gap); padding: 0 8px; min-height: 0; font: var(--avi-fp-label-font); letter-spacing: var(--avi-fp-label-ls);
		text-transform: uppercase; color: var(--avi-fp-label);
	}
	html body .fsf-filter-overlay .fsf-fo-scroll.avi-fpanel .fsf-fo-check-grid { display: block; }
	html body .fsf-filter-overlay .fsf-fo-scroll.avi-fpanel .fsf-fo-check {
		box-sizing: border-box; display: flex; align-items: center; gap: 12px; min-height: var(--avi-fp-row-phone); margin: 0; padding: 0 8px;
		border: 0; border-radius: 8px; background: transparent;
	}
	html body .fsf-filter-overlay .fsf-fo-scroll.avi-fpanel .fsf-fo-ck-label { font: 400 15px/1.25 'DM Sans', sans-serif; color: var(--avi-fp-text); }
	html body .fsf-filter-overlay .fsf-fo-scroll.avi-fpanel .fsf-fo-check.on .fsf-fo-ck-label { color: var(--avi-fp-text-on); }
	html body .fsf-filter-overlay .fsf-fo-scroll.avi-fpanel .fsf-fo-cb {
		box-sizing: border-box; flex: 0 0 var(--avi-fp-box); width: var(--avi-fp-box); height: var(--avi-fp-box); border-radius: 4px;
		border: 1.5px solid var(--avi-fp-box-border); background: transparent;
	}
	html body .fsf-filter-overlay .fsf-fo-scroll.avi-fpanel .fsf-fo-check.on .fsf-fo-cb {
		border: 1px solid var(--avi-fp-gold); background: var(--avi-fp-gold) var(--avi-fp-tick) center / 11px 11px no-repeat;
	}
	html body .fsf-filter-overlay .fsf-fo-scroll.avi-fpanel .fsf-fo-tick { display: none; }
}
