/* Premium listings (owner 2026-10-17, inc/avi-premium.php). Loaded on the board, the jobs landing lists and job pages.
   A Premium job is the REGULAR card, unchanged inside, with ONE addition (owner INBOX #21, 2026-10-19, reference
   code-updates/featured-card-2026-10-18/featured-card-REFERENCE.png): a blue header band across the top of the card,
   flush with the card edges, rounded top corners, a thin divider under it.
   v2 (owner INBOX #34.1, colours sampled from the reference): the band is LIGHTER steel-blue than the card body
   (#1f5a80 -> #163a5a left to right), gold star + "FEATURED LISTING" in bold white spaced capitals left, the posted
   age in light blue-grey right, divider #30759a; the whole card gets the reference's light-blue border (#5aa7c8) + glow.
   Contrast: white on #1f5a80 ~7.6:1, #a9cfe6 on #163a5a ~6.9:1, gold star is decorative (aria-hidden).
   Selectors carry both band classes so they outrank the 2026-10-17 rules in avi-jobs-theme.css (same specificity,
   loaded later: they set the job-page / detail label to 13 px body font).
   The band cancels the card's padding with negative margins: --avi-fb-py / --avi-fb-px = that card's padding,
   --avi-fb-r = the card's corner radius minus its 1 px border. */

