/* ==========================================================================
   Bulacan 2027 — main stylesheet
   1. Tokens   2. Base   3. Utilities & buttons   4. GOVPH bar & display panel
   5. Masthead & navigation   6. Search panel   7. Homepage
   8. Cards & listings   9. Page header, layout, sidebar   10. Content
   11. Search, 404, comments   12. Footer   13. Dialog, to-top
   14. Plugins   15. Display preferences   16. Dark mode details   17. Print
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------
   Built around TESDA blue #214C9D. Navy carries the dark bands, azure is the
   interactive accent, flag red and sun gold appear only as small markers
   (the flag stripe, category labels). Corners are deliberately squared. */
:root {
	--blue-950: #08142e;
	--blue-900: #0b1f4b;
	--blue-800: #13306a;
	--blue-700: #1b3f85;
	--blue-600: #214c9d;
	--blue-500: #2f63bf;
	--blue-400: #5b8ad8;
	--blue-300: #9ab8ea;
	--blue-200: #cddcf6;
	--blue-100: #e8f1fd;
	--blue-50: #f4f8fe;
	--azure: #1f6fd1;
	--flag-blue: #0038a8;
	--flag-red: #ce1126;
	--sun: #fcd116;

	--bg: #fff;
	--surface: #fff;
	--paper: #f6f8fc;
	--sunken: #eef2f8;
	--text: #16213a;
	--text-strong: #0b1f4b;
	--text-soft: #2c3954;
	--text-muted: #4a5874;
	--border: #dde3ee;
	--border-strong: #c3ccdc;
	--tint: #e8f1fd;
	--tint-strong: #cddcf6;
	--link: #1d4590;
	--link-hover: #0b1f4b;
	--accent: #214c9d;
	--focus-ring: #1f6fd1;

	--k-news: #1d4590;
	--k-announcements: #b3261e;
	--k-events: #0d6b45;
	--k-others: #5b4a9a;
	--file-pdf-bg: #fde8e8; --file-pdf-fg: #9b1c1c;
	--file-xls-bg: #ddf5e9; --file-xls-fg: #0b5d3b;
	--file-doc-bg: #e3ecfb; --file-doc-fg: #1b3f85;
	--file-img-bg: #f3e8fd; --file-img-fg: #5b2a8c;

	--shadow-rgb: 11 31 75;
	--shadow-sm: 0 1px 2px rgb(var(--shadow-rgb) / 0.08);
	--shadow: 0 10px 30px -12px rgb(var(--shadow-rgb) / 0.25);
	--shadow-lg: 0 24px 60px -20px rgb(var(--shadow-rgb) / 0.4);

	--font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	--radius-sm: 4px;
	--radius: 6px;
	--radius-lg: 10px;

	--container: 1200px;
	--gutter: clamp(1rem, 4vw, 2rem);
	--section: clamp(3rem, 6vw, 5rem);
	--header-h: 76px;

	color-scheme: light;
}

:root[data-scheme="dark"] {
	--bg: #0a1224;
	--surface: #0f1a31;
	--paper: #0c162b;
	--sunken: #15223d;
	--text: #d3dceb;
	--text-strong: #f2f6fc;
	--text-soft: #c0cbdd;
	--text-muted: #9fb0c9;
	--border: #22314f;
	--border-strong: #364a70;
	--tint: #142647;
	--tint-strong: #1f3a6b;
	--link: #9bbcf3;
	--link-hover: #c9dafa;
	--accent: #8fb1ee;
	--focus-ring: #8fb1ee;
	--k-news: #9bbcf3;
	--k-announcements: #f5a3a0;
	--k-events: #86dcb6;
	--k-others: #c9b9f5;
	--file-pdf-bg: #3b1a1d; --file-pdf-fg: #f7a8a8;
	--file-xls-bg: #0f3325; --file-xls-fg: #8fe0b9;
	--file-doc-bg: #182c52; --file-doc-fg: #b5cdf7;
	--file-img-bg: #2c1d44; --file-img-fg: #d8c3f7;
	--shadow-rgb: 0 0 0;
	color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-scheme]) {
		--bg: #0a1224;
		--surface: #0f1a31;
		--paper: #0c162b;
		--sunken: #15223d;
		--text: #d3dceb;
		--text-strong: #f2f6fc;
		--text-soft: #c0cbdd;
		--text-muted: #9fb0c9;
		--border: #22314f;
		--border-strong: #364a70;
		--tint: #142647;
		--tint-strong: #1f3a6b;
		--link: #9bbcf3;
		--link-hover: #c9dafa;
		--accent: #8fb1ee;
		--focus-ring: #8fb1ee;
		--shadow-rgb: 0 0 0;
		color-scheme: dark;
	}
}

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 1rem);
}
html[data-text-size="-1"] { font-size: 93.75%; }
html[data-text-size="1"] { font-size: 112.5%; }
html[data-text-size="2"] { font-size: 125%; }

@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(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
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: 700;
	line-height: 1.25;
	letter-spacing: -0.015em;
	color: var(--text-strong);
	text-wrap: balance;
}
p { margin: 0 0 1em; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }
abbr[title] { text-decoration: none; cursor: help; }
mark { background: #fff1a8; color: inherit; padding: 0 0.1em; border-radius: 2px; }
:root[data-scheme="dark"] mark { background: #5c4b00; }

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

.icon { width: 1.25rem; height: 1.25rem; flex: none; }

/* 3. Utilities & buttons --------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(760px + 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); clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip-link {
	position: absolute; left: 1rem; top: -100px; z-index: 1000;
	padding: 0.75rem 1.25rem; background: var(--blue-900); color: #fff; font-weight: 700;
	border-radius: 0 0 var(--radius) var(--radius); text-decoration: none;
}
.skip-link:focus { top: 0; color: #fff; }

.a11y-keys ul { list-style: none; margin: 0; padding: 0; }
.a11y-keys a {
	position: absolute; left: -9999px; z-index: 1000;
	padding: 0.6rem 1rem; background: var(--blue-900); color: #fff; font-weight: 600;
}
.a11y-keys a:focus { left: 1rem; top: 3.5rem; color: #fff; }

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	min-height: 46px; padding: 0.7rem 1.3rem;
	border: 2px solid transparent; border-radius: var(--radius);
	font: inherit; font-weight: 700; font-size: 0.9375rem; line-height: 1.2;
	text-decoration: none; cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { text-decoration: none; }
.btn .icon { width: 1.1rem; height: 1.1rem; transition: transform .15s; }
.btn:hover .icon--arrow-right { transform: translateX(3px); }
.btn--primary { background: var(--blue-600); color: #fff; }
.btn--primary:hover { background: var(--blue-800); color: #fff; }
.btn--outline { border-color: var(--blue-600); color: var(--blue-700); background: transparent; }
.btn--outline:hover { background: var(--tint); color: var(--blue-900); }
.btn--light { background: #fff; color: var(--blue-800); }
.btn--light:hover { background: var(--blue-100); color: var(--blue-900); }
.btn--outline-light { border-color: rgb(255 255 255 / 0.7); color: #fff; }
.btn--outline-light:hover { background: rgb(255 255 255 / 0.12); border-color: #fff; color: #fff; }
.btn--block { width: 100%; }
:root[data-scheme="dark"] .btn--outline { border-color: var(--accent); color: var(--accent); }
:root[data-scheme="dark"] .btn--outline:hover { color: var(--text-strong); }

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

.kicker {
	display: inline-block;
	font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
	color: var(--k-news); text-decoration: none;
}
.kicker:hover { text-decoration: underline; }
.kicker--announcements { color: var(--k-announcements); }
.kicker--events { color: var(--k-events); }
.kicker--others { color: var(--k-others); }

.file-tag {
	display: inline-flex; align-items: center; flex: none;
	padding: 0.1rem 0.4rem; border-radius: 3px;
	font-size: 0.65rem; font-weight: 800; letter-spacing: 0.05em; line-height: 1.4;
	background: var(--file-doc-bg); color: var(--file-doc-fg);
}
.file-tag--pdf { background: var(--file-pdf-bg); color: var(--file-pdf-fg); }
.file-tag--xls { background: var(--file-xls-bg); color: var(--file-xls-fg); }
.file-tag--img { background: var(--file-img-bg); color: var(--file-img-fg); }

/* 4. GOVPH bar & display panel -------------------------------------------- */
.govbar {
	position: relative; z-index: 70;
	background: var(--paper);
	border-bottom: 1px solid var(--border);
	font-size: 0.8125rem; color: var(--text-muted);
}
.govbar__inner { display: flex; align-items: center; gap: 1.25rem; min-height: 40px; }
.govbar__govph {
	font-weight: 800; letter-spacing: 0.06em; color: var(--text-strong); text-decoration: none;
	padding-right: 1.25rem; border-right: 1px solid var(--border-strong);
}
.govbar__pst { margin: 0; display: flex; gap: 0.4rem; flex-wrap: wrap; }
.govbar__pst-label { font-weight: 600; color: var(--text-soft); }
.govbar__pst-label::after { content: ":"; }
.govbar__links-wrap { margin-left: auto; }
.govbar__links { display: flex; list-style: none; margin: 0; padding: 0; gap: 1.1rem; }
.govbar__links a { color: var(--text-soft); text-decoration: none; font-weight: 500; }
.govbar__links a:hover { color: var(--link); text-decoration: underline; }

.display { position: relative; }
.display__btn {
	display: inline-flex; align-items: center; gap: 0.4rem;
	min-height: 32px; padding: 0.3rem 0.75rem;
	border: 1px solid var(--border-strong); border-radius: var(--radius);
	background: var(--surface); color: var(--text-strong);
	font: inherit; font-weight: 700; cursor: pointer;
}
.display__btn .icon { width: 1rem; height: 1rem; }
.display__btn:hover, .display__btn[aria-expanded="true"] { border-color: var(--blue-600); color: var(--link); }
.display__panel {
	position: absolute; right: 0; top: calc(100% + 8px); z-index: 120;
	width: min(360px, calc(100vw - 2rem));
	padding: 1.1rem;
	background: var(--surface); color: var(--text);
	border: 1px solid var(--border); border-top: 3px solid var(--blue-600);
	border-radius: var(--radius); box-shadow: var(--shadow-lg);
	font-size: 0.875rem;
}
.display__panel[hidden] { display: none; }
.display__row + .display__row { margin-top: 0.9rem; }
.display__label { margin: 0 0 0.4rem; font-weight: 700; color: var(--text-strong); }
.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid var(--border-strong); border-radius: var(--radius); overflow: hidden; }
.segmented button {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
	min-height: 38px; padding: 0.35rem 0.4rem;
	border: 0; border-left: 1px solid var(--border-strong); background: var(--surface); color: var(--text-soft);
	font: inherit; font-weight: 700; cursor: pointer;
}
.segmented button:first-child { border-left: 0; }
.segmented button .icon { width: 1rem; height: 1rem; }
.segmented button:hover { background: var(--tint); color: var(--text-strong); }
.segmented button[aria-pressed="true"] { background: var(--blue-600); color: #fff; }
.display__switches { display: grid; gap: 0.25rem; margin-top: 0.9rem; padding-top: 0.75rem; border-top: 1px solid var(--border); }
.switch {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	width: 100%; min-height: 40px; padding: 0.3rem 0.25rem;
	border: 0; background: none; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; text-align: left;
	border-radius: var(--radius-sm);
}
.switch:hover { background: var(--paper); }
.switch__label { display: inline-flex; align-items: center; gap: 0.55rem; }
.switch__label .icon { width: 1.05rem; height: 1.05rem; color: var(--text-muted); }
.switch__track {
	position: relative; flex: none; width: 40px; height: 22px; border-radius: 999px;
	background: var(--border-strong); transition: background-color .15s;
}
.switch__track::after {
	content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%;
	background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .3); transition: transform .15s;
}
.switch[aria-checked="true"] .switch__track { background: var(--blue-600); }
.switch[aria-checked="true"] .switch__track::after { transform: translateX(18px); }
.display__foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--border); }
.display__reset {
	display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.35rem 0.5rem;
	border: 0; background: none; color: var(--text-soft); font: inherit; font-weight: 700; cursor: pointer; border-radius: var(--radius-sm);
}
.display__reset .icon { width: 1rem; height: 1rem; }
.display__reset:hover { background: var(--paper); color: var(--text-strong); }

