/* ==========================================================================
   Tarlac 2027 — main stylesheet
   1. Tokens   2. Base   3. Utilities   4. Header   5. Navigation
   6. Buttons & small parts   7. Homepage   8. Listings & cards
   9. Article & content   10. Sidebar & widgets   11. Footer
   12. Dialog, back-to-top   13. Plugins   14. High contrast   15. Print
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------
   Brand scale is built around TESDA blue #214C9D (sampled from the TESDA seal).
   Sun gold comes from the sun of the Philippine flag and Transparency Seal and
   is used as an accent on dark blue only (never as text on white). */
:root {
	--brand-950: #0a1a3b;
	--brand-900: #0f2656;
	--brand-800: #163474;
	--brand-700: #1b408a;
	--brand-600: #214c9d;
	--brand-500: #3462b5;
	--brand-400: #5e86cd;
	--brand-300: #94b0e1;
	--brand-200: #c6d5f0;
	--brand-100: #e6edf9;
	--brand-50: #f3f6fc;

	--sun-500: #f2b81b;
	--sun-400: #fcd116;
	--sun-100: #fef5d4;

	--flag-red: #ce1126;

	--ink-900: #0f172a;
	--ink-800: #1e293b;
	--ink-700: #334155;
	--ink-600: #475569;
	--ink-500: #64748b;
	--ink-300: #cbd5e1;
	--ink-200: #e2e8f0;
	--ink-100: #f1f5f9;
	--ink-50: #f8fafc;
	--white: #fff;

	--color-text: var(--ink-800);
	--color-muted: var(--ink-600);
	--color-link: var(--brand-600);
	--color-link-hover: var(--brand-800);
	--color-border: var(--ink-200);
	--color-surface: var(--white);
	--color-surface-alt: var(--brand-50);
	--focus: 0 0 0 3px var(--white), 0 0 0 6px var(--brand-500);

	--font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

	--radius-sm: 8px;
	--radius: 14px;
	--radius-lg: 22px;
	--radius-pill: 999px;

	--shadow-sm: 0 1px 2px rgb(15 38 86 / 0.06), 0 1px 3px rgb(15 38 86 / 0.08);
	--shadow: 0 4px 10px -2px rgb(15 38 86 / 0.08), 0 12px 28px -8px rgb(15 38 86 / 0.14);
	--shadow-lg: 0 24px 60px -16px rgb(15 38 86 / 0.28);

	--container: 1240px;
	--gutter: clamp(1rem, 4vw, 2rem);
	--section-space: clamp(3rem, 7vw, 5.5rem);
	--header-h: 0px;
}

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	font-size: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 5rem;
}
html[data-text-size="1"] { font-size: 112.5%; }
html[data-text-size="2"] { font-size: 125%; }
html[data-text-size="-1"] { font-size: 93.75%; }

@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-sans);
	font-size: 1rem;
	line-height: 1.65;
	color: var(--color-text);
	background: var(--color-surface);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-feature-settings: "ss01" off;
}
body.nav-is-open { overflow: hidden; }

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

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.5em;
	font-weight: 750;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--ink-900);
	text-wrap: balance;
}
p { margin: 0 0 1em; }

a { color: var(--color-link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--color-link-hover); }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }

button, input, select, textarea { font: inherit; color: inherit; }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon--flip { transform: rotate(180deg); }

/* 3. Utilities ------------------------------------------------------------ */
.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(820px + var(--gutter) * 2); }

.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: 1rem; top: -100px;
	z-index: 1000;
	padding: 0.75rem 1.25rem;
	background: var(--sun-400);
	color: var(--ink-900);
	font-weight: 700;
	border-radius: 0 0 var(--radius-sm) var(--radius-sm);
	text-decoration: none;
}
.skip-link:focus { top: 0; }

.a11y-keys ul { list-style: none; margin: 0; padding: 0; }
.a11y-keys a {
	position: absolute; left: -9999px; top: 0; z-index: 1001;
	padding: 0.5rem 1rem; background: var(--ink-900); color: var(--white);
}
.a11y-keys a:focus { left: 1rem; top: 3rem; }

.eyebrow {
	display: inline-flex; align-items: center; gap: 0.5rem;
	margin: 0 0 0.75rem;
	font-size: 0.8125rem; font-weight: 700;
	letter-spacing: 0.08em; text-transform: uppercase;
	color: var(--brand-600);
}
.eyebrow::before {
	content: ""; width: 1.5rem; height: 3px; border-radius: 3px;
	background: var(--sun-500);
}
.eyebrow--light { color: var(--brand-200); }

