/* ===========================================================
 * OS Skills Matching — front-end styles
 *
 * Loaded conditionally per surface (see includes/Assets.php):
 *   - /post-a-role/                vendor-gate states
 *   - /profile/<username>/         for-hire public panel
 *   - /dashboard/for-hire/         for-hire edit form
 *   - /hiring-dashboard/           suggested candidates panel
 *
 * Namespace: .osm-  (OS skills Matching). Distinct from .os-r- (mockup)
 * and .os-p- (training profile redesign) so this kit can't accidentally
 * collide with sibling plugins. All tokens local to .osm- scope.
 * =========================================================== */

.osm {
	/* tokens — matched to marketplace-home-mockup .os-r-* kit */
	--osm-primary:         #2F62AF;
	--osm-primary-dk:      #244c87;
	--osm-primary-soft:    rgba(47, 98, 175, 0.10);
	--osm-cyan:            #1FB5DA;
	--osm-cyan-soft:       rgba(31, 181, 218, 0.14);
	--osm-gold:            #fcb900;
	--osm-gold-soft:       rgba(252, 185, 0, 0.14);
	--osm-commerce:        #f59e0b;
	--osm-commerce-dk:     #c4790a;
	--osm-text:            #1e293b;
	--osm-muted:           #64748b;
	--osm-subtle:          #94a3b8;
	--osm-border:          #e5e7eb;
	--osm-panel:           #ffffff;
	--osm-bg:              #f7f8fb;
	--osm-bg-soft:         #fafbfd;
	--osm-dark:            #0d1b2e;
	--osm-dark-panel:      #16243d;
	--osm-up:              #22c55e;
	--osm-up-dk:           #15803d;
	--osm-down:            #ef4444;
	--osm-down-dk:         #b91c1c;
	--osm-shadow:          0 1px 3px rgba(15, 23, 42, 0.06);
	--osm-shadow-lg:       0 8px 24px rgba(15, 23, 42, 0.10);
	--osm-radius:          12px;
	--osm-radius-sm:       8px;
	--osm-on-primary:      #ffffff;

	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--osm-text);
	line-height: 1.55;
	font-feature-settings: "ss01", "cv11";
}

/* ─────────────────────────────── Dark ────────────────────────────────
 *
 * Keyed on Tutor's `data-tutor-theme`, which production sets ONLY on
 * dashboard pages. Verified: /profile/<user>/ renders `.osm` markup with
 * no theme attribute, so the public profile keeps the light palette.
 *
 * Covers the candidate-facing dashboard routes that use this kit:
 * for-hire, applications and document-access.
 *
 * `--osm-on-primary` exists because the dark primary is a LIGHT blue, so
 * a white label on it drops to about 2:1. Any rule painting
 * `--osm-primary` as a background must take its text colour from there.
 */
[data-tutor-theme="dark"] .osm {
	--osm-primary:         #96bdf2;
	--osm-primary-dk:      #bcd6f7;
	--osm-primary-soft:    rgba(150, 189, 242, 0.10);
	--osm-cyan:            #5fd0ea;
	--osm-cyan-soft:       rgba(95, 208, 234, 0.10);
	--osm-gold:            #ffc93c;
	--osm-gold-soft:       rgba(255, 201, 60, 0.10);
	--osm-commerce:        #fbbf24;
	--osm-commerce-dk:     #fcd34d;
	--osm-text:            #e6edf6;
	--osm-muted:           #9fb0c6;
	--osm-subtle:          #8b9bb0;
	--osm-border:          rgba(255, 255, 255, 0.10);
	--osm-panel:           #1c2333;
	--osm-bg:              #161b26;
	--osm-bg-soft:         #222a3c;
	--osm-up:              #4ade80;
	--osm-up-dk:           #86efac;
	--osm-down:            #f87171;
	--osm-down-dk:         #fca5a5;
	--osm-on-primary:      #10192b;
	--osm-shadow:          0 1px 3px rgba(0, 0, 0, 0.40);
	--osm-shadow-lg:       0 8px 24px rgba(0, 0, 0, 0.50);
}


.osm *,
.osm *::before,
.osm *::after { box-sizing: border-box; }

.osm a { color: var(--osm-primary); text-decoration: none; }
.osm a:hover { text-decoration: underline; }

/* ---------- shared atoms ---------- */

.osm-h1 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 6px; color: var(--osm-text); }
.osm-h2 { font-size: 1.25rem; font-weight: 700; margin: 0 0 8px; color: var(--osm-text); }
.osm-h3 { font-size: 1rem;     font-weight: 700; margin: 0 0 8px; color: var(--osm-text); }
.osm-h4 { font-size: 0.75rem;  font-weight: 700; color: var(--osm-muted); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 10px; }
.osm-lede { color: var(--osm-muted); font-size: 0.9375rem; margin: 0 0 18px; }
.osm-small { font-size: 0.8125rem; color: var(--osm-muted); }

.osm-card {
	background: var(--osm-panel);
	border: 1px solid var(--osm-border);
	border-radius: var(--osm-radius);
	box-shadow: var(--osm-shadow);
}
.osm-card-pad { padding: 24px 28px; }

.osm-section + .osm-section { margin-top: 22px; }

.osm-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.osm-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) {
	.osm-grid-2 { grid-template-columns: 1fr; }
}

/* ---------- buttons ---------- */

.osm-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 22px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 14px;
	border: 1px solid transparent;
	cursor: pointer;
	text-decoration: none;
	line-height: 1.2;
	transition: background .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
}
.osm-btn:hover { text-decoration: none; }
.osm-btn:active { transform: translateY(1px); }
.osm-btn-sm { padding: 8px 14px; font-size: 13px; }
.osm-btn-block { display: flex; width: 100%; justify-content: center; }

