/* ==========================================================================
   Job Market SA
   Mobile-first. Every rule below assumes a cheap Android handset on expensive
   data until a media query says otherwise.
   ========================================================================== */

:root {
	--blue: #1558A6;
	--blue-dark: #114787;
	--blue-tint: #E6F1FB;
	--navy: #111827;
	--navy-deep: #0B0F18;
	--navy-soft: #1F2937;
	--green: #16A34A;
	--green-dark: #128040;
	--amber-text: #92400E;
	--amber-bg: #FEF3C7;
	--red-text: #991B1B;
	--red-bg: #FEE2E2;
	--ink: #111827;
	--ink-soft: #374151;
	--muted: #6B7280;
	--muted-light: #9CA3AF;
	--line: #E5E7EB;
	--line-soft: #F3F4F6;
	--bg: #FFFFFF;
	--bg-tint: #F5F7FA;
	--radius: 8px;
	--radius-sm: 5px;
	--wrap: 1120px;
	--font-head: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

h1, h2, h3, h4 {
	font-family: var(--font-head);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.02em;
	color: var(--navy);
	margin: 0 0 0.5em;
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.375rem; }
h3 { font-size: 1.125rem; }

p { margin: 0 0 1rem; }

a { color: var(--blue); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

:focus-visible {
	outline: 3px solid var(--blue);
	outline-offset: 2px;
	border-radius: 3px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 200;
	background: var(--navy);
	color: #fff;
	padding: 12px 20px;
}
.skip-link:focus { left: 0; }

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 16px;
}
.wrap--narrow { max-width: 760px; }

.icon {
	width: 1em;
	height: 1em;
	flex: none;
	vertical-align: -0.125em;
}

/* --- Buttons ------------------------------------------------------------ */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	font-family: var(--font-body);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.2;
	padding: 12px 20px;
	border: 1px solid transparent;
	border-radius: var(--radius-sm);
	cursor: pointer;
	text-align: center;
	min-height: 44px;
	transition: background-color 0.15s ease;
}
.btn:hover, .btn:focus { text-decoration: none; }

