/* ==========================================================================
   Saaristolääkärit: parity fixes (2026-11-02)
   Loaded after parity.css. Each section brings one component of the live
   block pages back in line with the approved static design
   (~/Desktop/saaristolaakarit, site.css). Classes and styles only: no text
   is added, hidden or changed.
   ========================================================================== */

:root {
	--sl-text: #1e293b;
	--sl-measure: 34em;
	--sl-card-pad: 64px;
	--sl-shadow-sm: 0 1px 2px rgba(0, 39, 88, 0.06), 0 2px 6px rgba(0, 39, 88, 0.05);
	--sl-icon-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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E");
	--sl-icon-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E");
	--sl-icon-calendar: 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.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='2.5'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/svg%3E");
}

/* 1. Section rhythm -------------------------------------------------------
   parity.css gives every top-level row 10px of padding (!important), which
   also flattened the navy notice bands and the photo banners. */

body:not(.home) .wp-block-post-content > section.has-background {
	padding-top: 36px !important;
	padding-bottom: 36px !important;
}

/* 2. Notice band ("Tiedotenauha"): an inset navy panel, centred text, a
   small pointer to what follows (site.css, lump clinic band 349cbb7) */

body:not(.home) .wp-block-post-content > section.has-secondary-background-color.has-background {
	position: relative;
	margin-bottom: 36px !important;
	overflow: visible;
	text-align: center;
}

body:not(.home) .wp-block-post-content > section.has-secondary-background-color.has-background::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -11px;
	width: 26px;
	height: 12px;
	margin-left: -13px;
	background-color: var(--sl-navy);
	clip-path: polygon(0 0, 100% 0, 50% 100%);
}

body:not(.home) .wp-block-post-content > section.has-secondary-background-color.has-background p {
	max-width: 64ch;
	margin-left: auto !important;
	margin-right: auto !important;
	font-size: 15px;
	line-height: 27px;
	text-align: center;
	text-wrap: balance;
}

/* the vaccination clinic pages set their band in 20px type */
body:is(.page-id-119, .page-id-130, .page-id-145) .wp-block-post-content > section.has-secondary-background-color.has-background p {
	font-size: 20px;
	line-height: 36px;
}

body:not(.home) .wp-block-post-content > section.has-secondary-background-color.has-background p:last-child {
	margin-bottom: 0;
}

/* 3. Photo banner at the top of a page body ("Hero – kuva"): the plain
   400px photo strip of the source, no overlay */

body:not(.home) .wp-block-post-content > section.wp-block-cover:not(:has(.wp-block-cover__inner-container > *)) {
	min-height: 400px !important;
	padding: 0 !important;
}

body:not(.home) .wp-block-post-content > section.wp-block-cover:not(:has(.wp-block-cover__inner-container > *)) > .wp-block-cover__background {
	display: none;
}

/* 4. Reading measure: long left-aligned running text keeps about 68
   characters a line (site.css .fl-measure); cards, coloured boxes and
   centred text keep their own width */

body:not(.home) .wp-block-post-content :is(p, ul.wp-block-list, ol.wp-block-list):not(.has-text-align-center, [class*="is-style-"]):not(.wp-block-post-content :is(.has-background, .has-border-color, [class*="is-style-"], .has-text-align-center, [style*="text-align:center"], .wp-block-cover, .sl-hours) *) {
	max-width: 68ch;
}

/* 5. Reading card (text pages): 34em of text in a white card, centred */

body:not(.home) .wp-block-post-content .is-style-reading-card {
	box-sizing: border-box;
	max-width: calc(var(--sl-measure) + 2 * var(--sl-card-pad)) !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding: 56px var(--sl-card-pad) 64px !important;
	color: var(--sl-text);
}

body:not(.home) .wp-block-post-content .is-style-reading-card > * {
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

@media (max-width: 767px) {
	:root {
		--sl-card-pad: 24px;
	}

	/* out to the title panel's 8px inset, as the source's reading cards */
	body:not(.home) #wp--skip-link--target .wp-block-post-content .is-style-reading-card {
		--sl-card-pad: 20px;
		margin-left: -8px !important;
		margin-right: -8px !important;
		padding: 28px 20px 32px !important;
	}
}

/* a standalone closing link ("Katso …", "Tutustu …") at the end of a text
   card (tagged .sl-closing-link by parity-fixes.js: the paragraph holds the
   link and nothing else): a navy pill with an arrow */
body:not(.home) .wp-block-post-content a.sl-closing-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 12px;
	padding: 12px 22px;
	border-radius: 999px;
	background-color: var(--sl-navy);
	color: #fff !important;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none !important;
	transition: background-color 0.2s;
}

body:not(.home) .wp-block-post-content a.sl-closing-link::after {
	content: "";
	flex: none;
	width: 16px;
	height: 16px;
	background-color: currentColor;
	-webkit-mask: var(--sl-icon-arrow) center / contain no-repeat;
	mask: var(--sl-icon-arrow) center / contain no-repeat;
}

body:not(.home) .wp-block-post-content a.sl-closing-link:is(:hover, :focus-visible) {
	background-color: var(--sl-navy-deep);
}

/* 6. Doctor profiles: photo left (sticky), text right from 960px */

body.parent-pageid-134 .wp-block-post-content .is-style-reading-card > .wp-block-image:first-child {
	margin: 0 0 32px !important;
}

body.parent-pageid-134 .wp-block-post-content .is-style-reading-card > .wp-block-image:first-child img {
	display: block;
	width: 300px !important;
	max-width: 100%;
	height: auto !important;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 24px;
	background-color: var(--sl-tint-soft);
	box-shadow: var(--sl-shadow-lg);
}

/* name and role: a hairline above, the name line navy, the role muted */
body.parent-pageid-134 .wp-block-post-content .is-style-reading-card > :is(.wp-block-image:first-child + p:empty + h2, .wp-block-image:first-child + h2) {
	margin-top: 32px !important;
	margin-bottom: 24px !important;
	padding-top: 19.5px;
	border-top: 1px solid var(--sl-line);
	color: var(--sl-text-soft);
}

body.parent-pageid-134 .wp-block-post-content .is-style-reading-card > :is(.wp-block-image:first-child + p:empty + h2, .wp-block-image:first-child + h2)::first-line {
	color: var(--sl-navy-deep);
}

body.parent-pageid-134 .wp-block-post-content .is-style-reading-card > .wp-block-image:first-child + p:empty {
	display: none;
}

@media (min-width: 960px) {
	body.parent-pageid-134 .wp-block-post-content .is-style-reading-card {
		--sl-card-pad: 56px;
		display: grid;
		grid-template-columns: 300px minmax(0, 1fr);
		column-gap: 48px;
		align-items: start;
		max-width: calc(300px + 48px + var(--sl-measure) + 2 * var(--sl-card-pad)) !important;
	}

	body.parent-pageid-134 .wp-block-post-content .is-style-reading-card > * {
		grid-column: 2;
	}

	body.parent-pageid-134 .wp-block-post-content .is-style-reading-card > .wp-block-image:first-child {
		grid-column: 1;
		grid-row: 1 / span 30;
		margin: 0 !important;
	}
}

/* 7. Responsive visibility of the source (Elementor "hide on desktop /
   tablet / mobile"), carried by block classes */

.sl-hide {
	display: none !important;
}

@media (min-width: 1025px) {
	.sl-hide-desktop {
		display: none !important;
	}
}

@media (min-width: 768px) and (max-width: 1024px) {
	.sl-hide-tablet {
		display: none !important;
	}
}

@media (max-width: 767px) {
	.sl-hide-mobile {
		display: none !important;
	}
}

/* 8. Headings that carry a link read as headings (the source never
   underlined a heading) */

body:not(.home) .wp-block-post-content :is(h1, h2, h3, h4, h5, h6) a:not(.wp-block-button__link) {
	color: inherit;
	text-decoration: none;
}

/* 9. Accordions (details.is-style-faq): a white row per question, the
   Poppins title at 26px, a chevron in a tint circle on the right; open rows
   turn tint (site.css toggles) */

body:not(.home) .wp-block-post-content details.is-style-faq {
	margin: 0 0 12px !important;
	padding: 0 !important;
	overflow: hidden;
	border: 1px solid var(--sl-line) !important;
	border-radius: 18px !important;
	background-color: #fff;
	box-shadow: var(--sl-shadow-sm);
	transition: background-color 0.2s, border-color 0.2s;
}

body:not(.home) .wp-block-post-content details.is-style-faq[open] {
	border-color: #d3e1f5 !important;
	background-color: var(--sl-tint-soft);
}

body:not(.home) .wp-block-post-content details.is-style-faq > summary {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 20px 20px 20px 24px;
	color: var(--sl-navy-deep);
	font-family: Poppins, system-ui, sans-serif;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.25;
	list-style: none;
	cursor: pointer;
	transition: color 0.2s;
}

body:not(.home) .wp-block-post-content details.is-style-faq > summary::-webkit-details-marker {
	display: none;
}

