/*
Theme Name: Impasugong
Theme URI: https://github.com/InovSea/wp-org-directory
Author: Dominic A. Del Puerto
Description: The website of the Municipality of Impasugong (Impasug-ong), Bukidnon, on the Ivosea theme. Its look comes from the town flag and seal: flag navy over pasture green, gold stars and the brown clay jar with the current turning back into it, which is what the town's Higaonon name means. The homepage opens on the cattle country below the mountains and shows what the town is proud of, from the Communal Ranch to the Higaonon heritage. Activating it sets up the branding, the issuance types (ordinances, resolutions, executive orders) and the About, Government, Tourism and Contact pages.
Template: ivosea
Requires at least: 7.0
Requires PHP: 8.1
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: impasugong
*/

/*
 * Loaded after Ivosea's style.css. Colors, fonts and sizes come from
 * theme.json and Appearance → Branding; this file holds the layout and the
 * details.
 *
 * "Impasugong" is Higaonon for "make the current come upstream". The look
 * follows the town flag: navy sky over a white band over pasture green, a
 * brown clay jar ringed by thirteen gold stars. A navy top bar, a pasture
 * green menu bar over a clay band, a highland night footer, cloud white
 * bands, short navy-gold-green bars under titles and stripes of gold stars on
 * navy. The type and spacing are those of the other town themes: weight 400, wide uppercase
 * display type (Saira), monospaced uppercase labels (JetBrains Mono), a serif
 * for reading (Source Serif 4, 18px), square photos and cards, pill-shaped
 * outlined buttons, 1px hairlines instead of shadows, and wide spacing
 * between sections.
 */

:root {
	--imp-accent: #a8492f;
	--imp-accent-deep: #8a3a25;
	--imp-highlight: #ffd200;
	--imp-tint: #e8efe6;
	--imp-tint-deep: #c6d7c3;
	--imp-ink: var(--wp--preset--color--primary-dark);
	--imp-brand: var(--wp--preset--color--primary);
	/* Gold dark enough for small labels on white and on cloud white. */
	--imp-label: #8a6400;
	--imp-on-brand: #e6ebf5;
	--imp-brand-line: rgba(255, 255, 255, 0.24);
	--imp-surface: var(--wp--preset--color--surface);
	--imp-highlight-pale: #fff7d1;
	--imp-line: var(--wp--preset--color--border);
	--imp-mono: var(--wp--preset--font-family--mono);
	--imp-display: var(--wp--preset--font-family--heading);
	--imp-section: clamp(4rem, 9vw, 7.5rem);
	/* The flag in a short bar: navy, a gold middle, pasture green. Under titles. */
	--imp-dots: linear-gradient(90deg, var(--wp--preset--color--primary-dark) 0 44%, var(--imp-highlight) 44% 56%, var(--wp--preset--color--primary) 56%);
	/* A stripe of gold stars on the flag's navy sky, for the edges of bands (12px high). */
	--imp-stars: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 12' fill='%23FFD200'%3E%3Cpolygon points='9.00,2.00 10.03,4.98 13.18,5.04 10.67,6.94 11.59,9.96 9.00,8.16 6.41,9.96 7.33,6.94 4.82,5.04 7.97,4.98'/%3E%3C/svg%3E") repeat-x 0 50% / 18px 12px, var(--wp--preset--color--primary-dark);
	/* The emblem: the clay jar of the seal, for faint watermarks. */
	--imp-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='%23FFD200'%3E%3Cpath d='M26.5 20.5h11l-2.2 3.4c5.6 1.9 8.7 6 8.7 11.3 0 5.4-3.3 8.9-7.4 10.3l1.2 2h-15.6l1.2-2c-4.1-1.4-7.4-4.9-7.4-10.3 0-5.3 3.1-9.4 8.7-11.3z'/%3E%3C/svg%3E");
	--imp-arrow: 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.25'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------------ */
/* Base                                                                 */
/* ------------------------------------------------------------------ */

strong,
b,
th {
	font-weight: 600;
}

/* Square corners everywhere except buttons. */
img,
.wp-block-image img,
.wp-block-image.alignwide img,
.wp-block-post-featured-image img,
.ivosea-news-thumb,
.ivosea-news-thumb img,
.wp-block-cover,
.wp-block-embed iframe {
	border-radius: 0 !important;
}

/* Keyboard focus: a navy outline with a clay edge, visible on white and on green. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--imp-ink);
	outline-offset: 3px;
	box-shadow: 0 0 0 6px var(--imp-accent);
}

/* Buttons: outlined pills; they fill on hover so it is clear they are pressable. */
.wp-element-button,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.75em;
	min-height: 44px;
	color: var(--imp-brand);
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.wp-block-button.is-style-outline > .wp-block-button__link {
	border-width: 1px;
	padding: 0.875rem 2rem;
}

/* The main button is filled pasture green; it turns star gold on hover. */
.imp-btn-solid .wp-block-button__link {
	border-color: var(--imp-brand);
	background-color: var(--imp-brand);
	color: #fff;
}

.imp-btn-solid .wp-block-button__link:hover,
.imp-btn-solid .wp-block-button__link:focus-visible {
	border-color: var(--imp-highlight);
	background-color: var(--imp-highlight);
	color: var(--wp--preset--color--night);
}

/* Section titles: wide uppercase display type over a short flag bar (navy, gold, green). */
.is-style-section-title {
	font-family: var(--imp-display);
	font-weight: 400;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--imp-ink);
}

.is-style-section-title::after {
	width: 3.5rem;
	height: 6px;
	margin-top: 0.75em;
	border-radius: 999px;
	background: var(--imp-dots);
}

/* Small monospaced uppercase label (eyebrow, captions, dates). */
.imp-label,
.is-style-eyebrow {
	font-family: var(--imp-mono);
	font-size: 0.75rem;
	font-weight: 400;
	letter-spacing: 0.2em;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--imp-label);
}

/* Form fields: square, with a hairline. */
input[type="text"],
input[type="email"],
input[type="search"],
input[type="tel"],
input[type="url"],
textarea,
select,
.wp-block-search__button-inside .wp-block-search__inside-wrapper {
	border-color: #7f8496;
	border-radius: 0;
	box-shadow: none;
}

input::placeholder,
textarea::placeholder {
	font-weight: 400;
}

/* Tables: hairlines, monospaced headings. */
.wp-block-table thead {
	border-bottom: 2px solid var(--imp-brand);
}

.wp-block-table th {
	font-family: var(--imp-mono);
	font-size: 0.75rem;
	font-weight: 400;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	background: transparent;
	color: var(--imp-ink);
}

.wp-block-table tbody tr:nth-child(even) {
	background: color-mix(in srgb, var(--imp-surface) 60%, transparent);
}

.wp-block-table td,
.wp-block-table th {
	border-color: var(--imp-line);
	border-inline: 0;
}

figcaption,
.wp-element-caption {
	color: var(--wp--preset--color--muted);
}

/* ------------------------------------------------------------------ */
/* Header: navy top bar, white masthead, pasture green menu bar      */
/* ------------------------------------------------------------------ */

