/*
Theme Name: SOU
Description: Sodobna, pregledna predloga Skupne občinske uprave.
Version: 0.3.9
Author: SOU theme contributors
Tested up to: 7.1
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: sou
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Domain Path: /languages
*/

:root {
	--ink: #172c49;
	--navy: #142e53;
	--navy-deep: #0e2342;
	--blue: #2457ba;
	--blue-hover: #164393;
	--pale: #eef3fa;
	--muted: #53637a;
	--line: #dce3ec;
	--warm: #e5b77b;
	--white: #fff;
	--font: "Segoe UI", arial, helvetica, sans-serif;
}

* {
	box-sizing: border-box;
}

html {
	scroll-padding-top: 24px;
}

body {
	margin: 0;
	background: #fff;
	color: var(--ink);
	font: 1rem/1.7 var(--font);
	-webkit-font-smoothing: antialiased;
}

button,
input {
	font: inherit;
}

button,
summary {
	cursor: pointer;
}

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

a:hover {
	text-decoration-thickness: 2px;
}

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

svg {
	max-width: 100%;
}

h1,
h2,
h3,
p {
	margin-top: 0;
}

h1,
h2,
h3 {
	line-height: 1.16;
	letter-spacing: -0.035em;
	overflow-wrap: anywhere;
}

h2 {
	font-size: clamp(1.8rem, 2.8vw, 2.55rem);
	font-weight: 650;
}

h3 {
	font-size: 1.2rem;
	font-weight: 600;
}

p {
	margin-bottom: 1.3rem;
}

[hidden] {
	display: none !important;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
	outline: 3px solid #a74600;
	outline-offset: 4px;
}

main:focus {
	outline: none;
}

.wrap {
	width: min(1240px, calc(100% - 88px));
	margin-inline: auto;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: fixed;
	left: 1rem;
	top: -100px;
	z-index: 1000;
	padding: 14px 22px;
	background: #fff;
	color: var(--navy);
	font-weight: 700;
	border: 2px solid var(--navy);
}

.skip-link:focus {
	top: 1rem;
}

/* A civic masthead: the five original coats of arms remain equally
 * prominent. */
.utility {
	background: #f0f3f8;
	border-bottom: 1px solid #e4e9f0;
	font-size: 0.75rem;
	color: #344760;
}

.utility-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	min-height: 35px;
}

.utility-inner > a {
	text-decoration: none;
}

.contact-list {
	display: flex;
	gap: 28px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.contact-list a {
	text-decoration: none;
}

.brand-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 35px;
	min-height: 118px;
	padding-block: 18px;
}

.brand {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px;
	text-decoration: none;
	min-width: 0;
}

.brand-mark {
	font-size: 2.85rem;
	line-height: 1;
	letter-spacing: -0.085em;
	font-weight: 800;
	color: var(--navy);
}

.brand-mark > span {
	color: var(--blue);
}

.brand-name {
	font-size: 0.92rem;
	line-height: 1.4;
	border-left: 1px solid #cdd6e4;
	padding-left: 20px;
	color: #344760;
	white-space: nowrap;
}

.brand-name strong {
	font-weight: 650;
	color: var(--ink);
}

.crest-strip {
	display: flex;
	gap: 34px;
	align-items: flex-start;
}

.crest-strip a {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 6px;
	font-size: 0.72rem;
	font-weight: 600;
	text-decoration: none;
	min-width: 64px;
}

.crest-strip img {
	display: block;
	object-fit: contain;
	width: 46px;
	height: 61px;
}

.navigation {
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	background: #fff;
	position: relative;
	z-index: 20;
}

.nav-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 22px;
	min-height: 62px;
}

.nav-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 30px;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.9rem;
	font-weight: 600;
}

.nav-display .snet-display {
	--snet-text-color: var(--navy);
	--snet-accent: var(--blue);
}

@media (max-width: 1050px) {

	.nav-display .snet-display-trigger {
		margin-block: 8px;
	}
}

.nav-list [aria-current="page"] {
	color: var(--blue);
	box-shadow: inset 0 -3px var(--blue);
}

.nav-group {
	position: relative;
}

.nav-group > summary {
	list-style: none;
}

.nav-group > summary::-webkit-details-marker {
	display: none;
}

.nav-group > summary > .menu-chevron {
	width: 6px;
	height: 6px;
	flex: none;
	border-right: 1.5px solid currentcolor;
	border-bottom: 1.5px solid currentcolor;
	transform: translateY(-2px) rotate(45deg);
	margin-left: 1px;
}

.nav-group[open] > summary > .menu-chevron {
	transform: translateY(1px) rotate(225deg);
}

.sub-menu {
	position: absolute;
	left: -18px;
	top: 100%;
	z-index: 30;
	background: #fff;
	min-width: 295px;
	border: 1px solid var(--line);
	border-top: 3px solid var(--blue);
	box-shadow: 0 15px 35px #142e531c;
	list-style: none;
	padding: 10px;
	margin: 0;
}