body:not(.home) .wp-block-post-content details.is-style-faq > summary::after {
	content: "";
	flex: none;
	width: 36px;
	height: 36px;
	margin-left: auto;
	border-radius: 999px;
	background: var(--sl-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003e7e' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 18px no-repeat;
	transition: background-color 0.2s, transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

body:not(.home) .wp-block-post-content details.is-style-faq > summary:hover {
	color: var(--sl-blue);
}

body:not(.home) .wp-block-post-content details.is-style-faq > summary:hover::after {
	background-color: #d6e5fb;
}

body:not(.home) .wp-block-post-content details.is-style-faq[open] > summary::after {
	transform: rotate(180deg);
}

body:not(.home) .wp-block-post-content details.is-style-faq > summary:focus-visible {
	outline-offset: -4px;
}

body:not(.home) .wp-block-post-content details.is-style-faq > :not(summary) {
	margin-left: 24px !important;
	margin-right: 24px !important;
}

body:not(.home) .wp-block-post-content details.is-style-faq > :is(h2, h3, h4) {
	margin-top: 18px !important;
	margin-bottom: 8px !important;
	color: var(--sl-navy-deep);
	line-height: 1.25;
}

body:not(.home) .wp-block-post-content details.is-style-faq > summary + * {
	margin-top: 0 !important;
}

body:not(.home) .wp-block-post-content details.is-style-faq > :last-child {
	margin-bottom: 24px !important;
}

@media (max-width: 767px) {
	body:not(.home) .wp-block-post-content details.is-style-faq > summary {
		gap: 12px;
		padding: 16px 14px 16px 18px;
	}

	body:not(.home) .wp-block-post-content details.is-style-faq > :not(summary) {
		margin-left: 18px !important;
		margin-right: 18px !important;
	}

	body:not(.home) .wp-block-post-content details.is-style-faq > :last-child {
		margin-bottom: 20px !important;
	}
}

@media (max-width: 400px) {
	/* font-size fix (as in the source): "Pneumokokkirokote" at 26px is wider
	   than the row on phones narrower than ~390px */
	body:not(.home) .wp-block-post-content details.is-style-faq > summary {
		font-size: clamp(19px, calc((100vw - 120px) * 0.096), 26px);
	}
}

/* 10. Service tiles (lääkäriaseman palvelut): 116px white cards, four to a
   row, the last row centred */

body:not(.home) .wp-block-post-content :is(.wp-block-column, .wp-block-group).has-border-color:has(> h2.has-large-font-size:only-child) {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 116px;
}

body:not(.home) .wp-block-post-content :is(.wp-block-column, .wp-block-group).has-border-color:has(> h2.has-large-font-size:only-child) > h2 {
	margin: 0 !important;
	text-wrap: balance;
}

body:not(.home) .wp-block-post-content .wp-block-group.is-layout-flex:has(> .has-border-color > h2.has-large-font-size:only-child) {
	justify-content: center;
	gap: 20px 24px;
	margin-top: 20px;
}

body:not(.home) .wp-block-post-content .wp-block-group.is-layout-flex:has(> .has-border-color > h2.has-large-font-size:only-child) > * {
	flex: 0 0 calc(25% - 18px);
	margin: 0 !important;
}

@media (max-width: 781px) {
	body:not(.home) .wp-block-post-content .wp-block-group.is-layout-flex:has(> .has-border-color > h2.has-large-font-size:only-child) > * {
		flex-basis: 100%;
	}
}

/* 11. Location line (icon + clinic name + address): the pin in a 40px tint
   circle beside the two lines (Elementor icon box) */

body:not(.home) .wp-block-post-content .wp-block-group:has(> p.is-style-icon:first-child) {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr);
	column-gap: 13px;
	align-items: start;
	margin-bottom: 20px;
}

body:not(.home) .wp-block-post-content .wp-block-group:has(> p.is-style-icon:first-child) > p.is-style-icon {
	display: grid;
	place-items: center;
	grid-row: 1 / span 2;
	width: 40px;
	height: 40px;
	margin: 5px 0 0 !important;
	border-radius: 50%;
	background-color: var(--sl-tint);
	color: var(--sl-navy);
	font-size: 21px !important;
	line-height: 1;
}

body:not(.home) .wp-block-post-content .wp-block-group:has(> p.is-style-icon:first-child) > :not(.is-style-icon) {
	grid-column: 2;
	margin: 0 !important;
}

body:not(.home) .wp-block-post-content .wp-block-group:has(> p.is-style-icon:first-child) > :is(h2, h3, h4) {
	margin-bottom: 1px !important;
	font-size: 18px;
	line-height: 1.3;
}

body:not(.home) .wp-block-post-content .wp-block-group:has(> p.is-style-icon:first-child) > :is(h2, h3, h4) br {
	display: none;
}

body:not(.home) .wp-block-post-content .wp-block-group:has(> p.is-style-icon:first-child) > :is(h2, h3, h4) a {
	color: var(--sl-navy-deep);
	text-decoration: underline;
	text-decoration-color: rgba(0, 39, 88, 0.35);
	text-underline-offset: 3px;
}

/* 12. Team cards (lääkärit ja asiantuntijat, kotikäynnit, sv/en): one white
   card per person, a 176px round photo with a light ring, name and title in
   capitals, "Tietoa minusta" as a centred tint pill (site.css team member) */

body:not(.home) #wp--skip-link--target .wp-block-post-content :is(.wp-block-column, .wp-block-group.has-border-color):has(> .is-style-team) {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 32px 24px 28px !important;
	text-align: center;
}

body:not(.home) #wp--skip-link--target .wp-block-post-content :is(.wp-block-column, .wp-block-group.has-border-color):has(> .is-style-team) > .wp-block-spacer {
	display: none;
}

body:not(.home) #wp--skip-link--target .wp-block-post-content .is-style-team {
	width: 100%;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	box-shadow: none !important;
	gap: 0 !important;
}

body:not(.home) #wp--skip-link--target .wp-block-post-content .is-style-team .wp-block-image {
	margin: 0 0 22px !important;
}

body:not(.home) #wp--skip-link--target .wp-block-post-content .is-style-team .wp-block-image img {
	width: 176px !important;
	height: 176px !important;
	border-radius: 50% !important;
	object-fit: cover;
	box-shadow: 0 0 0 6px var(--sl-tint-soft), 0 0 0 7px var(--sl-line);
}

body:not(.home) #wp--skip-link--target .wp-block-post-content .is-style-team :is(.is-style-team-name, h3) {
	margin: 0 0 6px !important;
	color: var(--sl-navy-deep);
	font-family: Poppins, system-ui, sans-serif;
	font-size: 20px !important;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 1px;
	text-transform: uppercase;
}

body:not(.home) #wp--skip-link--target .wp-block-post-content .is-style-team p {
	margin: 0 !important;
	color: var(--sl-text-soft);
	font-family: Poppins, system-ui, sans-serif;
	font-size: 14px !important;
	line-height: 1.5;
	letter-spacing: 0.7px;
	text-transform: uppercase;
}

body:not(.home) #wp--skip-link--target .wp-block-post-content :is(.wp-block-column, .wp-block-group.has-border-color):has(> .is-style-team) > details.is-style-bio {
	width: 100%;
	margin: 40px 0 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	box-shadow: none !important;
	text-align: start;
}

body:not(.home) #wp--skip-link--target .wp-block-post-content :is(.wp-block-column, .wp-block-group.has-border-color):has(> .is-style-team) > details.is-style-bio > summary {
	display: table;
	margin: 0 auto;
	padding: 10px 22px;
	border-radius: 999px;
	background-color: var(--sl-tint);
	color: var(--sl-navy);
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	list-style: none;
	cursor: pointer;
	transition: background-color 0.2s;
}

body:not(.home) #wp--skip-link--target .wp-block-post-content :is(.wp-block-column, .wp-block-group.has-border-color):has(> .is-style-team) > details.is-style-bio > summary::-webkit-details-marker {
	display: none;
}

body:not(.home) #wp--skip-link--target .wp-block-post-content :is(.wp-block-column, .wp-block-group.has-border-color):has(> .is-style-team) > details.is-style-bio > summary:hover {
	background-color: #d6e5fb;
}

body:not(.home) #wp--skip-link--target .wp-block-post-content :is(.wp-block-column, .wp-block-group.has-border-color):has(> .is-style-team) > details.is-style-bio[open] > summary {
	margin-bottom: 20px;
}

/* a single card on its own row: one card's width, centred */
body:not(.home) #wp--skip-link--target .wp-block-post-content > section > .wp-block-group.has-border-color:has(> .is-style-team) {
	box-sizing: border-box;
	width: calc((100% - 2 * 24px) / 3);
	max-width: calc((1248px - 2 * 24px) / 3) !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

@media (max-width: 781px) {
	body:not(.home) #wp--skip-link--target .wp-block-post-content > section > .wp-block-group.has-border-color:has(> .is-style-team) {
		width: 100%;
		max-width: none !important;
	}
}

body:not(.home) .wp-block-post-content .wp-block-columns:has(> .wp-block-column:only-child > .is-style-team) {
	justify-content: center;
}

body:not(.home) .wp-block-post-content .wp-block-columns:has(> .wp-block-column:only-child > .is-style-team) > .wp-block-column {
	flex: 0 1 calc((100% - 2 * 24px) / 3) !important;
}

/* 13. Dividers between service sections: 15px above and below the line, as
   the source's divider widget; a heading after a button row keeps the
   source's larger gap */

body:not(.home) .wp-block-post-content .wp-block-column > hr.wp-block-separator {
	margin-top: 35px !important;
	margin-bottom: 15px !important;
}

body:not(.home) .wp-block-post-content .wp-block-column > .wp-block-buttons + :is(h2, h3) {
	margin-top: 56px !important;
}

/* service tiles: one height per row, as the source */
body:not(.home) .wp-block-post-content .wp-block-group.is-layout-flex:has(> .has-border-color > h2.has-large-font-size:only-child) {
	align-items: stretch !important;
}

/* 14. News: the "Ajankohtaista" page (108) lists the stories as a grid of
   three cards: picture on top, title, date and category, a short excerpt
   (Premium blog grid of the source) */

body.page-id-108 .wp-block-post-content .wp-block-post-template {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin: 0 !important;
	padding: 0;
	list-style: none;
}

body.page-id-108 .wp-block-post-content .wp-block-post-template > li {
	margin: 0 !important;
}

