/*
Theme Name: SM Przecław
Theme URI: http://smprzeclaw.pl/
Author: Przygotowane dla Spółdzielni Mieszkaniowej „Przecław”
Description: Lekki motyw blokowy dla Spółdzielni Mieszkaniowej „Przecław”: aktualności na stronie głównej, kafelki „na skróty”, godziny pracy biura, telefony alarmowe, dokumenty do pobrania, przełącznik wielkości tekstu.
Requires at least: 6.6
Tested up to: 7.2
Requires PHP: 7.4
Version: 1.8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sm-przeclaw
*/

:root {
	--sm-radius: 14px;
	--sm-shadow: 0 1px 2px rgba(20, 40, 66, .06), 0 8px 24px rgba(20, 40, 66, .07);
	--sm-shadow-hover: 0 2px 4px rgba(20, 40, 66, .08), 0 16px 36px rgba(20, 40, 66, .13);
	--sm-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='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.8 19.8 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.18 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.1 9.9a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.9.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
	--sm-ico-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-10 6L2 7'/%3E%3C/svg%3E");
	--sm-ico-news: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 11 18-5v12L3 14v-3z'/%3E%3Cpath d='M11.6 16.8a3 3 0 1 1-5.8-1.6'/%3E%3C/svg%3E");
	--sm-ico-tenders: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8' y='2' width='8' height='4' rx='1'/%3E%3Cpath d='M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2'/%3E%3Cpath d='m9 14 2 2 4-4'/%3E%3C/svg%3E");
	--sm-ico-docs: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6M16 13H8M16 17H8M10 9H8'/%3E%3C/svg%3E");
	--sm-ico-board: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
	--sm-ico-archive: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='3' width='20' height='5' rx='1'/%3E%3Cpath d='M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8M10 12h4'/%3E%3C/svg%3E");
	--sm-ico-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='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
	--sm-ico-file: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6M12 18v-6M9 15l3 3 3-3'/%3E%3C/svg%3E");
	--sm-ico-alert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0zM12 9v4M12 17h.01'/%3E%3C/svg%3E");
}