/* 4. Header --------------------------------------------------------------- */
.govbar {
	background: var(--brand-950);
	color: var(--brand-100);
	font-size: 0.8125rem;
}
.govbar__inner {
	display: flex; align-items: center; justify-content: space-between;
	gap: 1rem; min-height: 2.5rem;
}
.govbar__left, .govbar__right { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.govbar__govph {
	font-weight: 800; letter-spacing: 0.04em;
	color: var(--white); text-decoration: none;
	padding-right: 1rem; border-right: 1px solid rgb(255 255 255 / 0.18);
}
.govbar__govph:hover { color: var(--sun-400); }
.govbar__pst {
	display: flex; align-items: center; gap: 0.4rem;
	margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
	font-variant-numeric: tabular-nums;
}
.govbar__pst .icon { width: 1rem; height: 1rem; color: var(--sun-400); }
.govbar__links { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.govbar__links a { color: var(--brand-100); text-decoration: none; font-weight: 500; }
.govbar__links a:hover { color: var(--white); text-decoration: underline; }

.a11y-tools {
	display: flex; gap: 2px; padding: 2px;
	background: rgb(255 255 255 / 0.08); border-radius: var(--radius-pill);
}
.a11y-tools__btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 1px; white-space: nowrap;
	min-width: 2rem; height: 2rem; padding: 0 0.4rem;
	background: transparent; border: 0; border-radius: var(--radius-pill);
	color: var(--white); font-size: 0.8125rem; font-weight: 700; line-height: 1;
	cursor: pointer;
}
.a11y-tools__btn:hover, .a11y-tools__btn[aria-pressed="true"] { background: rgb(255 255 255 / 0.18); }
.a11y-tools__btn .icon { width: 1rem; height: 1rem; }

.masthead {
	background:
		radial-gradient(1200px 300px at 85% -40%, var(--brand-100) 0%, transparent 60%),
		var(--white);
	border-bottom: 1px solid var(--color-border);
}
.masthead__inner {
	display: flex; align-items: center; justify-content: space-between;
	gap: 1.5rem; padding-block: 1rem;
}

.brand {
	display: flex; align-items: center; gap: 0.9rem;
	text-decoration: none; color: inherit; min-width: 0;
}
.brand__seal { width: 64px; height: 64px; object-fit: contain; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand__republic {
	font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
	color: var(--ink-600);
	padding-bottom: 0.3rem; margin-bottom: 0.3rem;
	border-bottom: 1px solid var(--color-border);
	align-self: flex-start;
}
.brand__agency { font-size: 1.0625rem; font-weight: 800; color: var(--brand-700); letter-spacing: -0.01em; }
.brand__office { font-size: 0.9375rem; font-weight: 600; color: var(--ink-700); }
.brand:hover .brand__agency { color: var(--brand-600); }

.masthead__aside { display: flex; align-items: center; gap: 0.75rem; }
.masthead__search { width: min(380px, 32vw); }
.masthead__menu-btn {
	display: none; align-items: center; gap: 0.5rem;
	padding: 0.65rem 1rem;
	background: var(--brand-600); color: var(--white);
	border: 0; border-radius: var(--radius-pill);
	font-weight: 700; cursor: pointer;
}
.masthead__menu-btn:hover { background: var(--brand-700); }

/* Search form */
.search-form {
	position: relative; display: flex; align-items: center;
	background: var(--white);
	border: 1.5px solid var(--ink-300);
	border-radius: var(--radius-pill);
	transition: border-color .15s, box-shadow .15s;
}
.search-form:focus-within { border-color: var(--brand-500); box-shadow: 0 0 0 4px var(--brand-100); }
.search-form__icon { position: absolute; left: 0.95rem; width: 1.1rem; height: 1.1rem; color: var(--ink-500); pointer-events: none; }
.search-form__field {
	flex: 1; min-width: 0;
	padding: 0.7rem 0.5rem 0.7rem 2.6rem;
	background: transparent; border: 0; outline: 0;
	font-size: 0.9375rem;
}
.search-form__field::placeholder { color: var(--ink-500); }
.search-form__field::-webkit-search-cancel-button { cursor: pointer; }
.search-form__submit {
	margin: 4px; padding: 0.5rem 1.1rem;
	background: var(--brand-600); color: var(--white);
	border: 0; border-radius: var(--radius-pill);
	font-size: 0.875rem; font-weight: 700; cursor: pointer;
}
.search-form__submit:hover { background: var(--brand-800); }

/* 5. Navigation ----------------------------------------------------------- */
.nav {
	position: sticky; top: 0; z-index: 50;
	background: var(--brand-600);
	box-shadow: 0 6px 18px -10px rgb(10 26 59 / 0.5);
}
.nav__backdrop, .nav__panel-head, .nav__panel-search { display: none; }
.nav__menu, .nav__menu ul { list-style: none; margin: 0; padding: 0; }
.nav__menu { display: flex; flex-wrap: wrap; align-items: stretch; }
.nav__menu > li { position: relative; display: flex; align-items: center; }
.nav__menu > li > a {
	display: flex; align-items: center;
	padding: 1rem 1rem;
	color: var(--white); text-decoration: none;
	font-weight: 600; font-size: 0.9375rem;
	position: relative;
}
.nav__menu > li > a::after {
	content: ""; position: absolute; left: 1rem; right: 1rem; bottom: 0;
	height: 3px; border-radius: 3px 3px 0 0;
	background: var(--sun-400);
	transform: scaleX(0); transition: transform .2s;
}
.nav__menu > li > a:hover::after,
.nav__menu > li.current-menu-item > a::after,
.nav__menu > li.current-menu-ancestor > a::after,
.nav__menu > li.current_page_item > a::after { transform: scaleX(1); }
.nav__menu > li:first-child > a { padding-left: 0; }
.nav__menu > li:first-child > a::after { left: 0; }
.nav__menu > li.menu-item-has-children > a { padding-right: 0.25rem; }

.nav__toggle {
	display: inline-grid; place-items: center;
	width: 1.75rem; height: 1.75rem; margin-right: 0.5rem;
	background: transparent; border: 0; border-radius: 6px;
	color: var(--brand-100); cursor: pointer;
}
.nav__toggle:hover { background: rgb(255 255 255 / 0.12); color: var(--white); }
.nav__toggle .icon { width: 1rem; height: 1rem; transition: transform .2s; }
.nav__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }

/* Dropdown */
.nav__menu .sub-menu {
	position: absolute; top: 100%; left: 0; z-index: 10;
	min-width: 260px; max-width: 360px;
	padding: 0.5rem;
	background: var(--white);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .15s, transform .15s, visibility .15s;
}
.nav__menu > li:hover > .sub-menu,
.nav__menu > li:focus-within > .sub-menu,
.nav__menu li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav__menu .sub-menu a {
	display: block; padding: 0.6rem 0.8rem;
	color: var(--ink-800); text-decoration: none;
	font-size: 0.9rem; font-weight: 500; line-height: 1.4;
	border-radius: var(--radius-sm);
}
.nav__menu .sub-menu a:hover { background: var(--brand-50); color: var(--brand-700); }
.nav__menu .sub-menu .nav__toggle { display: none; }
.nav__menu .sub-menu .sub-menu { position: static; box-shadow: none; border: 0; padding: 0 0 0 0.75rem; opacity: 1; visibility: visible; transform: none; }

/* Mobile / tablet navigation drawer */
@media (max-width: 1023px) {
	.masthead__search { display: none; }
	.masthead__menu-btn { display: inline-flex; }

	.nav { position: static; background: transparent; box-shadow: none; }
	.nav__backdrop {
		display: block; position: fixed; inset: 0; z-index: 90;
		background: rgb(10 26 59 / 0.55);
		opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
	}
	.nav__panel {
		position: fixed; top: 0; right: 0; bottom: 0; z-index: 100;
		width: min(400px, 88vw);
		display: flex; flex-direction: column;
		background: var(--white);
		box-shadow: var(--shadow-lg);
		transform: translateX(100%); visibility: hidden;
		transition: transform .25s ease, visibility .25s;
		overflow-y: auto; overscroll-behavior: contain;
	}
	body.nav-is-open .nav__backdrop { opacity: 1; visibility: visible; }
	body.nav-is-open .nav__panel { transform: none; visibility: visible; }

	.nav__panel-head {
		display: flex; align-items: center; justify-content: space-between;
		padding: 1rem 1.25rem; border-bottom: 1px solid var(--color-border);
	}
	.nav__panel-title { font-weight: 800; color: var(--brand-700); }
	.nav__close {
		display: grid; place-items: center; width: 2.5rem; height: 2.5rem;
		background: var(--ink-100); border: 0; border-radius: 50%; cursor: pointer;
	}
	.nav__panel-search { display: block; padding: 1rem 1.25rem 0.5rem; }
	.nav__inner { padding: 0.5rem 1.25rem 2rem; }

	.nav__menu { flex-direction: column; }
	.nav__menu > li { flex-wrap: wrap; border-bottom: 1px solid var(--color-border); }
	.nav__menu > li > a,
	.nav__menu > li:first-child > a { flex: 1; padding: 0.95rem 0; color: var(--ink-900); font-size: 1rem; }
	.nav__menu > li > a::after { display: none; }
	.nav__menu > li.current-menu-item > a,
	.nav__menu > li.current_page_item > a { color: var(--brand-600); }
	.nav__toggle { width: 2.5rem; height: 2.5rem; margin: 0; color: var(--ink-700); background: var(--ink-100); }
	.nav__toggle:hover { background: var(--brand-100); color: var(--brand-700); }

	.nav__menu .sub-menu {
		position: static; flex-basis: 100%;
		min-width: 0; max-width: none;
		padding: 0 0 0.75rem; border: 0; box-shadow: none; border-radius: 0;
		display: none; opacity: 1; visibility: visible; transform: none;
	}
	.nav__menu > li:hover > .sub-menu,
	.nav__menu > li:focus-within > .sub-menu { display: none; }
	.nav__menu li.is-open > .sub-menu { display: block; }
	.nav__menu .sub-menu a { padding: 0.6rem 0.75rem; background: var(--ink-50); margin-bottom: 2px; }
}

@media (max-width: 767px) {
	.govbar__pst-label, .govbar__links { display: none; }
	.govbar__inner { min-height: 2.75rem; }
	.brand__seal { width: 52px; height: 52px; }
	.brand__agency { font-size: 0.875rem; }
	.brand__office { font-size: 0.8125rem; }
	.brand__republic { font-size: 0.65rem; }
	.masthead__menu-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.masthead__menu-btn { padding: 0.7rem; }
}
@media (max-width: 479px) {
	.govbar__pst { display: none; }
	.brand__agency { display: none; }
	.brand__office { font-size: 0.9375rem; font-weight: 800; color: var(--brand-700); }
	.brand__office::before { content: "TESDA "; }
}

/* 6. Buttons & small parts ------------------------------------------------ */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	padding: 0.8rem 1.35rem;
	border: 2px solid transparent; border-radius: var(--radius-pill);
	font-weight: 700; font-size: 0.9375rem; line-height: 1.2;
	text-decoration: none; cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn .icon { width: 1.1rem; height: 1.1rem; transition: transform .15s; }
.btn:hover .icon--arrow-right { transform: translateX(3px); }
.btn--primary { background: var(--brand-600); color: var(--white); }
.btn--primary:hover { background: var(--brand-800); color: var(--white); }
.btn--sun { background: var(--sun-400); color: var(--ink-900); }
.btn--sun:hover { background: var(--sun-500); color: var(--ink-900); }
.btn--outline { background: var(--white); color: var(--brand-700); border-color: var(--brand-200); }
.btn--outline:hover { border-color: var(--brand-600); color: var(--brand-800); background: var(--brand-50); }
.btn--ghost-light { color: var(--white); border-color: rgb(255 255 255 / 0.45); }
.btn--ghost-light:hover { background: rgb(255 255 255 / 0.12); color: var(--white); border-color: var(--white); }
.btn--sm { padding: 0.5rem 0.95rem; font-size: 0.875rem; }
.btn--block { width: 100%; }

.link-arrow {
	display: inline-flex; align-items: center; gap: 0.35rem;
	font-weight: 700; font-size: 0.9375rem; text-decoration: none; white-space: nowrap;
}
.link-arrow .icon { width: 1.1rem; height: 1.1rem; transition: transform .15s; }
.link-arrow:hover .icon { transform: translateX(3px); }

.pill {
	display: inline-block;
	padding: 0.2rem 0.65rem;
	background: var(--brand-100); color: var(--brand-800);
	border-radius: var(--radius-pill);
	font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em;
	text-decoration: none;
}
.pill:hover { background: var(--brand-200); color: var(--brand-900); }
.pill--announcements { background: var(--sun-100); color: #6b4e00; }
.pill--announcements:hover { background: #fbe9a6; color: #4d3800; }
.pill--events { background: #e3f4ec; color: #145c3c; }
.pill--events:hover { background: #c8ead9; color: #0e4129; }

/* 7. Homepage ------------------------------------------------------------- */
.hero {
	position: relative;
	color: var(--white);
	background:
		radial-gradient(900px 500px at 100% 0%, rgb(94 134 205 / 0.45), transparent 60%),
		radial-gradient(700px 400px at 0% 100%, rgb(252 209 22 / 0.12), transparent 60%),
		linear-gradient(135deg, var(--brand-800) 0%, var(--brand-600) 55%, var(--brand-700) 100%);
	padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(5.5rem, 10vw, 7.5rem);
	overflow: hidden;
}
.hero::after {
	/* Subtle gear-tooth motif echoing the TESDA seal */
	content: ""; position: absolute; right: -120px; bottom: -160px;
	width: 520px; height: 520px; border-radius: 50%;
	border: 46px dashed rgb(255 255 255 / 0.05);
	pointer-events: none;
}
.hero__grid {
	position: relative; z-index: 1;
	display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.hero__title {
	font-size: clamp(2rem, 4.4vw, 3.25rem);
	font-weight: 800; letter-spacing: -0.03em; line-height: 1.08;
	color: var(--white);
	margin-bottom: 1rem;
}
.hero__text { font-size: clamp(1rem, 1.4vw, 1.125rem); color: var(--brand-100); max-width: 36rem; margin-bottom: 1.75rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero__media {
	position: relative; margin: 0;
	border-radius: var(--radius-lg); overflow: hidden;
	box-shadow: var(--shadow-lg);
	aspect-ratio: 16 / 11;
	background: var(--brand-800);
}
.hero__img { width: 100%; height: 100%; object-fit: cover; }
.hero__caption {
	position: absolute; left: 0; right: 0; bottom: 0;
	padding: 3rem 1.25rem 1.1rem;
	background: linear-gradient(to top, rgb(10 26 59 / 0.92), transparent);
	font-weight: 700; line-height: 1.35;
}
.hero__caption-label {
	display: inline-block; margin-bottom: 0.35rem;
	padding: 0.15rem 0.55rem; border-radius: var(--radius-pill);
	background: var(--sun-400); color: var(--ink-900);
	font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
}
.hero__caption a { display: block; color: var(--white); text-decoration: none; }
.hero__caption a:hover { text-decoration: underline; }

.services { position: relative; z-index: 2; margin-top: clamp(-4.5rem, -7vw, -3.5rem); }
.services__grid {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem;
}
.service {
	display: flex; align-items: flex-start; gap: 1rem;
	height: 100%; padding: 1.25rem 1.25rem;
	background: var(--white);
	border: 1px solid var(--color-border); border-radius: var(--radius);
	box-shadow: var(--shadow);
	color: inherit; text-decoration: none;
	transition: transform .18s, box-shadow .18s, border-color .18s;
}
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--brand-200); color: inherit; }
.service__icon {
	display: grid; place-items: center; flex: none;
	width: 3rem; height: 3rem; border-radius: 12px;
	background: var(--brand-50); color: var(--brand-600);
	transition: background-color .18s, color .18s;
}
.service:hover .service__icon { background: var(--brand-600); color: var(--white); }
.service__icon .icon { width: 1.5rem; height: 1.5rem; }
.service__body { display: flex; flex-direction: column; gap: 0.2rem; }
.service__title { display: flex; align-items: center; gap: 0.35rem; font-weight: 750; color: var(--ink-900); line-height: 1.3; }
.service__ext { width: 0.95rem; height: 0.95rem; color: var(--ink-500); }
.service__text { font-size: 0.875rem; color: var(--color-muted); line-height: 1.5; }

.section { padding-block: var(--section-space); }
.section--tint { background: var(--color-surface-alt); }
.section__head {
	display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
	margin-bottom: 2rem;
}
.section__head--compact { align-items: center; margin-bottom: 1rem; }
.section__title { font-size: clamp(1.5rem, 2.6vw, 2.125rem); margin: 0; }
.section__title--sm { font-size: clamp(1.25rem, 2vw, 1.5rem); display: flex; align-items: center; gap: 0.6rem; }
.section__icon {
	display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 10px;
	background: var(--brand-600); color: var(--white);
}
.section__icon .icon { width: 1.15rem; height: 1.15rem; }

.news-grid {
	display: grid; gap: 1.25rem;
	grid-template-columns: 1.35fr 1fr;
	grid-template-rows: repeat(3, auto);
}
.news-grid > .card--feature { grid-row: 1 / span 3; }

.updates { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); }
.date-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.date-list__item {
	display: flex; gap: 1rem; align-items: flex-start;
	padding: 1rem; background: var(--white);
	border: 1px solid var(--color-border); border-radius: var(--radius);
	transition: border-color .15s, box-shadow .15s;
}
.date-list__item:hover { border-color: var(--brand-200); box-shadow: var(--shadow-sm); }
.date-badge {
	display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none;
	width: 3.75rem; padding: 0.4rem 0;
	border-radius: 12px; background: var(--brand-600); color: var(--white); line-height: 1;
}
.date-badge__m { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand-200); }
.date-badge__d { font-size: 1.5rem; font-weight: 800; margin: 0.15rem 0; }
.date-badge__y { font-size: 0.65rem; font-weight: 600; color: var(--brand-200); }
.date-list__body { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.date-list__title { font-weight: 700; color: var(--ink-900); text-decoration: none; line-height: 1.4; }
.date-list__title:hover { color: var(--brand-600); text-decoration: underline; }
.date-list__meta { font-size: 0.8125rem; color: var(--color-muted); }

.about { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about__lead { font-size: 1.0625rem; color: var(--ink-700); margin: 1rem 0 1.5rem; }
.leader-card {
	position: relative;
	padding: 2rem; text-align: center;
	background: linear-gradient(160deg, var(--brand-50), var(--white));
	border: 1px solid var(--brand-100); border-radius: var(--radius-lg);
	overflow: hidden;
}
.leader-card::before {
	content: ""; position: absolute; inset: 0 0 auto; height: 6px;
	background: linear-gradient(90deg, var(--brand-600), var(--brand-400), var(--sun-400));
}
.leader-card__avatar {
	display: grid; place-items: center; margin: 0 auto 1rem;
	width: 5.5rem; height: 5.5rem; border-radius: 50%;
	background: var(--brand-600); color: var(--white);
	box-shadow: 0 0 0 6px var(--brand-100);
}
.leader-card__avatar .icon { width: 2.5rem; height: 2.5rem; }
.leader-card__name { margin: 0; font-size: 1.25rem; font-weight: 800; color: var(--ink-900); }
.leader-card__role { margin: 0.25rem 0 0; font-weight: 700; color: var(--brand-600); }
.leader-card__office { margin: 0.25rem 0 0; font-size: 0.875rem; color: var(--color-muted); }

.transparency-band {
	background: linear-gradient(120deg, var(--brand-900), var(--brand-700));
	color: var(--brand-100);
	padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
.transparency-band__inner { display: flex; align-items: center; gap: clamp(1.5rem, 4vw, 2.5rem); }
.transparency-band__seal {
	width: 104px; height: auto; flex: none;
	background: var(--white); border-radius: 50%; padding: 6px;
	box-shadow: 0 0 0 6px rgb(255 255 255 / 0.1);
}
.transparency-band__copy { flex: 1; }
.transparency-band__copy h2 { color: var(--white); font-size: clamp(1.375rem, 2.4vw, 1.875rem); }
.transparency-band__copy p { margin: 0; max-width: 40rem; }
.transparency-band__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.visit { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: stretch; }
.visit__info .section__title { margin-bottom: 1.5rem; }
.visit__map {
	min-height: 380px; border-radius: var(--radius-lg); overflow: hidden;
	border: 1px solid var(--color-border); box-shadow: var(--shadow); background: var(--ink-100);
}
.visit__map iframe { display: block; width: 100%; height: 100%; min-height: 380px; border: 0; }

.contact-list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 0.75rem; }
.contact-list li { display: flex; gap: 0.75rem; align-items: flex-start; }
.contact-list .icon { width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; color: var(--brand-500); }
.contact-list--lg li { gap: 1rem; }
.contact-list--lg .icon {
	width: 2.5rem; height: 2.5rem; margin: 0; padding: 0.6rem;
	background: var(--brand-50); color: var(--brand-600); border-radius: 10px;
}
.contact-list--lg span { display: flex; flex-direction: column; }
.contact-list--lg strong { font-size: 0.8125rem; color: var(--color-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

@media (max-width: 1023px) {
	.hero__grid { grid-template-columns: 1fr; }
	.hero__media { max-width: 640px; }
	.services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.news-grid { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
	.news-grid > .card--feature { grid-column: 1 / -1; grid-row: auto; }
	.about, .visit { grid-template-columns: 1fr; }
	.transparency-band__inner { flex-wrap: wrap; }
}
@media (max-width: 767px) {
	.services__grid, .updates, .news-grid { grid-template-columns: 1fr; }
	.section__head { flex-direction: column; align-items: flex-start; }
	.section__head--compact { flex-direction: row; align-items: center; }
	.transparency-band__seal { width: 80px; }
}

/* 8. Listings & cards ------------------------------------------------------ */
.page-header {
	background:
		radial-gradient(700px 260px at 100% 0%, rgb(94 134 205 / 0.35), transparent 60%),
		linear-gradient(135deg, var(--brand-800), var(--brand-600));
	color: var(--brand-100);
	padding-block: 1.75rem clamp(2rem, 4vw, 3rem);
}
.page-header__title { color: var(--white); font-size: clamp(1.75rem, 3.6vw, 2.75rem); font-weight: 800; letter-spacing: -0.025em; margin: 0; max-width: 56rem; }
.page-header__desc { margin-top: 0.75rem; max-width: 46rem; color: var(--brand-100); }
.page-header__desc p:last-child { margin: 0; }
.page-header__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-bottom: 0.9rem; font-size: 0.875rem; }
.page-header__meta .pill { background: var(--sun-400); color: var(--ink-900); }
.page-header__date { display: inline-flex; align-items: center; gap: 0.35rem; }
.page-header__date .icon { width: 1rem; height: 1rem; }

.breadcrumbs { margin-bottom: 1rem; font-size: 0.8125rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 0.35rem; }
.breadcrumbs li + li::before { content: "/"; color: var(--brand-300); }
.breadcrumbs a { color: var(--brand-100); text-decoration: none; }
.breadcrumbs a:hover { color: var(--white); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--white); font-weight: 600; }
.notfound .breadcrumbs a { color: var(--brand-600); }
.notfound .breadcrumbs [aria-current] { color: var(--ink-700); }

.layout {
	display: grid; grid-template-columns: minmax(0, 1fr) 320px;
	gap: clamp(2rem, 4vw, 3.5rem);
	padding-block: clamp(2rem, 5vw, 3.5rem) var(--section-space);
}
.layout--full { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1023px) { .layout { grid-template-columns: minmax(0, 1fr); } }

.chip-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.75rem; }
.chip {
	display: inline-flex; align-items: center; gap: 0.4rem;
	padding: 0.45rem 0.9rem;
	border: 1.5px solid var(--color-border); border-radius: var(--radius-pill);
	color: var(--ink-700); font-weight: 600; font-size: 0.875rem; text-decoration: none;
}
.chip:hover { border-color: var(--brand-300); color: var(--brand-700); }
.chip.is-active { background: var(--brand-600); border-color: var(--brand-600); color: var(--white); }
.chip__count { font-size: 0.75rem; padding: 0 0.4rem; border-radius: var(--radius-pill); background: var(--ink-100); color: var(--ink-600); }
.chip.is-active .chip__count { background: rgb(255 255 255 / 0.2); color: var(--white); }

.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1023px) { .card-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .card-grid, .card-grid--3 { grid-template-columns: 1fr; } }

.card {
	position: relative;
	display: flex; flex-direction: column;
	background: var(--white);
	border: 1px solid var(--color-border); border-radius: var(--radius);
	overflow: hidden;
	transition: box-shadow .18s, transform .18s, border-color .18s;
}
.card:hover { box-shadow: var(--shadow); border-color: var(--brand-200); transform: translateY(-2px); }
.card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--brand-50); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card__media img { transform: scale(1.04); }
.card__placeholder {
	display: grid; place-items: center; width: 100%; height: 100%;
	background: linear-gradient(135deg, var(--brand-100), var(--brand-50));
}
.card__placeholder-seal { width: 30%; max-width: 96px; opacity: 0.35; }
.card__body { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.15rem 1.25rem 1.35rem; flex: 1; }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; font-size: 0.8125rem; color: var(--color-muted); }
.card__meta .pill { position: relative; z-index: 2; }
.card__title { margin: 0; font-size: 1.0625rem; font-weight: 750; line-height: 1.35; letter-spacing: -0.01em; }
.card__title a { color: var(--ink-900); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__title a:hover { color: var(--brand-600); }
.card:focus-within { box-shadow: var(--focus); }
.card__title a:focus-visible { box-shadow: none; }
.card__excerpt { margin: 0; font-size: 0.9375rem; color: var(--color-muted); }

.card--feature .card__media { aspect-ratio: 16 / 9; }
.card--feature .card__title { font-size: clamp(1.25rem, 2.2vw, 1.625rem); letter-spacing: -0.02em; }
.card--feature .card__body { padding: 1.5rem 1.6rem 1.75rem; }

.card--compact { flex-direction: row; }
.card--compact .card__media { width: 38%; flex: none; aspect-ratio: auto; min-height: 120px; }
.card--compact .card__body { padding: 1rem 1.15rem; justify-content: center; }
.card--compact .card__title { font-size: 0.975rem; }
@media (max-width: 479px) {
	.card--compact .card__media { width: 34%; }
}

.pagination { margin-top: 2.5rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; }
.pagination .page-numbers {
	display: inline-grid; place-items: center;
	min-width: 2.75rem; height: 2.75rem; padding: 0 0.6rem;
	border: 1.5px solid var(--color-border); border-radius: var(--radius-sm);
	color: var(--ink-700); font-weight: 700; text-decoration: none;
}
.pagination .page-numbers:hover { border-color: var(--brand-400); color: var(--brand-700); }
.pagination .page-numbers.current { background: var(--brand-600); border-color: var(--brand-600); color: var(--white); }
.pagination .page-numbers.dots { border-color: transparent; }
.pagination .icon { width: 1.1rem; height: 1.1rem; }

.empty-state { text-align: center; padding: 3rem 1.5rem; background: var(--ink-50); border-radius: var(--radius-lg); }
.empty-state__icon { display: inline-grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--brand-100); color: var(--brand-600); margin-bottom: 1rem; }
.empty-state .search-form { max-width: 460px; margin: 1.5rem auto 0; }

.search-again { margin-bottom: 1.5rem; max-width: 560px; }
.result-list { list-style: none; margin: 0; padding: 0; }
.result { padding: 1.25rem 0; border-bottom: 1px solid var(--color-border); }
.result__type { margin: 0 0 0.25rem; font-size: 0.8125rem; font-weight: 600; color: var(--color-muted); }
.result__title { margin: 0 0 0.35rem; font-size: 1.1875rem; }
.result__title a { text-decoration: none; }
.result__title a:hover { text-decoration: underline; }
.result__excerpt { margin: 0; color: var(--ink-700); }

.notfound { padding-block: var(--section-space); text-align: center; }
.notfound .breadcrumbs ol { justify-content: center; }
.notfound__code {
	margin: 0; font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; line-height: 1; letter-spacing: -0.05em;
	background: linear-gradient(135deg, var(--brand-600), var(--brand-300));
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.notfound__title { font-size: clamp(1.5rem, 3vw, 2.25rem); }
.notfound__text { color: var(--color-muted); }
.notfound .search-form { max-width: 520px; margin: 1.5rem auto; }
.notfound__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }

/* 9. Article & content ---------------------------------------------------- */
.article__featured { margin: 0 0 2rem; }
.article__featured img { width: 100%; border-radius: var(--radius-lg); }
.article__featured figcaption { margin-top: 0.6rem; font-size: 0.875rem; color: var(--color-muted); }

.entry-content { font-size: 1.0625rem; line-height: 1.75; color: var(--ink-800); }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { font-size: 1.625rem; margin: 2.25rem 0 0.75rem; }
.entry-content h3 { font-size: 1.3125rem; margin: 2rem 0 0.6rem; }
.entry-content h4 { font-size: 1.125rem; margin: 1.75rem 0 0.5rem; }
.entry-content h5, .entry-content h6 { font-size: 1rem; margin: 1.5rem 0 0.5rem; }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; margin: 0 0 1.25rem; }
.entry-content li { margin-bottom: 0.4rem; }
.entry-content li::marker { color: var(--brand-500); }
.entry-content a { font-weight: 600; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content figure { margin: 1.75rem 0; }
.entry-content figcaption, .entry-content .wp-caption-text { font-size: 0.875rem; color: var(--color-muted); margin-top: 0.5rem; text-align: center; }
.entry-content .wp-caption { max-width: 100%; }
.entry-content blockquote {
	margin: 1.75rem 0; padding: 1.25rem 1.5rem;
	border-left: 4px solid var(--brand-600); border-radius: 0 var(--radius) var(--radius) 0;
	background: var(--brand-50); font-size: 1.125rem; color: var(--ink-800);
}
.entry-content blockquote p:last-child { margin: 0; }
.entry-content hr { border: 0; height: 1px; background: var(--color-border); margin: 2.5rem 0; }
.entry-content iframe { width: 100%; border: 0; border-radius: var(--radius-sm); }
.entry-content .alignleft { float: left; margin: 0.4rem 1.5rem 1rem 0; }
.entry-content .alignright { float: right; margin: 0.4rem 0 1rem 1.5rem; }
.entry-content .aligncenter { margin-inline: auto; }
.entry-content::after { content: ""; display: table; clear: both; }
@media (max-width: 639px) {
	.entry-content .alignleft, .entry-content .alignright { float: none; margin: 1rem 0; }
}

/* Download links (PDF, Excel, Word) — common on Transparency pages */
.entry-content a[href$=".pdf" i],
.entry-content a[href$=".xlsx" i],
.entry-content a[href$=".xls" i],
.entry-content a[href$=".xlsm" i],
.entry-content a[href$=".docx" i],
.entry-content a[href$=".doc" i] {
	display: inline-flex; align-items: baseline; gap: 0.4rem;
}
.entry-content a[href$=".pdf" i]::before,
.entry-content a[href$=".xlsx" i]::before,
.entry-content a[href$=".xls" i]::before,
.entry-content a[href$=".xlsm" i]::before,
.entry-content a[href$=".docx" i]::before,
.entry-content a[href$=".doc" i]::before {
	content: "PDF"; flex: none; align-self: center;
	padding: 0.1rem 0.4rem; border-radius: 4px;
	font-size: 0.625rem; font-weight: 800; letter-spacing: 0.04em; line-height: 1.4;
	background: #fde8e8; color: #9b1c1c;
}
.entry-content a[href$=".xlsx" i]::before,
.entry-content a[href$=".xls" i]::before,
.entry-content a[href$=".xlsm" i]::before { content: "XLS"; background: #def7ec; color: #03543f; }
.entry-content a[href$=".docx" i]::before,
.entry-content a[href$=".doc" i]::before { content: "DOC"; background: var(--brand-100); color: var(--brand-800); }

/* Block editor file block */
.entry-content .wp-block-file {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem;
	padding: 0.9rem 1.1rem; margin: 0 0 0.75rem;
	background: var(--white); border: 1px solid var(--color-border); border-radius: var(--radius);
}
.entry-content .wp-block-file:hover { border-color: var(--brand-200); box-shadow: var(--shadow-sm); }
.entry-content .wp-block-file .wp-block-file__button {
	padding: 0.45rem 0.95rem; border-radius: var(--radius-pill);
	background: var(--brand-600); color: var(--white); font-size: 0.8125rem; font-weight: 700; text-decoration: none;
}
.entry-content .wp-block-file .wp-block-file__button::before { display: none; }
.entry-content .wp-block-file .wp-block-file__button:hover { background: var(--brand-800); }

/* Lists of document links (e.g. Transparency page: year heading + list of PDFs)
   become a tidy stack of document rows. */
.entry-content ul:has(> li > a[href$=".pdf" i], > li > a[href$=".xlsx" i], > li > a[href$=".xlsm" i]) {
	list-style: none; padding-left: 0; display: grid; gap: 0.5rem;
}
.entry-content ul:has(> li > a[href$=".pdf" i], > li > a[href$=".xlsx" i], > li > a[href$=".xlsm" i]) > li {
	margin: 0; padding: 0.8rem 1rem;
	background: var(--white);
	border: 1px solid var(--color-border); border-radius: var(--radius-sm);
	font-weight: 600; line-height: 1.5;
	transition: border-color .15s, background-color .15s;
}
.entry-content ul:has(> li > a[href$=".pdf" i], > li > a[href$=".xlsx" i], > li > a[href$=".xlsm" i]) > li:hover {
	border-color: var(--brand-200); background: var(--brand-50);
}
.entry-content ul:has(> li > a[href$=".pdf" i], > li > a[href$=".xlsx" i], > li > a[href$=".xlsm" i]) > li > a { text-decoration: none; }
.entry-content ul:has(> li > a[href$=".pdf" i], > li > a[href$=".xlsx" i], > li > a[href$=".xlsm" i]) > li > a:hover { text-decoration: underline; }
.entry-content ul:has(> li > a[href$=".pdf" i]) > li > ul { margin: 0.6rem 0 0; }
.entry-content ul:has(> li > a[href$=".pdf" i]) > li > ul > li { background: var(--ink-50); }
.entry-content h2.wp-block-heading:has(+ ul) {
	display: flex; align-items: center; gap: 0.75rem;
	padding-top: 1.5rem; border-top: 1px solid var(--color-border);
}
.entry-content > h2.wp-block-heading:first-child:has(+ ul) { padding-top: 0; border-top: 0; }

/* Tables */
.table-scroll, .entry-content .wp-block-table {
	overflow-x: auto; margin: 1.5rem 0;
	border: 1px solid var(--color-border); border-radius: var(--radius);
	-webkit-overflow-scrolling: touch;
}
.entry-content table { width: 100%; border-collapse: collapse; font-size: 0.875rem; line-height: 1.5; }
.entry-content th, .entry-content td { padding: 0.7rem 0.9rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--color-border); }
.entry-content thead th, .entry-content tr:first-child th { position: sticky; top: 0; background: var(--brand-600); color: var(--white); font-weight: 700; white-space: nowrap; }
.entry-content tbody tr:nth-child(even) { background: var(--ink-50); }
.entry-content tbody tr:hover { background: var(--brand-50); }
.table-scroll table, .entry-content .wp-block-table table { margin: 0; border: 0; }

/* Galleries */
.entry-content .gallery { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 0.75rem; }
.entry-content .gallery-columns-2 { --cols: 2; }
.entry-content .gallery-columns-4 { --cols: 4; }
.entry-content .gallery-item { margin: 0; }
.entry-content .gallery-item img { width: 100%; aspect-ratio: 1; object-fit: cover; }
@media (max-width: 639px) { .entry-content .gallery { --cols: 2 !important; } }

.article__footer {
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem;
	margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border);
}
.article__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.article__tags a { padding: 0.25rem 0.7rem; border-radius: var(--radius-pill); background: var(--ink-100); color: var(--ink-700); font-size: 0.8125rem; text-decoration: none; }
.article__tags a:hover { background: var(--brand-100); color: var(--brand-800); }
.article__actions { display: flex; gap: 0.5rem; }
.article__actions .icon { width: 1rem; height: 1rem; }

.post-navigation { margin-top: 2rem; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.post-navigation a {
	display: flex; flex-direction: column; gap: 0.25rem; height: 100%;
	padding: 1rem 1.25rem; border: 1px solid var(--color-border); border-radius: var(--radius);
	text-decoration: none;
}
.post-navigation a:hover { border-color: var(--brand-300); background: var(--brand-50); }
.post-navigation .nav-next { text-align: right; grid-column: 2; }
.post-nav__label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-muted); }
.post-nav__title { font-weight: 700; color: var(--ink-900); line-height: 1.4; }
@media (max-width: 639px) {
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.post-navigation .nav-next { grid-column: auto; }
}