body.page-id-108 .wp-block-post-content .is-style-news-card {
	display: flex !important;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border: 1px solid var(--sl-line);
	border-radius: 24px;
	background-color: #fff;
	box-shadow: var(--sl-shadow-sm);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

body.page-id-108 .wp-block-post-content .is-style-news-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--sl-shadow-lg);
}

body.page-id-108 .wp-block-post-content .is-style-news-card > .wp-block-post-featured-image {
	flex: none;
	aspect-ratio: 3 / 2;
	height: auto !important;
	min-height: 0 !important;
	margin: 0 !important;
	overflow: hidden;
}

body.page-id-108 .wp-block-post-content .is-style-news-card > .wp-block-post-featured-image :is(a, img) {
	display: block;
	width: 100%;
	height: 100% !important;
	border-radius: 0 !important;
	object-fit: cover;
}

body.page-id-108 .wp-block-post-content .is-style-news-card > .wp-block-post-featured-image img {
	transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

body.page-id-108 .wp-block-post-content .is-style-news-card:hover > .wp-block-post-featured-image img {
	transform: scale(1.04);
}

body.page-id-108 .wp-block-post-content .is-style-news-card > .wp-block-group {
	gap: 0 !important;
	padding: 24px 24px 28px !important;
}

body.page-id-108 .wp-block-post-content .is-style-news-card .wp-block-post-title {
	order: -1;
	margin: 0 0 12px !important;
	color: var(--sl-navy-deep);
	font-family: Poppins, system-ui, sans-serif;
	font-size: 18px !important;
	font-weight: 600;
	line-height: 1.35 !important;
	letter-spacing: normal;
}

body.page-id-108 .wp-block-post-content .is-style-news-card .wp-block-post-title a {
	color: inherit !important;
	text-decoration: none !important;
}

body.page-id-108 .wp-block-post-content .is-style-news-card .is-style-post-meta {
	gap: 0 !important;
	align-items: center;
	margin: 0 !important;
	color: var(--sl-text-soft);
	font-family: "Open Sans", sans-serif;
	font-size: 12px !important;
	line-height: 16px;
}

body.page-id-108 .wp-block-post-content .is-style-news-card .is-style-post-meta > * {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 !important;
	font-size: inherit !important;
}

body.page-id-108 .wp-block-post-content .is-style-news-card .is-style-post-meta > *::before {
	content: "";
	flex: none;
	width: 12px;
	height: 12px;
	background-color: var(--sl-blue);
	-webkit-mask: var(--sl-icon-calendar) center / contain no-repeat;
	mask: var(--sl-icon-calendar) center / contain no-repeat;
}

body.page-id-108 .wp-block-post-content .is-style-news-card .is-style-post-meta > .wp-block-post-terms::before {
	-webkit-mask-image: 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'%3E%3Cpath d='M4 6h16M4 10h10M4 14h16M4 18h10'/%3E%3C/svg%3E");
	mask-image: 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'%3E%3Cpath d='M4 6h16M4 10h10M4 14h16M4 18h10'/%3E%3C/svg%3E");
}

body.page-id-108 .wp-block-post-content .is-style-news-card .is-style-post-meta > * + *::after {
	content: none;
}

body.page-id-108 .wp-block-post-content .is-style-news-card .is-style-post-meta > * + * {
	margin-left: 18px !important;
	position: relative;
}

body.page-id-108 .wp-block-post-content .is-style-news-card .is-style-post-meta > * + *  > :first-child::before {
	content: "•";
	position: absolute;
	left: -12px;
	color: #b8c4d3;
}

body.page-id-108 .wp-block-post-content .is-style-news-card .is-style-post-meta a {
	color: var(--sl-blue) !important;
	text-decoration: none !important;
}

body.page-id-108 .wp-block-post-content .is-style-news-card .wp-block-post-excerpt {
	margin: 14px 0 0 !important;
	color: var(--sl-text-soft);
	font-family: "Open Sans", sans-serif;
	font-size: 14px !important;
	line-height: 1.6 !important;
}

body.page-id-108 .wp-block-post-content .is-style-news-card .wp-block-post-excerpt__excerpt {
	margin: 0;
}

/* the source's cards carry no button: the title and the picture link */
body.page-id-108 .wp-block-post-content .is-style-news-card .wp-block-read-more {
	display: none;
}

@media (max-width: 1024px) {
	body.page-id-108 .wp-block-post-content .wp-block-post-template {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	body.page-id-108 .wp-block-post-content .wp-block-post-template {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* 15. Category and tag archives: one story per row, picture left (5/12),
   title, author · date · category, excerpt and a navy button (OceanWP
   thumbnail entries of the source) */

body.archive main > .wp-block-cover.is-style-title-panel + section {
	padding-top: 48px !important;
}

body.archive .wp-block-query .wp-block-post-template {
	gap: 24px;
}

body.archive .wp-block-query .wp-block-post-template > li + li {
	margin-top: 24px !important;
}

body.archive .is-style-news-card {
	display: grid !important;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr) !important;
	gap: 0 !important;
	min-height: 300px;
	overflow: hidden;
	border: 1px solid var(--sl-line);
	border-radius: 24px;
	background-color: #fff;
	box-shadow: var(--sl-shadow-sm);
}

body.archive .is-style-news-card > .wp-block-post-featured-image {
	position: relative;
	height: auto !important;
	min-height: 100%;
	aspect-ratio: auto !important;
	margin: 0 !important;
	background-color: var(--sl-tint-soft);
}

body.archive .is-style-news-card > .wp-block-post-featured-image :is(a, img) {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100% !important;
	border-radius: 0 !important;
	object-fit: cover;
}

body.archive .is-style-news-card > .wp-block-group {
	gap: 0 !important;
	padding: 40px 48px !important;
}

body.archive .is-style-news-card .wp-block-post-title {
	margin: 0 !important;
	color: var(--sl-navy-deep);
	font-family: Poppins, system-ui, sans-serif;
	font-size: 24px !important;
	font-weight: 600;
	line-height: 1.4 !important;
	letter-spacing: 0.6px;
}

body.archive .is-style-news-card .wp-block-post-title a {
	color: inherit !important;
	text-decoration: none !important;
}

body.archive .is-style-news-card .is-style-post-meta {
	gap: 0 18px !important;
	margin: 10px 0 0 !important;
	color: var(--sl-text-soft);
	font-family: "Open Sans", sans-serif;
	font-size: 14px !important;
	line-height: 21px;
}

body.archive .is-style-news-card .is-style-post-meta > * {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 !important;
	font-size: inherit !important;
}

body.archive .is-style-news-card .is-style-post-meta > *::before {
	content: "";
	flex: none;
	width: 15px;
	height: 15px;
	background-color: var(--sl-blue);
	-webkit-mask: center / contain no-repeat;
	mask: center / contain no-repeat;
}

body.archive .is-style-news-card .is-style-post-meta > .wp-block-post-author-name::before {
	-webkit-mask-image: 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.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4.4 3.6-7 8-7s8 2.6 8 7'/%3E%3C/svg%3E");
	mask-image: 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.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4.4 3.6-7 8-7s8 2.6 8 7'/%3E%3C/svg%3E");
}

body.archive .is-style-news-card .is-style-post-meta > .wp-block-post-date::before {
	-webkit-mask-image: 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.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
	mask-image: 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.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
}

body.archive .is-style-news-card .is-style-post-meta > .wp-block-post-terms::before {
	-webkit-mask-image: 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.6' stroke-linejoin='round'%3E%3Cpath d='M3 6.5A1.5 1.5 0 0 1 4.5 5H9l2 2.5h8.5A1.5 1.5 0 0 1 21 9v9.5a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 3 18.5z'/%3E%3C/svg%3E");
	mask-image: 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.6' stroke-linejoin='round'%3E%3Cpath d='M3 6.5A1.5 1.5 0 0 1 4.5 5H9l2 2.5h8.5A1.5 1.5 0 0 1 21 9v9.5a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 3 18.5z'/%3E%3C/svg%3E");
}

body.archive .is-style-news-card .is-style-post-meta a {
	color: inherit !important;
	text-decoration: none !important;
}

body.archive .is-style-news-card .wp-block-post-excerpt {
	margin: 14px 0 0 !important;
	color: var(--sl-text-soft);
	font-family: "Open Sans", sans-serif;
	font-size: 15px !important;
	line-height: 27px !important;
}

body.archive .is-style-news-card .wp-block-post-excerpt__excerpt {
	margin: 0;
}

body.archive .is-style-news-card .wp-block-read-more {
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	align-self: flex-start;
	margin: 28px 0 0 !important;
	padding: 12px 22px !important;
	border-radius: 999px;
	background-color: var(--sl-navy) !important;
	color: #fff !important;
	font-family: "Open Sans", sans-serif !important;
	font-size: 15px !important;
	font-weight: 400 !important;
	line-height: 18px !important;
	letter-spacing: 0.2px !important;
	text-decoration: none !important;
	text-transform: none !important;
	transition: background-color 0.2s;
}

body.archive .is-style-news-card .wp-block-read-more::after {
	content: "›";
	font-size: 18px;
	line-height: 1;
}

body.archive .is-style-news-card .wp-block-read-more:hover {
	background-color: var(--sl-navy-deep) !important;
}

@media (max-width: 767px) {
	body.archive .is-style-news-card {
		grid-template-columns: minmax(0, 1fr) !important;
	}

	body.archive .is-style-news-card > .wp-block-post-featured-image {
		aspect-ratio: 3 / 2 !important;
		min-height: 0;
	}

	body.archive .is-style-news-card > .wp-block-group {
		padding: 28px 24px 32px !important;
	}
}

/* 16. Headings on a navy box keep the box's white (they were navy on navy:
   "(yht. 52€)" on the lump clinic price strips) */

body:not(.home) .wp-block-post-content :is(.has-secondary-background-color, .has-primary-background-color) :is(h1, h2, h3, h4, h5, h6) {
	color: inherit !important;
}

/* 17. A row of buttons split over two columns (booking | call) sits as one
   group, the call button carrying the phone icon (source button icons) */

body:not(.home) .wp-block-post-content .wp-block-columns:has(> .wp-block-column > .wp-block-buttons:only-child):not(:has(> .wp-block-column > :not(.wp-block-buttons))) {
	flex-wrap: wrap !important;
	justify-content: flex-start;
	gap: 12px !important;
}

body:not(.home) .wp-block-post-content .wp-block-columns:has(> .wp-block-column > .wp-block-buttons:only-child):not(:has(> .wp-block-column > :not(.wp-block-buttons))) > .wp-block-column {
	flex: none !important;
	width: auto !important;
}

body:not(.home) .wp-block-post-content .wp-block-button__link[href^="tel:"] {
	gap: 10px;
}

body:not(.home) .wp-block-post-content .wp-block-button__link[href^="tel:"]::before {
	content: "";
	flex: none;
	width: 15px;
	height: 15px;
	background-color: currentColor;
	-webkit-mask: var(--sl-icon-phone) center / contain no-repeat;
	mask: var(--sl-icon-phone) center / contain no-repeat;
}

/* 18. Lump clinic price cards (fi/sv/en): thin-lined white cards, the title
   row with the icon in a 52px tint circle, the text, and the navy price
   strip on the bottom edge; two 560px cards, centred (site.css d072042) */

body:not(.home) .wp-block-post-content .wp-block-columns:has(> .wp-block-column.has-border-color > .has-secondary-background-color:last-child) {
	justify-content: center;
	gap: 0 !important;
}

body:not(.home) .wp-block-post-content .wp-block-column.has-border-color:has(> .has-secondary-background-color:last-child) {
	display: flex;
	flex-direction: column;
	flex: 0 1 560px !important;
	box-sizing: border-box;
	margin: 0 0 0 0 !important;
	padding: 0 !important;
	overflow: hidden;
	border-radius: 24px !important;
	box-shadow: var(--sl-shadow-sm) !important;
}

body:not(.home) .wp-block-post-content .wp-block-column.has-border-color:has(> .has-secondary-background-color:last-child) + .wp-block-column.has-border-color {
	margin-left: 12px !important;
}

body:not(.home) .wp-block-post-content .wp-block-column.has-border-color:has(> .has-secondary-background-color:last-child) > * {
	margin: 0 !important;
}

/* title row */
body:not(.home) .wp-block-post-content .wp-block-column.has-border-color:has(> .has-secondary-background-color:last-child) > .wp-block-columns:first-child {
	flex-wrap: nowrap !important;
	align-items: center !important;
	gap: 16px !important;
	padding: 28px 28px 4px;
}

body:not(.home) .wp-block-post-content .wp-block-column.has-border-color:has(> .has-secondary-background-color:last-child) > .wp-block-columns:first-child > .wp-block-column:empty {
	display: none;
}

body:not(.home) .wp-block-post-content .wp-block-column.has-border-color:has(> .has-secondary-background-color:last-child) > .wp-block-columns:first-child > .wp-block-column:first-child {
	flex: 1 1 0 !important;
	min-width: 0;
}

body:not(.home) .wp-block-post-content .wp-block-column.has-border-color:has(> .has-secondary-background-color:last-child) > .wp-block-columns:first-child > .wp-block-column:has(> .is-style-icon) {
	flex: none !important;
	width: auto !important;
}

body:not(.home) .wp-block-post-content .wp-block-column.has-border-color:has(> .has-secondary-background-color:last-child) > .wp-block-columns:first-child h2 {
	margin: 0 !important;
	color: var(--sl-navy-deep);
	line-height: 1.2 !important;
	text-wrap: balance;
}

body:not(.home) .wp-block-post-content .wp-block-column.has-border-color:has(> .has-secondary-background-color:last-child) .is-style-icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	margin: 0 !important;
	overflow: hidden;
	border-radius: 50%;
	background-color: var(--sl-tint);
	color: var(--sl-navy);
	font-size: 22px !important;
	line-height: 1;
}

/* divider */
body:not(.home) .wp-block-post-content .wp-block-column.has-border-color:has(> .has-secondary-background-color:last-child) > hr.wp-block-separator {
	margin: 16px 28px !important;
	border-color: var(--sl-line);
}

/* text */
body:not(.home) .wp-block-post-content .wp-block-column.has-border-color:has(> .has-secondary-background-color:last-child) > .wp-block-group:not(.has-background) {
	flex: 1 1 auto;
	padding: 0 28px 20px;
}

body:not(.home) .wp-block-post-content .wp-block-column.has-border-color:has(> .has-secondary-background-color:last-child) > .wp-block-group:not(.has-background) > * {
	max-width: none;
}

/* price strip */
body:not(.home) .wp-block-post-content .wp-block-column.has-border-color:has(> .has-secondary-background-color:last-child) > .has-secondary-background-color:last-child {
	flex: none;
	margin-top: auto !important;
	padding: 20px 28px 22px !important;
	border-radius: 0 !important;
	background-color: var(--sl-navy) !important;
}

body:not(.home) .wp-block-post-content .wp-block-column.has-border-color:has(> .has-secondary-background-color:last-child) > .has-secondary-background-color:last-child p {
	margin: 0 0 6px !important;
	color: rgba(255, 255, 255, 0.86);
	font-size: 15px;
	line-height: 27px;
}

body:not(.home) .wp-block-post-content .wp-block-column.has-border-color:has(> .has-secondary-background-color:last-child) > .has-secondary-background-color:last-child :is(h2, h3, h4) {
	margin: 0 !important;
	color: #fff !important;
	font-family: Poppins, system-ui, sans-serif;
	font-size: 18px !important;
	font-weight: 600;
	line-height: 1.4 !important;
}

@media (max-width: 781px) {
	body:not(.home) .wp-block-post-content .wp-block-columns:has(> .wp-block-column.has-border-color > .has-secondary-background-color:last-child) {
		gap: 20px !important;
	}

	body:not(.home) .wp-block-post-content .wp-block-column.has-border-color:has(> .has-secondary-background-color:last-child) {
		flex-basis: 100% !important;
	}

	body:not(.home) .wp-block-post-content .wp-block-column.has-border-color:has(> .has-secondary-background-color:last-child) + .wp-block-column.has-border-color {
		margin-left: 0 !important;
	}
}

/* the clinic logo under the cards: centred, as in the source */
body:not(.home) .wp-block-post-content > section > .wp-block-group > .wp-block-image.is-resized:only-child {
	display: flex;
	justify-content: center;
}

/* 19. Contact pages (fi 121, sv 141, en 124): the boat and Z-pinsetti
   cards read like the hours card: an icon badge on top; the boat's service
   line, its number on a tinted strip with a phone mark, the days as a ruled
   list; Z-pinsetti's line on the same strip and a faint envelope in the
   corner (site.css d0c128e / 1c05a84) */

body:is(.page-id-121, .page-id-141, .page-id-124) {
	--sl-boat-card: ".wp-block-column:first-child > .wp-block-group.has-border-color";
}

body:is(.page-id-121, .page-id-141, .page-id-124) .wp-block-post-content .wp-block-columns > .wp-block-column:first-child > .wp-block-group.has-border-color:has(> p:nth-child(5):last-child) > p,
body:is(.page-id-121, .page-id-141, .page-id-124) .wp-block-post-content .wp-block-columns:has(> .wp-block-column:first-child > .wp-block-group.has-border-color > p:nth-child(5):last-child) > .wp-block-column:last-child > .wp-block-group.has-border-color > p {
	margin: 0 0 6px !important;
}

body:is(.page-id-121, .page-id-141, .page-id-124) .wp-block-post-content .wp-block-columns > .wp-block-column:first-child > .wp-block-group.has-border-color:has(> p:nth-child(5):last-child)::before,
body:is(.page-id-121, .page-id-141, .page-id-124) .wp-block-post-content .wp-block-columns:has(> .wp-block-column:first-child > .wp-block-group.has-border-color > p:nth-child(5):last-child) > .wp-block-column:last-child > .wp-block-group.has-border-color::before {
	content: "";
	display: block;
	width: 44px;
	height: 44px;
	margin-bottom: 18px;
	border-radius: 50%;
	background: var(--sl-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003e7e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 21c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1 .6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1'/%3E%3Cpath d='M19.38 20A11.6 11.6 0 0 0 21 14l-9-4-9 4c0 2.9.94 5.34 2.81 7.76'/%3E%3Cpath d='M19 13V7a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2v6'/%3E%3Cpath d='M12 10v4'/%3E%3Cpath d='M12 2v3'/%3E%3C/svg%3E") center / 22px no-repeat;
}

body:is(.page-id-121, .page-id-141, .page-id-124) .wp-block-post-content .wp-block-columns:has(> .wp-block-column:first-child > .wp-block-group.has-border-color > p:nth-child(5):last-child) > .wp-block-column:last-child > .wp-block-group.has-border-color::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003e7e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='4.5' width='19' height='15' rx='2.5'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
}

/* boat: service line */
body:is(.page-id-121, .page-id-141, .page-id-124) .wp-block-post-content .wp-block-columns > .wp-block-column:first-child > .wp-block-group.has-border-color:has(> p:nth-child(5):last-child) > p:first-of-type {
	margin-bottom: 16px !important;
	color: var(--sl-text-soft);
	line-height: 1.5;
}

body:is(.page-id-121, .page-id-141, .page-id-124) .wp-block-post-content .wp-block-columns > .wp-block-column:first-child > .wp-block-group.has-border-color:has(> p:nth-child(5):last-child) > p:first-of-type :is(strong, b) {
	color: var(--sl-navy-deep);
}

/* boat: the number on a tinted strip */
body:is(.page-id-121, .page-id-141, .page-id-124) .wp-block-post-content .wp-block-columns > .wp-block-column:first-child > .wp-block-group.has-border-color:has(> p:nth-child(5):last-child) > p:nth-of-type(2) {
	position: relative;
	margin-bottom: 8px !important;
	padding: 13px 16px 13px 46px;
	border-radius: 14px;
	background-color: var(--sl-tint-soft);
	box-shadow: inset 0 0 0 1px var(--sl-line);
	color: var(--sl-navy-deep);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

body:is(.page-id-121, .page-id-141, .page-id-124) .wp-block-post-content .wp-block-columns > .wp-block-column:first-child > .wp-block-group.has-border-color:has(> p:nth-child(5):last-child) > p:nth-of-type(2)::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 16px;
	width: 18px;
	height: 18px;
	margin-top: -9px;
	background-color: var(--sl-green);
	-webkit-mask: 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.12 4.18 2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 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") center / contain no-repeat;
	mask: 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.12 4.18 2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 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") center / contain no-repeat;
}

/* boat: the days as a ruled list with clock marks */
body:is(.page-id-121, .page-id-141, .page-id-124) .wp-block-post-content .wp-block-columns > .wp-block-column:first-child > .wp-block-group.has-border-color:has(> p:nth-child(5):last-child) > p:nth-of-type(n+3) {
	position: relative;
	margin: 0 !important;
	padding: 9px 0 9px 26px;
	border-bottom: 1px dashed rgba(0, 62, 126, 0.16);
	color: var(--sl-navy-deep);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

body:is(.page-id-121, .page-id-141, .page-id-124) .wp-block-post-content .wp-block-columns > .wp-block-column:first-child > .wp-block-group.has-border-color:has(> p:nth-child(5):last-child) > p:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

body:is(.page-id-121, .page-id-141, .page-id-124) .wp-block-post-content .wp-block-columns > .wp-block-column:first-child > .wp-block-group.has-border-color:has(> p:nth-child(5):last-child) > p:nth-of-type(n+3)::before {
	content: "";
	position: absolute;
	top: 13px;
	left: 2px;
	width: 15px;
	height: 15px;
	background-color: var(--sl-green);
	-webkit-mask: var(--sl-icon-clock) center / contain no-repeat;
	mask: var(--sl-icon-clock) center / contain no-repeat;
}

/* Z-pinsetti: the line on a tinted strip, an envelope in the corner */
body:is(.page-id-121, .page-id-141, .page-id-124) .wp-block-post-content .wp-block-columns:has(> .wp-block-column:first-child > .wp-block-group.has-border-color > p:nth-child(5):last-child) > .wp-block-column:last-child > .wp-block-group.has-border-color {
	position: relative;
	height: 100%;
	box-sizing: border-box;
	overflow: hidden;
}

body:is(.page-id-121, .page-id-141, .page-id-124) .wp-block-post-content .wp-block-columns:has(> .wp-block-column:first-child > .wp-block-group.has-border-color > p:nth-child(5):last-child) > .wp-block-column:last-child > .wp-block-group.has-border-color > p {
	position: relative;
	z-index: 1;
	margin: 0 !important;
	padding: 13px 16px;
	border-radius: 14px;
	background-color: var(--sl-tint-soft);
	box-shadow: inset 0 0 0 1px var(--sl-line);
	color: var(--sl-navy-deep);
	line-height: 1.6;
	overflow-wrap: anywhere;
}

body:is(.page-id-121, .page-id-141, .page-id-124) .wp-block-post-content .wp-block-columns:has(> .wp-block-column:first-child > .wp-block-group.has-border-color > p:nth-child(5):last-child) > .wp-block-column:last-child > .wp-block-group.has-border-color::after {
	content: "";
	position: absolute;
	right: -18px;
	bottom: -30px;
	width: 190px;
	height: 190px;
	background-color: rgba(30, 86, 158, 0.06);
	-webkit-mask: 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.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='4.5' width='19' height='15' rx='2.5'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: 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.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='4.5' width='19' height='15' rx='2.5'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E") center / contain no-repeat;
	pointer-events: none;
}

@media (max-width: 781px) {
	body:is(.page-id-121, .page-id-141, .page-id-124) .wp-block-post-content .wp-block-columns:has(> .wp-block-column:first-child > .wp-block-group.has-border-color > p:nth-child(5):last-child) > .wp-block-column:last-child > .wp-block-group.has-border-color::after {
		content: none;
	}
}

/* the lead doctor line and the privacy link share one line */
body:is(.page-id-121, .page-id-141, .page-id-124) .wp-block-post-content > section:first-child > .wp-block-group > p:is(:nth-last-child(2), :last-child:has(> a:only-child)) {
	display: inline-block;
	margin-right: 16px !important;
	vertical-align: baseline;
}

/* 20. A card that ends with its button (the booking card beside the hours):
   the button sits on the card's bottom edge, as in the source */

body:not(.home) .wp-block-post-content .wp-block-columns > .wp-block-column.has-border-color:has(> .wp-block-buttons:last-child):not(:has(> .is-style-team)) {
	display: flex;
	flex-direction: column;
}

body:not(.home) .wp-block-post-content .wp-block-columns > .wp-block-column.has-border-color:has(> .wp-block-buttons:last-child):not(:has(> .is-style-team)) > .wp-block-buttons:last-child {
	margin-top: auto !important;
	padding-top: 20px;
}

/* 21. Clinic image box (logo, clinic name, address) outside a card column:
   a white card with the text centred, as the image boxes elsewhere */

body:not(.home) .wp-block-post-content .wp-block-column:not(.has-background) > .wp-block-group:not([class*="is-style-"]):has(> .wp-block-image:first-child + :is(h3, h4) + p) {
	box-sizing: border-box;
	margin-top: 20px !important;
	padding: 29px 25px !important;
	border: 1px solid var(--sl-line);
	border-radius: 24px;
	background-color: #fff;
	box-shadow: var(--sl-shadow-sm);
	text-align: center;
}

body:not(.home) .wp-block-post-content .wp-block-column:not(.has-background) > .wp-block-group:not([class*="is-style-"]):has(> .wp-block-image:first-child + :is(h3, h4) + p) > .wp-block-image {
	margin: 0 0 23px !important;
	text-align: center;
}

body:not(.home) .wp-block-post-content .wp-block-column:not(.has-background) > .wp-block-group:not([class*="is-style-"]):has(> .wp-block-image:first-child + :is(h3, h4) + p) > .wp-block-image img {
	width: 162px;
	height: auto;
	margin: 0 auto;
	border-radius: 0 !important;
	box-shadow: none !important;
}

body:not(.home) .wp-block-post-content .wp-block-column:not(.has-background) > .wp-block-group:not([class*="is-style-"]):has(> .wp-block-image:first-child + :is(h3, h4) + p) > :is(h3, h4) {
	margin: 0 0 20px !important;
	color: var(--sl-navy-deep);
	font-size: 18px !important;
	line-height: 1.3;
}

body:not(.home) .wp-block-post-content .wp-block-column:not(.has-background) > .wp-block-group:not([class*="is-style-"]):has(> .wp-block-image:first-child + :is(h3, h4) + p) > p {
	max-width: none;
	margin: 0 !important;
	text-align: center;
}

/* 22. The clinic map fills its column, as the source's (the cookie
   placeholder and, after consent, the map itself) */

body:not(.home) .wp-block-post-content .wp-block-saaristolaakarit-map {
	overflow: hidden;
	border-radius: 24px;
}

body:not(.home) .wp-block-post-content .wp-block-saaristolaakarit-map > :is(.cmplz-placeholder-parent, iframe),
body:not(.home) .wp-block-post-content .wp-block-saaristolaakarit-map > .cmplz-placeholder-parent > :is(iframe, .cmplz-blocked-content-container) {
	width: 100% !important;
	height: 100% !important;
	min-height: 100%;
	margin: 0;
}

body:not(.home) .wp-block-post-content .wp-block-saaristolaakarit-map .cmplz-placeholder-element {
	background-size: cover !important;
	background-position: center !important;
}

/* 23. Price lists, as the source's (site.css price lists):
   the list title 20px below the card edge; a note between the rows reads as
   quiet text attached to the row above (not a pill); the line under the
   title as the title's subline; the subtitle under a centred section
   heading as plain text; the notes under the lists in a soft tint box with
   an info mark */

body:not(.home) .wp-block-post-content .is-style-price-list {
	padding-top: 10px !important;
}

body:not(.home) .wp-block-post-content .is-style-price-list > h2:first-child {
	margin-top: 20px !important;
}

body:not(.home) .wp-block-post-content .is-style-price-row.sl-row-note {
	margin-top: 0 !important;
	padding-bottom: 12px !important;
}

body:not(.home) .wp-block-post-content .is-style-price-row.sl-row-note > p:nth-child(2) {
	padding: 0 !important;
	border-radius: 0;
	background: none !important;
	color: var(--sl-text-soft) !important;
	font-size: 15px !important;
	font-weight: 400 !important;
	line-height: 1.5 !important;
}

body:not(.home) .wp-block-post-content .is-style-price-row.sl-row-note > p:nth-child(2) :is(b, strong) {
	color: var(--sl-text-soft);
	font-weight: 700;
}

body:not(.home) .wp-block-post-content .is-style-price-row.sl-row-note > p:nth-child(2)::before {
	content: none !important;
}

body:not(.home) .wp-block-post-content .is-style-price-row.sl-row-note > p:nth-child(2) a {
	color: var(--sl-blue);
	text-decoration: underline;
	text-decoration-color: rgba(30, 86, 158, 0.35);
	text-underline-offset: 3px;
}

/* under the list title */
body:not(.home) .wp-block-post-content .is-style-price-list > h2 + .is-style-price-row.sl-row-note {
	padding-bottom: 14px !important;
}

body:not(.home) .wp-block-post-content .is-style-price-list > h2 + .is-style-price-row.sl-row-note > .is-style-icon-dot {
	display: none !important;
}

/* the subtitle under a centred section heading */
body:not(.home) .wp-block-post-content h2.has-text-align-center + p.has-text-align-center:not(:has(a, br)) {
	display: block;
	margin: 4px auto 24px !important;
	padding: 0;
	border-radius: 0;
	background: none;
	color: var(--sl-text, #282828);
	font-size: 15px;
	font-weight: 400;
	line-height: 27px;
	letter-spacing: normal;
	text-transform: none;
}

/* the notes right under a price section */
body:not(.home) .wp-block-post-content > section:has(.is-style-price-list) + section:not(:has(.is-style-price-list, .wp-block-image, h1, h2, h3, .wp-block-buttons)) > .wp-block-group:has(> p) {
	position: relative;
	box-sizing: border-box;
	margin-top: 4px !important;
	padding: 18px 24px 18px 60px;
	border-radius: 18px;
	background-color: var(--sl-tint-soft);
	box-shadow: inset 0 0 0 1px var(--sl-line);
	color: var(--sl-navy-deep);
	letter-spacing: 0.02em;
	line-height: 1.7;
}

body:not(.home) .wp-block-post-content > section:has(.is-style-price-list) + section:not(:has(.is-style-price-list, .wp-block-image, h1, h2, h3, .wp-block-buttons)) > .wp-block-group:has(> p)::before {
	content: "";
	position: absolute;
	top: 18px;
	left: 22px;
	width: 22px;
	height: 22px;
	background-color: var(--sl-navy);
	-webkit-mask: var(--sl-icon-info) center / contain no-repeat;
	mask: var(--sl-icon-info) center / contain no-repeat;
}

body:not(.home) .wp-block-post-content > section:has(.is-style-price-list) + section:not(:has(.is-style-price-list, .wp-block-image, h1, h2, h3, .wp-block-buttons)) > .wp-block-group:has(> p) > p {
	max-width: none !important;
	margin: 0 !important;
	line-height: 1.7;
	text-align: left !important;
}

body:not(.home) .wp-block-post-content > section:has(.is-style-price-list) + section:not(:has(.is-style-price-list, .wp-block-image, h1, h2, h3, .wp-block-buttons)) > .wp-block-group:has(> p) > p + p {
	margin-top: 10px !important;
}

/* the price-list pages set these notes in capitals (Elementor text style) */
body:is(.page-id-131, .page-id-158, .page-id-129) .wp-block-post-content > section:has(.is-style-price-list) + section:not(:has(.is-style-price-list, .wp-block-image, h1, h2, h3, .wp-block-buttons)) > .wp-block-group:has(> p) {
	text-transform: uppercase;
}

/* the clinic pages centre their one-line note */
body:is(.page-id-119, .page-id-130, .page-id-145) .wp-block-post-content > section:has(.is-style-price-list) + section:not(:has(.is-style-price-list, .wp-block-image, h1, h2, h3, .wp-block-buttons)) > .wp-block-group:has(> p) > p {
	text-align: center !important;
}

/* the price pages' introduction reads from the left edge */
body:is(.page-id-131, .page-id-158, .page-id-129) .wp-block-post-content > section:first-child p.has-text-align-center {
	text-align: left;
}

@media (max-width: 767px) {
	body:not(.home) .wp-block-post-content > section:has(.is-style-price-list) + section:not(:has(.is-style-price-list, .wp-block-image, h1, h2, h3, .wp-block-buttons)) > .wp-block-group:has(> p) {
		padding: 16px 18px 16px 50px;
	}

	body:not(.home) .wp-block-post-content > section:has(.is-style-price-list) + section:not(:has(.is-style-price-list, .wp-block-image, h1, h2, h3, .wp-block-buttons)) > .wp-block-group:has(> p)::before {
		top: 17px;
		left: 16px;
		width: 20px;
		height: 20px;
	}
}

/* 24. Aikataulut / Tidtabell (107, 9268): banner and schedule in one white
   card, 800px; the stops as light rows with a calendar mark; the notes as a
   quiet footer; the closing link as a pill (site.css B3) */

body:is(.page-id-107, .page-id-9268) .wp-block-post-content {
	box-sizing: border-box;
	max-width: 800px;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-bottom: 48px;
	overflow: hidden;
	border: 1px solid var(--sl-line);
	border-radius: 24px;
	background-color: #fff;
	box-shadow: var(--sl-shadow-sm);
	color: var(--sl-text);
}

body:is(.page-id-107, .page-id-9268) #wp--skip-link--target .wp-block-post-content > section {
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

body:is(.page-id-107, .page-id-9268) .wp-block-post-content > section:empty,
body:is(.page-id-107, .page-id-9268) .wp-block-post-content > section:last-child:not(:has(h2, p, figure)) {
	display: none;
}

body:is(.page-id-107, .page-id-9268) .wp-block-post-content > section:first-child :is(.wp-block-group, .wp-block-image) {
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

body:is(.page-id-107, .page-id-9268) .wp-block-post-content > section:first-child .wp-block-image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1024 / 402;
	object-fit: cover;
	border-radius: 0 !important;
	box-shadow: none !important;
}

body:is(.page-id-107, .page-id-9268) .wp-block-post-content > section:nth-child(2) > .wp-block-group {
	padding: 40px 32px 0;
}

body:is(.page-id-107, .page-id-9268) .wp-block-post-content > section:nth-child(2) > .wp-block-group > * {
	max-width: none !important;
}

body:is(.page-id-107, .page-id-9268) .wp-block-post-content h2 {
	margin: 0 0 20px !important;
	color: var(--sl-navy-deep);
	line-height: 1.3;
	text-wrap: balance;
}

body:is(.page-id-107, .page-id-9268) .wp-block-post-content h5 {
	margin: 0 0 12px !important;
	color: var(--sl-navy-deep);
	line-height: 1.5;
	text-wrap: balance;
}

body:is(.page-id-107, .page-id-9268) .wp-block-post-content h5 + h5 {
	margin-top: 28px !important;
}

body:is(.page-id-107, .page-id-9268) .wp-block-post-content :is(strong, b) {
	color: var(--sl-navy-deep);
}

body:is(.page-id-107, .page-id-9268) .wp-block-post-content p {
	margin: 0 0 20px !important;
	text-wrap: pretty;
}

body:is(.page-id-107, .page-id-9268) .wp-block-post-content p.sl-stop {
	position: relative;
	margin: 0 0 8px !important;
	padding: 12px 16px 12px 46px;
	border-radius: 12px;
	background-color: var(--sl-tint-soft);
	line-height: 1.6;
	text-wrap: wrap;
}

body:is(.page-id-107, .page-id-9268) .wp-block-post-content p.sl-stop:has(+ p:not(.sl-stop)) {
	margin-bottom: 20px !important;
}

body:is(.page-id-107, .page-id-9268) .wp-block-post-content p.sl-stop::before {
	content: "";
	position: absolute;
	left: 16px;
	top: 15px;
	width: 18px;
	height: 18px;
	background-color: var(--sl-navy);
	-webkit-mask: var(--sl-icon-calendar) center / contain no-repeat;
	mask: var(--sl-icon-calendar) center / contain no-repeat;
}

/* the notes at the end: left on the text edge, quieter, under a hairline */
body:is(.page-id-107, .page-id-9268) .wp-block-post-content p.has-text-align-center {
	margin: 0 0 6px !important;
	color: var(--sl-text-soft);
	text-align: left;
}

body:is(.page-id-107, .page-id-9268) .wp-block-post-content p:not(.has-text-align-center) + p.has-text-align-center {
	margin-top: 32px !important;
	padding-top: 24px;
	border-top: 1px solid var(--sl-line);
}

body:is(.page-id-107, .page-id-9268) .wp-block-post-content p.has-text-align-center:last-child {
	margin: 20px 0 0 !important;
}

/* the closing link holds a phrase and a bold word: it stays inline */
body:is(.page-id-107, .page-id-9268) .wp-block-post-content a.sl-closing-link {
	display: inline-block;
}

body:is(.page-id-107, .page-id-9268) .wp-block-post-content a.sl-closing-link::after {
	display: inline-block;
	margin-left: 10px;
	vertical-align: -3px;
}

body:is(.page-id-107, .page-id-9268) .wp-block-post-content a.sl-closing-link :is(strong, b) {
	color: inherit;
}

@media (max-width: 767px) {
	body:is(.page-id-107, .page-id-9268) .wp-block-post-content {
		padding-bottom: 32px;
	}

	body:is(.page-id-107, .page-id-9268) .wp-block-post-content > section:first-child .wp-block-image img {
		min-height: 180px;
	}

	body:is(.page-id-107, .page-id-9268) .wp-block-post-content > section:nth-child(2) > .wp-block-group {
		padding: 28px 20px 0;
	}

	body:is(.page-id-107, .page-id-9268) .wp-block-post-content p.sl-stop {
		padding: 12px 12px 12px 40px;
	}

	body:is(.page-id-107, .page-id-9268) .wp-block-post-content p.sl-stop::before {
		left: 13px;
	}
}

/* 25. Rekrytointi (118) / Rekrytering (144): the article in the reading
   card; the vacancies (from their first h4 to the end) on a tint panel
   (site.css B4) */

body.page-id-118 #wp--skip-link--target .wp-block-post-content > section:first-child.is-layout-flow {
	box-sizing: border-box;
	max-width: calc(var(--sl-measure) + 2 * var(--sl-card-pad)) !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding: 56px var(--sl-card-pad) 64px !important;
	border: 1px solid var(--sl-line);
	border-radius: 24px;
	background-color: #fff;
	box-shadow: var(--sl-shadow-sm);
	color: var(--sl-text);
}

body.page-id-118 .wp-block-post-content > section:first-child > .wp-block-group > *,
body.page-id-144 .wp-block-post-content .is-style-reading-card > * {
	max-width: none !important;
}

body:is(.page-id-118, .page-id-144) .wp-block-post-content :is(h2, h4) {
	color: var(--sl-navy-deep);
	line-height: 1.3 !important;
}

body:is(.page-id-118, .page-id-144) .wp-block-post-content h2 {
	margin: 40px 0 16px !important;
}

body:is(.page-id-118, .page-id-144) .wp-block-post-content h2 + h2 {
	margin-top: 0 !important;
}

body:is(.page-id-118, .page-id-144) .wp-block-post-content h4 {
	margin: 0 0 12px !important;
}

body:is(.page-id-118, .page-id-144) .wp-block-post-content p {
	margin: 0 0 20px !important;
	text-wrap: pretty;
}

body:is(.page-id-118, .page-id-144) .wp-block-post-content :is(strong, b) {
	color: var(--sl-navy-deep);
}

/* the vacancy panel: every block from the first h4 on carries the tint and
   bleeds 28px out on both sides; the first opens the panel, the last closes
   it */
body:is(.page-id-118, .page-id-144) .wp-block-post-content :is(h4:first-of-type, h4:first-of-type ~ *):not(.sl-closing) {
	margin: 0 -28px !important;
	padding: 0 28px 20px;
	background-color: var(--sl-tint-soft);
}

body:is(.page-id-118, .page-id-144) .wp-block-post-content :is(h4:first-of-type ~ h4) {
	padding-bottom: 12px;
}

body:is(.page-id-118, .page-id-144) #wp--skip-link--target .wp-block-post-content h4:first-of-type:not(.sl-closing) {
	margin-top: 40px !important;
	padding-top: 32px;
	border-radius: 20px 20px 0 0;
}

body:is(.page-id-118, .page-id-144) .wp-block-post-content :is(h4:first-of-type ~ *):not(.sl-closing):is(:last-child, :has(+ .sl-closing)) {
	padding-bottom: 32px;
	border-radius: 0 0 20px 20px;
}

body.page-id-118 .wp-block-post-content p.sl-closing {
	margin: 32px 0 0 !important;
}

@media (max-width: 767px) {
	body:is(.page-id-118, .page-id-144) .wp-block-post-content :is(h4:first-of-type, h4:first-of-type ~ *):not(.sl-closing) {
		margin: 0 -12px !important;
		padding-left: 12px;
		padding-right: 12px;
	}

	body:is(.page-id-118, .page-id-144) .wp-block-post-content h4:first-of-type {
		padding-top: 24px;
	}

	body.page-id-118 #wp--skip-link--target .wp-block-post-content > section:first-child.is-layout-flow {
		margin-left: 8px !important;
		margin-right: 8px !important;
		padding: 28px 20px 32px !important;
	}
}

/* 26. Contact pages: the clinic logo in the address card is 46% of the
   card's text width, at most 251px (the source's image-box setting) */

body:is(.page-id-121, .page-id-141, .page-id-124) .wp-block-post-content .has-border-color > .wp-block-group > .wp-block-image:first-child img {
	width: min(46%, 251px) !important;
	height: auto !important;
	margin-inline: auto;
}

/* 27. Phones: one 16px page gutter (the theme added the column gutter on
   top of the section's own: cards sat 40px in from the edge); cards with
   the source's 24px / 20px padding */

@media (max-width: 767px) {
	body:not(.home) #wp--skip-link--target .wp-block-post-content > section:not(.has-background):not(.wp-block-cover) {
		padding-left: 16px !important;
		padding-right: 16px !important;
	}

	body:not(.home) #wp--skip-link--target .wp-block-post-content > section > .wp-block-columns {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	body:not(.home) #wp--skip-link--target .wp-block-post-content :is(.wp-block-column, .wp-block-group).has-border-color.has-background:not(.is-style-team):not(:has(> .is-style-team)):not(:has(> .has-secondary-background-color:last-child)):not(.is-style-price-list):not(.sl-hours) {
		padding: 24px 20px !important;
	}
}

