/* ==========================================================================
   Job board (2026-09)
   The Nexus IT Group board, rebuilt in Advastar's tokens: the redesign's blue
   and sky, Roboto, 20px bands and 5px cards like the rest of the site.
   Board:  template-job-board.php     Role: single-adv_job.php
   ========================================================================== */

.adv-board-wrapper,
.adv-job-wrapper {
	--adv-brand: var(--rd-blue, #3454D1);
	--adv-brand-dark: #2842A8;
	--adv-brand-wash: #EEF2FD;
	--adv-sky: var(--rd-sky, #3CB7FF);
	--adv-ink: var(--rd-ink, #212121);
	--adv-muted: var(--rd-muted, #626A74);
	--adv-faint: #8A919E;
	--adv-line: var(--rd-line, #D9D9D9);
	--adv-wash: #F7F8FA;
	--adv-paper: #fff;
	--adv-radius: 20px;
	color: var(--adv-ink);
	padding-bottom: 80px;
}

/* ------------------------------------------------------------------ board */
/* The heading moved into the banner, so the panel is the first thing under it. */
.adv-board-wrapper .adv-panel:first-of-type { margin-top: 34px; }
.adv-board-head { padding: 26px 0 0; max-width: 820px; }
.adv-eyebrow {
	font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
	font-weight: 700; color: var(--adv-brand); margin: 0 0 10px;
}
.adv-board-title { font-size: clamp(28px, 1.4rem + 2vw, 44px); line-height: 1.15; font-weight: 700; margin: 0; }
.adv-lede { font-size: 18px; line-height: 1.6; color: var(--adv-muted); margin: 0; max-width: 62ch; }

.adv-panel {
	margin: 28px 0 0; padding: 22px; background: var(--adv-paper);
	border: 1px solid var(--adv-line); border-radius: var(--adv-radius);
	box-shadow: 0 1px 2px rgba(20, 30, 50, .04), 0 8px 24px rgba(20, 30, 50, .05);
}
.adv-searchbox { position: relative; display: flex; align-items: center; gap: 10px;
	border: 1px solid var(--adv-line); border-radius: 100px; padding: 0 18px; background: var(--adv-wash); }
.adv-searchbox svg { color: var(--adv-muted); flex: none; }
/* The label names the field for a screen reader; the placeholder is what a sighted visitor reads. */
.adv-sr {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.adv-searchbox input {
	flex: 1; border: 0; background: none; padding: 14px 0; font-size: 18px; color: var(--adv-ink);
	outline: none; min-width: 0;
}
.adv-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; align-items: end; }
.adv-field label { display: block; font-size: 13px; font-weight: 600; color: var(--adv-muted); margin-bottom: 6px; }
.adv-multi { position: relative; }
/* The chevron is a flex item rather than an absolutely positioned pseudo-element, so it centres on
   the label's line by itself at any font size. The -3px lifts the rotated square's tip onto the
   text's centre: rotating it moves its visual weight down by half the border width. */
.adv-multi-btn {
	width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
	text-align: left; background: var(--adv-paper); border: 1px solid var(--adv-line);
	border-radius: 10px; padding: 12px 14px; font-size: 16px; color: var(--adv-ink); cursor: pointer;
}
.adv-multi-btn::after {
	content: ""; flex: none; width: 8px; height: 8px; margin-top: -3px;
	border-right: 2px solid var(--adv-muted); border-bottom: 2px solid var(--adv-muted);
	transform: rotate(45deg);
}
.adv-multi-btn[aria-expanded="true"] { border-color: var(--adv-brand); box-shadow: 0 0 0 3px var(--adv-brand-wash); }
.adv-multi-panel {
	position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); max-height: 320px; overflow: auto;
	background: var(--adv-paper); border: 1px solid var(--adv-line); border-radius: 12px; padding: 8px;
	box-shadow: 0 8px 28px rgba(20, 30, 50, .14);
}
.adv-multi-bulk { display: flex; gap: 8px; padding: 4px 6px 8px; border-bottom: 1px solid var(--adv-line); margin-bottom: 6px; }
.adv-multi-bulk button {
	background: none; border: 0; padding: 4px 6px; font-size: 13px; font-weight: 600;
	color: var(--adv-brand); cursor: pointer; border-radius: 6px;
}
.adv-multi-bulk button:hover { background: var(--adv-brand-wash); }
.adv-check-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px; border-radius: 8px; }
.adv-check-row:hover { background: var(--adv-wash); }
/* main.css lays every form label out as a block, which drops the label text under its checkbox.
   These rules are scoped to the board and are the only place the file has to out-shout the theme. */
.adv-board-wrapper label.adv-check {
	display: flex !important; align-items: center; gap: 10px; font-size: 15px; line-height: 1.3;
	cursor: pointer; margin: 0 !important; padding: 0 !important; color: var(--adv-ink); font-weight: 400;
}
.adv-board-wrapper .adv-check input[type="checkbox"] {
	width: 17px; height: 17px; min-width: 17px; margin: 0 !important; accent-color: var(--adv-brand);
	align-self: center; flex: none;
}
.adv-board-wrapper .adv-check span { display: block; margin: 0 !important; }
/* only / except are always visible: a control nobody can see is a control nobody uses. */
.adv-check-acts { display: flex; gap: 4px; flex: none; }
.adv-check-acts button {
	background: none; border: 1px solid transparent; font-size: 12px; color: var(--adv-muted);
	cursor: pointer; padding: 3px 8px; border-radius: 100px; line-height: 1.2;
}
.adv-check-acts button:hover,
.adv-check-acts button:focus-visible { background: var(--adv-brand-wash); border-color: #D8E0F8; color: var(--adv-brand); }
.adv-clear {
	grid-column: 1 / -1; justify-self: start; background: none; border: 0; padding: 6px 0;
	font-size: 15px; font-weight: 600; color: var(--adv-brand); cursor: pointer;
}

/* Not .adv-bar: EasyList hides that class name on every site, so ad-blocking visitors lost the
   count row and the gap it holds between the filters and the cards. */
.adv-tally { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 44px 0 16px; }
.adv-count { margin: 0; font-size: 17px; color: var(--adv-muted); }
.adv-count strong { color: var(--adv-ink); }
.adv-sortnote { margin: 0; font-size: 14px; color: var(--adv-faint); }

.adv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.adv-card {
	position: relative;   /* the title's link is stretched over the whole card, see below */
	display: flex; flex-direction: column; gap: 8px; padding: 22px; background: var(--adv-paper);
	border: 1px solid #C9D0D6; border-radius: 5px; transition: box-shadow .2s, transform .2s, border-color .2s;
}
/* A card that looks clickable has to be clickable: the title's own link covers it, and everything
   that sits above it (the View role button) keeps its own click. */
.adv-card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.adv-card:hover { cursor: pointer; }
.adv-card .adv-apply, .adv-card .adv-posted { position: relative; z-index: 2; }
/* Hiding a card is `hidden`, and a display rule beats the browser's default for it. */
.adv-card[hidden], .adv-empty[hidden], .adv-multi-panel[hidden] { display: none !important; }
.adv-card:hover { border-color: var(--adv-brand); box-shadow: 0 8px 24px rgba(20, 30, 50, .08); transform: translateY(-2px); }
.adv-ind { margin: 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--adv-brand); }
.adv-card-title { margin: 0; font-size: 19px; line-height: 1.3; font-weight: 700; }
.adv-card-title a { color: var(--adv-ink); text-decoration: none; }
.adv-card-title a:hover { color: var(--adv-brand); }
.adv-where { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 15px; color: var(--adv-muted); }
.adv-where svg { flex: none; color: var(--adv-faint); }
.adv-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.adv-chip { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 100px; background: #EFF1F4; color: #4B5563; }
.adv-direct { color: var(--adv-brand); background: var(--adv-brand-wash); }
.adv-contract { color: #7A3E9D; background: #F4ECFA; }
.adv-chip--role { background: var(--adv-wash); color: var(--adv-muted); }
.adv-pay { margin: 0; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.adv-pay.adv-none, .adv-excerpt.adv-none { font-weight: 400; color: var(--adv-faint); }
.adv-excerpt { margin: 0; font-size: 15px; line-height: 1.55; color: #3A3F49; }
.adv-foot { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 12px; }
.adv-apply {
	display: inline-block; background: var(--adv-brand); color: #fff !important; text-decoration: none !important;
	border-radius: 100px; padding: 10px 20px; font-size: 15px; font-weight: 600;
}
.adv-apply:hover { background: var(--adv-brand-dark); }
.adv-posted { font-size: 13px; color: var(--adv-faint); }

.adv-empty {
	grid-column: 1 / -1; text-align: center; padding: 50px 22px; background: var(--adv-paper);
	border: 1px dashed var(--adv-line); border-radius: var(--adv-radius);
}
.adv-empty h3 { margin: 0 0 8px; font-size: 22px; }
.adv-empty p { margin: 0 auto 18px; max-width: 46ch; color: var(--adv-muted); }

.adv-resume { margin-top: 70px; }

/* ------------------------------------------------------------- role page */
.adv-crumb { margin: 30px 0 18px; font-size: 15px; }
/* A text link is still a tap target: these two are the way back and the way to the resume form. */
.adv-crumb a { display: inline-block; padding: 8px 0; color: var(--adv-brand); text-decoration: none; }
.adv-job-aside-note a { display: inline-block; padding: 8px 0; }
.adv-job-layout { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 34px; align-items: start; }
.adv-job-side { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 18px; }
.adv-job-card, .adv-job-aside-note, .adv-job-main, .adv-applyform {
	background: var(--adv-paper); border: 1px solid var(--adv-line); border-radius: var(--adv-radius); padding: 24px;
}
.adv-job-card { border-color: #C9D0D6; border-radius: 5px; }
.adv-fact { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--adv-line); }
.adv-fact:last-of-type { border-bottom: 0; }
.adv-fact-k { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--adv-faint); font-weight: 700; }
.adv-fact-v { font-size: 15px; text-align: right; font-weight: 600; }
.adv-apply-big { display: block; text-align: center; margin-top: 16px; padding: 14px 20px; font-size: 16px; }
.adv-job-aside-note h2 { font-size: 18px; margin: 0 0 8px; }
.adv-job-aside-note p { font-size: 15px; color: var(--adv-muted); margin: 0 0 10px; }
.adv-job-aside-note a { color: var(--adv-brand); font-weight: 600; }
.adv-job-main { padding: 34px; }
.adv-job-head h1 { font-size: clamp(26px, 1.3rem + 1.6vw, 34px); line-height: 1.2; margin: 6px 0 12px; }
.adv-job-body { margin-top: 22px; font-size: 16px; line-height: 1.75; }
.adv-job-body .adv-none { color: var(--adv-faint); }
.adv-applyform { grid-column: 2; padding: 30px 34px; }
.adv-applyform h2 { margin: 0 0 18px; font-size: 24px; }
.adv-applyband { margin-top: 60px; }
.adv-filled-flag { margin: 16px 0 0; font-weight: 700; color: #8E2A2A; }
.adv-filled-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 18px 0 0; }
.adv-filled-alt { color: var(--adv-brand); font-weight: 600; }
.adv-msg { border-radius: 10px; padding: 14px 16px; font-size: 16px; }
.adv-msg-ok { background: #E6F4F0; color: #0B5F4E; border: 1px solid #BFE3D9; }
.adv-msg-bad { background: #FBECEC; color: #8E2A2A; border: 1px solid #F0CDCD; }

/* ---------------------------------------------------------- breakpoints */
@media (max-width: 1199px) {
	.adv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.adv-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
	.adv-job-layout { grid-template-columns: 1fr; }
	.adv-job-side { position: static; order: 2; }
	.adv-applyform { grid-column: 1; order: 3; }
	/* On one column the sidebar would come first, so a phone opened on "PAY $65,000" before it
	   said which job that was. The brief leads; the facts and the aside note follow it. */
	.adv-job-main { order: 1; }
}
@media (max-width: 767px) {
	.adv-grid { grid-template-columns: 1fr; }
	.adv-filters { grid-template-columns: 1fr; }
	.adv-board-head { padding-top: 26px; }
	.adv-panel { padding: 16px; }
	.adv-job-main, .adv-applyform { padding: 22px; }
	.adv-multi-panel { max-height: 260px; }
	.adv-fact-v { text-align: left; }
	.adv-fact { flex-direction: column; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
	.adv-card { transition: none; }
	.adv-card:hover { transform: none; }
}