/* Top bar: a faint field of gold dots, small monospaced type. */
.ivo-topbar {
	background-image: radial-gradient(circle at 50% 50%, rgba(255, 210, 0, 0.12) 0 1.5px, transparent 2px);
	background-size: 9px 9px;
	font-family: var(--imp-mono);
	font-size: 0.6875rem !important;
	font-weight: 400;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

/* Masthead: the pale blue of the flag's clouds fading in on the right. */
.ivo-masthead {
	background-image: linear-gradient(100deg, transparent 55%, rgba(214, 222, 240, 0.55));
}

.ivo-heading {
	color: var(--imp-ink);
}

.ivo-heading__above {
	font-family: var(--imp-mono);
	font-size: 0.625rem;
	font-weight: 400;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.ivo-heading__above:last-of-type {
	border-bottom-color: var(--imp-line);
}

.ivo-heading__name {
	font-weight: 400;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.ivo-heading__below {
	font-family: var(--imp-mono);
	font-size: 0.625rem;
	font-weight: 400;
	letter-spacing: 0.2em;
	color: var(--imp-label);
}

.ivo-masthead__contact a {
	font-family: var(--imp-mono);
	font-size: 0.75rem;
	letter-spacing: 0.06em;
	color: var(--wp--preset--color--contrast);
}

.ivo-masthead__contact a:hover {
	color: var(--imp-brand);
}

.ivo-masthead__contact svg {
	fill: var(--imp-brand);
}

/* Search: an underline. */
.ivo-masthead .wp-block-search__button-inside .wp-block-search__inside-wrapper {
	padding: 0;
	border: 0;
	border-bottom: 1px solid #7f8496;
	background: transparent;
}

.ivo-masthead .wp-block-search__button-inside .wp-block-search__inside-wrapper:focus-within {
	border-bottom-color: var(--imp-brand);
	box-shadow: 0 1px 0 var(--imp-brand);
}

.ivo-masthead .wp-block-search__input {
	background: transparent;
	color: var(--wp--preset--color--contrast);
	font-family: var(--imp-mono);
	font-size: 0.8125rem;
	letter-spacing: 0.06em;
}

.ivo-masthead .wp-block-search__input::placeholder {
	color: var(--wp--preset--color--muted);
	text-transform: uppercase;
	letter-spacing: 0.16em;
}

.ivo-masthead .wp-block-search__button.has-icon {
	background: transparent;
	color: var(--imp-brand);
}

.ivo-masthead .wp-block-search__button.has-icon svg {
	fill: currentColor;
}

/* Menu bar: a band of jar clay underneath; the current page is underlined in star gold. */
.ivo-navbar {
	box-shadow: inset 0 -4px 0 var(--imp-accent);
}

.ivo-main-menu .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	padding-block: 0.5rem;
}

.ivo-main-menu .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content:hover,
.ivo-main-menu .wp-block-navigation__container > .current-menu-item > .wp-block-navigation-item__content,
.ivo-main-menu .wp-block-navigation__container > .current-menu-ancestor > .wp-block-navigation-item__content {
	text-decoration-color: var(--imp-highlight);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.75em;
}

/* The phone menu opens on white, so its close button is green. */
.ivo-navbar .wp-block-navigation__responsive-container-close {
	color: var(--imp-brand) !important;
}

@media (min-width: 782px) {
	.ivo-main-menu .wp-block-navigation__container {
		gap: 0.5rem 2.25rem;
	}

	/* Dropdowns: white panels with a hairline and a clay top, square. */
	.ivo-main-menu .wp-block-navigation__submenu-container {
		border: 1px solid var(--imp-line) !important;
		border-top: 3px solid var(--imp-accent) !important;
		border-radius: 0;
		background-color: #fff !important;
		box-shadow: 0 12px 24px -16px rgba(35, 46, 76, 0.35);
		font-family: var(--imp-mono);
		text-transform: uppercase;
		letter-spacing: 0.12em;
	}

	.ivo-navbar .ivo-main-menu .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
		color: var(--wp--preset--color--contrast) !important;
	}

	.ivo-main-menu .wp-block-navigation__submenu-container .wp-block-navigation-item:hover,
	.ivo-main-menu .wp-block-navigation__submenu-container .wp-block-navigation-item:focus-within {
		background-color: var(--imp-surface);
	}

	.ivo-navbar .ivo-main-menu .wp-block-navigation__submenu-container .wp-block-navigation-item:hover > .wp-block-navigation-item__content,
	.ivo-navbar .ivo-main-menu .wp-block-navigation__submenu-container .current-menu-item > .wp-block-navigation-item__content,
	.ivo-navbar .ivo-main-menu .wp-block-navigation__submenu-container .current-menu-ancestor > .wp-block-navigation-item__content {
		color: var(--imp-brand) !important;
	}
}

/* Phone menu: a full-screen white panel. */
.ivo-navbar .ivo-main-menu .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) {
	background-color: #fff;
	color: var(--imp-ink);
}

.ivo-navbar .ivo-main-menu .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container {
	border-left-color: var(--imp-line);
}

.ivo-navbar .ivo-main-menu .is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content {
	border-bottom: 1px solid var(--imp-line);
	color: var(--imp-ink) !important;
}

.ivo-navbar .ivo-main-menu .is-menu-open .current-menu-item > .wp-block-navigation-item__content {
	padding-left: 0.75rem;
	box-shadow: inset 3px 0 0 var(--imp-accent);
	color: var(--imp-label) !important;
}

/* ------------------------------------------------------------------ */
/* Inner pages: the title on a cloud white band                     */
/* ------------------------------------------------------------------ */

.imp-page-head {
	padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.25rem, 5vw, 3.5rem);
	border-bottom: 1px solid var(--imp-line);
	background-color: var(--imp-surface);
}

.imp-page-head .wp-block-post-title,
.imp-page-head h1 {
	margin: 0;
	color: var(--imp-ink);
	letter-spacing: 0.08em;
	text-wrap: balance;
	overflow-wrap: anywhere;
}

/* A short flag bar under the title. */
.imp-page-head .wp-block-post-title::after,
.imp-page-head h1::after {
	content: "";
	display: block;
	width: 3.5rem;
	height: 6px;
	margin-top: 1.25rem;
	border-radius: 999px;
	background: var(--imp-dots);
}

.imp-page-head .imp-label {
	margin: 0 0 1rem;
}

/* Single posts: title in sentence case, which reads better for long headlines. */
.single-post main h1.wp-block-post-title {
	text-transform: none;
	letter-spacing: 0.01em;
}

.is-style-description {
	font-size: var(--wp--preset--font-size--large);
	color: var(--wp--preset--color--muted);
}

/* ------------------------------------------------------------------ */
/* Homepage                                                             */
/* ------------------------------------------------------------------ */

.imp-home > * + *,
.imp-home .ivo-home-content > * + * {
	margin-block-start: 0;
}

