/*
Theme Name: SAJC Central
Theme URI: https://www.sajobcentral.co.za/
Author: SA Job Central
Description: Fast news-and-jobs theme for SA Job Central. Colour-coded sections (Jobs, News, Sports, Entertainment), job closing-date badges, Google for Jobs schema, closed-job handling, built-in ad slots for Ezoic, and no jQuery or page builder.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sajc
*/

/* -------------------------------------------------------------------------
   1. Tokens
   ---------------------------------------------------------------------- */
@font-face {
	font-family: "Archivo SAJC";
	src: url("assets/fonts/archivo-sajc.woff2") format("woff2-variations"), url("assets/fonts/archivo-sajc.woff2") format("woff2");
	font-weight: 500 900;
	font-stretch: 72% 100%;
	font-style: normal;
	font-display: swap;
}

:root {
	--ink: #101b33;
	--ink-2: #26324d;
	--muted: #5a6479;
	--rule: #dce1ea;
	--bg: #f2f4f8;
	--paper: #fff;

	--jobs: #2448d8;
	--jobs-tint: #e8edfd;
	--news: #cc1f36;
	--news-tint: #fce9ec;
	--sports: #007c99;
	--sports-tint: #e2f2f6;
	--ent: #b5179e;
	--ent-tint: #f8e6f5;

	--ok: #146c34;
	--ok-tint: #e5f4ea;
	--warn: #8a4600;
	--warn-tint: #fff0d4;
	--wa: #128c3e;

	--c: var(--ink);
	--t: #e8ebf1;

	--head: "Archivo SAJC", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
	--body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--wrap: 1200px;
	--gutter: 16px;
	--radius: 6px;
}

/* Section colours. Every component reads --c (colour) and --t (tint). */
.card--jobs, .lead--jobs, .section-head--jobs, .cat-label--jobs, .thumb--jobs, .menu-item--jobs, .archive-head--jobs, .entry--jobs, .ticker__item--jobs, .section-jobs .related { --c: var(--jobs); --t: var(--jobs-tint); }
.card--news, .lead--news, .section-head--news, .cat-label--news, .thumb--news, .menu-item--news, .archive-head--news, .entry--news, .ticker__item--news { --c: var(--news); --t: var(--news-tint); }
.card--sports, .lead--sports, .section-head--sports, .cat-label--sports, .thumb--sports, .menu-item--sports, .archive-head--sports, .entry--sports, .ticker__item--sports { --c: var(--sports); --t: var(--sports-tint); }
.card--entertainment, .lead--entertainment, .section-head--entertainment, .cat-label--entertainment, .thumb--entertainment, .menu-item--entertainment, .archive-head--entertainment, .entry--entertainment, .ticker__item--entertainment { --c: var(--ent); --t: var(--ent-tint); }