.flagline {
	height: 4px;
	background: linear-gradient(90deg, var(--flag-blue) 0 46%, var(--sun) 46% 54%, var(--flag-red) 54% 100%);
}

@media (max-width: 900px) {
	.govbar__links-wrap { display: none; }
	.govbar__pst-label { display: none; }
	.display { margin-left: auto; }
}
@media (max-width: 480px) {
	.govbar__govph { padding-right: 0.75rem; }
	.govbar__inner { gap: 0.75rem; }
	.govbar__pst time { font-size: 0.75rem; }
	.display__btn span { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* 5. Masthead & navigation ------------------------------------------------- */
.masthead {
	position: sticky; top: 0; z-index: 60;
	background: var(--surface);
	border-bottom: 1px solid var(--border);
	transition: box-shadow .2s;
}
body.nav-is-open .masthead { z-index: 300; }
body.is-scrolled .masthead { box-shadow: 0 6px 20px -14px rgb(var(--shadow-rgb) / 0.5); }
.masthead__inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 0.8rem; text-decoration: none; color: inherit; flex: none; }
.brand:hover { color: inherit; }
.brand__seal { width: 52px; height: 52px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__republic { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.brand__agency { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; color: var(--text-strong); margin-top: 2px; }
.brand__office { font-size: 0.8125rem; font-weight: 600; color: var(--blue-600); }
:root[data-scheme="dark"] .brand__office { color: var(--accent); }

.masthead__actions { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.icon-btn {
	display: inline-flex; align-items: center; gap: 0.45rem;
	min-height: 44px; padding: 0.5rem 0.8rem;
	border: 1px solid var(--border-strong); border-radius: var(--radius);
	background: var(--surface); color: var(--text-strong);
	font: inherit; font-weight: 700; font-size: 0.875rem; cursor: pointer;
}
.icon-btn:hover, .icon-btn[aria-expanded="true"] { border-color: var(--blue-600); color: var(--link); background: var(--tint); }
.icon-btn--menu { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.icon-btn--menu:hover { background: var(--blue-800); border-color: var(--blue-800); color: #fff; }

.nav__menu, .nav__menu ul { list-style: none; margin: 0; padding: 0; }
.nav__menu a, .nav__group { color: var(--text-strong); text-decoration: none; font-weight: 600; }

/* Desktop: inline menu in the masthead */
@media (min-width: 1180px) {
	.masthead__actions { margin-left: 0; }
	.icon-btn--menu { display: none; }
	.icon-btn__label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
	.icon-btn { padding: 0.5rem 0.7rem; }
	.nav { margin-left: auto; align-self: stretch; display: flex; }
	.nav__backdrop, .nav__panel-head, .nav__panel-search, .nav__panel-foot { display: none; }
	.nav__panel { display: flex; }
	.nav__menu { display: flex; align-items: stretch; }
	.nav__menu > li { position: relative; display: flex; align-items: center; }
	.nav__menu > li > a,
	.nav__group {
		position: relative; white-space: nowrap;
		display: inline-flex; align-items: center; gap: 0.3rem; height: 100%;
		padding: 0 0.85rem; border: 0; background: none;
		font: inherit; font-size: 0.9375rem; font-weight: 600; cursor: pointer;
	}
	.nav__group .icon { width: 1rem; height: 1rem; transition: transform .15s; }
	.nav__menu > li > a::after,
	.nav__group::after {
		content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: -1px; height: 3px;
		background: var(--blue-600); transform: scaleX(0); transition: transform .2s;
	}
	.nav__menu > li > a:hover, .nav__group:hover { color: var(--link); }
	.nav__menu > li:hover > a::after,
	.nav__menu > li:hover > .nav__group::after,
	.nav__menu > li.is-open > .nav__group::after,
	.nav__menu > .current-menu-item > a::after,
	.nav__menu > .current-menu-ancestor > a::after,
	.nav__menu > .current-menu-ancestor > .nav__group::after,
	.nav__menu > .current-menu-parent > .nav__group::after { transform: scaleX(1); }
	.nav__menu > .current-menu-item > a,
	.nav__menu > .current-menu-ancestor > a,
	.nav__menu > .current-menu-ancestor > .nav__group,
	.nav__menu > .current-menu-parent > .nav__group { color: var(--link); }
	.nav__toggle {
		display: inline-flex; align-items: center; justify-content: center;
		width: 24px; height: 24px; margin-left: -0.6rem; margin-right: 0.3rem; padding: 0;
		border: 0; background: none; color: var(--text-muted); cursor: pointer; border-radius: var(--radius-sm);
	}
	.nav__toggle .icon { width: 1rem; height: 1rem; }
	.nav__menu > li.is-open > .nav__group .icon,
	.nav__menu > li.is-open > .nav__toggle .icon { transform: rotate(180deg); }

	.nav__menu .sub-menu {
		position: absolute; top: 100%; left: 0.25rem; z-index: 80;
		min-width: 270px; padding: 0.5rem;
		background: var(--surface);
		border: 1px solid var(--border); border-top: 3px solid var(--blue-600);
		border-radius: 0 0 var(--radius) var(--radius);
		box-shadow: var(--shadow);
		opacity: 0; visibility: hidden; transform: translateY(6px);
		transition: opacity .15s, transform .15s, visibility .15s;
	}
	.nav__menu > li:last-child .sub-menu,
	.nav__menu > li:nth-last-child(2) .sub-menu { left: auto; right: 0.25rem; }
	.nav__menu > li:hover > .sub-menu,
	.nav__menu > li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
	.nav__menu > li.is-closed > .sub-menu { opacity: 0; visibility: hidden; }
	.nav__menu .sub-menu a {
		display: block; padding: 0.6rem 0.8rem; border-radius: var(--radius-sm);
		font-size: 0.9rem; font-weight: 600; line-height: 1.35;
		border-left: 3px solid transparent;
	}
	.nav__menu .sub-menu a:hover { background: var(--tint); color: var(--link-hover); border-left-color: var(--blue-600); }
	.nav__menu .sub-menu .current-menu-item > a { background: var(--tint); color: var(--link); border-left-color: var(--blue-600); }
}
@media (min-width: 1180px) and (max-width: 1279px) {
	.nav__menu > li > a, .nav__group { padding-inline: 0.6rem; font-size: 0.875rem; }
	.brand__agency { font-size: 1.125rem; }
}

/* Mobile and tablet: slide-in drawer with accordion submenus */
@media (max-width: 1179px) {
	:root { --header-h: 68px; }
	.brand__seal { width: 44px; height: 44px; }
	.brand__agency { font-size: 1.0625rem; }
	.brand__republic { font-size: 0.625rem; }
	.nav { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
	body.nav-is-open .nav { visibility: visible; }
	.nav__backdrop { position: absolute; inset: 0; background: rgb(8 20 46 / 0.55); opacity: 0; transition: opacity .2s; }
	body.nav-is-open .nav__backdrop { opacity: 1; }
	.nav__panel {
		position: absolute; top: 0; right: 0; bottom: 0;
		display: flex; flex-direction: column;
		width: min(420px, 100%); overflow-y: auto;
		background: var(--surface);
		transform: translateX(100%); transition: transform .25s ease;
	}
	body.nav-is-open .nav__panel { transform: none; }
	.nav__panel-head {
		display: flex; align-items: center; justify-content: space-between;
		padding: 1rem 1.25rem; border-bottom: 1px solid var(--border);
		position: sticky; top: 0; background: var(--surface); z-index: 1;
	}
	.nav__panel-title { font-weight: 800; font-size: 1.125rem; color: var(--text-strong); }
	.nav__close {
		display: inline-flex; align-items: center; justify-content: center;
		width: 44px; height: 44px; border: 1px solid var(--border-strong); border-radius: var(--radius);
		background: var(--surface); color: var(--text-strong); cursor: pointer;
	}
	.nav__panel-search { padding: 1rem 1.25rem 0.5rem; }
	.nav__menu { padding: 0.5rem 0.75rem; }
	.nav__menu > li { position: relative; border-bottom: 1px solid var(--border); }
	.nav__menu > li > a,
	.nav__group {
		display: flex; align-items: center; justify-content: space-between; width: 100%;
		min-height: 52px; padding: 0.75rem 0.5rem;
		border: 0; background: none; font: inherit; font-size: 1.0625rem; font-weight: 700; text-align: left; cursor: pointer;
	}
	.nav__menu > li.menu-item-has-children > a { padding-right: 3.5rem; }
	.nav__toggle {
		position: absolute; right: 0; top: 4px;
		display: inline-flex; align-items: center; justify-content: center;
		width: 44px; height: 44px; border: 0; background: none; color: var(--text-muted); cursor: pointer; border-radius: var(--radius);
	}
	.nav__toggle:hover { background: var(--tint); }
	.nav__group .icon, .nav__toggle .icon { transition: transform .2s; }
	.nav__menu li.is-open > .nav__group .icon,
	.nav__menu li.is-open > .nav__toggle .icon { transform: rotate(180deg); }
	.nav__menu .sub-menu { display: none; padding: 0 0 0.75rem 0.5rem; }
	.nav__menu li.is-open > .sub-menu { display: block; }
	.nav__menu .sub-menu a {
		display: block; padding: 0.6rem 0.75rem; border-left: 2px solid var(--border);
		font-weight: 500; color: var(--text-soft);
	}
	.nav__menu .sub-menu a:hover, .nav__menu .sub-menu .current-menu-item > a { border-left-color: var(--blue-600); color: var(--link); background: var(--tint); }
	.nav__menu .current-menu-item > a { color: var(--link); }
	.nav__panel-foot { margin-top: auto; padding: 1.25rem; background: var(--paper); border-top: 1px solid var(--border); }
	.nav__panel-foot .govbar__links { flex-wrap: wrap; gap: 0.5rem 1.25rem; font-size: 0.9375rem; }
}
@media (max-width: 560px) {
	.icon-btn__label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
	.icon-btn { padding: 0.5rem 0.7rem; }
	.brand { gap: 0.6rem; }
	.masthead__inner { gap: 0.75rem; }
}

/* 6. Search ---------------------------------------------------------------- */
.search-form {
	position: relative; display: flex; align-items: center;
	background: var(--surface);
	border: 1.5px solid var(--border-strong); border-radius: var(--radius);
	transition: border-color .15s, box-shadow .15s;
}
.search-form:focus-within { border-color: var(--blue-600); box-shadow: 0 0 0 3px var(--tint-strong); }
.search-form__icon { position: absolute; left: 0.85rem; width: 1.15rem; height: 1.15rem; color: var(--text-muted); pointer-events: none; }
.search-form__field {
	flex: 1; min-width: 0; padding: 0.7rem 0.75rem 0.7rem 2.6rem;
	border: 0; background: transparent; color: var(--text); font: inherit; font-size: 1rem;
	-webkit-appearance: none; appearance: none;
}
.search-form__field:focus { outline: 0; }
.search-form__field::placeholder { color: var(--text-muted); opacity: 1; }
.search-form__submit {
	margin: 4px; padding: 0.55rem 1.1rem;
	border: 0; border-radius: var(--radius-sm);
	background: var(--blue-600); color: #fff; font: inherit; font-weight: 700; font-size: 0.9375rem; cursor: pointer;
}
.search-form__submit:hover { background: var(--blue-800); }
.search-form--lg .search-form__field { padding-block: 0.9rem; font-size: 1.0625rem; }
.search-form--lg .search-form__submit { padding: 0.75rem 1.4rem; }
.search-form--xl { border: 0; border-radius: var(--radius-lg); box-shadow: 0 18px 40px -18px rgb(0 0 0 / 0.55); }
.search-form--xl:focus-within { box-shadow: 0 0 0 4px rgb(255 255 255 / 0.5), 0 18px 40px -18px rgb(0 0 0 / 0.55); }
.search-form--xl .search-form__icon { left: 1.1rem; width: 1.35rem; height: 1.35rem; }
.search-form--xl .search-form__field { padding: 1.15rem 1rem 1.15rem 3.1rem; font-size: 1.125rem; }
.search-form--xl .search-form__submit { margin: 6px; padding: 0.85rem 1.6rem; font-size: 1rem; border-radius: var(--radius); }
@media (max-width: 480px) {
	.search-form--xl .search-form__field { font-size: 1rem; padding-left: 2.8rem; }
	.search-form--xl .search-form__submit { padding-inline: 1rem; }
}

.search-panel { background: var(--paper); border-top: 1px solid var(--border); box-shadow: 0 16px 30px -20px rgb(var(--shadow-rgb) / 0.5); }
.search-panel[hidden] { display: none; }
.search-panel__inner { padding-block: 1.25rem 1.1rem; max-width: calc(820px + var(--gutter) * 2); }

.popular { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 0.85rem; font-size: 0.875rem; }
.popular__label { font-weight: 700; color: var(--text-muted); }
.popular ul { display: contents; list-style: none; }
.popular a {
	display: inline-block; padding: 0.3rem 0.7rem;
	border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
	background: var(--surface); color: var(--text-soft); font-weight: 600; text-decoration: none;
}
.popular a:hover { border-color: var(--blue-600); color: var(--link); background: var(--tint); }
.popular--light .popular__label { color: rgb(255 255 255 / 0.8); }
.popular--light a { background: rgb(255 255 255 / 0.08); border-color: rgb(255 255 255 / 0.35); color: #fff; }
.popular--light a:hover { background: #fff; color: var(--blue-900); border-color: #fff; }

/* 7. Homepage --------------------------------------------------------------- */
.section { padding-block: var(--section); }
.section--tight { padding-block: 2.5rem; }
.section--paper { background: var(--paper); border-block: 1px solid var(--border); }

.section-head { margin-bottom: 2rem; max-width: 760px; }
.section-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; max-width: none; flex-wrap: wrap; }
.section-head__label {
	display: inline-flex; align-items: center; gap: 0.55rem; margin: 0 0 0.5rem;
	font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue-600);
}
.section-head__label::before { content: ""; width: 10px; height: 10px; background: currentColor; border-radius: 2px; }
:root[data-scheme="dark"] .section-head__label { color: var(--accent); }
.section-head__label--light { color: var(--blue-300); }
.section-head__title { margin: 0; font-size: clamp(1.625rem, 3vw, 2.125rem); font-weight: 800; letter-spacing: -0.025em; }

/* Hero */
.hero {
	position: relative; isolation: isolate; overflow: hidden;
	padding-block: clamp(3rem, 7vw, 5.5rem);
	background:
		radial-gradient(1000px 500px at 85% -10%, rgb(47 99 191 / 0.55), transparent 60%),
		radial-gradient(700px 400px at -10% 110%, rgb(33 76 157 / 0.6), transparent 60%),
		var(--blue-900);
	color: #fff;
}
.hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.18;
	background-image:
		linear-gradient(rgb(255 255 255 / 0.25) 1px, transparent 1px),
		linear-gradient(90deg, rgb(255 255 255 / 0.25) 1px, transparent 1px);
	background-size: 48px 48px;
	-webkit-mask-image: linear-gradient(120deg, transparent 20%, #000 70%);
	mask-image: linear-gradient(120deg, transparent 20%, #000 70%);
}
.hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero--photo { background: linear-gradient(100deg, rgb(11 31 75 / 0.95) 30%, rgb(11 31 75 / 0.7)); }
.hero--photo::before { display: none; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero__eyebrow {
	display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem;
	font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue-200);
}
.hero__eyebrow::before { content: ""; width: 28px; height: 3px; background: linear-gradient(90deg, var(--flag-red) 50%, var(--sun) 50%); }
.hero__title { margin: 0 0 1rem; color: #fff; font-size: clamp(2.25rem, 5.2vw, 3.6rem); font-weight: 800; line-height: 1.06; letter-spacing: -0.035em; }
.hero__text { max-width: 600px; margin-bottom: 2rem; font-size: clamp(1.0625rem, 1.6vw, 1.1875rem); line-height: 1.6; color: rgb(255 255 255 / 0.86); }
.hero__search { max-width: 640px; }

.notice-card {
	background: var(--surface); color: var(--text);
	border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
}
.notice-card__head { padding: 1rem 1.35rem; background: var(--paper); border-bottom: 1px solid var(--border); }
.notice-card__title { display: flex; align-items: center; gap: 0.55rem; margin: 0; font-size: 1rem; font-weight: 800; }
.notice-card__title .icon { color: var(--k-announcements); }
.notice-card__list { list-style: none; margin: 0; padding: 0.35rem 1.35rem; }
.notice-card__list li { display: grid; gap: 0.2rem; padding: 0.9rem 0; border-bottom: 1px solid var(--border); }
.notice-card__list li:last-child { border-bottom: 0; }
.notice-card__date { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); }
.notice-card__list a { font-weight: 700; line-height: 1.4; color: var(--text-strong); text-decoration: none; }
.notice-card__list a:hover { color: var(--link); text-decoration: underline; }
.notice-card__more {
	display: flex; align-items: center; justify-content: space-between;
	padding: 0.9rem 1.35rem; border-top: 1px solid var(--border);
	font-weight: 700; font-size: 0.9375rem; text-decoration: none; background: var(--paper);
}
.notice-card__more:hover { background: var(--tint); }
.notice-card__more .icon { width: 1.1rem; height: 1.1rem; }

@media (max-width: 960px) {
	.hero__grid { grid-template-columns: 1fr; }
}

/* Services directory */
.services {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1px; background: var(--border);
	border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
}
.services > li { display: flex; background: var(--surface); }
.service {
	position: relative; display: flex; flex-direction: column; gap: 0.35rem; width: 100%;
	padding: 1.5rem 1.5rem 3.25rem;
	text-decoration: none; color: inherit;
	transition: background-color .15s;
}
.service::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--blue-600); transform: scaleY(0); transition: transform .2s; }
.service:hover { background: var(--blue-50); color: inherit; }
:root[data-scheme="dark"] .service:hover { background: var(--tint); }
.service:hover::before, .service:focus-visible::before { transform: scaleY(1); }
.service__icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 48px; height: 48px; margin-bottom: 0.65rem;
	border-radius: var(--radius); background: var(--tint); color: var(--blue-600);
}
:root[data-scheme="dark"] .service__icon { color: var(--accent); }
.service__icon .icon { width: 1.5rem; height: 1.5rem; }
.service__title { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 1.0625rem; font-weight: 800; line-height: 1.3; color: var(--text-strong); }
.service__ext { width: 0.95rem; height: 0.95rem; color: var(--text-muted); }
.service__text { font-size: 0.9rem; line-height: 1.5; color: var(--text-muted); }
.service__go { position: absolute; left: 1.5rem; bottom: 1.2rem; color: var(--blue-600); transition: transform .2s; }
:root[data-scheme="dark"] .service__go { color: var(--accent); }
.service:hover .service__go { transform: translateX(5px); }
.service:hover .service__title { color: var(--link); }
@media (max-width: 1023px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
	.services { grid-template-columns: 1fr; }
	.service { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; padding: 1.1rem 2.75rem 1.1rem 1.1rem; }
	.service__icon { grid-row: span 2; margin: 0; width: 44px; height: 44px; }
	.service__go { left: auto; right: 1rem; top: 50%; bottom: auto; transform: translateY(-50%); }
	.service:hover .service__go { transform: translate(4px, -50%); }
}

/* Newsroom */
.newsroom { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.newsroom .card--lead { grid-column: 1 / -1; }
@media (max-width: 900px) { .newsroom { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .newsroom { grid-template-columns: 1fr; } }

/* Tabs + timeline */
.tabs__list {
	display: flex; gap: 0.25rem; overflow-x: auto;
	border-bottom: 1px solid var(--border-strong); margin-bottom: 1.5rem;
	scrollbar-width: thin;
}
.tabs__tab {
	position: relative; display: inline-flex; align-items: center; gap: 0.5rem; flex: none;
	min-height: 48px; padding: 0.6rem 1.1rem;
	border: 0; background: none; color: var(--text-muted);
	font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer;
}
.tabs__tab .icon { width: 1.1rem; height: 1.1rem; }
.tabs__tab:hover { color: var(--text-strong); background: var(--paper); }
.tabs__tab[aria-selected="true"] { color: var(--link); }
.tabs__tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--blue-600); }
:root[data-scheme="dark"] .tabs__tab[aria-selected="true"]::after { background: var(--accent); }
.tabs__panel:focus-visible { outline-offset: 6px; }
.tabs__panel > .link-more { margin-top: 1.25rem; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline__item {
	position: relative; display: grid; grid-template-columns: 130px 1fr; gap: 1.5rem;
	padding-bottom: 1.4rem;
}
.timeline__item::before { content: ""; position: absolute; left: 130px; margin-left: 0.75rem; top: 0.55rem; bottom: -0.4rem; width: 1px; background: var(--border-strong); transform: translateX(-0.5px); }
.timeline__item:last-child::before { display: none; }
.timeline__item::after { content: ""; position: absolute; left: 130px; margin-left: calc(0.75rem - 5px); top: 0.42rem; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--blue-600); }
.timeline__date { padding-top: 0.1rem; font-size: 0.8125rem; font-weight: 700; color: var(--text-muted); text-align: right; text-transform: uppercase; letter-spacing: 0.03em; }
.timeline__body { padding-left: 0.5rem; }
.timeline__title { font-weight: 700; font-size: 1.0625rem; line-height: 1.4; color: var(--text-strong); text-decoration: none; }
.timeline__title:hover { color: var(--link); text-decoration: underline; }
.timeline__excerpt { margin: 0.3rem 0 0; color: var(--text-muted); font-size: 0.9375rem; line-height: 1.55; }
@media (max-width: 600px) {
	.timeline__item { grid-template-columns: 1fr; gap: 0.2rem; padding-left: 1.5rem; }
	.timeline__item::before, .timeline__item::after { left: 0; margin-left: 0.3rem; }
	.timeline__item::after { margin-left: calc(0.3rem - 5px); }
	.timeline__date { text-align: left; }
	.timeline__body { padding-left: 0; }
}

/* Mandate band */
.mandate {
	position: relative; overflow: hidden;
	padding-block: var(--section);
	background: var(--blue-900); color: rgb(255 255 255 / 0.86);
}
.mandate::after {
	content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
	border: 70px solid rgb(255 255 255 / 0.04);
	pointer-events: none;
}
.mandate__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); }
.mandate__title { color: #fff; font-size: clamp(1.625rem, 3vw, 2.125rem); font-weight: 800; letter-spacing: -0.025em; }
.mandate__intro p { font-size: 1.0625rem; }
.mandate__intro .btn { margin-top: 0.5rem; }
.leader { display: flex; align-items: center; gap: 0.9rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / 0.15); }
.leader p { margin: 0; display: flex; flex-direction: column; line-height: 1.35; }
.leader__avatar { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: rgb(255 255 255 / 0.1); color: #fff; flex: none; }
.leader__name { color: #fff; font-size: 1.0625rem; }
.leader__role { font-size: 0.875rem; color: var(--blue-200); }
.mandate__list { margin: 0; display: grid; gap: 0; }
.mandate__item { padding: 1.4rem 0; border-top: 1px solid rgb(255 255 255 / 0.15); }
.mandate__item:first-child { padding-top: 0; border-top: 0; }
.mandate__item dt { margin-bottom: 0.4rem; font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sun); }
.mandate__item dd { margin: 0; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.55; color: #fff; font-weight: 500; }
@media (max-width: 860px) { .mandate__grid { grid-template-columns: 1fr; } }


/* TESDABest 8-Point Agenda */
.agenda { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }

.agenda__lead { margin-top: 1rem; color: var(--text-muted); }
.agenda__abc { margin: 1rem 0 1.5rem; font-size: 0.875rem; font-weight: 800; letter-spacing: 0.12em; color: var(--flag-red); }
:root[data-scheme="dark"] .agenda__abc { color: #f5a3a0; }
.agenda__figure { margin: 0 0 1.5rem; }
.agenda__zoom { position: relative; display: block; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 6px; box-shadow: var(--shadow-sm); transition: box-shadow .2s, border-color .2s; }
.agenda__zoom img { display: block; width: 100%; height: auto; border-radius: var(--radius-sm); }
.agenda__zoom:hover { border-color: var(--blue-400); box-shadow: var(--shadow); }
.agenda__figure figcaption { margin-top: 0.5rem; font-size: 0.8125rem; color: var(--text-muted); }
.agenda__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(4, auto); grid-auto-flow: column; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.agenda__item { --tone: var(--blue-900); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; padding: 1.25rem 1.25rem 1.4rem; background: var(--surface); }
.agenda__item:nth-child(4n+2) { --tone: var(--blue-800); }
.agenda__item:nth-child(4n+3) { --tone: var(--blue-700); }
.agenda__item:nth-child(4n+4) { --tone: var(--blue-600); }
.agenda__letter { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: var(--radius); background: var(--tone); color: #fff; font-size: 1.375rem; font-weight: 800; line-height: 1; box-shadow: inset 0 -3px 0 rgb(0 0 0 / 0.18); }
.agenda__num { margin: 0 0 0.15rem; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; color: var(--text-muted); }
.agenda__title { margin: 0 0 0.4rem; font-size: 1.0625rem; font-weight: 800; line-height: 1.3; letter-spacing: -0.01em; color: var(--text-strong); }
.agenda__text { margin: 0; font-size: 0.9375rem; line-height: 1.55; color: var(--text-soft); }
:root[data-scheme="dark"] .agenda__letter { background: color-mix(in srgb, var(--tone) 70%, var(--blue-400)); }
html.is-contrast .agenda__list { border-width: 2px; }
@media (max-width: 1023px) { .agenda { grid-template-columns: 1fr; } .agenda__intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 260px); column-gap: 2rem; align-items: start; } .agenda__intro > * { grid-column: 1; } .agenda__figure { grid-column: 2; grid-row: 1 / span 5; } }
@media (max-width: 700px) { .agenda__intro { display: block; } .agenda__figure { max-width: 360px; } .agenda__list { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; } }

/* Public documents */
.docs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.docs__seal { width: 84px; height: auto; margin-bottom: 1.25rem; }
.docs__intro p:not(.section-head__label) { margin-top: 1rem; color: var(--text-muted); }
.docs__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.doc-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.doc-list__item { padding: 1.15rem 1.35rem; border-top: 1px solid var(--border); }
.doc-list__item:first-child { border-top: 0; }
.doc-list__title { margin: 0 0 0.55rem; font-size: 1rem; font-weight: 800; }
.doc-list__files { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.doc-list__files a { display: inline-flex; align-items: baseline; gap: 0.5rem; font-weight: 600; font-size: 0.9375rem; line-height: 1.45; text-decoration: none; }
.doc-list__files a:hover { text-decoration: underline; }
.doc-list__files .file-tag { align-self: center; }
@media (max-width: 860px) { .docs { grid-template-columns: 1fr; } }

/* Visit */
.visit { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.visit__map { position: relative; aspect-ratio: 4 / 3; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--sunken); }
.visit__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.visit__info .section-head__title { margin-bottom: 1.25rem; }
.visit__info .btn { margin-top: 1.5rem; }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } .visit__info { order: -1; } }

.contact-dl { margin: 0; display: grid; gap: 0.9rem; }
.contact-dl > div { display: grid; gap: 0.1rem; }
.contact-dl dt { display: flex; align-items: center; gap: 0.45rem; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.contact-dl dt .icon { width: 1rem; height: 1rem; color: var(--blue-600); }
:root[data-scheme="dark"] .contact-dl dt .icon { color: var(--accent); }
.contact-dl dd { margin: 0; padding-left: 1.45rem; color: var(--text); font-weight: 500; overflow-wrap: break-word; }
.widget .contact-dl dd { font-size: 0.9375rem; }
.widget .contact-dl dd a { font-size: 0.875rem; }
.contact-dl--lg dd { font-size: 1.0625rem; }

/* 8. Cards & listings ------------------------------------------------------ */
.card {
	position: relative; display: flex; flex-direction: column;
	background: var(--surface);
	border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
	transition: border-color .15s, box-shadow .15s;
}
.card:hover { border-color: var(--blue-300); box-shadow: var(--shadow); }
:root[data-scheme="dark"] .card:hover { border-color: var(--border-strong); }
.card__media { aspect-ratio: 16 / 10; background: var(--sunken); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card__media img { transform: scale(1.03); }
.media-placeholder {
	display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
	background: linear-gradient(135deg, var(--blue-100), var(--blue-50));
}
:root[data-scheme="dark"] .media-placeholder { background: linear-gradient(135deg, var(--tint-strong), var(--tint)); }
.media-placeholder__seal { width: 28%; max-width: 96px; opacity: 0.35; }
.card__body { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.15rem 1.25rem 1.35rem; flex: 1; }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.75rem; font-size: 0.8125rem; color: var(--text-muted); }
.card__meta .kicker { position: relative; z-index: 2; }
.card__title { margin: 0; font-size: 1.0625rem; font-weight: 700; line-height: 1.4; }
.card__link { color: var(--text-strong); text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card:hover .card__link { color: var(--link); text-decoration: underline; }
.card__link:focus-visible { outline: 0; }
.card:has(.card__link:focus-visible) { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.card__excerpt { margin: 0; font-size: 0.9375rem; color: var(--text-muted); line-height: 1.55; }
.card__cta { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: auto; padding-top: 0.75rem; font-weight: 700; color: var(--link); font-size: 0.9375rem; }
.card__cta .icon { width: 1.1rem; height: 1.1rem; transition: transform .15s; }
.card:hover .card__cta .icon { transform: translateX(4px); }

.card--lead { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.card--lead .card__media { aspect-ratio: auto; min-height: 340px; }
.card--lead .card__body { padding: clamp(1.5rem, 3vw, 2.5rem); justify-content: center; gap: 0.85rem; }
.card--lead .card__title { font-size: clamp(1.375rem, 2.4vw, 1.75rem); font-weight: 800; line-height: 1.25; letter-spacing: -0.02em; }
.card--lead .card__excerpt { font-size: 1rem; }
@media (max-width: 760px) {
	.card--lead { grid-template-columns: 1fr; }
	.card--lead .card__media { min-height: 0; aspect-ratio: 16 / 9; }
}

.card--row { flex-direction: row; border-width: 0 0 1px; border-radius: 0; background: transparent; padding: 1.5rem 0; gap: 1.5rem; }
.card--row:first-child { padding-top: 0.5rem; }
.card--row:hover { box-shadow: none; border-color: var(--border); }
.card--row .card__media { flex: 0 0 240px; aspect-ratio: 16 / 10; border-radius: var(--radius); align-self: flex-start; }
.card--row .card__body { padding: 0; }
.card--row .card__title { font-size: 1.1875rem; }
@media (max-width: 600px) {
	.card--row { flex-direction: column; gap: 0.9rem; }
	.card--row .card__media { flex-basis: auto; width: 100%; }
}

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

.filter { margin-bottom: 1.25rem; border-bottom: 1px solid var(--border-strong); overflow-x: auto; }
.filter ul { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.filter__item {
	position: relative; display: inline-flex; align-items: center; gap: 0.45rem; white-space: nowrap;
	min-height: 46px; padding: 0.5rem 0.95rem;
	color: var(--text-muted); font-weight: 700; text-decoration: none;
}
.filter__item:hover { color: var(--text-strong); background: var(--paper); }
.filter__item.is-active { color: var(--link); }
.filter__item.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--blue-600); }
.filter__count { padding: 0.05rem 0.45rem; border-radius: 3px; background: var(--sunken); font-size: 0.75rem; color: var(--text-muted); }

.pagination { margin-top: 2.5rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
	min-width: 44px; min-height: 44px; padding: 0 0.85rem;
	border: 1px solid var(--border-strong); border-radius: var(--radius);
	color: var(--text-strong); font-weight: 700; text-decoration: none;
}
.pagination .page-numbers .icon { width: 1rem; height: 1rem; }
.pagination a.page-numbers:hover { border-color: var(--blue-600); color: var(--link); background: var(--tint); }
.pagination .page-numbers.current { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.pagination .page-numbers.dots { border: 0; min-width: auto; }

/* 9. Page header, layout, sidebar ------------------------------------------ */
.page-header {
	position: relative; overflow: hidden;
	padding-block: clamp(1.75rem, 4vw, 3rem) clamp(1.75rem, 4vw, 2.75rem);
	background: var(--paper);
	border-bottom: 1px solid var(--border);
}
.page-header::after {
	content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: min(40%, 420px);
	background-image: radial-gradient(var(--tint-strong) 1.5px, transparent 1.5px);
	background-size: 18px 18px;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000);
	mask-image: linear-gradient(90deg, transparent, #000);
	pointer-events: none;
}
.page-header .container { position: relative; z-index: 1; }
.page-header__label { margin: 0 0 0.35rem; font-weight: 700; color: var(--link); }
.page-header__title { margin: 0; max-width: 900px; font-size: clamp(1.75rem, 4vw, 2.625rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; }
.page-header__desc { margin-top: 0.75rem; max-width: 720px; color: var(--text-muted); font-size: 1.0625rem; }
.page-header__desc p:last-child { margin: 0; }
.page-header__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; margin-top: 1rem; font-size: 0.9375rem; color: var(--text-muted); }
.meta-item { display: inline-flex; align-items: center; gap: 0.4rem; }
.meta-item .icon { width: 1.05rem; height: 1.05rem; }

.breadcrumbs { margin-bottom: 1rem; font-size: 0.875rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--text-muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.25rem; color: var(--border-strong); }
.breadcrumbs .icon { width: 0.95rem; height: 0.95rem; }
.breadcrumbs a { color: var(--text-soft); font-weight: 600; text-decoration: none; }
.breadcrumbs a:hover { color: var(--link); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--text-muted); }

.layout {
	display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(2rem, 4vw, 3.5rem);
	padding-block: clamp(2rem, 4vw, 3rem) var(--section);
	align-items: start;
}
.layout--full { grid-template-columns: minmax(0, 1fr); }
.layout__aside { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: 1.25rem; }
@media (max-width: 960px) {
	.layout { grid-template-columns: minmax(0, 1fr); }
	.layout__aside { position: static; }
}

.widget { padding: 1.25rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.widget__title { margin: 0 0 0.85rem; font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget--contact { background: var(--paper); }
.widget--contact .btn { margin-top: 1.1rem; }
.widget__map { width: 100%; aspect-ratio: 4 / 3; margin-top: 1.1rem; border: 0; border-radius: var(--radius); }

.toc { border-left: 3px solid var(--blue-600); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.toc__list { list-style: none; margin: 0; padding: 0; counter-reset: toc; display: grid; gap: 0.15rem; max-height: 50vh; overflow-y: auto; }
.toc__list a {
	display: block; padding: 0.4rem 0.5rem; border-radius: var(--radius-sm);
	font-size: 0.9rem; font-weight: 600; line-height: 1.35; color: var(--text-soft); text-decoration: none;
}
.toc__list a:hover { background: var(--tint); color: var(--link-hover); }
.toc__list a.is-current { background: var(--tint); color: var(--link); }

.link-list, .mini-list { list-style: none; margin: 0; padding: 0; }
.link-list a, .mini-list a {
	display: block; padding: 0.5rem 0; border-bottom: 1px solid var(--border);
	font-weight: 600; font-size: 0.9375rem; line-height: 1.4; text-decoration: none; color: var(--text-strong);
}
.link-list li:last-child a { border-bottom: 0; }
.link-list a:hover, .mini-list a:hover { color: var(--link); text-decoration: underline; }
.mini-list li { border-bottom: 1px solid var(--border); padding: 0.55rem 0; }
.mini-list li:last-child { border-bottom: 0; }
.mini-list a { border: 0; padding: 0; }
.mini-list span { font-size: 0.8125rem; color: var(--text-muted); }
.year-jump { display: flex; gap: 0.5rem; }
.year-jump select { flex: 1; min-width: 0; }
.year-jump .btn { min-height: 0; padding-block: 0.5rem; }

/* Widgets added in the admin */
.widget_categories li, .widget_archive li, .widget_recent_entries li, .widget_pages li, .widget_nav_menu li { padding: 0.45rem 0; border-bottom: 1px solid var(--border); }
.widget_categories li:last-child, .widget_archive li:last-child, .widget_recent_entries li:last-child, .widget_pages li:last-child, .widget_nav_menu li:last-child { border-bottom: 0; }
.widget_categories a, .widget_archive a, .widget_recent_entries a, .widget_pages a, .widget_nav_menu a { font-weight: 600; text-decoration: none; }
.widget img { border-radius: var(--radius); }
.widget_calendar table { width: 100%; text-align: center; font-size: 0.875rem; }

/* 10. Content -------------------------------------------------------------- */
.reading { max-width: calc(760px + var(--gutter) * 2); padding-block: clamp(2rem, 4vw, 3rem) var(--section); }
.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(--text-muted); }
.article__updated { display: flex; align-items: center; gap: 0.4rem; margin: 2.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--border); font-size: 0.875rem; color: var(--text-muted); }
.article__updated .icon { width: 1rem; height: 1rem; }

.entry-content { font-size: 1.0625rem; line-height: 1.75; color: var(--text); overflow-wrap: break-word; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h1 { font-size: 1.875rem; margin: 2.25rem 0 0.75rem; }
.entry-content h2 { font-size: 1.5rem; margin: 2.5rem 0 0.75rem; padding-top: 0.25rem; }
.entry-content h3 { font-size: 1.25rem; 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(--blue-600); }
.entry-content a { font-weight: 600; }
.entry-content img { border-radius: var(--radius); }
.entry-content figure { margin: 1.75rem 0; }
.entry-content figcaption, .entry-content .wp-caption-text { font-size: 0.875rem; color: var(--text-muted); margin-top: 0.5rem; text-align: center; }
.entry-content .wp-caption { max-width: 100%; }
.entry-content blockquote { margin: 1.75rem 0; padding: 0.25rem 0 0.25rem 1.5rem; border-left: 4px solid var(--blue-600); font-size: 1.1875rem; font-weight: 500; color: var(--text-strong); }
.entry-content blockquote p:last-child { margin: 0; }
.entry-content hr { border: 0; height: 1px; background: var(--border); margin: 2.5rem 0; }
.entry-content iframe { width: 100%; border: 0; border-radius: var(--radius); }
.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; }
.entry-content h2[id], .entry-content h3[id] { scroll-margin-top: calc(var(--header-h) + 1.5rem); }
@media (max-width: 639px) { .entry-content .alignleft, .entry-content .alignright { float: none; margin: 1rem 0; } }

/* Links that open a new tab show a small icon (screen readers get text) */
.entry-content a[target="_blank"]:not(:has(img))::after {
	content: ""; display: inline-block; width: 0.8em; height: 0.8em; margin-left: 0.25em; vertical-align: -0.05em;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M20 4l-9 9'/%3E%3Cpath d='M19 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M20 4l-9 9'/%3E%3Cpath d='M19 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* File links (PDF, Excel, Word) get a type tag */
.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"; display: inline-block; margin-right: 0.45rem; vertical-align: 0.12em;
	padding: 0.05rem 0.38rem; border-radius: 3px;
	font-size: 0.625rem; font-weight: 800; letter-spacing: 0.05em; line-height: 1.5;
	background: var(--file-pdf-bg); color: var(--file-pdf-fg);
}
.entry-content a[href$=".xlsx" i]::before,
.entry-content a[href$=".xls" i]::before,
.entry-content a[href$=".xlsm" i]::before { content: "XLS"; background: var(--file-xls-bg); color: var(--file-xls-fg); }
.entry-content a[href$=".docx" i]::before,
.entry-content a[href$=".doc" i]::before { content: "DOC"; background: var(--file-doc-bg); color: var(--file-doc-fg); }
.entry-content h2 a::before, .entry-content h1 a::before { vertical-align: 0.3em; }

/* Document groups (Transparency page): an item with a title and a sub-list of
   files becomes a bordered group; the files become tidy rows. */
.entry-content li:has(> ul > li > a[href$=".pdf" i], > ul > li > a[href$=".xlsx" i], > ul > li > a[href$=".xls" i]) {
	list-style: none; margin: 0 0 0.75rem -1.4rem; padding: 1rem 1.15rem;
	border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface);
	font-weight: 700; color: var(--text-strong); line-height: 1.45;
}
.entry-content li:has(> ul > li > a[href$=".pdf" i], > ul > li > a[href$=".xlsx" i], > ul > li > a[href$=".xls" i]) > ul {
	list-style: none; margin: 0.65rem 0 0; padding: 0; display: grid; gap: 0.35rem; font-weight: 400;
}
.entry-content li:has(> ul > li > a[href$=".pdf" i], > ul > li > a[href$=".xlsx" i], > ul > li > a[href$=".xls" i]) > ul > li {
	margin: 0; padding: 0.55rem 0.75rem; border-radius: var(--radius); background: var(--paper);
}
.entry-content li:has(> ul > li > a[href$=".pdf" i], > ul > li > a[href$=".xlsx" i], > ul > li > a[href$=".xls" i]) > ul > li:hover { background: var(--tint); }
.entry-content li:has(> ul > li > a[href$=".pdf" i]) > ul > li > a { text-decoration: none; }
.entry-content li:has(> ul > li > a[href$=".pdf" i]) > ul > li > a:hover { text-decoration: underline; }

/* Flat lists of document links */
.entry-content ul:has(> li > a[href$=".pdf" i]):not(:has(> li > ul)) { list-style: none; padding-left: 0; display: grid; gap: 0.4rem; }
.entry-content ul:has(> li > a[href$=".pdf" i]):not(:has(> li > ul)) > li { margin: 0; padding: 0.65rem 0.9rem; border: 1px solid var(--border); border-radius: var(--radius); }
.entry-content ul:has(> li > a[href$=".pdf" i]):not(:has(> li > ul)) > li:hover { background: var(--tint); }
.entry-content h2.wp-block-heading:has(+ ul) { padding-top: 1.5rem; border-top: 1px solid var(--border); }
.entry-content > h2.wp-block-heading:first-child:has(+ ul) { padding-top: 0; border-top: 0; }

/* 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;
	border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.entry-content .wp-block-file .wp-block-file__button {
	padding: 0.45rem 0.95rem; border-radius: var(--radius);
	background: var(--blue-600); color: #fff; font-size: 0.8125rem; font-weight: 700; text-decoration: none;
}
.entry-content .wp-block-file .wp-block-file__button::before { display: none; }

/* Tables */
.table-scroll, .entry-content .wp-block-table {
	overflow: auto; max-height: 80vh; margin: 1.5rem 0;
	border: 1px solid var(--border); border-radius: var(--radius-lg);
	-webkit-overflow-scrolling: touch;
}
.entry-content table { width: 100%; border-collapse: collapse; font-size: 0.875rem; line-height: 1.5; }
.table-scroll table { display: table !important; overflow: visible !important; }
.entry-content th, .entry-content td { padding: 0.65rem 0.85rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.entry-content thead th { position: sticky; top: 0; z-index: 1; background: var(--blue-900) !important; color: #fff; font-weight: 700; white-space: nowrap; }
.entry-content tbody tr:nth-child(even) { background: var(--paper); }
.entry-content tbody tr:hover { background: var(--tint); }
.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: 1.25rem 0; border-block: 1px solid var(--border); }
.article__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.article__tags a { padding: 0.25rem 0.65rem; border-radius: var(--radius-sm); background: var(--sunken); color: var(--text-soft); font-size: 0.8125rem; font-weight: 600; text-decoration: none; }
.article__tags a:hover { background: var(--tint); color: var(--link); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.share__label { font-size: 0.875rem; font-weight: 700; color: var(--text-muted); margin-right: 0.25rem; }
.share__btn {
	display: inline-flex; align-items: center; gap: 0.4rem; min-height: 40px; padding: 0.4rem 0.8rem;
	border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface);
	color: var(--text-strong); font: inherit; font-size: 0.875rem; font-weight: 700; text-decoration: none; cursor: pointer;
}
.share__btn .icon { width: 1rem; height: 1rem; }
.share__btn:hover { border-color: var(--blue-600); color: var(--link); background: var(--tint); }

.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.3rem; height: 100%; padding: 1rem 1.2rem; border: 1px solid var(--border); border-radius: var(--radius-lg); text-decoration: none; }
.post-navigation a:hover { border-color: var(--blue-300); background: var(--paper); }
.post-navigation .nav-next { grid-column: 2; text-align: right; }
.post-navigation .nav-next .post-nav__label { justify-content: flex-end; }
.post-nav__label { display: flex; align-items: center; gap: 0.25rem; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.post-nav__label .icon { width: 0.95rem; height: 0.95rem; }
.post-nav__title { font-weight: 700; color: var(--text-strong); line-height: 1.4; }
@media (max-width: 639px) {
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.post-navigation .nav-next { grid-column: auto; }
}

/* 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.9rem;
	background: var(--surface); color: var(--text);
	border: 1.5px solid var(--border-strong); border-radius: var(--radius);
	font: inherit; 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(--blue-600); box-shadow: 0 0 0 3px var(--tint-strong); }
textarea { min-height: 160px; resize: vertical; }
label { font-weight: 600; font-size: 0.9375rem; color: var(--text-strong); }
input[type="submit"], button[type="submit"]:not(.search-form__submit):not(.btn) {
	display: inline-flex; align-items: center; gap: 0.5rem;
	min-height: 46px; padding: 0.75rem 1.5rem;
	background: var(--blue-600); color: #fff;
	border: 0; border-radius: var(--radius);
	font: inherit; font-weight: 700; cursor: pointer;
}
input[type="submit"]:hover, button[type="submit"]:not(.search-form__submit):not(.btn):hover { background: var(--blue-800); }

/* 11. Search, 404, comments ------------------------------------------------- */
.search-again { margin-bottom: 1.5rem; }
.results { list-style: none; margin: 0; padding: 0; }
.result { padding: 1.35rem 0; border-bottom: 1px solid var(--border); }
.result:first-child { padding-top: 0; }
.result__meta { display: flex; align-items: center; gap: 0.75rem; margin: 0 0 0.35rem; font-size: 0.8125rem; color: var(--text-muted); }
.result__type { padding: 0.1rem 0.5rem; border-radius: 3px; font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; background: var(--tint); color: var(--link); }
.result__type--page { background: var(--file-xls-bg); color: var(--file-xls-fg); }
.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 0 0.25rem; color: var(--text-soft); font-size: 0.9375rem; }
.result__url { margin: 0; font-size: 0.8125rem; color: var(--text-muted); overflow-wrap: anywhere; }

.empty-state { padding: 2.5rem; text-align: center; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); }
.empty-state__icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-bottom: 1rem; border-radius: 50%; background: var(--tint); color: var(--blue-600); }
.empty-state .search-form { max-width: 520px; margin: 1.5rem auto; text-align: left; }
.empty-state__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; list-style: none; padding: 0; margin: 0; }
.empty-state__links a { display: inline-block; padding: 0.35rem 0.75rem; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font-size: 0.875rem; font-weight: 600; text-decoration: none; }
.empty-state__links a:hover { background: var(--tint); border-color: var(--blue-600); }

.notfound { padding-block: clamp(2.5rem, 6vw, 5rem) var(--section); }
.notfound__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.notfound__code { display: inline-block; margin: 0 0 0.75rem; padding: 0.2rem 0.6rem; border-radius: var(--radius-sm); background: var(--file-pdf-bg); color: var(--file-pdf-fg); font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.notfound__title { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -0.03em; }
.notfound__text { font-size: 1.125rem; color: var(--text-muted); max-width: 560px; }
.notfound__home { margin-top: 1.5rem; }
.notfound__links { padding: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--paper); }
@media (max-width: 860px) { .notfound__grid { grid-template-columns: 1fr; } }

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

/* 12. Footer --------------------------------------------------------------- */
.helpline { background: var(--blue-600); color: #fff; }
.helpline__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; padding-block: 2rem; }
.helpline__title { margin: 0 0 0.25rem; color: #fff; font-size: 1.375rem; font-weight: 800; }
.helpline__copy p { margin: 0; color: rgb(255 255 255 / 0.88); }
.helpline__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.agency-footer { padding-block: clamp(2.5rem, 5vw, 3.75rem); background: var(--paper); border-top: 1px solid var(--border); }
.agency-footer__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: clamp(1.5rem, 4vw, 3rem); }
.agency-footer__title { margin: 0 0 1rem; font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.brand--footer { margin-bottom: 1.5rem; }
.brand--footer .brand__agency { font-size: 1.0625rem; }
.brand--footer .brand__office { font-size: 0.8125rem; color: var(--text-muted); font-weight: 500; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-links a { color: var(--text-soft); font-weight: 600; text-decoration: none; font-size: 0.9375rem; }
.footer-links a:hover { color: var(--link); text-decoration: underline; }
.social-link { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.25rem; font-weight: 700; text-decoration: none; }
.social-link .icon { width: 1.1rem; height: 1.1rem; }
.transparency-seal { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; font-size: 0.8125rem; font-weight: 700; text-decoration: none; color: var(--text-soft); }
.transparency-seal img { width: 110px; }
@media (max-width: 960px) {
	.agency-footer__grid { grid-template-columns: 1fr 1fr; }
	.agency-footer__about { grid-column: 1 / -1; }
}
@media (max-width: 520px) { .agency-footer__grid { grid-template-columns: 1fr; } .agency-footer__seal { justify-self: start; } }

.standard-footer { padding-block: 2.75rem 1.5rem; background: var(--blue-950); color: rgb(255 255 255 / 0.75); font-size: 0.875rem; }
.standard-footer h2 { margin: 0 0 0.75rem; font-size: 0.875rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; }
.standard-footer a { color: rgb(255 255 255 / 0.85); text-decoration: none; }
.standard-footer a:hover { color: #fff; text-decoration: underline; }
.standard-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.standard-footer__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.3fr); gap: 2rem; }
.standard-footer__republic { display: flex; gap: 1rem; align-items: flex-start; }
.standard-footer__republic img { width: 72px; height: 72px; flex: none; }
.standard-footer__cols { grid-template-columns: 1fr 1fr; column-gap: 1.25rem; }
.standard-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgb(255 255 255 / 0.12); font-size: 0.8125rem; }
.standard-footer__bottom p { margin: 0; }
@media (max-width: 860px) { .standard-footer__grid { grid-template-columns: 1fr; } }

/* 13. Dialog, to-top ------------------------------------------------------- */
.dialog {
	width: min(620px, calc(100vw - 2rem)); max-height: calc(100vh - 4rem); padding: 0;
	border: 0; border-top: 4px solid var(--blue-600); border-radius: var(--radius-lg);
	background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg);
}
.dialog::backdrop { background: rgb(8 20 46 / 0.6); }
.dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.5rem; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); }
.dialog__head h2 { margin: 0; font-size: 1.25rem; }
.dialog__close { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); color: var(--text-strong); cursor: pointer; }
.dialog__body { padding: 1.25rem 1.5rem 1.5rem; font-size: 0.9375rem; }
.dialog__body h3 { margin-top: 1.25rem; font-size: 1.0625rem; }
.keys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.4rem 1rem; margin: 0 0 1rem; }
.keys div { display: flex; align-items: center; gap: 0.6rem; }
.keys dt { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; border: 1px solid var(--border-strong); border-bottom-width: 3px; border-radius: var(--radius-sm); font-weight: 800; font-size: 0.8125rem; background: var(--paper); }
.keys dd { margin: 0; }