.sub-menu a {
	display: block;
	text-decoration: none;
	padding: 10px 12px;
	font-weight: 500;
}

.header-search-slot {
	display: contents;
}

.header-search {
	display: flex;
	align-items: center;
	max-width: 240px;
	background: #f3f6fa;
	border-radius: 5px;
	padding-left: 10px;
}

.header-search input {
	min-width: 0;
	width: 100%;
	border: 0;
	background: none;
	color: var(--ink);
	font-size: 0.84rem;
	padding: 8px;
}

.header-search input::placeholder {
	color: var(--muted);
	opacity: 1;
}

.header-search button {
	display: grid;
	place-items: center;
	min-width: 44px;
	min-height: 42px;
	background: none;
	border: 0;
	color: var(--blue);
}

.nav-search .header-search {
	width: 100%;
	max-width: none;
	margin-block: 10px;
}

.menu-toggle {
	display: flex;
	align-items: center;
	gap: 22px;
	min-height: 44px;
	padding: 8px 14px;
	background: #fff;
	border: 1px solid #a7b8d0;
	color: var(--navy);
	border-radius: 4px;
}

/* Map-led introduction, with a distinct light service strip below. */
.hero {
	position: relative;
	isolation: isolate;
	color: #fff;
	background: var(--navy-deep);
	overflow: hidden;
}

.hero::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 0;
	background: radial-gradient(ellipse at 84% 25%, #2c548b 0, transparent 58%), linear-gradient(105deg, #102443, #17365d);
	pointer-events: none;
}

.hero-inner {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	align-items: center;
	gap: 54px;
	min-height: 410px;
	padding-block: 36px 50px;
}

.hero-copy {
	position: relative;
	z-index: 2;
}

.eyebrow {
	margin: 0 0 13px;
	color: var(--blue);
	font-size: 0.72rem;
	font-weight: 650;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	line-height: 1.6;
}

.hero .eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	color: #d3deee;
	font-size: 0.64rem;
	letter-spacing: 0.09em;
	margin-bottom: 23px;
}

.hero h1 {
	font-size: clamp(2.8rem, 4.25vw, 4.1rem);
	line-height: 1.1;
	font-weight: 650;
	letter-spacing: -0.045em;
	margin: 0 0 18px;
}

.hero h1 em {
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 400;
	color: #bbd2f6;
	font-style: italic;
	letter-spacing: -0.035em;
}

.hero-description {
	font-size: 1rem;
	color: #d6e1f0;
	line-height: 1.65;
	margin: 0 0 25px;
}

.hero-actions {
	display: flex;
	gap: 27px;
	align-items: center;
	flex-wrap: wrap;
}

.button {
	display: inline-flex;
	justify-content: space-between;
	align-items: center;
	gap: 45px;
	padding: 12px 22px;
	min-height: 49px;
	background: var(--blue);
	color: #fff;
	border: 1px solid transparent;
	border-radius: 4px;
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 650;
}

.button:hover {
	background: var(--blue-hover);
}

.hero .button {
	background: #fff;
	color: var(--navy);
}

.hero .button:hover {
	background: #e8f0ff;
}

.button > span {
	font-size: 1.2rem;
}

.hero-secondary {
	display: flex;
	align-items: center;
	gap: 16px;
	color: #edf3fd;
	font-size: 0.87rem;
	text-decoration: none;
}

.hero-secondary:hover {
	text-decoration: underline;
}

.hero-geography {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	height: 330px;
}

.map-orbit {
	position: absolute;
	width: 325px;
	height: 325px;
	left: 50%;
	top: 46%;
	transform: translate(-50%, -50%);
	border: 1px solid #6688b04a;
	border-radius: 50%;
	box-shadow: 0 0 0 36px #6384ad0b, 0 0 0 37px #6b8ab41c, 0 0 0 76px #7399c608, 0 0 0 77px #6b8ab412;
}