/* Comments */
.comments { margin-top: 3rem; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment-body { padding: 1rem 0; border-bottom: 1px solid var(--color-border); }
.comment-list .avatar { border-radius: 50%; float: left; margin-right: 0.75rem; }

/* Forms (comments, Contact Form 7) */
input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="number"],
input[type="password"], input[type="date"], select, textarea {
	width: 100%; padding: 0.75rem 0.95rem;
	background: var(--white);
	border: 1.5px solid var(--ink-300); border-radius: var(--radius-sm);
	font-size: 1rem; line-height: 1.4;
	transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--brand-500); box-shadow: 0 0 0 4px var(--brand-100); }
textarea { min-height: 160px; resize: vertical; }
label { font-weight: 600; font-size: 0.9375rem; color: var(--ink-800); }
input[type="submit"], button[type="submit"]:not(.search-form__submit) {
	display: inline-flex; align-items: center; gap: 0.5rem;
	padding: 0.8rem 1.6rem;
	background: var(--brand-600); color: var(--white);
	border: 0; border-radius: var(--radius-pill);
	font-weight: 700; cursor: pointer;
}
input[type="submit"]:hover, button[type="submit"]:not(.search-form__submit):hover { background: var(--brand-800); }

/* 10. Sidebar & widgets --------------------------------------------------- */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.widget {
	padding: 1.35rem 1.4rem;
	background: var(--white);
	border: 1px solid var(--color-border); border-radius: var(--radius);
}
.widget__title {
	display: flex; align-items: center; gap: 0.5rem;
	font-size: 1rem; font-weight: 800; margin: 0 0 1rem;
	color: var(--ink-900);
}
.widget__title::before { content: ""; width: 4px; height: 1.1em; border-radius: 4px; background: var(--brand-600); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 0.45rem 0; border-bottom: 1px solid var(--ink-100); font-size: 0.9375rem; color: var(--color-muted); }
.widget li:last-child { border-bottom: 0; }
.widget li a { color: var(--ink-800); text-decoration: none; font-weight: 600; }
.widget li a:hover { color: var(--brand-600); text-decoration: underline; }
.widget .search-form__submit { padding-inline: 0.85rem; }
.widget_office .contact-list { font-size: 0.9375rem; margin-bottom: 1rem; }
.widget_office .contact-list li { padding: 0; border: 0; color: var(--ink-700); }
.widget_office__map { display: block; width: 100%; height: 220px; border: 0; border-radius: var(--radius-sm); background: var(--ink-100); }
.widget_help { background: var(--brand-50); border-color: var(--brand-100); }
.widget_help p { font-size: 0.9375rem; color: var(--ink-700); }

