/* ══ Operator details pages (/operators/<slug>/), owner INBOX #486 + add-ons 1–5 (2026-11-04, staging).
   Markup: inc/avc-operator-carrier-phone.php (avc_opm_carrier(), avc_opm_logo_large_html(), avc_opm_jobs_row()) and
   single-avc_operator.php. Loaded after assets/css/avc-operators-phone.css (handle avc-operator-detail).
   A working page, not a hub: no slide centring, no hero min-height. Under the breadcrumb (24 px) comes ONE header card
   (large logo tile, then the name, then the CAR line), then the Aircraft + Pilot bases cards (cols 1–6 / 7–12, equal
   height), Pilot pay (Captain | First officer cards, then "See the pay scale"), the job cards with one quiet "See all N
   jobs →" link above them, then About <operator> (always visible), AT A GLANCE, the certificate, corporate.
   Every box = avs-card (assets/css/avs-card.css); 12-column grid, 12 px gaps (#484 approach); --avs-card-gap on phones.
   Logo tile (#486 add-on): 240 × 100 desktop / 180 × 76 phones, radius 12, padded so the logo fills ~80 %; off-white
   #d9e0e8 or navy #0f1e38 + 1 px #1f3354 per logo (avi_logo_tile_tone()); no logo = navy tile, gold Bebas initials. ══ */

/* ── Large header logo (all widths) ── */
.aop-hlogo { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; box-sizing: border-box; width: 240px; height: 100px;
	padding: 10px 24px; border-radius: 12px; overflow: hidden; line-height: 0; }
