/* =========================================================================
   PENRO SOUTH COTABATO — Joomla 5 Template
   Rebuilt to match the actual look of the live DENR regional/provincial
   sites: a plain white/light-gray chrome throughout. Color is NOT used as
   page-wide branding — it only appears in the agency logo itself, the blue
   quick-links tab bar, and the Transparency Seal artwork. Every "extra"
   section (hero, Officer's Corner, Featured Video, Press/Photo Releases,
   Services) is fully optional: if you don't add modules to those
   positions, the page renders exactly like the plain reference — nav,
   masthead, gray title band, optional blue tabs, content.
   Design tokens
   Palette:  ink-900 #16201C (body text) / ink-600, ink-400 (secondary text)
             surface #FFFFFF, bg #F4F5F6, border #DCE0E3
             gov-blue-700 #0B5E9E (tab bar / active), gov-blue-500 #1E73BE
             (links, hover) — this is the ONLY brand color used in chrome
             green-600 #2E7D32 — reserved for the agency seal artwork and
             the "leaf-vein rule" accent only, never full-section backgrounds
   Type:     display "Source Serif 4" (article/section headings only)
             body    "Public Sans" (everything else — nav, masthead, tabs)
             utility "IBM Plex Mono" (PST clock, dates, reference numbers)
   ========================================================================= */

:root {
	--ink-900: #16201C;
	--ink-600: #4B5A54;
	--ink-400: #8A968F;
	--surface: #FFFFFF;
	--bg:      #F4F5F6;
	--bg-band: #EEEEEE;
	--border:  #DDE1E3;

	--gov-blue-700: #0B5E9E;
	--gov-blue-500: #1E73BE;
	--gov-blue-100: #E7F1FA;

	--green-700: #1B5E20;
	--green-600: #2E7D32;
	--green-100: #E7F3E8;

	--font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
	--font-body: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
	--font-mono: "IBM Plex Mono", "Courier New", monospace;

	--base-size: 16px;
	--radius: 3px;
	--container: 1200px;
	--shadow-sm: 0 1px 2px rgba(0,0,0,.08);
	--shadow-md: 0 4px 16px rgba(0,0,0,.12);
}