/*
 * Hero: one screen. The photo fills what is left under the
 * header (about 14rem), anchored so the hills stay in
 * view while the text sits on the clouds.
 * A cloud white wash over the top keeps the green letters crisp; no dark
 * overlay. The photo credit sits in the bottom corner.
 */
.wp-block-cover.imp-hero {
	position: relative;
	min-height: max(36rem, calc(100svh - 14rem));
	padding-block: clamp(2.5rem, 6vh, 5rem) 3.5rem;
	align-items: flex-start;
	background-color: var(--imp-surface);
}

.imp-hero .wp-block-cover__background {
	z-index: 1;
	background: linear-gradient(180deg, rgba(244, 245, 250, 0.92) 0%, rgba(244, 245, 250, 0.8) 45%, rgba(244, 245, 250, 0) 76%) !important;
	opacity: 1 !important;
}

.imp-hero .wp-block-cover__inner-container {
	position: static;
	z-index: 2;
	color: var(--imp-ink);
}

.imp-hero .wp-block-cover__inner-container > * {
	position: relative;
	z-index: 2;
}

.imp-hero__eyebrow {
	margin: 0 0 1.25rem;
	color: var(--imp-label) !important;
}

.imp-hero h1 {
	margin: 0;
	color: var(--imp-brand);
	font-size: clamp(2.25rem, 8.2vw, 7.5rem);
	line-height: 0.92;
	letter-spacing: 0.1em;
	margin-inline-end: -0.1em;
	overflow-wrap: anywhere;
}

/* A flag bar under the name. */
.imp-hero h1::after {
	content: "";
	display: block;
	width: 4.5rem;
	height: 8px;
	margin-top: clamp(1rem, 2vw, 1.5rem);
	border-radius: 999px;
	background: var(--imp-dots);
}

.imp-hero__row {
	gap: 1.5rem;
	margin-top: clamp(1.25rem, 2.5vw, 2rem) !important;
}

.imp-hero__lead {
	max-width: 36rem;
	margin: 0;
	color: var(--wp--preset--color--contrast);
	font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
	line-height: 1.55;
}

.imp-hero .wp-block-buttons {
	gap: 0.75rem;
}

/* Outlined button: a soft white fill so it reads over the clouds. */
.imp-hero .wp-block-button:not(.imp-btn-solid) .wp-block-button__link {
	background-color: rgba(255, 255, 255, 0.72);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.imp-hero .wp-block-button:not(.imp-btn-solid) .wp-block-button__link:hover {
	background-color: var(--imp-brand);
	color: #fff;
}

.imp-hero__credit {
	position: absolute !important;
	right: var(--wp--preset--spacing--40);
	bottom: 1rem;
	left: var(--wp--preset--spacing--40);
	max-width: none !important;
	margin: 0 !important;
	font-family: var(--imp-mono);
	font-size: 0.625rem;
	letter-spacing: 0.12em;
	text-align: right;
	text-transform: uppercase;
	color: #fff;
	text-shadow: 0 1px 3px rgba(21, 28, 48, 0.85);
}

.imp-hero__credit a {
	color: inherit;
}

/*
 * Slides (Ivosea Carousel) at the top of the homepage: wide uppercase titles
 * at weight 400, a highland night shade rising from the bottom only, and a star
 * gold pill button.
 */
.imp-home .ivo-carousel {
	background: var(--wp--preset--color--night);
}

.imp-home .ivo-carousel__slide::after {
	background: linear-gradient(to top, rgba(21, 28, 48, 0.86) 0%, rgba(21, 28, 48, 0.45) 42%, rgba(21, 28, 48, 0) 75%);
}

.imp-home .ivo-carousel__title {
	font-family: var(--imp-display);
	font-size: clamp(2rem, 4.6vw, 3.75rem);
	font-weight: 400;
	letter-spacing: 0.06em;
	line-height: 1.08;
	text-transform: uppercase;
}

.imp-home .ivo-carousel__text {
	max-width: 38rem;
	font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
}

.imp-home .ivo-carousel .ivo-carousel__button {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	min-height: 3rem;
	padding: 0.75rem 1.75rem;
	border: 1px solid var(--imp-highlight);
	border-radius: 9999px;
	background: var(--imp-highlight);
	color: var(--wp--preset--color--night);
	font-family: var(--imp-mono);
	font-size: 0.8125rem;
	letter-spacing: 0.16em;
	line-height: 1;
	text-transform: uppercase;
}

.imp-home .ivo-carousel .ivo-carousel__button:hover,
.imp-home .ivo-carousel .ivo-carousel__button:focus-visible {
	border-color: #fff;
	background: #fff;
	color: var(--imp-ink);
}

.imp-home .ivo-carousel__control {
	background: rgba(21, 28, 48, 0.55);
}

.imp-home .ivo-carousel__control:hover {
	background: var(--imp-brand);
}

.imp-home .ivo-carousel__dot[aria-current="true"]::before {
	background: var(--imp-accent);
}

/* At a glance: four figures between hairlines, on a green band under a stripe of stars. */
.imp-glance {
	position: relative;
	padding-block: 1rem clamp(2rem, 4vw, 3rem);
	background-color: var(--imp-brand);
}

.imp-glance::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 12px;
	background: var(--imp-stars);
}

.imp-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}

.imp-stats > li {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 2rem 1.5rem 2rem 0;
	border-bottom: 1px solid var(--imp-brand-line);
}

.imp-stats > li + li {
	padding-left: 1.5rem;
	border-left: 1px solid var(--imp-brand-line);
}

.imp-stats strong {
	font-family: var(--imp-display);
	font-size: clamp(1.75rem, 3.2vw, 2.75rem);
	font-weight: 300;
	line-height: 1;
	letter-spacing: 0.04em;
	white-space: nowrap;
	color: #fff;
	font-variant-numeric: tabular-nums;
}

.imp-stats small {
	margin-left: 0.25em;
	font-size: 0.45em;
	letter-spacing: 0.1em;
}

.imp-stats span {
	font-family: var(--imp-mono);
	font-size: 0.6875rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--imp-on-brand);
}

/* Section heading row: label and title on the left, a link on the right. */
.imp-section {
	padding-block: var(--imp-section) 0;
}

.imp-section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem 2rem;
	margin-bottom: clamp(2rem, 4vw, 3rem);
}

.imp-section-head .imp-label {
	margin: 0 0 0.75rem;
}