/* 28. Title panel: the breadcrumb chip one line tall (5px / 14px, as the
   source); the links keep their larger tap area without stretching the
   chip */

main > .wp-block-cover nav.wp-block-breadcrumbs {
	padding: 5px 14px !important;
}

main > .wp-block-cover nav.wp-block-breadcrumbs a {
	margin-block: -10px;
}

/* content starts 48 / 40 / 28px under the title panel (source: desktop,
   tablet, phone) */
@media (max-width: 1099px) {
	main > .wp-block-cover.is-style-title-panel + .wp-block-post-content {
		margin-top: 40px !important;
	}
}

@media (max-width: 767px) {
	main > .wp-block-cover.is-style-title-panel + .wp-block-post-content {
		margin-top: 28px !important;
	}

	body.archive main > .wp-block-cover.is-style-title-panel + section {
		padding-top: 28px !important;
	}
}

/* 29. Price rows: the price column takes at most 46% of the row and its
   note wraps under the price (it was a no-wrap, no-shrink column: a long
   VAT note squeezed the service name to one letter a line on phones);
   the price itself stays on one line */

body:not(.home) .wp-block-post-content .is-style-price-row > p.is-style-price {
	flex: 0 1 auto !important;
	max-width: 46%;
	white-space: normal !important;
	overflow-wrap: break-word;
}