.mini-list__item { display: flex; gap: 0.8rem; align-items: flex-start; }
.mini-list__thumb { flex: none; width: 64px; height: 64px; border-radius: var(--radius-sm); overflow: hidden; background: var(--brand-50); }
.mini-list__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-list__thumb .card__placeholder-seal { width: 60%; }
.widget .mini-list__title { display: block; font-size: 0.875rem; line-height: 1.4; }
.mini-list__date { display: block; margin-top: 0.2rem; font-size: 0.75rem; color: var(--color-muted); }

@media (min-width: 1024px) {
	.sidebar { position: sticky; top: 5rem; align-self: start; }
}

/* 11. Footer -------------------------------------------------------------- */
.site-footer:focus { outline: 0; }
.agency-footer {
	background: var(--brand-900);
	color: var(--brand-200);
	padding-block: clamp(3rem, 6vw, 4.5rem);
	font-size: 0.9375rem;
	border-top: 4px solid var(--sun-400);
}
.agency-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 0.8fr; gap: clamp(1.5rem, 4vw, 3rem); }
.agency-footer__title {
	font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
	color: var(--white); margin: 0 0 1.1rem;
}
.agency-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.agency-footer a { color: var(--brand-100); text-decoration: none; }
.agency-footer a:hover { color: var(--white); text-decoration: underline; }
.agency-footer .contact-list .icon { color: var(--sun-400); }

