/* ==========================================================================
   Saaristolääkärit: parity layer
   The source site's measured values (site.css / facelift.css of the
   original) applied to the block markup. Sections: tokens, header, menus,
   language switcher, mobile panel.
   ========================================================================== */

:root {
	--sl-navy-deep: #002758;
	--sl-navy: #003e7e;
	--sl-blue: #1e569e;
	--sl-green: #78900c;
	--sl-green-light: #b4cc54;
	--sl-tint: #e7f0ff;
	--sl-tint-soft: #f3f7fd;
	--sl-surface: #f5f8fb;
	--sl-line: #e2e9f1;
	--sl-text-soft: #475569;
	--sl-wrap: 1248px;
	--sl-inset: 12px;
	--sl-header-offset: 96px;
	--sl-shadow-lg: 0 28px 56px -28px rgba(0, 39, 88, 0.38), 0 2px 6px rgba(0, 39, 88, 0.05);
}

@media (max-width: 767px) {
	:root {
		--sl-inset: 8px;
		--sl-header-offset: 76px;
	}
}

/* Header: a floating frosted bar that stays at the top ------------------- */

.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	inset: auto;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 999;
	padding: calc(var(--sl-inset) + 12px) 16px 0;
	margin-bottom: calc(var(--sl-header-offset) * -1);
	pointer-events: none;
}

.wp-site-blocks > header.wp-block-template-part > * {
	pointer-events: auto;
}

header .is-style-header-bar.wp-block-group {
	position: relative;
	isolation: isolate;
	box-sizing: border-box;
	max-width: calc(var(--sl-wrap) + 48px);
	min-height: 72px;
	margin: 0 auto !important;
	padding: 0 12px 0 24px !important;
	border: 0 !important;
	border-radius: 20px !important;
	background: transparent !important;
	box-shadow: 0 10px 30px -16px rgba(0, 39, 88, 0.3) !important;
	-webkit-backdrop-filter: none !important;
	backdrop-filter: none !important;
	transition: box-shadow 0.3s;
}

/* the glass sits on a pseudo layer so the fixed mobile panel inside the bar
   is not trapped by a backdrop-filter */
header .is-style-header-bar.wp-block-group::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border: 1px solid rgba(255, 255, 255, 0.8);
	border-radius: inherit;
	background-color: rgba(255, 255, 255, 0.84);
	-webkit-backdrop-filter: saturate(180%) blur(18px);
	backdrop-filter: saturate(180%) blur(18px);
	transition: background-color 0.3s;
}

html.sl-scrolled header .is-style-header-bar.wp-block-group {
	box-shadow: 0 14px 36px -14px rgba(0, 39, 88, 0.38) !important;
}

html.sl-scrolled header .is-style-header-bar.wp-block-group::before {
	background-color: rgba(255, 255, 255, 0.92);
}

header .is-style-header-bar > .wp-block-group {
	width: 100%;
	max-width: none !important;
	min-height: 72px;
	margin: 0 !important;
	gap: 16px;
	align-items: center;
}

/* Logo: the file has a white background; the transparent copy shows instead */
header .is-style-header-bar .wp-block-site-logo {
	flex: none;
	line-height: 0;
}

header .is-style-header-bar .wp-block-site-logo a {
	display: inline-block;
	background: url("../images/logo-transparent.png") center / contain no-repeat;
}

header .is-style-header-bar .wp-block-site-logo img {
	width: 176px !important;
	height: auto;
	max-width: none;
	opacity: 0;
}

/* right side: menu, then the language switcher */
header .is-style-header-bar > .wp-block-group > .wp-block-group {
	flex: 1 1 auto;
	min-width: 0;
	gap: 8px;
	justify-content: flex-end;
	align-items: center;
}

/* Main menu (desktop) ---------------------------------------------------- */

header .wp-block-navigation {
	font-family: "Open Sans", sans-serif;
	font-size: 15px !important;
	font-weight: 400;
	line-height: 20px;
}

header .wp-block-navigation .wp-block-navigation__container {
	gap: 0 !important;
	flex-wrap: nowrap;
	white-space: nowrap;
}

header .wp-block-navigation__container > .wp-block-navigation-item {
	margin: 0 1px;
	border-radius: 999px;
	color: var(--sl-blue);
	transition: background-color 0.2s, color 0.2s;
}

header .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	padding: 10px 8px !important;
	border-radius: 999px;
	color: var(--sl-blue) !important;
	background: transparent !important;
}

header .wp-block-navigation__container > .wp-block-navigation-item:is(:hover, :focus-within),
header .wp-block-navigation__container > .wp-block-navigation-item:is(:hover, :focus-within) > .wp-block-navigation-item__content {
	background-color: var(--sl-tint-soft);
	color: var(--sl-navy-deep) !important;
}

header .wp-block-navigation__container > .wp-block-navigation-item:is(.current-menu-item, .current-menu-ancestor),
header .wp-block-navigation__container > .wp-block-navigation-item:is(.current-menu-item, .current-menu-ancestor) > .wp-block-navigation-item__content {
	background-color: var(--sl-tint);
	color: var(--sl-navy-deep) !important;
}

/* a parent item: link + caret read as one pill */
header .wp-block-navigation__container > .has-child > .wp-block-navigation-item__content {
	padding-right: 0 !important;
}

header .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-icon {
	width: auto;
	height: 40px;
	margin: 0;
	padding: 0 8px 0 10px;
	color: inherit;
}

header .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-icon svg {
	display: none;
}

/* Font Awesome's caret-down at 15px */
header .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-icon::before {
	content: "";
	display: block;
	width: 0;
	height: 0;
	border-left: 4.7px solid transparent;
	border-right: 4.7px solid transparent;
	border-top: 5.6px solid currentColor;
	transition: transform 0.2s;
}

header .wp-block-navigation__container > .has-child:is(:hover, :focus-within) > .wp-block-navigation__submenu-icon::before {
	transform: rotate(180deg);
}

/* dropdown panel */
header .wp-block-navigation .wp-block-navigation__submenu-container {
	left: -8px !important;
	z-index: 20;
	width: max-content !important;
	min-width: 15em !important;
	max-width: 22em;
	padding: 8px !important;
	border: 1px solid var(--sl-line) !important;
	border-radius: 14px;
	background-color: #fff !important;
	box-shadow: var(--sl-shadow-lg);
	white-space: normal;
}

header .wp-block-navigation .wp-block-navigation__submenu-container::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -14px;
	height: 14px;
}

header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	display: block;
	padding: 10px 14px !important;
	border-radius: 8px;
	color: var(--sl-navy-deep) !important;
	transition: background-color 0.15s, color 0.15s;
}

header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:is(:hover, :focus-visible) {
	background-color: var(--sl-tint-soft);
	color: var(--sl-blue) !important;
}

header .wp-block-navigation .wp-block-navigation__submenu-container .current-menu-item > .wp-block-navigation-item__content {
	background-color: var(--sl-tint);
	color: var(--sl-navy-deep) !important;
}

/* Language switcher: one segmented control ------------------------------- */

header .wp-block-polylang-language-switcher {
	order: 2;
	flex: none;
	width: auto !important;
	margin: 0 0 0 12px !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	font-family: "Open Sans", sans-serif !important;
	font-size: 15px !important;
	font-weight: 400 !important;
	line-height: 20px;
}

header .wp-block-polylang-language-switcher ul {
	display: flex;
	flex-wrap: nowrap;
	gap: 2px;
	margin: 0;
	padding: 3px;
	list-style: none;
	border-radius: 999px;
	background-color: rgba(0, 39, 88, 0.06);
	box-shadow: inset 0 0 0 1px rgba(0, 39, 88, 0.08);
}

header .wp-block-polylang-language-switcher li {
	margin: 0;
	padding: 0;
}

header .wp-block-polylang-language-switcher a {
	display: grid !important;
	place-items: center;
	box-sizing: border-box;
	min-width: 34px;
	height: 30px;
	padding: 0 8px !important;
	border-radius: 999px;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--sl-blue) !important;
	text-decoration: none;
	text-transform: none !important;
	transition: background-color 0.2s, color 0.2s;
}

header .wp-block-polylang-language-switcher a:is(:hover, :focus-visible) {
	background-color: rgba(255, 255, 255, 0.75) !important;
	color: var(--sl-navy-deep) !important;
}

header .wp-block-polylang-language-switcher .current-lang a {
	background-color: #fff !important;
	color: var(--sl-navy-deep) !important;
	box-shadow: 0 1px 2px rgba(0, 39, 88, 0.12), 0 2px 8px -2px rgba(0, 39, 88, 0.14) !important;
	cursor: default;
}

/* Below 1280px: compact bar (logo, languages, menu button) --------------- */

@media (max-width: 1279px) {
	header .wp-block-navigation {
		order: 6;
	}

	header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: grid !important;
		place-items: center;
		width: 42px;
		height: 42px;
		padding: 0;
		border-radius: 12px;
		background-color: rgba(0, 39, 88, 0.06);
		color: var(--sl-navy);
		transition: background-color 0.2s;
	}

	header .wp-block-navigation__responsive-container-open:hover {
		background-color: var(--sl-tint);
	}

	header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none !important;
	}
}

@media (min-width: 1280px) {
	header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: none !important;
	}
}

/* the menu button's three bars (Font Awesome "bars") */
header .wp-block-navigation__responsive-container-open svg {
	display: none;
}

header .wp-block-navigation__responsive-container-open::before {
	content: "\f0c9";
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
	font-size: 16px;
	line-height: 1;
}

/* Slide-in menu panel ---------------------------------------------------- */

header .wp-block-navigation__responsive-container.is-menu-open {
	display: flex !important;
	flex-direction: row !important;
	justify-content: flex-end;
	padding: 0 !important;
	background-color: rgba(0, 39, 88, 0.42) !important;
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	animation: sl-fade 0.25s both;
}

