/* =========================================================================================================
 * Medicals (owner INBOX #407 audit -> #410, STAGING): one accent per section, counts once, one gold primary, panels.
 * Loaded on page-medical-examiners.php after avi-links-amber (inc/avi-came-city-board.php, priority 1000).
 * Colours from AVCENTRAL-DESIGN-GUIDE.md only: gold #e8a020 for actions and counts, status green #3ccb8f only for
 * confirmed / verified, greys #94a7be / #7d93ad, white #e8eef5. No cyan, light blue or amber on these pages.
 * ========================================================================================================= */

/* ---- Status green: confirmed / verified only (#410.2) ---- */
.came-check, .came-legend-check { color: #3ccb8f !important; }
.came-check:focus-visible { outline-color: #3ccb8f !important; }
body .came-v2 { --cv2-green: #3ccb8f; }

/* ---- Notes on rows ("Cat 1, 2 & 3 only", "Existing patients only"): grey, not the schools amber ---- */
body .came-note--existing, body .came-note--cats, body .came-pill--existing { color: #7d93ad !important; }

/* ---- Near-me radius pills: gold selected state (was cyan) ---- */
body .me-radius-pills .me-radius-pill:hover { border-color: #7d93ad !important; color: #e8eef5 !important; } /* #418: neutral hover */
body .me-radius-pills .me-radius-pill.active { background: #e8a020 !important; border-color: #e8a020 !important; color: #060f1e !important; }

/* ---- Counts once: the subline (province / city) or the list count (near-me) already says how many ---- */
.came-status-strip[data-came-context-type="province"],
.came-status-strip[data-came-context-type="city"],
.came-status-strip[data-came-context-type="near-me"] { display: none !important; }

/* ---- City links on desktop (hub "CAMEs by city", province "Cities and areas"): quiet grey, white on hover ---- */
html body.fsf-dark-theme .came-area-links a,
html body .came-area-links a { color: #94a7be !important; text-decoration: underline; text-decoration-color: rgba(148, 167, 190, .35); text-underline-offset: 3px; }
html body.fsf-dark-theme .came-area-links a:hover,
html body .came-area-links a:hover { color: #e8eef5 !important; }

/* ---- Examiner page (#410.2 tidy) ---- */
/* links: grey (was light blue #8fc6ea) */
body .came-v2 { --cv2-link: #94a7be; }
body .came-v2 .cv2-addnote a, body .came-v2 .cv2-notes-line a, body .came-v2 .cv2-info a,
body .came-v2 .cv2-small a, body .came-v2 .cv2-valid a { color: #94a7be !important; text-decoration: underline; text-underline-offset: 3px; }
body .came-v2 .cv2-addnote a:hover, body .came-v2 .cv2-notes-line a:hover, body .came-v2 .cv2-info a:hover,
body .came-v2 .cv2-small a:hover, body .came-v2 .cv2-valid a:hover { color: #e8eef5 !important; }
/* "No community notes yet. Had your medical here? Add a community note" = one quiet line */
body .came-v2 .cv2-notes-line { margin: 0; padding: 2px 2px 4px; color: #7d93ad; font-family: 'DM Sans', sans-serif; font-size: 14px; line-height: 1.5; }
/* What to bring: three short items */
body .came-v2 .cv2-bring-list { margin: 0; padding: 0 0 0 18px; color: #e8eef5; font-size: 15px; line-height: 1.5; }
body .came-v2 .cv2-bring-list li { margin: 0 0 6px; }
body .came-v2 .cv2-bring-list li::marker { color: #7d93ad; }
/* nearby flight schools: grey tags, no pin emoji */
body .came-nearby-grid .fsf-tag { color: #94a7be !important; border-color: #2a4266 !important; background: transparent !important; }
body .came-nearby-grid .fsf-card-loc::before { content: none !important; display: none !important; }

/* ---- "Medical guides": neutral outline secondary (#418; was the gold outline) ---- */
body .came-guides-btn { border-color: #2a4266 !important; }
body .came-guides-btn:hover, body .came-guides-btn:focus-visible { border-color: #7d93ad !important; }
body .came-guides-btn:focus-visible { outline: 2px solid #e8a020; outline-offset: 2px; }

/* ---- Hub on phones: each stage is a shared .avs-panel slide (#410 add-on, like the home page) ---- */
@media all { /* #425: every width (was (max-width: 767.98px)); desktop overrides at the end */
	body.fsm-on { background: #060f1e; }
	body.fsm-on .fsm-s1.avs-panel { margin-top: 8px; }
	body.fsm-on .fsm-stage.avs-panel { padding: 40px 20px 32px; }
	/* proof line: one quiet line, no decorative dots */
	body.fsm-on .fsm-proof li { padding-left: 0; }
	body.fsm-on .fsm-proof li::before { content: none; display: none; }
	/* One search field with "Near me" inside its right end (#410, 18:39Z) */
	body.fsm-on .fsm-search--near { margin-top: 0; }
	body.fsm-on .fsm-search--near input.fsm-input[type="search"] { padding-right: 112px !important; text-overflow: ellipsis; }
	body.fsm-on .fsm-near-in {
		position: absolute; right: 8px; top: 9px; height: 40px; box-sizing: border-box; margin: 0; padding: 0 12px;
		display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
		background: #0f1e38 !important; border: 1px solid #2a4266 !important; border-radius: 9px !important; box-shadow: none !important;
		color: #e8eef5 !important; font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 600; line-height: 1; white-space: nowrap;
		-webkit-tap-highlight-color: transparent;
	}
	body.fsm-on .fsm-near-in svg { width: 16px; height: 16px; color: #e8eef5; flex: 0 0 auto; }
	body.fsm-on .fsm-near-in:hover, body.fsm-on .fsm-near-in:focus-visible { border-color: #7d93ad !important; } /* #418 */
	body.fsm-on .fsm-near-in:focus-visible { outline: 2px solid #e8a020; outline-offset: 2px; }
	body.fsm-on .fsm-near-in[aria-busy="true"] { opacity: .7; }
	/* typed examples overlay (assets/js/avi-typed.js): between the magnifier and the Near me button */
	body.fsm-on .fsm-search .avi-type { position: absolute; left: 50px; right: 112px; top: 0; bottom: 0; display: none; align-items: center; pointer-events: none;
		color: #7d93ad; font-family: 'DM Sans', sans-serif; font-size: 17px; white-space: nowrap; overflow: hidden; }
	body.fsm-on .fsm-search .avi-type.is-on { display: flex; }
	body.fsm-on .avi-type-caret { display: inline-block; width: 2px; height: 20px; margin-left: 2px; background: #94a7be; animation: avi-caret 1.05s steps(1) infinite; }
	@keyframes avi-caret { 50% { opacity: 0; } }

	/* Closing slide (#410, 18:41Z): content centred, the footer row anchored at the slide's bottom */
	body.fsm-on .fsm-close.avs-panel { justify-content: flex-start; padding-bottom: 0; }
	body.fsm-on .fsm-close.avs-panel > :first-child { margin-top: auto; }
	body.fsm-on .fsm-close-foot { margin: auto -14px 0; padding-top: 40px; } /* full row width so "Cookie settings" stays on its line */
	body.fsm-on .fsm-close-foot .fsf-footer-legal { margin: 0 !important; background: transparent !important; border-top: 1px solid rgba(255, 255, 255, .06) !important; }
	body.fsm-on .fsm-page-foot { display: none; }

	/* "Before your medical": the shared side-scroll row since #420 (.avs-hscroll, avi-shared.css); the #410 .fsm-acard list rules are gone */
	/* Closing button: solid Medicals blue with navy text (Chris's section-colour exception, #410 18:56Z) */
	body.fsm-on .fsm-btn.fsm-btn--blue { background: #5aa9ff !important; border-color: #5aa9ff !important; color: #060f1e !important; }
	body.fsm-on .fsm-btn.fsm-btn--blue svg { color: #060f1e; }
	body.fsm-on .fsm-btn.fsm-btn--blue:hover, body.fsm-on .fsm-btn.fsm-btn--blue:focus-visible { border-color: #e8eef5 !important; }

	/* "Find one near you" = one slide (#410.3): fits one screen at 390 x 844 with the board folded */
	body.fsm-on .fsm-s2.avs-panel { padding: 28px 16px 20px; }
	body.fsm-on .fsm-s2 .fsm-sub--sm { margin-bottom: 18px; }
	body.fsm-on .fsm-s2 .fsm-board { margin-top: 16px; }
	body.fsm-on .fsm-s2 .fsm-board-head { min-height: 48px; }
	body.fsm-on .fsm-s2 .fcb-row { min-height: 46px; }
	/* "Show all cities" row: a board row in grey, its count in gold, "›" turns down when open */
	body.fsm-on .fcb-allrow { width: 100%; margin: 0; background: none !important; border: 0 !important; box-shadow: none !important; cursor: pointer; text-align: left;
		grid-template-columns: minmax(0, 1fr) 12px; font-family: 'JetBrains Mono', monospace; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
	body.fsm-on .fcb-allrow .fcb-all-t { white-space: nowrap; overflow-wrap: normal; }
	body.fsm-on .fcb-allrow .fcb-all-t { color: #94a7be; }
	body.fsm-on .fcb-allrow:hover .fcb-all-t, body.fsm-on .fcb-allrow:focus-visible .fcb-all-t { color: #e8eef5; }
	body.fsm-on .fcb-allrow[aria-expanded="true"] .fcb-go { display: inline-block; transform: rotate(-90deg); }
	body.fsm-on .fcb-more--all { display: block; }
}
/* the slide height = the shared .avs-panel--slide rule (avi-shared.css); short screens: less panel padding so the
   folded "Find one near you" fits 375 x 667 */
@media (max-width: 767.98px) and (max-height: 700px) {
	body.fsm-on .fsm-s2.avs-panel { padding-top: 16px; padding-bottom: 12px; }
}
/* hero: one accent ("REAL PRICES." in Medicals blue); eyebrow quiet grey; the status line centred on one line */
@media all { /* #425: every width (was (max-width: 767.98px)); desktop overrides at the end */
	body.fsm-on .fsm-eyebrow { color: #7d93ad; }
	body.fsm-on .fsm-proof { display: flex; justify-content: center; align-items: center; width: 100%; }
	body.fsm-on .fsm-proof li { text-align: center; white-space: nowrap; }
	/* #708: the source line's "How we get our numbers" link (same quiet text, underlined) and the cost question on
	   "Before your medical" (white, DM Sans; its one-line answer is the slide's existing sub line) */
	body.fsm-on .fsm-proof-a { color: inherit !important; text-decoration: underline !important; text-underline-offset: 2px; }
	body.fsm-on .fsm-q { margin: 0 auto 6px; padding: 0; max-width: 560px; color: #fff; font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 16px; line-height: 1.4; letter-spacing: 0; text-transform: none; }
}
/* #708: short phones: less panel padding so "Before your medical" with the cost answer still fits the slide (as .fsm-s2 above) */
@media (max-width: 767.98px) and (max-height: 700px) {
	body.fsm-on .fsm-s3.avs-panel { padding-top: 16px; padding-bottom: 12px; }
}
/* #708: 360–379 px phones: the source line's second row ("Updated … · How we get our numbers") stays on one line */
@media (max-width: 379.98px) {
	body.fsm-on .fsm-proof li { letter-spacing: .08em; }
}
@media (max-width: 359.98px) {
	body.fsm-on .fsm-proof li { letter-spacing: .06em; }
	/* 320 px: the placeholder and every typed example fit beside "Near me" */
	body.fsm-on .fsm-search--near input.fsm-input[type="search"] { font-size: 15px; padding-left: 40px !important; padding-right: 92px !important; text-overflow: clip; }
	body.fsm-on .fsm-search--near .fsm-search-icon { left: 13px; }
	body.fsm-on .fsm-search .avi-type { left: 40px; right: 92px; font-size: 15px; }
	body.fsm-on .fsm-near-in { right: 6px; padding: 0 8px; font-size: 13px; gap: 4px; }
	body.fsm-on .fsm-near-in svg { width: 14px; height: 14px; }
}

/* ---- Hub on desktop: the hero and the list are full-width panels with 1200 px content (#406 / #410 add-on) ---- */
@media (min-width: 768px) {
	body.fsm-on { background: #060f1e; }
	html body.fsm-on .me-hero.avs-panel,
	html body.fsm-on .came-list-page.avs-panel {
		box-sizing: border-box; width: auto; max-width: none;
		margin: 0 10px 10px; border-radius: 24px; background: #0a1628;
		padding-left: max(32px, calc((100% - 1220px) / 2)); padding-right: max(32px, calc((100% - 1220px) / 2));
	}
	html body.fsm-on .me-hero.avs-panel { margin-top: 10px; }
	html body.fsm-on .came-list-page.avs-panel { padding-top: 32px; padding-bottom: 32px; }
}

/* ---- #418 (design guide, owner 2026-11-03): no gold / accent outlines on buttons or pills. Primary = solid accent fill
   with navy text (the closing "Update clinic info" button, Medicals blue); secondary = neutral grey outline, white
   text, hover = slightly brighter border. Focus rings unchanged. Medicals pages only (the rest of the site: #418 branch). ---- */
@media all { /* #425: every width (was (max-width: 767px)); desktop overrides at the end */
	body.fsm-on .fsm-btn:not(.fsm-btn--blue) { border-color: #2a4266 !important; }
	body.fsm-on .fsm-btn:not(.fsm-btn--blue):hover, body.fsm-on .fsm-btn:not(.fsm-btn--blue):active,
	body.fsm-on .fsm-btn:not(.fsm-btn--blue):focus { border-color: #7d93ad !important; }
	body.fsm-on .fsm-btn:not(.fsm-btn--blue) svg { color: #e8eef5; }
	body.fsm-on .fsm-btn.fsm-btn--blue:hover, body.fsm-on .fsm-btn.fsm-btn--blue:focus-visible { border-color: #5aa9ff !important; }
	/* #419.5: "Are you a CAME?" in the closing note = a quiet link (grey line, light text, underlined) */
	body.fsm-on .fsm-note-a { color: #e8eef5 !important; text-decoration: underline !important; text-underline-offset: 2px; }
}
/* Active filter chips and the list's category chips: neutral outline (were gold-tinted outlines) */
body .came-active-chip { background: transparent !important; border-color: #2a4266 !important; color: #e8eef5 !important; }
body .came-active-chip:hover { border-color: #7d93ad !important; }
body .came-chip { background: transparent !important; border-color: #2a4266 !important; color: #94a7be !important; }


/* ---- #425 (owner 2026-11-03): the hub on tablets / desktop = the phone design, adapted. Same stages, components, colours
   and motion as phones (#410–#424); only layout changes here. The old desktop hub layer (hero + full table) is hidden on
   every width now (the H1 stays for search engines and screen readers). Phones are not touched by this block. ---- */
@media (min-width: 768px) {
	/* slides: full-width panels with the small inset (as home), content 1200 px wide; sized to content
	   (the hero fills the window: the first-slide rule in avi-shared.css) */
	body.fsm-on .fsm-stage.avs-panel {
		margin: 0 10px 10px; padding: clamp(56px, 7vw, 96px) max(32px, calc((100% - 1200px) / 2));
	}
	body.fsm-on .fsm-s1.avs-panel { margin-top: 10px; }
	body.fsm-on .fsm-stage > * { margin-left: auto; margin-right: auto; }
	/* type scales up (the guide: headlines clamp up on big screens) */
	body.fsm-on .fsm-eyebrow { font-size: 12px; margin-bottom: 20px; }
	body.fsm-on .fsm-h1 { font-size: clamp(72px, 7vw, 120px); }
	body.fsm-on .fsm-s1 .fsm-sub { max-width: 560px; font-size: 18px; margin-top: 22px; }
	body.fsm-on .fsm-proof { margin-top: 30px; }
	body.fsm-on .fsm-h2 { font-size: clamp(44px, 4.2vw, 64px); margin-bottom: 14px; }
	body.fsm-on .fsm-h2--big { font-size: clamp(60px, 6vw, 96px); }
	body.fsm-on .fsm-sub--sm { max-width: 560px; font-size: 17px; margin-bottom: 32px; }
	/* Find one near you: one ~720 px field, the board below it */
	body.fsm-on .fsm-s2.avs-panel { padding-top: clamp(32px, 5vh, 72px); padding-bottom: clamp(32px, 5vh, 72px); }
	body.fsm-on .fsm-s2 .fsm-sub--sm { margin-bottom: 28px; }
	body.fsm-on .fsm-search--near, body.fsm-on .fsm-near-msg { max-width: 720px; margin-left: auto; margin-right: auto; }
	body.fsm-on .fsm-s2 .fsm-board { max-width: 960px; margin: 28px auto 0; }
	/* #425 add-on (owner 21:06Z): ALL cities on desktop, expanded, 3 columns, no "Show all cities" row (phones keep top 5 +
	   Show all). Grid lines: each cell draws its right + bottom edge; the list is pulled 1 px out so the outer edges hide. */
	body.fsm-on .fsm-rows:has(> .fcb-li) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 -1px -1px 0; }
	body.fsm-on .fsm-rows:has(> .fcb-li) > li { border: 0; border-right: 1px solid #16294a; border-bottom: 1px solid #16294a; }
	body.fsm-on .fsm-rows .fcb-li { margin: 0; padding: 0; list-style: none; }
	body.fsm-on .fsm-rows > .fcb-rest[hidden] { display: block !important; }
	body.fsm-on .fsm-rows > .fcb-more--all { display: none !important; }
	body.fsm-on .fsm-s2 .fsm-board-foot { display: none; }
	body.fsm-on .fsm-rows .fcb-row {
		display: grid; grid-template-columns: 56px minmax(0, 1fr) 12px; align-items: center; column-gap: 10px;
		min-height: 52px; padding: 4px 20px; box-sizing: border-box; text-decoration: none !important;
		font-family: 'JetBrains Mono', monospace; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; line-height: 1.15;
	}
	body.fsm-on .fsm-rows .fcb-code { color: #e8a020; }
	body.fsm-on .fsm-rows .fcb-name { color: #e8eef5; overflow-wrap: anywhere; }
	body.fsm-on .fsm-rows .fcb-go { color: #7d93ad; text-align: right; font-family: 'DM Sans', sans-serif; font-size: 18px; }
	body.fsm-on .fsm-rows .fcb-row:focus-visible { outline: 2px solid #e8a020; outline-offset: -2px; }
	body.fsm-on .fsm-rows .fcb-allrow { justify-content: center; grid-template-columns: auto 12px; }
	@media (hover: hover) and (pointer: fine) {
		body.fsm-on .fsm-rows .fcb-row:hover .fcb-name, body.fsm-on .fsm-rows .fcb-allrow:hover .fcb-all-t { color: #fff; }
		body.fsm-on .fsm-rows .fsm-row:hover { background: #0c1a30; }
	}
	/* Before your medical: the three tall cards side by side (the .avs-hscroll grid from 768 px) */
	body.fsm-on .fsm-s3 .avs-hscroll { max-width: 1200px; }
	body.fsm-on .fsm-s3 .avs-hcard--tall { min-height: 400px; }
	/* Closing: one centred button, the helper line, the footer inside the slide */
	body.fsm-on .fsm-close .fsm-btn--full { width: auto; min-width: 280px; max-width: 360px; padding: 0 28px; }
	body.fsm-on .fsm-close .fsm-note { max-width: 560px; font-size: 14px; }
	body.fsm-on .fsm-close-foot { width: 100%; max-width: none; margin: auto 0 0; padding-top: 56px; }
	body.fsm-on .fsm-close-foot .fsf-footer-nav { display: none; } /* the bottom row only, as on phones */
}

/* ---- #425.7: no cross-sell cards in the examiner lists (province / city / near-me / search) ---- */
body .fsf-came-crosssell { display: none !important; }

/* ---- #433 + add-on 21:05Z (owner): the NOTAM band on the Medicals hub on desktop only (>= 1024 px; phones and tablets
   without it, as #410), INSIDE the hero panel along its top edge; label "NOTAM · CAME"; every word in the band muted grey
   (chip, items, dots, links: forced, the CAME link rules colour links); the same slow scroll (~40 px/s), paused on hover. ---- */
/* #433 add-on 21:17Z (owner): phones and tablets too (reverses #410 item 3): same spot, same look. The hero content keeps
   its place (the band is out of the flow; the content sits well below it at 320 x 568 and 375 x 667). */
@media all {
	body.fsm-on .fsm-s1.avs-panel { position: relative; overflow: hidden; }
	body.fsm-on .fsm-s1 .fs-atis-band[data-section="came"] { 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); }
	body.fsm-on .fsm-s1 .fs-atis-band[data-section="came"] .fs-atis-inner { padding: 0 16px; }
}
@media (min-width: 768px) {
	body.fsm-on .fsm-s1 .fs-atis-band[data-section="came"] .fs-atis-inner { padding: 0 28px; }
}
@media all {
	body .fs-atis-band[data-section="came"] .fs-atis-chip { color: #7d93ad !important; border-color: #2a4266 !important; }
	body .fs-atis-band[data-section="came"] .fs-atis-chip *,
	body .fs-atis-band[data-section="came"] .fs-ticker-track,
	body .fs-atis-band[data-section="came"] .fs-ticker-track *,
	body .fs-atis-band[data-section="came"] a.fs-ticker-item,
	body .fs-atis-band[data-section="came"] a.fs-ticker-item:visited { color: #7d93ad !important; }
	body .fs-atis-band[data-section="came"] a.fs-ticker-item:hover,
	body .fs-atis-band[data-section="came"] a.fs-ticker-item:focus-visible { color: #e8eef5 !important; }
}

/* ---- #425 add-on 21:07Z (owner): on tablets / desktop EVERY hub slide fills the window under the sticky header (dvh, as
   the home desktop #406 add-on), content centred; a taller slide grows. Windows under 640 px tall: sized to content. ---- */
@media (min-width: 768px) and (min-height: 640px) {
	body.fsm-on .fsm-stage.avs-panel:not(.fsm-s1) {
		box-sizing: border-box; display: flex; flex-direction: column; justify-content: center;
		min-height: calc(100vh - var(--avs-header-h, 56px)); min-height: calc(100dvh - var(--avs-header-h, 56px)); /* #453: the real header height (avi-bp.js) */
	}
	body.fsm-on .fsm-close.avs-panel { justify-content: flex-start; }
}

/* the live examiner count in the hero subline is gold (#433 add-on; same subline on phones and desktop) */
body.fsm-on .fsm-s1 .fsm-n { color: #e8a020; font-weight: inherit; }

/* ---- #436 (owner): Medicals list pages (province / city / near-me / search) ---- */
/* no "Search all of AVCentral" link on any Medicals page (the site search is in the menu, #432) */
body .avi-sa, body .fsm-sa { display: none !important; }
/* "Near me" inside the search field = the hub / phone button (one look on every width: navy fill, grey edge, light text,
   Medicals-blue pin; #425 add-on). Selected (location on) keeps its solid fill. */
body.fsm-on .fsm-near-in,
body.came-directory .came-search-wrap .came-locate-btn:not(.came-active) {
	height: 40px; box-sizing: border-box; padding: 0 12px !important; gap: 6px;
	background: #0f1e38 !important; border: 1px solid #2a4266 !important; border-radius: 9px !important; box-shadow: none !important;
	color: #e8eef5 !important; font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; line-height: 1;
}
body.came-directory .came-search-wrap .came-locate-btn.came-active { height: 40px; padding: 0 12px !important; border-radius: 9px !important;
	font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; }
body.fsm-on .fsm-near-in svg,
body.came-directory .came-search-wrap .came-locate-btn:not(.came-active) svg { width: 16px; height: 16px; color: #e8eef5; flex: 0 0 auto; }
@media (hover: hover) and (pointer: fine) {
	body.came-directory .came-search-wrap .came-locate-btn:not(.came-active):hover { border-color: #7d93ad !important; color: #e8eef5 !important; }
}
body.came-directory .came-search-input { padding-right: 128px !important; }
body.came-directory .came-search-clear { right: 118px; }
/* city pages: Category + Language only */
.came-filters-row.came-filters-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* #436.6 (owner 21:10Z): hub + list pages end with the slim footer line only (no section-links columns / logo blurb), as
   the home closing slide. The examiner page (#421, its own branch) is left alone. */
body.came-directory:not(:has(.came-v2)) .fsf-footer-nav { display: none !important; }
/* #436.8: pagination: the current page in a soft Medicals-blue tint with a blue number; the others neutral */
body.came-directory .me-page-btn.active { background: rgba(90, 169, 255, .14) !important; border-color: rgba(90, 169, 255, .14) !important; color: #5aa9ff !important; }
/* #436.10 (owner 21:14Z): "About CAMEs in <area>" at the very bottom, quiet: small grey label, native <details> closed
   by default (the text stays in the HTML for search engines; never display:none or added by script) */
.came-about-foot { box-sizing: border-box; max-width: 1240px; margin: 24px auto 0; padding: 0 20px; }
body.came-directory .came-area-about.came-area-about--quiet { margin: 0; padding: 0; border: 0; }
body.came-directory .came-area-about--quiet > summary {
	display: inline-flex; align-items: center; gap: 6px; min-height: 28px; cursor: pointer; list-style: none;
	color: #7d93ad; font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 400; letter-spacing: 0; text-transform: none;
}
body.came-directory .came-area-about--quiet > summary::-webkit-details-marker { display: none; }
body.came-directory .came-area-about--quiet > summary:hover, body.came-directory .came-area-about--quiet > summary:focus-visible { color: #e8eef5; }
body.came-directory .came-area-about--quiet > summary:focus-visible { outline: 2px solid #e8a020; outline-offset: 2px; border-radius: 4px; }
body.came-directory .came-area-about--quiet .came-about-chev { display: inline-block; transition: transform .2s; }
body.came-directory .came-area-about--quiet[open] .came-about-chev { transform: rotate(90deg); }
body.came-directory .came-area-about--quiet p { margin: 6px 0 4px; max-width: 820px; color: #7d93ad; font-size: 13px; line-height: 1.6; }
@media (prefers-reduced-motion: reduce) { body.came-directory .came-area-about--quiet .came-about-chev { transition: none; } }

/* #425 / #436 add-on 21:15Z (owner): on tablets / desktop "Near me" is a compact pill inside the search field: 32 px tall,
   6 px from the field's right edge, vertically centred, DM Sans 13 px, 14 px pin; same look as phones (hub + lists) */
@media (min-width: 768px) {
	body.fsm-on .fsm-near-in,
	body.came-directory .came-search-wrap .came-locate-btn {
		height: 32px !important; padding: 0 10px !important; gap: 5px; border-radius: 8px !important; font-size: 13px !important; line-height: 1;
		top: 50% !important; right: 6px !important; bottom: auto !important; transform: translateY(-50%) !important; margin: 0 !important;
	}
	body.fsm-on .fsm-near-in svg,
	body.came-directory .came-search-wrap .came-locate-btn svg { width: 14px !important; height: 14px !important; }
	body.fsm-on .fsm-search--near input.fsm-input[type="search"] { padding-right: 104px !important; }
	body.fsm-on .fsm-search .avi-type { right: 104px; }
	body.came-directory .came-search-input { padding-right: 104px !important; }
	body.came-directory .came-search-clear { right: 96px !important; }
}
/* the desktop slides are flex columns (#425 add-on 21:07Z): the search field, message and board keep their full width
   (720 / 960 px max) instead of shrinking to their content */
@media (min-width: 768px) {
	body.fsm-on .fsm-s2 > .fsm-search--near, body.fsm-on .fsm-s2 > .fsm-near-msg, body.fsm-on .fsm-s2 > .fsm-board,
	body.fsm-on .fsm-s3 > .avs-hscroll { width: 100%; box-sizing: border-box; }
}
/* #436 add-on 21:18Z (owner): the closing slide ends with the footer line (24 px under it, nothing after the slide), and
   the "Update clinic info" button text is dark navy #06142b, medium weight (7.3:1 on #5aa9ff) */
body.fsm-on .fsm-close.avs-panel { padding-bottom: 24px !important; margin-bottom: 0; }
body.fsm-on .fsm-close-foot .fsf-footer-legal { padding-bottom: 0 !important; margin-bottom: 0 !important; }
body.fsm-on .fsm-close-foot .fsf-footer, body.fsm-on .fsm-close-foot footer { margin-bottom: 0 !important; padding-bottom: 0 !important; }
body.fsm-on .fsm-btn.fsm-btn--blue, body.fsm-on .fsm-btn.fsm-btn--blue span { color: #06142b !important; font-weight: 500; }
body.fsm-on .fsm-btn.fsm-btn--blue svg { color: #06142b; }
/* #436 bug 21:24Z (owner): the closing slide = a flex column: the headline / button / note centred in the space above, the
   footer line anchored at the slide's bottom (24 px padding under it), a plain line: no box, background or border
   (the site's slim footer .fsf-footer-compact, or the older .fsf-footer-legal), phones and desktop */
body.fsm-on .fsm-close.avs-panel { display: flex; flex-direction: column; justify-content: flex-start; }
body.fsm-on .fsm-close.avs-panel > :first-child { margin-top: auto; }
body.fsm-on .fsm-close.avs-panel > .fsm-close-foot { margin-top: auto; margin-bottom: 0; padding-top: 40px; }
body.fsm-on .fsm-close-foot .fsf-footer-compact,
body.fsm-on .fsm-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;
}

/* #727.1a: board rows with no posted fee: a small second link under the row ("Price not posted · Tell us what you paid") */
body.fsm-on .fsm-rows .fsm-ask { display: flex; align-items: center; justify-content: flex-end; min-height: 32px; margin-top: -6px; padding: 0 36px 6px 14px;
	color: #7d93ad !important; font: 500 12px/1.3 'DM Sans', sans-serif; text-decoration: none !important; white-space: pre-wrap; }
body.fsm-on .fsm-rows .fsm-ask span { color: #5aa9ff; text-decoration: underline; text-underline-offset: 3px; }
body.fsm-on .fsm-rows .fsm-ask:focus-visible { outline: 2px solid #e8a020; outline-offset: -2px; }

/* #727.2: phones: the search box + Near me on the hub's first screen, under a shorter headline block.
   From 768 px up nothing changes (the first-screen copy is hidden; stage 2 keeps its field). */
body.fsm-on .fsm-s1 .fsm-search--s1, body.fsm-on .fsm-s1 .fsm-near-msg--s1 { display: none; }
@media (max-width: 767px) {
	body.fsm-on .fsm-s1 .fsm-search--s1 { display: block; width: 100%; margin: 22px 0 0; }
	body.fsm-on .fsm-s1 .fsm-near-msg--s1:not([hidden]) { display: block; margin: 10px 0 0; }
	body.fsm-on .fsm-s1 .fsm-eyebrow { margin-bottom: 12px; }
	body.fsm-on .fsm-s1 .fsm-h1 { font-size: min(52px, calc((100vw - 40px) / 7.4)); }
	body.fsm-on .fsm-s1 .fsm-sub { margin-top: 16px; font-size: 15px; line-height: 1.45; }
	body.fsm-on .fsm-s1 .fsm-proof { margin-top: 16px; gap: 6px; }
	/* stage 2 keeps its own field only while it shows search results (the field is then right above them) */
	body.fsm-on .fsm-s2:not(.fsm-s2--results) > .fsm-search--near,
	body.fsm-on .fsm-s2:not(.fsm-s2--results) > .fsm-sub--sm,
	body.fsm-on .fsm-s2 > .fsm-near-msg { display: none; }
	body.fsm-on .fsm-s2.fsm-s2--results > .fsm-near-msg:not([hidden]) { display: block; }
}