.brand--footer { margin-bottom: 1.5rem; }
.brand--footer .brand__seal { width: 56px; height: 56px; filter: brightness(0) invert(1); }
.brand--footer .brand__agency { color: var(--white); font-size: 1.25rem; }
.brand--footer .brand__office { color: var(--brand-200); }
.brand--footer:hover .brand__agency { color: var(--sun-400); }

.social-link {
	display: inline-flex; align-items: center; gap: 0.6rem;
	padding: 0.55rem 1rem 0.55rem 0.6rem;
	border: 1px solid rgb(255 255 255 / 0.2); border-radius: var(--radius-pill);
	font-weight: 600; font-size: 0.875rem;
}
.social-link .icon { width: 1.75rem; height: 1.75rem; padding: 0.35rem; border-radius: 50%; background: var(--brand-600); color: var(--white); }
.social-link:hover { border-color: var(--white); text-decoration: none !important; }

.transparency-seal { display: inline-flex; flex-direction: column; align-items: center; gap: 0.75rem; text-align: center; font-weight: 700; }
.transparency-seal img {
	width: 132px; height: auto; background: var(--white); border-radius: 50%; padding: 6px;
	transition: transform .2s;
}
.transparency-seal:hover img { transform: scale(1.04); }

.standard-footer { background: var(--brand-950); color: var(--brand-300); font-size: 0.875rem; padding-top: 2.5rem; }
.standard-footer__grid {
	display: grid; grid-template-columns: 1.2fr 1fr 1.3fr; gap: clamp(1.5rem, 4vw, 3rem);
	padding-bottom: 2rem;
}
.standard-footer h2 {
	font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
	color: var(--white); margin: 0 0 0.75rem;
}
.standard-footer p { margin: 0 0 0.75rem; }
.standard-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.standard-footer__cols { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; }
.standard-footer a { color: var(--brand-200); text-decoration: none; }
.standard-footer a:hover { color: var(--white); text-decoration: underline; }
.standard-footer__republic { display: flex; gap: 1.25rem; align-items: flex-start; }
.standard-footer__republic img { width: 88px; height: 88px; flex: none; opacity: 0.9; }
.standard-footer__bottom {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem;
	padding-block: 1.25rem; border-top: 1px solid rgb(255 255 255 / 0.08);
	font-size: 0.8125rem;
}
.standard-footer__bottom p { margin: 0; }