header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-close {
	box-sizing: border-box;
	width: min(420px, 88vw);
	max-width: none;
	height: 100%;
	margin: 0;
	padding: 20px 24px 40px;
	overflow-y: auto;
	overscroll-behavior: contain;
	border-radius: 24px 0 0 24px;
	background-color: #fff;
	box-shadow: -24px 0 60px -30px rgba(0, 39, 88, 0.55);
	animation: sl-slide 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes sl-fade { from { opacity: 0; } }
@keyframes sl-slide { from { transform: translateX(24px); } }

header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog {
	position: relative;
	margin: 0 !important;
}

/* logo at the top of the panel */
header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog::before {
	content: "";
	display: block;
	width: 150px;
	height: 24px;
	margin: 2px 0 21px;
	background: url("../images/logo-transparent.png") left center / contain no-repeat;
}

header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
	top: -6px;
	right: -8px;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 999px;
	background-color: var(--sl-tint-soft);
	color: var(--sl-navy);
}

header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close:hover {
	background-color: var(--sl-tint);
}

header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close svg {
	display: none;
}

/* Font Awesome's times */
header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close::before {
	content: "\f00d";
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
	font-size: 16px;
	line-height: 1;
}

/* every item reads from the left edge (the bar's menu is right-justified) */
header .is-menu-open :is(.wp-block-navigation__container, .wp-block-navigation__submenu-container, .wp-block-navigation-item) {
	align-items: stretch !important;
	justify-content: flex-start !important;
	text-align: left;
}

header .is-menu-open .wp-block-navigation__submenu-container > .wp-block-navigation-item {
	display: block;
	width: 100%;
}

header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	display: block !important;
	padding: 0 !important;
}

header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	display: block !important;
	white-space: normal;
}

header .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item {
	display: block !important;
	margin: 0;
	border-top: 1px solid var(--sl-line);
	border-radius: 0;
	background: none !important;
}

header .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	display: flex !important;
	padding: 14px 4px !important;
	border-radius: 0;
	background: none !important;
	color: var(--sl-navy-deep) !important;
	font-weight: 600;
}

header .is-menu-open .wp-block-navigation__submenu-icon {
	display: none !important;
}

header .is-menu-open .wp-block-navigation__submenu-container {
	position: static !important;
	display: block !important;
	width: auto !important;
	min-width: 0 !important;
	max-width: none;
	height: auto !important;
	margin: -4px 0 0 !important;
	padding: 0 0 12px 12px !important;
	border: 0 !important;
	border-radius: 0;
	background: none !important;
	box-shadow: none;
	opacity: 1 !important;
	visibility: visible !important;
}

header .is-menu-open .wp-block-navigation__submenu-container::before {
	display: none;
}

header .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	display: block;
	padding: 8px 10px !important;
	border-left: 2px solid var(--sl-line);
	border-radius: 0;
	color: var(--sl-text-soft) !important;
}

header .is-menu-open :is(.wp-block-navigation-item__content):is(:hover, :focus-visible) {
	background-color: var(--sl-tint-soft) !important;
	color: var(--sl-blue) !important;
}

header .is-menu-open .current-menu-item > .wp-block-navigation-item__content {
	border-left-color: var(--sl-green);
	color: var(--sl-blue) !important;
}

/* Tablet and phone sizes of the bar -------------------------------------- */

@media (max-width: 1024px) {
	header .is-style-header-bar.wp-block-group {
		padding-left: 20px !important;
	}
}

@media (max-width: 767px) {
	.wp-site-blocks > header.wp-block-template-part {
		padding: calc(var(--sl-inset) + 8px) 16px 0;
	}

	header .is-style-header-bar.wp-block-group,
	header .is-style-header-bar > .wp-block-group {
		min-height: 60px;
	}

	header .is-style-header-bar.wp-block-group {
		padding: 0 8px 0 18px !important;
		border-radius: 16px !important;
	}

	header .is-style-header-bar .wp-block-site-logo {
		flex: 0 1 auto;
		min-width: 88px;
	}

	header .is-style-header-bar .wp-block-site-logo img {
		width: 140px !important;
		max-width: 100%;
	}

	header .wp-block-polylang-language-switcher {
		margin-left: 0 !important;
		font-size: 14px !important;
	}

	header .is-style-header-bar > .wp-block-group > .wp-block-group {
		flex: 1 0 auto;
	}
}