html { scroll-behavior: smooth; }
html.sm-fs-1 { font-size: 112.5%; }
html.sm-fs-2 { font-size: 125%; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:where(a, button, input, summary):focus-visible {
	outline: 3px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
	border-radius: 4px;
}
.sm-main { min-height: 50vh; }

.sm-topbar { font-size: .9375rem; }
.sm-topbar .sm-topbar__inner { padding-block: .45rem; row-gap: .25rem; }
.sm-topbar p { margin: 0; }
.sm-topbar a { color: inherit; text-decoration: none; }
.sm-topbar a:hover { text-decoration: underline; color: #fff; }
.sm-topbar__contact { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.sm-topbar__contact a[href^="tel:"]::before,
.sm-topbar__contact a[href^="mailto:"]::before {
	content: ""; display: inline-block; width: 1em; height: 1em; margin-right: .45em; vertical-align: -.12em;
	background: currentColor; -webkit-mask: var(--sm-ico-phone) center/contain no-repeat; mask: var(--sm-ico-phone) center/contain no-repeat;
	opacity: .8;
}
.sm-topbar__contact a[href^="mailto:"]::before { -webkit-mask-image: var(--sm-ico-mail); mask-image: var(--sm-ico-mail); }
.sm-topbar__right { gap: 1.25rem; }
.sm-topbar__emergency::before {
	content: ""; display: inline-block; width: 1em; height: 1em; margin-right: .4em; vertical-align: -.12em;
	background: #F4A38F; -webkit-mask: var(--sm-ico-alert) center/contain no-repeat; mask: var(--sm-ico-alert) center/contain no-repeat;
}
.sm-fontsize { display: inline-flex; gap: 2px; border: 1px solid rgba(255,255,255,.3); border-radius: 8px; overflow: hidden; }
.sm-fontsize button {
	font: inherit; font-family: var(--wp--preset--font-family--heading); font-size: .8125rem; font-weight: 600;
	background: transparent; color: #fff; border: 0; padding: .2rem .55rem; cursor: pointer; line-height: 1.4;
}
.sm-fontsize button:hover { background: rgba(255,255,255,.12); }
.sm-fontsize button[aria-pressed="true"] { background: #fff; color: var(--wp--preset--color--primary-dark); }

.sm-header { border-bottom: 1px solid var(--wp--preset--color--border); }
.sm-header .sm-header__inner { padding-block: .9rem; gap: 1.5rem; }
.sm-brand { gap: 1rem; }
.sm-brand .sm-logo { margin: 0; line-height: 0; }
.sm-brand .sm-logo img { width: 340px !important; max-width: 100%; height: auto; display: block; }
@media (max-width: 1100px) {
	.sm-brand .sm-logo img { width: 240px !important; }
	.sm-header .wp-block-navigation { gap: .25rem 1.1rem; font-size: .9375rem; }
	.sm-header .sm-header__inner { gap: 1rem; }
}
.sm-header__nav { gap: 1rem; }
.sm-header .wp-block-navigation { gap: .25rem 1.6rem; }
.sm-header .wp-block-navigation-item__content { text-decoration: none; color: var(--wp--preset--color--primary-dark); padding-block: .35rem; position: relative; }
.sm-header .wp-block-navigation-item__content::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; border-radius: 2px;
	background: var(--wp--preset--color--accent); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.sm-header .wp-block-navigation-item__content:hover::after,
.sm-header .current-menu-item > .wp-block-navigation-item__content::after { transform: scaleX(1); }
.sm-header .current-menu-item > .wp-block-navigation-item__content { color: var(--wp--preset--color--accent); }
.sm-search .wp-block-search__button {
	background: var(--wp--preset--color--primary-light); color: var(--wp--preset--color--primary-dark);
	border-radius: 999px; padding: .55rem; margin: 0; border: 0;
}
.sm-search .wp-block-search__button:hover { background: var(--wp--preset--color--primary); color: #fff; }
.sm-search .wp-block-search__input { border-radius: 999px; border: 1px solid var(--wp--preset--color--border); padding: .5rem 1rem; }
.wp-block-navigation__responsive-container.is-menu-open { padding: 1.5rem; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 1.25rem; }

.sm-section__head { margin-bottom: 1.5rem; }
.sm-section__head .sm-section__title { margin: 0; }
.sm-section__title { position: relative; padding-left: 1rem; }
.sm-section__title::before {
	content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 5px; border-radius: 3px;
	background: linear-gradient(var(--wp--preset--color--accent) 0 50%, var(--wp--preset--color--sage) 50% 100%);
}
.sm-tiles-section .sm-section__title { margin-bottom: 1.5rem; }
.sm-more-link { margin: 0; }
.sm-more-link a { font-family: var(--wp--preset--font-family--heading); font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.sm-more-link a::after {
	content: ""; width: 1.05em; height: 1.05em; background: currentColor;
	-webkit-mask: var(--sm-ico-arrow) center/contain no-repeat; mask: var(--sm-ico-arrow) center/contain no-repeat; transition: transform .2s;
}
.sm-more-link a:hover::after { transform: translateX(3px); }

.sm-hero { position: relative; overflow: hidden; background-color: var(--wp--preset--color--primary-dark); }
.sm-hero::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background:
		linear-gradient(90deg, rgba(20, 40, 66, .82) 0%, rgba(20, 40, 66, .62) 32%, rgba(20, 40, 66, .22) 62%, rgba(20, 40, 66, .04) 100%),
		linear-gradient(0deg, rgba(20, 40, 66, .35), transparent 30%);
}
.sm-hero > * { position: relative; z-index: 1; }
.sm-eyebrow {
	font-family: var(--wp--preset--font-family--heading); font-size: .875rem; font-weight: 500;
	text-transform: uppercase; letter-spacing: .12em; color: #E3EDE1; margin-bottom: .75rem;
}
.sm-hero { min-height: clamp(420px, 42.8vw, 680px); box-sizing: border-box; }
.sm-hero__content { text-shadow: 0 1px 2px rgba(10, 22, 40, .55), 0 2px 18px rgba(10, 22, 40, .45); }
.sm-hero__content > * { max-width: 640px; }
.sm-hero__title { font-size: clamp(2.1rem, 4.4vw, 3.25rem); line-height: 1.12; margin-top: 0; }
.sm-hero__lead { color: #fff; max-width: 36em; line-height: 1.55; }

.sm-hours { list-style: none; padding: 0; margin: 0; }
.sm-hours li {
	display: flex; justify-content: space-between; gap: 1rem; padding: .42rem .65rem; border-radius: 8px;
	border-bottom: 1px dashed var(--wp--preset--color--border);
}
.sm-hours li:last-child { border-bottom: 0; }
.sm-hours li span { font-variant-numeric: tabular-nums; font-weight: 600; }
.sm-hours li.is-today { background: var(--wp--preset--color--primary-light); border-bottom-color: transparent; font-weight: 600; }
.sm-hours li.is-today span::after {
	content: "dziś"; margin-left: .5rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em;
	background: var(--wp--preset--color--accent); color: #fff; padding: .1rem .4rem; border-radius: 4px; vertical-align: .1em;
}
.sm-hours--footer li { border-bottom-color: rgba(255,255,255,.15); padding-inline: .5rem; }
.sm-hours--footer li.is-today { background: rgba(255,255,255,.1); }

.sm-tile {
	position: relative; background: #fff; border: 1px solid var(--wp--preset--color--border); border-radius: var(--sm-radius);
	padding: 1.5rem; gap: .35rem; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.sm-tile::before {
	content: ""; display: block; width: 3rem; height: 3rem; border-radius: 12px; margin-bottom: .75rem;
	background-color: var(--wp--preset--color--primary-light);
	background-image: none;
}
.sm-tile::after {
	content: ""; position: absolute; top: 1.5rem; left: 1.5rem; width: 3rem; height: 3rem;
	background: var(--wp--preset--color--primary); pointer-events: none;
	-webkit-mask: var(--sm-ico-news) center/1.5rem no-repeat; mask: var(--sm-ico-news) center/1.5rem no-repeat;
}
.sm-ico-tenders::after { -webkit-mask-image: var(--sm-ico-tenders); mask-image: var(--sm-ico-tenders); }
.sm-ico-docs::after { -webkit-mask-image: var(--sm-ico-docs); mask-image: var(--sm-ico-docs); }
.sm-ico-board::after { -webkit-mask-image: var(--sm-ico-board); mask-image: var(--sm-ico-board); }
.sm-ico-phone::after { -webkit-mask-image: var(--sm-ico-phone); mask-image: var(--sm-ico-phone); }
.sm-ico-archive::after { -webkit-mask-image: var(--sm-ico-archive); mask-image: var(--sm-ico-archive); }
.sm-ico-phone::before { background-color: #FBE7E3; }
.sm-ico-phone::after { background: var(--wp--preset--color--accent); }
.sm-ico-docs::before, .sm-ico-archive::before { background-color: var(--wp--preset--color--sage-light); }
.sm-ico-docs::after, .sm-ico-archive::after { background: #4F6B4B; }
.sm-tile__title { margin: 0; font-size: 1.1875rem; }
.sm-tile__title a { text-decoration: none; color: var(--wp--preset--color--primary-dark); }
.sm-tile__title a::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.sm-tile__text { margin: 0; color: var(--wp--preset--color--muted); font-size: 1rem; line-height: 1.5; }
.sm-tile:hover, .sm-tile:focus-within { transform: translateY(-3px); box-shadow: var(--sm-shadow-hover); border-color: transparent; }
.sm-tile:hover .sm-tile__title a { color: var(--wp--preset--color--accent); }

.sm-cards > li { display: flex; }
.sm-card {
	width: 100%; background: #fff; border: 1px solid var(--wp--preset--color--border); border-radius: var(--sm-radius);
	overflow: hidden; gap: 0; position: relative; transition: box-shadow .2s ease, transform .2s ease;
}
.sm-card:hover { box-shadow: var(--sm-shadow-hover); transform: translateY(-2px); }
.sm-card__image { margin: 0; width: 100%; }
.sm-card__image img { display: block; }
.sm-card__body { padding: 1.4rem 1.5rem 1.5rem; gap: .6rem; flex: 1; width: 100%; box-sizing: border-box; }
.sm-card__body > * { margin: 0; }
.sm-card__date {
	font-size: .875rem; font-weight: 600; color: var(--wp--preset--color--sage) !important; text-transform: uppercase; letter-spacing: .05em;
}
.sm-card__title { font-size: 1.25rem; line-height: 1.3; }
.sm-card__title a::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.sm-card__excerpt { color: var(--wp--preset--color--muted); font-size: 1rem; line-height: 1.55; flex: 1; }
.sm-card__excerpt p { margin: 0; }
.sm-card__more {
	margin-top: auto; font-family: var(--wp--preset--font-family--heading); font-weight: 500; font-size: .9375rem;
	text-decoration: none; color: var(--wp--preset--color--accent); display: inline-flex; align-items: center; gap: .4rem;
}
.sm-card__more::after {
	content: ""; width: 1em; height: 1em; background: currentColor;
	-webkit-mask: var(--sm-ico-arrow) center/contain no-repeat; mask: var(--sm-ico-arrow) center/contain no-repeat;
}

.sm-rows { display: grid; gap: .75rem; }
.sm-row {
	position: relative; background: #fff; border: 1px solid var(--wp--preset--color--border); border-radius: 12px;
	padding: 1rem 1.25rem; gap: 1.25rem; transition: border-color .2s, box-shadow .2s;
}
.sm-row:hover { border-color: var(--wp--preset--color--primary); box-shadow: var(--sm-shadow); }
.sm-row__date {
	flex: 0 0 auto; font-family: var(--wp--preset--font-family--heading); font-size: .875rem; font-weight: 600;
	color: var(--wp--preset--color--primary) !important; background: var(--wp--preset--color--primary-light);
	padding: .35rem .65rem; border-radius: 8px; font-variant-numeric: tabular-nums;
}
.sm-row__title { margin: 0; font-size: 1.0625rem; line-height: 1.35; }
.sm-row__title a::before { content: ""; position: absolute; inset: 0; }

.sm-phones { border-radius: var(--sm-radius); padding: 1.75rem; border-top: 5px solid var(--wp--preset--color--accent); box-shadow: var(--sm-shadow); height: 100%; box-sizing: border-box; }
.sm-phones > * { margin-block: 0; }
.sm-phones > * + * { margin-top: .9rem; }
.sm-phones__title { font-size: 1.375rem; }
.sm-phones__main { font-weight: 600; }
.sm-phones__main a {
	display: block; font-family: var(--wp--preset--font-family--heading); font-size: 2rem; font-weight: 700;
	color: var(--wp--preset--color--accent); text-decoration: none; letter-spacing: -.01em; line-height: 1.2;
}
.sm-phones__note { color: var(--wp--preset--color--muted); }
.sm-phonelist, .sm-emergency-list { list-style: none; padding: 0; margin: 0; }
.sm-phonelist li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-top: 1px solid var(--wp--preset--color--border); font-size: 1rem; }
.sm-phonelist a { font-weight: 600; text-decoration: none; white-space: nowrap; }

.sm-eyebrow--dark { color: var(--wp--preset--color--sage); margin-bottom: .5rem; }
.sm-osiedle .sm-section__title { margin-top: 0; }
.sm-photos {
	display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: 1fr 1fr; gap: 1rem;
	aspect-ratio: 16 / 10;
}
.sm-photos > .wp-block-image { margin: 0 !important; position: relative; border-radius: var(--sm-radius); overflow: hidden; min-height: 0; }
.sm-photos > .sm-photo--1 { grid-row: 1 / span 2; }
.sm-photos img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.sm-photos > .wp-block-image:hover img { transform: scale(1.04); }
.sm-photos figcaption {
	position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 2rem 1rem .8rem;
	color: #fff; font-size: .9375rem; font-weight: 600; text-align: left;
	background: linear-gradient(0deg, rgba(20, 40, 66, .85), transparent);
}

.sm-pagehead {
	padding-block: clamp(2rem, 5vw, 3.5rem);
	background-image:
		linear-gradient(90deg, rgba(20, 40, 66, .96) 0%, rgba(31, 58, 92, .88) 55%, rgba(31, 58, 92, .7) 100%),
		url("assets/img/osiedle-z-lotu-ptaka.webp");
	background-size: cover; background-position: 50% 60%;
}
.sm-pagehead > * { margin-block: 0; }
.sm-pagehead > * + * { margin-top: .75rem; }
.sm-pagehead__title { color: #fff; font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
.sm-pagehead__terms a {
	display: inline-block; text-decoration: none; color: #fff; background: rgba(255,255,255,.14);
	padding: .2rem .65rem; border-radius: 999px; font-size: .8125rem;
}
.sm-pagehead__terms .wp-block-post-terms__separator { display: none; }
.sm-pagehead__terms { display: flex; gap: .4rem; flex-wrap: wrap; }
.sm-pagehead__meta, .sm-pagehead__meta .wp-block-post-date { color: rgba(255,255,255,.8) !important; font-size: 1rem; }
.sm-pagehead__desc { color: rgba(255,255,255,.85); }
.sm-search-big { max-width: 560px; }
.sm-search-big .wp-block-search__input { border-radius: 10px 0 0 10px; border: 0; padding: .75rem 1rem; font-size: 1.0625rem; }
.sm-search-big .wp-block-search__button { margin-left: 0; border-radius: 0 10px 10px 0; }

.sm-article { padding-block: var(--wp--preset--spacing--50) var(--wp--preset--spacing--60); }
.sm-article > .sm-content {
	background: #fff; border: 1px solid var(--wp--preset--color--border); border-radius: var(--sm-radius);
	padding: clamp(1.25rem, 4vw, 2.75rem);
}
.sm-article--page > .sm-content { background: transparent; border: 0; padding: 0; }
.sm-article__image img { border-radius: var(--sm-radius); }
.sm-content > :first-child { margin-top: 0; }
.sm-content > :last-child { margin-bottom: 0; }
.sm-content strong { color: var(--wp--preset--color--primary-dark); }

.wp-block-file {
	display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1rem;
	background: var(--wp--preset--color--base); border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px; padding: .85rem 1rem .85rem 3.4rem; position: relative; margin-block: .75rem;
	font-size: 1.0625rem;
}
.wp-block-file::before {
	content: ""; position: absolute; left: 1rem; top: 50%; translate: 0 -50%; width: 1.6rem; height: 1.6rem;
	background: var(--wp--preset--color--accent); -webkit-mask: var(--sm-ico-file) center/contain no-repeat; mask: var(--sm-ico-file) center/contain no-repeat;
}
.wp-block-file > a:not(.wp-block-file__button) { font-weight: 600; flex: 1 1 14rem; word-break: break-word; }
.wp-block-file .wp-block-file__button {
	margin-left: auto !important; background: var(--wp--preset--color--primary); color: #fff; text-decoration: none;
	border-radius: 8px; padding: .5rem 1.1rem; font-family: var(--wp--preset--font-family--heading); font-size: .9375rem;
}
.wp-block-file .wp-block-file__button:hover { background: var(--wp--preset--color--accent); color: #fff; }
.wp-block-file .wp-block-file__embed,
.wp-block-file .wp-block-file__preview { display: none !important; }

.wp-block-file .wp-block-file__content-wrapper { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1rem; width: 100%; }
.wp-block-file .wp-block-file__content-wrapper > a,
.wp-block-file .wp-block-file__content-wrapper > .wp-block-file__textlink { font-weight: 600; flex: 1 1 14rem; }
.wp-block-file .wp-block-file__button-richtext-wrapper { margin-left: auto; }

.wp-block-table table { border-collapse: collapse; width: 100%; background: #fff; }
.wp-block-table th, .wp-block-table td { border: 1px solid var(--wp--preset--color--border); padding: .6rem .8rem; }
.wp-block-table thead th { background: var(--wp--preset--color--primary-light); text-align: left; }

.sm-postnav { gap: 1rem; }
.sm-postnav .post-navigation-link-previous,
.sm-postnav .post-navigation-link-next { max-width: 48%; font-size: 1rem; }
.sm-postnav .post-navigation-link-next { margin-left: auto; text-align: right; }
.sm-postnav a { text-decoration: none; font-weight: 600; }
.sm-postnav .post-navigation-link__label { display: block; font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; color: var(--wp--preset--color--muted); font-weight: 600; }

.sm-pagination { margin-top: 2.5rem; gap: .4rem; }
.sm-pagination a, .sm-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 2.6rem; height: 2.6rem; padding: 0 .75rem;
	border-radius: 10px; background: #fff; border: 1px solid var(--wp--preset--color--border); text-decoration: none; box-sizing: border-box;
}
.sm-pagination .page-numbers.current { background: var(--wp--preset--color--primary); color: #fff; border-color: var(--wp--preset--color--primary); }
.sm-pagination .page-numbers.dots { border: 0; background: none; }

.sm-contact-grid { gap: 1.25rem; }
.sm-box {
	background: #fff; border: 1px solid var(--wp--preset--color--border); border-radius: var(--sm-radius);
	padding: 1.5rem 1.6rem; border-top: 5px solid var(--wp--preset--color--sage);
}
.sm-box--primary { border-top-color: var(--wp--preset--color--primary); }
.sm-box--alert { border-top-color: var(--wp--preset--color--accent); background: #FFF8F6; }
.sm-box > * { margin-block: 0; }
.sm-box > * + * { margin-top: .75rem; }
.sm-box h2 { font-size: 1.25rem; }
.sm-box h3 { font-size: 1.0625rem; margin-top: 1.25rem; }
.sm-bignum a { font-family: var(--wp--preset--font-family--heading); font-size: 2rem; font-weight: 700; color: var(--wp--preset--color--accent); text-decoration: none; }
.sm-emergency-list li { display: flex; align-items: center; gap: .9rem; padding: .4rem 0; }
.sm-emergency-list a {
	flex: 0 0 3.4rem; text-align: center; font-family: var(--wp--preset--font-family--heading); font-weight: 700;
	background: #FBE7E3; color: var(--wp--preset--color--accent-dark); border-radius: 8px; padding: .25rem 0; text-decoration: none;
}
.sm-people { list-style: none; padding: 0; margin: 0; }
.sm-people li { padding: .7rem 0; border-bottom: 1px solid var(--wp--preset--color--border); line-height: 1.4; color: var(--wp--preset--color--muted); }
.sm-people li:last-child { border-bottom: 0; }
.sm-people strong { color: var(--wp--preset--color--primary-dark); font-size: 1.0625rem; }

.sm-footer { font-size: 1rem; }
.sm-footer a { color: #fff; text-decoration: none; }
.sm-footer a:hover { text-decoration: underline; color: #fff; }
.sm-footer__title {
	color: #C9D8C6; font-size: .875rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; margin-bottom: 1rem;
}
.sm-footer .wp-block-column:first-child .sm-footer__title { color: #fff; font-size: 1.125rem; text-transform: none; letter-spacing: 0; }
.sm-footer p { color: rgba(255,255,255,.85); margin-block: 0 .6rem; }
.sm-footer__links { list-style: none; padding: 0; margin: 0; }
.sm-footer__links li { padding: .2rem 0; }
.sm-footer__phones strong { font-size: 1.25rem; font-family: var(--wp--preset--font-family--heading); }
.sm-footer__sep { border-color: rgba(255,255,255,.15) !important; margin-block: 2.5rem 1.25rem; opacity: 1; }
.sm-footer__bottom p { margin: 0; color: rgba(255,255,255,.7); }

@media (max-width: 781px) {
	.sm-hero::before { background: linear-gradient(0deg, rgba(20, 40, 66, .78), rgba(20, 40, 66, .5)); }
	.sm-brand .sm-logo img { width: 230px !important; }
	.sm-topbar__contact a[href^="mailto:"] { display: none; }
	.sm-row { flex-direction: column; align-items: flex-start !important; gap: .5rem; }
	.sm-postnav .post-navigation-link-previous,
	.sm-postnav .post-navigation-link-next { max-width: 100%; }
}
@media (max-width: 600px) {
	.sm-photos { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; aspect-ratio: auto; }
	.sm-photos > .sm-photo--1 { grid-row: auto; grid-column: 1 / span 2; aspect-ratio: 16 / 10; }
	.sm-photos > .sm-photo--2, .sm-photos > .sm-photo--3 { aspect-ratio: 4 / 3; }
	.sm-photos figcaption { font-size: .8125rem; padding: 1.5rem .7rem .6rem; }
	.sm-tile { padding: 1rem 1rem 1rem 4.75rem; min-height: 3rem; justify-content: center; }
	.sm-tile::before { position: absolute; top: 1rem; left: 1rem; margin: 0; }
	.sm-tile::after { top: 1rem; left: 1rem; }
	.sm-tile__title { font-size: 1.0625rem; }
	.sm-tile__text { font-size: .9375rem; }
}
@media (max-width: 480px) {
	.sm-fontsize { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
	.sm-topbar, .sm-header__nav, .sm-site-footer, .sm-postnav, .sm-pagination { display: none !important; }
	.sm-pagehead { background: none !important; color: #000 !important; padding: 0 0 1rem; }
	.sm-pagehead__title { color: #000 !important; }
	.sm-article > .sm-content { border: 0; padding: 0; }
	body { background: #fff; }
}
