/* Stellenbosch Municipality — main stylesheet. Brand colours from the previous site. */

:root {
	--navy: #002157;
	--maroon: #971a32;
	--wine: #761a31;
	--blue: #23408a;
	--slate: #222933;
	--gold: #d4b064;
	--ochre: #b08a32;
	--rose: #a9516a;
	--ink: #1f2430;
	--muted: #5b6474;
	--line: #e3e6eb;
	--light: #f5f6f8;
	--white: #fff;
	--radius: 10px;
	--shadow: 0 8px 24px -12px rgba(0, 33, 87, .25);
	--wrap: 1200px;
	--font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--head: 'Poppins', var(--font);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 1rem/1.65 var(--font); color: var(--ink); background: var(--white); }
img, video, iframe { max-width: 100%; height: auto; }
a { color: var(--wine); text-underline-offset: .15em; }
a:hover { color: var(--maroon); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
h1, h2, h3, h4, h5, h6 { font-family: var(--head); font-weight: 600; line-height: 1.2; color: var(--slate); margin: 1.5em 0 .5em; }
h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
h3 { font-size: 1.25rem; }
p, ul, ol, table, figure { margin: 0 0 1.1em; }
.container { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.section { padding: 2.5rem 0 3.5rem; }
.narrow { max-width: 820px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed !important; top: .5rem; left: .5rem; width: auto; height: auto; clip: auto; z-index: 999; background: var(--white); color: var(--navy); padding: .6rem 1rem; border-radius: var(--radius); }

/* ---------- buttons ---------- */
.btn, .wp-block-button__link { display: inline-block; font: 600 .95rem/1.2 var(--head); padding: .8rem 1.4rem; border-radius: 6px; border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
.btn-maroon, .wp-block-button__link { background: var(--maroon); color: var(--white); }
.btn-maroon:hover, .wp-block-button__link:hover { background: var(--blue); color: var(--white); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* ---------- header ---------- */
.site-header { background: var(--white); box-shadow: 0 1px 0 var(--line); position: relative; z-index: 50; }
.header-inner { display: flex; align-items: stretch; gap: 1.5rem; min-height: 96px; }
.brand { background: var(--navy); display: flex; align-items: center; justify-content: center; padding: .75rem 1.75rem; }
.site-logo { display: block; line-height: 0; }
.site-logo-img { max-height: 72px; width: auto; }
.site-logo-text { font: 700 1.1rem/1.2 var(--head); color: var(--white); line-height: 1.2; }
.header-nav { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.menu { list-style: none; margin: 0; padding: 0; }
.main-menu { display: flex; flex-wrap: wrap; }
.main-menu > li { position: relative; }
.main-menu > li > a { display: block; padding: 1.1rem .9rem; color: var(--slate); text-decoration: none; font: 600 .92rem/1.2 var(--head); text-transform: uppercase; letter-spacing: .02em; }
.main-menu > li + li > a { border-left: 1px solid var(--line); }
.main-menu > li > a:hover, .main-menu > li.current-menu-item > a, .main-menu > li.current-menu-ancestor > a { color: var(--maroon); }
.menu-desc { display: block; margin-top: .25rem; font: 500 .7rem/1 var(--font); color: var(--muted); letter-spacing: .06em; }
.main-menu .sub-menu { list-style: none; margin: 0; padding: .5rem 0; position: absolute; left: 0; top: 100%; min-width: 260px; background: var(--slate); box-shadow: var(--shadow); border-top: 3px solid var(--maroon); display: none; }
.main-menu .sub-menu .sub-menu { left: 100%; top: -.5rem; }
.main-menu li:hover > .sub-menu, .main-menu li:focus-within > .sub-menu, .main-menu li.is-open > .sub-menu { display: block; }
.main-menu .sub-menu a { display: block; padding: .55rem 1.1rem; color: #e8ebf0; text-decoration: none; font-size: .9rem; }
.main-menu .sub-menu a:hover { background: rgba(255,255,255,.08); color: var(--white); }
.submenu-toggle { display: none; }
.btn-report { background: var(--maroon); color: var(--white); text-transform: uppercase; font-size: .85rem; padding: .75rem 1.1rem; white-space: nowrap; }
.btn-report span { display: block; font: 500 .65rem/1.4 var(--font); opacity: .8; }
.btn-report:hover { background: var(--blue); color: var(--white); }
.nav-toggle { display: none; }

.quickbar { background: var(--light); border-top: 1px solid var(--line); }
.quickbar-inner { display: flex; align-items: center; gap: 1rem; min-height: 46px; }
.quickbar-label { font: 700 .72rem/1 var(--head); text-transform: uppercase; letter-spacing: .1em; color: var(--navy); padding-right: 1rem; border-right: 1px solid var(--line); }
.quick-nav { flex: 1; }
.quick-menu { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.quick-menu a { color: var(--slate); text-decoration: none; font: 600 .78rem/1 var(--head); text-transform: uppercase; letter-spacing: .04em; }
.quick-menu a:hover { color: var(--maroon); }
.quick-search { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
.quick-search input { border: 0; background: transparent; padding: .45rem .7rem; width: 11rem; font: inherit; font-size: .9rem; }
.quick-search button { border: 0; background: transparent; color: var(--navy); padding: .35rem .6rem; cursor: pointer; }

/* ---------- hero ---------- */
.hero { position: relative; color: var(--white); background: var(--navy) var(--hero, none) center / cover no-repeat; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,33,87,.88) 0%, rgba(0,33,87,.55) 55%, rgba(0,33,87,.2) 100%); }
.hero-inner { position: relative; padding: clamp(3rem, 8vw, 6rem) 0; }
.hero-title { color: var(--white); margin: 0 0 .4rem; font-size: clamp(2rem, 4.5vw, 3.2rem); }
.hero-sub { font-size: 1.15rem; opacity: .9; margin-bottom: 1.5rem; }
.hero-search { display: flex; max-width: 620px; background: var(--white); border-radius: 8px; padding: .35rem; box-shadow: var(--shadow); }
.hero-search input { flex: 1; border: 0; padding: .7rem 1rem; font: inherit; color: var(--ink); background: transparent; min-width: 0; }

/* ---------- home content blocks ---------- */
.home-content > * { margin-block: 0; }
.home-content > .alignfull, .home-content .stb-band { width: 100%; }
.stb-services { display: grid; grid-template-columns: repeat(4, 1fr); }
.stb-service { padding: 2.25rem 2rem; color: var(--white); }
.stb-service h2, .stb-service h3 { color: var(--white); margin-top: 0; font-size: 1.25rem; }
.stb-service ul { margin: 0; padding-left: 1.1rem; }
.stb-service li { margin: .3rem 0; }
.stb-service a { color: var(--white); text-decoration: none; }
.stb-service a:hover { text-decoration: underline; color: var(--white); }
.stb-service.gold { background: var(--gold); }
.stb-service.ochre { background: var(--ochre); }
.stb-service.rose { background: var(--rose); }
.stb-service.maroon { background: var(--maroon); }
.stb-contacts { background: var(--blue); color: var(--white); padding: 1.6rem 0; }
.stb-contacts ul { list-style: none; margin: 0 auto; padding: 0; width: min(100% - 2rem, var(--wrap)); display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stb-contacts li { font: 600 1.05rem/1.25 var(--head); }
.stb-contacts small { display: block; font: 500 .75rem/1.4 var(--font); text-transform: uppercase; letter-spacing: .08em; opacity: .8; }
.stb-contacts a { color: var(--white); text-decoration: none; }
.stb-cards { background: var(--slate); padding: 3rem 0; }
.stb-cards .wp-block-columns, .stb-cards > .inner { width: min(100% - 2rem, var(--wrap)); margin: 0 auto; gap: 1.5rem; }
.stb-cards .wp-block-column { border: 2px solid rgba(255,255,255,.85); border-radius: 14px; padding: 2rem; text-align: center; color: #dfe3ea; }
.stb-cards h3 { color: var(--white); margin-top: 0; }
.stb-cards .wp-block-button__link { background: var(--white); color: var(--navy); }
.stb-cards .wp-block-button__link:hover { background: var(--gold); color: var(--slate); }

/* ---------- news / cards ---------- */
.home-news { padding: 3.5rem 0; background: var(--light); }
.section-head { margin-bottom: 1.75rem; }
.section-head h2 { margin: 0; }
.section-head p { margin: .25rem 0 0; color: var(--muted); }
.section-head::after { content: ''; display: block; width: 56px; height: 3px; background: var(--maroon); margin-top: .9rem; }
.section-more { margin: 2rem 0 0; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card-media { display: block; aspect-ratio: 16 / 10; background: var(--navy); }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--navy), var(--blue)); }
.card-body { padding: 1.1rem 1.25rem 1.4rem; }
.card-meta { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 .4rem; }
.card-meta .entry-cats::before { content: ' · '; }
.card-meta a { color: inherit; text-decoration: none; }
.card-title { font-size: 1.1rem; margin: 0 0 .5rem; }
.card-title a { color: var(--slate); text-decoration: none; }
.card-title a:hover { color: var(--maroon); }
.card-excerpt { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- pages / posts ---------- */
.page-header { background: var(--navy); color: var(--white); padding: 2.25rem 0; border-bottom: 4px solid var(--maroon); }
.page-title { color: var(--white); margin: 0; }
.page-subtitle { margin: .4rem 0 0; opacity: .85; }
.has-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 3rem; }
.entry-meta { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.entry-meta .entry-cats::before { content: ' · '; }
.entry-image img { border-radius: var(--radius); }
.entry-content > *:first-child { margin-top: 0; }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; }
.entry-content table, .wp-block-table table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: .55rem .7rem; text-align: left; vertical-align: top; }
.entry-content th { background: var(--light); font-weight: 600; }
.wp-block-table { overflow-x: auto; }
.entry-content blockquote { margin: 1.5rem 0; padding: .5rem 1.25rem; border-left: 4px solid var(--maroon); color: var(--muted); }
.wp-block-file { display: flex; align-items: center; gap: 1rem; padding: .75rem 1rem; background: var(--light); border-radius: var(--radius); }
.alignwide { width: min(100vw - 2rem, var(--wrap)); max-width: none; }
.alignfull { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); }
.sidebar .widget { margin-bottom: 2rem; }
.widget-title { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 .75rem; }
.post-navigation .nav-links { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.post-navigation span { display: block; font-size: .75rem; text-transform: uppercase; color: var(--muted); }
.pagination .nav-links { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: 2.5rem; }
.pagination .page-numbers { padding: .45rem .8rem; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; color: var(--slate); }
.pagination .current { background: var(--navy); color: var(--white); border-color: var(--navy); }
.search-results { list-style: none; padding: 0; }
.search-results li { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.search-results h2 { margin: .2rem 0 .3rem; font-size: 1.2rem; }
.result-type { margin: 0; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--maroon); font-weight: 600; }
.search-form { display: flex; gap: .5rem; max-width: 560px; }
.search-form input { flex: 1; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 6px; font: inherit; }

/* ---------- footer ---------- */
.site-footer { background: var(--blue); color: #c9d5e8; }
.footer-grid { display: grid; grid-template-columns: 1.1fr repeat(3, 1fr); gap: 2rem; padding: 3rem 0 2rem; }
.footer-brand .site-logo-img { max-height: 90px; }
.footer-name { font: 600 1.05rem/1.3 var(--head); color: var(--white); margin-top: .75rem; }
.site-footer .widget-title { color: var(--white); }
.site-footer a { color: #e3eaf5; }
.site-footer a:hover { color: var(--white); }
.site-footer ul { list-style: none; padding: 0; }
.footer-bottom { background: rgba(0,0,0,.18); font-size: .85rem; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding: 1rem 0; }
.footer-bottom p { margin: 0; }
.footer-menu { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-menu a { text-decoration: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
	.stb-services { grid-template-columns: repeat(2, 1fr); }
	.stb-contacts ul { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
	.header-inner { flex-wrap: wrap; align-items: center; gap: 0; min-height: 0; }
	.brand { padding: .6rem 1rem; }
	.site-logo-img { max-height: 54px; }
	.nav-toggle { display: inline-flex; align-items: center; gap: .5rem; margin-left: auto; margin-right: 1rem; border: 1px solid var(--line); background: var(--white); border-radius: 6px; padding: .55rem .8rem; font: 600 .85rem var(--head); color: var(--navy); cursor: pointer; }
	.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; content: ''; }
	.nav-toggle-bars::before { position: absolute; top: -6px; }
	.nav-toggle-bars::after { position: absolute; top: 6px; }
	.header-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; padding: 0 1rem 1rem; }
	.header-nav.is-open { display: flex; }
	.main-menu { flex-direction: column; }
	.main-menu > li + li > a { border-left: 0; border-top: 1px solid var(--line); }
	.main-menu > li > a { padding: .9rem 2.5rem .9rem 0; }
	.main-menu .sub-menu, .main-menu .sub-menu .sub-menu { position: static; display: none; box-shadow: none; min-width: 0; }
	.main-menu li:hover > .sub-menu, .main-menu li:focus-within > .sub-menu { display: none; }
	.main-menu li.is-open > .sub-menu { display: block; }
	.submenu-toggle { display: block; position: absolute; right: 0; top: .55rem; width: 2.2rem; height: 2.2rem; border: 0; background: transparent; cursor: pointer; }
	.submenu-toggle::before { content: ''; display: block; margin: auto; width: 9px; height: 9px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg); }
	.submenu-toggle[aria-expanded="true"]::before { transform: rotate(-135deg); }
	.btn-report { text-align: center; margin-top: .75rem; }
	.quickbar-inner { flex-wrap: wrap; padding: .6rem 0; }
	.quickbar-label { border: 0; }
	.quick-search { width: 100%; }
	.quick-search input { flex: 1; width: auto; }
	.has-sidebar { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.stb-services, .stb-contacts ul, .footer-grid { grid-template-columns: 1fr; }
	.hero-search { flex-direction: column; gap: .35rem; }
	.hero-search .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}
@media print {
	.site-header, .site-footer, .hero-search, .post-navigation { display: none; }
}

/* ---------- compatibility output (events, notices) ---------- */
.stb-events { list-style: none; padding: 0; }
.stb-events li { display: grid; grid-template-columns: minmax(9rem, max-content) 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.stb-events time { color: var(--maroon); font-weight: 600; font-size: .9rem; }
.stb-event-meta { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.25rem; background: var(--light); border-radius: var(--radius); padding: 1rem 1.25rem; }
.stb-event-meta dt { font-weight: 600; color: var(--slate); }
.stb-event-meta dd { margin: 0; }
.stb-notice { border-left: 4px solid var(--gold); background: #fbf7ec; padding: .9rem 1.1rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1rem 0; }
.stb-notice p { margin: 0; }
@media (max-width: 640px) { .stb-events li { grid-template-columns: 1fr; gap: .2rem; } }

/* ---------- home sections (block groups) ---------- */
.home-content .alignfull { margin-left: 0; width: 100%; }
.stb-service .stb-icon { margin: 0 0 1rem; }
.stb-service .stb-icon img { filter: brightness(0) invert(1); }
.stb-service h2 a { color: var(--white); text-decoration: none; }
.stb-cards .wp-block-columns { margin-bottom: 0; }
.stb-banner, .stb-welcome { width: min(100% - 2rem, var(--wrap)); margin: 3rem auto !important; }
.stb-banner img { display: block; width: 100%; border-radius: var(--radius); }
.stb-social { background: var(--slate); color: var(--white); padding: 3rem 1rem; }
.stb-social h2 { color: var(--white); margin-top: 0; }
.stb-social .wp-block-social-links { gap: 1.5rem; }
.stb-social .wp-social-link a { color: var(--white); }
.stb-welcome img { border-radius: var(--radius); }
.stb-welcome h2 { margin-top: 0; }

/* "Report an issue" menu item (old 'special' class) renders as the maroon button */
.main-menu > li.special { margin-left: auto; }
.main-menu > li.special > a { background: var(--maroon); color: var(--white); border: 0; border-radius: 6px; padding: .75rem 1.1rem; margin-left: .5rem; }
.main-menu > li.special > a:hover { background: var(--blue); color: var(--white); }
.main-menu > li.special .menu-desc { color: rgba(255,255,255,.8); }
.main-menu { flex: 1; align-items: center; }

/* old inline white text from coloured Elementor sections: keep it readable on white */
.entry-content [style*="color: #ffffff"], .entry-content [style*="color:#ffffff"], .entry-content [style*="color: #fff;"] { color: inherit !important; }

/* classic themes wrap group children in an inner container: put the grid on whichever holds the columns */
.stb-services:has(> .wp-block-group__inner-container) { display: block; }
.stb-services > .wp-block-group__inner-container { display: grid; grid-template-columns: repeat(4, 1fr); }
.stb-contacts li { font-size: 1.35rem; }
.stb-contacts small { font-size: .78rem; margin-bottom: .2rem; }
@media (max-width: 1100px) { .stb-services > .wp-block-group__inner-container { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .stb-services > .wp-block-group__inner-container { grid-template-columns: 1fr; } }
.site-footer h1, .site-footer h2, .site-footer h3, .site-footer h4 { color: var(--white); margin-top: 0; }

/* ---------- video hero (as on the previous site) ---------- */
.hero-video { min-height: clamp(420px, 62.5vw, 82vh); background: var(--navy) var(--hero) center / cover no-repeat; display: flex; align-items: flex-end; overflow: hidden; }
.hero-video::before { display: none; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-video .hero-inner { padding: 0 0 clamp(8rem, 12vw, 10rem); display: flex; justify-content: center; }
.hero-video .hero-search { width: min(100%, 640px); }
.hero-pause { position: absolute; right: 1rem; top: 1rem; z-index: 2; background: rgba(0,33,87,.7); color: var(--white); border: 0; border-radius: 6px; padding: .45rem .8rem; font: 600 .78rem var(--head); cursor: pointer; }
.hero-pause:hover { background: var(--navy); }
.hero-video ~ .home-content .stb-services > .wp-block-group__inner-container { width: min(100% - 2rem, 1500px); margin: -7rem auto 0; position: relative; z-index: 3; box-shadow: var(--shadow); }
@media (max-width: 767px) {
	.hero-video { min-height: 56vw; }
	.hero-video .hero-inner { padding-bottom: 1.5rem; }
	.hero-video ~ .home-content .stb-services > .wp-block-group__inner-container { margin-top: 0; width: 100%; }
}

/* header and quick links span the same width as the home service columns on large screens */
:root { --wide: 1500px; }
.site-header .container { width: min(100% - 2rem, var(--wide)); }
.main-nav { flex: 1; }

/* whole navy logo block is the home link */
.brand { padding: 0; }
.brand .site-logo { display: flex; align-items: center; justify-content: center; height: 100%; padding: .75rem 1.75rem; }
.brand .site-logo:hover { background: #00296b; }
@media (max-width: 960px) { .brand { padding: 0; } .brand .site-logo { padding: .6rem 1rem; } }

/* ---------- modern dropdowns (desktop) ---------- */
@media (min-width: 961px) {
	.main-menu > .menu-item-has-children > a { padding-right: 1.6rem; position: relative; }
	.main-menu > .menu-item-has-children > a::after {
		content: ''; position: absolute; right: .7rem; top: 1.45rem; width: 6px; height: 6px;
		border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s;
	}
	.main-menu > .menu-item-has-children:hover > a::after,
	.main-menu > .menu-item-has-children:focus-within > a::after { transform: rotate(-135deg); top: 1.6rem; }

	.main-menu .sub-menu {
		display: block; visibility: hidden; opacity: 0; transform: translateY(8px);
		transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
		top: calc(100% + 4px); left: .4rem; min-width: 280px; padding: .5rem;
		background: var(--white); border: 1px solid var(--line); border-top: 0; border-radius: 12px;
		box-shadow: 0 18px 40px -12px rgba(0, 33, 87, .28), 0 2px 6px rgba(0, 33, 87, .06);
	}
	.main-menu .sub-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -8px; height: 8px; } /* hover bridge */
	.main-menu .sub-menu::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--maroon); border-radius: 12px 12px 0 0; }
	.main-menu li:hover > .sub-menu, .main-menu li:focus-within > .sub-menu, .main-menu li.is-open > .sub-menu {
		visibility: visible; opacity: 1; transform: translateY(0); transition-delay: 0s;
	}
	.main-menu .sub-menu a {
		color: var(--slate); font: 500 .92rem/1.35 var(--font); padding: .6rem .85rem; border-radius: 8px;
		border-left: 3px solid transparent; transition: background .15s, color .15s, border-color .15s;
	}
	.main-menu .sub-menu a:hover, .main-menu .sub-menu a:focus-visible, .main-menu .sub-menu .current-menu-item > a {
		background: var(--light); color: var(--maroon); border-left-color: var(--maroon);
	}
	.main-menu .sub-menu .sub-menu { left: calc(100% + .5rem); top: -.5rem; }
}
/* mobile: sub-menus as light indented lists */
@media (max-width: 960px) {
	.main-menu .sub-menu { background: var(--light); border-top: 0; border-radius: 8px; margin: 0 0 .5rem; }
	.main-menu .sub-menu a { color: var(--slate); padding: .6rem 1rem; }
	.main-menu .sub-menu a:hover { background: transparent; color: var(--maroon); }
}
@media (prefers-reduced-motion: reduce) { .main-menu .sub-menu { transition: none; transform: none; } }

/* ---------- contact cards & small text ---------- */
.entry-content .lead { font-size: 1.15rem; color: var(--slate); }
.entry-content .small { font-size: .88rem; color: var(--muted); }
.stb-contact-cards { gap: 1.25rem; margin: 1.5rem 0 2.5rem; }
.stb-contact-cards > .wp-block-column { background: var(--light); border-radius: var(--radius); padding: 1.25rem 1.4rem; border-top: 4px solid var(--navy); }
.stb-contact-cards > .wp-block-column:nth-child(2) { border-top-color: var(--maroon); }
.stb-contact-cards > .wp-block-column:nth-child(3) { border-top-color: #25d366; }
.stb-contact-cards h3 { margin-top: 0; font-size: 1.05rem; }
.stb-phone-list { list-style: none; padding: 0 !important; margin: 0; }
.stb-phone-list li { padding: .45rem 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.stb-phone-list li:last-child { border-bottom: 0; }
.stb-phone-list a { display: block; font: 600 1.15rem/1.3 var(--head); color: var(--slate); text-decoration: none; }
.stb-phone-list a:hover { color: var(--maroon); }
.stb-map { width: 100%; height: 380px; border: 0; border-radius: var(--radius); }
.entry-content ol li { margin: .35rem 0; }

/* one shared page width on large screens (matches header and home columns) */
:root { --wrap: 1500px; }
.has-sidebar { grid-template-columns: minmax(0, 1fr) 320px; gap: 4rem; }
@media (min-width: 961px) {
	.container, .site-header .container, .stb-contacts ul, .stb-cards .wp-block-columns, .stb-banner, .stb-welcome,
	.hero-video ~ .home-content .stb-services > .wp-block-group__inner-container { width: min(100% - 5rem, var(--wrap)); }
}
/* dropdown hover: tint only, no left accent bar */
@media (min-width: 961px) { .main-menu .sub-menu a, .main-menu .sub-menu a:hover, .main-menu .sub-menu a:focus-visible, .main-menu .sub-menu .current-menu-item > a { border-left: 0; } }
/* dropdown panel starts at the menu item's left edge; item text lines up with the menu label */
@media (min-width: 961px) {
	.main-menu > li > .sub-menu { left: 0; min-width: 340px; padding: .5rem 0; }
	.main-menu .sub-menu a { padding: .65rem .9rem; border-radius: 0; }
}
/* quick links: label and links share one line box so they sit on the same baseline */
.quickbar-label, .quick-menu a { font: 700 .78rem/1 var(--head); letter-spacing: .05em; text-transform: uppercase; }
.quickbar-label { display: inline-flex; align-items: center; gap: 1rem; border-right: 0; padding-right: 0; }
.quickbar-label::after { content: ''; width: 1px; height: 1.1rem; background: var(--line); }
.quick-menu a { display: inline-flex; align-items: center; font-weight: 600; letter-spacing: .04em; }
.quick-menu { align-items: center; }
.quick-menu li { display: flex; line-height: 1; }
/* dropdown hangs from the header's bottom edge, flush with the menu item */
@media (min-width: 961px) {
	.header-nav { align-items: stretch; }
	.main-nav { display: flex; }
	.main-menu { align-items: stretch; }
	.main-menu > li { display: flex; align-items: center; }
	.main-menu > li > .sub-menu { top: 100%; border-radius: 0 0 12px 12px; }
	.main-menu .sub-menu::after { border-radius: 0; }
	.main-menu > .menu-item-has-children > a::after { top: 50%; margin-top: -5px; }
	.main-menu > .menu-item-has-children:hover > a::after,
	.main-menu > .menu-item-has-children:focus-within > a::after { top: 50%; margin-top: -1px; }
}
/* dropdown: quick, smooth slide-down reveal from the header edge */
@media (min-width: 961px) {
	.main-menu .sub-menu {
		transform: none;
		clip-path: inset(0 -40px 100% -40px);
		transition: clip-path .22s cubic-bezier(.2, .8, .2, 1), opacity .16s ease-out, visibility 0s linear .22s;
	}
	.main-menu li:hover > .sub-menu, .main-menu li:focus-within > .sub-menu, .main-menu li.is-open > .sub-menu {
		clip-path: inset(0 -40px -40px -40px);
		transition: clip-path .22s cubic-bezier(.2, .8, .2, 1), opacity .12s ease-out, visibility 0s;
	}
}
@media (prefers-reduced-motion: reduce) { .main-menu .sub-menu { transition: none !important; } }
/* first dropdown starts flush against the navy logo block; its text still lines up with the menu label */
@media (min-width: 961px) {
	.main-menu > li:first-child > .sub-menu { left: -1.5rem; }
	.main-menu > li:first-child > .sub-menu a { padding-left: 2.4rem; }
}

/* news cards: whole card clickable, lifts on hover with image zoom and maroon accent */
.card { position: relative; transition: transform .2s ease, box-shadow .2s ease; }
.card::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--maroon); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.card-media { overflow: hidden; }
.card-media img { transition: transform .35s ease; }
.card-title a::before { content: ''; position: absolute; inset: 0; z-index: 1; }
.card-meta a { position: relative; z-index: 2; }
.card:hover, .card:focus-within { transform: translateY(-4px); box-shadow: 0 18px 36px -14px rgba(0, 33, 87, .35); }
.card:hover::after, .card:focus-within::after { transform: scaleX(1); }
.card:hover .card-media img, .card:focus-within .card-media img { transform: scale(1.05); }
.card:hover .card-title a, .card:focus-within .card-title a { color: var(--maroon); }
@media (prefers-reduced-motion: reduce) { .card, .card-media img, .card::after { transition: none; } .card:hover { transform: none; } }
/* cards: fixed image frame, three per row on desktop, tidy meta */
.card-media { position: relative; aspect-ratio: 16 / 10; }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; }
.card-meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-title { font-size: 1.15rem; line-height: 1.3; }
@media (min-width: 961px) { .card-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
@media (min-width: 641px) and (max-width: 960px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- people grid (Mayoral Committee, councillors) ---------- */
.stb-people > .wp-block-group__inner-container, .stb-people:not(:has(> .wp-block-group__inner-container)) { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem; margin: 1.25rem 0 2.5rem; }
.stb-people-lead > .wp-block-group__inner-container, .stb-people-lead:not(:has(> .wp-block-group__inner-container)) { grid-template-columns: repeat(auto-fill, minmax(280px, 340px)); }
.stb-person { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; text-align: center; padding-bottom: 1.1rem; transition: transform .2s ease, box-shadow .2s ease; }
.stb-person:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -14px rgba(0, 33, 87, .35); }
.stb-person-photo { margin: 0 0 .9rem !important; aspect-ratio: 1 / 1; background: linear-gradient(135deg, var(--navy), var(--blue)); }
.stb-person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.stb-person-name { font-size: 1.05rem; margin: 0 1rem .25rem !important; }
.stb-person-role { margin: 0 1rem .35rem !important; color: var(--maroon); font-weight: 600; font-size: .92rem; line-height: 1.35; }
.stb-person-ward { margin: 0 1rem !important; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.stb-people-lead .stb-person-name { font-size: 1.25rem; }
.stb-people-lead .stb-person { border-top: 4px solid var(--maroon); }
@media (prefers-reduced-motion: reduce) { .stb-person { transition: none; } .stb-person:hover { transform: none; } }

/* ---------- expandable sections (converted accordions) ---------- */
.wp-block-details { border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 .6rem; background: var(--white); transition: box-shadow .15s; }
.wp-block-details:hover { box-shadow: var(--shadow); }
.wp-block-details summary { list-style: none; cursor: pointer; padding: .9rem 3rem .9rem 1.1rem; font: 600 1rem/1.35 var(--head); color: var(--slate); position: relative; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: ''; position: absolute; right: 1.2rem; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid var(--maroon); border-bottom: 2px solid var(--maroon); transform: rotate(45deg); transition: transform .2s; }
.wp-block-details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.wp-block-details[open] summary { color: var(--maroon); border-bottom: 1px solid var(--line); }
.wp-block-details > :not(summary) { margin-left: 1.1rem; margin-right: 1.1rem; }
.wp-block-details > :not(summary):first-of-type { margin-top: 1rem; }
.wp-block-details > :last-child:not(summary) { margin-bottom: 1rem; }
.entry-content .wp-block-buttons { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 1.5rem; }
.entry-content .wp-block-separator { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.entry-content .wp-block-columns { gap: 2rem; }
.stb-person-desc { margin: .5rem 1rem 0 !important; font-size: .8rem; line-height: 1.45; color: var(--muted); text-align: left; }
.stb-person-contact { margin: .6rem 1rem 0 !important; font-size: .88rem; }
.stb-person-contact a { color: var(--wine); font-weight: 600; text-decoration: none; }
.stb-person-contact a:hover { text-decoration: underline; }
.stb-people-wide > .wp-block-group__inner-container, .stb-people-wide:not(:has(> .wp-block-group__inner-container)) { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.stb-link-list { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .6rem; }
.stb-link-list a { display: block; padding: .8rem 1rem; background: var(--light); border-radius: 8px; text-decoration: none; font-weight: 600; color: var(--slate); border-left: 3px solid var(--maroon); }
.stb-link-list a:hover { background: var(--white); box-shadow: var(--shadow); color: var(--maroon); }
/* small "opens in new tab" arrow on external text links in content */
.entry-content a[target="_blank"]:not(.wp-block-button__link):not(:has(img))::after,
.stb-service a[target="_blank"]::after { content: '\2197'; display: inline-block; margin-left: .2em; font-size: .8em; text-decoration: none; opacity: .75; }

/* ---------- news article ---------- */
.post-hero { background: var(--navy); color: var(--white); padding: 2.5rem 0 2.75rem; border-bottom: 4px solid var(--maroon); }
.post-hero.has-image { padding-bottom: 7rem; border-bottom: 0; }
.post-crumbs { margin: 0 0 .9rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.post-crumbs a { color: rgba(255,255,255,.8); text-decoration: none; }
.post-crumbs a:hover { color: var(--white); text-decoration: underline; }
.post-crumbs span { margin: 0 .5rem; opacity: .5; }
.post-crumbs .post-cat { background: var(--maroon); color: var(--white); padding: .2rem .6rem; border-radius: 4px; }
.post-title { color: var(--white); margin: 0; max-width: 900px; font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
.post-date { margin: .9rem 0 0; color: rgba(255,255,255,.75); font-size: .95rem; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 4rem; padding: 0 0 4rem; }
.post-hero:not(.has-image) + .post-layout { padding-top: 2.5rem; }
.post-main { max-width: 820px; }
.post-figure { margin: -5rem 0 2rem; }
.post-figure img { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 24px 48px -20px rgba(0,33,87,.45); display: block; }
.post-figure figcaption { font-size: .85rem; color: var(--muted); margin-top: .6rem; }
.post-body { font-size: 1.08rem; line-height: 1.8; }
.post-body > p:first-of-type { font-size: 1.2rem; line-height: 1.7; color: var(--slate); }
.post-body img { border-radius: 10px; }
.post-share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 2.5rem 0; padding: 1.1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.post-share span { font: 700 .78rem var(--head); text-transform: uppercase; letter-spacing: .08em; color: var(--navy); margin-right: .5rem; }
.post-share a, .post-share button { font: 600 .85rem var(--font); padding: .45rem .9rem; border-radius: 999px; background: var(--light); color: var(--slate); text-decoration: none; border: 1px solid var(--line); cursor: pointer; }
.post-share a:hover, .post-share button:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.post-share a::after { display: none !important; }
.post-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.post-pager a { display: block; padding: 1rem 1.2rem; background: var(--light); border-radius: var(--radius); text-decoration: none; color: var(--slate); font: 600 1rem/1.35 var(--head); transition: background .15s, box-shadow .15s; }
.post-pager a:hover { background: var(--white); box-shadow: var(--shadow); color: var(--maroon); }
.post-pager span { display: block; font: 600 .72rem var(--font); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .35rem; }
.post-pager .pager-next { text-align: right; grid-column: 2; }
.post-aside { padding-top: 2.5rem; }
.post-hero.has-image + .post-layout .post-aside { padding-top: 1rem; }
.aside-news { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.aside-news li + li { border-top: 1px solid var(--line); }
.aside-news a { display: grid; grid-template-columns: 72px 1fr; gap: .8rem; align-items: center; padding: .75rem 0; text-decoration: none; color: var(--slate); }
.aside-news img, .aside-ph { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; display: block; background: linear-gradient(135deg, var(--navy), var(--blue)); }
.aside-title { display: block; font: 600 .92rem/1.35 var(--head); }
.aside-news time { display: block; font-size: .75rem; color: var(--muted); margin-top: .25rem; }
.aside-news a:hover .aside-title { color: var(--maroon); }
@media (max-width: 960px) {
	.post-layout { grid-template-columns: 1fr; gap: 2rem; }
	.post-hero.has-image { padding-bottom: 5rem; }
	.post-figure { margin-top: -3.5rem; }
	.post-pager { grid-template-columns: 1fr; }
	.post-pager .pager-next { grid-column: auto; text-align: left; }
}

/* ---------- sticky header: stays on top, compacts once the page scrolls ---------- */
.site-header { position: sticky; top: 0; z-index: 100; transition: box-shadow .2s ease; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header.is-scrolled { box-shadow: 0 6px 20px -10px rgba(0, 33, 87, .35); }
.header-inner, .brand .site-logo, .site-logo-img, .menu-desc, .quickbar { transition: all .2s ease; }
.site-header.is-scrolled .header-inner { min-height: 64px; }
.site-header.is-scrolled .site-logo-img { max-height: 46px; }
.site-header.is-scrolled .brand .site-logo { padding: .45rem 1.4rem; }
.site-header.is-scrolled .menu-desc { opacity: 0; max-height: 0; margin: 0; overflow: hidden; }
.site-header.is-scrolled .main-menu > li > a { padding-top: .6rem; padding-bottom: .6rem; }
.quickbar { max-height: 80px; overflow: hidden; }
.site-header.is-scrolled .quickbar { max-height: 0; border-top-color: transparent; }
:target, h2[id], h3[id] { scroll-margin-top: 90px; }
@media (max-width: 960px) {
	.site-header.is-scrolled .header-inner { min-height: 56px; }
	.site-header.is-scrolled .site-logo-img { max-height: 40px; }
	.site-header .header-nav.is-open { max-height: calc(100vh - 70px); overflow-y: auto; }
}
@media (prefers-reduced-motion: reduce) { .header-inner, .brand .site-logo, .site-logo-img, .menu-desc, .quickbar { transition: none; } }

/* ---------- tourism page ---------- */
.stb-tour-hero { margin-top: -2.5rem !important; margin-bottom: 2.5rem !important; }
.stb-tour-hero .wp-block-cover__background { background: linear-gradient(0deg, rgba(0,33,87,.85) 0%, rgba(0,33,87,.15) 70%) !important; opacity: 1 !important; }
.stb-tour-hero .wp-block-cover__inner-container { width: min(100% - 5rem, var(--wrap)) !important; margin: 0 auto; }
.stb-tour-title { color: var(--white); font-size: clamp(1.9rem, 4vw, 3rem); margin: 0 0 .4rem; }
.stb-tour-sub { color: rgba(255,255,255,.9); font-size: 1.15rem; max-width: 640px; }
.stb-highlights { background: var(--light); border-radius: var(--radius); padding: 1.5rem 1.6rem; border-top: 4px solid var(--gold); }
.stb-highlights h3 { margin-top: 0; }
.stb-highlights ul { list-style: none; padding: 0 !important; margin: 0; }
.stb-highlights li { padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.stb-highlights li:last-child { border-bottom: 0; }
.stb-destinations { gap: 1.5rem !important; margin: 1rem 0 3rem; }
.stb-destinations > .wp-block-column { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem 1.5rem 1.6rem; text-align: center; transition: transform .2s, box-shadow .2s; }
.stb-destinations > .wp-block-column:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -14px rgba(0,33,87,.35); }
.stb-destinations h3 { margin: 1rem 0 .4rem; }
.stb-destinations .wp-block-buttons { justify-content: center; margin-bottom: 0; }
.stb-dest-img { margin: 0 auto !important; width: 150px; height: 150px; }
.stb-dest-img img { width: 150px; height: 150px; object-fit: cover; border-radius: 50%; border: 4px solid var(--gold); }
.stb-dest-img.is-logo img { object-fit: contain; background: var(--white); padding: 1.2rem; border-color: var(--line); }
.stb-wineroute { background: var(--light); border-radius: var(--radius); padding: 1.75rem 2rem; margin: 0 0 3rem; border-left: 4px solid var(--maroon); }
.stb-wineroute h3 { margin-top: 0; }
.stb-wineroute .is-logo img { max-height: 120px; width: auto; margin: 0 auto; display: block; }
.stb-tour-closing img { border-radius: 14px; width: 100%; }
@media (prefers-reduced-motion: reduce) { .stb-destinations > .wp-block-column { transition: none; } .stb-destinations > .wp-block-column:hover { transform: none; } }
.stb-tour-hero.wp-block-cover { padding: 2.5rem max(2.5rem, calc((100vw - var(--wrap)) / 2)); }
.stb-tour-hero .wp-block-cover__inner-container { width: 100% !important; }

/* ---------- image viewer (lightbox) ---------- */
.stb-zoomable { cursor: zoom-in; }
.stb-lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(10, 16, 30, .94); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s ease; }
.stb-lightbox.is-open { opacity: 1; }
.stb-lightbox[hidden] { display: none; }
.stb-lightbox figure { margin: 0; max-width: min(92vw, 1600px); max-height: 88vh; display: flex; flex-direction: column; align-items: center; }
.stb-lightbox img { max-width: 100%; max-height: calc(88vh - 3rem); object-fit: contain; border-radius: 6px; box-shadow: 0 30px 60px rgba(0,0,0,.5); background: #111; }
.stb-lightbox figcaption { color: #dfe4ec; font-size: .92rem; margin-top: .8rem; text-align: center; max-width: 900px; }
.stb-lightbox .lb-count { position: absolute; top: 1.1rem; left: 1.3rem; color: #aab3c2; font: 600 .85rem var(--font); }
.stb-lightbox button { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; border-radius: 50%; width: 3rem; height: 3rem; cursor: pointer; font-size: 1.6rem; line-height: 1; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.stb-lightbox button:hover, .stb-lightbox button:focus-visible { background: rgba(255,255,255,.25); }
.stb-lightbox .lb-close { top: 1rem; right: 1rem; }
.stb-lightbox .lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.stb-lightbox .lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.stb-lightbox.single .lb-prev, .stb-lightbox.single .lb-next, .stb-lightbox.single .lb-count { display: none; }
body.lb-open { overflow: hidden; }
@media (max-width: 640px) { .stb-lightbox .lb-prev, .stb-lightbox .lb-next { top: auto; bottom: 1rem; transform: none; } }
@media (prefers-reduced-motion: reduce) { .stb-lightbox { transition: none; } }

/* ---------- ward map + ward cards ---------- */
.stb-ward-map { position: relative; margin: 1.5rem 0 1rem; background: var(--light); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.stb-ward-svg { display: block; width: 100%; height: auto; }
.stb-ward-svg .ward path { fill-opacity: .5; stroke: #fff; stroke-width: 3; transition: fill-opacity .15s, stroke .15s; cursor: pointer; }
.stb-ward-svg .ward:hover path, .stb-ward-svg .ward:focus path { fill-opacity: .88; stroke: var(--navy); stroke-width: 4; }
.stb-ward-svg .ward:focus { outline: none; }
.stb-ward-map figcaption { position: absolute; left: 1rem; bottom: .8rem; background: rgba(255,255,255,.9); padding: .35rem .7rem; border-radius: 6px; font-size: .82rem; color: var(--slate); }
.stb-ward-tip { position: absolute; pointer-events: none; background: var(--navy); color: var(--white); font: 600 .85rem/1.35 var(--font); padding: .45rem .7rem; border-radius: 6px; box-shadow: var(--shadow); white-space: nowrap; transform: translate(-50%, -130%); z-index: 2; }
.stb-ward-list ul { columns: 3 220px; margin: .5rem 1.1rem 1rem; padding: 0 !important; list-style: none; }
.stb-ward-list li { padding: .2rem 0; break-inside: avoid; font-size: .9rem; }
.stb-wards > .wp-block-group__inner-container, .stb-wards:not(:has(> .wp-block-group__inner-container)) { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.stb-ward-card { position: relative; }
.stb-ward-badge { position: absolute; top: .7rem; left: .7rem; z-index: 2; margin: 0 !important; background: var(--navy); color: var(--white); font: 700 .78rem var(--head); text-transform: uppercase; letter-spacing: .05em; padding: .3rem .6rem; border-radius: 6px; }
.stb-ward-card .stb-person-name a { color: var(--slate); text-decoration: none; }
.stb-ward-card .stb-person-name a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.stb-ward-card .stb-person-contact a { position: relative; z-index: 2; }
.stb-ward-card:hover .stb-person-name a { color: var(--maroon); }

/* ---------- name lockup beside the navy logo block (official wording, set as crisp text) ---------- */
.brand-text { display: flex; flex-direction: column; justify-content: center; text-decoration: none; padding-right: .5rem; margin-left: -.5rem; white-space: nowrap; }
.brand-name { font: 600 1.45rem/1 'Cormorant Garamond', 'Times New Roman', Georgia, serif; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); }
.brand-sub { margin-top: .35rem; font: 600 .62rem/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.brand-text:hover .brand-name { color: var(--maroon); }
.site-header.is-scrolled .brand-name { font-size: 1.25rem; }
.site-header.is-scrolled .brand-sub { opacity: 0; max-height: 0; margin: 0; overflow: hidden; }
.brand-sub { transition: opacity .2s, max-height .2s, margin .2s; max-height: 2rem; }
@media (max-width: 1360px) and (min-width: 961px) { .brand-sub { display: none; } .brand-name { font-size: 1.2rem; letter-spacing: .1em; } .main-menu > li > a { padding-left: .7rem; padding-right: .7rem; } }
@media (max-width: 1140px) and (min-width: 961px) { .brand-text { display: none; } }
@media (max-width: 960px) { .brand-text { padding-left: 1rem; margin-left: 0; } .brand-name { font-size: 1.1rem; } .brand-sub { font-size: .55rem; } }
@media (max-width: 420px) { .brand-sub { display: none; } }
@media (max-width: 960px) {
	.header-inner { flex-wrap: wrap; }
	.brand-text { flex: 1 1 auto; min-width: 0; padding-left: .8rem; }
	.nav-toggle { margin-left: .5rem; flex: 0 0 auto; }
}
@media (max-width: 480px) {
	.brand-name { font-size: .98rem; letter-spacing: .08em; }
	.nav-toggle-label { display: none; }
	.nav-toggle { padding: .6rem .7rem; }
}

/* ---------- official logo artwork (cut from Logo-vertical-cmyk-300dpi) ---------- */
.brand .site-logo-img { width: auto; height: 62px; max-height: none; }
.site-header.is-scrolled .brand .site-logo-img { height: 40px; max-height: none; }
.brand-text { gap: 0; }
.brand-text .brand-name { display: block; width: 230px; height: auto; font: inherit; letter-spacing: 0; }
.brand-text .brand-sub { display: block; width: 230px; height: auto; margin-top: .45rem; max-height: 40px; }
.site-header.is-scrolled .brand-text .brand-name { width: 190px; }
.site-header.is-scrolled .brand-text .brand-sub { opacity: 0; max-height: 0; margin: 0; }
@media (max-width: 1360px) and (min-width: 961px) { .brand-text .brand-name { width: 180px; } }
@media (max-width: 960px) { .brand .site-logo-img { height: 46px; } .brand-text .brand-name { width: 170px; } .brand-text .brand-sub { width: 170px; } }
@media (max-width: 480px) { .brand-text .brand-name { width: 140px; } .brand-text .brand-sub { display: none; } }

/* =========================================================
   2026 polish — native browser features, no framework
   ========================================================= */

/* 1. app-like page changes: cross-fade between pages, header stays put */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; animation-timing-function: ease-out; }

/* 2. scroll reveal (only applied to elements that start below the fold; see nav.js) */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .6s cubic-bezier(.2,.7,.2,1) calc(var(--i, 0) * 70ms), transform .6s cubic-bezier(.2,.7,.2,1) calc(var(--i, 0) * 70ms); }

/* 3. frosted sticky header once scrolled */
@supports (backdrop-filter: blur(8px)) {
	.site-header.is-scrolled { background: rgba(255, 255, 255, .82); backdrop-filter: saturate(160%) blur(12px); }
}

/* 4. small touches */
.btn, .wp-block-button__link { transition: background .15s, color .15s, transform .15s, box-shadow .15s; }
.btn:hover, .wp-block-button__link:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -10px rgba(0, 33, 87, .5); }
.btn:active, .wp-block-button__link:active { transform: none; box-shadow: none; }
.hero-search, .quick-search { transition: box-shadow .2s, border-color .2s; }
.hero-search:focus-within { box-shadow: 0 0 0 4px rgba(212, 176, 100, .45), var(--shadow); }
.quick-search:focus-within { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0, 33, 87, .12); }
.entry-content img, .card-media img, .stb-person-photo img { transition: opacity .4s ease; }
img.is-loading { opacity: 0; }
.page-header, .post-hero { position: relative; overflow: hidden; }
.page-header::after, .post-hero::after {
	content: ''; position: absolute; right: -40px; top: 50%; width: 260px; height: 500px; transform: translateY(-50%);
	background: url(../img/crest-white.png) center / contain no-repeat; opacity: .06; pointer-events: none;
}
.page-header .container, .post-hero .container { position: relative; z-index: 1; }
a, .main-menu a, .quick-menu a { transition: color .15s; }

@media (prefers-reduced-motion: reduce) {
	@view-transition { navigation: none; }
	.reveal, .reveal.is-in { opacity: 1; transform: none; transition: none; }
	.btn:hover, .wp-block-button__link:hover { transform: none; }
	img.is-loading { opacity: 1; }
}

/* back-link above page titles + ward pager */
.page-crumb { margin: 0 0 .6rem; font-size: .85rem; }
.page-crumb a { color: rgba(255, 255, 255, .85); text-decoration: none; font-weight: 600; }
.page-crumb a:hover { color: var(--white); text-decoration: underline; }
.ward-pager { grid-template-columns: 1fr auto 1fr; margin-top: 2.5rem; }
.ward-pager .pager-map { text-align: center; background: var(--navy); color: var(--white); }
.ward-pager .pager-map span { color: rgba(255, 255, 255, .7); }
.ward-pager .pager-map:hover { background: var(--maroon); color: var(--white); }
.ward-pager .pager-next { grid-column: 3; }
@media (max-width: 640px) { .ward-pager { grid-template-columns: 1fr 1fr; } .ward-pager .pager-map { grid-column: 1 / -1; order: -1; } .ward-pager .pager-next { grid-column: 2; } }

/* ---------- breadcrumbs (in the navy title band) ---------- */
.breadcrumbs { margin: 0 0 .7rem; font-size: .82rem; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; }
.breadcrumbs li { color: rgba(255, 255, 255, .7); display: inline-flex; align-items: center; gap: .5rem; }
.breadcrumbs li + li::before { content: ''; width: 5px; height: 5px; border-right: 1.5px solid rgba(255,255,255,.5); border-top: 1.5px solid rgba(255,255,255,.5); transform: rotate(45deg); }
.breadcrumbs a { color: rgba(255, 255, 255, .88); text-decoration: none; font-weight: 600; }
.breadcrumbs a:hover { color: var(--white); text-decoration: underline; }
.breadcrumbs [aria-current] { max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; }

/* =========================================================
   Mobile review fixes
   ========================================================= */

/* sidebar layout collapses to one column on phones/tablets (the earlier rule was being overridden) */
@media (max-width: 960px) {
	.has-sidebar { grid-template-columns: minmax(0, 1fr) !important; gap: 2rem; }
	.has-sidebar .sidebar { border-top: 1px solid var(--line); padding-top: 1.5rem; }
	.post-layout { grid-template-columns: minmax(0, 1fr) !important; }
}

/* quick links: one tidy scrolling row on phones instead of a three-line block */
@media (max-width: 960px) {
	.quickbar-inner { flex-wrap: nowrap; gap: .75rem; min-height: 44px; padding: 0; }
	.quickbar-label { display: none; }
	.quick-nav { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; mask-image: linear-gradient(90deg, #000 88%, transparent); }
	.quick-nav::-webkit-scrollbar { display: none; }
	.quick-menu { flex-wrap: nowrap; gap: 1.1rem; white-space: nowrap; padding: .85rem 1.5rem .85rem 0; }
	.quick-search { display: none; }
}

/* breadcrumbs on small screens: single scrolling line, clean separators */
@media (max-width: 640px) {
	.breadcrumbs ol { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
	.breadcrumbs ol::-webkit-scrollbar { display: none; }
	.breadcrumbs [aria-current] { max-width: none; }
}
.breadcrumbs li[aria-current]::before { margin-right: .1rem; }
.breadcrumbs li:not(:first-child)::before { margin-left: .1rem; }

/* title bands and news header: tighter on phones */
@media (max-width: 640px) {
	.page-header { padding: 1.4rem 0; }
	.page-header::after, .post-hero::after { width: 160px; height: 320px; right: -50px; }
	.post-hero { padding: 1.6rem 0 1.8rem; }
	.post-hero.has-image { padding-bottom: 4.5rem; }
	.post-title { font-size: 1.55rem; }
	.post-figure { margin-top: -3rem; }
	.section { padding: 1.75rem 0 2.5rem; }
	h1 { font-size: 1.7rem; }
	.entry-content { overflow-wrap: break-word; }
	/* wide tables and embeds scroll inside their own box instead of widening the page */
	.entry-content table, .wp-block-table { display: block; overflow-x: auto; max-width: 100%; }
	.entry-content iframe, .stb-map { max-width: 100%; }
}

/* body-level safety net against horizontal scrolling */
html, body { overflow-x: clip; }

/* buttons rows and block columns stack on phones */
@media (max-width: 640px) {
	.entry-content .wp-block-buttons { flex-direction: column; align-items: stretch; }
	.entry-content .wp-block-button__link { display: block; text-align: center; }
	.entry-content .wp-block-columns { flex-direction: column; gap: 1.25rem; }
	.entry-content .wp-block-column { flex-basis: auto !important; width: 100%; }
}

/* tap targets: at least 44px on interactive rows */
@media (max-width: 960px) {
	.wp-block-details summary { padding-top: 1rem; padding-bottom: 1rem; min-height: 44px; }
	.main-menu > li > a { min-height: 44px; display: flex; align-items: center; }
	.main-menu .sub-menu a { padding-top: .8rem; padding-bottom: .8rem; }
	.stb-contacts li { padding: .35rem 0; }
}

/* ward map: label sits under the map, not over it, on phones */
@media (max-width: 640px) {
	.stb-ward-map figcaption { position: static; background: transparent; padding: .6rem 1rem; }
	.stb-ward-list ul { columns: 1; }
}

/* mobile menu: left-aligned rows, label on the left with its small description under it */
@media (max-width: 960px) {
	.header-nav { background: var(--white); }
	.main-nav { display: block; width: 100%; }
	.main-menu { flex-direction: column; align-items: stretch; width: 100%; }
	.main-menu > li { display: block; width: 100%; border-top: 1px solid var(--line); position: relative; }
	.main-menu > li > a { display: block; padding: .9rem 3rem .9rem 0; min-height: 44px; font-size: .95rem; }
	.main-menu > li > a .menu-desc { display: block; margin-top: .2rem; opacity: 1; max-height: none; }
	.main-menu > li > a::after { display: none; }
	.main-menu > li.special { margin: .75rem 0 0; border-top: 0; }
	.main-menu > li.special > a { text-align: center; margin: 0; border-radius: 8px; }
	.btn-report { width: 100%; margin-top: .75rem; }
	.site-header.is-scrolled .menu-desc { opacity: 1; max-height: none; }
}

/* mobile header: logo block flush with the left edge; larger, borderless menu button on the right */
@media (max-width: 960px) {
	.site-header .container.header-inner { width: 100%; max-width: none; }
	.header-inner { padding-right: 0; }
	.nav-toggle { margin: 0 .4rem 0 auto; padding: .9rem 1rem; border: 0; background: transparent; border-radius: 8px; gap: 0; color: var(--navy); }
	.nav-toggle:hover, .nav-toggle:focus-visible { background: rgba(0, 33, 87, .06); }
	.nav-toggle-label { display: none; }
	.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { width: 28px; height: 3px; border-radius: 2px; }
	.nav-toggle-bars::before { top: -9px; }
	.nav-toggle-bars::after { top: 9px; }
	/* menu content keeps a page gutter now that the header row is full width */
	.header-nav { padding-left: 1rem; padding-right: 1rem; }
	.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
	.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
	.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }
	.nav-toggle-bars::before, .nav-toggle-bars::after { transition: transform .2s, top .2s; }
}
@media (max-width: 480px) { .nav-toggle { padding: .9rem .9rem; } }

/* breadcrumbs: identical chevron separators and even spacing, including the current page */
.breadcrumbs ol { gap: .35rem .6rem; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: .6rem; min-width: 0; }
.breadcrumbs li + li::before { content: ''; display: block; flex: 0 0 auto; width: 6px; height: 6px; margin: 0 .15rem 0 0; border-right: 1.5px solid rgba(255,255,255,.55); border-top: 1.5px solid rgba(255,255,255,.55); transform: rotate(45deg); }
.breadcrumbs [aria-current] { max-width: none; display: inline-flex; overflow: visible; }
.breadcrumbs .crumb-current { display: block; min-width: 0; max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) { .breadcrumbs .crumb-current { max-width: none; } }

/* tagline "Munisipaliteit • Umasipala • Municipality" under the name on phones/tablets; desktop shows the full two-line lockup */
.brand-tagline { display: none; }
@media (max-width: 960px) {
	.brand-text .brand-sub { display: none !important; }
	.brand-text .brand-tagline { display: block; width: 190px; height: auto; margin-top: .4rem; }
	.brand-text .brand-name { width: 190px; }
	.site-header.is-scrolled .brand-text .brand-tagline { width: 160px; margin-top: .25rem; }
	.site-header.is-scrolled .brand-text .brand-name { width: 160px; }
}
@media (max-width: 400px) {
	.brand-text .brand-tagline, .brand-text .brand-name { width: 168px; }
	.site-header.is-scrolled .brand-text .brand-tagline, .site-header.is-scrolled .brand-text .brand-name { width: 148px; }
}
@media (max-width: 960px) {
	.brand-text { padding-right: 0; }
	.brand-text .brand-name, .brand-text .brand-tagline { width: clamp(150px, calc(100vw - 150px), 300px); }
	.brand-text .brand-tagline { margin-top: .3rem; }
	.site-header.is-scrolled .brand-text .brand-name, .site-header.is-scrolled .brand-text .brand-tagline { width: clamp(140px, calc(100vw - 170px), 270px); }
	.nav-toggle { padding-left: .8rem; padding-right: .8rem; }
}

/* =========================================================
   Mobile home landing
   ========================================================= */
.home-quick { display: none; }
@media (max-width: 960px) {
	/* hero: taller, poster text visible, compact search anchored at the bottom */
	.hero-video { min-height: 320px; background-position: center top; align-items: flex-end; }
	.hero-video .hero-inner { padding: 0 0 1.1rem; }
	.hero-video .hero-search { flex-direction: row; padding: .3rem; width: 100%; box-shadow: 0 10px 24px -8px rgba(0,0,0,.45); }
	.hero-video .hero-search input { padding: .7rem .8rem; font-size: 1rem; }
	.hero-video .hero-search .btn { width: auto; padding: .7rem 1.1rem; }
	.hero-video::after { content: ''; position: absolute; inset: auto 0 0 0; height: 55%; background: linear-gradient(0deg, rgba(0,33,87,.55), transparent); pointer-events: none; }
	.hero-video .hero-inner { position: relative; z-index: 2; }

	/* popular tasks: 2 x 2 tiles straight under the hero */
	.home-quick { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; padding: .9rem 1rem 0; background: var(--white); }
	.home-quick a { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; padding: .9rem; border-radius: 12px; background: var(--light); color: var(--navy); text-decoration: none; font: 600 .92rem/1.25 var(--head); border: 1px solid var(--line); min-height: 88px; }
	.home-quick a:active { background: var(--white); box-shadow: var(--shadow); }
	.home-quick svg { color: var(--maroon); }
	.home-quick a::after { display: none !important; }

	/* emergency numbers first, as 2 x 2 tap-to-call tiles */
	.home-content { display: flex; flex-direction: column; }
	.stb-contacts { order: -1; padding: 1rem; margin-top: .9rem; }
	.stb-contacts ul { grid-template-columns: 1fr 1fr; gap: .6rem; width: 100%; }
	.stb-contacts li { background: rgba(255,255,255,.12); border-radius: 10px; padding: .7rem .8rem; font-size: 1.05rem; }
	.stb-contacts small { font-size: .68rem; }
	.stb-services { order: 0; }
	.stb-cards, .stb-banner, .stb-social, .stb-welcome { order: 1; }

	/* service blocks become compact accordion rows */
	.stb-services > .wp-block-group__inner-container { display: block !important; width: 100% !important; margin: 0 !important; box-shadow: none; }
	.stb-service { padding: 0; }
	.stb-service > .wp-block-group__inner-container { padding: 0; }
	.stb-service .svc-head { display: flex; align-items: center; gap: .9rem; width: 100%; padding: 1rem 1.1rem; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
	.stb-service .svc-head .stb-icon { margin: 0 !important; width: 40px; flex: 0 0 auto; }
	.stb-service .svc-head .stb-icon img { width: 40px !important; height: auto; }
	.stb-service .svc-head h2 { margin: 0; flex: 1; font-size: 1.1rem; }
	.stb-service .svc-head h2 a { pointer-events: none; }
	.stb-service .svc-head::after { content: ''; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; margin-right: .3rem; }
	.stb-service.is-open .svc-head::after { transform: rotate(-135deg); }
	.stb-service ul { display: none; margin: 0; padding: 0 1.1rem 1.2rem 1.1rem; list-style: none; }
	.stb-service.is-open ul { display: block; }
	.stb-service li { margin: 0; border-top: 1px solid rgba(255,255,255,.22); }
	.stb-service li a { display: block; padding: .7rem 0; }
	.stb-service li.svc-all a { font-weight: 700; }

	/* news: swipeable cards */
	.home-news { padding: 2rem 0 2.5rem; }
	.home-news .card-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; grid-template-columns: none; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 1rem 1rem; margin: 0 -1rem; scrollbar-width: none; }
	.home-news .card-grid::-webkit-scrollbar { display: none; }
	.home-news .card { scroll-snap-align: start; }
	.home-news .section-more { margin-top: .5rem; }
}

/* no "opens in new tab" arrow on icon-only links; tidy social row on phones */
.wp-block-social-links a::after, .home-quick a::after, .stb-contacts a::after, .stb-service .svc-head a::after { display: none !important; }
@media (max-width: 640px) {
	.stb-social .wp-block-social-links { justify-content: center; gap: 1.1rem; }
	.stb-cards .wp-block-column { padding: 1.5rem 1.25rem; }
	.stb-cards .wp-block-column p { margin-bottom: 1rem; }
}

/* mobile logo: a touch smaller (crest block and lettering) */
@media (max-width: 960px) {
	.brand .site-logo { padding: .5rem .85rem; }
	.brand .site-logo-img { height: 48px; }
	.brand-text { margin-left: .1rem; }
	.brand-text .brand-name, .brand-text .brand-tagline { width: clamp(130px, calc(100vw - 205px), 230px); }
	.brand-text .brand-tagline { margin-top: .25rem; }
	.site-header.is-scrolled .brand .site-logo-img { height: 36px; }
	.site-header.is-scrolled .brand-text .brand-name, .site-header.is-scrolled .brand-text .brand-tagline { width: clamp(120px, calc(100vw - 220px), 200px); }
	.nav-toggle { margin-right: .2rem; }
	.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { width: 26px; }
}

/* =========================================================
   Navy banner header with the official white logo (2025 emblem pack)
   ========================================================= */
.site-header { background: var(--navy); box-shadow: none; }
@supports (backdrop-filter: blur(8px)) {
	.site-header.is-scrolled { background: rgba(0, 33, 87, .9); backdrop-filter: saturate(150%) blur(12px); }
}
.site-header.is-scrolled { box-shadow: 0 8px 22px -12px rgba(0, 20, 60, .6); }
.header-inner { min-height: 92px; align-items: center; gap: 1.5rem; }
.site-brand { display: flex; align-items: center; flex: 0 0 auto; padding: .75rem 0; }
.site-brand img { display: block; height: 64px; width: auto; transition: height .2s ease; }
.site-header.is-scrolled .header-inner { min-height: 66px; }
.site-header.is-scrolled .site-brand { padding: .5rem 0; }
.site-header.is-scrolled .site-brand img { height: 46px; }

.main-menu > li > a { color: var(--white); }
.main-menu > li + li > a { border-left-color: rgba(255, 255, 255, .2); }
.main-menu > li > a:hover, .main-menu > li.current-menu-item > a, .main-menu > li.current-menu-ancestor > a { color: #e7cf8a; }
.menu-desc { color: rgba(255, 255, 255, .62); }
.main-menu > li.special > a { background: var(--maroon); color: var(--white); box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); }
.btn-report { box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); }
.btn-report:hover { background: #b0213c; }
.nav-toggle { color: var(--white); }
.nav-toggle:hover, .nav-toggle:focus-visible { background: rgba(255, 255, 255, .1); }

@media (max-width: 960px) {
	.site-header .container.header-inner { width: 100%; padding-left: 1rem; gap: 0; min-height: 74px; }
	.site-brand img { height: auto; width: clamp(190px, calc(100vw - 130px), 290px); }
	.site-header.is-scrolled .header-inner { min-height: 58px; }
	.site-header.is-scrolled .site-brand img { width: clamp(150px, calc(100vw - 170px), 210px); }
	.header-nav { background: var(--navy); border-top: 1px solid rgba(255, 255, 255, .15); }
	.main-menu > li { border-top-color: rgba(255, 255, 255, .15); }
	.main-menu > li > a { color: var(--white); }
	.main-menu > li > a .menu-desc { color: rgba(255, 255, 255, .62); }
	.main-menu .sub-menu { background: rgba(255, 255, 255, .07); }
	.main-menu .sub-menu a { color: var(--white); }
	.main-menu .sub-menu a:hover { color: #e7cf8a; }
	.submenu-toggle::before { border-color: var(--white); }
	.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { background: var(--white); }
	.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
}

/* footer: official vertical lockup */
.footer-brand img { width: min(100%, 230px); height: auto; display: block; }

/* =========================================================
   Header options. Option 1 (default) = navy banner, larger logo.
   ========================================================= */
@media (min-width: 961px) {
	.header-inner { min-height: 112px; }
	.site-brand img { height: 86px; }
	.site-header.is-scrolled .header-inner { min-height: 70px; }
	.site-header.is-scrolled .site-brand img { height: 52px; }
}
@media (max-width: 960px) {
	.site-brand img { width: clamp(230px, calc(100vw - 100px), 320px); }
	.site-header.is-scrolled .site-brand img { width: clamp(170px, calc(100vw - 150px), 230px); }
}

/* header: a little more breathing room around the logo */
@media (min-width: 961px) {
	.header-inner { min-height: 128px; gap: 2rem; }
	.site-brand { padding: 1.25rem 0; margin-right: .5rem; }
	.site-header.is-scrolled .header-inner { min-height: 78px; }
	.site-header.is-scrolled .site-brand { padding: .7rem 0; }
}
@media (max-width: 960px) {
	.site-header .container.header-inner { padding-left: 1.15rem; min-height: 88px; }
	.site-brand { padding: 1rem 0; }
	.site-header.is-scrolled .header-inner { min-height: 64px; }
	.site-header.is-scrolled .site-brand { padding: .6rem 0; }
	.site-brand img { width: clamp(220px, calc(100vw - 120px), 300px); }
	.site-header.is-scrolled .site-brand img { width: clamp(160px, calc(100vw - 170px), 220px); }
}

/* "Important pages" sidebar: light grey panel with padding */
.sidebar { align-self: start; background: var(--light); border: 1px solid var(--line); border-top: 4px solid var(--maroon); border-radius: var(--radius); padding: 1.4rem 1.5rem 1.2rem; }
.sidebar .widget { margin: 0 0 1.5rem; }
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title, .sidebar h2, .sidebar h3 { margin: 0 0 .9rem; padding-bottom: .7rem; border-bottom: 1px solid var(--line); font-size: .85rem; letter-spacing: .09em; color: var(--navy); }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { border-bottom: 1px solid var(--line); }
.sidebar li:last-child { border-bottom: 0; }
.sidebar li a { display: block; padding: .6rem 0; font-weight: 500; text-decoration: none; color: var(--slate); transition: color .15s, padding-left .15s; }
.sidebar li a:hover, .sidebar li a:focus-visible { color: var(--maroon); padding-left: .35rem; }
@media (max-width: 960px) { .sidebar { border-top-color: var(--maroon); padding: 1.2rem 1.2rem 1rem; } .has-sidebar .sidebar { border-top: 4px solid var(--maroon); } }

/* icon masks for the home page strips (CSS-only, so editing the page can't strip them) */
:root {
	--ico-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 01-2.2 2 19.8 19.8 0 01-8.6-3.1 19.5 19.5 0 01-6-6A19.8 19.8 0 012.1 4.2 2 2 0 014.1 2h3a2 2 0 012 1.7c.1 1 .4 1.9.7 2.8a2 2 0 01-.5 2.1L8.1 9.9a16 16 0 006 6l1.3-1.3a2 2 0 012.1-.4c.9.3 1.8.6 2.8.7a2 2 0 011.7 2z'/%3E%3C/svg%3E");
	--ico-shield: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E");
	--ico-badge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2l3 6 6 .9-4.4 4.2 1 6.2L12 16.3l-5.6 3 1-6.2L3 8.9 9 8z'/%3E%3C/svg%3E");
	--ico-wrench: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a1 1 0 000 1.4l1.6 1.6a1 1 0 001.4 0l3.77-3.77a6 6 0 01-7.94 7.94l-6.91 6.91a2.12 2.12 0 01-3-3l6.91-6.91a6 6 0 017.94-7.94l-3.76 3.76z'/%3E%3C/svg%3E");
	--ico-event: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5h18v16H3z'/%3E%3Cpath d='M16 3v4'/%3E%3Cpath d='M8 3v4'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E");
	--ico-jobs: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7h18v13H3z'/%3E%3Cpath d='M8 7V4h8v3'/%3E%3Cpath d='M3 13h18'/%3E%3C/svg%3E");
	--ico-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s7-6.2 7-12a7 7 0 10-14 0c0 5.8 7 12 7 12z'/%3E%3Cpath d='M12 12.5a2.5 2.5 0 100-5 2.5 2.5 0 000 5z'/%3E%3C/svg%3E");
}

/* emergency numbers: an icon beside each number */
.stb-contacts li { display: grid; grid-template-columns: auto 1fr; column-gap: .9rem; align-items: center; }
.stb-contacts li::before { content: ''; grid-row: 1 / 3; width: 2rem; height: 2rem; background: var(--gold); -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.stb-contacts li small { grid-column: 2; }
.stb-contacts li a { grid-column: 2; display: block; }
.stb-contacts .ico-phone { --ico: var(--ico-phone); }
.stb-contacts .ico-shield { --ico: var(--ico-shield); }
.stb-contacts .ico-badge { --ico: var(--ico-badge); }
.stb-contacts .ico-wrench { --ico: var(--ico-wrench); }

/* dark cards: an icon above each heading */
.stb-cards .wp-block-column::before { content: ''; display: block; width: 3rem; height: 3rem; margin: 0 auto 1rem; background: var(--gold); -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.stb-cards .ico-event { --ico: var(--ico-event); }
.stb-cards .ico-jobs { --ico: var(--ico-jobs); }
.stb-cards .ico-pin { --ico: var(--ico-pin); }

/* mayor's welcome banner: full width, no padding or rounding */
.stb-banner { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
.stb-banner > .wp-block-group__inner-container { margin: 0; padding: 0; }
.stb-banner img, .stb-banner figure { display: block; width: 100%; max-width: none; margin: 0; border-radius: 0; }

/* quick links centred on the page; search stays at the right edge */
@media (min-width: 961px) {
	.quickbar-inner { display: grid; grid-template-columns: 1fr auto 1fr; }
	.quickbar-label { display: none; }
	.quick-nav { grid-column: 2; }
	.quick-menu { justify-content: center; }
	.quick-search { grid-column: 3; justify-self: end; }
}

/* dropdowns hang from the header's bottom edge, flush with their menu item (navy header) */
@media (min-width: 961px) {
	.header-nav { align-self: stretch; align-items: stretch; }
	.header-nav > .btn-report { align-self: center; }
	.main-nav { display: flex; }
	.main-menu { align-items: stretch; }
	.main-menu > li { display: flex; align-items: center; }
	.main-menu > li > .sub-menu, .main-menu > li:first-child > .sub-menu { left: 0; top: 100%; }
	.main-menu > li:first-child > .sub-menu a { padding-left: .9rem; }
}

/* header shrink: no animated height changes (they fight the scroll position) */
.site-header .header-inner, .site-brand, .site-brand img, .quickbar { transition: none !important; }
.site-header { overflow-anchor: none; }

/* slim notice strip above the header: scrolls away with the page, dismissible */
.site-notice { background: #0b2f6b; color: #e8edf7; border-top: 0; border-bottom: 1px solid rgba(255, 255, 255, .12); font-size: .8rem; line-height: 1.35; }
.site-notice[hidden] { display: none; }
.site-notice-inner { display: flex; align-items: center; justify-content: center; gap: .75rem; min-height: 34px; padding: .35rem 0; }
.site-notice p { margin: 0; text-align: center; }
.site-notice-close { flex: 0 0 auto; appearance: none; border: 0; background: transparent; color: inherit; font-size: 1.3rem; line-height: 1; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; opacity: .8; }
.site-notice-close:hover, .site-notice-close:focus-visible { opacity: 1; background: rgba(255, 255, 255, .14); outline: none; }
@media (max-width: 640px) { .site-notice { font-size: .75rem; } .site-notice-inner { justify-content: space-between; } .site-notice p { text-align: left; } }
.site-notice a { color: var(--gold); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.site-notice a:hover, .site-notice a:focus-visible { color: #fff; }