:root {
	--avi-fb-bg: linear-gradient(90deg, #1f5a80 0%, #1b4b6f 50%, #163a5a 100%); /* lighter steel-blue than the card body */
	--avi-fb-line: #30759a;
	--avi-fb-gold: #e9a53a;
	--avi-fb-text: #ffffff;
	--avi-fb-age: #a9cfe6;
	--avi-fb-border: #5aa7c8;
	--avi-fb-glow: 0 0 0 1px rgba(90, 167, 200, .18), 0 0 18px 2px rgba(79, 179, 217, .28);
}

/* ---------- The band (every card + the job page + the board detail pane) ---------- */
.aviju-pband,
.avi-pband,
body.single-avi_job .avijs-band.avijs-band--featured,
body.aviju-page .aviju-detail__band.aviju-detail__band--featured {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px;
	margin: calc(-1 * var(--avi-fb-py, 18px)) calc(-1 * var(--avi-fb-px, 18px)) 14px;
	padding: 11px var(--avi-fb-px, 18px);
	background: var(--avi-fb-bg);
	border: 0;
	border-bottom: 1px solid var(--avi-fb-line);
	border-radius: var(--avi-fb-r, 13px) var(--avi-fb-r, 13px) 0 0;
	box-shadow: none;
	min-height: 0;
	line-height: 1.3;
	text-align: left;
}
.aviju-pband__label,
.avi-pband__label,
body.single-avi_job .avijs-band.avijs-band--featured .avijs-band__label,
body.aviju-page .aviju-detail__band.aviju-detail__band--featured .aviju-detail__band-label {
	display: inline-flex; align-items: center; gap: 11px;
	padding: 0; border: 0; background: none;
	color: var(--avi-fb-text); font-family: 'Bebas Neue', var(--av-font-display, sans-serif); font-size: 16px; font-weight: 400; letter-spacing: .2em; /* the reference's condensed display caps */
	text-transform: uppercase; line-height: 1.4; white-space: nowrap;
}
.aviju-pband__star,
.avi-pband__star,
body.single-avi_job .avijs-band.avijs-band--featured .avijs-band__star,
body.aviju-page .aviju-detail__band.aviju-detail__band--featured .aviju-detail__band-star { color: var(--avi-fb-gold); font-size: 15px; letter-spacing: 0; }
.aviju-pband__age,
.avi-pband__age,
body.single-avi_job .avijs-band.avijs-band--featured .avijs-band__age,
body.aviju-page .aviju-detail__band.aviju-detail__band--featured .aviju-detail__band-age {
	color: var(--avi-fb-age); font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: none; white-space: nowrap;
}

/* ---------- Board / role boards (assets/js/avi-jobs-unified.js: aviju-card--premium + .aviju-pband) ---------- */
body.aviju-page .aviju-card.aviju-card--premium {
	--avi-fb-py: 18px; --avi-fb-px: 16px; --avi-fb-r: 13px; /* = the board card's own padding (18px 16px from 1024 px; avi-jobs-unified.css) */
	overflow: hidden; /* v3 (owner INBOX #47): the band never covers the outline; its top corners follow the card radius */
	border-color: var(--avi-fb-border) !important;
	box-shadow: var(--avi-fb-glow);
	border-radius: 14px;
}
@media (max-width: 1023px) {
	body.aviju-page .aviju-card.aviju-card--premium { --avi-fb-py: 16px; --avi-fb-px: 16px; }
}
body.aviju-page .aviju-card.aviju-card--premium:hover,
body.aviju-page .aviju-card.aviju-card--premium.is-active { border-color: #7fc3e0 !important; }
/* the selected card's teal bar (inset shadow) would run through the band: keep it below the band */
body.aviju-page .aviju-card.aviju-card--premium.is-active { box-shadow: var(--avi-fb-glow); }

/* ---------- Landing lists (province / combo / employer / special): the regular landing card + the band ----------
   !important: fsf-gp-overrides.css paints every <article> on dark pages flat (background + border !important). */
body .avi-landing-card.avi-landing-card--featured {
	--avi-fb-py: 18px; --avi-fb-px: 18px; --avi-fb-r: 13px;
	overflow: hidden; /* v3: keep the outline whole */
	background: #13304d !important;
	border: 1px solid var(--avi-fb-border) !important;
	border-radius: 14px;
	box-shadow: var(--avi-fb-glow);
}
body .avi-landing-card.avi-landing-card--featured:hover { border-color: #7fc3e0 !important; }

/* ---------- Similar jobs on a job page (single-avi_job.php avijs_render_compact_card) ---------- */
body .avijs-related-card.avijs-related-card--featured {
	--avi-fb-py: 14px; --avi-fb-px: 16px; --avi-fb-r: 9px;
	overflow: hidden; /* v3: keep the outline whole */
	padding-left: 16px;                       /* the old gold left bar is replaced by the band */
	border: 1px solid var(--avi-fb-border);
	box-shadow: var(--avi-fb-glow);
}
body .avijs-related-card--featured .avi-pband { margin-bottom: 10px; padding-top: 8px; padding-bottom: 8px; }

/* ---------- Job page: the header (title, employer, meta, chips) in a featured card with the band on top ---------- */
body.single-avi_job .avijs-fcard {
	--avi-fb-py: 20px; --avi-fb-px: 24px; --avi-fb-r: 13px;
	overflow: hidden; /* v3: keep the outline whole */
	margin: 0 0 22px;
	padding: 20px 24px;
	background: var(--av-surface, #0f1f36);
	border: 1px solid var(--avi-fb-border);
	border-radius: 14px;
	box-shadow: var(--avi-fb-glow);
}
body.single-avi_job .avijs-fcard > .avijs-band.avijs-band--featured { margin-bottom: 18px; }
body.single-avi_job .avijs-fcard > .avijs-chips { margin-bottom: 0; }
@media (max-width: 640px) {
	body.single-avi_job .avijs-fcard { --avi-fb-py: 16px; --avi-fb-px: 16px; padding: 16px; }
}

/* ---------- Board detail pane: the band already runs edge to edge across the pane top ---------- */
/* v3 (owner INBOX #47): a featured job's pane gets the card's light-blue outline + glow all the way round; the pane
   clips its content to its radius, so the band sits inside the outline. */
@media (min-width: 1024px) {
	body.aviju-page .aviju-detail.aviju-detail:has(.aviju-detail__inner--featured) { /* class doubled: outranks the theme's teal rule */
		border: 1px solid var(--avi-fb-border); box-shadow: var(--avi-fb-glow); overflow: hidden;
	}
}
body.aviju-page .aviju-detail__inner > .aviju-detail__band.aviju-detail__band--featured { margin: 0 -40px 28px; padding: 12px 40px; border-radius: 0; }
@media (max-width: 1279px) and (min-width: 1024px) {
	body.aviju-page .aviju-detail__inner > .aviju-detail__band.aviju-detail__band--featured { margin-left: -28px; margin-right: -28px; padding-left: 28px; padding-right: 28px; }
}
@media (max-width: 1023px) {
	body.aviju-page .aviju-detail__inner > .aviju-detail__band.aviju-detail__band--featured { margin: -20px -16px 18px; padding: 10px 16px; }
}

/* ---------- Featured employer's own logo on its cards (owner INBOX #64.7, 2026-10-20; inc/avi-employer-showcase.php) ----------
   Board cards (job.showcaseLogo) and landing cards: a small white tile before the employer name. */
body.aviju-page .aviju-card .aviju-card__sclogo,
.avi-landing-card .avisc-cardlogo {
	display: inline-block; vertical-align: middle; height: 22px; width: auto; max-width: 72px; object-fit: contain;
	margin: -2px 8px 0 0; padding: 2px 4px; border-radius: 4px; background: #fff; box-sizing: content-box;
}

/* ---------- Employer logo tile on every job card (owner 2026-10-26; inc/avi-job-card-logo.php) ----------
   Board cards (JS + server placeholder cards), landing / employer / province pages, alert matches, "Similar jobs".
   Fixed 56 x 26 box (image box 48 x 20, matching the <img> width/height), so a card never changes height while the
   logo loads or when an employer has no logo. Background per Logo review: light = white tile, dark = dark tile,
   none = as-is. No logo = the employer's initials on a neutral tile of the same size. Featured employers' own
   showcase logo (.aviju-card__sclogo / .avisc-cardlogo, above) is unchanged. */
.avi-jlogo {
	display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
	width: 56px; height: 26px; padding: 3px 4px; box-sizing: border-box; overflow: hidden;
	margin: -2px 8px 0 0; vertical-align: middle; border-radius: 5px;
	background: #fff; border: 1px solid rgba(255, 255, 255, .14);
}
.avi-jlogo > img { display: block; width: 48px; height: 20px; max-width: none; object-fit: contain; }
.avi-jlogo--dark { background: #0b1a2e; border-color: rgba(255, 255, 255, .18); }
.avi-jlogo--none { background: transparent; border-color: transparent; }
.avi-jlogo--initials {
	background: rgba(148, 167, 190, .14); border-color: rgba(148, 167, 190, .28); color: #c9d4e2;
	font: 700 11px/1 'DM Sans', sans-serif; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
/* Dense desktop list: the meta row is one nowrap line — keep the tile on its baseline. */
body.aviju-page .aviju-card__employer .avi-jlogo { vertical-align: middle; }

/* ==========================================================================
   Job cards (owner INBOX #270, 2026-11-01): NEW = an amber outline pill (first seen <= 3 days; #278: top-right corner, see below);
   the real closing date under the pay: slate "Closes Nov 30", amber within 7 days ("Closes in 3 days"). Contrast on
   the card #0f1f36: amber #e9a53a 7.8:1, slate #9fb1c8 7.6:1. inc/avi-job-card-flags.php + the board script.
   ========================================================================== */
.avi-card-new,
body.aviju-page .aviju-card .aviju-card__chip.avi-card-new,
body.aviju-page .aviju-card--row .aviju-card__chip.avi-card-new, /* beats avi-jobs-theme.css row chips (0,3,1) */
body.single-avi_job .avijs-related-card .avi-card-new,
.avi-landing-card .avi-landing-chip.avi-card-new {
	background: transparent !important; border: 1px solid #e9a53a !important; color: #e9a53a !important;
	font-weight: 700 !important; letter-spacing: .06em; text-transform: uppercase;
}
.avi-card-closes { margin-top: 3px; font-size: 13px; line-height: 1.3; font-weight: 500; color: #9fb1c8; }
.avi-card-closes.is-soon { color: #e9a53a; font-weight: 600; }
body.aviju-page .aviju-card .aviju-card__closes.avi-card-closes { display: block; }
body.single-avi_job .avijs-related-card__salary .avi-card-closes { text-align: inherit; }

/* Owner INBOX #278 (2026-11-01): NEW (first seen <= 3 days) leaves the pills row for the card's top-right corner:
   desktop rows = above the pay in the right column; phone cards, landing / employer cards = floated into the top-right
   corner beside the title; Similar jobs = right end of the title row. Same amber outline pill. */
.avi-card-new.aviju-card__new,
.avi-card-new.avi-landing-card-new,
.avi-card-new.avijs-related-card__new {
	display: inline-block; box-sizing: border-box; padding: 1px 7px; border-radius: 6px;
	font-size: 11px; line-height: 16px; white-space: nowrap;
}
body.aviju-page .aviju-card--row .aviju-card__side > .aviju-card__new { margin: 0 0 4px; }
body.aviju-page .aviju-card:not(.aviju-card--row) > .aviju-card__new,
.avi-landing-card .avi-landing-card-new { float: right; margin: 1px 0 4px 10px; position: relative; z-index: 1; }
body.single-avi_job .avijs-related-card__row1 > .avijs-related-card__new { flex: 0 0 auto; align-self: flex-start; }

/* ==========================================================================
   Phone job cards, logo first (owner INBOX #333, 2026-11-02). < 768 px only; desktop unchanged.
   Board / role boards / alert pages (assets/js/avi-jobs-unified.js renderCard(): .aviju-card--phone .aviju-pc) and the
   server-drawn landing / employer / province cards (inc/avi-landing-pages.php: .avi-landing-card + .avi-ptile).
   Row: a fixed 48 x 48 logo tile (10 px radius, the logo contained with 8 px padding), then title (17 px bold white),
   company (15 px bold gold), "place · Closes …" (14 px grey, one line), pay (14 px bold white), small outline pills
   (12 px); NEW top-right. Rows split by a 1 px #1f3354 line, 18 px top / bottom; Featured keeps its band + frame.
   Tile: dark #0f1e38 + 1 px #2a4266, or soft #eef2f6 for a logo that disappears on dark (decided once per company,
   inc/avi-logo-tile.php); no logo = initials, Bebas, white, on the dark tile.
   ========================================================================== */
.avi-ptile, .avi-landing-card-pline, .avi-landing-card-ppay { display: none; }
@media (max-width: 767px) {
	.avi-ptile {
		display: inline-flex; align-items: center; justify-content: center; flex: 0 0 48px;
		width: 48px; height: 48px; padding: 8px; box-sizing: border-box; overflow: hidden; border-radius: 10px;
		background: #0f1e38; border: 1px solid #2a4266;
	}
	.avi-ptile > img { display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; }
	.avi-ptile--light { background: #eef2f6; border-color: #eef2f6; }
	.avi-ptile--initials {
		color: #ffffff; font-family: 'Bebas Neue', 'DM Sans', sans-serif; font-size: 20px; line-height: 1; letter-spacing: .04em;
		white-space: nowrap; padding: 4px;
	}

	/* ---- Board cards ---- */
	body.aviju-page .aviju-mobile-list .aviju-card-wrap { margin: 0; }
	body.aviju-page .aviju-card.aviju-card--phone:not(.aviju-card--premium) {
		background: transparent !important; border: 0 !important; border-bottom: 1px solid #1f3354 !important;
		border-radius: 0 !important; box-shadow: none !important; margin: 0 !important; padding: 18px 0 !important;
	}
	body.aviju-page .aviju-card.aviju-card--phone:not(.aviju-card--premium):hover,
	body.aviju-page .aviju-card.aviju-card--phone:not(.aviju-card--premium).is-active { background: rgba(31, 51, 84, .25) !important; }
	body.aviju-page .aviju-card.aviju-card--phone.aviju-card--premium { margin: 12px 0 !important; }
	body.aviju-page .aviju-card.aviju-card--phone:focus-visible { outline: 2px solid #e8a020; outline-offset: -2px; }
	body.aviju-page .aviju-card--phone .aviju-pc { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
	body.aviju-page .aviju-card--phone.aviju-card--premium .aviju-pc { padding: 0; } /* the Featured card keeps its own padding */
	body.aviju-page .aviju-card--phone .aviju-pc__logo { flex: 0 0 48px; display: block; line-height: 0; }
	body.aviju-page .aviju-card--phone .aviju-pc__main { flex: 1 1 auto; min-width: 0; }
	body.aviju-page .aviju-card--phone .aviju-pc__main > .aviju-card__new { float: right; margin: 2px 0 4px 10px; position: relative; z-index: 1; }
	body.aviju-page .aviju-card--phone .aviju-card__title {
		margin: 0 0 3px !important; font-size: 17px !important; line-height: 1.3 !important; font-weight: 700 !important; color: #ffffff !important;
		overflow-wrap: anywhere; white-space: normal;
	}
	body.aviju-page .aviju-card--phone .aviju-card__employer {
		display: block; margin: 0 0 3px; font-size: 15px !important; line-height: 1.3; font-weight: 700 !important; color: var(--brand-gold, #e8a020) !important;
		overflow-wrap: anywhere;
	}
	body.aviju-page .aviju-card--phone .aviju-pc__line { margin: 0; font-size: 14px; line-height: 1.4; color: #9fb1c8; white-space: normal; overflow-wrap: anywhere; } /* #353: may wrap (several places + Closes) */
	body.aviju-page .aviju-card--phone .aviju-pc__line .avi-card-closes { white-space: nowrap; }
	body.aviju-page .aviju-card--phone .aviju-pc__line .aviju-card__loc { color: inherit; font-size: inherit; }
	body.aviju-page .aviju-card--phone .aviju-pc__line .avi-card-closes { display: inline; margin: 0; font-size: inherit; }
	body.aviju-page .aviju-card--phone .aviju-pc__line .avi-card-closes.is-soon { color: #e9a53a; }
	body.aviju-page .aviju-card--phone .aviju-card__salary { display: -webkit-box !important; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin: 4px 0 0 !important; font-size: 14px !important; line-height: 1.35 !important; font-weight: 700 !important; color: #ffffff !important; }
	body.aviju-page .aviju-card--phone .avim-card-footer { display: none !important; }
	body.aviju-page .aviju-card--phone .aviju-card__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0 !important; }
	body.aviju-page .aviju-card--phone .aviju-card__chips > *,
	body .avi-landing-card .avi-landing-chip { max-width: 100%; box-sizing: border-box; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	body.aviju-page .aviju-card--phone .aviju-card__chip {
		font-size: 12px !important; line-height: 1.3 !important; padding: 2px 8px !important; border-radius: 6px !important;
		background: transparent !important; border: 1px solid #2a4266 !important; color: #c9d6e4 !important;
	}
	body.aviju-page .aviju-card--phone .aviju-card__posted { margin: 6px 0 0; font-size: 13px; color: #9fb1c8; text-align: left; }

	/* ---- Landing / employer / province cards ---- */
	body .avi-landing-grid .avi-landing-card:not(.avi-landing-card--featured) {
		background: transparent !important; border: 0 !important; border-bottom: 1px solid #1f3354 !important;
		border-radius: 0 !important; box-shadow: none !important; padding: 18px 0 !important; margin: 0 !important;
	}
	body .avi-landing-card .avi-landing-card-link {
		display: grid !important; grid-template-columns: 48px minmax(0, 1fr); column-gap: 14px; row-gap: 0 !important; align-items: start;
	}
	body .avi-landing-card .avi-landing-card-link > * { grid-column: 2; min-width: 0; }
	body .avi-landing-card .avi-landing-card-link > .avi-pband { grid-column: 1 / -1; }
	body .avi-landing-card .avi-landing-card-link > .avi-ptile { grid-column: 1; grid-row: 2 / span 8; }
	body .avi-landing-card:not(.avi-landing-card--featured) .avi-landing-card-link > .avi-ptile { grid-row: 1 / span 8; }
	/* NEW shares the title's cell, top-right (row 1; row 2 under a Featured band). */
	body .avi-landing-card .avi-landing-card-link > .avi-landing-card-new,
	body .avi-landing-card .avi-landing-card-link > .avi-landing-card-title { grid-row: 1; }
	body .avi-landing-card--featured .avi-landing-card-link > .avi-landing-card-new,
	body .avi-landing-card--featured .avi-landing-card-link > .avi-landing-card-title { grid-row: 2; }
	body .avi-landing-card .avi-landing-card-link > .avi-landing-card-new { justify-self: end; align-self: start; float: none; margin: 2px 0 0; }
	body .avi-landing-card .avi-landing-card-title { margin: 0 0 3px !important; font-size: 17px !important; line-height: 1.3 !important; font-weight: 700 !important; color: #ffffff !important; overflow-wrap: anywhere; padding-right: 52px; }
	body .avi-landing-card .avi-landing-card-employer { font-size: 15px !important; font-weight: 700 !important; color: var(--brand-gold, #e8a020) !important; margin: 0 0 3px !important; overflow-wrap: anywhere; }
	body .avi-landing-card .avi-landing-card-employer .avi-jlogo,
	body .avi-landing-card .avi-landing-card-employer .avisc-cardlogo,
	body .avi-landing-card .avi-landing-card-location,
	body .avi-landing-card .avi-landing-card-link > .avi-landing-card-closes { display: none !important; }
	body .avi-landing-card .avi-landing-card-pline { display: block; font-size: 14px; line-height: 1.4; color: #9fb1c8; white-space: normal; overflow-wrap: anywhere; }
	body .avi-landing-card .avi-landing-card-pline .avi-card-closes { display: inline; margin: 0; font-size: inherit; }
	body .avi-landing-card .avi-landing-card-pline .avi-card-closes.is-soon { color: #e9a53a; }
	body .avi-landing-card .avi-landing-card-ppay { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin: 4px 0 0; font-size: 14px; line-height: 1.35; font-weight: 700; color: #ffffff; }
	body .avi-landing-card .avi-landing-card-link { padding: 0 !important; }
	body .avi-landing-card .avi-landing-card-chips { margin: 8px 0 0 !important; min-width: 0; }
	body .avi-landing-grid { row-gap: 0 !important; } /* rows touch: the 1 px line is the only divider */
	body .avi-landing-card .avi-landing-chip { font-size: 12px !important; padding: 2px 8px !important; border-radius: 6px !important; background: transparent !important; border: 1px solid #2a4266 !important; color: #c9d6e4 !important; }
	body .avi-landing-card .avi-landing-card-call { grid-column: auto; margin-left: 62px !important; }
}