@media (max-width: 1023px) {
	.agency-footer__grid { grid-template-columns: 1fr 1fr; }
	.standard-footer__grid { grid-template-columns: 1fr 1fr; }
	.standard-footer__republic { grid-column: 1 / -1; }
}
@media (max-width: 639px) {
	.agency-footer__grid, .standard-footer__grid { grid-template-columns: 1fr; }
	.agency-footer__col--seal { text-align: left; }
}

/* 12. Dialog, back-to-top ------------------------------------------------- */
.dialog {
	width: min(640px, calc(100vw - 2rem)); max-height: calc(100vh - 4rem);
	padding: 0; border: 0; border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg); color: var(--color-text);
}
.dialog::backdrop { background: rgb(10 26 59 / 0.6); }
.dialog__head {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	padding: 1.25rem 1.5rem; background: var(--brand-600); color: var(--white);
}
.dialog__head h2 { margin: 0; color: var(--white); font-size: 1.25rem; }
.dialog__close {
	display: grid; place-items: center; width: 2.5rem; height: 2.5rem;
	background: rgb(255 255 255 / 0.15); color: var(--white); border: 0; border-radius: 50%; cursor: pointer;
}
.dialog__close:hover { background: rgb(255 255 255 / 0.28); }
.dialog__body { padding: 1.5rem; font-size: 0.9375rem; }
.dialog__body h3 { font-size: 1rem; margin-top: 1.5rem; }
.keys { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin: 0; }
.keys div { display: flex; align-items: center; gap: 0.75rem; }
.keys dt {
	display: grid; place-items: center; min-width: 2rem; height: 2rem;
	border: 1px solid var(--ink-300); border-bottom-width: 3px; border-radius: 6px;
	font-weight: 800; color: var(--brand-700); background: var(--ink-50);
}
.keys dd { margin: 0; }