@media (max-width: 374px) {
	header .is-style-header-bar.wp-block-group {
		padding: 0 6px 0 14px !important;
	}

	header .is-style-header-bar .wp-block-site-logo img {
		width: 120px !important;
	}

	header .wp-block-polylang-language-switcher a {
		min-width: 30px;
		padding: 0 6px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	header .wp-block-navigation__responsive-container.is-menu-open,
	header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-close {
		animation: none;
	}
}

/* Icon font of the source (Font Awesome 5 Free, regular + solid) --------- */

@font-face {
	font-family: "Font Awesome 5 Free";
	font-style: normal;
	font-weight: 400;
	font-display: block;
	src: url("../fonts/fa-regular-400.woff2") format("woff2");
}

@font-face {
	font-family: "Font Awesome 5 Free";
	font-style: normal;
	font-weight: 900;
	font-display: block;
	src: url("../fonts/fa-solid-900.woff2") format("woff2");
}

/* ==========================================================================
   Front page (fi / sv / en home): hero, booking band, service panel
   ========================================================================== */

/* Hero photo: the header floats over it; the service panel still shows on
   the first screen */
.home .wp-block-post-content > .wp-block-cover:first-child {
	min-height: clamp(556px, calc(62vh + 96px), 716px) !important;
	margin: var(--sl-inset) var(--sl-inset) 0 !important;
	padding: 0 0 36px !important;
	align-items: flex-end;
	border-radius: 28px 28px 0 0;
}

.home .wp-block-post-content > .wp-block-cover:first-child > .wp-block-cover__background {
	background-image:
		linear-gradient(180deg, rgba(0, 39, 88, 0) 30%, rgba(0, 39, 88, 0.38) 64%, rgba(0, 62, 126, 0.94) 97%, var(--sl-navy) 100%),
		linear-gradient(90deg, rgba(0, 39, 88, 0.4) 0%, rgba(0, 39, 88, 0) 60%) !important;
	opacity: 1 !important;
}

.home .wp-block-post-content > .wp-block-cover:first-child > .wp-block-cover__inner-container {
	box-sizing: border-box;
	width: 100%;
	max-width: calc(var(--sl-wrap) + 40px);
	margin: 0 auto;
	padding: 0 20px;
}

.home .wp-block-post-content > .wp-block-cover:first-child h1 {
	margin: 0 0 32px;
	line-height: 1.125 !important;
	text-shadow: 0 2px 24px rgba(0, 25, 60, 0.35);
}

/* Booking band: clinic name and button side by side */
.home .wp-block-post-content > .wp-block-cover:first-child + section {
	margin: 0 var(--sl-inset) !important;
	padding: 8px 20px 144px !important;
	border-radius: 0 0 28px 28px;
}

.home .wp-block-post-content > .wp-block-cover:first-child + section > .wp-block-columns {
	box-sizing: border-box;
	max-width: var(--sl-wrap);
	margin: 0 auto;
	padding: 28px 0 0 !important;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
	flex-wrap: wrap !important;
	align-items: center !important;
	justify-content: space-between;
	gap: 24px 40px;
}

.home .wp-block-post-content > .wp-block-cover:first-child + section > .wp-block-columns > .wp-block-column {
	flex: 0 1 auto !important;
	width: auto;
	max-width: 100%;
}

/* the band's booking button: larger than the site's other booking pills */
.home .wp-block-post-content > .wp-block-cover:first-child + section .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 16px 48px !important;
	font-family: Inter, sans-serif;
	font-size: 16px !important;
	font-weight: 700 !important;
	line-height: 24px !important;
	box-shadow: 0 12px 28px -12px rgba(0, 0, 0, 0.5) !important;
	transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.home .wp-block-post-content > .wp-block-cover:first-child + section .wp-block-button__link:is(:hover, :focus-visible) {
	background-color: #fff !important;
	color: var(--sl-navy-deep) !important;
}

/* far fa-calendar-alt */
.sl-icon-calendar::before,
.home .wp-block-post-content > .wp-block-cover:first-child + section .wp-block-button__link::before {
	content: "\f073";
	font-family: "Font Awesome 5 Free";
	font-weight: 400;
	font-size: 1em;
	line-height: 1;
	-webkit-font-smoothing: antialiased;
}

/* Service shortcuts: one floating panel overlapping the band */
.home .wp-block-post-content > .wp-block-cover:first-child + section + section {
	display: flow-root; /* the panel's negative margin must not pull the section (and its light background) over the band */
	margin-top: 0 !important;
	padding: 0 20px 96px !important;
}

.home .wp-block-post-content > .wp-block-cover:first-child + section + section > .wp-block-group {
	position: relative;
	z-index: 2;
	box-sizing: border-box;
	max-width: var(--sl-wrap) !important;
	margin: -104px auto 0 !important;
	padding: 0 !important;
	gap: 1px !important;
	overflow: hidden;
	border-radius: 24px !important;
	box-shadow: var(--sl-shadow-lg) !important;
}

.home .wp-block-post-content > .wp-block-cover:first-child + section + section > .wp-block-group > .wp-block-group {
	position: relative;
	gap: 0;
	padding: 30px 32px !important;
	transition: background-color 0.2s;
}

/* tile = one link (the title's link stretched over the tile) */
.home .wp-block-post-content > .wp-block-cover:first-child + section + section > .wp-block-group > .wp-block-group > p:last-child {
	margin: 0;
	color: var(--sl-navy-deep) !important;
}

.home .wp-block-post-content > .wp-block-cover:first-child + section + section > .wp-block-group > .wp-block-group > p:last-child a {
	color: inherit;
	text-decoration: none;
}

.home .wp-block-post-content > .wp-block-cover:first-child + section + section > .wp-block-group > .wp-block-group > p:last-child a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.home .wp-block-post-content > .wp-block-cover:first-child + section + section > .wp-block-group > .wp-block-group:hover {
	background-color: var(--sl-tint-soft) !important;
}

/* a small arrow in the corner shows the tile is a link */
.home .wp-block-post-content > .wp-block-cover:first-child + section + section > .wp-block-group > .wp-block-group::after {
	content: "";
	position: absolute;
	top: 16px;
	right: 16px;
	width: 18px;
	height: 18px;
	background: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
	opacity: 0;
	transform: translate(-4px, 4px);
	transition: opacity 0.2s, transform 0.2s;
}

.home .wp-block-post-content > .wp-block-cover:first-child + section + section > .wp-block-group > .wp-block-group:is(:hover, :focus-within)::after {
	opacity: 1;
	transform: none;
}

/* Service icons: the source's thin line icons drawn over the icon-font
   glyph names, which stay in the HTML */
.home .wp-block-post-content > .wp-block-cover:first-child + section + section .is-style-icon {
	display: block;
	width: 48px;
	height: 48px;
	margin: 0 auto 16px !important;
	overflow: hidden;
	font-size: 0 !important;
	line-height: 0 !important;
	color: transparent !important;
	background-color: var(--sl-navy);
	-webkit-mask: var(--sl-icon) center / contain no-repeat;
	mask: var(--sl-icon) center / contain no-repeat;
	transition: background-color 0.2s;
}

.home .wp-block-post-content > .wp-block-cover:first-child + section + section > .wp-block-group > .wp-block-group:hover .is-style-icon {
	background-color: var(--sl-blue);
}

/* medical bag, syringe, microscope, banknote, house with a cross */
.home .wp-block-post-content > .wp-block-cover:first-child + section + section > .wp-block-group > .wp-block-group:nth-child(1) {
	--sl-icon: 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' y='7' width='18' height='13' rx='2.5'/%3E%3Cpath d='M9 7V5.5C9 4.67 9.67 4 10.5 4h3c.83 0 1.5.67 1.5 1.5V7'/%3E%3Cpath d='M12 10.5v6M9 13.5h6'/%3E%3C/svg%3E");
}

.home .wp-block-post-content > .wp-block-cover:first-child + section + section > .wp-block-group > .wp-block-group:nth-child(2) {
	--sl-icon: 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%3Cpath d='m18 2 4 4'/%3E%3Cpath d='m17 7 3-3'/%3E%3Cpath d='M19 9 8.7 19.3c-1 1-2.5 1-3.4 0l-.6-.6c-1-1-1-2.5 0-3.4L15 5'/%3E%3Cpath d='m9 11 4 4'/%3E%3Cpath d='m5 19-3 3'/%3E%3Cpath d='m14 4 6 6'/%3E%3C/svg%3E");
}

.home .wp-block-post-content > .wp-block-cover:first-child + section + section > .wp-block-group > .wp-block-group:nth-child(3) {
	--sl-icon: 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%3Cpath d='M6 18h8'/%3E%3Cpath d='M3 22h18'/%3E%3Cpath d='M14 22a7 7 0 1 0 0-14h-1'/%3E%3Cpath d='M9 14h2'/%3E%3Cpath d='M9 12a2 2 0 0 1-2-2V6h6v4a2 2 0 0 1-2 2Z'/%3E%3Cpath d='M12 6V3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3'/%3E%3C/svg%3E");
}

.home .wp-block-post-content > .wp-block-cover:first-child + section + section > .wp-block-group > .wp-block-group:nth-child(4) {
	--sl-icon: 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='2' y='6' width='20' height='12' rx='2'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3Cpath d='M6 12h.01M18 12h.01'/%3E%3C/svg%3E");
}

.home .wp-block-post-content > .wp-block-cover:first-child + section + section > .wp-block-group > .wp-block-group:nth-child(5) {
	--sl-icon: 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%3Cpath d='M3.5 10 12 3.5 20.5 10v9a1.5 1.5 0 0 1-1.5 1.5H5A1.5 1.5 0 0 1 3.5 19z'/%3E%3Cpath d='M12 10.5v6M9 13.5h6'/%3E%3C/svg%3E");
}

/* Doctor boat: full-width split, photo to the panel edge ------------------ */

.home .wp-block-post-content > .wp-block-cover:first-child + section + section + section {
	margin: 0 var(--sl-inset) !important;
	padding: 0 !important;
	overflow: hidden;
	border-radius: 28px;
	background-color: var(--sl-navy);
}

.home .wp-block-post-content > .wp-block-cover:first-child + section + section + section > .wp-block-columns {
	gap: 0 !important;
	margin: 0;
	align-items: stretch !important;
}

.home .wp-block-post-content > .wp-block-cover:first-child + section + section + section > .wp-block-columns > .wp-block-column {
	box-sizing: border-box;
	flex: 0 0 50% !important;
	max-width: 50%;
}

.home .wp-block-post-content > .wp-block-cover:first-child + section + section + section > .wp-block-columns > .wp-block-column:first-child {
	position: relative;
	min-height: 580px;
}

.home .wp-block-post-content > .wp-block-cover:first-child + section + section + section > .wp-block-columns > .wp-block-column:first-child > .wp-block-image {
	position: absolute;
	inset: 0;
	margin: 0;
}

.home .wp-block-post-content > .wp-block-cover:first-child + section + section + section > .wp-block-columns > .wp-block-column:first-child > .wp-block-image img {
	display: block;
	width: 100%;
	height: 100% !important;
	aspect-ratio: auto !important;
	max-width: none;
	object-fit: cover;
	border-radius: 0;
}

/* the photo's caption: a white pill at the bottom centre */
.home .wp-block-post-content > .wp-block-cover:first-child + section + section + section > .wp-block-columns > .wp-block-column:first-child > p {
	position: absolute;
	left: 50%;
	bottom: 24px;
	z-index: 1;
	width: max-content;
	max-width: calc(100% - 32px);
	margin: 0;
	padding: 8px 20px;
	border-radius: 999px;
	background-color: #fff;
	box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.45);
	color: var(--sl-navy) !important;
	font-size: 15px;
	font-weight: 600;
	line-height: 27px !important;
	transform: translateX(-50%);
}

.home .wp-block-post-content > .wp-block-cover:first-child + section + section + section > .wp-block-columns > .wp-block-column:last-child {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 32px;
	padding: 96px max(32px, calc((100vw - var(--sl-wrap)) / 2 - var(--sl-inset))) 96px clamp(40px, 6vw, 96px) !important;
}

.home .wp-block-post-content > .wp-block-cover:first-child + section + section + section > .wp-block-columns > .wp-block-column:last-child > * {
	margin: 0 !important;
}

/* "Lue lisää tästä" with Font Awesome's arrow-right */
.home .wp-block-post-content > .wp-block-cover:first-child + section + section + section .is-style-links li {
	padding-left: 0;
	letter-spacing: 1px;
}

.home .wp-block-post-content > .wp-block-cover:first-child + section + section + section .is-style-links li::before {
	content: none;
}

.home .wp-block-post-content > .wp-block-cover:first-child + section + section + section .is-style-links a {
	display: inline-flex;
	align-items: center;
	color: #fff;
}

.home .wp-block-post-content > .wp-block-cover:first-child + section + section + section .is-style-links a::before {
	content: "\f061";
	margin-right: 5px;
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
	font-size: 14px;
	letter-spacing: 0;
}

.home .wp-block-post-content > .wp-block-cover:first-child + section + section + section .is-style-links a:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* the three boat buttons: equal white pills */
.home .wp-block-post-content > .wp-block-cover:first-child + section + section + section .wp-block-buttons {
	gap: 12px;
}

.home .wp-block-post-content > .wp-block-cover:first-child + section + section + section .wp-block-button__link {
	box-sizing: border-box;
	width: 150px;
	padding: 16px 0 !important;
	color: var(--sl-navy) !important;
	font-family: Inter, sans-serif;
	font-size: 14px !important;
	font-weight: 700;
	line-height: 1.625 !important;
	text-align: center;
	transition: background-color 0.2s, transform 0.3s;
}

/* News: one story per row, picture left, text right ----------------------- */

.home .wp-block-post-content > section:last-child > :is(.wp-block-query, .wp-block-group) {
	margin-top: 50px !important;
}

.home .is-style-news-card :is(.wp-block-post-title, .is-style-card-title) a {
	line-height: inherit;
}

.home .is-style-news-card {
	display: grid !important;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr) !important;
	grid-template-rows: 1fr auto;
	gap: 20px !important;
	overflow: hidden;
	border: 1px solid var(--sl-line);
	border-radius: 24px;
	background-color: #fff;
	box-shadow: 0 1px 2px rgba(0, 39, 88, 0.06), 0 2px 6px rgba(0, 39, 88, 0.05);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home .is-style-news-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--sl-shadow-lg);
}

.home .is-style-news-card > :is(.wp-block-post-featured-image, .wp-block-image) {
	position: relative;
	grid-column: 1;
	grid-row: 1 / span 2;
	align-self: stretch;
	min-height: 300px;
	height: auto !important;
	aspect-ratio: auto !important;
	margin: 0 !important;
	overflow: hidden;
}

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

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

.home .is-style-news-card:hover > :is(.wp-block-post-featured-image, .wp-block-image) img {
	transform: scale(1.04);
}

.home .is-style-news-card > .wp-block-group {
	grid-column: 2;
	grid-row: 1 / span 2;
	gap: 20px !important;
	padding: 40px 48px !important;
}

/* the category badge repeats the section heading right above it */
.home .is-style-news-card :is(.is-style-post-meta, .wp-block-group > p.is-style-note:first-child) {
	display: none !important;
}