/* -------------------------------------------------------------------------
   2. Base
   ---------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--body);
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img, svg, video, iframe { max-width: 100%; height: auto; }
img { display: block; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }

h1, h2, h3, h4 {
	font-family: var(--head);
	font-stretch: 82%;
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -.005em;
	margin: 0 0 .5em;
	text-wrap: balance;
}

p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--jobs); outline-offset: 2px; border-radius: 2px; }
.site-header :focus-visible, .site-footer :focus-visible, .lead__panel :focus-visible { outline-color: #fff; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto;
	top: 8px; left: 8px; z-index: 100;
	padding: 10px 16px;
	background: #fff; color: var(--ink);
	font-weight: 700;
}

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 10px 20px;
	border: 0;
	border-radius: var(--radius);
	background: var(--ink);
	color: #fff;
	font: 700 1rem/1.2 var(--head);
	font-stretch: 90%;
	text-decoration: none;
	cursor: pointer;
}
.btn:hover { filter: brightness(1.12); }
.btn--jobs, .btn--apply { background: var(--jobs); }
.btn--wa { background: var(--wa); }
.btn--block { display: flex; width: 100%; }

/* Status chips */
.chip {
	display: inline-block;
	padding: 2px 9px;
	border-radius: 999px;
	font: 700 .8125rem/1.5 var(--body);
	white-space: nowrap;
	background: var(--ok-tint);
	color: var(--ok);
}
.chip--soon { background: var(--warn-tint); color: var(--warn); }
.chip--closed { background: #eceef2; color: var(--muted); }

/* Pills (province and sub-section filters) */
.pills {
	display: flex;
	gap: 8px;
	margin: 0 0 20px;
	padding: 0 0 4px;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
}
.pills::-webkit-scrollbar { display: none; }
.pill {
	display: block;
	padding: 7px 14px;
	border: 1.5px solid var(--rule);
	border-radius: 999px;
	background: var(--paper);
	font-weight: 600;
	font-size: .9375rem;
	white-space: nowrap;
	text-decoration: none;
}
.pill:hover { border-color: var(--c); color: var(--c); }
.pill.is-current { background: var(--c); border-color: var(--c); color: #fff; }

/* -------------------------------------------------------------------------
   3. Header
   ---------------------------------------------------------------------- */
.site-header { background: var(--ink); color: #fff; }

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

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-right: auto;
	color: #fff;
	text-decoration: none;
}
.brand__logo { max-height: 44px; width: auto; }
.brand__mark {
	display: grid;
	grid-template-columns: repeat(2, 13px);
	gap: 3px;
	flex: none;
}
.brand__mark i { display: block; width: 13px; height: 13px; border-radius: 2px; }
.brand__mark i:nth-child(1) { background: var(--jobs); }
.brand__mark i:nth-child(2) { background: var(--news); }
.brand__mark i:nth-child(3) { background: #00a3c4; }
.brand__mark i:nth-child(4) { background: #d63bbf; }
.brand__name {
	font: 800 1.5rem/1 var(--head);
	font-stretch: 76%;
	letter-spacing: -.01em;
}

.header-search { display: none; flex: 0 1 360px; position: relative; }
.header-search input {
	width: 100%;
	height: 42px;
	padding: 0 92px 0 14px;
	border: 0;
	border-radius: var(--radius);
	background: var(--ink-2);
	color: #fff;
	font: inherit;
	font-size: 1rem;
}
.header-search input::placeholder { color: #aab3c6; }
.header-search button {
	position: absolute; top: 4px; right: 4px; bottom: 4px;
	padding: 0 14px;
	border: 0; border-radius: 4px;
	background: var(--jobs); color: #fff;
	font: 700 .9375rem/1 var(--head); font-stretch: 90%;
	cursor: pointer;
}
.search-toggle {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px;
	border: 0; border-radius: var(--radius);
	background: transparent; color: #fff;
	cursor: pointer;
}
.search-open .header-search {
	display: block;
	position: absolute;
	left: var(--gutter); right: var(--gutter);
	top: 70px;
	z-index: 20;
	max-width: none;
}
.site-header { position: relative; }

/* Section bar: always visible, scrolls sideways on phones (no hamburger). */
.section-bar { background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--rule); }
.section-bar ul {
	display: flex;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
}
.section-bar ul::-webkit-scrollbar { display: none; }
.section-bar a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 13px 12px 11px;
	border-bottom: 4px solid transparent;
	font: 700 1.0625rem/1 var(--head);
	font-stretch: 86%;
	white-space: nowrap;
	text-decoration: none;
}
.section-bar li:first-child a { padding-left: 0; }
.section-bar a::before {
	content: "";
	width: 9px; height: 9px;
	border-radius: 2px;
	background: var(--c);
}
.section-bar a:hover,
.section-bar .current-menu-item > a,
.section-bar .current-menu-parent > a,
.section-bar .current-post-ancestor > a,
.section-bar .current-category-ancestor > a { border-bottom-color: var(--c); color: var(--c); }
.section-bar .menu-item--jobs > a:hover,
.section-bar .menu-item--jobs.current-menu-item > a { color: var(--jobs); }

/* -------------------------------------------------------------------------
   4. Homepage
   ---------------------------------------------------------------------- */
.home-intro { padding-top: 22px; padding-bottom: 6px; }
.home-intro h1 { font-size: clamp(1.45rem, 3vw, 1.85rem); margin-bottom: .25em; }
.home-intro p { color: var(--muted); max-width: 62ch; margin-bottom: 0; }

/* "Just in" strip */
.ticker { margin: 16px 0 0; background: var(--paper); border-block: 1px solid var(--rule); }
.ticker__inner { display: flex; align-items: center; gap: 14px; min-height: 48px; }
.ticker__label {
	flex: none;
	margin: 0;
	padding: 3px 10px;
	border-radius: 4px;
	background: var(--news);
	color: #fff;
	font: 800 .9375rem/1.4 var(--head);
	font-stretch: 86%;
}
.ticker__list {
	display: flex;
	gap: 22px;
	margin: 0;
	padding: 12px 0;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
}
.ticker__list::-webkit-scrollbar { display: none; }
.ticker__item { flex: none; display: flex; align-items: center; gap: 8px; max-width: 42ch; }
.ticker__item::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.ticker__item a { font-weight: 600; font-size: .9375rem; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticker__item a:hover { text-decoration: underline; }

/* Top: lead story, two more, jobs closing soon */
.top {
	display: grid;
	gap: 24px;
	padding-top: 24px;
	padding-bottom: 8px;
}

.lead { position: relative; }
.lead__media { display: block; }
.lead__media .thumb { border-radius: var(--radius) var(--radius) 0 0; }
.lead__panel {
	position: relative;
	margin: -28px 12px 0 0;
	padding: 18px 20px 20px;
	border-radius: 0 var(--radius) var(--radius) var(--radius);
	background: var(--c);
	color: #fff;
}
.lead__panel .cat-label { color: #fff; opacity: .9; }
.lead__title {
	margin: 4px 0 10px;
	font-size: clamp(1.75rem, 5.2vw, 3rem);
	font-stretch: 74%;
	font-weight: 900;
	line-height: 1;
	letter-spacing: -.012em;
}
.lead__title a { text-decoration: none; }
.lead__title a:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.lead__excerpt { margin: 0; max-width: 60ch; color: rgba(255, 255, 255, .88); font-size: 1rem; }
.lead--default .lead__panel { background: var(--ink); }

.top__second { display: grid; gap: 16px; align-content: start; }

.closing-soon {
	align-self: start;
	padding: 18px 18px 20px;
	border-radius: var(--radius);
	background: var(--paper);
	border-top: 6px solid var(--jobs);
}
.closing-soon__title { font-size: 1.5rem; margin-bottom: 8px; }
.closing-soon__list { margin: 0 0 16px; padding: 0; list-style: none; }
.closing-soon__list li + li { border-top: 1px solid var(--rule); }
.closing-soon__list a { display: block; padding: 11px 0; text-decoration: none; }
.closing-soon__job { display: block; font-weight: 700; line-height: 1.3; }
.closing-soon__list a:hover .closing-soon__job { color: var(--jobs); text-decoration: underline; }
.closing-soon__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 4px; color: var(--muted); font-size: .875rem; }

/* Section blocks */
.block { padding-top: 36px; }

.section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
	padding-bottom: 8px;
	border-bottom: 3px solid var(--c);
}
.section-head__title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: clamp(1.5rem, 3vw, 1.9rem);
	font-stretch: 78%;
	font-weight: 900;
}
.section-head__title::before {
	content: "";
	width: 16px; height: 16px;
	border-radius: 3px;
	background: var(--c);
}
.section-head__more {
	flex: none;
	color: var(--c);
	font-weight: 700;
	font-size: .9375rem;
	text-decoration: none;
}
.section-head__more:hover { text-decoration: underline; }

.empty-hint {
	padding: 16px;
	border: 2px dashed var(--rule);
	border-radius: var(--radius);
	color: var(--muted);
	font-size: .9375rem;
}

/* -------------------------------------------------------------------------
   5. Grids and cards
   ---------------------------------------------------------------------- */
.grid { display: grid; gap: 20px; }
.grid__full { grid-column: 1 / -1; }
.stack { display: grid; }

.split { display: grid; gap: 20px; }
.split__side { display: grid; gap: 16px; align-content: start; }

.card { position: relative; min-width: 0; }
.card__media { display: block; }
.card__title {
	margin: 4px 0 6px;
	font-size: 1.25rem;
	font-weight: 800;
	font-stretch: 84%;
	line-height: 1.12;
}
.card__title a { text-decoration: none; }
.card__title a:hover { color: var(--c); text-decoration: underline; }
/* Whole card is clickable via the title link. */
.card--grid .card__title a::after,
.card--list .card__title a::after,
.card--job .card__title a::after { content: ""; position: absolute; inset: 0; }
.card .cat-label { position: relative; z-index: 1; }
.card__excerpt { color: var(--muted); font-size: .9875rem; margin-bottom: 8px; }
.card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
	margin: 0;
	color: var(--muted);
	font-size: .875rem;
}

.cat-label {
	display: inline-block;
	color: var(--c);
	font: 700 .875rem/1.3 var(--head);
	font-stretch: 90%;
	text-decoration: none;
}
.cat-label:hover { text-decoration: underline; }

/* Images and placeholders */
.thumb {
	display: block;
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--t);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb--logo { background: #fff; border: 1px solid var(--rule); }
.thumb--logo img { object-fit: contain; padding: 10% 14%; }
.thumb--empty {
	display: flex;
	align-items: flex-end;
	padding: 10px 14px;
	background: var(--c);
	color: rgba(255, 255, 255, .9);
}
.thumb--empty span {
	font: 900 clamp(1.5rem, 4vw, 2.25rem)/1 var(--head);
	font-stretch: 72%;
	letter-spacing: -.01em;
}
.thumb--default.thumb--empty { background: var(--ink-2); }

/* Grid card */
.card--grid .card__media { margin-bottom: 10px; }

/* List card: small image left */
.card--list { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: start; }
.card--list .card__title { font-size: 1.125rem; margin-top: 0; }
.card--list .thumb--empty span { font-size: 1rem; }

/* Job card: a listing, not a story */
.card--job {
	display: grid;
	grid-template-columns: 60px 1fr;
	gap: 14px;
	align-items: start;
	padding: 14px;
	border-radius: var(--radius);
	background: var(--paper);
	border: 1px solid var(--rule);
}
.card--job:hover { border-color: var(--jobs); }
.card--job .thumb { aspect-ratio: 1 / 1; border-radius: 4px; }
.card--job .thumb img { padding: 6px; object-fit: contain; }
.card--job .thumb--empty { align-items: center; justify-content: center; padding: 0; }
.card--job .thumb--empty span { font-size: .8rem; font-stretch: 80%; }
.card--job .card__title { font-size: 1.125rem; margin: 0 0 6px; }
.card--job .card__meta { gap: 4px 8px; }
.job-company { font-weight: 600; color: var(--ink-2); }
.job-company + .job-loc::before { content: "in "; }
.card--job.is-closed { background: #f7f8fa; }
.card--job.is-closed .card__title a { color: var(--muted); }

/* Compact: headline only (sidebar, search) */
.card--compact { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.card--compact .card__title { font-size: 1.0625rem; margin: 2px 0 4px; }

/* -------------------------------------------------------------------------
   6. Archives
   ---------------------------------------------------------------------- */
.archive-head {
	margin-bottom: 24px;
	padding: 20px 0 6px;
	background: var(--paper);
	border-top: 6px solid var(--c);
	border-bottom: 1px solid var(--rule);
}
.archive-head__title { font-size: clamp(2rem, 5vw, 3rem); font-stretch: 74%; font-weight: 900; margin: 6px 0 10px; }
.archive-head__desc { max-width: 70ch; color: var(--muted); }
.archive-head .search-form { margin-bottom: 18px; }

.pagination ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 28px 0; padding: 0; list-style: none; }
.pagination a, .pagination span {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 44px; min-height: 44px; padding: 0 12px;
	border-radius: var(--radius);
	background: var(--paper);
	border: 1px solid var(--rule);
	font-weight: 700;
	text-decoration: none;
}
.pagination .current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pagination a:hover { border-color: var(--ink); }

.empty-state { padding: 24px; background: var(--paper); border-radius: var(--radius); }

.search-form { display: flex; gap: 8px; max-width: 560px; }
.search-form input {
	flex: 1;
	min-width: 0;
	height: 48px;
	padding: 0 14px;
	border: 1.5px solid var(--rule);
	border-radius: var(--radius);
	font: inherit;
	background: #fff;
}
.search-form input:focus { border-color: var(--jobs); outline: none; box-shadow: 0 0 0 3px var(--jobs-tint); }

.breadcrumbs { font-size: .875rem; color: var(--muted); margin-bottom: 8px; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .sep { margin: 0 6px; opacity: .6; }

/* -------------------------------------------------------------------------
   7. Single post
   ---------------------------------------------------------------------- */
.layout { display: grid; gap: 32px; padding-top: 20px; padding-bottom: 32px; }
.entry { min-width: 0; }
.entry__header { margin-bottom: 18px; }
.entry__title {
	margin: 6px 0 12px;
	font-size: clamp(2rem, 5.4vw, 3.1rem);
	font-stretch: 74%;
	font-weight: 900;
	line-height: 1.02;
	letter-spacing: -.012em;
}
.entry__standfirst { font-size: 1.2rem; line-height: 1.5; color: var(--ink-2); max-width: 62ch; }
.entry__logo { margin: 12px 0 4px; }
.entry__logo img { max-height: 64px; width: auto; padding: 8px 12px; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); }

.byline { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; color: var(--muted); font-size: .9375rem; }
.byline a { color: var(--ink); font-weight: 600; text-decoration: none; }
.byline a:hover { text-decoration: underline; }

.entry__image { margin: 0 0 24px; }
.entry__image img { width: 100%; border-radius: var(--radius); }
.entry__image figcaption { margin-top: 8px; color: var(--muted); font-size: .875rem; }

/* Job box */
.job-box {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 24px;
	margin: 0 0 12px;
	padding: 18px 20px;
	border-radius: var(--radius);
	background: var(--jobs-tint);
	border-left: 6px solid var(--jobs);
}
.job-box div { min-width: 0; }
.job-box dt { color: var(--muted); font-size: .8125rem; font-weight: 600; }
.job-box dd { margin: 2px 0 0; font-weight: 700; font-size: 1.0625rem; }
.job-box dd .chip { margin-left: 6px; vertical-align: 1px; }
.job-box__apply { grid-column: 1 / -1; }
.job-box__apply .btn { width: 100%; }
.job-box.is-closed { background: #eef0f4; border-left-color: var(--muted); }
.job-safety { font-size: .875rem; color: var(--muted); margin-bottom: 24px; }

.job-closed {
	margin: 0 0 16px;
	padding: 16px 20px;
	border-radius: var(--radius);
	background: var(--ink);
	color: #fff;
}
.job-closed p { margin: 0; }
.job-closed p + p { margin-top: 8px; }
.job-closed a { color: #fff; font-weight: 700; }

/* Article text */
.entry__content { max-width: 68ch; font-size: 1.125rem; line-height: 1.7; overflow-wrap: break-word; }
.entry__content > * { margin-top: 0; margin-bottom: 1.15em; }
.entry__content h2 { font-size: 1.65rem; margin-top: 1.6em; margin-bottom: .5em; }
.entry__content h3 { font-size: 1.35rem; margin-top: 1.4em; margin-bottom: .45em; }
.entry__content h4 { font-size: 1.15rem; margin-top: 1.3em; margin-bottom: .4em; }
.entry__content a { color: var(--c); text-decoration-thickness: 1.5px; }
.entry__content ul, .entry__content ol { padding-left: 1.3em; }
.entry__content li { margin-bottom: .4em; }
.entry__content li::marker { color: var(--c); }
.entry__content blockquote { margin-left: 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--c); font-size: 1.2rem; color: var(--ink-2); }
.entry__content img { border-radius: var(--radius); }
.entry__content table { width: 100%; border-collapse: collapse; font-size: 1rem; display: block; overflow-x: auto; }
.entry__content th, .entry__content td { padding: 8px 10px; border-bottom: 1px solid var(--rule); text-align: left; }
.entry__content .wp-block-button__link, .entry__content .wp-element-button { display: inline-block; padding: 12px 22px; border-radius: var(--radius); background: var(--c); color: #fff; font-weight: 700; text-decoration: none; }
.entry__content .wp-block-image figcaption, .entry__content .wp-caption-text { color: var(--muted); font-size: .875rem; }
.entry__content .alignwide, .entry__content .alignfull { max-width: none; }
.entry__content .aligncenter { margin-inline: auto; }
.entry__content .alignleft { float: left; margin: .3em 1.2em .8em 0; }
.entry__content .alignright { float: right; margin: .3em 0 .8em 1.2em; }

.entry__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.entry__tags a { padding: 4px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--rule); font-size: .875rem; text-decoration: none; }

/* WhatsApp box */
.wa-cta {
	display: grid;
	gap: 14px;
	align-items: center;
	margin: 28px 0;
	padding: 18px 20px;
	border-radius: var(--radius);
	background: var(--ok-tint);
	border: 1px solid #c4e6cf;
}
.wa-cta__title { margin: 0 0 4px; font: 800 1.3rem/1.15 var(--head); font-stretch: 82%; }
.wa-cta__text p:last-child { margin: 0; color: var(--ink-2); }
.wa-cta--band { margin: 40px 0 8px; padding: 26px 24px; }
.wa-cta--band .wa-cta__title { font-size: clamp(1.5rem, 3vw, 2rem); }

/* Share */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 28px; }
.share__label { margin-right: 4px; font-weight: 700; font-size: .9375rem; }
.share__btn {
	padding: 8px 14px;
	border: 1.5px solid var(--rule);
	border-radius: 999px;
	background: var(--paper);
	color: var(--ink);
	font: 600 .875rem/1.2 var(--body);
	text-decoration: none;
	cursor: pointer;
}
.share__btn--whatsapp { border-color: var(--wa); color: var(--wa); }
.share__btn:hover { border-color: var(--ink); }

/* Related */
.related { margin-top: 12px; padding-top: 20px; border-top: 3px solid var(--c); }
.related__title { font-size: 1.5rem; }

/* Comments */
.comments { margin-top: 36px; padding: 20px; border-radius: var(--radius); background: var(--paper); }
.comments__title, .comment-reply-title { font-size: 1.4rem; }
.comment-list { padding: 0; list-style: none; }
.comment-list .children { list-style: none; padding-left: 20px; }
.comment-body { padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 1rem; }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: .8125rem; color: var(--muted); }
.comment-metadata a { text-decoration: none; }
.comment-form label { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 10px 12px;
	border: 1.5px solid var(--rule); border-radius: var(--radius);
	font: inherit;
}
.comment-form .submit { min-height: 48px; padding: 10px 20px; border: 0; border-radius: var(--radius); background: var(--ink); color: #fff; font: 700 1rem var(--head); cursor: pointer; }
.comment-notes { font-size: .875rem; color: var(--muted); }

/* Sidebar */
.sidebar { min-width: 0; }
.sidebar .widget { margin-bottom: 28px; }
.sidebar .section-head__title { font-size: 1.35rem; }
.sidebar .widget-title { font-size: 1.35rem; padding-bottom: 8px; border-bottom: 3px solid var(--ink); }
.sidebar__sticky { position: sticky; top: 16px; }

.page-wrap { max-width: 820px; padding-top: 24px; padding-bottom: 40px; }
.not-found { padding-top: 40px; padding-bottom: 40px; }
.not-found h1 { font-size: clamp(2rem, 5vw, 3rem); font-stretch: 74%; font-weight: 900; }
.not-found h2 { font-size: 1.5rem; margin-top: 32px; }
.not-found .search-form { margin-bottom: 24px; }

/* -------------------------------------------------------------------------
   8. Ads (space is reserved so the page doesn't jump when ads load)
   ---------------------------------------------------------------------- */
.ad-slot { margin: 20px auto; padding-inline: var(--gutter); max-width: var(--wrap); text-align: center; }
.ad-slot__label { display: block; margin-bottom: 4px; color: var(--muted); font-size: .6875rem; letter-spacing: .02em; }
.ad-slot__inner { min-height: 100px; }
.ad-slot--ad-sidebar .ad-slot__inner { min-height: 250px; }
.ad-slot--ad-in-article, .ad-slot--ad-in-article-2 { margin: 28px 0; padding: 0; }
.ad-slot--ad-in-article .ad-slot__inner, .ad-slot--ad-in-article-2 .ad-slot__inner { min-height: 250px; }

/* -------------------------------------------------------------------------
   9. Footer
   ---------------------------------------------------------------------- */
.site-footer { margin-top: 40px; padding-top: 40px; background: var(--ink); color: #d2d8e4; font-size: .9375rem; }
.footer-grid { display: grid; gap: 28px; }
.footer-about p { max-width: 46ch; margin-top: 14px; }
.site-footer h2 { color: #fff; font-size: 1.15rem; margin-bottom: 10px; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.social { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer-base { margin-top: 32px; padding-top: 18px; padding-bottom: 24px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .8125rem; color: #aab3c6; }
.footer-base p { margin: 0; }

/* -------------------------------------------------------------------------
   10. Breakpoints
   ---------------------------------------------------------------------- */
/* Phones: story rows use small images to save data and scrolling. */
@media (max-width: 599px) {
	.grid--4 .card--grid,
	.grid--archive .card--grid { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: start; }
	.grid--4 .card--grid .card__media,
	.grid--archive .card--grid .card__media { margin: 0; }
	.grid--4 .card--grid .card__title,
	.grid--archive .card--grid .card__title { font-size: 1.125rem; margin-top: 0; }
	.grid--4 .thumb--empty span,
	.grid--archive .thumb--empty span { font-size: 1rem; }
	.grid--archive .card--grid:first-child { display: block; }
	.grid--archive .card--grid:first-child .card__media { margin-bottom: 10px; }
	.grid--archive .card--grid:first-child .card__title { font-size: 1.35rem; }
}

@media (min-width: 600px) {
	.grid--2, .grid--jobs, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.top__second { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.wa-cta { grid-template-columns: 1fr auto; }
	.footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.lead__panel { margin-right: 48px; margin-top: -52px; padding: 22px 26px 24px; }
}

@media (min-width: 840px) {
	:root { --gutter: 24px; }
	.header-search { display: block; }
	.search-toggle { display: none; }
	.split { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
	.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
	.section-bar li:first-child a { padding-left: 0; }
}

@media (min-width: 1024px) {
	.top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 340px; }
	.lead { grid-column: 1 / 3; }
	.top__second { grid-column: 1 / 3; }
	.closing-soon { grid-column: 3; grid-row: 1 / 3; position: sticky; top: 16px; }
	.lead__panel { margin-right: 22%; margin-top: -88px; }
	.grid--jobs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.grid--jobs .card--job { grid-template-columns: 1fr; }
	.grid--jobs .card--job .thumb { width: 56px; }
	.layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; }
	.sidebar { padding-top: 6px; }
	.related .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

@media print {
	.site-header, .site-footer, .ad-slot, .sidebar, .share, .wa-cta, .comments, .related { display: none !important; }
	body { background: #fff; }
}