.map-orbit::after {
	content: "";
	position: absolute;
	inset: -70px;
	border-radius: 50%;
	background-image: radial-gradient(#8099b7 1px, transparent 1px);
	background-size: 20px 20px;
	opacity: 0.13;
}

.hero-map {
	width: 380px;
	height: 380px;
	object-fit: contain;
	position: relative;
	z-index: 1;
	filter: drop-shadow(0 18px 25px #071b3955);
	transform: rotate(-5deg);
}

.interactive-map {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}

.interactive-map a {
	cursor: pointer;
	outline: none;
}

.interactive-map a path {
	transition: fill 0.15s, stroke 0.15s;
}

.interactive-map a:hover path,
.interactive-map a:focus-visible path {
	fill: #fff;
	stroke: #142e53;
	stroke-width: 5;
	paint-order: stroke fill;
}

.interactive-map text {
	pointer-events: none;
}

.home-source .interactive-map {
	max-width: 300px;
	margin-inline: auto;
}

@media (forced-colors: active) {

	.interactive-map a path {
		fill: Canvas;
		stroke: LinkText;
	}

	.interactive-map a:focus-visible path {
		fill: Highlight;
		stroke: HighlightText;
	}

	.interactive-map text {
		fill: CanvasText;
	}
}

.map-caption {
	display: flex;
	align-items: center;
	gap: 12px;
	position: absolute;
	bottom: -20px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	white-space: nowrap;
	font-size: 0.65rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #d2e0f4;
}

.map-caption-line {
	width: 25px;
	height: 1px;
	background: #9db7dc;
}

.map-caption strong {
	font-size: 1.4rem;
	color: var(--warm);
	font-weight: 400;
	border-left: 1px solid #5e7899;
	padding-left: 15px;
	line-height: 1;
}

.quick-access {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	position: relative;
	z-index: 3;
	margin-top: -1px;
	background: #fff;
	border: 1px solid var(--line);
	border-top: 4px solid var(--blue);
	box-shadow: 0 8px 22px #1c3b6410;
}

.quick-card {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 23px 25px;
	text-decoration: none;
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.45;
	min-height: 101px;
	min-width: 0;
	border-right: 1px solid var(--line);
}

.quick-card:last-child {
	border-right: 0;
}

.quick-card:hover {
	background: #f0f5fc;
}

.quick-icon {
	color: var(--blue);
	display: grid;
	place-items: center;
	flex-shrink: 0;
}

.line-icon {
	display: block;
	width: 28px;
	height: 28px;
}

/* A differentiated layout for services, news, and the institutional
 * description. */
.services {
	padding-block: 51px 58px;
	scroll-margin-top: 25px;
}

.section-heading {
	display: flex;
	justify-content: space-between;
	align-items: end;
	gap: 25px;
	margin-bottom: 25px;
}

.section-heading h2 {
	margin: 0;
}

.section-heading .eyebrow {
	margin-bottom: 6px;
}

.section-note {
	font-size: 0.78rem;
	color: var(--muted);
	padding-bottom: 5px;
}

.service-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.service-card {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) 24px;
	align-items: center;
	gap: 16px;
	min-height: 114px;
	border: 1px solid var(--line);
	border-radius: 5px;
	padding: 24px;
	text-decoration: none;
	box-shadow: 0 3px 7px #1b325303;
	transition: background 0.16s, border-color 0.16s, box-shadow 0.16s;
}

.service-card:hover {
	background: #f5f8fe;
	border-color: #7698ce;
	box-shadow: 0 5px 18px #1839660a;
}

.service-icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 48px;
	color: #28579a;
}

.service-icon .line-icon {
	width: 34px;
	height: 34px;
}

.service-card h3 {
	font-size: 1.05rem;
	line-height: 1.4;
	margin: 0;
	letter-spacing: -0.02em;
}

.news-section {
	background: var(--pale);
	border-block: 1px solid var(--line);
	padding-block: 48px;
}

.news-layout {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 75px;
	align-items: start;
}

.news-intro h2 {
	font-size: 2.7rem;
	line-height: 1.13;
	margin-bottom: 28px;
}

.text-link {
	display: inline-flex;
	gap: 25px;
	align-items: center;
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--blue);
	text-decoration: none;
	padding-block: 7px;
}

.text-link:hover {
	text-decoration: underline;
}

.text-link > span {
	font-size: 1.35rem;
}

.news-grid {
	display: grid;
	gap: 0;
}

.news-card {
	display: grid;
	grid-template-columns: 70px minmax(0, 1fr) 24px;
	gap: 26px;
	align-items: center;
	border-bottom: 1px solid #cbd7e7;
	padding: 20px 0;
	position: relative;
}

.news-card:first-child {
	padding-top: 0;
}

.news-card:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.news-date {
	display: flex;
	flex-direction: column;
	align-items: center;
	border-right: 1px solid #c4d0e0;
	padding-right: 20px;
	color: var(--blue);
	font-variant-numeric: tabular-nums;
	line-height: 1.2;
}

.news-card h3 {
	font-size: 1rem;
	line-height: 1.6;
	margin: 0;
	font-weight: 650;
	letter-spacing: 0.01em;
}

.card-arrow {
	font-size: 1.45rem;
	color: var(--blue);
}

.about-section {
	padding-block: 52px 45px;
}

.home-source > .wp-block-columns {
	display: grid;
	grid-template-columns: 1.45fr 0.85fr;
	gap: 95px;
	align-items: center;
	margin: 0;
}

.home-source h2 {
	font-size: 2.15rem;
	line-height: 1.2;
	max-width: 480px;
	margin-top: 0 !important;
	margin-bottom: 22px;
}

.home-source p {
	color: #4b5c72;
	max-width: 630px;
	font-size: 0.97rem;
}

.home-source .wp-block-list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px 28px;
	list-style: none;
	padding: 0;
	margin: 20px 0 0;
}