/* ---------- Leaf-vein rule (signature element, used sparingly in content) - */
.leaf-rule {
	display: block; width: 72px; height: 10px; margin: 10px 0 0; background-repeat: no-repeat;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 10'><path d='M0 5 H72' stroke='%232E7D32' stroke-width='2'/><path d='M14 5 L20 1 M14 5 L20 9 M30 5 L36 1 M30 5 L36 9 M46 5 L52 1 M46 5 L52 9 M58 5 L64 1 M58 5 L64 9' stroke='%232E7D32' stroke-width='1.2' fill='none'/></svg>");
}
.leaf-rule.blue { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 10'><path d='M0 5 H72' stroke='%231E73BE' stroke-width='2'/><path d='M14 5 L20 1 M14 5 L20 9 M30 5 L36 1 M30 5 L36 9 M46 5 L52 1 M46 5 L52 9 M58 5 L64 1 M58 5 L64 9' stroke='%231E73BE' stroke-width='1.2' fill='none'/></svg>"); }

/* ---------- Reset / base ---------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-body); font-size: var(--base-size); color: var(--ink-900); background: var(--bg); line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: var(--gov-blue-700); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink-900); line-height: 1.2; margin: 0 0 .4em; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--gov-blue-500); outline-offset: 2px; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 2000; background: var(--ink-900); color: #fff; padding: 10px 16px; border-radius: 0 0 4px 0; }
.skip-link:focus { left: 0; }

/* ---------- Hidden accessibility shortcuts (focus-visible only) ------------ */
.visually-hidden-focusable { position: absolute; top: 0; left: 0; z-index: 3000; }
.a11y-shortcuts ul { list-style: none; margin: 0; padding: 0; }
.a11y-shortcuts a {
	position: absolute; left: -999px; top: -999px; background: var(--ink-900); color: #fff;
	padding: 8px 14px; font-size: 13px; white-space: nowrap;
}
.a11y-shortcuts a:focus { position: static; display: inline-block; }

/* ---------- Off-canvas mobile nav drawer ------------------------------------ */
.offcanvas-overlay {
	position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1990;
	opacity: 0; visibility: hidden; transition: opacity .2s ease;
}
.offcanvas-overlay.is-open { opacity: 1; visibility: visible; }
.offcanvas-drawer {
	position: fixed; top: 0; left: 0; bottom: 0; width: 300px; max-width: 85vw; background: var(--surface);
	z-index: 2000; transform: translateX(-100%); transition: transform .25s ease; overflow-y: auto;
	padding: 50px 0 20px; box-shadow: var(--shadow-md);
}
.offcanvas-drawer.is-open { transform: translateX(0); }
.offcanvas-close {
	position: absolute; top: 8px; right: 10px; background: none; border: none; font-size: 26px;
	cursor: pointer; color: var(--ink-900); line-height: 1;
}
.offcanvas-search { padding: 0 16px 14px; }
.offcanvas-search input[type="text"] { width: 100%; border: 1px solid var(--border); border-radius: var(--radius); padding: 9px 12px; }
.offcanvas-drawer ul { list-style: none; margin: 0; padding: 0; }
.offcanvas-drawer a { display: block; padding: 11px 18px; color: var(--ink-900); font-weight: 600; font-size: 14.5px; text-decoration: none; }
.offcanvas-drawer a:hover { background: var(--bg-band); }
.offcanvas-drawer ul ul { padding-left: 14px; }
.offcanvas-drawer ul ul a { font-weight: 500; font-size: 13.5px; }

/* ---------- Accessibility statement modal ----------------------------------- */
.a11y-modal {
	position: fixed; inset: 0; z-index: 3000; background: rgba(0,0,0,.5);
	display: flex; align-items: center; justify-content: center; padding: 20px;
	opacity: 0; visibility: hidden; transition: opacity .2s ease;
}
.a11y-modal.is-open { opacity: 1; visibility: visible; }
.a11y-modal-inner { background: var(--surface); border-radius: var(--radius); max-width: 560px; width: 100%; padding: 28px 26px; position: relative; max-height: 84vh; overflow-y: auto; }
.a11y-modal-inner h2 { font-size: 19px; margin-bottom: 14px; }
.a11y-modal-inner p { font-size: 14px; line-height: 1.7; color: var(--ink-600); }
.a11y-modal-close { position: absolute; top: 10px; right: 12px; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--ink-600); }

/* ---------- Accessibility dropdown (desktop nav) ---------------------------- */
.a11y-dropdown { position: relative; margin-left: 8px; }
.a11y-menu {
	display: none; position: absolute; top: 100%; right: 0; min-width: 220px; z-index: 60;
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
	box-shadow: var(--shadow-md); list-style: none; margin: 4px 0 0; padding: 6px 0;
}
.a11y-menu.is-open { display: block; }
.a11y-menu a { display: block; padding: 9px 16px; font-size: 13.5px; color: var(--ink-900); text-decoration: none; }
.a11y-menu a:hover { background: var(--gov-blue-100); color: var(--gov-blue-700); }
/* .top-nav ul { display: flex } below also matches this dropdown's <ul>
   since it's nested inside .top-nav, and wins on specificity (a class +
   an element beats a single class) — forcing it visible regardless of
   .is-open. Override explicitly, scoped to .top-nav, so it wins instead. */
.top-nav .a11y-menu { display: none; }
.top-nav .a11y-menu.is-open { display: block; }

/* ---------- Breadcrumbs -------------------------------------------------------- */
.breadcrumbs-bar { background: var(--surface); border-bottom: 1px solid var(--border); min-height: 4px; }
.breadcrumbs-bar .container { padding-top: 4px; padding-bottom: 4px; }
.breadcrumbs-bar ul, .breadcrumbs-bar ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: 12.5px; color: var(--ink-400); }
.breadcrumbs-bar li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--ink-400); }
.breadcrumbs-bar a { color: var(--ink-600); font-size: 12.5px; }