.imp-section-head h2 {
	margin: 0;
	color: var(--imp-ink);
	font-size: var(--wp--preset--font-size--xx-large);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.imp-more {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	min-height: 44px;
	font-family: var(--imp-mono);
	font-size: 0.75rem;
	letter-spacing: 0.18em;
	text-decoration: none;
	text-transform: uppercase;
	color: var(--imp-brand);
}

.imp-more::after {
	content: "";
	width: 1.5rem;
	height: 1.5rem;
	background: currentColor;
	-webkit-mask: var(--imp-arrow) center / contain no-repeat;
	mask: var(--imp-arrow) center / contain no-repeat;
	transition: transform 0.2s ease;
}

.imp-more:hover {
	text-decoration: underline;
	text-underline-offset: 0.4em;
}

.imp-more:hover::after {
	transform: translateX(4px);
}

/* Services: one row per task, the whole row is the link. */
.imp-services {
	margin: 0;
	padding: 0;
	border-top: 2px solid var(--imp-brand);
	list-style: none;
}

.imp-services > li {
	border-bottom: 1px solid var(--imp-line);
}

.imp-services a {
	display: grid;
	grid-template-columns: 3rem minmax(0, 1fr) auto 2rem;
	align-items: center;
	gap: 1.5rem;
	min-height: 44px;
	padding: 1.5rem 0.25rem;
	color: var(--imp-ink);
	text-decoration: none;
	transition: background-color 0.2s ease, padding 0.2s ease;
}

.imp-services a::after {
	content: "";
	width: 1.75rem;
	height: 1.75rem;
	background: currentColor;
	-webkit-mask: var(--imp-arrow) center / contain no-repeat;
	mask: var(--imp-arrow) center / contain no-repeat;
	transition: transform 0.2s ease;
}

.imp-services a:hover {
	padding-inline: 1rem 0.75rem;
	background: var(--imp-surface);
	color: var(--imp-brand);
	box-shadow: inset 3px 0 0 var(--imp-accent);
}

.imp-services a:hover::after {
	transform: translateX(4px);
}

.imp-services__no {
	font-family: var(--imp-mono);
	font-size: 0.75rem;
	letter-spacing: 0.14em;
	color: var(--imp-label);
}

.imp-services__title {
	display: block;
	font-family: var(--imp-display);
	font-size: clamp(1.25rem, 2.2vw, 1.625rem);
	line-height: 1.2;
	letter-spacing: 0.04em;
}

.imp-services__text {
	display: block;
	margin-top: 0.25rem;
	font-size: 1rem;
	color: var(--wp--preset--color--muted);
}

.imp-services__tag {
	font-family: var(--imp-mono);
	font-size: 0.6875rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
	text-align: right;
}

/* News: square photo cards with a hairline, three across. */
.imp-news .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.5rem, 3vw, 2.5rem);
	margin: 0;
	padding: 0;
}

.imp-news .wp-block-post-template > li {
	margin: 0;
}

.imp-news-card {
	position: relative;
	height: 100%;
	border-bottom: 1px solid var(--imp-line);
	padding-bottom: 1.5rem;
}

.imp-news-card .ivosea-news-thumb,
.imp-news-card .wp-block-post-featured-image {
	aspect-ratio: 16 / 10;
	width: 100%;
	margin: 0 0 1.25rem;
	overflow: hidden;
	background: var(--imp-surface);
}

.imp-news-card .ivosea-news-thumb img,
.imp-news-card .wp-block-post-featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.imp-news-card:hover img {
	transform: scale(1.03);
}

.imp-news-card .wp-block-post-date {
	color: var(--imp-label);
}

.imp-news-card .wp-block-post-title {
	margin: 0.5rem 0 0.75rem;
	font-size: clamp(1.1875rem, 1.6vw, 1.375rem);
	line-height: 1.3;
	letter-spacing: 0.02em;
}

.imp-news-card .wp-block-post-title a {
	text-decoration: none;
}

/* The whole card is clickable through the title link. */
.imp-news-card .wp-block-post-title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.imp-news-card .wp-block-post-title a:hover {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.imp-news-card .wp-block-post-excerpt {
	margin: 0;
	font-size: 1rem;
	color: var(--wp--preset--color--muted);
}

.imp-news-card .wp-block-post-excerpt__more-link {
	display: none;
}

/* Latest ordinances on a pale gold band under a stripe of stars. */
.imp-issuances.has-background {
	position: relative;
	margin-top: var(--imp-section) !important;
	padding-block: var(--imp-section);
	background-color: var(--imp-highlight-pale) !important;
}

.imp-issuances::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 12px;
	background: var(--imp-stars);
}

/* Videos (only when there are any), then Visit and Find us. */
.imp-videos > *,
.imp-sites > * {
	padding-top: var(--imp-section);
}

/* Visit: an invitation to the Municipal Hall on cloud white, beside the seal. */
.imp-home .imp-videos:has(> *) + .imp-visit,
.imp-home .imp-sites:has(> *) + .imp-visit,
.imp-home .imp-videos:has(> *) + .imp-sites:not(:has(> *)) + .imp-visit {
	margin-top: var(--imp-section) !important;
}

.imp-visit {
	padding-block: var(--imp-section);
	border-block: 1px solid var(--imp-line);
	background-color: var(--imp-surface);
}

.imp-visit__cols {
	gap: clamp(2rem, 5vw, 5rem);
}

.imp-visit h2 {
	margin: 0.75rem 0 1.25rem;
	color: var(--imp-ink);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.imp-visit p:not(.imp-label) {
	max-width: 34rem;
	color: var(--wp--preset--color--muted);
}

.imp-visit .imp-label {
	margin: 0;
}

.imp-visit .wp-block-buttons {
	gap: 0.75rem;
	margin-top: 2rem;
}

/* The seal, on its own. */
.imp-visit__seal {
	position: relative;
	display: grid;
	place-items: center;
	width: min(100%, 22rem);
	margin: 0 auto;
	aspect-ratio: 1;
}

.imp-visit__seal img {
	position: relative;
	width: 80%;
	height: auto;
}

/*
 * What Impasugong is proud of: the seal beside four things the town is known
 * for, two photo cards
 * (the Communal Ranch, Dila Falls), then four short notes between hairlines.
 */
.imp-seal-band {
	display: grid;
	grid-template-columns: minmax(10rem, 15rem) minmax(0, 1fr);
	align-items: center;
	gap: clamp(1.5rem, 4vw, 4rem);
	padding: clamp(1.5rem, 3vw, 2.5rem);
	border: 1px solid var(--imp-line);
	border-top: 3px solid var(--imp-brand);
	background: linear-gradient(115deg, var(--imp-surface) 0%, #fff 70%);
}

.imp-seal-band__seal {
	position: relative;
	margin: 0;
	aspect-ratio: 1;
	display: grid;
	place-items: center;
}

.imp-seal-band__seal img {
	position: relative;
	width: 88%;
	height: auto;
}

.imp-seal-band__intro {
	margin: 0 0 1.25rem;
	font-size: var(--wp--preset--font-size--large);
	color: var(--imp-ink);
}

.imp-symbols {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.imp-symbols > li {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 0.25rem 1.25rem 0.25rem 0;
}

.imp-symbols > li + li {
	padding-left: 1.25rem;
	border-left: 1px solid var(--imp-line);
}

.imp-symbols__name {
	font-family: var(--imp-display);
	font-size: clamp(1.25rem, 2vw, 1.5rem);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--imp-brand);
}

/* A short flag bar under each symbol's name. */
.imp-symbols__name::after {
	content: "";
	display: block;
	width: 2rem;
	height: 4px;
	margin-top: 0.5rem;
	border-radius: 999px;
	background: var(--imp-dots);
}

.imp-symbols__text {
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--wp--preset--color--muted);
}

.imp-features {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(1.5rem, 3vw, 2.5rem);
	margin-top: clamp(2rem, 4vw, 3rem);
}

.imp-feature {
	position: relative;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--imp-line);
}