.home .is-style-news-card :is(.wp-block-post-title, .is-style-card-title) {
	margin: 0;
	color: var(--sl-navy-deep);
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 32px !important;
	font-weight: 600;
	line-height: 32px !important;
	letter-spacing: normal;
}

.home .is-style-news-card :is(.wp-block-post-title, .is-style-card-title) a {
	color: inherit;
	text-decoration: none;
}

.home .is-style-news-card :is(.wp-block-post-excerpt, .wp-block-group > p.is-style-note:not(:first-child)) {
	margin: 0 0 28px !important;
	color: var(--sl-text-soft);
	font-family: "Open Sans", sans-serif;
	font-size: 15px !important;
	line-height: 27px !important;
}

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

.home .is-style-news-card :is(.wp-block-read-more, .wp-block-button__link) {
	align-self: flex-start;
	margin: auto 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: 15px !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	text-decoration: none;
	transition: background-color 0.2s;
}

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

/* static cards (sv/en) sit in a wrapping column flexbox, which sizes their
   height at min-content width before stretching them across */
.home .wp-block-group:has(> .is-style-news-card) {
	flex-wrap: nowrap !important;
}

/* static cards (sv/en): the button group sits where the read-more link does */
.home .is-style-news-card .wp-block-buttons {
	margin: auto 0 0 !important;
}

.home .is-style-news-card .wp-block-button__link {
	display: inline-block;
}

/* Pagination: round page numbers */
.home .wp-block-query-pagination {
	gap: 6px !important;
	margin-top: 48px !important;
	font-size: 15px;
}

.home .wp-block-query-pagination-numbers {
	display: flex;
	gap: 6px;
}

.home .wp-block-query-pagination :is(.page-numbers, .wp-block-query-pagination-previous, .wp-block-query-pagination-next) {
	display: inline-grid;
	place-items: center;
	box-sizing: border-box;
	min-width: 40px;
	height: 40px;
	margin: 0 !important;
	padding: 0 8px;
	border-radius: 999px;
	color: var(--sl-blue);
	text-decoration: none;
	transition: background-color 0.2s, color 0.2s;
}

.home .wp-block-query-pagination a:is(.page-numbers, .wp-block-query-pagination-previous, .wp-block-query-pagination-next):hover {
	background-color: var(--sl-tint);
	color: var(--sl-navy-deep);
}

.home .wp-block-query-pagination .page-numbers.current {
	background-color: var(--sl-navy);
	color: #fff;
}

/* ==========================================================================
   Footer: a deep navy panel
   ========================================================================== */

.wp-site-blocks > footer.wp-block-template-part,
.wp-site-blocks > div.wp-block-template-part:last-child {
	margin-block-start: 0;
}

footer.is-style-footer-panel.wp-block-group {
	margin: 0 var(--sl-inset) var(--sl-inset) !important;
	padding: 16px 0 0 !important;
	border-radius: 28px !important;
	background-color: var(--sl-navy-deep) !important;
}

/* contact | quick links | booking card */
footer.is-style-footer-panel > .wp-block-columns {
	display: grid !important;
	grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 5fr);
	gap: 48px !important;
	box-sizing: border-box;
	width: min(var(--sl-wrap), calc(100% - 64px));
	max-width: none !important;
	margin: 0 auto !important;
	padding: 64px 0 56px !important;
}

footer.is-style-footer-panel > .wp-block-columns > .wp-block-column {
	width: auto !important;
	min-width: 0;
	margin: 0 !important;
}

/* logo on a white tile */
footer.is-style-footer-panel .is-style-logo-card {
	margin: 0 0 28px !important;
	padding: 16px 22px !important;
	border-radius: 20px !important;
	background-color: #fff;
	line-height: 0;
}

footer.is-style-footer-panel .is-style-logo-card img {
	width: 140px !important;
	height: auto;
	border-radius: 0 !important;
}

/* contact rows: 40px icon tiles */
footer.is-style-footer-panel > .wp-block-columns > .wp-block-column:first-child > .wp-block-group {
	gap: 18px !important;
	margin-top: 0 !important;
}

footer.is-style-footer-panel > .wp-block-columns > .wp-block-column:first-child > .wp-block-group > .wp-block-group {
	gap: 14px !important;
	align-items: center;
}

footer.is-style-footer-panel > .wp-block-columns > .wp-block-column:first-child > .wp-block-group > .wp-block-group > p:last-child {
	margin: 0;
	color: rgba(255, 255, 255, 0.82);
	font-size: 14px !important;
	line-height: 1.625 !important;
}

footer.is-style-footer-panel > .wp-block-columns > .wp-block-column:first-child a {
	color: inherit;
	text-decoration: none;
}

footer.is-style-footer-panel > .wp-block-columns > .wp-block-column:first-child a:hover {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 4px;
}

footer.is-style-footer-panel .is-style-icon-tile {
	flex: none;
	display: inline-grid !important;
	place-items: center;
	width: 40px !important;
	height: 40px !important;
	margin: 0 !important;
	padding: 0 !important;
	border-radius: 12px !important;
	background-color: rgba(255, 255, 255, 0.08) !important;
	color: #fff !important;
	font-size: 24px !important;
	line-height: 24px !important;
}

/* column headings */
footer.is-style-footer-panel .is-style-footer-title {
	margin: 0 0 32px !important;
	color: #fff !important;
	font-family: "Plus Jakarta Sans", sans-serif !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	line-height: 24px !important;
}

/* quick links: Font Awesome's minus as the marker */
footer.is-style-footer-panel .is-style-dash {
	margin: 0 !important;
	padding: 0 !important;
	font-family: "Open Sans", sans-serif;
	font-size: 15px;
	line-height: 27px;
}

footer.is-style-footer-panel .is-style-dash li {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0 !important;
}

footer.is-style-footer-panel .is-style-dash li + li {
	margin-top: 6px;
}

footer.is-style-footer-panel .is-style-dash li::before {
	content: "\f068" !important;
	position: static !important;
	flex: none;
	width: 17px !important;
	height: auto !important;
	margin-right: 6px;
	background: none !important;
	color: rgba(255, 255, 255, 0.35);
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
	font-size: 14px;
	line-height: 1;
}

footer.is-style-footer-panel .is-style-dash a {
	color: rgba(255, 255, 255, 0.82) !important;
	text-decoration: none;
	transition: color 0.2s;
}

footer.is-style-footer-panel .is-style-dash li:hover a {
	color: #fff !important;
}

/* booking card */
footer.is-style-footer-panel .is-style-glass-card {
	margin: 0 !important;
	padding: 32px !important;
	border: 0 !important;
	border-radius: 20px !important;
	background-color: rgba(255, 255, 255, 0.06) !important;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12) !important;
	-webkit-backdrop-filter: none !important;
	backdrop-filter: none !important;
}

footer.is-style-footer-panel .is-style-glass-card .is-style-footer-title {
	margin-bottom: 16px !important;
}

footer.is-style-footer-panel .is-style-glass-card p {
	margin: 0 0 24px !important;
	color: rgba(255, 255, 255, 0.78) !important;
	font-size: 14px !important;
	line-height: 1.625 !important;
	text-wrap: pretty;
}

footer.is-style-footer-panel .is-style-glass-card p strong {
	color: #fff;
	font-weight: 600;
	white-space: nowrap;
}

footer.is-style-footer-panel .is-style-glass-card .wp-block-buttons {
	margin: 0 !important;
}

footer.is-style-footer-panel .is-style-glass-card .wp-block-button,
footer.is-style-footer-panel .is-style-glass-card .wp-block-button__link {
	width: 100%;
}

footer.is-style-footer-panel .is-style-glass-card .wp-block-button__link {
	box-sizing: border-box;
	min-height: 0;
	padding: 16px 0 !important;
	border-radius: 999px;
	font-family: Inter, sans-serif;
	font-size: 14px !important;
	font-weight: 700 !important;
	line-height: 1.625 !important;
	text-align: center;
	transition: background-color 0.2s, color 0.2s;
}

footer.is-style-footer-panel .is-style-glass-card .wp-block-button__link:is(:hover, :focus-visible) {
	background-color: #fff !important;
	color: var(--sl-navy-deep) !important;
}

/* bottom row: copyright left, privacy and cookie links right */
footer.is-style-footer-panel > .is-style-footer-bottom {
	box-sizing: border-box;
	width: min(var(--sl-wrap), calc(100% - 64px));
	max-width: none !important;
	margin: 0 auto !important;
	padding: 24px 0 28px !important;
	border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
}

footer.is-style-footer-panel > .is-style-footer-bottom p {
	margin: 0;
	color: rgba(255, 255, 255, 0.6) !important;
	font-family: Inter, sans-serif;
	font-size: 12px !important;
	line-height: 16px !important;
}

footer.is-style-footer-panel > .is-style-footer-bottom .is-style-legal-links {
	display: flex;
	gap: 24px;
}

footer.is-style-footer-panel > .is-style-footer-bottom a {
	color: rgba(255, 255, 255, 0.6) !important;
	text-decoration: none;
}

footer.is-style-footer-panel > .is-style-footer-bottom a:hover {
	color: #fff !important;
	text-decoration: underline;
	text-underline-offset: 4px;
}

footer.is-style-footer-panel a:focus-visible {
	outline-color: var(--sl-green-light) !important;
}

@media (max-width: 1439px) {
	footer.is-style-footer-panel > .is-style-footer-bottom {
		padding-right: 80px !important;
	}
}