/* ---------- Back to top ------------------------------------------------------- */
.back-to-top {
	position: fixed; right: 20px; bottom: 20px; z-index: 500; width: 42px; height: 42px; border-radius: 50%;
	background: var(--gov-blue-700); color: #fff; border: none; cursor: pointer; display: flex;
	align-items: center; justify-content: center; box-shadow: var(--shadow-md);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--gov-blue-500); }
.back-to-top svg { width: 20px; height: 20px; }
.top-nav { background: var(--bg-band); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 900; }
.top-nav .container { display: flex; align-items: center; gap: 6px; padding: 0; min-height: 46px; }
.top-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; }
.top-nav .primary-items { flex: 1; }
.top-nav a { display: block; padding: 13px 16px; color: var(--ink-900); font-weight: 600; font-size: 14px; text-decoration: none; }
.top-nav a:hover { color: var(--gov-blue-700); text-decoration: none; }
.top-nav .govph-link { font-weight: 700; letter-spacing: .02em; }
.top-nav .nav-search { display: flex; align-items: center; margin-left: 6px; }
.top-nav .nav-search input[type="text"] {
	border: 1px solid var(--border); border-radius: var(--radius); padding: 7px 12px; font-size: 13.5px;
	width: 160px; font-family: var(--font-body); background: var(--surface);
}
.a11y-btn {
	width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--ink-900); background: var(--surface);
	display: flex; align-items: center; justify-content: center; cursor: pointer; margin-left: 10px; flex-shrink: 0;
}
.a11y-btn svg { width: 18px; height: 18px; }
.nav-toggle {
	display: none; background: none; border: 1px solid var(--border); border-radius: var(--radius);
	padding: 8px 10px; cursor: pointer; font-size: 20px; line-height: 1; margin-left: auto;
}

/* nested dropdown submenus */
.top-nav li, .aux-nav li { position: relative; }
/* Vertical separator + caret — classes added by JS at runtime (see main.js
   enhanceNav()), not guessed via CSS structural selectors, since Joomla's
   exact menu-module markup can vary by version/configuration. */
.top-nav .primary-items li.has-separator::before,
.aux-nav .container li.has-separator::before {
	content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
	width: 1px; height: 20px; background: var(--border);
}
.nav-caret { display: inline-block; font-size: 10px; color: var(--ink-400); }
/* Equal-width top-level columns, applied to the actual top-level <ul> the
   JS found at runtime (via .nav-top-flex) and its direct <li> children
   (via .nav-top-item) — not guessed by CSS structure. */
.nav-top-flex { width: 100%; }
.top-nav .primary-items .nav-top-item, .aux-nav .container .nav-top-item {
	flex: 1 1 0; text-align: center; min-width: 0;
}
.top-nav .primary-items .nav-top-item > a, .aux-nav .container .nav-top-item > a {
	white-space: normal; line-height: 1.3;
}
.top-nav ul ul, .aux-nav ul ul {
	display: none; position: absolute; top: 100%; left: 0; min-width: 230px; z-index: 50;
	background: var(--surface); border: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius);
	box-shadow: var(--shadow-md); padding: 6px 0; text-align: left;
}
.top-nav ul ul ul, .aux-nav ul ul ul { top: 0; left: 100%; }
.top-nav li:hover > ul, .aux-nav li:hover > ul,
.top-nav li:focus-within > ul, .aux-nav li:focus-within > ul { display: block; }
.top-nav ul ul a, .aux-nav ul ul a { padding: 9px 16px; font-size: 13.5px; font-weight: 500; text-align: left; }
.top-nav ul ul a:hover, .aux-nav ul ul a:hover { background: var(--gov-blue-100); }