body:not(.home) .wp-block-post-content .is-style-price-row > p.is-style-price > :is(b, strong) {
	white-space: nowrap;
}

body:not(.home) .wp-block-post-content .is-style-price-row > p:nth-child(2):not(.is-style-price) {
	flex: 1 1 0 !important;
	min-width: 0;
}

@media (min-width: 768px) and (max-width: 1024px) {
	body:not(.home) .wp-block-post-content .is-style-price-list {
		padding-left: 14px !important;
		padding-right: 14px !important;
	}
}

@media (max-width: 767px) {
	body:not(.home) .wp-block-post-content .is-style-price-list {
		padding: 4px 18px !important;
	}
}

/* the trail flows as one line of text and wraps between words, as the
   source's (each crumb was an unbreakable flex item: three lines on phones) */
main > .wp-block-cover nav.wp-block-breadcrumbs ol {
	display: block !important;
}

main > .wp-block-cover nav.wp-block-breadcrumbs li {
	display: inline !important;
}

/* 30. Single posts: the reading sheet of the source (site.css posts):
   a 680px text column in an 842px white card; the featured picture whole on
   a light plate across the card's top (wide photos as a banner, tagged by
   parity-fixes.js); date and category as two quiet pills; tags as chips;
   previous / next post as tint cards */

