/**
 * PERPI Job Board. Uses the PERPI theme's tokens when present (light and
 * dark), with fallbacks so it also works under other themes.
 */
.pjb {
	--pjb-ink: var(--ink, #141413); --pjb-muted: var(--muted, #4A4A47); --pjb-subtle: var(--subtle, #8A8A85);
	--pjb-line: var(--line, #E1E1DE); --pjb-line-2: var(--line-2, #EFEFED); --pjb-surface: var(--surface-2, #fff);
	--pjb-sunken: var(--sunken, #F7F7F6); --pjb-tint: var(--tint, #FEF3EA); --pjb-accent: var(--perpi-orange, #F47015);
	--pjb-accent-strong: var(--accent-strong, #B44D08); --pjb-green: var(--perpi-green, #35752A);
	color: var(--pjb-ink); font-size: 14px; line-height: 1.55;
}
.pjb p { margin: 0; }

/* Toolbar */
.pjb-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.pjb-count { font-weight: 600; color: var(--pjb-muted); }
.pjb-back { font-weight: 600; }
.pjb-print { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border: 1.5px solid var(--pjb-accent); border-radius: 10px; background: transparent; color: var(--pjb-accent-strong); font: 600 14px/1 inherit; font-family: inherit; cursor: pointer; }
.pjb-print:hover { background: var(--pjb-tint); }
.pjb-notice { margin-bottom: 20px !important; padding: 12px 16px; border-left: 4px solid var(--up-maroon, #7B1113); border-radius: 10px; background: var(--pjb-sunken); }

/* Form header (mirrors the top of CS Form No. 9) */
.pjb-form { border: 1px solid var(--pjb-line); border-radius: 18px; background: var(--pjb-surface); overflow: hidden; }
.pjb-form__head { position: relative; padding: 24px 24px 18px; text-align: center; border-bottom: 1px solid var(--pjb-line); }
.pjb-form__agency { font-size: 12.5px; line-height: 1.5; color: var(--pjb-muted); }
.pjb-form__agency br + * { font-weight: 600; }
.pjb-form__title { margin: 8px 0 0; font-size: clamp(20px, 2vw, 26px); line-height: 1.2; text-transform: uppercase; letter-spacing: -.01em; color: var(--pjb-ink); }
.pjb-form__date { margin-top: 10px !important; font-size: 13px; color: var(--pjb-muted); }
@media (min-width: 900px) { .pjb-form__date { position: absolute; right: 24px; bottom: 18px; margin: 0 !important; } }

/* The table */
.pjb-table-wrap { overflow-x: auto; }
.pjb-table { width: 100%; border-collapse: collapse; font-size: 12.5px; line-height: 1.5; }
.pjb-table th, .pjb-table td { padding: 10px 12px; border: 1px solid var(--pjb-line); vertical-align: top; text-align: left; }
.pjb-table tr > :first-child { border-left: 0; }
.pjb-table tr > :last-child { border-right: 0; }
.pjb-table thead th { background: var(--pjb-sunken); font-size: 11.5px; font-weight: 700; letter-spacing: .02em; color: var(--pjb-ink); vertical-align: middle; text-align: center; }
.pjb-table thead th span { display: block; font-weight: 500; color: var(--pjb-muted); }
.pjb-table thead tr:first-child th { border-top: 0; }
.pjb-col-qs { color: var(--pjb-accent-strong) !important; letter-spacing: .12em !important; text-transform: uppercase; }
.pjb-col-no { width: 40px; text-align: center !important; }
.pjb-col-title { min-width: 170px; }
.pjb-col-comp { min-width: 260px; }
.pjb-center { text-align: center !important; }
.pjb-nowrap { white-space: nowrap; }
.pjb-table td p + p { margin-top: 6px; }
.pjb-title { display: block; font-size: 14px; line-height: 1.35; }
.pjb-title a { color: var(--pjb-ink); text-decoration: none; }
.pjb-title a:hover { color: var(--pjb-accent); }
.pjb-paren { display: block; margin-top: 2px; color: var(--pjb-muted); }
.pjb-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.pjb-tag { padding: 2px 8px; border-radius: 999px; background: var(--pjb-sunken); font-size: 11px; font-weight: 600; color: var(--pjb-muted); }
.pjb-tag--open { background: rgba(53, 117, 42, .12); color: var(--pjb-green); }
.pjb-tag--closed { background: var(--pjb-line-2); }
.pjb-deadline { display: block; margin-top: 8px; font-weight: 600; color: var(--pjb-accent-strong); }
.pjb-place { font-weight: 600; }
.pjb-desc td { background: var(--pjb-tint); font-size: 13px; }
.pjb-vacancy + .pjb-vacancy tr:first-child td { border-top: 2px solid var(--pjb-line); }
.pjb-vacancy.is-closed { opacity: .75; }

/* Phones and tablets: each vacancy becomes a card. */
@media (max-width: 999px) {
	.pjb-table, .pjb-table tbody, .pjb-table tr, .pjb-table td { display: block; width: 100%; }
	.pjb-table thead { display: none; }
	.pjb-table td { border: 0; border-bottom: 1px solid var(--pjb-line-2); padding: 10px 16px; }
	.pjb-table td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pjb-subtle); }
	.pjb-table td.pjb-col-no { display: none; }
	.pjb-table td.pjb-col-title::before { display: none; }
	.pjb-table td.pjb-col-title { padding-top: 16px; background: var(--pjb-sunken); }
	.pjb-col-title, .pjb-col-comp { min-width: 0; }
	.pjb-center { text-align: left !important; }
	.pjb-vacancy { display: block; border-bottom: 6px solid var(--pjb-line-2); }
	.pjb-vacancy + .pjb-vacancy tr:first-child td { border-top: 0; }
}

/* How to apply */
.pjb-apply { margin-top: 40px; padding: clamp(24px, 3vw, 36px); border-radius: 22px; background: var(--pjb-sunken); }
.pjb-apply__title, .pjb-closed__title { margin: 0 0 16px; font-size: clamp(22px, 2.2vw, 28px); text-transform: uppercase; color: var(--pjb-ink); }
.pjb-apply__grid { display: grid; gap: 28px 48px; font-size: 14.5px; line-height: 1.7; }
@media (min-width: 900px) { .pjb-apply__grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }
.pjb-apply__docs { margin: 14px 0 0; padding-left: 20px; }
.pjb-apply__docs li { margin-bottom: 6px; }
.pjb-apply__note { margin-top: 14px !important; font-weight: 600; color: var(--pjb-accent-strong); }
.pjb-apply__contact { display: flex; flex-direction: column; gap: 2px; padding: 18px 20px; border-radius: 16px; background: var(--pjb-surface); }
.pjb-apply__label { margin-bottom: 6px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--pjb-accent); }
.pjb-apply__contact a { font-weight: 600; }
.pjb-apply__small { margin-top: 14px !important; font-size: 12.5px; line-height: 1.6; color: var(--pjb-muted); }

/* Recently closed + empty */
.pjb-closed { margin-top: 48px; }
.pjb-closed__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--pjb-line); }
.pjb-closed__list li { display: grid; gap: 4px 24px; padding: 14px 0; border-bottom: 1px solid var(--pjb-line); color: var(--pjb-muted); }
@media (min-width: 700px) { .pjb-closed__list li { grid-template-columns: minmax(0, 1fr) 220px 160px; } }
.pjb-closed__list a { font-weight: 600; color: var(--pjb-ink); }
.pjb-empty { padding: 32px; border-radius: 22px; background: var(--pjb-sunken); font-size: 15px; }
.pjb-empty p + p { margin-top: 6px; color: var(--pjb-muted); font-size: 14px; }
.pjb-page-head { padding: 48px 20px 0; max-width: 1280px; margin: 0 auto; }

/* Print: just the form, landscape, like the paper CS Form No. 9. */
@media print {
	@page { size: A4 landscape; margin: 12mm; }
	body * { visibility: hidden; }
	.pjb, .pjb * { visibility: visible; }
	.pjb { position: absolute; left: 0; top: 0; width: 100%; color: #000; }
	.pjb-toolbar, .pjb-closed, .pjb-print, .pjb-tags { display: none !important; }
	.pjb-form { border: 0; border-radius: 0; }
	.pjb-table, .pjb-table tbody, .pjb-table tr { display: table-row-group; }
	.pjb-table { display: table; font-size: 9.5pt; }
	.pjb-table thead { display: table-header-group; }
	.pjb-table tr { display: table-row; }
	.pjb-table td, .pjb-table th { display: table-cell; border: 1px solid #000 !important; color: #000; background: none !important; }
	.pjb-table td::before { display: none; }
	.pjb-table td.pjb-col-no { display: table-cell; }
	.pjb-vacancy { break-inside: avoid; }
	.pjb-apply { background: none; padding: 12px 0 0; break-inside: avoid; }
	.pjb-title a { color: #000; }
}

/* Online application form (shared "pform" look with the procurement plugin) */
.pjb-apply-link { display: inline-block; margin-top: 8px; font-weight: 600; }
.pform { --f-ink: var(--ink, #141413); --f-muted: var(--muted, #4A4A47); --f-line: var(--line, #E1E1DE); --f-surface: var(--surface-2, #fff); --f-sunken: var(--sunken, #F7F7F6); --f-accent: var(--perpi-orange, #F47015); --f-strong: var(--accent-strong, #B44D08);
	margin-top: 40px; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--f-line); border-radius: 22px; background: var(--f-surface); color: var(--f-ink); scroll-margin-top: 130px; }
.pform__title { margin: 0 0 12px; font-size: clamp(22px, 2.2vw, 28px); text-transform: uppercase; color: var(--f-ink); }
.pform__steps { margin: 0 0 20px; padding-left: 20px; font-size: 14.5px; line-height: 1.7; color: var(--f-muted); }
.pform__msg { margin: 0 0 16px !important; padding: 12px 16px; border-radius: 12px; border-left: 4px solid var(--perpi-green, #35752A); background: var(--f-sunken); font-size: 14.5px; }
.pform__msg--error { border-left-color: var(--up-maroon, #7B1113); }
.pform__grid { display: grid; gap: 14px 20px; margin-bottom: 14px; }
@media (min-width: 640px) { .pform__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pform__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pform__grid p, .pform__full, .pform__consent { margin: 0 !important; }
.pform__full { margin-bottom: 14px !important; }
.pform label, .pform legend { display: block; font-size: 13px; font-weight: 600; color: var(--f-ink); }
.pform label span { color: var(--f-strong); }
.pform input[type="text"], .pform input[type="email"], .pform input[type="tel"], .pform input[type="url"], .pform input[type="number"], .pform textarea, .pform select { display: block; width: 100%; margin-top: 6px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--f-line); border-radius: 8px; background: var(--f-surface); color: var(--f-ink); font-family: inherit; font-size: 15px; }
.pform input:focus, .pform textarea:focus, .pform select:focus { outline: 0; border-color: var(--f-accent); box-shadow: 0 0 0 3px rgba(244, 112, 21, .2); }
.pform__help { display: block; margin-top: 6px; font-size: 12.5px; font-weight: 400; line-height: 1.55; color: var(--f-muted) !important; }
.pform__fieldset { margin: 0 0 14px; padding: 16px 18px; border: 1px solid var(--f-line); border-radius: 14px; }
.pform__fieldset legend { padding: 0 6px; }
.pform__checks { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.pform__checks label, .pform__consent label { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; font-weight: 400; line-height: 1.55; color: var(--f-muted); }
.pform__checks input, .pform__consent input { margin-top: 3px; flex-shrink: 0; accent-color: var(--f-accent); }
.pform__consent { margin-top: 10px !important; }
.pform__submit { margin-top: 20px; cursor: pointer; }
.pform-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media print { .pform { display: none !important; } }