/* ---------- Masthead (agency logo lockup + PST clock) ----------------------- */
.masthead { background: var(--surface); border-bottom: 1px solid var(--border); }
.masthead .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.masthead-logo { display: flex; align-items: center; gap: 16px; }
.masthead-logo img { height: 68px; width: 68px; flex-shrink: 0; }
.masthead-logo-img { width: 620px !important; height: auto !important; max-height: 190px; }
.masthead-text { line-height: 1.35; }
.masthead-text .mh-line1 { display: block; font-size: 13px; letter-spacing: .03em; color: var(--ink-600); }
.masthead-text .mh-line2 { display: block; font-size: 21px; font-weight: 700; font-family: var(--font-display); color: var(--ink-900); border-bottom: 1px solid var(--ink-900); padding-bottom: 2px; display: inline-block; }
.masthead-text .mh-line3 { display: block; font-size: 12.5px; font-style: italic; color: var(--ink-600); margin-top: 3px; }
.masthead-text .mh-line4 { display: block; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; font-weight: 600; color: var(--gov-blue-700); margin-top: 2px; }
.pst-clock { font-family: var(--font-body); font-size: 13px; color: var(--ink-900); text-align: right; line-height: 1.5; white-space: nowrap; }
.pst-clock .pst-label { display: block; color: var(--ink-600); }
.pst-clock .pst-time { font-weight: 600; }