.to-top {
	position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 50;
	display: inline-flex; align-items: center; gap: 0.35rem;
	min-height: 44px; padding: 0.5rem 0.9rem;
	border-radius: var(--radius); background: var(--blue-900); color: #fff;
	font-size: 0.875rem; font-weight: 700; text-decoration: none;
	box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(10px);
	transition: opacity .2s, transform .2s, visibility .2s;
}
.to-top .icon { width: 1.05rem; height: 1.05rem; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--blue-600); color: #fff; }
:root[data-scheme="dark"] .to-top { background: var(--blue-600); }

/* 14. 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; }
:root[data-scheme="dark"] .wpcf7 .wpcf7-not-valid-tip { color: #f5a3a0; }
.wpcf7 form .wpcf7-response-output { margin: 1rem 0 0; padding: 0.9rem 1.1rem; border-radius: var(--radius); }
.wpcf7 .wpcf7-spinner { vertical-align: middle; }
.entry-content .wpcf7 { padding: clamp(1.25rem, 3vw, 2rem); background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.wp-pagenavi { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 2rem; }
.wp-pagenavi a, .wp-pagenavi span { padding: 0.5rem 0.85rem; border: 1px solid var(--border-strong) !important; border-radius: var(--radius); text-decoration: none; }
.wp-pagenavi .current { background: var(--blue-600); color: #fff; border-color: var(--blue-600) !important; }

/* 15. Display preferences --------------------------------------------------- */
/* Underline links */
html.is-underline a:not(.btn):not(.service):not(.card__link):not(.filter__item):not(.share__btn):not(.skip-link) { text-decoration: underline !important; }
html.is-underline .card__link, html.is-underline .service__title { text-decoration: underline; }