.osm-btn-primary    { background: var(--osm-primary); color: var(--osm-on-primary); }
.osm-btn-primary:hover { background: var(--osm-primary-dk); color: var(--osm-on-primary); }
.osm-btn-commerce   { background: var(--osm-commerce); color: #1a1206; }
.osm-btn-commerce:hover { background: var(--osm-commerce-dk); color: #fff; }
.osm-btn-outline    { background: var(--osm-panel); color: var(--osm-primary); border-color: var(--osm-primary); }
.osm-btn-outline:hover { background: var(--osm-primary-soft); }
.osm-btn-ghost      { background: var(--osm-bg); color: var(--osm-text); border-color: var(--osm-border); }
.osm-btn-ghost:hover { background: var(--osm-cyan-soft); border-color: var(--osm-cyan); }
.osm-btn[disabled],
.osm-btn.is-disabled { opacity: .5; cursor: not-allowed; }

/* Defeat `.osm a { color: var(--osm-primary) }` for buttons rendered as
 * <a>. Each variant declares its own color; without this the link color
 * wins on specificity and "View" / "Save" / "Update" buttons render with
 * the link colour instead of the variant's text colour. */
.osm a.osm-btn-primary,
.osm a.osm-btn-primary:hover { color: #fff; }
.osm a.osm-btn-commerce      { color: #1a1206; }
.osm a.osm-btn-commerce:hover { color: #fff; }
.osm a.osm-btn-outline       { color: var(--osm-primary); }
.osm a.osm-btn-ghost         { color: var(--osm-text); }

/* ---------- skill chips (3-tier trust model) ---------- */

.osm-chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	border: 1px solid transparent;
	background: var(--osm-primary-soft);
	color: var(--osm-primary);
}
.osm-chip.is-confirmed   { background: var(--osm-primary-soft); color: var(--osm-primary-dk); border-color: rgba(47,98,175,.25); }
.osm-chip.is-confirmed::before  { content: "✓"; font-size: 10px; font-weight: 800; }
.osm-chip.is-verified-3p { background: var(--osm-cyan-soft);    color: var(--osm-primary-dk); border-color: rgba(31,181,218,.30); }
.osm-chip.is-verified-3p::before { content: "⬡"; font-size: 10px; }
.osm-chip.is-declared    { background: transparent; color: var(--osm-muted); border: 1px dashed var(--osm-border); font-weight: 500; }
.osm-chip.is-missing     { background: rgba(239,68,68,.10); color: #b1303f; border-color: rgba(239,68,68,.20); }
.osm-chip-x { cursor: pointer; opacity: .55; font-weight: 700; margin-left: 2px; }
.osm-chip-x:hover { opacity: 1; }

.osm-chip-cluster { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- pills + badges ---------- */

.osm-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
}
.osm-pill-success { background: rgba(34,197,94,.12); color: var(--osm-up-dk); }
.osm-pill-success::before { content: "●"; font-size: 9px; }
.osm-pill-info    { background: var(--osm-primary-soft); color: var(--osm-primary-dk); }
.osm-pill-warn    { background: rgba(252,185,0,.16); color: #8a6500; }
.osm-pill-neutral { background: var(--osm-bg); color: var(--osm-muted); }

/* ---------- form atoms ---------- */

.osm-field { margin-bottom: 18px; }
.osm-field label { display: block; font-weight: 700; font-size: 0.875rem; color: var(--osm-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.osm-field .osm-help { color: var(--osm-muted); font-size: 12px; margin: 6px 0 0; }
.osm-input,
.osm-textarea,
.osm-select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--osm-border);
	border-radius: var(--osm-radius-sm);
	font: inherit;
	font-size: 14px;
	/* Token, not #fff: in dark the text colour comes from --osm-text, so a
	 * hardcoded white field left light-on-light at 1.18:1. */
	background: var(--osm-panel);
	color: var(--osm-text);
	transition: border-color .15s ease, box-shadow .15s ease;
}
.osm-input:focus,
.osm-textarea:focus,
.osm-select:focus {
	border-color: var(--osm-primary);
	box-shadow: 0 0 0 3px var(--osm-primary-soft);
	outline: none;
}
.osm-textarea { min-height: 90px; resize: vertical; }

.osm-toggle-list { display: grid; gap: 6px; }
.osm-toggle-row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 8px 0;
	font-size: 14px;
	cursor: pointer;
}
.osm-toggle-row input[type=checkbox],
.osm-toggle-row input[type=radio] {
	margin-top: 3px;
	accent-color: var(--osm-primary);
	flex: 0 0 16px;
}

.osm-radio-row {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	font-size: 14px;
}
.osm-radio-row label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 500; color: var(--osm-text); margin: 0; text-transform: none; letter-spacing: 0; }

/* ---------- notice strip ---------- */

.osm-notice {
	padding: 12px 16px;
	border-radius: var(--osm-radius-sm);
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 18px;
}
.osm-notice-success { background: rgba(34,197,94,.12); color: var(--osm-up-dk); }
.osm-notice-info    { background: var(--osm-primary-soft); color: var(--osm-primary-dk); }
.osm-notice-warn    { background: rgba(252,185,0,.16); color: #8a6500; }
.osm-notice-error   { background: rgba(239,68,68,.12); color: var(--osm-down-dk); }

/* ===========================================================
 * Surface: VENDOR GATE — /post-a-role/ for non-entitled users
 * =========================================================== */

.osm-vg {
	max-width: 560px;
	margin: 48px auto;
	padding: 0 24px;
}
.osm-vg-card {
	background: var(--osm-panel);
	border: 1px solid var(--osm-border);
	border-radius: var(--osm-radius);
	overflow: hidden;
	box-shadow: var(--osm-shadow-lg);
}
.osm-vg-card.is-upgrade { border: 2px solid var(--osm-primary); }
.osm-vg-head {
	padding: 28px 24px 22px;
	color: #fff;
	text-align: center;
	background: linear-gradient(135deg, var(--osm-dark-panel) 0%, var(--osm-dark) 100%);
}
.osm-vg-head.is-upgrade {
	background: linear-gradient(135deg, var(--osm-primary) 0%, var(--osm-primary-dk) 100%);
}
.osm-vg-head.is-quota {
	background: linear-gradient(135deg, var(--osm-gold) 0%, var(--osm-commerce-dk) 100%);
	color: #1a1206;
}
.osm-vg-head .icon {
	font-size: 36px;
	line-height: 1;
	margin-bottom: 10px;
	display: block;
}
.osm-vg-head h2 { color: inherit; margin: 0; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
.osm-vg-head .osm-vg-sub { font-size: 13px; margin: 8px 0 0; opacity: .85; }
.osm-vg-body { padding: 24px 28px; }
.osm-vg-body p { margin: 0 0 18px; line-height: 1.55; color: var(--osm-text); }
.osm-vg-body ul { margin: 12px 0 18px 18px; padding: 0; color: var(--osm-text); }
.osm-vg-body li { margin: 4px 0; }
.osm-vg-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.osm-vg-quota {
	background: var(--osm-bg);
	border-radius: var(--osm-radius-sm);
	padding: 14px 16px;
	margin-bottom: 18px;
}
.osm-vg-quota-head {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	color: var(--osm-muted);
	margin-bottom: 8px;
}
.osm-vg-quota-head strong { color: var(--osm-text); }
.osm-vg-quota-bar {
	height: 6px;
	background: #fff;
	border-radius: 999px;
	overflow: hidden;
}
.osm-vg-quota-bar > span {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, var(--osm-primary), var(--osm-gold));
}

/* ===========================================================
 * Surface: FOR-HIRE PUBLIC PANEL — /profile/<username>/
 * =========================================================== */

.osm-fh {
	margin: 24px auto;
	max-width: 100%;
}
.osm-fh.osm-card { background: var(--osm-panel); }
.osm-fh-head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 18px;
	flex-wrap: wrap;
}
.osm-fh-head h2 { margin: 0; font-size: 1.25rem; font-weight: 700; }
.osm-fh-edit-link {
	margin-left: auto;
	font-size: 13px;
	font-weight: 600;
	color: var(--osm-primary);
}
.osm-fh-headline {
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--osm-text);
	margin: 0 0 16px;
}
.osm-fh-meta { font-size: 13px; color: var(--osm-muted); margin: 0 0 16px; }
.osm-fh-meta strong { color: var(--osm-text); }
.osm-fh-tier-block { margin-top: 14px; }
.osm-fh-tier-block .osm-h4 { margin-bottom: 8px; }
.osm-fh-tier-block .osm-h4 small { font-weight: 400; color: var(--osm-subtle); text-transform: none; letter-spacing: 0; margin-left: 8px; font-size: 11px; }
:root:not([data-tutor-theme="dark"]) .osm-fh-tier-block .osm-h4 small { color: #64748b; }

/* "Show all N skills" expander: chips/tier-blocks past the cap are hidden
 * until the panel gets .osm-fh-expanded. */
.osm-fh .osm-chip.osm-fh-overflow,
.osm-fh .osm-fh-tier-block.osm-fh-overflow { display: none; }
.osm-fh.osm-fh-expanded .osm-chip.osm-fh-overflow { display: inline-flex; }
.osm-fh.osm-fh-expanded .osm-fh-tier-block.osm-fh-overflow { display: block; }
.osm-fh-toggle {
	margin-top: 16px;
	padding: 8px 18px;
	border: 1px solid var(--osm-border);
	background: var(--osm-panel);
	color: var(--osm-primary);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease;
}
.osm-fh-toggle:hover { border-color: var(--osm-primary); background: var(--osm-primary-soft); }
.osm-fh-empty {
	font-size: 13px;
	color: var(--osm-subtle);
	font-style: italic;
	margin: 14px 0 0;
}
/* Owner-only note when skills are opted out of the public profile. */
.osm-fh-hidden-note {
	font-size: 13px;
	color: var(--osm-subtle);
	font-style: italic;
	margin: 0 0 12px;
}

/* ===========================================================
 * Surface: FOR-HIRE EDIT FORM — /dashboard/for-hire/
 * =========================================================== */

.osm-fhe-form { display: grid; gap: 24px; }
.osm-fhe-form fieldset { border: 0; padding: 0; margin: 0; }
.osm-fhe-form legend { font-weight: 700; font-size: 0.875rem; color: var(--osm-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; }
.osm-fhe-digest {
	margin-top: 8px;
	padding-left: 26px;
	font-size: 13px;
	color: var(--osm-muted);
}
.osm-fhe-digest select { padding: 6px 10px; border: 1px solid var(--osm-border); border-radius: 6px; font: inherit; font-size: 13px; background: #fff; margin-left: 6px; }

.osm-skill-picker {
	background: var(--osm-bg);
	border: 1px dashed var(--osm-border);
	border-radius: var(--osm-radius-sm);
	padding: 14px;
}
.osm-skill-picker .osm-help { margin: 0 0 10px; font-size: 12px; }
.osm-skill-picker-grid { display: flex; gap: 6px; flex-wrap: wrap; }
.osm-skill-checkbox {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	background: var(--osm-primary-soft);
	color: var(--osm-primary-dk);
	border: 1px solid rgba(47,98,175,.25);
}
.osm-skill-checkbox input[type=checkbox] { accent-color: var(--osm-primary); margin: 0; }
.osm-skill-checkbox.is-hidden { opacity: .5; }
.osm-skill-mini {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px;
	background: var(--osm-bg);
	color: #566174;
	border: 1px dashed var(--osm-border);
	cursor: pointer;
}
.osm-skill-mini input[type=checkbox] { accent-color: var(--osm-primary); margin: 0; }
.osm-skill-mini.is-on { background: var(--osm-gold-soft); color: #8a6500; border-style: solid; border-color: rgba(252,185,0,.30); }
[data-tutor-theme="dark"] .osm-skill-mini.is-on { color: #fcd34d; }
/* Light: ticked chips and skill checkboxes measured 4.48:1 and 4.13:1; darker text clears AA. Dark keeps its own tokens. */
html:root:not([data-tutor-theme="dark"]) .osm-skill-mini.is-on { color: #735200; }
html:root:not([data-tutor-theme="dark"]) .osm-skill-checkbox { color: #475569; }
html:root:not([data-tutor-theme="dark"]) .osm-skill-mini:not(.is-on) { color: #566174; } /* the dashboard kit sets #64748b on labels and outranks the base rule */
[data-tutor-theme="dark"] .osm-skill-mini { color: var(--osm-muted); }

.osm-skill-browser { background: var(--osm-bg-soft); border: 1px solid var(--osm-border); border-radius: var(--osm-radius-sm); padding: 12px 14px; }
.osm-skill-browser summary { cursor: pointer; font-weight: 600; color: var(--osm-primary); padding: 4px 0; }
.osm-skill-browser-body { margin-top: 14px; display: grid; gap: 14px; max-height: 480px; overflow-y: auto; padding-right: 4px; }
.osm-skill-browser-cat { padding: 4px 0; }
.osm-skill-browser-cat h4 { margin: 0 0 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--osm-muted); font-weight: 700; }

.osm-credly-status {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 13px;
	color: var(--osm-muted);
	margin-top: 12px;
	flex-wrap: wrap;
}
.osm-credly-status strong { color: var(--osm-text); }

.osm-fhe-actions { display: flex; gap: 12px; padding-top: 8px; flex-wrap: wrap; }

/* ===========================================================
 * Surface: SUGGESTED CANDIDATES — /hiring-dashboard/
 * =========================================================== */

.osm-sc-wrap { margin-top: 32px; }
.osm-sc-header { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.osm-sc-header h2 { display: inline-flex; align-items: center; gap: 8px; }
.osm-sc-header .osm-small { font-weight: 500; }

.osm-sc-job-card {
	background: var(--osm-panel);
	border: 1px solid var(--osm-border);
	border-radius: var(--osm-radius);
	padding: 20px;
	margin-bottom: 14px;
	box-shadow: var(--osm-shadow);
}
.osm-sc-job-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
	margin: 0 0 14px;
}
.osm-sc-job-head h3 { margin: 0; font-size: 0.9375rem; }
.osm-sc-job-meta { font-size: 12px; color: var(--osm-muted); font-weight: 500; }

.osm-sc-list { display: grid; gap: 10px; }

.osm-sc-cand {
	display: grid;
	grid-template-columns: 48px 1fr auto auto;
	gap: 14px;
	align-items: center;
	padding: 12px 14px;
	background: var(--osm-bg);
	border-radius: var(--osm-radius-sm);
	border: 1px solid transparent;
	transition: border-color .15s ease, background .15s ease;
}
.osm-sc-cand:hover { border-color: var(--osm-primary-soft); background: #fff; }
.osm-sc-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--osm-primary), var(--osm-cyan));
	color: var(--osm-on-primary);
	font-weight: 700;
	display: grid;
	place-items: center;
	font-size: 0.9375rem;
	letter-spacing: 0;
}
.osm-sc-name { font-weight: 700; font-size: 14px; }
.osm-sc-skills { font-size: 12px; color: var(--osm-muted); margin-top: 2px; }
.osm-sc-score { text-align: center; padding: 0 4px; }
.osm-sc-pct { font-size: 1.25rem; font-weight: 800; line-height: 1; color: var(--osm-up-dk); }
.osm-sc-pct.is-mid  { color: #b58300; }
.osm-sc-pct.is-low  { color: var(--osm-muted); }
.osm-sc-pct-lbl { font-size: 10px; color: var(--osm-muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }

.osm-sc-actions { display: flex; gap: 6px; flex-shrink: 0; }
.osm-sc-star {
	padding: 8px 12px;
	background: #fff;
	color: var(--osm-muted);
	border-radius: 999px;
	font-size: 16px;
	text-decoration: none;
	border: 1px solid var(--osm-border);
	line-height: 1;
}
.osm-sc-star:hover { background: var(--osm-gold-soft); color: var(--osm-gold); border-color: rgba(252,185,0,.3); }
.osm-sc-star.is-saved { background: var(--osm-gold-soft); color: var(--osm-gold); border-color: rgba(252,185,0,.3); }

.osm-sc-empty { color: var(--osm-subtle); font-size: 13px; font-style: italic; margin: 0; }

@media (max-width: 640px) {
	.osm-sc-cand { grid-template-columns: 48px 1fr; }
	.osm-sc-score, .osm-sc-actions { grid-column: 1 / -1; justify-self: end; }
}

/* ===========================================================
 * Surface: JOBS BOARD, the page carrying WP Job Manager's [jobs]
 * (jobs.onlysecurity.com/, and stores /security-jobs/ until the move)
 *
 * DEV-265, UX review _local/ux-jobs-subsite-20261110 item JS1 (approved
 * 2026-11-10). Look: the training site kit as /open-to-work/ uses it
 * (open-to-work.css): container 1180px, 44px controls with a 10px radius,
 * 16px card radius, 18px card titles, the kit palette (#2F62AF primary,
 * #1e293b text, #64748b muted, #e5e7eb border). Colours read the profile
 * tokens when present, with the light values as fallbacks, as
 * open-to-work.css does. The font is inherited from the theme, not forced.
 *
 * Markup is WP Job Manager 2.4.10's, unchanged. Selectors carry
 * li.job_listing and element names so they outrank WP Job Manager's
 * frontend.css (ul.job_listings li.job_listing a div.position is 0,3,4)
 * whatever the load order. .os-j-lede is the line under the page title,
 * written into the board page's content.
 * =========================================================== */

div.job_listings,
.os-j-lede {
	--os-j-p:     var(--os-p-primary, #2F62AF);
	--os-j-p-dk:  #244c87;
	--os-j-on-p:  var(--os-p-on-primary, #ffffff);
	--os-j-ps:    var(--os-p-primary-soft, rgba(47, 98, 175, 0.10));
	--os-j-t:     var(--os-p-text, #1e293b);
	--os-j-m:     var(--os-p-muted, #64748b);
	--os-j-b:     var(--os-p-border, #e5e7eb);
	--os-j-panel: var(--os-p-panel, #ffffff);
	--os-j-soft:  #fafbfd;
	--os-j-sh:    var(--os-p-shadow, 0 1px 3px rgba(15, 23, 42, 0.06));
	--os-j-sh-lg: var(--os-p-shadow-lg, 0 4px 16px rgba(15, 23, 42, 0.10));
}

/* Page frame: same width and lede as /open-to-work/. */
div.job_listings {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 16px 56px;
	color: var(--os-j-t);
}
.os-j-lede {
	text-align: center;
	color: var(--os-j-m);
	font-size: 17px;
	line-height: 1.55;
	max-width: 48ch;
	margin: -8px auto 28px;
}

/* Filter form ------------------------------------------------ */
/* WP Job Manager prints, inside .search_jobs: keywords, location, remote
   checkbox, a clearing div, category, submit, region select (Locations
   add-on). The old 4-column grid had seven children, which is what wrapped
   "Remote positions only" over three lines and left the empty area. */
div.job_listings form.job_filters {
	background: none;
	border: 0;
	box-shadow: none;
	padding: 0;
	margin: 0 0 20px;
}
div.job_listings form.job_filters div.search_jobs {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) auto;
	grid-template-areas:
		"kw loc cat region submit"
		"remote remote remote remote remote";
	gap: 10px 12px;
	align-items: end;
	padding: 0;
}
div.job_listings form.job_filters div.search_jobs::before,
div.job_listings form.job_filters div.search_jobs::after,
div.job_listings form.job_filters div.search_jobs > div[style] { display: none; }
div.job_listings form.job_filters div.search_jobs > div {
	float: none;
	width: auto;
	padding: 0;
	margin: 0;
	min-width: 0;
}
div.job_listings form.job_filters div.search_jobs > div.search_keywords { grid-area: kw; }
div.job_listings form.job_filters div.search_jobs > div.search_location { grid-area: loc; }
div.job_listings form.job_filters div.search_jobs > div.search_categories { grid-area: cat; }
div.job_listings form.job_filters div.search_jobs > select.search_region { grid-area: region; }
div.job_listings form.job_filters div.search_jobs > div.search_submit { grid-area: submit; }
div.job_listings form.job_filters div.search_jobs > div.search_remote_position { grid-area: remote; }

div.job_listings form.job_filters div.search_jobs div label {
	display: block;
	margin: 0 0 4px;
	font-size: 13px;
	font-weight: 600;
	color: var(--os-j-m);
	text-transform: none;
	letter-spacing: 0;
}
div.job_listings form.job_filters div.search_jobs input[type=text],
div.job_listings form.job_filters div.search_jobs select {
	width: 100%;
	height: 44px;
	min-height: 44px;
	padding: 0 12px;
	margin: 0;
	border: 1px solid var(--os-j-b);
	border-radius: 10px;
	background-color: var(--os-j-panel);
	color: var(--os-j-t);
	font: inherit;
	font-size: 15px;
	box-shadow: none;
}
div.job_listings form.job_filters div.search_jobs input[type=text]:focus,
div.job_listings form.job_filters div.search_jobs select:focus {
	border-color: var(--os-j-p);
	outline: 2px solid var(--os-j-p);
	outline-offset: 1px;
}
div.job_listings form.job_filters div.search_jobs div.search_remote_position {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
}
div.job_listings form.job_filters div.search_jobs div.search_remote_position input {
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--os-j-p);
}
div.job_listings form.job_filters div.search_jobs div.search_remote_position label {
	display: inline-block;
	margin: 0;
	font-size: 15px;
	font-weight: 500;
	color: var(--os-j-t);
}
div.job_listings form.job_filters div.search_jobs div.search_submit input[type=submit] {
	min-height: 44px;
	height: 44px;
	padding: 0 18px;
	margin: 0;
	border: 1px solid var(--os-j-p);
	border-radius: 10px;
	background: var(--os-j-p);
	color: var(--os-j-on-p);
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	text-transform: none;
	letter-spacing: 0;
	white-space: nowrap;
	cursor: pointer;
}
div.job_listings form.job_filters div.search_jobs div.search_submit input[type=submit]:hover { background: var(--os-j-p-dk); }
div.job_listings form.job_filters div.search_jobs div.search_submit input[type=submit]:focus-visible { outline: 2px solid var(--os-j-p); outline-offset: 2px; }

/* Job type row: chips, no grey band, no dividers. */
div.job_listings form.job_filters ul.job_types {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	margin: 4px 0 0;
	padding: 0;
	background: none;
	border: 0;
	font-size: inherit;
}
div.job_listings form.job_filters ul.job_types::before,
div.job_listings form.job_filters ul.job_types::after { display: none; }
div.job_listings form.job_filters ul.job_types li {
	float: none;
	margin: 0;
	padding: 0;
	border: 0;
}
div.job_listings form.job_filters ul.job_types label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 36px;
	padding: 0 12px;
	border: 1px solid var(--os-j-b);
	border-radius: 999px;
	background: var(--os-j-panel);
	color: var(--os-j-t);
	font-size: 14px;
	font-weight: 600;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
}
div.job_listings form.job_filters ul.job_types label:has(input:checked) {
	background: var(--os-j-ps);
	border-color: rgba(47, 98, 175, 0.30);
}
div.job_listings form.job_filters ul.job_types input[type=checkbox] {
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: var(--os-j-p);
}
div.job_listings form.job_filters .showing_jobs {
	background: none;
	border: 0;
	padding: 8px 0 0;
	font-size: 14px;
	color: var(--os-j-m);
}

/* Listings --------------------------------------------------- */
div.job_listings ul.job_listings {
	list-style: none;
	margin: 0;
	padding: 0;
	border: 0;
	display: grid;
	gap: 12px;
}
div.job_listings ul.job_listings > li.job_listing {
	margin: 0;
	padding: 0;
	border: 1px solid var(--os-j-b);
	border-radius: 16px;
	background: var(--os-j-panel);
	box-shadow: var(--os-j-sh);
	transition: border-color .15s ease, box-shadow .15s ease;
}
div.job_listings ul.job_listings > li.job_listing:hover {
	border-color: rgba(47, 98, 175, 0.35);
	box-shadow: var(--os-j-sh-lg);
}
/* The link is the whole card, so the padding sits on it (a click anywhere
   on the card opens the job) and the focus ring follows the card. */
div.job_listings ul.job_listings > li.job_listing > a {
	display: grid;
	grid-template-columns: 62px auto minmax(0, 1fr) auto;
	grid-template-areas:
		"logo title title meta"
		"logo company location meta";
	column-gap: 0;
	row-gap: 4px;
	align-items: center;
	padding: 18px 20px;
	border-radius: 16px;
	background: none;
	color: inherit;
	text-decoration: none;
	overflow: visible;
	line-height: 1.4;
}
div.job_listings ul.job_listings > li.job_listing > a:hover,
div.job_listings ul.job_listings > li.job_listing > a:focus { background: none; text-decoration: none; }
div.job_listings ul.job_listings > li.job_listing > a:focus-visible {
	outline: 2px solid var(--os-j-p);
	outline-offset: 2px;
}
div.job_listings ul.job_listings > li.job_listing > a > img.company_logo {
	grid-area: logo;
	position: static;
	float: none;
	visibility: visible;
	width: 48px;
	height: 48px;
	margin: 0;
	border: 1px solid var(--os-j-b);
	border-radius: 10px;
	background: var(--os-j-soft);
	object-fit: contain;
	align-self: start;
}
/* WP Job Manager's grey building placeholder says nothing; the card closes
   up without it. A real employer logo still shows. */
div.job_listings ul.job_listings > li.job_listing > a:has(> img.company_logo[src*="wp-job-manager/assets/images/company.png"]) {
	grid-template-columns: 0 auto minmax(0, 1fr) auto;
}
div.job_listings ul.job_listings > li.job_listing > a > img.company_logo[src*="wp-job-manager/assets/images/company.png"] { display: none; }

/* .position holds the title and the company; let both join the card grid. */
div.job_listings ul.job_listings > li.job_listing > a > div.position {
	display: contents;
	float: none;
	width: auto;
	padding: 0;
}
div.job_listings ul.job_listings > li.job_listing > a > div.position h3 {
	grid-area: title;
	margin: 0;
	padding: 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--os-j-t);
	overflow-wrap: anywhere;
}
div.job_listings ul.job_listings > li.job_listing > a > div.position .company {
	grid-area: company;
	margin: 0;
	font-size: 14px;
	color: var(--os-j-m);
	white-space: nowrap;
}
div.job_listings ul.job_listings > li.job_listing > a > div.position .company strong { font-weight: 600; color: var(--os-j-t); }
div.job_listings ul.job_listings > li.job_listing > a > div.location {
	grid-area: location;
	float: none;
	width: auto;
	padding: 0 0 0 10px;
	margin: 0;
	font-size: 14px;
	line-height: 1.4;
	text-align: left;
	color: var(--os-j-m);
	min-width: 0;
}
div.job_listings ul.job_listings > li.job_listing > a > div.location::before { content: "\00B7"; margin-right: 10px; color: var(--os-j-m); }
div.job_listings ul.job_listings > li.job_listing > a > div.location small { font-size: inherit; }
div.job_listings ul.job_listings > li.job_listing > a > ul.meta {
	grid-area: meta;
	float: none;
	width: auto;
	margin: 0;
	padding: 0 0 0 16px;
	list-style: none;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
	text-align: right;
	font-size: 13px;
	line-height: 1.4;
	color: var(--os-j-m);
}
div.job_listings ul.job_listings > li.job_listing > a > ul.meta li { display: block; margin: 0; padding: 0; font-size: inherit; }
div.job_listings ul.job_listings > li.job_listing > a > ul.meta li.job-type {
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--os-j-ps);
	color: var(--os-j-t);
	font-size: 13px;
	font-weight: 600;
	text-transform: none;
	letter-spacing: 0;
}
/* Was #94a3b8 at 12px (2.6:1 on white). Muted text is 4.8:1. */
div.job_listings ul.job_listings > li.job_listing > a > ul.meta li.date { color: var(--os-j-m); white-space: nowrap; }

/* Empty state ------------------------------------------------ */
div.job_listings ul.job_listings > li.no_job_listings_found,
div.job_listings .no_job_listings_found {
	background: var(--os-j-panel);
	border: 1px solid var(--os-j-b);
	border-radius: 16px;
	padding: 32px 20px;
	text-align: center;
	color: var(--os-j-m);
	font-size: 15px;
	margin: 0;
}

/* Load more: the kit's secondary button. */
div.job_listings a.load_more_jobs {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	max-width: 240px;
	margin: 20px auto 0;
	padding: 0 18px;
	border: 1px solid var(--os-j-p);
	border-bottom: 1px solid var(--os-j-p);
	border-radius: 10px;
	background: transparent;
	color: var(--os-j-p);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}
div.job_listings a.load_more_jobs:hover,
div.job_listings a.load_more_jobs:focus { background: var(--os-j-ps); border-bottom-color: var(--os-j-p); }

/* Reduced motion: no transitions. */
@media (prefers-reduced-motion: reduce) {
	div.job_listings ul.job_listings > li.job_listing { transition: none; }
}

/* Tablet ----------------------------------------------------- */
@media (max-width: 960px) {
	div.job_listings form.job_filters div.search_jobs {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		grid-template-areas:
			"kw kw"
			"loc region"
			"cat cat"
			"remote submit";
	}
}

/* Phone ------------------------------------------------------ */
@media (max-width: 720px) {
	div.job_listings form.job_filters div.search_jobs {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "kw" "loc" "region" "cat" "remote" "submit";
	}
	div.job_listings form.job_filters div.search_jobs div.search_submit input[type=submit] { width: 100%; }
	div.job_listings ul.job_listings > li.job_listing > a {
		grid-template-columns: 52px minmax(0, 1fr);
		grid-template-areas:
			"logo title"
			"logo company"
			"logo location"
			"logo meta";
		padding: 16px;
	}
	div.job_listings ul.job_listings > li.job_listing > a:has(> img.company_logo[src*="wp-job-manager/assets/images/company.png"]) {
		grid-template-columns: 0 minmax(0, 1fr);
	}
	div.job_listings ul.job_listings > li.job_listing > a > img.company_logo { width: 40px; height: 40px; }
	div.job_listings ul.job_listings > li.job_listing > a > div.position h3 { font-size: 17px; }
	div.job_listings ul.job_listings > li.job_listing > a > div.location { padding: 0; }
	div.job_listings ul.job_listings > li.job_listing > a > div.location::before { content: none; }
	div.job_listings ul.job_listings > li.job_listing > a > ul.meta {
		flex-direction: row;
		flex-wrap: wrap; /* DEV-274 T4: "Verified company" stays inside the card */
		align-items: center;
		justify-content: flex-start;
		gap: 8px 12px;
		padding: 6px 0 0;
		text-align: left;
	}
}

/* ===========================================================
 * Surface: SINGLE JOB, /job/<name>/
 *
 * DEV-265, UX review _local/ux-jobs-subsite-20261110 items JS2 and JS6
 * (approved 2026-11-10). Assets.php loads this file on
 * is_singular( 'job_listing' ). Markup is WP Job Manager 2.4.10's single
 * job template; on the training theme (ksec-training) the apply area is
 * its job_manager/job-application.php override, which prints a URL
 * application as one direct link.
 *
 * Also styles the signed out "Sign in to apply" panel of
 * [os_application_form] (Application_Form_Shortcode::render_logged_out),
 * whose .osm-btn buttons read --osm-* tokens that are only defined inside
 * .osm, which the panel is not.
 * =========================================================== */

.single_job_listing,
.osm-app-loggedout {
	--os-j-p:     var(--os-p-primary, #2F62AF);
	--os-j-p-dk:  #244c87;
	--os-j-on-p:  var(--os-p-on-primary, #ffffff);
	--os-j-ps:    var(--os-p-primary-soft, rgba(47, 98, 175, 0.10));
	--os-j-t:     var(--os-p-text, #1e293b);
	--os-j-m:     var(--os-p-muted, #64748b);
	--os-j-b:     var(--os-p-border, #e5e7eb);
	--os-j-panel: var(--os-p-panel, #ffffff);
	--os-j-soft:  #fafbfd;
	--os-j-sh:    var(--os-p-shadow, 0 1px 3px rgba(15, 23, 42, 0.06));
}

/* Shoptimizer centres single posts only for .single-post (post layout 2).
   A job_listing gets the left sidebar layout instead: an empty 268px
   column on the left and the content pushed right (measured at 1440px:
   #secondary 268px wide, #primary floated right from x 324). Jobs have no
   sidebar, so the content takes the full container. ksec-training's
   inc/jobs-site.php also sets Shoptimizer's post sidebar to none on a job,
   so #secondary is not printed; these rules hold the layout without it. */
body.single-job_listing #secondary { display: none; }
body.single-job_listing #primary.content-area {
	float: none;
	width: auto;
	max-width: 1180px;
	margin: 0 auto;
	padding: 8px 16px 0;
}
/* The theme prints its own "posted on" date under the title; WP Job
   Manager's meta row already says when the job was posted. */
body.single-job_listing .entry-header .posted-on { display: none; }
body.single-job_listing .entry-header .entry-title {
	max-width: 32ch;
	margin: 0 0 14px;
	text-align: left;
	font-size: clamp(28px, 3vw, 38px);
	line-height: 1.15;
}

/* Two columns on desktop: the description on the left, the company and
   the apply panel on the right, where they stay in view while reading. */
.single_job_listing {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	grid-template-areas:
		"meta    meta"
		"desc    company"
		"desc    apply"
		"desc    .";
	grid-template-rows: auto auto auto 1fr;
	column-gap: 48px;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 0 56px;
	color: var(--os-j-t);
}

/* Post a role's Preview step: WP Job Manager wraps the job in
   div.job_listing_preview.single_job_listing (the title, then the job's own
   div.single_job_listing). The grid above made the wrapper two columns too,
   so the real job layout sat in a 388px cell with a zero-width description
   track and the text ran one letter per line (DEV-266, 2026-11-11). Only the
   inner job is a grid. */
.job_listing_preview.single_job_listing {
	display: block;
	max-width: none;
	padding: 0;
}

/* Meta row: job type chip, location, date. */
.single_job_listing ul.job-listing-meta.meta {
	grid-area: meta;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
	overflow: visible;
}
.single_job_listing ul.job-listing-meta.meta li {
	float: none;
	margin: 0;
	padding: 0;
	line-height: 1.4;
	font-size: 15px;
	color: var(--os-j-m);
	background: none;
}
.single_job_listing ul.job-listing-meta.meta li::before { display: none; }
/* WP Job Manager paints Freelance white on #3399cc (3.3:1). */
.single_job_listing ul.job-listing-meta.meta li.job-type {
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--os-j-ps);
	color: var(--os-j-t);
	font-size: 14px;
	font-weight: 600;
}
.single_job_listing ul.job-listing-meta.meta li.location a { color: var(--os-j-m); text-decoration: underline; text-underline-offset: 2px; }

/* Company card. */
.single_job_listing div.company {
	grid-area: company;
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 0;
	margin: 0 0 16px;
	padding: 18px;
	border: 1px solid var(--os-j-b);
	border-radius: 16px;
	background: var(--os-j-panel);
	box-shadow: var(--os-j-sh);
	box-sizing: border-box;
	align-self: start;
}
.single_job_listing div.company img.company_logo {
	position: static;
	float: none;
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	border: 1px solid var(--os-j-b);
	border-radius: 10px;
	background: var(--os-j-soft);
	object-fit: contain;
}
.single_job_listing div.company img.company_logo[src*="wp-job-manager/assets/images/company.png"] { display: none; }
.single_job_listing div.company .company_header { margin: 0; min-height: 0; min-width: 0; }
.single_job_listing div.company .company_header p.name {
	display: flex;
	flex-direction: column-reverse;
	gap: 2px;
	margin: 0;
	padding: 0;
	line-height: 1.35;
}
.single_job_listing div.company .company_header p.name strong { font-size: 17px; font-weight: 700; color: var(--os-j-t); }
.single_job_listing div.company .company_header p.name a.website {
	float: none;
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--os-j-p);
}
.single_job_listing div.company .company_header p.name a.website::before { display: none; }
.single_job_listing div.company .company_header .tagline { margin: 2px 0 0; padding: 0; font-style: normal; color: var(--os-j-m); font-size: 14px; }

/* Description: reading width and rhythm. */
.single_job_listing div.job_description {
	grid-area: desc;
	max-width: 70ch;
	margin: 0;
	font-size: 17px;
	line-height: 1.65;
	color: var(--os-j-t);
}
.single_job_listing div.job_description h3 {
	margin: 32px 0 10px;
	font-size: 21px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--os-j-t);
}
.single_job_listing div.job_description p { margin: 0 0 14px; }
.single_job_listing div.job_description ol,
.single_job_listing div.job_description ul { margin: 0 0 14px; padding-left: 24px; }
.single_job_listing div.job_description li { margin: 0 0 8px; }
.single_job_listing div.job_description a { color: var(--os-j-p); text-decoration: underline; text-underline-offset: 2px; }

/* Apply panel. */
.single_job_listing div.job_application.application {
	grid-area: apply;
	align-self: start;
	position: sticky;
	top: 24px;
	margin: 0;
	padding: 18px;
	border: 1px solid var(--os-j-b);
	border-radius: 16px;
	background: var(--os-j-panel);
	box-shadow: var(--os-j-sh);
	overflow: visible;
}
.single_job_listing div.job_application .application_button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 0 18px;
	border: 1px solid var(--os-j-p);
	border-radius: 10px;
	background: var(--os-j-p);
	color: var(--os-j-on-p);
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: 0;
	text-decoration: none;
	cursor: pointer;
}
.single_job_listing div.job_application .application_button:hover { background: var(--os-j-p-dk); color: var(--os-j-on-p); }
.single_job_listing div.job_application .application_button:focus-visible { outline: 2px solid var(--os-j-p); outline-offset: 2px; }
.single_job_listing div.job_application .application_details {
	margin: 12px 0 0;
	padding: 0;
	border: 0;
	box-shadow: none;
	font-size: 14px;
	color: var(--os-j-m);
}
.single_job_listing div.job_application .application_details::before,
.single_job_listing div.job_application .application_details::after { display: none; }
.os-j-apply-note { margin: 10px 0 0; font-size: 14px; line-height: 1.45; color: var(--os-j-m); }

/* Signed out panel of [os_application_form]. */
.osm-app-loggedout {
	padding: 18px;
	border: 1px solid var(--os-j-b);
	border-radius: 16px;
	background: var(--os-j-panel);
	box-shadow: var(--os-j-sh);
	color: var(--os-j-t);
}
.single_job_listing .osm-app-loggedout { grid-area: apply; align-self: start; position: sticky; top: 24px; }
.osm-app-loggedout h3 { margin: 0 0 6px; font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--os-j-t); }
.osm-app-loggedout p { margin: 0 0 14px; font-size: 15px; line-height: 1.5; color: var(--os-j-m); }
.osm-app-loggedout p:last-child { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.osm-app-loggedout .osm-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid var(--os-j-p);
	border-radius: 10px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	background: transparent;
	color: var(--os-j-p);
}
.osm-app-loggedout .osm-btn.osm-btn-primary { background: var(--os-j-p); color: var(--os-j-on-p); }
.osm-app-loggedout .osm-btn:focus-visible { outline: 2px solid var(--os-j-p); outline-offset: 2px; }

/* Phone and narrow tablet: one column; company first, then the text, then
   the apply panel. */
@media (max-width: 960px) {
	.single_job_listing {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "meta" "company" "desc" "apply";
		grid-template-rows: none;
	}
	.single_job_listing div.job_description { max-width: none; font-size: 16px; }
	.single_job_listing div.job_application.application,
	.single_job_listing .osm-app-loggedout { position: static; margin-top: 8px; }
}
@media (max-width: 720px) {
	.single_job_listing div.job_description h3 { font-size: 19px; margin-top: 26px; }
}

/* ===========================================================
 * Page-level padding for ALL /hiring-dashboard/ surfaces on stores.
 * Woodmart's .wd-content-area doesn't apply inner padding by default,
 * so the WPJM dashboard, our list/single/kanban/stages, and the
 * suggested-candidates panel all sit edge-to-edge on the container.
 * Kept (DEV-265 review): stores serves these pages until the move to
 * jobs.onlysecurity.com. Inert on Shoptimizer, which has no .wd-content-area.
 * =========================================================== */
.page-template-default .wd-content-area .jm-dashboard,
.page-template-default .wd-content-area .osm,
.page-template-default .wd-content-area .osm-sc-wrap {
	padding-left: 20px;
	padding-right: 20px;
}
@media (max-width: 720px) {
	.page-template-default .wd-content-area .jm-dashboard,
	.page-template-default .wd-content-area .osm,
	.page-template-default .wd-content-area .osm-sc-wrap {
		padding-left: 12px;
		padding-right: 12px;
	}
}

/* ===========================================================
 * Surface: HIRING DASHBOARD — /hiring-dashboard/
 *
 * WPJM 2.3+ uses .jm-dashboard__* namespace. Legacy login fieldset
 * (.account-sign-in) is what anonymous viewers see right now.
 * =========================================================== */

body.page-template-default fieldset.fieldset-login_required,
body.page-template-default fieldset.fieldset-logged_in,
body.page-template-default fieldset[class*="fieldset-"] {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 24px 28px;
	margin: 24px auto;
	max-width: 640px;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: #1e293b;
}
body.page-template-default fieldset[class*="fieldset-"] > label {
	display: block;
	font-weight: 700;
	font-size: 0.875rem;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: .04em;
	margin: 0 0 12px;
}
body.page-template-default .account-sign-in {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	font-size: 14px;
	line-height: 1.55;
}
body.page-template-default .account-sign-in .button,
body.page-template-default .account-sign-in a.button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 22px;
	border-radius: 999px;
	background: #2F62AF;
	color: #fff;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	border: 0;
	cursor: pointer;
	transition: background .15s ease;
}
body.page-template-default .account-sign-in .button:hover,
body.page-template-default .account-sign-in a.button:hover {
	background: #244c87;
	color: #fff;
	text-decoration: none;
}

/* Modern WPJM 2.3+ dashboard --------------------------------- */
.jm-dashboard.jm-ui,
.jm-dashboard {
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: #1e293b;
}
.jm-dashboard__intro {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 16px 20px;
	margin: 0 0 18px;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.jm-dashboard__filters { flex: 1 1 280px; min-width: 0; }
.jm-dashboard__filters .jm-form { margin: 0; }
.jm-dashboard__filters input[type=search],
.jm-dashboard__filters input.jm-ui-input--search-icon {
	width: 100%;
	padding: 10px 14px 10px 36px;
	border: 1px solid #e5e7eb;
	border-radius: 999px;
	font: inherit;
	font-size: 14px;
	background: #f7f8fb url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='8'/><path d='m21 21-4.3-4.3'/></svg>") no-repeat 12px center;
	color: #1e293b;
	transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.jm-dashboard__filters input[type=search]:focus {
	border-color: #2F62AF;
	background-color: #fff;
	box-shadow: 0 0 0 3px rgba(47, 98, 175, 0.10);
	outline: none;
}
.jm-dashboard__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.jm-dashboard__actions .jm-ui-button,
.jm-dashboard__actions a.jm-ui-button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 20px;
	border-radius: 999px;
	background: #f59e0b;
	color: #1a1206;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	border: 0;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}
.jm-dashboard__actions .jm-ui-button:hover,
.jm-dashboard__actions a.jm-ui-button:hover {
	background: #c4790a;
	color: #fff;
	text-decoration: none;
}

/* Dashboard table -------------------------------------------- */
.jm-dashboard-table {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.jm-dashboard-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	margin: 0;
}
.jm-dashboard-table th {
	text-align: left;
	padding: 14px 18px;
	font-size: 12px;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: .04em;
	background: #f7f8fb;
	border-bottom: 1px solid #e5e7eb;
	font-weight: 700;
}
.jm-dashboard-table td {
	padding: 14px 18px;
	border-bottom: 1px solid #f1f5f9;
	vertical-align: middle;
}
.jm-dashboard-table tr:last-child td { border-bottom: 0; }
.jm-dashboard-table a { color: #2F62AF; text-decoration: none; font-weight: 500; }
.jm-dashboard-table a:hover { text-decoration: underline; }
.jm-dashboard-table .job_title a { color: #1e293b; font-weight: 700; }
.jm-dashboard-table .job_status,
.jm-dashboard-table .job-status {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	border-radius: 999px;
	background: rgba(34,197,94,.12);
	color: #15803d;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
}
.jm-dashboard-table .actions a,
.jm-dashboard-table .applications a {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 6px;
	background: #f7f8fb;
	margin-right: 4px;
	font-size: 12px;
	color: #64748b;
}
.jm-dashboard-table .actions a:hover {
	background: rgba(47, 98, 175, 0.10);
	color: #244c87;
	text-decoration: none;
}

/* Empty state on dashboard ----------------------------------- */
.jm-dashboard-empty {
	background: #fff;
	border: 1px dashed #e5e7eb;
	border-radius: 12px;
	padding: 40px 22px;
	text-align: center;
	color: #64748b;
	font-size: 14px;
	margin: 0;
}
.jm-dashboard-empty p { margin: 0; }

/* Notices on dashboard --------------------------------------- */
.jm-notice,
.jm-ui .notice {
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 14px;
	margin-bottom: 14px;
}
.jm-notice-info    { background: rgba(47, 98, 175, 0.10); color: #244c87; }
.jm-notice-success { background: rgba(34,197,94,.12); color: #15803d; }

@media (max-width: 720px) {
	.jm-dashboard__intro { flex-direction: column; align-items: stretch; }
	.jm-dashboard-table table,
	.jm-dashboard-table thead,
	.jm-dashboard-table tbody,
	.jm-dashboard-table tr,
	.jm-dashboard-table td,
	.jm-dashboard-table th { display: block; }
	.jm-dashboard-table thead { display: none; }
	.jm-dashboard-table tr { border-bottom: 1px solid #e5e7eb; padding: 12px 0; }
	.jm-dashboard-table td { padding: 6px 18px; border: 0; }
}

/* ===========================================================
 * Surface: EMPLOYER APPLICATIONS DASHBOARD — KD-514
 * /hiring-dashboard/applications/{job_id}[/{app_id}]/
 * Card-constrained, inherits the WPJM page template's column.
 * =========================================================== */

.osm-al {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: 20px;
	padding: 24px 20px;
	align-items: start;
}
.osm-al-main { min-width: 0; }
/* WP Job Manager prints its dashboard as .alignwide, and the full-width page
 * template breaks .alignwide out past its column (calc(25% - 25vw) each side
 * from 993px). Beside the rail that pulled the dashboard 96px over the rail
 * and off the right of the page (DEV-266, seen 2026-11-12). Keep it in its column. */
.site-main .osm-al .osm-al-main .alignwide {
	margin-left: 0;
	margin-right: 0;
	max-width: 100%;
}
@media (max-width: 960px) {
	.osm-al { grid-template-columns: 1fr; }
}
@media (max-width: 720px) { .osm-al { padding: 16px 12px; } }

/* Rail — KD-517 slice 3 ------------------------------------- */
.osm-rail-nav { padding: 14px 16px; }
.osm-rail-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.osm-rail-item { }
.osm-rail-item > a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	border-radius: 8px;
	color: var(--osm-text);
	text-decoration: none;
	font-size: 14px;
	line-height: 1.3;
}
.osm-rail-item > a:hover { background: var(--osm-bg); text-decoration: none; }
.osm-rail-item.is-active > a { background: var(--osm-primary-soft); color: var(--osm-primary-dk); font-weight: 600; }
.osm-rail-icon { width: 18px; text-align: center; color: var(--osm-muted); font-weight: 700; }
.osm-rail-item.is-active .osm-rail-icon { color: var(--osm-primary); }
.osm-rail-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.osm-rail-count {
	background: var(--osm-bg);
	color: var(--osm-muted);
	font-size: 11px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 999px;
	flex-shrink: 0;
}
.osm-rail-item.is-active .osm-rail-count { background: #fff; color: var(--osm-primary-dk); }
.osm-rail-count.is-new {
	background: rgba(34,197,94,.16);
	color: var(--osm-up-dk);
}
.osm-rail-count.is-new::before { content: "●"; font-size: 7px; margin-right: 3px; }
.osm-rail-section { margin: 14px 0 6px; padding: 0 10px; }
.osm-rail-job > a { font-size: 13px; }
.osm-rail-sub { list-style: none; margin: 2px 0 4px; padding: 0 0 0 28px; display: flex; flex-direction: column; gap: 1px; }
.osm-rail-sub li a {
	display: block; padding: 4px 8px; border-radius: 6px;
	color: var(--osm-muted); text-decoration: none; font-size: 12.5px;
}
.osm-rail-sub li a:hover { background: var(--osm-bg); color: var(--osm-text); text-decoration: none; }
.osm-rail-sub li.is-active a { color: var(--osm-primary); font-weight: 600; }
.osm-rail-footer { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--osm-border); }
.osm-rail-footer a { color: var(--osm-muted); text-decoration: none; }
.osm-rail-footer a:hover { color: var(--osm-primary); text-decoration: underline; }

@media (max-width: 960px) {
	.osm-rail-nav { padding: 10px 12px; }
	.osm-rail-list { flex-direction: row; flex-wrap: wrap; gap: 4px; }
	.osm-rail-item { flex: 0 1 auto; }
	.osm-rail-section { width: 100%; padding: 0; margin-top: 8px; }
	/* Sub-nav (List / Kanban / Stages) stays visible inline on mobile
	 * for the active job. Hiding it left the user with no rail-side way
	 * to switch sub-views, forcing reliance on the in-page tools row. */
	.osm-rail-job.is-active { width: 100%; }
	.osm-rail-sub {
		flex-direction: row;
		gap: 4px;
		padding: 4px 0 0 28px;
		flex-wrap: wrap;
	}
	.osm-rail-sub li a {
		padding: 4px 10px;
		background: var(--osm-bg);
		border-radius: 999px;
		font-size: 12px;
	}
	.osm-rail-sub li.is-active a { background: var(--osm-primary-soft); }
	.osm-rail-footer { width: 100%; }
}
.osm-al-head { margin-bottom: 18px; }

/* Inline breadcrumb — wpautop is removed in router, but keep this defensive */
.osm-al-crumbs {
	margin-bottom: 8px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
}
.osm-al-crumbs br { display: none; }
.osm-al-crumbs a { color: var(--osm-muted); text-decoration: none; }
.osm-al-crumbs a:hover { color: var(--osm-primary); text-decoration: underline; }
.osm-al-crumbs span[aria-hidden="true"] { color: var(--osm-subtle); }
.osm-al-outlet > * + * { margin-top: 18px; }

/* Filter chips bar -------------------------------------------- */
.osm-al-filters { margin-bottom: 0; }
.osm-al-filter-form { margin: 0; }
.osm-al-filter-row { align-items: flex-end; gap: 18px; }
.osm-al-filter-field { display: flex; flex-direction: column; gap: 6px; min-width: 140px; }
.osm-al-filter-field .osm-h4 { margin: 0 0 4px; }
.osm-al-range { display: inline-flex; align-items: center; gap: 6px; }
.osm-al-range > span[aria-hidden="true"] { color: var(--osm-subtle); }
.osm-input-sm { padding: 6px 10px; font-size: 13px; max-width: 90px; }
.osm-al-filter-actions { display: flex; gap: 8px; padding-bottom: 2px; }
.osm-al-result-count { margin: 12px 0 0; }

/* Card grid --------------------------------------------------- */
.osm-al-list { display: grid; gap: 12px; }
.osm-al-card { padding: 18px 22px; }
.osm-al-card-grid {
	display: grid;
	grid-template-columns: minmax(0,1fr) auto auto auto;
	gap: 18px;
	align-items: center;
}
.osm-al-card-applicant { display: flex; gap: 12px; align-items: center; min-width: 0; }
.osm-al-avatar { width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; }
.osm-al-name { font-weight: 700; font-size: 15px; color: var(--osm-text); }
.osm-al-meta { color: var(--osm-muted); font-size: 12px; margin-top: 2px; }
.osm-al-card-score { text-align: center; min-width: 56px; }
.osm-al-pct { font-size: 1.5rem; font-weight: 800; line-height: 1; color: var(--osm-up-dk); }
.osm-al-pct.is-mid  { color: #b58300; }
.osm-al-pct.is-low  { color: var(--osm-subtle); }
.osm-al-pct-lbl { font-size: 10px; color: var(--osm-muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }

/* Pagination -------------------------------------------------- */
.osm-al-pagination { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 18px; }

@media (max-width: 720px) {
	.osm-al-card-grid {
		grid-template-columns: minmax(0,1fr) auto;
	}
	.osm-al-card-stage, .osm-al-card-actions { grid-column: 1 / -1; justify-self: start; }
	.osm-al-filter-row { flex-direction: column; align-items: stretch; }
	.osm-al-filter-field { min-width: 0; }
}

/* Single application view (slice C) --------------------------- */
.osm-as-applicant-grid {
	display: grid;
	grid-template-columns: 72px minmax(0,1fr) auto;
	gap: 18px;
	align-items: center;
}
.osm-as-avatar { width: 72px; height: 72px; border-radius: 50%; }
.osm-as-applicant-body h2 { margin: 0 0 4px; }
.osm-as-applicant-actions { display: flex; gap: 8px; }

.osm-as-match-grid {
	display: grid;
	grid-template-columns: auto auto 1fr;
	gap: 28px;
	align-items: center;
	margin-top: 8px;
}
.osm-as-score { font-size: 2.25rem; font-weight: 800; line-height: 1; color: var(--osm-up-dk); }
.osm-as-score.is-mid { color: #b58300; }
.osm-as-score.is-low { color: var(--osm-subtle); }
.osm-as-divergence { display: flex; gap: 8px; align-items: center; }
.osm-as-evidence { margin-top: 14px; }
.osm-as-evidence summary { cursor: pointer; font-weight: 600; color: var(--osm-primary); }
.osm-as-evidence-list { list-style: none; padding: 12px 0 0; margin: 0; display: grid; gap: 6px; }
.osm-as-evidence-list li {
	display: flex; justify-content: space-between; gap: 12px;
	padding: 6px 10px; border-bottom: 1px solid var(--osm-border);
	font-size: 13px;
}
.osm-as-evidence-weight { color: var(--osm-muted); font-variant-numeric: tabular-nums; }

.osm-as-doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.osm-as-doc-row {
	display: grid; grid-template-columns: 1fr auto;
	gap: 14px; align-items: center;
	padding: 12px 14px; border: 1px solid var(--osm-border); border-radius: 10px;
	background: #fff;
}
.osm-as-doc-name { font-weight: 600; }
.osm-as-doc-form { margin: 0; }
/* Remove on the saved list is a POST form now, not an anchor, so it must
   not add a theme's default form margin to the action row. Same reason as
   the doc form above. */
.osm-al-unsave-form { margin: 0; }

.osm-as-cover-body {
	background: var(--osm-bg);
	border: 1px solid var(--osm-border);
	border-radius: 10px;
	padding: 14px 16px;
	font-size: 14px;
	line-height: 1.55;
}

.osm-as-stage-form { display: flex; gap: 14px; align-items: end; flex-wrap: wrap; }
.osm-as-stage-field { display: flex; flex-direction: column; gap: 6px; min-width: 200px; }

.osm-as-log-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.osm-as-log-table th, .osm-as-log-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--osm-border); }
.osm-as-log-table th { color: var(--osm-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: 11px; }

@media (max-width: 720px) {
	.osm-as-applicant-grid { grid-template-columns: 56px minmax(0,1fr); }
	.osm-as-applicant-actions { grid-column: 1 / -1; }
	.osm-as-match-grid { grid-template-columns: 1fr 1fr; }
	.osm-as-divergence { grid-column: 1 / -1; }
}

/* Kanban (slice D) ------------------------------------------- */
.osm-al-tools, .osm-al-kb-tools { margin-bottom: 12px; align-items: center; }
.osm-kb-scroll { overflow-x: auto; padding-bottom: 8px; }
.osm-kb-board {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 260px;
	gap: 14px;
	min-width: min-content;
}
.osm-kb-col {
	background: var(--osm-bg);
	border: 1px solid var(--osm-border);
	border-radius: 12px;
	padding: 12px;
	display: flex;
	flex-direction: column;
	min-height: 240px;
}
.osm-kb-col-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.osm-kb-col-head h3 { margin: 0; font-size: 14px; }
.osm-kb-col-body { display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 80px; padding: 4px; border-radius: 8px; }
.osm-kb-col-body.is-drop-target { background: var(--osm-cyan-soft); outline: 2px dashed var(--osm-cyan); outline-offset: -2px; }

.osm-kb-card {
	background: #fff;
	border: 1px solid var(--osm-border);
	border-radius: 10px;
	padding: 10px 12px;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
	cursor: grab;
	user-select: none;
}
.osm-kb-card:hover { border-color: var(--osm-primary-soft); }
.osm-kb-card.is-dragging { opacity: .5; cursor: grabbing; }
.osm-kb-card.is-revert { animation: osm-kb-shake .4s; }
@keyframes osm-kb-shake {
	0%,100% { transform: translateX(0); }
	25% { transform: translateX(-4px); }
	75% { transform: translateX(4px); }
}

.osm-kb-card-link { display: block; text-decoration: none; color: inherit; }
.osm-kb-card-link:hover { text-decoration: none; }
.osm-kb-card-name { font-weight: 600; font-size: 13px; color: var(--osm-text); }
.osm-kb-card-score { display: flex; align-items: baseline; gap: 4px; margin-top: 4px; }
.osm-kb-card-pct { font-weight: 700; font-size: 14px; color: var(--osm-primary-dk); font-variant-numeric: tabular-nums; }
.osm-kb-card-pct-lbl { font-size: 10px; color: var(--osm-muted); text-transform: uppercase; letter-spacing: .04em; }
.osm-kb-overflow { padding: 8px 4px; color: var(--osm-muted); font-style: italic; text-align: center; }

/* Stages manager (slice E) ------------------------------------ */
.osm-sm-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.osm-sm-table th, .osm-sm-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--osm-border); vertical-align: middle; font-size: 13px; }
.osm-sm-table th { color: var(--osm-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: 11px; }
.osm-sm-row.is-reserved { background: var(--osm-bg); }
.osm-sm-row.is-reserved input[type="text"] { background: #fff; }
.osm-sm-reserved-note { display: block; margin-top: 4px; color: var(--osm-muted); }
.osm-sm-col-actions { width: 1%; white-space: nowrap; text-align: right; }
.osm-sm-delete { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.osm-sm-delete input[disabled] + span { color: var(--osm-subtle); cursor: not-allowed; }

.osm-sm-new { padding: 14px 0 0; }
.osm-sm-new legend { padding: 0; margin: 0 0 10px; }
.osm-sm-new-field { display: flex; flex-direction: column; gap: 4px; }
.osm-sm-new-field-grow { flex: 1; min-width: 200px; }
.osm-sm-actions { padding-top: 14px; }

/* KD-515 — Candidate-side dashboards -------------------------- */

/* /dashboard/applications/ — My applications */
.osm-ca-hd { margin-bottom: 18px; }
.osm-ca-empty { text-align: center; max-width: 560px; margin: 24px auto; }

.osm-ca-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.osm-ca-table th, .osm-ca-table td { text-align: left; padding: 12px 12px; border-bottom: 1px solid var(--osm-border); vertical-align: middle; font-size: 14px; }
.osm-ca-table th { color: var(--osm-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: 11px; background: var(--osm-bg); }
.osm-ca-role { font-weight: 600; color: var(--osm-text); }
.osm-ca-docs { display: inline-block; margin-left: 8px; padding: 1px 8px; background: var(--osm-cyan-soft); border-radius: 8px; font-size: 11px; font-weight: 500; color: var(--osm-text); }
.osm-ca-employer { color: var(--osm-muted); }
.osm-ca-date { white-space: nowrap; color: var(--osm-muted); font-variant-numeric: tabular-nums; }
.osm-ca-actions-col { width: 1%; white-space: nowrap; }
.osm-ca-actions { text-align: right; }
.osm-ca-form { display: inline-block; margin: 0; }

.osm-ca-status { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.osm-ca-status-publish  { background: #dff4e3; color: #065f1f; }
.osm-ca-status-trash    { background: #fde2e2; color: #8a1b1b; }
.osm-ca-status-archived { background: #eaeaea; color: var(--osm-muted); }

/* /dashboard/document-access/ — transparency log */
.osm-da-hd { margin-bottom: 18px; }
.osm-da-empty { text-align: center; max-width: 560px; margin: 24px auto; }

.osm-da-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.osm-da-table th, .osm-da-table td { text-align: left; padding: 12px 12px; border-bottom: 1px solid var(--osm-border); vertical-align: middle; font-size: 14px; }
.osm-da-table th { color: var(--osm-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: 11px; background: var(--osm-bg); }
.osm-da-when { white-space: nowrap; color: var(--osm-muted); font-variant-numeric: tabular-nums; }
.osm-da-doc { font-weight: 500; color: var(--osm-text); }

.osm-da-role { display: inline-block; padding: 1px 8px; border-radius: 8px; font-size: 12px; font-weight: 500; }
.osm-da-role-employer { background: var(--osm-primary-soft); color: var(--osm-primary-dk); }
.osm-da-role-self     { background: var(--osm-bg); color: var(--osm-muted); }
.osm-da-role-admin    { background: #fff3cd; color: #6b5300; }
.osm-da-role-denied   { background: #fde2e2; color: #8a1b1b; }
.osm-da-role-unrecognised { background: #fde2e2; color: #8a1b1b; }
.osm-da-role-text { display: block; color: var(--osm-muted); }

.osm-da-result { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.osm-da-result-success { background: #dff4e3; color: #065f1f; }
.osm-da-result-denied  { background: #fde2e2; color: #8a1b1b; }
.osm-da-result-missing { background: #fff3cd; color: #6b5300; }
.osm-da-result-purged  { background: #eaeaea; color: var(--osm-muted); }
.osm-da-reason { margin-left: 6px; }

@media (max-width: 720px) {
	.osm-ca-table thead, .osm-da-table thead { display: none; }
	.osm-ca-table tr, .osm-da-table tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--osm-border); }
	.osm-ca-table td, .osm-da-table td { display: block; padding: 4px 0; border: 0; }
	.osm-ca-actions { text-align: left; padding-top: 8px !important; }
}

/* KD-506 slice C — Verified credentials (Credly) section on for-hire profile.
   Plain expanded section, matches the rest of the for-hire form (earlier
   <details>/<summary> shape made it look hidden). Status class is
   `osm-credly-state` not `osm-credly-status` — that name was already taken
   above for an unrelated element. */
.osm-credly { margin-top: 18px; padding: 0; }
.osm-credly-header {
	display: flex; align-items: center; justify-content: space-between;
	gap: 12px; padding: 18px 22px;
	border-bottom: 1px solid var(--osm-border, #e2e8f0);
}
.osm-credly-title { font-weight: 600; font-size: 15px; margin: 0; }
.osm-credly-state { font-size: 13px; color: var(--osm-muted, #64748b); }
.osm-credly-state-on { color: #15803d; }
.osm-credly > :not(.osm-credly-header) { padding: 16px 22px 0; }
.osm-credly > :not(.osm-credly-header):last-child { padding-bottom: 18px; }
.osm-credly-connect-form .osm-credly-label { display: block; font-size: 13px; margin-bottom: 6px; font-weight: 500; }
.osm-credly-input-row { display: flex; gap: 8px; flex-wrap: wrap; }
.osm-credly-input-row .osm-input { flex: 1 1 280px; padding: 8px 12px; }
.osm-credly-meta { color: var(--osm-muted, #64748b); margin: 0 0 12px; }
.osm-credly-meta code { background: #f1f5f9; padding: 1px 6px; border-radius: 4px; }
.osm-credly-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.osm-credly-item {
	display: flex; align-items: center; gap: 10px; padding: 10px 12px;
	background: #f8fafc; border: 1px solid var(--osm-border, #e2e8f0); border-radius: 6px;
	flex-wrap: wrap;
}
.osm-credly-item.is-expired { opacity: 0.7; }
.osm-credly-item.is-expired strong { text-decoration: line-through; }
.osm-credly-issuer { color: var(--osm-muted, #64748b); font-size: 13px; }
.osm-credly-tag { font-size: 11px; padding: 2px 8px; border-radius: 999px; }
.osm-credly-tag-expired { background: #fef3c7; color: #92400e; }
.osm-credly-verify { margin-left: auto; font-size: 12px; }
.osm-credly-actions { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 8px; }
.osm-btn-danger { color: #b91c1c; }

/* Under the ksec-training header band (DEV-274) ---------------- */
/* The band carries the lede, so the page's own copy stays hidden if it is still in the content. */
body.os-band-page .os-j-lede { display: none; }
.os-board-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; scroll-margin-top: 90px; }
.os-board-head h2 { margin: 0; font-size: 22px; line-height: 1.25; }
.os-board-head span { color: var(--os-j-m, #64748b); font-size: 14px; }