.back-to-top {
	position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40;
	display: grid; place-items: center; width: 3rem; height: 3rem;
	background: var(--brand-600); color: var(--white);
	border-radius: 50%; box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(10px);
	transition: opacity .2s, transform .2s, visibility .2s, background-color .15s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--brand-800); color: var(--white); }

/* 13. Plugins ------------------------------------------------------------- */
.wpcf7 form p { margin-bottom: 1.1rem; }
.wpcf7 label { display: block; }
.wpcf7 .wpcf7-form-control-wrap { display: block; margin-top: 0.35rem; }
.wpcf7 .wpcf7-not-valid-tip { color: var(--flag-red); font-size: 0.875rem; margin-top: 0.3rem; }
.wpcf7 form .wpcf7-response-output { margin: 1rem 0 0; padding: 0.9rem 1.1rem; border-radius: var(--radius-sm); }
.wpcf7 .wpcf7-spinner { vertical-align: middle; }
.entry-content .wpcf7 {
	padding: clamp(1.25rem, 3vw, 2rem);
	background: var(--ink-50); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
}

/* 14. High contrast ------------------------------------------------------- */
html.is-contrast {
	--brand-600: #0b2f78;
	--brand-700: #082660;
	--brand-800: #061d4a;
	--color-text: #000;
	--color-muted: #1f2937;
	--color-border: #475569;
	--ink-800: #000;
	--ink-700: #111827;
	--ink-600: #1f2937;
}
html.is-contrast body { background: #fff; }
html.is-contrast a:not(.btn):not(.service):not(.chip):not(.pill) { text-decoration: underline; }
html.is-contrast .card, html.is-contrast .service, html.is-contrast .widget, html.is-contrast .date-list__item { border-width: 2px; }
html.is-contrast .hero, html.is-contrast .page-header { background: var(--brand-800); }
html.is-contrast .hero__text, html.is-contrast .page-header__desc, html.is-contrast .breadcrumbs a { color: #fff; }

/* 15. Print --------------------------------------------------------------- */
@media print {
	.govbar, .nav, .masthead__aside, .sidebar, .back-to-top, .article__actions, .post-navigation,
	.agency-footer, .standard-footer__grid, .section--tint, .comments, .a11y-keys, .skip-link { display: none !important; }
	.page-header { background: none; color: #000; padding: 0 0 1rem; }
	.page-header__title, .breadcrumbs [aria-current] { color: #000; }
	.breadcrumbs { display: none; }
	.layout { display: block; padding: 0; }
	.standard-footer { background: none; color: #000; padding: 1rem 0 0; }
	.entry-content a::after { content: " (" attr(href) ")"; font-size: 0.8em; font-weight: 400; word-break: break-all; }
	body { font-size: 11pt; }
}