@media (max-width: 1024px) {
	footer.is-style-footer-panel > .wp-block-columns,
	footer.is-style-footer-panel > .is-style-footer-bottom {
		width: auto;
		margin: 0 32px !important;
	}

	footer.is-style-footer-panel > .wp-block-columns {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	footer.is-style-footer-panel > .wp-block-columns > .wp-block-column:last-child {
		grid-column: 1 / -1;
	}
}

@media (max-width: 767px) {
	footer.is-style-footer-panel.wp-block-group {
		padding-top: 0 !important;
		border-radius: 20px !important;
	}

	footer.is-style-footer-panel > .wp-block-columns,
	footer.is-style-footer-panel > .is-style-footer-bottom {
		margin: 0 20px !important;
	}

	footer.is-style-footer-panel > .wp-block-columns {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px !important;
		padding: 40px 0 !important;
	}

	footer.is-style-footer-panel .is-style-glass-card {
		padding: 24px 20px !important;
	}

	footer.is-style-footer-panel > .is-style-footer-bottom {
		flex-direction: column;
		align-items: flex-start !important;
		gap: 12px;
	}
}

/* ==========================================================================
   Header booking button, back to top, phone booking bar
   ========================================================================== */

.sl-header-cta {
	order: 4;
	display: flex;
	flex: none;
	max-width: 0;
	margin-left: 0;
	padding: 6px 4px;
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	transition: max-width 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), margin-left 0.4s, opacity 0.2s, visibility 0s linear 0.4s;
}

html.sl-cta-out .sl-header-cta {
	max-width: 260px;
	margin-left: 8px;
	opacity: 1;
	visibility: visible;
	transition: max-width 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), margin-left 0.4s, opacity 0.3s 0.1s, visibility 0s;
}

.sl-header-cta .sl-header-cta__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	white-space: nowrap;
	padding: 9px 16px;
	border: 0;
	border-radius: 999px;
	background-color: var(--sl-green-light);
	color: var(--sl-navy-deep);
	font-family: Inter, sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.5;
	text-decoration: none;
	transition: background-color 0.2s;
}

.sl-header-cta .sl-header-cta__btn::before {
	content: "\f073";
	font-family: "Font Awesome 5 Free";
	font-weight: 400;
}

.sl-header-cta .sl-header-cta__btn:hover {
	background-color: #c3d76f;
	color: var(--sl-navy-deep);
}

/* on the full desktop menu the button only joins from 1360px */
@media (min-width: 1280px) and (max-width: 1359px) {
	.sl-header-cta {
		display: none;
	}
}

@media (max-width: 767px) {
	.sl-header-cta {
		display: none;
	}
}

/* back to top: round frosted button, once you have scrolled */
#sl-scroll-top {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 100;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 999px;
	background-color: rgba(0, 39, 88, 0.72);
	-webkit-backdrop-filter: saturate(160%) blur(12px);
	backdrop-filter: saturate(160%) blur(12px);
	box-shadow: 0 10px 24px -10px rgba(0, 39, 88, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
	color: #fff;
	font-size: 18px;
	text-decoration: none;
	transition: opacity 0.25s, transform 0.25s, visibility 0.25s, background-color 0.2s, bottom 0.35s;
}

#sl-scroll-top span::before {
	content: "\f106";
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
}

#sl-scroll-top:hover {
	background-color: var(--sl-navy-deep);
}

html:not(.sl-past-fold) #sl-scroll-top {
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
}

/* floating booking button on phones (front page) */
.sl-book-bar {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 998;
	opacity: 0;
	visibility: hidden;
	transform: translateY(calc(100% + 24px));
	transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.2s, visibility 0s linear 0.35s;
}

html.sl-bar-on .sl-book-bar {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.2s, visibility 0s;
}

.sl-book-bar .sl-book-bar__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	width: 100%;
	box-sizing: border-box;
	padding: 16px;
	border-radius: 999px;
	background-color: var(--sl-green-light);
	box-shadow: 0 16px 32px -12px rgba(0, 39, 88, 0.55), 0 0 0 1px rgba(0, 39, 88, 0.06);
	color: var(--sl-navy-deep);
	font-family: Inter, sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.5;
	text-decoration: none;
	white-space: nowrap;
}

.sl-book-bar .sl-book-bar__btn::before {
	content: "\f073";
	font-family: "Font Awesome 5 Free";
	font-weight: 400;
}

@media (min-width: 768px) {
	.sl-book-bar {
		display: none;
	}
}

@media (max-width: 767px) {
	html.sl-bar-on #sl-scroll-top {
		bottom: 92px;
	}

	html.sl-js.sl-scroll-down:not(.sl-at-end) #sl-scroll-top {
		opacity: 0;
		visibility: hidden;
		transform: translateY(8px);
	}
}

/* hero parallax: the photo layer is taller than the panel so it can move */
.home .wp-block-cover.sl-parallax > .wp-block-cover__image-background {
	will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
	.sl-header-cta,
	html.sl-cta-out .sl-header-cta,
	#sl-scroll-top {
		transition: none;
	}
}

/* Front page: tablet ----------------------------------------------------- */

@media (max-width: 1024px) {
	.home .wp-block-post-content > .wp-block-cover:first-child > .wp-block-cover__inner-container {
		padding: 0 32px;
	}

	.home .wp-block-post-content > .wp-block-cover:first-child + section {
		padding-left: 32px !important;
		padding-right: 32px !important;
	}

	.home .wp-block-post-content > .wp-block-cover:first-child + section + section,
	.home .wp-block-post-content > section:last-child {
		padding-left: 32px !important;
		padding-right: 32px !important;
	}

	/* five tiles in a row: less side padding so labels don't break mid-word */
	.home .wp-block-post-content > .wp-block-cover:first-child + section + section > .wp-block-group > .wp-block-group {
		padding-left: 8px !important;
		padding-right: 8px !important;
	}

	.home .wp-block-post-content > .wp-block-cover:first-child + section + section + section > .wp-block-columns > .wp-block-column:first-child {
		min-height: 480px !important;
	}

	.home .wp-block-post-content > .wp-block-cover:first-child + section + section + section > .wp-block-columns > .wp-block-column:last-child {
		padding: 64px 32px 64px 40px !important;
	}

	/* boat buttons size to their labels and wrap if needed */
	.home .wp-block-post-content > .wp-block-cover:first-child + section + section + section .wp-block-buttons {
		flex-wrap: wrap;
	}

	.home .wp-block-post-content > .wp-block-cover:first-child + section + section + section .wp-block-button__link {
		width: auto;
		padding: 14px 20px !important;
	}

	/* stacked news cards: picture on top */
	.home .is-style-news-card {
		grid-template-columns: minmax(0, 1fr) !important;
		grid-template-rows: auto;
		gap: 0 !important;
	}

	.home .is-style-news-card > :is(.wp-block-post-featured-image, .wp-block-image) {
		grid-row: 1;
		min-height: 240px;
	}

	.home .is-style-news-card > .wp-block-group {
		grid-column: 1;
		grid-row: 2;
		padding: 24px !important;
	}
}

/* Front page: phones ----------------------------------------------------- */

@media (max-width: 767px) {
	.home .wp-block-post-content > .wp-block-cover:first-child {
		min-height: 556px !important;
		padding-bottom: 16px !important;
		align-items: center;
	}

	.home .wp-block-post-content > .wp-block-cover:first-child > .wp-block-cover__inner-container {
		padding: 0 16px;
	}

	.home .wp-block-post-content > .wp-block-cover:first-child h1 {
		font-size: 30px !important;
		line-height: 38px !important;
		letter-spacing: normal !important;
	}

	.home .wp-block-post-content > .wp-block-cover:first-child + section {
		padding: 8px 16px 128px !important;
	}

	.home .wp-block-post-content > .wp-block-cover:first-child + section > .wp-block-columns {
		flex-direction: column;
		align-items: stretch !important;
		gap: 20px;
		padding-top: 24px !important;
	}

	.home .wp-block-post-content > .wp-block-cover:first-child + section h2 {
		font-size: 25px !important;
		line-height: 40px !important;
		letter-spacing: -0.9px !important;
	}

	.home .wp-block-post-content > .wp-block-cover:first-child + section :is(.wp-block-column, .wp-block-buttons, .wp-block-button, .wp-block-button__link) {
		width: 100%;
		align-self: stretch;
	}

	.home .wp-block-post-content > .wp-block-cover:first-child + section .wp-block-button__link {
		justify-content: center;
	}

	.home .wp-block-post-content > .wp-block-cover:first-child + section + section {
		padding: 0 16px 64px !important;
	}

	.home .wp-block-post-content > .wp-block-cover:first-child + section + section > .wp-block-group {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		margin-top: -96px !important;
		border-radius: 20px !important;
	}

	.home .wp-block-post-content > .wp-block-cover:first-child + section + section > .wp-block-group > .wp-block-group {
		padding: 24px 8px !important;
	}

	.home .wp-block-post-content > .wp-block-cover:first-child + section + section > .wp-block-group > .wp-block-group:nth-child(3) {
		grid-column: 1 / -1;
	}

	.home .wp-block-post-content > .wp-block-cover:first-child + section + section > .wp-block-group > .wp-block-group > p:last-child {
		font-size: 14px !important;
		line-height: 21px !important;
	}

	/* doctor boat: text first, then the photo */
	.home .wp-block-post-content > .wp-block-cover:first-child + section + section + section > .wp-block-columns {
		flex-direction: column;
	}

	.home .wp-block-post-content > .wp-block-cover:first-child + section + section + section > .wp-block-columns > .wp-block-column {
		flex-basis: auto !important;
		max-width: none;
	}

	.home .wp-block-post-content > .wp-block-cover:first-child + section + section + section > .wp-block-columns > .wp-block-column:first-child {
		order: 2;
		min-height: 320px !important;
	}

	.home .wp-block-post-content > .wp-block-cover:first-child + section + section + section > .wp-block-columns > .wp-block-column:last-child {
		gap: 24px;
		padding: 56px 20px 48px !important;
	}

	.home .wp-block-post-content > .wp-block-cover:first-child + section + section + section > .wp-block-columns > .wp-block-column:last-child > .wp-block-group {
		padding-bottom: 0 !important;
	}

	.home .wp-block-post-content > .wp-block-cover:first-child + section + section + section h2 {
		font-size: 32px !important;
		line-height: 32px !important;
	}

	.home .wp-block-post-content > .wp-block-cover:first-child + section + section + section .wp-block-buttons {
		flex-wrap: nowrap;
	}

	.home .wp-block-post-content > .wp-block-cover:first-child + section + section + section .wp-block-button {
		flex: 1 1 0;
	}

	.home .wp-block-post-content > .wp-block-cover:first-child + section + section + section .wp-block-button__link {
		width: 100%;
		padding: 12px 6px !important;
		font-size: 13px !important;
	}

	.home .wp-block-post-content > section:last-child {
		margin: 0 !important;
		padding: 64px 16px !important;
	}

	.home .wp-block-post-content > section:last-child > h2 {
		font-size: 30px !important;
		line-height: 30px !important;
	}

	.home .is-style-news-card :is(.wp-block-post-title, .is-style-card-title) {
		font-size: 24px !important;
		line-height: 1.25 !important;
	}
}