.imp-feature__photo {
	position: relative;
	margin: 0 0 1.25rem;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--imp-surface);
}

.imp-feature__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.imp-feature:hover .imp-feature__photo img {
	transform: scale(1.03);
}

.imp-feature__photo figcaption {
	position: absolute;
	right: 0;
	bottom: 0;
	padding: 0.3rem 0.6rem;
	background: rgba(21, 28, 48, 0.6);
	color: #fff;
	font-family: var(--imp-mono);
	font-size: 0.5625rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.imp-feature .imp-label {
	margin: 0;
}

.imp-feature h3 {
	margin: 0.5rem 0 0.75rem;
	font-size: clamp(1.375rem, 2.2vw, 1.75rem);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.imp-feature h3 a {
	color: var(--imp-ink);
	text-decoration: none;
}

/* The whole card is clickable through the title link. */
.imp-feature h3 a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.imp-feature h3 a:hover {
	color: var(--imp-brand);
}

.imp-feature p:not(.imp-label) {
	margin: 0;
	max-width: 36rem;
	font-size: 1rem;
	color: var(--wp--preset--color--muted);
}

.imp-notes {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: clamp(2rem, 4vw, 3rem) 0 0;
	padding: 0;
	border-top: 2px solid var(--imp-brand);
	list-style: none;
}

.imp-notes > li {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1.5rem 1.5rem 1.5rem 0;
	border-bottom: 1px solid var(--imp-line);
}

.imp-notes > li + li {
	padding-left: 1.5rem;
	border-left: 1px solid var(--imp-line);
}

.imp-notes strong {
	font-family: var(--imp-display);
	font-size: clamp(1.5rem, 2.6vw, 2.125rem);
	font-weight: 300;
	line-height: 1;
	letter-spacing: 0.04em;
	color: var(--imp-accent);
	white-space: nowrap;
}

.imp-notes__title {
	font-family: var(--imp-mono);
	font-size: 0.75rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--imp-ink);
}

.imp-notes__text {
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--wp--preset--color--muted);
}

/* The seal and the flag on their page: at their own size, centered. */
.imp-emblem {
	text-align: center;
}

.imp-emblem img {
	display: inline-block;
	width: auto;
	max-width: min(100%, 22rem);
	height: auto;
}

