/* INBOX #530 (QC round 7): Medicals city + province list pages.
   - Examiner rows are avs-cards (avs-card.css supplies surface, padding, no hover change); on desktop the columns stay
     inside each card, the header row ("Examiner / Location / Cat 1 price / Contact") sits above the first card.
   - Call = blue soft-lift, Map = navy soft-lift (avs-buttons.css, .avs-btn--blue / --navy / --compact, DM Sans sentence
     case); this sheet only sets size, width and layout.
   - "Confirmed by clinic" caption under the Cat 1 price (the tick after the name stays); the legend line is gone.
   - Category / Language dropdowns + the search field: the neutral 44 px filter control (navy fill, 1px #2a4266, no coloured
     outline, hover #7d93ad). The dropdown LIST is the browser's own (native select).
   - Typed examples overlay for the search field (assets/js/avi-typed.js, #517), all list pages.
   - H1 "AVIATION MEDICAL EXAMINERS IN <PLACE>": long names wrap inside the column.
   Everything is scoped to .came-cards (city + province views) except the typed overlay. */

/* ── H1 ── */
body.came-directory .me-landing-header h1.came-area-h1 {
	max-width: 880px; margin-left: auto; margin-right: auto; overflow-wrap: anywhere; text-wrap: balance; line-height: 1.05;
}
body.came-directory .me-landing-header h1 .came-h1-place { color: #5aa9ff; }

/* ── Typed examples overlay in the search field (all Medicals list pages) ── */
body.came-directory .came-search-wrap .avi-type {
	position: absolute; left: 48px; right: 120px; top: 0; bottom: 0; display: none; align-items: center; pointer-events: none;
	color: #7d93ad; font-family: 'DM Sans', sans-serif; font-size: 14px; white-space: nowrap; overflow: hidden;
}
body.came-directory .came-search-wrap .avi-type.is-on { display: flex; }
body.came-directory .came-search-wrap .avi-type-caret { display: inline-block; width: 2px; height: 18px; margin-left: 2px; background: #94a7be; animation: came530-caret 1.05s steps(1) infinite; }
@keyframes came530-caret { 50% { opacity: 0; } }
@media (min-width: 768px) { body.came-directory .came-search-wrap .avi-type { right: 112px; } }
@media (prefers-reduced-motion: reduce) { body.came-directory .came-search-wrap .avi-type-caret { animation: none; } }

/* ── Controls: search + Category / Language, 44 px, neutral ── */
body.came-directory .came-cards .came-controls { align-items: stretch; }
body.came-directory .came-cards .came-search-input { height: 44px; padding-top: 0 !important; padding-bottom: 0 !important; background: #0f1e38; border: 1px solid #2a4266; border-radius: 10px; }
body.came-directory .came-cards .came-search-input:focus { border-color: #7d93ad; background: #0f1e38; outline: none; }
body.came-directory .came-cards .came-search-input:focus-visible { outline: 2px solid #e8eef5; outline-offset: 2px; }
body.came-directory .came-cards .came-dd select {
	height: 44px; padding: 0 34px 0 14px; background: #0f1e38; border: 1px solid #2a4266; border-radius: 10px;
	color: #e8eef5; font: 600 14px/1 'DM Sans', sans-serif; box-sizing: border-box; cursor: pointer;
}
body.came-directory .came-cards .came-dd select:focus { outline: none; border-color: #7d93ad; }
body.came-directory .came-cards .came-dd select:focus-visible { outline: 2px solid #e8eef5; outline-offset: 2px; }
body.came-directory .came-cards .came-dd select option { background: #0f1e38; color: #e8eef5; }
body.came-directory .came-cards .came-dd::after { right: 14px; margin-top: -2px; border-width: 5px 4px 0; border-style: solid; border-color: #94a7be transparent transparent; }
@media (hover: hover) and (pointer: fine) {
	body.came-directory .came-cards .came-dd select:hover { border-color: #7d93ad; }
}
@media (min-width: 768px) {
	body.came-directory .came-cards .came-controls { align-items: center; }
	body.came-directory .came-cards .came-search-input { height: 44px; }
	body.came-directory .came-cards .came-dd select { height: 44px; font-size: 14px; padding: 0 34px 0 14px; }
}
@media (max-width: 767px) {
	body.came-directory .came-cards .came-dd select { font-size: 13px; padding: 0 28px 0 12px; }
	body.came-directory .came-cards .came-dd::after { right: 11px; }
}

/* ── Cards ── */
body.came-directory .came-cards .came-toolbar { margin: 0; }
body.came-directory .came-cards .came-table {
	display: flex; flex-direction: column; gap: var(--avs-card-gap, 6px);
	background: transparent; border: 0; border-radius: 0; overflow: visible;
}
body.came-directory .came-cards .came-table .came-row,
body.came-directory .came-cards .came-table .came-row + .came-row,
body.came-directory .came-cards .came-table .fsf-came-crosssell + .came-row,
body.came-directory .came-cards .came-table .came-row + .fsf-came-crosssell { margin-top: 0; }
body.came-directory .came-cards .came-table .fsf-came-crosssell { border-radius: 12px; border-left: 1px solid; border-right: 1px solid; }
body.came-directory .came-cards .came-row-name { font-size: 18px; }
/* the old zebra / hover wash belonged to the table; a card has no hover change (avs-card.css) */
body.came-directory .came-cards .came-table .came-row:hover { cursor: pointer; }

/* "Confirmed by clinic" under the Cat 1 price, in the confirmed green (the tick's colour) */
.came-price-conf { display: block; margin-top: 4px; font: 600 12px/1.25 'DM Sans', sans-serif; color: #3ccb8f; white-space: normal; }
.came-c-price .came-price-conf { text-align: inherit; }

/* ── Soft-lift pair: blue Call + navy Map ── */
body.came-directory .came-cards .came-c-contact { gap: 8px; margin-top: 8px; }
html body.came-directory .came-cards .came-btn:not(#avs-raised):not(#avs-r2) {
	--avsb-h: 44px; --avsb-pad: 0 16px; flex: 1 1 0; min-width: 0; width: auto;
}
@media (min-width: 768px) {
	body.came-directory .came-cards .came-c-contact { margin-top: 0; min-width: 168px; }
	html body.came-directory .came-cards .came-c-contact .came-btn:not(#avs-raised):not(#avs-r2) { flex: 0 0 auto; width: 80px; padding: 0 8px; }
	body.came-directory .came-cards .came-thead { background: transparent; border: 0; padding: 0 25px; height: 32px; }
	body.came-directory .came-cards .came-table .came-row { padding-top: var(--avs-card-pad); }
	.came-cards .came-table .came-row { min-height: 0; }
}
@media (min-width: 1081px) {
	body.came-directory .came-cards .came-c-contact,
	body.came-directory .came-cards .came-thead .came-th-r { min-width: 312px; } /* 80 + 8 gap + 224 */
	html body.came-directory .came-cards .came-c-contact .came-btn-tel:not(#avs-raised):not(#avs-r2) { width: 224px; padding: 0 16px; }
}

/* the phone card: Call and Map side by side under the location, price top right */
@media (max-width: 767px) {
	body.came-directory .came-cards .came-table .came-row { row-gap: 8px; }
	body.came-directory .came-cards .came-c-price .came-price-conf { text-align: right; }
}

/* ── #727.1a: a card with no posted fee: "Price not posted · Tell us what you paid" (opens that examiner's form) ── */
.came-price-ask { display: inline-flex; flex-wrap: wrap; align-items: center; min-height: 32px; font: 500 13px/1.3 'DM Sans', sans-serif; color: #94a7be !important; text-decoration: none !important; }
.came-price-ask .came-price-ask-a { color: #5aa9ff; text-decoration: underline; text-underline-offset: 3px; }
.came-price-ask .came-price-ask-sep { white-space: pre; }
.came-price-ask:focus-visible { outline: 2px solid #e8eef5; outline-offset: 2px; border-radius: 4px; }
@media (hover: hover) and (pointer: fine) { .came-price-ask:hover .came-price-ask-a { color: #8cc4ff; } }
@media (max-width: 767px) {
	/* phones: the line gets its own full-width row under the location (the name keeps its width); "Confirmed by clinic"
	   stays top right */
	.came-table .came-row.came-row--ask { grid-template-areas: "name price" "loc loc" "ask ask" "contact contact"; }
	.came-table .came-row .came-c-price--ask { display: contents; }
	.came-table .came-row .came-c-price--ask .came-price-conf { grid-area: price; text-align: right; }
	.came-table .came-row .came-c-price--ask .came-price-ask { grid-area: ask; justify-self: start; }
}
@media (min-width: 768px) {
	/* table columns: two short lines inside the Cat 1 price column */
	.came-price-ask { display: inline-block; min-height: 0; }
	.came-price-ask .came-price-ask-l, .came-price-ask .came-price-ask-a { display: block; }
	.came-price-ask .came-price-ask-sep { display: none; }
}

/* #727.5: one muted line of clinic facts on a card (taking new pilots, wait, online booking, ECG / hearing test on site), only when filled */
.came-row-facts { margin-top: 4px; font: 500 12px/1.4 'DM Sans', sans-serif; color: #94a7be; overflow-wrap: anywhere; }