body.single-post {
	--sl-post-measure: 680px;
	--sl-post-pad: 80px;
	--sl-post-pad-top: 56px;
}

@media (max-width: 1024px) {
	body.single-post {
		--sl-post-pad: 56px;
	}
}

@media (max-width: 767px) {
	body.single-post {
		--sl-post-pad: 20px;
		--sl-post-pad-top: 28px;
	}
}

body.single-post main > .wp-block-cover + section {
	padding-top: 48px !important;
}

body.single-post #wp--skip-link--target .is-style-reading-card {
	display: flow-root;
	box-sizing: border-box;
	max-width: calc(var(--sl-post-measure) + 2 * var(--sl-post-pad) + 2px) !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding: var(--sl-post-pad-top) var(--sl-post-pad) 56px !important;
	color: var(--sl-text);
}

body.single-post #wp--skip-link--target .is-style-reading-card > *:not(.wp-block-post-featured-image) {
	max-width: var(--sl-post-measure) !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

/* the picture */
body.single-post #wp--skip-link--target .is-style-reading-card > .wp-block-post-featured-image {
	display: grid;
	justify-items: center;
	align-items: center;
	max-width: none !important;
	margin: calc(var(--sl-post-pad-top) * -1) calc(var(--sl-post-pad) * -1) 44px !important;
	padding: 20px;
	overflow: hidden;
	border-bottom: 1px solid var(--sl-line);
	border-radius: 23px 23px 0 0;
	background-color: var(--sl-tint-soft);
}