.home-source .wp-block-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 20px;
	width: 5px;
	height: 5px;
	background: var(--blue);
}

.home-source .wp-block-column:nth-child(2) {
	background: #f4f7fb;
	border: 1px solid var(--line);
	padding: 18px;
	border-radius: 6px;
	text-align: center;
}

.svg-wrapper {
	max-width: 235px;
	margin-inline: auto;
}

.municipality-map {
	width: 100%;
	display: block;
}

.entry-content .acts {
	font-size: clamp(16.293px, 1.018rem + (1vw - 3.2px) *0.68, 25px);
}

.entry-content .sou-predpisi-divider {
	background-color: #009847;
	color: #009847;
}

.municipality-links {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 15px;
	list-style: none;
	margin: 38px 0 0 !important;
	padding: 25px 0 0 !important;
	border-top: 1px solid var(--line);
}

.municipality-links a {
	display: flex;
	align-items: center;
	gap: 13px;
	text-decoration: none;
	font-size: 0.83rem;
	color: var(--ink);
	font-weight: 600;
}

.municipality-links img {
	width: 25px;
	height: 34px;
	object-fit: contain;
}

/* Subpages use the same identity, with generous reading width and clear
 * documents. */
.page-banner {
	background: linear-gradient(110deg, #eaf0fa, #f6f8fc);
	border-bottom: 1px solid #d7e1ef;
	padding: 25px 0 36px;
	position: relative;
}

.page-banner::after {
	content: "";
	position: absolute;
	width: 75px;
	height: 4px;
	bottom: -1px;
	left: max(44px, calc((100% - 1240px)/2));
	background: var(--blue);
}

.breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 11px;
	line-height: 1.5;
	margin-bottom: 20px;
	font-size: 0.78rem;
	color: #536982;
}

.breadcrumb a {
	color: #2c5389;
	padding-block: 3px;
}

.page-banner h1 {
	font-size: clamp(2rem, 3.7vw, 3.1rem);
	font-weight: 650;
	max-width: 1000px;
	margin: 0;
	line-height: 1.2;
}

.page-banner p {
	margin: 15px 0 0;
}

.page-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 270px;
	gap: 75px;
	padding-block: 47px 65px;
	align-items: start;
}

.page-main {
	min-width: 0;
}

.page-sidebar {
	border: 1px solid var(--line);
	border-top: 4px solid var(--blue);
	border-radius: 4px;
	padding: 25px;
	background: #f6f8fc;
}

.page-sidebar h2 {
	font-size: 1.3rem;
	margin: 0 0 18px;
}

.page-sidebar .eyebrow {
	font-size: 0.64rem;
	margin-bottom: 9px;
}

.page-sidebar a {
	display: flex;
	justify-content: space-between;
	gap: 14px;
	padding: 13px 0;
	border-bottom: 1px solid var(--line);
	font-size: 0.9rem;
	line-height: 1.5;
	text-decoration: none;
}

.entry-content {
	overflow-wrap: anywhere;
}

.entry-content p,
.entry-content li {
	line-height: 1.85;
}

.entry-content h2 {
	font-size: 1.7rem;
	margin-top: 2.3rem;
}

.entry-content h3 {
	font-size: 1.4rem;
	margin-top: 1.8rem;
}

.entry-content h4 {
	font-size: 1.1rem;
}

.entry-content a {
	color: #1f4f9d;
}

.entry-content figure {
	margin: 1.5rem 0;
}

.entry-content figcaption {
	font-size: 0.84rem;
	color: var(--muted);
}

.entry-content img {
	height: auto !important;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.94rem;
	line-height: 1.65;
}

.entry-content th,
.entry-content td {
	padding: 14px 15px;
	text-align: left;
	border-bottom: 1px solid var(--line);
	vertical-align: top;
}

.entry-content th {
	background: #eaf0fa;
	color: #234b84;
	font-weight: 650;
}

.entry-content tr:nth-child(even) {
	background: #f7f9fc;
}

.entry-content .wp-block-table {
	overflow-x: auto;
}

:is(#tablepress-1,.sou-staff-table table) {
	table-layout: fixed;
}

:is(#tablepress-1,.sou-staff-table table) th:nth-child(1) {
	width: 30%;
}

:is(#tablepress-1,.sou-staff-table table) th:nth-child(2) {
	width: 48%;
}

:is(#tablepress-1,.sou-staff-table table) th:nth-child(3) {
	width: 22%;
}