@media (max-width: 960px) {
	.imp-symbols,
	.imp-notes {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.imp-symbols > li:nth-child(odd),
	.imp-notes > li:nth-child(odd) {
		padding-left: 0;
		border-left: 0;
	}

	.imp-symbols > li:nth-child(n + 3) {
		margin-top: 1.25rem;
	}
}

@media (max-width: 767px) {
	.imp-seal-band {
		grid-template-columns: minmax(0, 1fr);
		justify-items: start;
	}

	.imp-seal-band__seal {
		width: 9rem;
	}

	.imp-features,
	.imp-notes {
		grid-template-columns: minmax(0, 1fr);
	}

	.imp-notes > li,
	.imp-notes > li + li {
		padding-left: 0;
		border-left: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.imp-feature__photo img {
		transition: none;
	}
}

/* Find us shows nothing but its title until a place is set in Appearance → Branding: hide it. */
.ivo-find-us:not(:has(.wp-block-group *)) {
	display: none;
}

/* Find us (map) after the cream band. */
.imp-home .ivo-find-us {
	padding-top: var(--imp-section);
}

@media (max-width: 960px) {
	.imp-news .wp-block-post-template {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.imp-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.imp-stats > li:nth-child(odd) {
		padding-left: 0;
		border-left: 0;
	}
}

@media (max-width: 767px) {
	.imp-news .wp-block-post-template {
		grid-template-columns: minmax(0, 1fr);
	}

	.imp-services a {
		grid-template-columns: minmax(0, 1fr) 1.5rem;
		gap: 1rem;
	}

	.imp-services__no,
	.imp-services__tag {
		display: none;
	}

	/* Phones: the text takes the top, the hills show in the room left under it. */
	.wp-block-cover.imp-hero {
		min-height: 0;
		padding-bottom: 15rem;
	}

	.wp-block-cover.imp-hero .wp-block-cover__image-background {
		object-position: 85% 100% !important;
	}

	.imp-hero .wp-block-cover__background {
		background: linear-gradient(180deg, rgba(244, 245, 250, 0.95) 0%, rgba(244, 245, 250, 0.86) 52%, rgba(244, 245, 250, 0) 74%) !important;
	}

	.imp-hero__credit {
		text-align: left;
	}

	.imp-hero .wp-block-buttons {
		width: 100%;
	}

	.imp-visit__seal {
		width: min(80%, 16rem);
	}
}

@media (prefers-reduced-motion: reduce) {
	.imp-news-card img,
	.imp-services a,
	.imp-services a::after,
	.imp-more::after {
		transition: none;
	}
}

/* ------------------------------------------------------------------ */
/* Footer: highland night, a stripe of stars and the faint clay jar    */
/* ------------------------------------------------------------------ */

.ivo-site-footer {
	position: relative;
	overflow: hidden;
	background-image: radial-gradient(circle at 50% 50%, rgba(255, 210, 0, 0.06) 0 1.5px, transparent 2px);
	background-size: 12px 12px;
}

.ivo-site-footer::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 12px;
	background: var(--imp-stars);
}

.ivo-site-footer::after {
	content: "";
	position: absolute;
	right: max(1vw, 0.5rem);
	bottom: -3rem;
	width: 11rem;
	aspect-ratio: 1;
	background: var(--imp-mark) no-repeat center / contain;
	opacity: 0.12;
	pointer-events: none;
}

.ivo-site-footer > * {
	position: relative;
	z-index: 1;
}

.ivo-site-footer h2,
.ivo-site-footer h3,
.ivo-site-footer .wp-block-heading {
	font-family: var(--imp-mono);
	font-size: 0.75rem !important;
	font-weight: 400;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--imp-highlight) !important;
}

.ivo-site-footer a,
.ivo-site-footer a:where(:not(.wp-element-button)) {
	text-decoration: none;
}

.ivo-site-footer a:hover {
	text-decoration: underline;
	text-decoration-color: var(--imp-accent);
}

.ivo-bottom-bar {
	font-family: var(--imp-mono);
	font-size: 0.6875rem !important;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

@media (max-width: 781px) {
	.ivo-site-footer::after {
		width: 7rem;
	}
}

/* Find us: a square panel with a hairline, a green pin and an outlined button. */
.ivo-embed,
.ivo-embed__placeholder,
.ivo-embed__frame {
	border-radius: 0 !important;
	border-color: var(--imp-line);
}

.ivo-map__pin {
	color: var(--imp-brand);
}

.ivo-embed__name {
	font-family: var(--imp-display);
	font-weight: 400;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ivo-embed__actions button.wp-element-button,
.ivo-embed__actions button.ivo-embed__load--outline {
	border: 1px solid currentColor;
	border-radius: 9999px;
	color: var(--wp--preset--color--contrast);
}

/* ------------------------------------------------------------------ */
/* Page content (inc/content.php)                                       */
/* ------------------------------------------------------------------ */

/* Lists shown in columns (programs, offices). */
.imp-columns {
	columns: 3 14rem;
	column-gap: 2rem;
}

.imp-columns > li {
	break-inside: avoid;
}

/* Organizational chart: the leaders under a green rule, their offices on a clay line. */
.imp-org-chart {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
	gap: var(--wp--preset--spacing--50);
	padding: 0;
	list-style: none;
}

.imp-org-chart > li {
	padding: 1.5rem 0 0;
	border-top: 2px solid var(--imp-brand);
}

.imp-org-chart > li > strong {
	display: block;
	margin-bottom: 0.75rem;
	font-family: var(--imp-display);
	font-size: 1.25em;
	font-weight: 400;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--imp-ink);
}

.imp-org-chart > li > ul {
	margin: 0;
	padding-left: 1.1rem;
	border-left: 2px solid var(--imp-accent);
	list-style: none;
}

.imp-org-chart > li > ul > li {
	position: relative;
	padding: 0.25rem 0;
}

.imp-org-chart > li > ul > li::before {
	content: "";
	position: absolute;
	top: 0.95em;
	left: -1.1rem;
	width: 0.75rem;
	border-top: 2px solid var(--imp-accent);
}

/* ------------------------------------------------------------------ */
/* Officials and the organizational chart: portrait cards               */
/* ------------------------------------------------------------------ */

/*
 * The page template keeps content at the 760px reading width, so "wide" groups
 * cannot widen themselves; these break out to --imp-wide, centered, and never
 * get narrower than the text.
 */
.imp-officials,
.imp-chart,
.imp-mayor-hero,
.imp-mayor-wide {
	--imp-wide: max(100%, min(var(--imp-wide-max, 1280px), 100vw - 4rem));
	width: var(--imp-wide);
	max-width: none !important;
	margin-inline: calc((100% - var(--imp-wide)) / 2) !important;
}

/*
 * An official's card: the whole card is a button that opens the profile. The
 * portrait (or the initials in a white circle) with a green rule under it,
 * the position as a gold label, then the name.
 */
.imp-official__open {
	display: flex;
	flex-direction: column;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-align: inherit;
	cursor: pointer;
}

.imp-official__frame {
	position: relative;
	display: block;
	margin-bottom: 1rem;
	overflow: hidden;
	border-bottom: 3px solid var(--imp-brand);
	background: var(--imp-surface);
	aspect-ratio: 4 / 5;
}

.imp-official__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 15%;
	transition: transform 0.5s ease;
}

/* Until there is a portrait: the initials in a white circle. */
.imp-official__mono {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background:
		radial-gradient(circle at 50% 50%, #fff 0 34%, transparent 34.5%),
		linear-gradient(180deg, var(--imp-surface), var(--imp-tint));
}

.imp-official__mono span {
	position: relative;
	font-family: var(--imp-display);
	font-size: clamp(2rem, 4.5vw, 3rem);
	font-weight: 300;
	letter-spacing: 0.08em;
	margin-inline-end: -0.08em;
	color: var(--imp-brand);
}

/* "View profile", shown on hover and keyboard focus. */
.imp-official__hint {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	padding: 0.6rem 0.75rem;
	background: linear-gradient(to top, rgba(21, 28, 48, 0.82), rgba(21, 28, 48, 0));
	color: #fff;
	font-family: var(--imp-mono);
	font-size: 0.625rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	opacity: 0;
	transform: translateY(0.5rem);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.imp-official__open:hover .imp-official__hint,
.imp-official__open:focus-visible .imp-official__hint {
	opacity: 1;
	transform: none;
}

.imp-official__open:hover .imp-official__img {
	transform: scale(1.03);
}

.imp-official__open:hover .imp-official__name {
	color: var(--imp-brand);
}

.imp-official__role {
	display: block;
	margin-bottom: 0.4rem;
	font-family: var(--imp-mono);
	font-size: 0.6875rem;
	letter-spacing: 0.16em;
	line-height: 1.5;
	text-transform: uppercase;
	color: var(--imp-label);
}

.imp-official__name {
	margin: 0;
	font-family: var(--imp-display);
	font-size: 1.125rem;
	font-weight: 400;
	letter-spacing: 0.04em;
	line-height: 1.3;
	text-transform: uppercase;
	text-wrap: balance;
	color: var(--imp-ink);
}

/* The Mayor and the Vice Mayor: big cards. */
.imp-official--lead .imp-official__frame {
	border-bottom-width: 4px;
}

.imp-official--lead .imp-official__mono span {
	font-size: clamp(2.75rem, 6vw, 4.5rem);
}

.imp-official--lead .imp-official__role {
	font-size: 0.8125rem;
}

.imp-official--lead .imp-official__name {
	font-size: clamp(1.5rem, 2.6vw, 2rem);
	letter-spacing: 0.06em;
}

/* Two big cards side by side. */
.imp-officials--leaders {
	--imp-wide-max: 52rem;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
	gap: clamp(1.5rem, 4vw, 3.5rem);
	margin-block: var(--wp--preset--spacing--60) !important;
}

/* The council: smaller cards, four to a row. */
.imp-officials--council {
	--imp-wide-max: 60rem;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 12.5rem), 1fr));
	gap: 2.5rem clamp(1rem, 2.5vw, 2rem);
	margin-block: 1.5rem var(--wp--preset--spacing--60) !important;
}

@media (max-width: 599px) {
	.imp-officials--council {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.imp-officials--council .imp-official__name {
		font-size: 1rem;
	}
}

/*
 * The profile: a modal dialog with the portrait on the left and the about on
 * the right (stacked on phones), over a dimmed highland night backdrop.
 */
.imp-profile {
	width: min(56rem, calc(100vw - 2rem));
	max-height: calc(100dvh - 2rem);
	margin: auto;
	padding: 0;
	overflow: auto;
	border: 0;
	border-top: 4px solid var(--imp-brand);
	background: #fff;
	color: var(--wp--preset--color--contrast);
	box-shadow: 0 30px 60px -20px rgba(21, 28, 48, 0.55);
}

.imp-profile::backdrop {
	background: rgba(21, 28, 48, 0.72);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
}

.imp-profile[open] {
	animation: imp-profile-in 0.22s ease-out;
}

@keyframes imp-profile-in {

	from {
		opacity: 0;
		transform: translateY(1rem);
	}
}

html.imp-profile-open {
	overflow: hidden;
}

/*
 * Desktop: the portrait (4:5) with the facts under it on cloud white, the
 * about beside them. Phones: portrait, about, then facts.
 */
.imp-profile__inner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	grid-template-rows: auto 1fr;
	grid-template-areas:
		"picture text"
		"facts text";
}

.imp-profile__picture {
	grid-area: picture;
	position: relative;
	aspect-ratio: 4 / 5;
	background: var(--imp-surface);
}