/* ---------- Auxiliary navigation (secondary row, appears after banner) ----- */
.aux-nav { background: #2E9E44; }
.aux-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-start; }
.aux-nav a { display: block; padding: 15px 14px; color: #fff !important; font-weight: 700; font-size: 13.5px; text-decoration: none; }
.aux-nav a:hover { color: #fff !important; background: #278C3B; }
/* ID-based, belt-and-suspenders override: something else on this site is
   apparently ALSO using !important (Bootstrap does this in a few spots)
   with higher specificity than a plain class selector, which meant the
   !important rules above weren't actually winning for non-active items.
   An ID selector always outranks any number of classes, !important or
   not, so this is guaranteed to win regardless of what else is loaded. */
#auxNav a, #auxNav a * { color: #fff !important; }
#auxNav a:hover, #auxNav a:hover * { color: #fff !important; }
/* Confirmed via inspecting the live HTML: some top-level items are set up
   as non-clickable Joomla "Heading" menu items, which render as a plain
   <span class="mod-menu__heading"> — not an <a> at all — so the rules
   above never touched them. This targets that specific element too. */
#auxNav .mod-menu__heading {
	display: block; padding: 15px 14px; color: #fff !important; font-weight: 700; font-size: 13.5px;
}
.aux-nav .nav-caret { color: rgba(255,255,255,.85); }
.aux-nav .container li.has-separator::before { background: rgba(255,255,255,.3); }
/* Dropdown panel: green with white text, matching the reference site,
   instead of the white/dark-text style used by the main top nav's dropdowns. */
.aux-nav ul ul {
	background: #278C3B; border: none; box-shadow: var(--shadow-md);
}
.aux-nav ul ul a { color: #fff !important; }
#auxNav ul ul a, #auxNav ul ul a * { color: #fff !important; }
.aux-nav ul ul a:hover { background: #206E30; }

/* ---------- Plain page banner (title band on every page) ------------------- */
.page-banner { background: var(--bg-band); padding: 30px 0; }
.page-banner h1 { margin: 0; font-family: var(--font-body); font-weight: 800; font-size: clamp(22px, 3vw, 28px); color: var(--ink-900); }

/* ---------- Quick-links tab bar (optional, blue) ---------------------------- */
.quicklinks-tabs { background: var(--gov-blue-700); }
.quicklinks-tabs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.quicklinks-tabs li { flex: 1; min-width: 140px; border-right: 1px solid rgba(255,255,255,.25); text-align: center; }
.quicklinks-tabs li:last-child { border-right: none; }
.quicklinks-tabs a { display: block; padding: 14px 10px; color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; }
.quicklinks-tabs a:hover { background: var(--gov-blue-500); text-decoration: none; }

/* ---------- Hero carousel (fully optional — only if 'hero' modules exist) -- */
.hero { position: relative; overflow: hidden; color: #fff; background: #23282B; }
.hero-track { position: relative; min-height: 380px; }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .5s ease; display: flex; align-items: flex-end; }
.hero-slide.is-active { opacity: 1; visibility: visible; position: relative; }
.hero-slide::before {
	content: ""; position: absolute; inset: 0; background-image: var(--hero-bg, none);
	background-position: center; background-size: cover; background-repeat: no-repeat;
}
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.75) 100%); }
.hero-slide .hero-inner { position: relative; z-index: 2; padding: 64px 20px 50px; max-width: 760px; }
.hero .eyebrow { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: #CFE8FF; margin-bottom: 12px; display: block; }
.hero-slide h2 { color: #fff; font-size: clamp(24px, 4vw, 38px); margin-bottom: 12px; }
.hero p { font-size: 16px; color: #E7EEF2; max-width: 620px; }
.hero .hero-ctas { margin-top: 22px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-nav { position: absolute; bottom: 18px; right: 20px; display: flex; gap: 8px; z-index: 5; }
.hero-nav button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); background: rgba(0,0,0,.3); color: #fff; cursor: pointer; font-size: 14px; }
.hero-nav button:hover { background: rgba(0,0,0,.5); }
.hero-dots { position: absolute; bottom: 22px; left: 20px; display: flex; gap: 7px; z-index: 5; }
.hero-dots button { width: 8px; height: 8px; border-radius: 50%; border: none; background: rgba(255,255,255,.4); cursor: pointer; padding: 0; }
.hero-dots button.is-active { background: #fff; }

.btn { display: inline-block; padding: 11px 20px; border-radius: var(--radius); font-weight: 700; font-size: 14px; cursor: pointer; border: 2px solid transparent; text-decoration: none; }
.btn-primary { background: var(--gov-blue-500); color: #fff; }
.btn-primary:hover { background: var(--gov-blue-700); text-decoration: none; }
.btn-outline { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-outline:hover { border-color: #fff; text-decoration: none; }

/* ---------- Section shell -------------------------------------------------- */
.section { padding: 44px 0; }
.section-head { margin-bottom: 24px; max-width: 640px; }
.section-head .eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--gov-blue-700); font-weight: 600; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---------- Officer's/RED's Corner + Press Releases (home layout) ---------- */
.home-layout { display: grid; grid-template-columns: 300px 1fr; gap: 30px; align-items: start; }
.home-layout-full { grid-template-columns: 1fr; }
.home-sidebar { display: flex; flex-direction: column; gap: 20px; }
.officer-card {
	border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
	border: 1px solid var(--border); background: var(--surface);
}
.officer-card .officer-photo { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
.officer-card .officer-actions { display: grid; grid-template-columns: 1fr 1fr; }
.officer-card .officer-actions a {
	display: block; text-align: center; padding: 12px 8px; background: var(--green-700); color: #fff;
	font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
}
.officer-card .officer-actions a:hover { background: var(--green-600); text-decoration: none; }
.officer-card .officer-actions a + a { border-left: 1px solid rgba(255,255,255,.25); }
.seal-widget {
	display: flex; align-items: center; gap: 14px; border: 1px solid var(--green-600); border-radius: 10px;
	padding: 14px 16px; text-decoration: none; color: var(--ink-600); font-weight: 700; font-size: 14px;
	text-transform: uppercase; letter-spacing: .02em;
}
.seal-widget:hover { border-color: var(--gov-blue-500); background: var(--gov-blue-100); text-decoration: none; }
.seal-widget img { flex-shrink: 0; }
.seal-widget + .seal-widget { margin-top: 14px; }
/* Support for pasting old-site markup directly (link-box / nav-icon /
   other-links-container classes) without needing to reformat it into the
   .seal-widget pattern above — same visual result either way. */
.other-links-container { list-style: none; margin: 0; padding: 0; }
.other-links-container li { margin-bottom: 14px; }
.other-links-container li:last-child { margin-bottom: 0; }
.other-links-container a { display: block; text-decoration: none; }
.other-links-container .link-box {
	display: flex; align-items: center; gap: 14px; border: 1px solid var(--green-600); border-radius: 10px;
	padding: 14px 16px; color: var(--ink-600); font-weight: 700; font-size: 14px;
	text-transform: uppercase; letter-spacing: .02em;
}
.other-links-container .link-box:hover { border-color: var(--gov-blue-500); background: var(--gov-blue-100); }
.other-links-container .nav-icon { flex-shrink: 0; width: 40px; height: 40px; object-fit: contain; }
.other-links-container .clear { display: none; }
.home-main .item, .home-main .item + .item { margin-bottom: 30px; padding-bottom: 30px; border-bottom: 1px solid var(--border); }
.home-main .item:last-child { border-bottom: none; }
.home-main .item::after { content: ""; display: block; clear: both; }
.home-main h2, .home-main h3 { font-size: 19px; margin-bottom: 6px; }
.home-main h2 a, .home-main h3 a { color: var(--gov-blue-700); }
.home-main time, .home-main .item > .small { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-400); }
/* Float-based thumbnail layout: targets any <img> inside .home-main
   directly — NOT scoped through a ".item" (or similar) wrapper class,
   since that assumes Joomla wraps each article in a specific class name
   that may not match what a given Joomla version actually outputs (this
   silently matched nothing before, the same trap the nav caret hit).
   Floating the image lets the title/date/intro text wrap naturally to
   its left regardless of the surrounding markup. */
/* Float-based thumbnail layout — Home page ONLY (scoped via body.is-home,
   not just .home-main, since that wrapper class is reused as the general
   main-content area on every page — this rule was previously affecting
   every article's images sitewide by mistake, not just the homepage). */
body.is-home .home-main img {
	float: right !important; width: 38% !important; height: auto !important;
	margin: 0 0 12px 20px !important; border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover;
}
body.is-home .home-main::after { content: ""; display: block; clear: both; }
.home-main .readmore a { color: var(--green-700); font-weight: 700; font-size: 13.5px; }
.press-heading {
	display: block; font-family: var(--font-body); font-weight: 800; font-size: 19px; letter-spacing: .02em;
	text-transform: uppercase; color: var(--green-700); border-bottom: 2px solid var(--green-700); padding-bottom: 10px;
}

/* ---------- Featured Video card (optional, stacks in the sidebar) ---------- */
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: stretch; }
.video-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.video-card .video-frame { position: relative; aspect-ratio: 16/9; background: #23282B; border-radius: var(--radius); overflow: hidden; margin-bottom: 12px; }
.video-card .video-frame iframe { width: 100%; height: 100%; border: 0; }
.video-card h3 { font-size: 16px; margin-bottom: 4px; }

/* ---------- Content layout (Press Releases / plain content + sidebar) ------- */
.news-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; align-items: start; }
.news-layout-full { grid-template-columns: 1fr; }
.news-feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.news-feature-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.news-feature-card .body { padding: 18px 20px 22px; }
.news-tag { display: inline-block; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--gov-blue-700); background: var(--gov-blue-100); padding: 3px 9px; border-radius: 3px; margin-bottom: 8px; }
.news-date { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-400); }
.sidebar-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 18px 4px; }
.sidebar-panel h3 { font-size: 14.5px; text-transform: uppercase; letter-spacing: .04em; font-family: var(--font-body); font-weight: 700; color: var(--gov-blue-700); margin-bottom: 10px; }
.sidebar-panel ul { list-style: none; margin: 0 0 14px; padding: 0; }
.sidebar-panel li { padding: 9px 0; border-top: 1px solid var(--border); font-size: 14px; }
.sidebar-panel li:first-child { border-top: none; }

/* ---------- Services grid (optional) ---------------------------------------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.service-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); transition: box-shadow .15s ease, transform .15s ease; }
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.service-card .icon { width: 42px; height: 42px; border-radius: 50%; background: var(--green-100); color: var(--green-700); display: flex; align-items: center; justify-content: center; font-size: 19px; margin-bottom: 12px; }
.service-card h3 { font-size: 16.5px; margin-bottom: 6px; }
.service-card p { font-size: 14.5px; color: var(--ink-600); margin: 0; }

/* ---------- Photo Releases / gallery (optional) ----------------------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.gallery-grid figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.gallery-grid figure:hover img { transform: scale(1.06); }
.gallery-grid figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px; font-size: 12.5px; color: #fff; background: linear-gradient(180deg, transparent, rgba(0,0,0,.75)); }

/* ---------- Footer ------------------------------------------------------------------ */
.site-footer { background: #1D2226; color: #C7CDD1; }
.footer-columns { display: grid; grid-template-columns: 1.6fr 1fr 1.4fr 1fr; gap: 28px; padding: 40px 0 26px; }
.footer-about { display: flex; flex-direction: column; gap: 12px; }
.footer-seals { display: flex; gap: 10px; align-items: center; }
.footer-seals img { height: 44px; width: 44px; }
.footer-mission { font-size: 13.5px; line-height: 1.7; color: #B9C0C4; margin: 0; }
.footer-columns h4 { color: #fff; font-family: var(--font-body); font-size: 13.5px; text-transform: uppercase; letter-spacing: .05em; }
.footer-columns ul { list-style: none; margin: 0; padding: 0; }
.footer-columns li { margin-bottom: 8px; font-size: 13.5px; }
.footer-columns a { color: #C7CDD1; }
.footer-columns a:hover { color: #fff; }
.footer-region-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.footer-region-grid ul { margin: 0; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 0; font-size: 12.5px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-legal .legal-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-legal a { color: #C7CDD1; }
.footer-legal a:hover { color: #fff; }

/* ---------- Responsive ----------------------------------------------------------------- */
@media (max-width: 960px) { .footer-columns { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
@media (max-width: 860px) { .news-layout, .split-layout, .home-layout { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
	.nav-toggle { display: inline-flex; align-items: center; gap: 6px; }
	.top-nav .primary-items { display: none; }
	.top-nav .nav-search { display: none; }
	.aux-nav ul { flex-direction: column; }
	.quicklinks-tabs ul { flex-direction: column; }
	.quicklinks-tabs li { border-right: none; border-bottom: 1px solid rgba(255,255,255,.25); }
	.pst-clock { display: none; }
	.masthead-logo img { height: 52px; width: 52px; }
	.masthead-logo-img { width: 320px !important; max-height: 100px; }
	.hero-track { min-height: 300px; }
	body.is-home .home-main img {
		float: none !important; width: 100% !important; margin: 0 0 14px 0 !important;
	}
}

/* ---------- Print ------------------------------------------------------------------------ */
@media print {
	.top-nav, .aux-nav, .nav-toggle, .quicklinks-tabs, .hero-ctas, .hero-nav, .hero-dots { display: none; }
}

/* ---------- High-contrast mode (toggled by the accessibility button) ------- */
body.high-contrast { background: #000; color: #fff; }
body.high-contrast .top-nav, body.high-contrast .masthead, body.high-contrast .aux-nav,
body.high-contrast .page-banner, body.high-contrast .section-alt,
body.high-contrast .sidebar-panel, body.high-contrast .service-card,
body.high-contrast .officer-card, body.high-contrast .video-card,
body.high-contrast .news-feature-card, body.high-contrast .site-footer {
	background: #000 !important; color: #fff !important; border-color: #fff !important;
}
body.high-contrast a { color: #FFEB3B !important; }
body.high-contrast h1, body.high-contrast h2, body.high-contrast h3, body.high-contrast h4 { color: #fff !important; }
body.high-contrast .masthead-text .mh-line2 { border-color: #fff; }