:is(#tablepress-1,.sou-staff-table table) td:last-child {
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.entry-content .wp-block-file {
	border: 1px solid var(--line);
	border-left: 3px solid var(--blue);
	border-radius: 3px;
	background: #f7f9fd;
	padding: 18px 20px;
	margin: 16px 0;
	line-height: 1.7;
}

.entry-content [class~="wp-block-file__button"] {
	display: inline-block;
	margin: 8px 0 8px 12px;
	padding: 7px 14px;
	background: var(--blue);
	color: #fff;
	border-radius: 3px;
	text-decoration: none;
	font-size: 0.82rem;
}

.entry-content [class~="wp-block-file__embed"] {
	display: none;
}

.post-date {
	font-size: 0.84rem;
	color: var(--muted);
}

.archive-list article {
	padding: 27px 0;
	border-bottom: 1px solid var(--line);
}

.archive-list article:first-child {
	padding-top: 0;
}

.archive-list h2 {
	font-size: 1.35rem;
	line-height: 1.5;
	margin-bottom: 0;
}

.archive-list .post-date {
	margin-bottom: 10px;
}

.archive-list .archive-excerpt {
	margin: 1rem 0 0.6rem;
	color: var(--muted);
	font-size: 0.96rem;
	line-height: 1.8;
	overflow-wrap: anywhere;
	max-width: 68ch;
}

.archive-read-more {
	display: inline-flex;
	align-items: center;
	gap: 1.2rem;
	min-height: 44px;
	color: var(--blue);
	font-size: 0.86rem;
	font-weight: 650;
	text-underline-offset: 4px;
}

.archive-read-more > span[aria-hidden] {
	font-size: 1.15rem;
}

.news-months ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.news-months li {
	margin: 0;
	border-bottom: 1px solid var(--line);
}

.home-source .wp-block-list li {
	padding: 8px 0 8px 17px;
	border-bottom: 1px solid var(--line);
	position: relative;
	font-size: 0.9rem;
}

.news-months li:last-child {
	border-bottom: 0;
}

.news-months .all-news {
	margin-top: 1rem;
	border-top: 1px solid var(--line);
	padding-top: 1rem;
	font-weight: 650;
	color: var(--blue);
}

.pagination .nav-links {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 30px;
}

.page-numbers {
	padding: 8px 15px;
	border: 1px solid var(--line);
	border-radius: 3px;
}

.page-numbers.current {
	background: var(--blue);
	color: #fff;
}

/* Original photographs form a simple documentary ribbon above the footer. */
.site-footer {
	background: var(--navy-deep);
	color: #fff;
	padding: 30px 0 23px;
}

.legacy-gallery {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	padding-bottom: 37px;
}

.legacy-gallery a {
	display: block;
	border-radius: 4px;
	overflow: hidden;
	border: 1px solid #5b719455;
}

.legacy-gallery img {
	display: block;
	width: 100%;
	aspect-ratio: 2/1;
	object-fit: cover;
	transition: opacity 0.15s;
}

.legacy-gallery a:hover img {
	opacity: 0.85;
}

.footer-top {
	display: flex;
	justify-content: space-between;
	gap: 45px;
	padding: 0 0 34px;
	align-items: start;
}

.footer-brand {
	font-size: 1.85rem;
	font-weight: 550;
	line-height: 1.3;
	letter-spacing: -0.04em;
	text-decoration: none;
}

.footer-brand > span {
	color: var(--warm);
}

.page-sidebar a > span {
	color: var(--blue);
}

.news-intro h2 > span {
	color: var(--blue);
}

.news-date > span:last-child {
	font-size: 0.66rem;
	color: #465d7c;
	white-space: nowrap;
	margin-top: 4px;
}

.news-date > span:first-child {
	font-size: 2.15rem;
	font-weight: 500;
	letter-spacing: -0.04em;
}

.service-card > span:last-child {
	color: #647d9d;
	font-size: 1.3rem;
}

.quick-card > span:last-child {
	color: var(--blue);
	font-size: 1.3rem;
}

.quick-card > span:nth-child(2) {
	flex: 1;
	overflow-wrap: anywhere;
}

.hero .eyebrow > span {
	width: 22px;
	height: 2px;
	background: var(--warm);
	flex-shrink: 0;
}

.municipality-links a > span:last-child {
	margin-left: auto;
	color: var(--blue);
	font-size: 1.2rem;
}

.crest-strip a:hover span {
	text-decoration: underline;
}

.municipality-links a:hover > span:nth-child(2) {
	text-decoration: underline;
}

.footer-top p {
	color: #c4d3e9;
	font-size: 0.88rem;
	line-height: 1.7;
	margin: 12px 0 0;
}

.footer-contact {
	min-width: 0;
	max-width: 100%;
	overflow-wrap: anywhere;
}

.footer-contact h2 {
	font-size: 0.7rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-weight: 650;
	margin: 0 0 15px;
	color: #c8d8ee;
}

.home-source .wp-block-column:nth-child(2) h2 {
	font: 650 0.65rem/1.5 var(--font);
	text-transform: uppercase;
	letter-spacing: 0.17em;
	color: var(--muted);
	margin-bottom: 8px;
	max-width: none;
}

.footer-contact .contact-list {
	flex-direction: column;
	gap: 5px;
	font-size: 0.9rem;
}

.footer-bottom {
	display: flex;
	gap: 30px;
	justify-content: space-between;
	border-top: 1px solid #3b526f;
	padding-top: 22px;
	color: #c2d1e6;
	font-size: 0.7rem;
}

.footer-bottom nav {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.footer-bottom a {
	text-decoration: none;
}

.news-months li a {
	padding: 0.7rem 0.5rem;
	min-height: 44px;
	border-radius: 3px;
}

.archive-list h2 a {
	text-decoration: none;
}

.news-card h3 a {
	text-decoration: none;
}

.nav-list > li > a,
.nav-group > summary {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 18px 0;
	min-height: 61px;
	text-decoration: none;
}

.entry-content .wp-block-file a {
	font-weight: 600;
}

.page-sidebar a:hover {
	text-decoration: underline;
	color: var(--blue);
}

.page-sidebar a:last-child {
	border: 0;
}

.hero a:focus-visible,
.site-footer a:focus-visible {
	outline-color: #f0c88e;
}

.sub-menu a:hover {
	background: var(--pale);
	color: var(--blue);
}

.contact-list a:hover {
	text-decoration: underline;
}

.utility-inner > a:hover {
	text-decoration: underline;
}

.footer-bottom a:hover {
	text-decoration: underline;
}

.news-months li a:hover {
	background: #e7eef9;
}

.archive-list h2 a:hover {
	text-decoration: underline;
}

.news-card h3 a:hover {
	text-decoration: underline;
}

.nav-list > li > a:hover,
.nav-group > summary:hover {
	color: var(--blue);
}

@media (min-width: 1600px) {

	.hero-inner {
		min-height: 445px;
	}

	.hero h1 {
		font-size: 4.35rem;
	}

	.hero-map {
		width: 410px;
		height: 410px;
	}
}

@media (max-width: 1100px) {

	.wrap {
		width: calc(100% - 56px);
	}

	.crest-strip {
		gap: 22px;
	}

	.brand-name {
		font-size: 0.8rem;
		padding-left: 16px;
	}

	.brand-mark {
		font-size: 2.5rem;
	}

	.brand {
		gap: 16px;
	}

	.nav-list {
		gap: 22px;
	}

	.hero-inner {
		gap: 25px;
		grid-template-columns: 1.25fr 1fr;
	}

	.hero h1 {
		font-size: 3.25rem;
	}

	.hero-map {
		width: 330px;
		height: 330px;
	}

	.map-orbit {
		width: 260px;
		height: 260px;
	}

	.quick-card {
		padding: 20px 17px;
		gap: 10px;
		font-size: 0.85rem;
	}

	.quick-card .line-icon {
		width: 24px;
		height: 24px;
	}

	.service-card {
		padding: 20px 16px;
		gap: 10px;
		grid-template-columns: 35px minmax(0, 1fr) 20px;
	}

	.service-card h3 {
		font-size: 0.95rem;
	}

	.service-icon {
		width: 35px;
	}

	.service-icon .line-icon {
		width: 29px;
		height: 29px;
	}

	.news-layout {
		gap: 45px;
	}

	.news-intro h2 {
		font-size: 2.4rem;
	}

	.home-source > .wp-block-columns {
		gap: 45px;
	}

	.page-layout {
		gap: 35px;
		grid-template-columns: minmax(0, 1fr) 240px;
	}

	.footer-bottom {
		flex-direction: column;
		gap: 12px;
	}
}

@media (max-width: 1050px) {

	.nav-inner {
		flex-wrap: wrap;
		padding-block: 10px;
		gap: 12px;
	}

	#main-navigation {
		order: 3;
		width: 100%;
	}

	.nav-list {
		display: block;
	}

	.nav-group > summary {
		justify-content: space-between;
	}

	.sub-menu {
		position: static;
		min-width: 0;
		border: 0;
		border-left: 2px solid var(--blue);
		box-shadow: none;
		margin: 0 0 12px 10px;
		padding: 5px 10px;
	}

	.header-search {
		max-width: 300px;
		width: 50%;
	}

	.utility-inner > a {
		display: none;
	}

	.nav-list > li > a,
	.nav-group > summary {
		padding: 13px 7px;
		min-height: 46px;
		border-top: 1px solid var(--line);
	}

	.utility-inner {
		justify-content: center;
	}
}

@media (max-width: 760px) {

	.wrap {
		width: calc(100% - 36px);
	}

	.utility-inner {
		justify-content: flex-start;
		min-height: 32px;
	}

	.utility {
		font-size: 0.69rem;
	}

	.utility .contact-list {
		gap: 8px 18px;
		flex-wrap: wrap;
	}

	.brand-row {
		flex-direction: column;
		align-items: stretch;
		gap: 18px;
		padding-block: 20px 15px;
	}

	.brand {
		gap: 17px;
	}

	.brand-mark {
		font-size: 2.65rem;
	}

	.brand-name {
		font-size: 0.85rem;
		padding-left: 17px;
	}

	.crest-strip {
		display: grid;
		grid-template-columns: repeat(5, minmax(0, 1fr));
		gap: 9px;
		align-items: start;
	}

	.crest-strip a {
		min-width: 0;
		font-size: 0.64rem;
		line-height: 1.4;
		gap: 7px;
		overflow-wrap: anywhere;
	}

	.crest-strip img {
		width: 35px;
		height: 47px;
	}

	.nav-inner {
		min-height: 62px;
	}

	.header-search {
		width: 65%;
		max-width: 270px;
	}

	.header-search input {
		font-size: 0.78rem;
		padding-inline: 5px;
	}

	.menu-toggle {
		gap: 14px;
		padding-inline: 10px;
		font-size: 0.88rem;
	}

	.hero-inner {
		grid-template-columns: 1fr;
		gap: 12px;
		padding-block: 30px 30px;
		min-height: 0;
	}

	.hero h1 {
		font-size: clamp(2.5rem, 7.7vw, 3.4rem);
		line-height: 1.11;
		margin-bottom: 16px;
	}

	.hero .eyebrow {
		font-size: 0.57rem;
		letter-spacing: 0.07em;
		margin-bottom: 19px;
		max-width: 380px;
		gap: 9px;
	}

	.hero-description {
		font-size: 0.89rem;
		margin-bottom: 22px;
	}

	.hero-actions {
		gap: 22px;
	}

	.hero-secondary {
		font-size: 0.79rem;
	}

	.button {
		font-size: 0.84rem;
		padding: 10px 18px;
		gap: 28px;
		min-height: 47px;
	}

	.hero-geography {
		height: 205px;
		margin-top: 10px;
		justify-content: flex-end;
		padding-right: 4%;
	}

	.hero-map {
		height: 240px;
		width: 240px;
		transform: rotate(-5deg);
	}

	.map-orbit {
		width: 190px;
		height: 190px;
		left: 64%;
		top: 46%;
	}

	.map-caption {
		left: 5px;
		bottom: 35px;
		transform: none;
		writing-mode: vertical-rl;
		gap: 12px;
		font-size: 0.55rem;
	}

	.map-caption-line {
		display: none;
	}

	.map-caption strong {
		border-left: 0;
		border-top: 1px solid #7590b0;
		padding: 10px 0 0;
		font-size: 1.15rem;
	}

	.quick-access {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		box-shadow: 0 5px 15px #132e4f0a;
	}

	.quick-card {
		padding: 17px 13px;
		gap: 9px;
		font-size: 0.82rem;
		min-height: 82px;
		border-bottom: 1px solid var(--line);
	}

	.quick-card:nth-child(2) {
		border-right: 0;
	}

	.quick-card:nth-child(n+3) {
		border-bottom: 0;
	}

	.quick-card .line-icon {
		width: 23px;
		height: 23px;
	}

	.quick-card > span:last-child {
		font-size: 1rem;
	}

	.services {
		padding-block: 34px 36px;
	}

	.section-heading {
		margin-bottom: 20px;
	}

	.section-heading h2 {
		font-size: 1.9rem;
	}

	.section-heading .eyebrow {
		font-size: 0.62rem;
		margin-bottom: 5px;
	}

	.section-note {
		display: none;
	}

	.service-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.service-card {
		grid-template-columns: minmax(0, 1fr) 18px;
		align-items: start;
		align-content: start;
		gap: 15px 5px;
		min-height: 155px;
		padding: 18px 14px;
	}

	.service-icon {
		grid-column: 1/-1;
		width: 32px;
		height: 32px;
		justify-content: start;
	}

	.service-icon .line-icon {
		width: 30px;
		height: 30px;
	}

	.service-card h3 {
		font-size: 0.92rem;
		line-height: 1.4;
	}

	.service-card > span:last-child {
		font-size: 1.12rem;
	}

	.news-section {
		padding-block: 32px;
	}

	.news-layout {
		grid-template-columns: 1fr;
		gap: 25px;
	}

	.news-intro {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: end;
		gap: 0 15px;
	}

	.news-intro .eyebrow {
		grid-column: 1/-1;
		margin-bottom: 6px;
	}

	.news-intro h2 {
		font-size: 1.9rem;
		margin: 0;
	}

	.news-intro h2 br {
		display: none;
	}

	.news-intro .text-link {
		font-size: 0.75rem;
		gap: 8px;
		white-space: nowrap;
	}

	.news-card {
		grid-template-columns: 55px minmax(0, 1fr) 18px;
		gap: 17px;
		padding-block: 20px;
	}

	.news-date {
		padding-right: 14px;
	}

	.news-date > span:first-child {
		font-size: 1.8rem;
	}

	.news-date > span:last-child {
		font-size: 0.57rem;
	}

	.news-card h3 {
		font-size: 0.85rem;
		line-height: 1.65;
	}

	.card-arrow {
		font-size: 1.2rem;
	}

	.about-section {
		padding-block: 35px;
	}

	.home-source > .wp-block-columns {
		display: block;
	}

	.home-source h2 {
		font-size: 1.75rem;
		max-width: 300px;
	}

	.home-source p {
		font-size: 0.92rem;
	}

	.home-source .wp-block-list {
		gap: 4px 18px;
	}

	.svg-wrapper {
		max-width: 210px;
	}

	.municipality-links {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px 25px;
		margin-top: 25px !important;
		padding-top: 22px !important;
	}

	.municipality-links a {
		font-size: 0.8rem;
		gap: 10px;
	}

	.municipality-links img {
		width: 25px;
		height: 34px;
	}

	.page-banner {
		padding: 21px 0 29px;
	}

	.page-banner::after {
		left: 18px;
	}

	.page-banner h1 {
		font-size: 2rem;
	}

	.breadcrumb {
		font-size: 0.72rem;
		margin-bottom: 17px;
	}

	.page-layout {
		display: block;
		padding-block: 30px 40px;
	}

	.page-sidebar {
		margin-top: 35px;
	}

	.entry-content h2 {
		font-size: 1.5rem;
	}

	.entry-content p,
	.entry-content li {
		font-size: 0.96rem;
	}

	.municipality-links li:last-child {
		grid-column: 1/-1;
	}

	.home-source .wp-block-list li {
		font-size: 0.83rem;
		padding-left: 13px;
	}

	.utility .contact-list li:last-child {
		display: none;
	}

	.entry-content th,
	.entry-content td {
		padding: 10px 6px;
		font-size: 0.8rem;
	}

	.entry-content table {
		font-size: 0.8rem;
	}

	:is(#tablepress-1,.sou-staff-table table) th:nth-child(1) {
		width: 30%;
	}

	:is(#tablepress-1,.sou-staff-table table) th:nth-child(2) {
		width: 34%;
	}

	:is(#tablepress-1,.sou-staff-table table) th:nth-child(3) {
		width: 36%;
	}

	:is(#tablepress-1,.sou-staff-table table) td:last-child {
		font-size: 0.75rem;
	}

	.entry-content .wp-block-file {
		padding: 14px;
	}

	.entry-content [class~="wp-block-file__button"] {
		margin-left: 0;
	}

	.entry-content .wp-block-columns {
		display: block;
	}

	.entry-content .wp-block-column {
		width: 100% !important;
	}

	.home-source .wp-block-column:nth-child(2) {
		margin-top: 25px;
		padding: 14px;
	}

	.site-footer {
		padding-top: 20px;
	}

	.legacy-gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 9px;
		padding-bottom: 27px;
	}

	.legacy-gallery img {
		aspect-ratio: 3/2;
	}

	.footer-top {
		flex-direction: column;
		gap: 26px;
		padding-bottom: 27px;
	}

	.footer-brand {
		font-size: 1.6rem;
	}

	.footer-top p {
		font-size: 0.83rem;
	}

	.footer-bottom {
		font-size: 0.7rem;
	}

	.footer-bottom nav {
		flex-direction: column;
		gap: 8px;
	}

	.footer-bottom a {
		display: block;
		min-height: 28px;
	}

	.municipality-links li:last-child a {
		max-width: calc(50% - 13px);
	}
}

