/**
 * Clasva Employer — Shell/navigation styling.
 *
 * Consumes assets/css/employer-tokens.css (registered as a style
 * dependency by Employer_Shell_Shortcode::register_assets()) for shared
 * color/spacing/container values, rather than redefining its own copy —
 * see CLASVA-DESIGN-SYSTEM-v0.1.md.
 */

.clasva-esh__nav {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	background: var(--clasva-navy);
	padding: 0.9rem 1.5rem;
	flex-wrap: wrap;
}

.clasva-esh__brand {
	color: var(--clasva-white);
	font-family: var(--clasva-font-sans);
	font-weight: 700;
	font-size: 1.05rem;
	letter-spacing: -0.01em;
	margin-right: 0.5rem;
}

.clasva-esh__nav-list {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	margin: 0;
	padding: 0;
}

.clasva-esh__nav-link {
	display: inline-block;
	/* Brightened from the earlier #cbd5e1 — real-browser review flagged
	   inactive nav items as reading too weak against the navy bar, even
	   though the raw contrast ratio passed WCAG AA; #e2e8f0 + heavier
	   weight reads clearly "present but inactive" instead of "disabled".
	   !important is required: a sitewide Breakdance global style sets a
	   bare `a { color: var(--bde-palette-color-1-...) }` (theme-configured
	   dark slate, ~#2f3a45) that otherwise wins here — same class of
	   theme-!important collision as headings (CURRENT-STATE.md §4 #14),
	   confirmed live via axe (2026-08-26): it silently overrode this rule
	   and read 1.9:1 against the navy bar, well below WCAG AA. */
	color: #e2e8f0 !important;
	font-family: var(--clasva-font-sans);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.92rem;
	padding: 0.5em 0.9em;
	border-radius: 999px;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.clasva-esh__nav-link:hover {
	background: rgba(255, 255, 255, 0.1);
	color: var(--clasva-white);
}

.clasva-esh__nav-link--active {
	background: var(--clasva-blue);
	color: var(--clasva-white) !important; /* same theme-!important collision as above */
}

.clasva-esh__nav-link:focus-visible {
	outline: 2px solid var(--clasva-white);
	outline-offset: 2px;
}

.clasva-esh__content {
	background: var(--clasva-gray-100);
	min-height: 40vh;
	padding: var(--clasva-space-5) 0 var(--clasva-space-7);
}

/* Shared width for every page nested inside the shell (including
   Clasva Inbox's own [clasva_inbox], which brings no container of its
   own) — the same --clasva-container value each Employer page's own
   root element also uses, so nesting is a no-op there and a genuine fix
   here. */
.clasva-esh {
	/* The Breakdance page section wrapping this shell is `display:flex`
	   with no stretch/grow set on its children, so a shell with no
	   explicit width shrink-wraps to its CONTENT's intrinsic width
	   instead of filling the row — verified via live-browser inspection:
	   a page whose content includes an `auto-fill`/`minmax()` CSS grid
	   (My Jobs' card grid) produced a dramatically smaller intrinsic
	   width than a page without one (Overview, Company), even though
	   both declare the identical --clasva-container max-width. `width:
	   100%` makes every Employer page fill the row consistently; the
	   max-width below still caps it on very wide viewports. */
	width: 100%;
	box-sizing: border-box;
}

.clasva-esh__inner {
	width: 100%;
	max-width: var(--clasva-container);
	margin: 0 auto;
	padding: 0 var(--clasva-space-5);
	box-sizing: border-box;
}

@media (max-width: 600px) {
	.clasva-esh__inner {
		padding: 0 var(--clasva-space-4);
	}
}

/**
 * Tablet: at ~825px the brand + 4 nav links + their gaps no longer fit
 * one row, so individual <li>s wrap awkwardly mid-list. Stack the brand
 * above a full-width nav list instead — same 4 items, same order, just
 * a cleaner flow. Distinct from the narrower 600px rule below, which
 * additionally shrinks link size/padding for phone widths.
 */
@media (max-width: 900px) {
	.clasva-esh__nav {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.6rem;
	}

	.clasva-esh__brand {
		margin-right: 0;
	}

	.clasva-esh__nav-list {
		width: 100%;
	}
}

@media (max-width: 600px) {
	.clasva-esh__nav {
		gap: 0.75rem;
		padding: 0.75rem 1rem;
	}

	.clasva-esh__brand {
		width: 100%;
	}

	.clasva-esh__nav-list {
		gap: 0.4rem;
	}

	.clasva-esh__nav-link {
		font-size: 0.85rem;
		padding: 0.4em 0.7em;
	}
}