.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover, .btn--primary:focus { background: var(--blue-dark); color: #fff; }

.btn--apply { background: var(--green); color: #fff; font-size: 1.0625rem; padding: 15px 24px; }
.btn--apply:hover, .btn--apply:focus { background: var(--green-dark); color: #fff; }

.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { background: var(--bg-tint); }

.btn--sm { font-size: 0.875rem; padding: 9px 14px; min-height: 40px; }
.btn--block { display: flex; width: 100%; }

/* --- Header ------------------------------------------------------------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #fff;
	border-bottom: 1px solid var(--line);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 64px;
}

.site-header__brand { flex: none; margin-right: auto; }
.site-header__brand img { max-height: 44px; width: auto; }

.wordmark { display: block; line-height: 1; }
.wordmark:hover { text-decoration: none; }
.wordmark__name {
	display: block;
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 1.0625rem;
	color: var(--navy);
	letter-spacing: -0.02em;
	text-transform: uppercase;
}
.wordmark__tag {
	display: block;
	font-size: 0.5625rem;
	letter-spacing: 0.16em;
	color: var(--muted);
	text-transform: uppercase;
	margin-top: 3px;
}

.site-header__actions { display: flex; align-items: center; gap: 8px; flex: none; }

.nav-toggle {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	width: 44px;
	height: 44px;
	padding: 0 10px;
	background: transparent;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	cursor: pointer;
}
.nav-toggle__bar {
	display: block;
	height: 2px;
	background: var(--navy);
	border-radius: 2px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.site-nav {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #fff;
	border-bottom: 1px solid var(--line);
	padding: 8px 16px 16px;
	max-height: calc(100vh - 64px);
	overflow-y: auto;
}
.site-nav.is-open { display: block; }

.site-nav__list { list-style: none; margin: 0; padding: 0; }
.site-nav__list li { border-bottom: 1px solid var(--line-soft); }
.site-nav__list li:last-child { border-bottom: 0; }
.site-nav__list a {
	display: block;
	padding: 13px 4px;
	font-size: 1rem;
	font-weight: 500;
	color: var(--ink-soft);
	min-height: 44px;
}
.site-nav__list a:hover { color: var(--blue); text-decoration: none; }
.site-nav__list .current-menu-item > a { color: var(--blue); font-weight: 600; }

/* --- Hero --------------------------------------------------------------- */

.hero { background: var(--navy); padding: 32px 0 26px; }

.hero__title {
	color: #fff;
	text-align: center;
	font-size: 1.625rem;
	margin: 0 0 10px;
}

.hero__sub {
	color: var(--muted-light);
	text-align: center;
	font-size: 0.9375rem;
	max-width: 46ch;
	margin: 0 auto 18px;
}

.hero__popular {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
	align-items: center;
	margin-top: 16px;
}
.hero__popular-label { font-size: 0.8125rem; color: var(--muted); margin-right: 2px; }

.chip {
	display: inline-block;
	font-size: 0.8125rem;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--navy-soft);
	color: #D1D5DB;
	line-height: 1.3;
}
.chip:hover, .chip:focus { background: var(--blue); color: #fff; text-decoration: none; }

.chip--light { background: var(--bg-tint); color: var(--ink-soft); border: 1px solid var(--line); }
.chip--light:hover, .chip--light:focus { background: var(--blue); color: #fff; border-color: var(--blue); }

/* --- Filters ------------------------------------------------------------ */

.filters {
	display: grid;
	gap: 8px;
	background: #fff;
	border-radius: var(--radius);
	padding: 8px;
	max-width: 720px;
	margin: 0 auto;
}

.filters__field { position: relative; }

.filters__icon {
	position: absolute;
	left: 11px;
	top: 50%;
	transform: translateY(-50%);
	width: 16px;
	height: 16px;
	color: var(--muted);
	pointer-events: none;
}
.filters__field--search input { padding-left: 34px; }

.filters input[type="search"],
.filters input[type="text"],
.filters select {
	width: 100%;
	font-family: var(--font-body);
	font-size: 16px; /* 16px stops iOS zooming on focus. Do not lower this. */
	padding: 11px 12px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--bg-tint);
	color: var(--ink);
	min-height: 44px;
	-webkit-appearance: none;
	appearance: none;
}

.filters select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 16px;
	padding-right: 32px;
}

.filters .btn { min-height: 46px; }

.filters__clear {
	align-self: center;
	font-size: 0.875rem;
	color: var(--muted);
	text-align: center;
	padding: 8px;
}

.filters-bar { margin: 0 0 20px; }
.filters-bar .filters {
	background: var(--bg-tint);
	border: 1px solid var(--line);
	max-width: none;
	padding: 10px;
}

.sidebar .filters { padding: 0; background: transparent; border: 0; }
.sidebar .filters .btn { width: 100%; }
/* The sidebar is 300px. Whatever the desktop grid says, stack it. */
.filters--compact { grid-template-columns: 1fr !important; }
.filters--compact .filters__field--search { grid-column: auto !important; }

/* --- Sections ----------------------------------------------------------- */

.section { padding: 28px 0; }
.section--tint { background: var(--bg-tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--featured { padding-top: 0; }

.section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}
.section__head .section__title { margin: 0; }

.section__title { font-size: 1.3125rem; margin: 0 0 14px; }
.section__more { font-size: 0.875rem; font-weight: 600; flex: none; }

.page-head { padding: 22px 0 16px; }
.page-head__title { margin: 0 0 6px; }
.page-head__sub { color: var(--muted); margin: 0; font-size: 0.9375rem; max-width: 62ch; }

.results-count { font-size: 0.875rem; color: var(--muted); margin: 0 0 12px; }

/* --- Grids -------------------------------------------------------------- */

.grid { display: grid; gap: 12px; }
.grid--jobs { grid-template-columns: 1fr; }
.grid--articles { grid-template-columns: 1fr; }
.grid--cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--provinces { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* --- Job card ----------------------------------------------------------- */

.job-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 14px;
	background: #fff;
	transition: border-color 0.15s ease;
}
.job-card:hover { border-color: #C7CDD6; }
.job-card--closed { opacity: 0.72; }

.pill {
	align-self: flex-start;
	display: inline-block;
	font-size: 0.625rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	padding: 3px 7px;
	border-radius: 3px;
	background: var(--blue-tint);
	color: #185FA5;
	line-height: 1.4;
}
.pill:hover, .pill:focus { text-decoration: none; background: var(--blue); color: #fff; }
.pill--learnerships, .pill--internships, .pill--graduate-programmes { background: #EAF3DE; color: #3B6D11; }
.pill--government-jobs { background: #EEEDFE; color: #534AB7; }
.pill--jobs-without-matric { background: #FAEEDA; color: #854F0B; }

.job-card__title { font-size: 1.0625rem; margin: 9px 0 3px; }
.job-card__title a { color: var(--navy); }
.job-card__title a:hover { color: var(--blue); text-decoration: none; }

.job-card__company { font-size: 0.875rem; color: var(--ink-soft); margin: 0 0 9px; }

.meta {
	display: flex;
	flex-direction: column;
	gap: 3px;
	font-size: 0.8125rem;
	color: var(--muted);
	border-top: 1px solid var(--line-soft);
	padding-top: 9px;
	margin-bottom: 11px;
}
.meta__item { display: flex; align-items: center; gap: 6px; }
.meta__item .icon { width: 13px; height: 13px; color: var(--muted-light); }
.meta__item--urgent { color: var(--amber-text); font-weight: 500; }
.meta__item--closed { color: var(--red-text); font-weight: 500; }
.meta__item--date { color: #993C1D; }

.job-card__cta { margin-top: auto; }

/* --- Category and province cards ---------------------------------------- */

.cat-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 4px;
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 14px 8px;
	background: #fff;
	color: var(--navy);
	transition: border-color 0.15s ease, background-color 0.15s ease;
}
.cat-card:hover, .cat-card:focus { text-decoration: none; border-color: var(--blue); background: var(--blue-tint); }
.cat-card__icon { width: 24px; height: 24px; color: var(--blue); }
.cat-card__name { font-size: 0.875rem; font-weight: 600; line-height: 1.25; }
.cat-card__count { font-size: 0.75rem; color: var(--muted); }

.prov-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	padding: 12px;
	color: var(--navy);
	min-height: 46px;
}
.prov-card:hover, .prov-card:focus { text-decoration: none; border-color: var(--blue); color: var(--blue); }
.prov-card__name { font-size: 0.875rem; font-weight: 500; }
.prov-card__count { font-size: 0.75rem; color: var(--muted); }
.prov-card--all { background: var(--navy); border-color: var(--navy); color: #fff; }
.prov-card--all:hover, .prov-card--all:focus { background: var(--navy-deep); color: #fff; }

/* --- Article card ------------------------------------------------------- */

.article-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--line);
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
}
.article-card__media { display: block; aspect-ratio: 16 / 9; background: var(--bg-tint); }
.article-card__media img { width: 100%; height: 100%; object-fit: cover; }
.article-card__placeholder { display: block; width: 100%; height: 100%; background: var(--bg-tint); }
.article-card__body { padding: 14px; display: flex; flex-direction: column; flex: 1; }
.article-card__title { font-size: 1rem; margin: 0 0 6px; }
.article-card__title a { color: var(--navy); }
.article-card__excerpt { font-size: 0.875rem; color: var(--muted); margin: 0 0 10px; }
.article-card__more { font-size: 0.875rem; font-weight: 600; margin-top: auto; }

/* --- Breadcrumbs -------------------------------------------------------- */

.breadcrumbs { padding: 14px 0 0; font-size: 0.8125rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumbs li { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.breadcrumbs li:not(:last-child)::after { content: "›"; color: var(--muted-light); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs [aria-current] { color: var(--ink-soft); }

/* --- Layout with sidebar ------------------------------------------------ */

.layout { display: grid; gap: 28px; padding-bottom: 32px; }

/* --- Job post ----------------------------------------------------------- */

.job__head { padding: 8px 0 14px; }
.job__title { font-size: 1.625rem; margin: 0 0 6px; }
.job__dates { font-size: 0.8125rem; color: var(--muted); margin: 0; }

.summary {
	background: var(--bg-tint);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 14px 16px;
	margin-bottom: 18px;
}
.summary__list { margin: 0; }
.summary__row {
	display: grid;
	grid-template-columns: 40% 1fr;
	gap: 10px;
	padding: 7px 0;
	border-bottom: 1px solid var(--line);
}
.summary__row:last-child { border-bottom: 0; }
.summary dt { font-size: 0.8125rem; color: var(--muted); font-weight: 500; }
.summary dd { margin: 0; font-size: 0.9375rem; font-weight: 500; color: var(--navy); }
.summary dd .is-urgent { color: var(--amber-text); }

.apply { margin: 0 0 20px; }
.apply--bottom { margin: 24px 0; }
.apply__disclaimer {
	font-size: 0.75rem;
	color: var(--muted);
	line-height: 1.6;
	margin: 10px 0 0;
	text-align: center;
}

.closed-notice {
	background: var(--red-bg);
	border: 1px solid #F7C1C1;
	border-radius: 10px;
	padding: 16px;
	margin-bottom: 20px;
}
.closed-notice__title { font-size: 1.0625rem; color: var(--red-text); margin: 0 0 6px; }
.closed-notice p { font-size: 0.875rem; color: #7A2E2E; margin: 0 0 12px; }

.warning {
	display: flex;
	gap: 11px;
	background: var(--amber-bg);
	border: 1px solid #FAC775;
	border-radius: 10px;
	padding: 14px;
	margin: 22px 0;
}
.warning__icon { width: 20px; height: 20px; flex: none; color: var(--amber-text); margin-top: 2px; }
.warning strong { display: block; color: var(--amber-text); font-size: 0.9375rem; margin-bottom: 3px; }
.warning p { font-size: 0.8125rem; color: #7A4A0C; margin: 0; line-height: 1.6; }

.source { margin: 22px 0; padding-top: 16px; border-top: 1px solid var(--line); }
.source h2 { font-size: 1.0625rem; }
.source p { font-size: 0.875rem; color: var(--muted); }

.job__terms { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0; }

/* --- Entry content ------------------------------------------------------ */

.entry { font-size: 1rem; }
.entry > *:first-child { margin-top: 0; }
.entry h2 { font-size: 1.25rem; margin: 1.75rem 0 0.6rem; }
.entry h3 { font-size: 1.0625rem; margin: 1.4rem 0 0.5rem; }
.entry ul, .entry ol { padding-left: 1.3em; margin: 0 0 1rem; }
.entry li { margin-bottom: 0.4rem; }
.entry img { border-radius: var(--radius); margin: 1.25rem 0; }
.entry blockquote {
	border-left: 3px solid var(--blue);
	border-radius: 0;
	margin: 1.25rem 0;
	padding: 2px 0 2px 14px;
	color: var(--ink-soft);
}
.entry table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: 0.875rem; }
.entry th, .entry td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.entry th { background: var(--bg-tint); font-weight: 600; }
.entry a { text-decoration: underline; }

/* --- Article ------------------------------------------------------------ */

.article { padding-bottom: 24px; }
.article__head { padding: 10px 0 14px; }
.article__title { font-size: 1.75rem; margin: 0 0 8px; }
.article__meta { font-size: 0.8125rem; color: var(--muted); margin: 0; }
.article__media { margin: 0 0 20px; }
.article__media img { border-radius: 10px; width: 100%; }

.post-nav {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 0;
	border-top: 1px solid var(--line);
	font-size: 0.875rem;
}
.post-nav__next { margin-left: auto; text-align: right; }

/* --- Comments ----------------------------------------------------------- */

.comments { padding: 24px 0; border-top: 1px solid var(--line); }
.comments__title { font-size: 1.125rem; }
.comments__list { list-style: none; margin: 0 0 20px; padding: 0; }
.comments__list ol { list-style: none; padding-left: 20px; }
.comments__list .comment-body { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.comments__list .comment-author { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; font-weight: 600; }
.comments__list .comment-author img { border-radius: 50%; }
.comments__list .comment-metadata { font-size: 0.75rem; color: var(--muted); margin-bottom: 6px; }
.comments__list .comment-content { font-size: 0.9375rem; }
.comments__closed { font-size: 0.875rem; color: var(--muted); }
.comments__note { font-size: 0.8125rem; color: var(--muted); }
.comment-form label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 4px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	font-family: var(--font-body);
	font-size: 16px;
	padding: 11px 12px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: #fff;
	margin-bottom: 12px;
}

/* --- Sidebar ------------------------------------------------------------ */

.sidebar { display: flex; flex-direction: column; gap: 16px; }

.side-block {
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 14px;
	background: #fff;
}
.side-block__title {
	font-size: 0.9375rem;
	margin: 0 0 10px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--line);
}

.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li { padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.side-list li:last-child { border-bottom: 0; }
.side-list a { font-size: 0.875rem; font-weight: 500; color: var(--navy); }
.side-list a:hover { color: var(--blue); }
.side-list__meta { display: block; font-size: 0.75rem; color: var(--muted); margin-top: 2px; }

.side-list--tags { display: flex; flex-wrap: wrap; gap: 6px; }
.side-list--tags li { border: 0; padding: 0; }
.side-list--tags a {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 0.8125rem;
	font-weight: 400;
	background: var(--bg-tint);
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 5px 10px;
}
.side-list--tags a:hover { background: var(--blue); border-color: var(--blue); color: #fff; text-decoration: none; }
.side-list__count { font-size: 0.6875rem; color: var(--muted); }
.side-list--tags a:hover .side-list__count { color: rgba(255,255,255,0.8); }

/* --- Ads ---------------------------------------------------------------- */

.ad {
	margin: 18px 0;
	text-align: center;
	overflow: hidden;
}
.ad__label {
	display: block;
	font-size: 0.625rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted-light);
	margin-bottom: 5px;
}
.ad--placeholder {
	border: 1px dashed #D1D5DB;
	border-radius: var(--radius);
	background: #FAFAFA;
	padding: 16px;
}
.ad__note { display: block; font-size: 0.8125rem; color: var(--muted); }
.ad__admin { display: block; font-size: 0.6875rem; color: var(--muted-light); margin-top: 4px; }

/* --- Alerts ------------------------------------------------------------- */

.alerts { background: var(--navy); padding: 32px 0; }
.alerts__inner { text-align: center; }
.alerts__title { color: #fff; font-size: 1.375rem; margin: 0 0 8px; }
.alerts__sub { color: var(--muted-light); font-size: 0.9375rem; max-width: 46ch; margin: 0 auto 16px; }
.alerts__form { display: grid; gap: 8px; max-width: 440px; margin: 0 auto; }
.alerts__form input {
	width: 100%;
	font-family: var(--font-body);
	font-size: 16px;
	padding: 12px;
	border: 1px solid var(--navy-soft);
	border-radius: var(--radius-sm);
	background: #fff;
	min-height: 46px;
}
.alerts__note { font-size: 0.75rem; color: var(--muted); margin: 10px 0 0; }

/* --- Empty states ------------------------------------------------------- */

.empty {
	text-align: center;
	padding: 36px 16px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--bg-tint);
	margin: 12px 0;
}
.empty h1, .empty h2 { font-size: 1.25rem; margin: 0 0 8px; }
.empty p { color: var(--muted); font-size: 0.9375rem; max-width: 52ch; margin: 0 auto 16px; }
.empty--404 { padding-top: 48px; }
.empty--404 .filters { background: #fff; border: 1px solid var(--line); }

.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 16px; }
.chips__label { font-size: 0.8125rem; color: var(--muted); }

/* --- Pagination --------------------------------------------------------- */

.pagination { padding: 24px 0; }
.pagination ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; }
.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	min-height: 42px;
	padding: 0 12px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	font-size: 0.875rem;
	color: var(--ink-soft);
	background: #fff;
}
.pagination .page-numbers:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.pagination .current { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 600; }
.pagination .dots { border-color: transparent; }

/* --- Footer ------------------------------------------------------------- */

.site-footer { background: var(--navy); color: #9CA3AF; margin-top: 40px; }
.site-footer__cols { display: grid; gap: 24px; padding-top: 32px; padding-bottom: 28px; }
.site-footer__title { color: #fff; font-size: 0.875rem; margin: 0 0 10px; }
.site-footer__about { font-size: 0.8125rem; line-height: 1.7; margin: 12px 0 0; color: #9CA3AF; }
.site-footer .wordmark__name { color: #fff; }
.site-footer .wordmark__tag { color: #6B7280; }
.site-footer__brand img,
.site-footer .footer-logo img { max-height: 46px; width: auto; }

.site-footer__list { list-style: none; margin: 0; padding: 0; }
.site-footer__list li { margin-bottom: 7px; }
.site-footer__list a { font-size: 0.8125rem; color: #9CA3AF; }
.site-footer__list a:hover { color: #fff; }

.site-footer__social { display: flex; gap: 12px; margin-top: 12px; }
.site-footer__social a { font-size: 0.8125rem; color: #9CA3AF; }

.site-footer__legal { background: var(--navy-deep); padding: 14px 0; text-align: center; }
.site-footer__legal p { font-size: 0.75rem; color: #6B7280; margin: 0; }
.site-footer__disclaimer { margin-top: 5px !important; max-width: 76ch; margin-left: auto; margin-right: auto; line-height: 1.6; }

/* ==========================================================================
   Tablet
   ========================================================================== */

@media (min-width: 600px) {
	.grid--jobs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.grid--articles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.grid--cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.grid--provinces { grid-template-columns: repeat(3, minmax(0, 1fr)); }

	.hero { padding: 44px 0 34px; }
	.hero__title { font-size: 2.125rem; }
	.hero__sub { font-size: 1rem; }

	/* Column count follows the item count: search + N dropdowns + button. */
	.filters--3 { grid-template-columns: 2fr 1fr auto; }
	.filters--4 { grid-template-columns: 2fr 1fr 1fr auto; }
	.filters--5 { grid-template-columns: 1fr 1fr auto; }
	.filters--5 .filters__field--search { grid-column: 1 / -1; }

	.summary__row { grid-template-columns: 32% 1fr; }
	.site-footer__cols { grid-template-columns: repeat(2, 1fr); }
	.job__title { font-size: 2rem; }
	.article__title { font-size: 2.125rem; }
}

/* ==========================================================================
   Desktop
   ========================================================================== */

@media (min-width: 900px) {
	.nav-toggle { display: none; }

	.site-nav {
		display: block;
		position: static;
		border: 0;
		padding: 0;
		max-height: none;
		overflow: visible;
		background: transparent;
	}
	.site-nav__list { display: flex; gap: 4px; align-items: center; }
	.site-nav__list li { border: 0; }
	.site-nav__list a {
		padding: 8px 10px;
		font-size: 0.875rem;
		min-height: 0;
		border-radius: var(--radius-sm);
	}
	.site-nav__list a:hover { background: var(--bg-tint); }

	.site-header__brand { margin-right: 12px; }
	.site-header__actions { margin-left: auto; }

	.grid--jobs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.grid--articles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.grid--cats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.grid--provinces { grid-template-columns: repeat(5, minmax(0, 1fr)); }

	.hero__title { font-size: 2.375rem; }

	.filters--5 { grid-template-columns: 2fr 1fr 1fr 1fr auto; }
	.filters--5 .filters__field--search { grid-column: auto; }

	.layout { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
	.layout__side { position: sticky; top: 84px; }

	.alerts__form { grid-template-columns: 1fr auto; }

	.site-footer__cols { grid-template-columns: 1.6fr 1fr 1fr 1fr; }

	.section { padding: 36px 0; }
	.section__title { font-size: 1.5rem; }
}

/* Print: strip everything that costs ink and says nothing. */
@media print {
	.site-header, .site-footer, .sidebar, .ad, .related, .alerts, .btn, .post-nav, .breadcrumbs { display: none !important; }
	body { font-size: 12pt; color: #000; }
	.summary { border: 1px solid #000; }
}