.imp-profile__picture .imp-official__img {
	position: absolute;
	inset: 0;
}

.imp-profile__picture .imp-official__mono span {
	font-size: clamp(3rem, 6vw, 4.5rem);
}

.imp-profile__text {
	grid-area: text;
	padding: clamp(1.75rem, 4vw, 3rem);
}

.imp-profile__text .imp-label {
	margin: 0 0 0.75rem;
}

.imp-profile__name {
	margin: 0 0 1.25rem;
	font-size: clamp(1.5rem, 3vw, 2.125rem);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--imp-ink);
}

.imp-profile__name::after {
	content: "";
	display: block;
	width: 3rem;
	height: 5px;
	margin-top: 0.9rem;
	border-radius: 999px;
	background: var(--imp-dots);
}

.imp-profile__text p:not(.imp-label) {
	margin: 0 0 1rem;
	font-size: 1rem;
	line-height: 1.6;
}

.imp-profile__facts {
	grid-area: facts;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-content: start;
	gap: 0;
	margin: 0;
	padding: 0.5rem clamp(1.25rem, 3vw, 2rem) 1.75rem;
	border-top: 3px solid var(--imp-brand);
	background: var(--imp-surface);
}

.imp-profile__facts > div {
	padding: 0.75rem 0.75rem 0.75rem 0;
	border-bottom: 1px solid var(--imp-line);
}

.imp-profile__facts > div:nth-child(n + 3) {
	grid-column: 1 / -1;
}

.imp-profile__facts dt {
	font-family: var(--imp-mono);
	font-size: 0.625rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--imp-label);
}

.imp-profile__facts dd {
	margin: 0.25rem 0 0;
	font-size: 0.9375rem;
	color: var(--imp-ink);
}

/* First in the dialog, so it gets focus on open; it stays in view while the profile scrolls. */
.imp-profile__close {
	position: sticky;
	z-index: 2;
	top: 0.75rem;
	margin: 0.75rem 0.75rem -3.5rem auto;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--imp-line);
	border-radius: 50%;
	background: #fff;
	color: var(--imp-ink);
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}

.imp-profile__close:hover {
	border-color: var(--imp-accent);
	background: var(--imp-accent);
	color: #fff;
}

@media (max-width: 699px) {
	.imp-profile__inner {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: none;
		grid-template-areas:
			"picture"
			"text"
			"facts";
	}

	.imp-profile__picture {
		aspect-ratio: 4 / 3;
	}

	.imp-profile__text {
		padding-bottom: 1rem;
	}

	.imp-profile__facts {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	.imp-official__img,
	.imp-official__hint {
		transition: none;
	}

	.imp-profile[open] {
		animation: none;
	}
}

/*
 * Message from the Mayor (home page): the Mayor's card beside a few lines of
 * the message, on pasture mint under the gold-star stripe.
 */
.imp-mayor-band {
	position: relative;
	padding-block: var(--imp-section);
	background-color: var(--imp-tint);
}

.imp-mayor-band::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 12px;
	background: var(--imp-stars);
}

.imp-mayor-band__inner {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(2rem, 6vw, 5.5rem);
	align-items: center;
}

.imp-mayor-band__inner > * {
	margin-block: 0 !important;
}

.imp-mayor-band .imp-official {
	width: min(100%, 24rem);
	justify-self: center;
}

.imp-mayor-band .imp-official__frame {
	background: #fff;
	box-shadow: 0 24px 48px -28px rgba(35, 46, 76, 0.55);
}

.imp-mayor-band__text > * {
	margin-block: 0 !important;
}

.imp-mayor-band__text h2 {
	margin-top: 0.9rem !important;
	font-size: clamp(1.75rem, 3.4vw, 2.75rem);
	letter-spacing: 0.04em;
	line-height: 1.15;
	text-transform: uppercase;
	text-wrap: balance;
	color: var(--imp-ink);
}

.imp-mayor-band__quote {
	position: relative;
	margin-top: 1.75rem !important;
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(1.125rem, 1.8vw, 1.375rem);
	font-weight: 300;
	line-height: 1.55;
	color: var(--wp--preset--color--contrast);
}

.imp-mayor-band__sign {
	margin-top: 1.25rem !important;
	font-size: 0.9375rem;
	line-height: 1.45;
	color: var(--wp--preset--color--muted);
}

.imp-mayor-band__sign strong {
	color: var(--imp-ink);
}

.imp-mayor-band .wp-block-buttons {
	gap: 0.75rem;
	margin-top: 2rem !important;
}

.imp-mayor-band .wp-block-button:not(.imp-btn-solid) .wp-block-button__link {
	background-color: #fff;
}

/*
 * Mayor's Corner page: the Mayor's card beside the title and a welcome, the
 * message as a letter, the priorities as numbered tiles and the milestones on
 * a timeline.
 */
.imp-mayor-hero {
	--imp-wide-max: 60rem;
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	gap: clamp(2rem, 5vw, 4rem);
	align-items: center;
	margin-block: var(--wp--preset--spacing--50) var(--wp--preset--spacing--60) !important;
}

.imp-mayor-hero > *,
.imp-mayor-hero__text > * {
	margin-block: 0 !important;
}

.imp-mayor-hero__name {
	margin-top: 0.75rem !important;
	font-size: clamp(2rem, 4vw, 3rem);
	letter-spacing: 0.05em;
	line-height: 1.1;
	text-transform: uppercase;
	color: var(--imp-ink);
}

.imp-mayor-hero__name::after {
	content: "";
	display: block;
	width: 3.5rem;
	height: 6px;
	margin-top: 1rem;
	border-radius: 999px;
	background: var(--imp-dots);
}

.imp-mayor-hero__lead {
	margin-top: 1.25rem !important;
	font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
	line-height: 1.55;
	color: var(--wp--preset--color--muted);
}

.imp-mayor-hero .wp-block-buttons {
	gap: 0.75rem;
	margin-top: 1.75rem !important;
}

/* The message: a letter on cloud white under the flag bar (navy, gold, green). */
.imp-mayor-letter {
	position: relative;
	margin-top: 1.5rem !important;
	padding: clamp(1.75rem, 4vw, 3rem);
	overflow: hidden;
	background: var(--imp-surface);
}

.imp-mayor-letter::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 6px;
	background: var(--imp-dots);
}

.imp-mayor-letter::after {
	content: "";
	position: absolute;
	right: -3rem;
	bottom: -3rem;
	width: 14rem;
	aspect-ratio: 1;
	background: var(--imp-mark) no-repeat center / contain;
	opacity: 0.14;
	pointer-events: none;
}

.imp-mayor-letter > * {
	position: relative;
	z-index: 1;
}

.imp-mayor-letter p {
	font-size: 1.0625rem;
	line-height: 1.7;
}

.imp-mayor-letter__greeting {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.375rem !important;
	color: var(--imp-ink);
}

.imp-mayor-letter__sign {
	margin-top: 2rem !important;
	line-height: 1.45 !important;
}

/* Priorities: eight numbered tiles, four to a row (two on tablets, one on phones). */
.imp-mayor-wide {
	--imp-wide-max: 60rem;
}