/* ==========================================================================
   Page hero: the title panel on every page except the front pages
   ========================================================================== */

main > .wp-block-cover.is-style-title-panel {
	--sl-hero-pos: 62% 40%;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: stretch;
	min-height: clamp(360px, 30vw, 460px) !important;
	margin: var(--sl-inset) var(--sl-inset) 0 !important;
	padding: calc(var(--sl-header-offset) + 40px) 0 52px !important;
	overflow: hidden;
	border-radius: 28px !important;
	background-color: var(--sl-navy-deep);
}

main > .wp-block-cover.is-style-title-panel > .wp-block-cover__image-background {
	object-position: var(--sl-hero-pos) !important;
	transform-origin: 60% 40%;
}

/* the photo per part of the service (chosen by the page's featured image) */
main > .wp-block-cover.is-style-title-panel:has(> img:is([src*="hero-vene"], [data-src*="hero-vene"])) { --sl-hero-pos: 70% 72%; }
main > .wp-block-cover.is-style-title-panel:has(> img:is([src*="hero-asema"], [data-src*="hero-asema"])) { --sl-hero-pos: 50% 50%; }
main > .wp-block-cover.is-style-title-panel:has(> img:is([src*="hero-luonto"], [data-src*="hero-luonto"])) { --sl-hero-pos: 58% 52%; }

main > .wp-block-cover.is-style-title-panel > .wp-block-cover__background {
	opacity: 1 !important;
	background:
		linear-gradient(0deg, rgba(0, 39, 88, 0.94) 0%, rgba(0, 39, 88, 0.7) 22%, rgba(0, 39, 88, 0.22) 50%, rgba(0, 39, 88, 0) 70%),
		linear-gradient(90deg, rgba(0, 39, 88, 0.62) 0%, rgba(0, 39, 88, 0.3) 34%, rgba(0, 39, 88, 0) 62%),
		linear-gradient(180deg, rgba(0, 39, 88, 0.42) 0%, rgba(0, 39, 88, 0) 30%),
		radial-gradient(60% 90% at 100% 100%, rgba(180, 204, 84, 0.16) 0%, rgba(180, 204, 84, 0) 70%) !important;
}

@media (prefers-reduced-motion: no-preference) {
	main > .wp-block-cover.is-style-title-panel > .wp-block-cover__image-background {
		animation: sl-hero-settle 1.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
	}

	main > .wp-block-cover.is-style-title-panel > .wp-block-cover__inner-container {
		animation: sl-hero-rise 0.9s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) both;
	}
}

@keyframes sl-hero-settle {
	from { transform: scale(1.07); }
	to { transform: none; }
}

@keyframes sl-hero-rise {
	from { opacity: 0; transform: translateY(14px); }
	to { opacity: 1; transform: none; }
}

main > .wp-block-cover.is-style-title-panel > .wp-block-cover__inner-container {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0 !important;
	box-sizing: border-box;
	width: var(--sl-wrap) !important;
	max-width: calc(100% - 40px) !important;
	margin: 0 auto !important;
	padding: 0 !important;
	text-align: left;
}

main > .wp-block-cover.is-style-title-panel > .wp-block-cover__inner-container > * {
	margin-left: 0 !important;
	margin-right: 0 !important;
}

main > .wp-block-cover.is-style-title-panel .wp-block-post-title,
main > .wp-block-cover.is-style-title-panel h1 {
	max-width: 22em;
	margin: 0 !important;
	color: #fff !important;
	font-size: clamp(32px, 25px + 2vw, 56px) !important;
	line-height: 1.12 !important;
	letter-spacing: -0.02em !important;
	text-align: left;
	text-wrap: balance;
	text-shadow: 0 2px 18px rgba(0, 20, 50, 0.35);
}

/* the trail sits above the title, on a small glass chip */
main > .wp-block-cover.is-style-title-panel .wp-block-breadcrumbs {
	order: -1;
	max-width: 100%;
	margin: 0 0 16px !important;
	padding: 5px 14px !important;
	border: 1px solid rgba(255, 255, 255, 0.2) !important;
	border-radius: 16px !important;
	background-color: rgba(255, 255, 255, 0.1) !important;
	-webkit-backdrop-filter: blur(10px) saturate(140%);
	backdrop-filter: blur(10px) saturate(140%);
	color: rgba(255, 255, 255, 0.7) !important;
	font-size: 13px !important;
	line-height: 1.5 !important;
	text-shadow: 0 1px 10px rgba(0, 20, 50, 0.4);
}

main > .wp-block-cover.is-style-title-panel .wp-block-breadcrumbs a {
	padding-block: 10px;
	color: rgba(255, 255, 255, 0.92) !important;
	text-decoration: none;
}

main > .wp-block-cover.is-style-title-panel .wp-block-breadcrumbs a:hover {
	color: var(--sl-green-light) !important;
	text-decoration: underline;
	text-underline-offset: 3px;
}

main > .wp-block-cover.is-style-title-panel .wp-block-breadcrumbs [aria-current="page"],
main > .wp-block-cover.is-style-title-panel .wp-block-breadcrumbs li:last-child {
	color: #fff;
}

main > .wp-block-cover.is-style-title-panel a:focus-visible {
	outline-color: var(--sl-green-light) !important;
}

@media (max-width: 1099px) {
	main > .wp-block-cover.is-style-title-panel > .wp-block-cover__background {
		background:
			linear-gradient(0deg, rgba(0, 39, 88, 0.95) 0%, rgba(0, 39, 88, 0.72) 30%, rgba(0, 39, 88, 0.2) 62%, rgba(0, 39, 88, 0.3) 100%),
			radial-gradient(70% 70% at 100% 100%, rgba(180, 204, 84, 0.14) 0%, rgba(180, 204, 84, 0) 70%) !important;
	}
}

@media (max-width: 767px) {
	main > .wp-block-cover.is-style-title-panel {
		min-height: 0 !important;
		padding: calc(var(--sl-header-offset) + 120px) 0 32px !important;
		border-radius: 20px !important;
	}

	main > .wp-block-cover.is-style-title-panel .wp-block-post-title::after,
	main > .wp-block-cover.is-style-title-panel h1::after {
		width: 44px !important;
		margin-top: 14px !important;
	}

	main > .wp-block-cover.is-style-title-panel .wp-block-breadcrumbs {
		margin-bottom: 12px !important;
		padding: 4px 12px !important;
	}
}

/* Page body: the content starts 48px under the title panel */
main > .wp-block-cover.is-style-title-panel + .wp-block-post-content {
	margin-top: 48px !important;
}

/* ==========================================================================
   Page body (all pages except the front pages): running text, links, lists,
   buttons
   ========================================================================== */

.wp-block-post-content :is(strong, b) {
	font-weight: 600;
}

/* links: brand blue with a soft underline; phone links keep the plain text
   style; white links in coloured boxes keep their colour */
body:not(.home) .wp-block-post-content :is(p, li, td, dd) a:not([href^="tel:"]):not(.wp-block-button__link):not(:where(.has-background, .has-secondary-background-color, .has-primary-background-color) *) {
	color: var(--sl-blue);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-decoration-color: rgba(30, 86, 158, 0.35);
	text-underline-offset: 3px;
	transition: color 0.2s, text-decoration-color 0.2s;
}

body:not(.home) .wp-block-post-content :is(p, li, td, dd) a:not([href^="tel:"]):not(.wp-block-button__link):not(:where(.has-background, .has-secondary-background-color, .has-primary-background-color) *):hover {
	color: var(--sl-navy-deep);
	text-decoration-color: currentColor;
}

.wp-block-post-content a[href^="tel:"]:not(.wp-block-button__link) {
	color: inherit;
	text-decoration: none;
}

/* lists: small dots in the logo green instead of the browser's discs */
body:not(.home) .wp-block-post-content ul.wp-block-list:not([class*="is-style-"]) {
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}

body:not(.home) .wp-block-post-content ul.wp-block-list:not([class*="is-style-"]) > li {
	position: relative;
	padding-left: 22px;
}

body:not(.home) .wp-block-post-content ul.wp-block-list:not([class*="is-style-"]) > li + li {
	margin-top: 4px;
}

body:not(.home) .wp-block-post-content ul.wp-block-list:not([class*="is-style-"]) > li::before {
	content: "";
	position: absolute;
	left: 3px;
	top: calc(0.9em - 3.5px);
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background-color: var(--sl-green);
}

body:not(.home) .wp-block-post-content :is(.has-secondary-background-color, .has-primary-background-color) ul.wp-block-list > li::before {
	background-color: currentColor;
}

body:not(.home) .wp-block-post-content ol.wp-block-list {
	margin: 0 0 20px;
	padding-left: 22px;
}

body:not(.home) .wp-block-post-content ol.wp-block-list > li + li {
	margin-top: 4px;
}

body:not(.home) .wp-block-post-content ol.wp-block-list > li::marker {
	color: var(--sl-navy);
	font-weight: 600;
}

