/* ==========================================================================
   Tap targets on phones: at least 44 px tall (owner INBOX #23.B6, 2026-10-19; audit SITE-AUDIT-2026-10-19).
   Loaded site-wide, last (inc/avi-tap-targets.php). Phones only (< 768 px); desktop layouts are unchanged.
   Covers: the site footer, related-link lists, breadcrumbs, chips, and the jobs board "Browse aviation jobs" block.
   The links keep their look: only their box grows (inline-flex + min-height, text centred vertically).
   ========================================================================== */
@media (max-width: 767px) {
	/* Site footer (every page): column links, email, logo, legal row */
	body .fsf-footer-nav .fsf-footer-link,
	body .fsf-footer-nav .fsf-footer-email,
	body .fsf-footer-nav .fsf-footer-logo-wrap,
	body .fsf-footer-legal-links a {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
		padding-top: 0;
		padding-bottom: 0;
	}
	body .fsf-footer-legal-links { row-gap: 0; }

	/* Related links (role / province pages: "AME jobs in Ontario" …) and the operator page footer links */
	body .avi-landing-related a,
	body .avc-op-footer a {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}

	/* Breadcrumbs (CAME, school, operator, pay, jobs pages) */
	body .came-detail-crumbs a,
	body .fsf-school-crumbs a,
	body .avc-op-crumbs a,
	body .avi-pay-breadcrumb a,
	body .avi-pay-landing-breadcrumb a,
	body nav[aria-label="Breadcrumb"] a,
	body nav[aria-label="breadcrumb"] a {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}

	/* Chips: job page, jobs chip banner (school / CAME / pay pages), pay page career + aircraft chips */
	body .avijs-chip,
	body .avi-jobs-chip,
	body .avi-jobs-chips-go,
	body .avi-jobs-chips-prov,
	body .avi-pay-career-chip,
	body .avi-pay-aircraft-chip {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}

	/* Jobs board "Browse aviation jobs": group headers, the links once a group is opened, "More employers" */
	body .avi-browse__summary,
	body .avi-browse__more > summary {
		min-height: 44px;
		display: flex;
		align-items: center;
	}
	body .avi-browse__list a {
		display: flex;
		align-items: center;
		min-height: 44px;
	}
}

/* ==========================================================================
   Second round (owner INBOX #736.6, REPORT-site-polish-2026-11-12 item 2). Phones only, no text made bigger.
   Two ways, by what the element is:
   A. It has a drawn box (pill, chip, round button) or sits in a fixed row (header logo): the look stays exactly as
      it is and an invisible ::after makes the area that answers a tap at least 44 x 44 px, centred on the element.
   B. It is plain text in a list or line: the row itself grows to 44 px (padding, same text size).
   ========================================================================== */
@media (max-width: 767px) {
	/* ---- A. Same look, 44 px tap area ---- */
	/* these are not positioned today; the ones further down already are (relative / absolute) and keep that */
	html body .fs-home .fs-find-picks a,
	html body .aph-pill,
	html body .avim-url-chip,
	html body .fss-quiet.fss-allq,
	html body .fss-prov a,                                  /* Scholarships: province links (BC, AB ...), were 18 x 32 px */
	html body.single-avi_job .avijs-more-jobs__list a,      /* Job page: "More open jobs" links, were 18 px */
	html body.single-avi_job .avijs-employer__link,
	html body.single-avi_job .avijs-meta__loc-link {
		position: relative;
	}
	html body .fs-home .fs-find-picks a::after,
	html body .aph-pill::after,
	html body .avim-url-chip::after,
	html body .fss-quiet.fss-allq::after,
	html body .fss-prov a::after,
	html body.single-avi_job .avijs-more-jobs__list a::after,
	html body.single-avi_job .avijs-employer__link::after,
	html body.single-avi_job .avijs-meta__loc-link::after,
	html body .avc-brand-lockup .avc-brand-home::after, /* header logo, every page */
	html body .fs-home .fs-wordmark::after,             /* header logo, home */
	html body .avc-menu-btn::after,                     /* header menu button (40 px circle) */
	html body.aviju-page .aviju-kw__filter::after,      /* jobs board: Filters button beside the search */
	html body .fsm-near-in::after,                      /* Medicals / Schools / examiner lists: Near me */
	html body .fsh-near-in::after,
	html body .came-locate-btn::after {
		content: "";
		position: absolute;
		left: 50%;
		top: 50%;
		width: 100%;
		height: 100%;
		min-width: 44px;
		min-height: 44px;
		transform: translate(-50%, -50%);
	}

	/* ---- B. Text rows grow to 44 px ---- */
	/* Pilot salaries board: carrier names (rows were 40 px, the name 18 px) */
	html body .aph-board-row { height: 44px; }
	html body .aph-board-c { line-height: 44px; }
	/* Pilot salaries: the aircraft and A-Z lists once opened */
	html body .aph-list-ul a { min-height: 44px; }

	/* Jobs board: "38 jobs · 4 filters · Clear" above the first job (the line was 28 px) */
	html body.aviju-page .aviju-pline { height: 44px; line-height: 44px; margin-top: 0; margin-bottom: 0; }
	html body.aviju-page .aviju-pline button { display: inline-block; height: 44px; min-width: 44px; line-height: 44px; vertical-align: top; }
}

/* ==========================================================================
   Email boxes that made iPhones zoom (owner INBOX #736.6, REPORT-site-polish-2026-11-12 item 3).
   iOS Safari zooms the page, and leaves it zoomed, when a tapped input's text is under 16 px. The two were 14 px:
   the job-alert email box (jobs board, job pages) and the sign-in email box on Post a job. Phones only; the box
   size, colours and font family stay as they are.
   ========================================================================== */
@media (max-width: 767px) {
	html body .avi-aa input.avi-aa__email,
	html body input#avipaj-signin-email.avipaj-input {
		font-size: 16px !important;
	}
}

/* ==========================================================================
   Third round (site audit 2026-11-21, owner "do rest as you suggest" 2026-11-22). Phones only, same two ways as the
   second round.
   ========================================================================== */
@media (max-width: 767px) {
	/* A. Pay compare: the "x" that removes a plan from its pill was 19 x 16 px. Same look, 44 x 38 px tap area
	   (38 tall: stacked pills sit 38 px apart, so two tap areas never overlap). */
	html body .avi-pay-path-pill .pill-remove { position: relative; }
	html body .avi-pay-path-pill .pill-remove::after {
		content: "";
		position: absolute;
		left: 50%;
		top: 50%;
		width: 100%;
		height: 100%;
		min-width: 44px;
		min-height: 38px;
		transform: translate(-50%, -50%);
	}

	/* B. Compact footer (every page): email, Privacy, Terms, Contact, School login, Cookies were 17 px tall. The two
	   lines grow to 44 px each, same text size. */
	html body .fsf-footer-compact .fsf-footer-compact__line a {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
		vertical-align: middle;
	}
	html body .fsf-footer-compact .fsf-footer-compact__line + .fsf-footer-compact__line { margin-top: 0; }

	/* Operators finder (/operators/): the aircraft and province pickers were 14 px, so iPhones zoomed on tap
	   (fsf-main.css sets dark-theme fields to 14 px !important). Size only. */
	html body.fsf-dark-theme .avc-ohf-row select,
	html body.fsf-dark-theme .avc-ohf-row input {
		font-size: 16px !important;
	}
}