body.single-post #wp--skip-link--target .is-style-reading-card > .wp-block-post-featured-image img {
	display: block;
	width: auto !important;
	max-width: 100%;
	height: auto !important;
	max-height: min(440px, 52vh);
	border-radius: 16px;
	box-shadow: var(--sl-shadow-sm);
	object-fit: contain;
}

body.single-post #wp--skip-link--target .is-style-reading-card > .wp-block-post-featured-image.sl-thumb-banner {
	padding: 0;
	background-color: var(--sl-surface);
}

body.single-post #wp--skip-link--target .is-style-reading-card > .wp-block-post-featured-image.sl-thumb-banner img {
	width: 100% !important;
	max-height: none;
	border-radius: 0;
	box-shadow: none;
	object-fit: cover;
}

body.single-post #wp--skip-link--target .is-style-reading-card > .wp-block-post-featured-image.sl-thumb-banner.sl-thumb-crop img {
	aspect-ratio: 16 / 9;
	max-height: 440px;
}

/* title and meta */
body.single-post #wp--skip-link--target .is-style-reading-card > .wp-block-post-title {
	margin-top: 0 !important;
	margin-bottom: 18px !important;
	color: var(--sl-navy-deep);
	font-family: Poppins, system-ui, sans-serif;
	font-size: 34px;
	line-height: 1.22;
	letter-spacing: -0.01em;
	text-wrap: pretty;
}