/* buttons: pills in the page's own type (Open Sans 16px / 600) */
body:not(.home) .wp-block-post-content .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	box-sizing: border-box;
	padding: 14px 26px !important;
	border: 0;
	border-radius: 999px !important;
	background-color: var(--sl-navy);
	box-shadow: none !important;
	color: #fff;
	font-family: "Open Sans", sans-serif !important;
	font-size: 16px;
	font-weight: 600 !important;
	line-height: 1.3 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	text-wrap: balance;
	transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}

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

body:not(.home) .wp-block-post-content .wp-block-button__link:focus-visible {
	outline: 3px solid var(--sl-green-light);
	outline-offset: 3px;
}

/* phone buttons: a light secondary pill */
body:not(.home) .wp-block-post-content .wp-block-button__link[href^="tel:"] {
	background-color: #fff;
	box-shadow: inset 0 0 0 1px var(--sl-line) !important;
	color: var(--sl-navy);
}

body:not(.home) .wp-block-post-content .wp-block-button__link[href^="tel:"]:is(:hover, :focus-visible) {
	background-color: var(--sl-tint-soft);
	box-shadow: inset 0 0 0 1px var(--sl-tint) !important;
	color: var(--sl-navy-deep);
}

/* on a coloured box: a white pill */
body:not(.home) .wp-block-post-content :is(.has-secondary-background-color, .has-primary-background-color, .wp-block-cover) .wp-block-button__link,
body:not(.home) .wp-block-post-content .is-style-light .wp-block-button__link {
	background-color: #fff;
	color: var(--sl-navy);
}

body:not(.home) .wp-block-post-content :is(.has-secondary-background-color, .has-primary-background-color, .wp-block-cover) .wp-block-button__link:is(:hover, :focus-visible),
body:not(.home) .wp-block-post-content .is-style-light .wp-block-button__link:is(:hover, :focus-visible) {
	background-color: var(--sl-tint);
	color: var(--sl-navy-deep);
}

/* booking (the online booking system): the logo's green, every language */
body:not(.home) .wp-block-post-content .wp-block-button__link:is([href*="ajanvaraus.acute.fi"], [href*="LA2295_Saaristolaakarit_WebRes"]),
body:not(.home) .wp-block-post-content .is-style-booking .wp-block-button__link {
	background-color: var(--sl-green-light);
	color: var(--sl-navy-deep);
}

body:not(.home) .wp-block-post-content .wp-block-button__link:is([href*="ajanvaraus.acute.fi"], [href*="LA2295_Saaristolaakarit_WebRes"]):is(:hover, :focus-visible),
body:not(.home) .wp-block-post-content .is-style-booking .wp-block-button__link:is(:hover, :focus-visible) {
	background-color: #c3d76f;
	color: var(--sl-navy-deep);
}

/* Opening-hours tiles (tagged .sl-hours by parity.js): the group title with
   an icon over a hairline, the hours as a ruled list, "(by appointment)"
   notes quieter, a sub-group on its own white strip, and a closing remark
   as a green note */
:root {
	--sl-icon-stethoscope: 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.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 3H4a2 2 0 0 0-2 2v4a6 6 0 0 0 12 0V5a2 2 0 0 0-2-2h-1'/%3E%3Cpath d='M8 15a6 6 0 0 0 12 0v-3'/%3E%3Ccircle cx='20' cy='10' r='2'/%3E%3C/svg%3E");
	--sl-icon-syringe: 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.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m18 2 4 4'/%3E%3Cpath d='m17 7 3-3'/%3E%3Cpath d='M19 9 8.7 19.3c-1 1-2.5 1-3.4 0l-.6-.6c-1-1-1-2.5 0-3.4L15 5'/%3E%3Cpath d='m9 11 4 4'/%3E%3Cpath d='m5 19-3 3'/%3E%3Cpath d='m14 4 6 6'/%3E%3C/svg%3E");
	--sl-icon-clock: 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");
	--sl-icon-info: 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'%3E%3Ccircle cx='12' cy='12' r='9.25'/%3E%3Cpath d='M12 11v6'/%3E%3Ccircle cx='12' cy='7.5' r='.6' fill='black'/%3E%3C/svg%3E");
}

.wp-block-post-content .wp-block-column.sl-hours {
	padding: 20px 22px !important;
	border: 1px solid var(--sl-line) !important;
	border-radius: 18px !important;
	background-color: var(--sl-tint-soft) !important;
	line-height: 1.55;
}

.wp-block-post-content .sl-hours > p {
	margin: 0 !important;
}

.wp-block-post-content .sl-hours > p.sl-hours-title {
	position: relative;
	min-height: 34px;
	margin-bottom: 4px !important;
	padding: 5px 0 14px 46px;
	border-bottom: 1px solid var(--sl-line);
	color: var(--sl-navy-deep);
	font-weight: 700;
}

.wp-block-post-content .sl-hours > p :is(b, strong) {
	font-weight: inherit;
}

.wp-block-post-content .sl-hours > p.sl-hours-title::before,
.wp-block-post-content .sl-hours > p.sl-hours-title::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 34px;
	height: 34px;
}

.wp-block-post-content .sl-hours > p.sl-hours-title::before {
	border-radius: 50%;
	background-color: var(--sl-navy);
}

.wp-block-post-content .sl-hours > p.sl-hours-title::after {
	background-color: #fff;
	-webkit-mask: var(--sl-icon-stethoscope) center / 18px no-repeat;
	mask: var(--sl-icon-stethoscope) center / 18px no-repeat;
}

/* the second tile is the vaccinations' */
.wp-block-post-content .wp-block-column.sl-hours:nth-child(2) > p.sl-hours-title::after {
	-webkit-mask-image: var(--sl-icon-syringe);
	mask-image: var(--sl-icon-syringe);
}

.wp-block-post-content .sl-hours > p.sl-hours-time {
	position: relative;
	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;
}

.wp-block-post-content .sl-hours > p.sl-hours-time::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;
}

.wp-block-post-content .sl-hours > p.sl-hours-note {
	padding: 8px 0 0;
	color: var(--sl-text-soft);
}

.wp-block-post-content .sl-hours > p.sl-hours-time + p.sl-hours-note {
	padding-left: 26px;
}

.wp-block-post-content .sl-hours > p.sl-hours-sub {
	margin-top: 16px !important;
	padding: 12px 14px;
	border-radius: 12px;
	background-color: #fff;
	box-shadow: inset 0 0 0 1px var(--sl-line);
	color: var(--sl-text-soft);
}

.wp-block-post-content .sl-hours > p.sl-hours-sub > :is(b, strong):first-child {
	color: var(--sl-navy-deep);
	font-weight: 600;
}

.wp-block-post-content .sl-hours > p.sl-hours-remark {
	position: relative;
	margin-top: 16px !important;
	padding: 12px 14px 12px 42px;
	border-radius: 12px;
	background-color: rgba(180, 204, 84, 0.22);
	color: var(--sl-navy-deep);
}

.wp-block-post-content .sl-hours > p.sl-hours-remark::before {
	content: "";
	position: absolute;
	top: 14px;
	left: 14px;
	width: 18px;
	height: 18px;
	background-color: var(--sl-green);
	-webkit-mask: var(--sl-icon-info) center / contain no-repeat;
	mask: var(--sl-icon-info) center / contain no-repeat;
}

.wp-block-post-content .sl-hours > p.sl-hours-empty {
	display: none;
}

.wp-block-columns:has(> .sl-hours) {
	gap: 12px !important;
}

/* social icons: 44px tint circles with navy glyphs */
.wp-block-post-content .wp-block-social-links .wp-social-link {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background-color: var(--sl-tint-soft) !important;
	color: var(--sl-navy) !important;
	transition: background-color 0.2s;
}

.wp-block-post-content .wp-block-social-links .wp-social-link a {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	padding: 0 !important;
}

.wp-block-post-content .wp-block-social-links .wp-social-link svg {
	width: 18px;
	height: 18px;
}

.wp-block-post-content .wp-block-social-links .wp-social-link:hover {
	background-color: var(--sl-tint) !important;
}

/* the header booking button carries the calendar only where its source does
   (the front page's hero button) */
body:not(.home) .sl-header-cta .sl-header-cta__btn::before {
	content: none;
}

/* Section rhythm (all pages except the front pages) ----------------------
   In the source every row's columns carried 10px of padding above and
   below, so neighbouring rows sat 20px apart and a stack of cards never
   touched. The first row starts right at the 48px gap under the title
   panel; the last one leaves the footer its 96px. */
body:not(.home) .wp-block-post-content > :is(section, .wp-block-group, .wp-block-columns) {
	padding-top: 10px !important;
	padding-bottom: 10px !important;
}

body:not(.home) .wp-block-post-content > :first-child {
	padding-top: 0 !important;
}

/* a spacer-only row was the old way of keeping content off the footer */
body:not(.home) .wp-block-post-content > section:last-child:not(:has(:not(.wp-block-group, .wp-block-spacer))) {
	display: none;
}

body:not(.home) main + .wp-block-template-part,
body:not(.home) .wp-site-blocks > main {
	margin-bottom: 0;
}

body:not(.home) .wp-site-blocks > main {
	padding-bottom: 96px;
}

/* columns that stack inside a row keep the same 20px between them */
body:not(.home) .wp-block-post-content .wp-block-columns {
	row-gap: 20px;
}

/* photos get the card radius; small images a smaller one (8% of their size) */
body:not(.home) .wp-block-post-content .wp-block-image:not(.is-style-logo-card) img {
	border-radius: min(20px, 8%);
}

@media (max-width: 767px) {
	body:not(.home) main {
		padding-bottom: 64px;
	}
}

/* Price-list icons: Font Awesome glyphs in tint circles, as in the source */
.is-style-icon-badge[data-fa] {
	position: relative;
	background-color: var(--sl-tint) !important;
	color: transparent !important;
	font-size: 0 !important;
}