.imp-priorities {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1px;
	margin: 1.5rem 0 0;
	padding: 0;
	border: 1px solid var(--imp-line);
	background: var(--imp-line);
	list-style: none;
	counter-reset: imp-priority;
}

.imp-priorities li {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin: 0;
	padding: 1.5rem 1.5rem 1.75rem;
	background: #fff;
	counter-increment: imp-priority;
}

.imp-priorities li::before {
	content: counter(imp-priority, decimal-leading-zero);
	font-family: var(--imp-display);
	font-size: 2rem;
	font-weight: 300;
	line-height: 1;
	color: var(--imp-accent);
}

.imp-priorities__title {
	margin-top: 0.5rem;
	font-family: var(--imp-display);
	font-size: 1.0625rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--imp-ink);
}

.imp-priorities__text {
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--wp--preset--color--muted);
}

/* Milestones: a green line with a gold dot for each. */
.imp-milestones {
	position: relative;
	margin: 1.5rem 0 0;
	padding: 0 0 0 2rem;
	list-style: none;
}

.imp-milestones::before {
	content: "";
	position: absolute;
	top: 0.4rem;
	bottom: 0.4rem;
	left: 0.4375rem;
	width: 2px;
	background: var(--imp-brand);
}

.imp-milestones li {
	position: relative;
	display: grid;
	grid-template-columns: 9rem minmax(0, 1fr);
	column-gap: 1.5rem;
	margin: 0;
	padding: 0 0 1.75rem;
}

.imp-milestones li::before {
	content: "";
	position: absolute;
	top: 0.3rem;
	left: -2rem;
	width: 16px;
	height: 16px;
	border: 3px solid var(--imp-brand);
	border-radius: 50%;
	background: var(--imp-highlight);
}

.imp-milestones__when {
	grid-row: span 2;
	padding-top: 0.2rem;
	font-family: var(--imp-mono);
	font-size: 0.75rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--imp-label);
}

.imp-milestones__title {
	font-family: var(--imp-display);
	font-size: 1.125rem;
	letter-spacing: 0.03em;
	color: var(--imp-ink);
}

.imp-milestones__text {
	margin-top: 0.35rem;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--wp--preset--color--muted);
}

/* In the header the name is beside the card, so the card's own caption is for screen readers only. */
.imp-mayor-hero .imp-official__role,
.imp-mayor-hero .imp-official__name {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.imp-mayor-hero .imp-official__frame {
	margin-bottom: 0;
}

@media (max-width: 959px) {
	.imp-priorities {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.imp-priorities {
		grid-template-columns: minmax(0, 1fr);
	}

	.imp-mayor-band__inner,
	.imp-mayor-hero {
		grid-template-columns: minmax(0, 1fr);
	}

	.imp-mayor-band .imp-official,
	.imp-mayor-hero .imp-official {
		width: min(100%, 20rem);
		justify-self: center;
	}

	.imp-milestones li {
		grid-template-columns: minmax(0, 1fr);
	}

	.imp-milestones__when {
		grid-row: auto;
		margin-bottom: 0.25rem;
	}
}

/*
 * Organizational chart: each branch is a tree. The head's card on top, a
 * green line down, then a line across the top of the offices or members that
 * answer to it.
 */
.imp-chart {
	--imp-wide-max: 1120px;
	--imp-chart-gap: clamp(1rem, 2vw, 1.5rem);
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--70) !important;
}

.imp-chart > * {
	margin-block: 0 !important;
}

.imp-chart-label {
	margin-bottom: 1.5rem !important;
	padding: 0.4rem 1rem;
	border: 1px solid var(--imp-brand);
	border-radius: 9999px;
	font-family: var(--imp-mono);
	font-size: 0.75rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--imp-brand);
}

.imp-chart-top {
	display: flex;
	flex-direction: column;
	width: min(100%, 17rem);
	text-align: center;
}

.imp-chart-top .imp-official__open {
	align-items: stretch;
}

/* The line down from a head, or from a single box, to what is under it. */
.imp-chart-top::after,
.imp-chart-single::after {
	content: "";
	align-self: center;
	width: 2px;
	height: 2.25rem;
	background: var(--imp-brand);
}

.imp-chart-top::after {
	margin-top: 1rem;
}

.imp-chart-single {
	display: flex;
	flex-direction: column;
	width: min(100%, 24rem);
}

.imp-chart-single--end::after {
	content: none;
}

.imp-chart-grid + .imp-chart-single {
	margin-top: 2.25rem !important;
}

.imp-chart-box {
	padding: 1rem 1.125rem 1.125rem;
	border: 1px solid var(--imp-line);
	border-top: 3px solid var(--imp-accent);
	background: #fff;
	text-align: left;
}

.imp-chart-box > * {
	margin-block: 0 !important;
}

.imp-chart-office {
	margin-bottom: 0.5rem !important;
	font-family: var(--imp-mono);
	font-size: 0.6875rem;
	letter-spacing: 0.14em;
	line-height: 1.5;
	text-transform: uppercase;
	color: var(--imp-ink);
}

.imp-chart-text {
	font-size: 0.9375rem;
	line-height: 1.45;
	color: var(--wp--preset--color--muted);
}

/* Boxes that answer to the same head, under one line on a cloud white field. */
.imp-chart-grid {
	display: grid;
	width: 100%;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
	gap: var(--imp-chart-gap);
	padding: var(--imp-chart-gap);
	border-top: 2px solid var(--imp-brand);
	background: var(--imp-surface);
}

.imp-chart-grid > * {
	margin-block: 0 !important;
}

.imp-chart-grid--people {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	row-gap: 2rem;
	text-align: center;
}

/* In the chart the portraits are square, to keep the tree compact. */
.imp-chart-top .imp-official__frame {
	aspect-ratio: 1;
}

.imp-chart-grid--people .imp-official__frame {
	aspect-ratio: 1;
	margin-bottom: 0.75rem;
	background: #fff;
}

.imp-chart-grid--people .imp-official__mono span {
	font-size: 1.75rem;
}

.imp-chart-grid--people .imp-official__role {
	font-size: 0.625rem;
	letter-spacing: 0.12em;
}

.imp-chart-grid--people .imp-official__name {
	font-size: 0.9375rem;
	letter-spacing: 0.03em;
}

@media (max-width: 599px) {
	.imp-chart-grid--people {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Cards (contact details and others): square, a hairline instead of a shadow. */
.is-style-card,
.wp-block-group.is-style-card {
	border: 1px solid var(--imp-line) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

/* Room above headings in pages and posts. */
.wp-block-post-content > h2 {
	margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.wp-block-post-content > h3 {
	margin-top: 2rem;
}

/* Vision and mission: the words of the Municipality, set off by a navy rule. */
.imp-quote {
	padding-left: 1.25rem;
	border-left: 3px solid var(--wp--preset--color--primary-dark);
	font-style: italic;
}

/* Phone numbers stay on one line. */
.imp-nowrap {
	white-space: nowrap;
}