@media (max-width: 360px) {

	.quick-card {
		flex-wrap: wrap;
		position: relative;
		padding: 14px 12px;
		gap: 8px;
		min-height: 95px;
	}

	.quick-icon {
		width: 100%;
		justify-content: start;
	}

	.quick-card > span:last-child {
		position: absolute;
		right: 12px;
		top: 15px;
	}

	.hero-actions {
		gap: 16px;
	}

	.hero-secondary {
		font-size: 0.74rem;
	}

	.hero-geography {
		height: 185px;
	}

	.hero-map {
		width: 220px;
		height: 220px;
	}

	.news-intro {
		display: block;
	}

	.news-intro .text-link {
		margin-top: 10px;
	}

	.news-card {
		gap: 12px;
	}

	.brand-name {
		white-space: normal;
	}
}

@media (prefers-reduced-motion: reduce) {

	* {
		scroll-behavior: auto !important;
		transition: none !important;
		animation: none !important;
	}
}

@media print {

	.utility,
	.navigation,
	.quick-access,
	.page-sidebar,
	.site-footer,
	.skip-link,
	.hero-geography,
	.hero-actions {
		display: none !important;
	}

	.wrap {
		width: 100%;
	}

	.hero,
	.page-banner,
	.about-section {
		background: #fff;
		color: #000;
	}

	.hero::before {
		display: none;
	}

	.hero h1,
	.hero h1 em,
	.hero-description,
	.hero .eyebrow {
		color: #000;
	}

	.page-layout {
		display: block;
	}

	.hero-inner {
		display: block;
	}

	.hero h1 {
		font-size: 30pt;
	}

	body {
		font-size: 11pt;
		color: #000;
	}

	a {
		text-decoration: underline;
	}

	.service-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