.is-style-icon-badge[data-fa]::before {
	content: attr(data-fa);
	color: var(--sl-navy);
	font-family: "Font Awesome 5 Free";
	font-size: 13px;
	font-weight: 900;
	line-height: 1;
	-webkit-font-smoothing: antialiased;
}

.is-style-icon-badge[data-fa-weight="400"]::before {
	font-weight: 400;
}

/* a priced row that came without an icon takes its list's (set by parity.js) */
.is-style-icon-dot[data-fa] {
	display: grid !important;
	place-items: center;
	border-radius: 50%;
	background: var(--sl-tint) !important;
	color: transparent !important;
	font-size: 0 !important;
}

.is-style-icon-dot[data-fa]::before {
	content: attr(data-fa);
	color: var(--sl-navy);
	font-family: "Font Awesome 5 Free";
	font-size: 13px;
	font-weight: 900;
	line-height: 1;
}

.is-style-icon-dot[data-fa-weight="400"]::before {
	font-weight: 400;
}

/* what follows a price sits quieter under it */
.is-style-price .sl-price-note {
	display: block;
	color: var(--sl-text-soft);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
	white-space: normal;
}

.is-style-price .sl-price-note :is(b, strong) {
	font-weight: 600;
}

/* a note on the row above: a small green pill, no divider of its own */
.is-style-price-row.sl-row-note {
	padding-top: 0 !important;
	border-top: 0 !important;
	margin-top: -6px !important;
}

.is-style-price-row.sl-row-note > .is-style-icon-dot {
	visibility: hidden;
	height: 0 !important;
}

.is-style-price-row.sl-row-note > p:nth-child(2) {
	position: relative;
	flex: 0 1 auto !important;
	padding: 6px 12px 6px 32px;
	border-radius: 10px;
	background-color: rgba(180, 204, 84, 0.22);
	color: var(--sl-navy-deep);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.45;
}

.is-style-price-row.sl-row-note > p:nth-child(2) :is(b, strong) {
	font-weight: inherit;
}

.is-style-price-row.sl-row-note > p:nth-child(2)::before {
	content: "";
	position: absolute;
	top: 8px;
	left: 11px;
	width: 14px;
	height: 14px;
	background-color: var(--sl-green);
	-webkit-mask: var(--sl-icon-info) center / contain no-repeat;
	mask: var(--sl-icon-info) center / contain no-repeat;
}

.is-style-price-row.sl-row-note--time > p:nth-child(2)::before {
	-webkit-mask-image: var(--sl-icon-clock);
	mask-image: var(--sl-icon-clock);
}

/* the short subtitle under a centred section heading ("Yleisimmät
   rokotteet"): a small tinted chip */
.wp-block-post-content h2.has-text-align-center + p.has-text-align-center:not(:has(a, br)) {
	display: table;
	margin: 12px auto 28px !important;
	padding: 6px 16px;
	border-radius: 999px;
	background-color: var(--sl-tint);
	color: var(--sl-navy);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* A page-body section without a background lies on the 1248px grid with the
   page gutter, also when it was built with the default (unconstrained)
   layout (contact and press pages) */
body:not(.home) .wp-block-post-content > section.is-layout-flow:not(.has-background):not(.alignfull) {
	box-sizing: border-box;
	max-width: calc(var(--sl-wrap) + 40px);
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: 20px !important;
	padding-right: 20px !important;
}

/* cards never touch the column beside them (some rows were built with no gap) */
body:not(.home) .wp-block-post-content .wp-block-columns:has(> .wp-block-column.has-background) {
	column-gap: 24px !important;
}

/* Image box (clinic logo + name + address): a white card, centred, the
   logo over the name, as in the source */
body:not(.home) .wp-block-post-content .wp-block-column.has-background:has(> .wp-block-group > .wp-block-image:first-child + :is(h3, h4)) {
	padding: 40px 32px !important;
}

body:not(.home) .wp-block-post-content .wp-block-column.has-background > .wp-block-group:has(> .wp-block-image:first-child + :is(h3, h4)) {
	text-align: center;
}

body:not(.home) .wp-block-post-content .wp-block-column.has-background > .wp-block-group > .wp-block-image:first-child:has(+ :is(h3, h4)) {
	margin: 16px auto 24px;
}

body:not(.home) .wp-block-post-content .wp-block-column.has-background > .wp-block-group > .wp-block-image:first-child:has(+ :is(h3, h4)) img {
	width: 251px;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
	border-radius: 0;
}

body:not(.home) .wp-block-post-content .wp-block-column.has-background > .wp-block-group > .wp-block-image:first-child + :is(h3, h4) {
	margin: 0 0 8px !important;
	font-size: 18px !important;
	font-weight: 600 !important;
}

/* the photo beside such a card fills its height */
body:not(.home) .wp-block-post-content .wp-block-columns:has(> .wp-block-column.has-background > .wp-block-group > .wp-block-image:first-child + :is(h3, h4)) > .wp-block-column:not(.has-background) > .wp-block-image:only-child {
	height: 100%;
	margin: 0;
}

body:not(.home) .wp-block-post-content .wp-block-columns:has(> .wp-block-column.has-background > .wp-block-group > .wp-block-image:first-child + :is(h3, h4)) > .wp-block-column:not(.has-background) > .wp-block-image:only-child img {
	width: 100%;
	height: 100% !important;
	aspect-ratio: auto !important;
	object-fit: cover;
	border-radius: 24px !important;
}

/* ==========================================================================
   Press: the downloads as a grid of cards (thumbnail tile left, title and
   download links right)
   ========================================================================== */

:root {
	--sl-icon-download: 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='M12 4v11'/%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3Cpath d='M5 20h14'/%3E%3C/svg%3E");
}

/* the outer column is the card; the copy nested inside it is not */
.page-id-116 .wp-block-post-content > section > .wp-block-columns {
	column-gap: 24px !important;
}

.page-id-116 .wp-block-post-content .wp-block-column.has-background {
	padding: 20px !important;
	border: 1px solid var(--sl-line) !important;
	border-radius: 24px !important;
	box-shadow: 0 1px 2px rgba(0, 39, 88, 0.06), 0 2px 6px rgba(0, 39, 88, 0.05) !important;
	transition: box-shadow 0.2s, transform 0.2s;
}

.page-id-116 .wp-block-post-content .wp-block-column.has-background > .wp-block-columns.has-background {
	flex-wrap: nowrap !important;
	align-items: center !important;
	gap: 24px !important;
	margin: 0;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	box-shadow: none !important;
}

.page-id-116 .wp-block-post-content .wp-block-column.has-background > .wp-block-columns > .wp-block-column:has(.wp-block-image) {
	flex: none !important;
}

.page-id-116 .wp-block-post-content .wp-block-column.has-background > .wp-block-columns > .wp-block-column:not(:has(.wp-block-image)) {
	flex: 1 1 auto !important;
	min-width: 0;
}

/* thumbnails are 150px sources: shown at their size on a light tile */
.page-id-116 .wp-block-post-content .wp-block-column.has-background .wp-block-image {
	display: grid;
	place-items: center;
	box-sizing: border-box;
	width: 176px;
	height: 176px;
	margin: 0;
	padding: 13px;
	border-radius: 16px;
	background-color: var(--sl-tint-soft);
}

.page-id-116 .wp-block-post-content .wp-block-column.has-background .wp-block-image img {
	display: block;
	width: auto !important;
	max-width: 100%;
	height: auto !important;
	max-height: 150px;
	border-radius: 10px !important;
	box-shadow: 0 1px 2px rgba(0, 39, 88, 0.06), 0 2px 6px rgba(0, 39, 88, 0.05);
}

/* the logo thumbnail is a square crop that cuts the wordmark: the whole
   logo shows in its place */
.page-id-116 .wp-block-post-content .wp-block-image:has(img.wp-image-37) {
	background: var(--sl-tint-soft) url("../images/logo-vertical-transparent.png") center / 140px auto no-repeat;
}

.page-id-116 .wp-block-post-content .wp-block-image img.wp-image-37 {
	opacity: 0;
	box-shadow: none;
}

/* title, note and download links */
.page-id-116 .wp-block-post-content .wp-block-column.has-background p {
	margin: 0 0 6px;
	color: var(--sl-text-soft);
}

.page-id-116 .wp-block-post-content .wp-block-column.has-background p:first-child {
	margin-bottom: 10px;
}

.page-id-116 .wp-block-post-content .wp-block-column.has-background p:last-child {
	margin-bottom: 0;
}

.page-id-116 .wp-block-post-content .wp-block-column.has-background :is(strong, b) {
	color: var(--sl-navy-deep);
}

.page-id-116 .wp-block-post-content .wp-block-column.has-background p a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	font-weight: 600;
}

.page-id-116 .wp-block-post-content .wp-block-column.has-background p a::before {
	content: "";
	flex: none;
	width: 16px;
	height: 16px;
	background-color: currentColor;
	-webkit-mask: var(--sl-icon-download) center / contain no-repeat;
	mask: var(--sl-icon-download) center / contain no-repeat;
}

/* the intro sentence: quieter, a measure of its own */
.page-id-116 .wp-block-post-content > section:first-child p {
	max-width: 40em;
	margin: 0 0 8px;
	color: var(--sl-text-soft);
}

@media (max-width: 767px) {
	.page-id-116 .wp-block-post-content .wp-block-column.has-background {
		padding: 16px !important;
	}

	.page-id-116 .wp-block-post-content .wp-block-column.has-background > .wp-block-columns.has-background {
		align-items: flex-start !important;
		gap: 16px !important;
	}

	.page-id-116 .wp-block-post-content .wp-block-column.has-background .wp-block-image {
		width: 112px;
		height: 112px;
		padding: 10px;
	}
}

/* press: the card rows carry their own 24px gap */
.page-id-116 .wp-block-post-content > section {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}