.aop-hlogo img { display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; }
.aop-hlogo--light { background: #d9e0e8; }
/* #506 add-on 3: brand tile (colour inline), the mark at 80 % of the tile height */
.aop-hlogo.aop-hlogo--brand { padding: 0 !important; }
.aop-hlogo.aop-hlogo--brand img { width: 88% !important; height: 80% !important; margin: auto; }
.aop-hlogo--dark, .aop-hlogo--initials { background: #0f1e38; border: 1px solid #1f3354; }
.aop-hlogo--initials { color: #e8a020; font-family: 'Bebas Neue', sans-serif; font-size: 52px; font-weight: 400; letter-spacing: .04em; line-height: 1; }

/* ── Header card ── */
.aop--carrier .aop-c1 { position: relative; }
.aop--carrier .aop-c1-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; max-width: none; }
.aop--carrier .aop-c1 .avi-feat-tag { flex: 0 0 auto; }
.aop--carrier .aop-c1 .aop-cname { margin: 18px 0 0; }
.aop--carrier .aop-c1-act { margin: 16px 0 0; }
.aop--carrier .aop-c1-act .aop-btn { width: auto; margin: 0; }

/* ── Boards: one row = one grid line (name + sub-line | count | ›), centred; #486 add-on 2 fix ── */
.aop--carrier .aop-board.avs-card { --avs-card-pad: 0; display: flex; flex-direction: column; margin: 0; }
.aop--carrier .aop-row { grid-template-rows: auto; align-items: center; min-height: 56px; }
.aop--carrier .aop-row > * { grid-row: 1; align-self: center; }
.aop--carrier .aop-row--fleet > .aop-name { grid-column: 1; }
.aop--carrier .aop-row--fleet > .aop-n { grid-column: 2; }
.aop--carrier .aop-row--fleet > .aop-go { grid-column: 3; }
.aop--carrier .aop-row--base > .aop-code { grid-column: 1; }
.aop--carrier .aop-row--base > .aop-name { grid-column: 2; }
.aop--carrier .aop-row--base > .aop-n { grid-column: 3; }
.aop--carrier .aop-n { min-width: 2ch; }

/* ── Pilot pay + the two links ── */
.aop--carrier .aop-paytile.avs-card { display: flex; flex-direction: column; justify-content: flex-start; margin: 0; }
.aop--carrier .aop-payact { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 12px 0 0; }
.aop--carrier .aop-payact .aop-btn { width: auto; margin: 0; }

/* ── Job cards + the quiet "See all N jobs →" link ── */
.aop--carrier .aop-jobs-head > .aop-h2 { flex: 0 1 auto; width: auto; margin: 0; text-align: left; }
.aop--carrier .aop-jobs-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.aop--carrier a.aop-alljobs { display: inline-block; padding: 4px 0; line-height: 20px; /* not flex: flex drops the spaces around the count */ color: #e8a020; font-family: 'DM Sans', sans-serif;
	font-size: 15px; font-weight: 600; text-decoration: none; }
.aop--carrier a.aop-alljobs:hover, .aop--carrier a.aop-alljobs:focus-visible { color: #eeae36; text-decoration: underline; }
body.single-avc_operator .aop--carrier .aop-alljobs .avc-op-hiring-num { color: inherit; font: inherit; }
/* #551.3: plain pager under the job cards (?pg=N): "← Newer jobs · Page N of M · More jobs →", same quiet gold links */
.aop--carrier .aop-jobs-pager { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; margin: 14px 0 0; }
.aop--carrier .aop-jobs-pager__n { color: #94a3b8; font-family: 'DM Sans', sans-serif; font-size: 14px; }
.aop--carrier #aop-joblist { scroll-margin-top: 96px; }

@media (min-width: 768px) {
	body.aop-carrierpage main.avc-op > .avc-op-crumbs { margin-bottom: 24px; }
	.aop.aop--carrier { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; margin: 0 0 32px; }
	.aop.aop--carrier > * { grid-column: 1 / -1; min-width: 0; }
	.aop--carrier .aop-stage { padding: 0; }
	.aop--carrier .aop-media { margin: 0; }
	/* #493 (owner 2026-11-04): desktop / tablet header = name + CAR line on the left, the large logo tile (careers link)
	   on the right, both vertically centred in the card. The card keeps the height it had with the logo above the name
	   (measured on prod 8a3ac993: 253 px at 1440 = 22 px padding + 100 logo + 18 gap + name + CAR line; 245 px with the
	   18 px tablet padding); it never shrinks, the content is centred in it. Markup order unchanged (logo first, phones). */
	.aop--carrier .aop-c1 { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 32px; align-content: center; align-items: center; min-height: 245px; }
	.aop--carrier .aop-c1 > * { grid-column: 1; min-width: 0; }
	.aop--carrier .aop-c1 > .aop-c1-top { grid-column: 2; grid-row: 1 / span 4; align-self: center; }
	.aop--carrier .aop-c1 > .aop-cname { grid-row: 1; margin: 0; font-size: 64px; }
	.aop--carrier .aop-c1 > .aop-fcard-meta { grid-row: 2; }
	.aop--carrier .aop-c1 > .aop-fcard-pitch { grid-row: 3; }
	.aop--carrier .aop-c1 > .aop-c1-act { grid-row: 4; }
	.aop--carrier .aop-c1 .avi-feat-tag { position: absolute; top: 14px; right: 14px; } /* FEATURED in the card corner, clear of the centred logo */
	.aop--carrier .aop-c1 .aop-fcard-pitch { max-width: 760px; }

	/* aircraft | bases */
	.aop--carrier .aop-c-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
	.aop--carrier .aop-c-grid > .aop-stage { display: flex; grid-column: span 6; }
	.aop--carrier .aop-c-grid > .aop-stage > .aop-board { flex: 1 1 auto; }

	/* pay: heading, Captain (cols 1–6) | First officer (cols 7–12), then the button */
	.aop--carrier .aop-pay { display: block; margin-top: 20px; }
	.aop--carrier .aop-pay--links { margin-top: 8px; }
	.aop--carrier .aop-pay .aop-h2 { margin: 0 0 12px; }
	.aop--carrier .aop-paytiles { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; align-items: stretch; margin: 0; }
	.aop--carrier .aop-paytile.avs-card { grid-column: span 6; }

	/* featured: why fly + pinned jobs keep their order, on the grid */
	.aop--carrier .aop-why, .aop--carrier .aop-pinned, .aop--carrier .aop-opjobs { margin-top: 20px; }
	.aop--carrier .aop-jobs-head { margin: 0 0 12px; }
	.aop--carrier .aop-fjobs { margin: 0; }

}

/* #486 add-on 8: the About block above AT A GLANCE, always visible, ~760 px reading width (single-avc_operator.php). */
body.aop-carrierpage .avc-op-about-text { margin: 0; max-width: 760px; color: var(--t2, #94a7be); font-family: 'DM Sans', sans-serif; font-size: 15px; line-height: 1.65; }

/* #486 add-on 6: the header logo links to the careers page (else the website); subtle lift on desktop */
.aop-hlogo-link { display: inline-block; border-radius: 12px; line-height: 0; }
.aop-hlogo-link:focus-visible { outline: 2px solid #e8a020; outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
	.aop-hlogo-link .aop-hlogo { transition: transform .15s ease, box-shadow .15s ease; }
	.aop-hlogo-link:hover .aop-hlogo { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0, 0, 0, .35); }
}
@media (prefers-reduced-motion: reduce) { .aop-hlogo-link .aop-hlogo { transition: none; } .aop-hlogo-link:hover .aop-hlogo { transform: none; } }

@media (min-width: 1024px) {
	.aop--carrier .aop-c1 { min-height: 253px; } /* #493: the 1440 height before the logo moved right */
}

@media (max-width: 767px) {
	/* the header card starts right under the site header; cards run nearly full width (~8 px gutter, #431) */
	body.aop-carrierpage .aop--carrier .aop-stage { padding: 0 8px; }
	body.aop-carrierpage .aop--carrier .aop-c1 { margin: 12px 8px 0; text-align: center; }
	.aop--carrier .aop-c1-top { justify-content: center; }
	.aop--carrier .aop-c1 .avi-feat-tag { position: absolute; top: 12px; right: 12px; }
	.aop-hlogo { width: 180px; height: 76px; padding: 8px 18px; }
	.aop-hlogo--initials { font-size: 40px; }
	.aop--carrier .aop-c1 .aop-cname { margin-top: 14px; }
	.aop--carrier .aop-c1-act { display: flex; justify-content: center; }

	/* aircraft + bases: stacked cards */
	body.aop-carrierpage .aop--carrier .aop-c-grid { display: grid; gap: var(--avs-card-gap); margin: var(--avs-card-gap) 8px 0; }
	body.aop-carrierpage .aop--carrier .aop-c-grid > .aop-stage { padding: 0; }

	/* pay */
	body.aop-carrierpage .aop--carrier .aop-pay { padding: 28px 8px 0; }
	body.aop-carrierpage .aop--carrier .aop-pay--links { padding-top: 16px; }
	.aop--carrier .aop-paytiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--avs-card-gap); margin: 12px 0 0; align-items: stretch; }
	.aop--carrier .aop-paytile.avs-card { --avs-card-pad: 14px; }
	.aop--carrier .aop-payact .aop-btn { height: 48px; padding: 0 20px; }

	/* jobs */
	body.aop-carrierpage .aop--carrier .aop-pinned, body.aop-carrierpage .aop--carrier .aop-opjobs { padding: 28px 8px 0; }
	.aop--carrier .aop-jobs-head { margin: 0 0 8px; }
	.aop--carrier .aop-fjob { margin: 0; }
	.aop--carrier .aop-fjob + .aop-fjob { margin-top: var(--avs-card-gap); }

}