/* Wider text spacing (WCAG 1.4.12) */
html.is-spacing body { letter-spacing: 0.12em; word-spacing: 0.16em; }
html.is-spacing p, html.is-spacing li, html.is-spacing dd { line-height: 1.9; }
html.is-spacing p { margin-bottom: 2em; }

/* High contrast */
html.is-contrast {
	--text: #000;
	--text-strong: #000;
	--text-soft: #0b1020;
	--text-muted: #1c2333;
	--border: #4b5567;
	--border-strong: #273042;
	--link: #002a80;
	--link-hover: #000;
	--blue-600: #0b2f78;
	--blue-800: #061d4a;
}
html.is-contrast[data-scheme="dark"] {
	--bg: #000;
	--surface: #000;
	--paper: #05080f;
	--sunken: #0d1320;
	--text: #fff;
	--text-strong: #fff;
	--text-soft: #f1f5f9;
	--text-muted: #e2e8f0;
	--border: #94a3b8;
	--border-strong: #cbd5e1;
	--link: #cfe0ff;
	--link-hover: #fff;
	--accent: #cfe0ff;
}
html.is-contrast a:not(.btn):not(.service):not(.filter__item) { text-decoration: underline; }
html.is-contrast .card, html.is-contrast .widget, html.is-contrast .services, html.is-contrast .doc-list { border-width: 2px; }
html.is-contrast .hero, html.is-contrast .mandate { background: #000; }
html.is-contrast .hero__text, html.is-contrast .mandate__intro p { color: #fff; }
html.is-contrast .page-header::after, html.is-contrast .hero::before { display: none; }

/* 16. Dark mode details ----------------------------------------------------- */
:root[data-scheme="dark"] .brand:not(.brand--footer) .brand__seal,
:root[data-scheme="dark"] .brand--footer .brand__seal { filter: brightness(0) invert(1); }
:root[data-scheme="dark"] .card__media img,
:root[data-scheme="dark"] .article__featured img,
:root[data-scheme="dark"] .entry-content img { filter: brightness(0.94); }
:root[data-scheme="dark"] .entry-content [style*="background"]:not(img):not(iframe) { color: #16213a; }
:root[data-scheme="dark"] .entry-content [style*="color:"]:not([style*="background"]) { color: var(--text) !important; }
:root[data-scheme="dark"] .visit__map iframe,
:root[data-scheme="dark"] .widget__map { filter: brightness(0.85) contrast(1.05); }
:root[data-scheme="dark"] .hero,
:root[data-scheme="dark"] .mandate { background-color: #07122a; }
:root[data-scheme="dark"] .helpline { background: var(--blue-800); }
:root[data-scheme="dark"] .standard-footer { background: #050c1c; }
:root[data-scheme="dark"] .entry-content thead th { background: var(--blue-800) !important; }
:root[data-scheme="dark"] .notice-card { border: 1px solid var(--border); }
:root[data-scheme="dark"] .govbar__govph { color: #fff; }

/* 17. Print --------------------------------------------------------------- */
@media print {
	.govbar, .flagline, .nav, .masthead__actions, .search-panel, .sidebar, .to-top, .share, .post-navigation,
	.helpline, .agency-footer, .standard-footer__grid, .section--paper, .comments, .a11y-keys, .skip-link, .breadcrumbs { display: none !important; }
	.masthead { position: static; border: 0; }
	.page-header { background: none; padding: 0 0 1rem; border: 0; }
	.page-header::after { display: none; }
	.layout, .reading { display: block; padding: 0; }
	.standard-footer { background: none; color: #000; padding: 1rem 0 0; }
	.standard-footer a { color: #000; }
	.entry-content a::after { content: " (" attr(href) ")"; font-size: 0.8em; font-weight: 400; word-break: break-all; }
	body { font-size: 11pt; }
}
.nowrap { white-space: nowrap; }
.agenda__intro .btn { justify-self: start; }
/* Spam trap field: never shown, never focused. */
.b27-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