body.single-post #wp--skip-link--target .is-style-reading-card > .is-style-post-meta {
	flex-wrap: wrap;
	gap: 8px !important;
	margin-top: 0 !important;
	margin-bottom: 36px !important;
	color: var(--sl-text-soft);
	font-family: "Open Sans", sans-serif;
	font-size: 14px;
}

body.single-post #wp--skip-link--target .is-style-reading-card > .is-style-post-meta > * {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	box-sizing: border-box;
	min-height: 32px;
	margin: 0 !important;
	padding: 4px 14px 4px 12px;
	border-radius: 999px;
	background-color: var(--sl-tint-soft);
	box-shadow: inset 0 0 0 1px var(--sl-line);
	color: var(--sl-text-soft);
	line-height: 1.4;
}

body.single-post #wp--skip-link--target .is-style-reading-card > .is-style-post-meta > *::before {
	content: "";
	flex: none;
	width: 14px;
	height: 14px;
	background-color: var(--sl-navy);
	-webkit-mask: 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%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: 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%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.single-post #wp--skip-link--target .is-style-reading-card > .is-style-post-meta > .wp-block-post-terms::before {
	-webkit-mask-image: 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-linejoin='round'%3E%3Cpath d='M3 6.5A1.5 1.5 0 0 1 4.5 5H9l2 2.5h8.5A1.5 1.5 0 0 1 21 9v9.5a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 3 18.5z'/%3E%3C/svg%3E");
	mask-image: 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-linejoin='round'%3E%3Cpath d='M3 6.5A1.5 1.5 0 0 1 4.5 5H9l2 2.5h8.5A1.5 1.5 0 0 1 21 9v9.5a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 3 18.5z'/%3E%3C/svg%3E");
}

body.single-post #wp--skip-link--target .is-style-reading-card > .is-style-post-meta a {
	color: var(--sl-navy-deep) !important;
	text-decoration: none !important;
}

/* the text column: no extra indent of its own */
body.single-post #wp--skip-link--target .is-style-reading-card > .wp-block-post-content {
	padding: 0 !important;
}

body.single-post #wp--skip-link--target .is-style-reading-card > .wp-block-post-content > * {
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

body.single-post #wp--skip-link--target .is-style-reading-card > .wp-block-post-content > :is(h2, h3, h4) {
	color: var(--sl-navy-deep);
	line-height: 1.3;
	text-wrap: pretty;
}

body.single-post #wp--skip-link--target .is-style-reading-card > .wp-block-post-content > h2 {
	margin: 48px 0 16px !important;
	letter-spacing: -0.005em;
}

body.single-post #wp--skip-link--target .is-style-reading-card > .wp-block-post-content > :is(h3, h4) {
	margin: 36px 0 12px !important;
}

body.single-post #wp--skip-link--target .is-style-reading-card > .wp-block-post-content > :is(h2, h3, h4):first-child {
	margin-top: 0 !important;
}

body.single-post #wp--skip-link--target .is-style-reading-card > .wp-block-post-content > p {
	margin: 0 0 20px !important;
}

body.single-post #wp--skip-link--target .is-style-reading-card > .wp-block-post-content > p:empty {
	display: none;
}

body.single-post #wp--skip-link--target .is-style-reading-card > .wp-block-post-content strong {
	color: var(--sl-navy-deep);
}

body.single-post #wp--skip-link--target .is-style-reading-card > .wp-block-post-content a:not(.btn-call):not(.wp-block-button__link) {
	color: var(--sl-blue);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-decoration-color: rgba(30, 86, 158, 0.38);
	text-underline-offset: 3px;
	overflow-wrap: anywhere;
}

body.single-post #wp--skip-link--target .is-style-reading-card > .wp-block-post-content :is(figure, img) {
	border-radius: 12px;
}

/* call buttons */
body.single-post #wp--skip-link--target .is-style-reading-card > .wp-block-post-content a.btn-call {
	display: inline-block;
	box-sizing: border-box;
	max-width: 100%;
	margin: 6px 0;
	padding: 11px 24px;
	border-radius: 999px;
	background-color: var(--sl-navy);
	box-shadow: 0 10px 22px -14px rgba(0, 39, 88, 0.7);
	color: #fff !important;
	font-weight: 600;
	line-height: 1.25;
	text-align: center;
	text-decoration: none !important;
	transition: background-color 0.2s;
}

body.single-post #wp--skip-link--target .is-style-reading-card > .wp-block-post-content a.btn-call:hover {
	background-color: var(--sl-navy-deep);
}

/* tags */
body.single-post #wp--skip-link--target .is-style-reading-card > .is-style-tags {
	margin-top: 44px !important;
	padding-top: 24px;
	border-top: 1px solid var(--sl-line);
	color: var(--sl-text-soft);
	font-size: 12px;
	line-height: 2.5;
}

body.single-post #wp--skip-link--target .is-style-reading-card > .is-style-tags a {
	display: inline;
	margin-right: 4px;
	padding: 4px 12px;
	border-radius: 999px;
	white-space: nowrap;
	background-color: var(--sl-tint-soft);
	box-shadow: inset 0 0 0 1px var(--sl-line);
	color: var(--sl-blue) !important;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0.02em;
	text-decoration: none !important;
	text-transform: uppercase;
	transition: background-color 0.2s, color 0.2s;
}

body.single-post #wp--skip-link--target .is-style-reading-card > .is-style-tags a:hover {
	background-color: var(--sl-tint);
	color: var(--sl-navy-deep) !important;
}

/* previous / next */
body.single-post #wp--skip-link--target .is-style-reading-card > .is-style-post-nav {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px !important;
	margin-top: 28px !important;
	padding-top: 0 !important;
	border-top: 0 !important;
}

body.single-post #wp--skip-link--target .is-style-reading-card > .is-style-post-nav > .post-navigation-link-next {
	grid-column: 2;
}

body.single-post #wp--skip-link--target .is-style-reading-card > .is-style-post-nav a {
	display: flex;
	flex-direction: column;
	gap: 8px;
	box-sizing: border-box;
	height: 100%;
	padding: 20px 24px 22px;
	border: 1px solid var(--sl-line);
	border-radius: 20px;
	background-color: var(--sl-tint-soft);
	color: var(--sl-navy-deep) !important;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.5;
	text-decoration: none !important;
	transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

body.single-post #wp--skip-link--target .is-style-reading-card > .is-style-post-nav a::before {
	content: "←";
	color: var(--sl-blue);
	font-weight: 600;
	line-height: 1;
}

body.single-post #wp--skip-link--target .is-style-reading-card > .is-style-post-nav .post-navigation-link-next a {
	text-align: right;
}

body.single-post #wp--skip-link--target .is-style-reading-card > .is-style-post-nav .post-navigation-link-next a::before {
	content: "→";
}

body.single-post #wp--skip-link--target .is-style-reading-card > .is-style-post-nav a:hover {
	background-color: #fff;
	box-shadow: var(--sl-shadow-lg);
	transform: translateY(-4px);
}

@media (max-width: 767px) {
	body.single-post main > .wp-block-cover + section {
		padding-top: 28px !important;
	}

	body.single-post #wp--skip-link--target .is-style-reading-card {
		margin-left: -8px !important;
		margin-right: -8px !important;
	}

	body.single-post #wp--skip-link--target .is-style-reading-card > .wp-block-post-title {
		font-size: 26px;
	}

	body.single-post #wp--skip-link--target .is-style-reading-card > .is-style-post-nav {
		grid-template-columns: minmax(0, 1fr);
	}

	body.single-post #wp--skip-link--target .is-style-reading-card > .is-style-post-nav > .post-navigation-link-next {
		grid-column: 1;
	}
}

/* posts and archives: the content starts 48 / 28px under the title panel
   (a 96px block margin was stacked on top of the section's padding) */
body:is(.single-post, .archive, .blog, .search) main > .wp-block-cover + section {
	margin-top: 0 !important;
}

/* 31. Z-pinsetti pharmacies (138): a wider card so the map has room; the
   sentences keep the reading measure; the map fills the card's width */
body.page-id-138 #wp--skip-link--target .wp-block-post-content .is-style-reading-card {
	max-width: 1040px !important;
}

body.page-id-138 #wp--skip-link--target .wp-block-post-content .is-style-reading-card > :not(iframe):not(:has(iframe)) {
	max-width: var(--sl-measure) !important;
}

body.page-id-138 .wp-block-post-content .is-style-reading-card iframe,
body.page-id-138 .wp-block-post-content .is-style-reading-card .cmplz-placeholder-parent {
	display: block;
	box-sizing: border-box;
	width: 100% !important;
	height: clamp(320px, 50vw, 480px) !important;
	border: 1px solid var(--sl-line);
	border-radius: 16px;
	background-color: var(--sl-tint-soft);
}

body.page-id-138 .wp-block-post-content .is-style-reading-card .cmplz-placeholder-parent iframe {
	border: 0;
}

body.page-id-138 .wp-block-post-content .is-style-reading-card > p:last-child {
	margin-top: 32px !important;
}

/* 32. Header dropdowns (desktop menu), as the source's:
   - the hover / open pill is one round shape: the caret button painted its
     own square tint over the pill's right end, so the item read as a tab
   - the panel starts at the pill's left edge (it hung 8px out to the left)
   - the panel's links in 13px Open Sans, the panel at least 195px wide */

header .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-icon {
	background: transparent !important;
	border-radius: 0 999px 999px 0;
}

header .wp-block-navigation .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-container {
	left: 0 !important;
	min-width: 195px !important;
}

header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	font-size: 13px !important;
	line-height: 20px !important;
}
