/*
Theme Name: Klinikkmal
Author: Klinikktjenester.no
Description: Et rolig, tilgjengelig og redigerbart blokktema for norske klinikker.
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 7.4
Version: 2.4.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: geithus-helsesenter
Tags: block-patterns, full-site-editing, accessibility-ready, translation-ready
*/

html {
	scroll-behavior: smooth;
}

body {
	overflow-wrap: break-word;
	text-wrap: pretty;
}

:where(h1, h2, h3) {
	text-wrap: balance;
}

:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 3px solid var(--wp--preset--color--focus);
	outline-offset: 3px;
}

a {
	text-underline-offset: 0.16em;
	text-decoration-thickness: 0.08em;
}

a:hover {
	text-decoration-thickness: 0.12em;
}

.wp-site-blocks {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.wp-site-blocks > footer {
	margin-block-start: auto;
}

.site-header {
	border-bottom: 1px solid var(--wp--preset--color--border);
}

body {
	--wp--preset--color--border: #d8cbd5;
	--wp--preset--color--muted-ink: #615963;
}

.kt-footer-credit { border-top: 1px solid #ffffff40; margin-top: 28px; padding-top: 20px; }
.kt-credit-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.kt-credit-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 14px; }
.kt-credit-brand > a { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font-size: 17px; font-weight: 650; text-decoration: none; }
.kt-credit-brand img { display: block; width: 30px; height: 30px; }
.kt-credit-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; text-underline-offset: 4px; }
.kt-credit-row a:hover { text-decoration: underline; text-underline-offset: 4px; }
.kt-credit-row a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; border-radius: 3px; }
@media (max-width: 600px) {
	.kt-credit-row { flex-direction: column; align-items: flex-start; gap: 8px; }
	.kt-credit-brand { column-gap: 10px; }
}

.sylling-brand {
	align-items: center;
	color: var(--wp--preset--color--deep-green);
	display: inline-flex;
	font-size: clamp(1.05rem, 2vw, 1.35rem);
	font-weight: 800;
	gap: 0.65rem;
	letter-spacing: -0.02em;
	line-height: 1.1;
	text-decoration: none;
}

.sylling-brand img {
	display: block;
	height: 3.25rem;
	object-fit: contain;
	width: 3.25rem;
}

.gh-site-title-fallback {
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
	line-height: 1.2;
	margin-block: 0;
}

.gh-site-title-fallback a {
	color: var(--wp--preset--color--deep-green);
	text-decoration: none;
}

.gh-header-emergency {
	font-size: var(--wp--preset--font-size--small);
	margin-block-start: 0 !important;
	padding-block: 0.65rem;
}

.gh-header-emergency .wp-block-group {
	gap: 0.35rem 2rem;
}

.gh-header-emergency p {
	margin-block: 0;
}

.gh-header-emergency a {
	color: var(--wp--preset--color--white);
	font-weight: 800;
}

.gh-operational-notice {
	background: var(--wp--preset--color--soft-green);
	border-bottom: 1px solid var(--wp--preset--color--border);
	margin-block-start: 0 !important;
}

.gh-operational-notice--important {
	background: var(--wp--preset--color--emergency-pale);
	border-color: var(--wp--preset--color--emergency);
}

.gh-operational-notice__inner {
	margin-inline: auto;
	max-width: var(--wp--style--global--wide-size);
	padding: 0.8rem var(--wp--preset--spacing--40);
}

.site-header .wp-block-site-title a,
.site-footer .wp-block-site-title {
	text-decoration: none;
}

.site-header .wp-block-site-logo {
	flex: 0 1 15rem;
	margin: 0;
}

.site-header .custom-logo {
	display: block;
	height: auto;
	max-width: 100%;
	width: clamp(12rem, 20vw, 15rem);
}

.site-header > .wp-block-group > * {
	margin-block-start: 0 !important;
}

.gh-primary-navigation a {
	font-weight: 650;
}

.site-footer a {
	color: var(--wp--preset--color--white);
}

.site-footer :where(h2, h3) {
	color: var(--wp--preset--color--white);
}

.gh-footer-grid {
	display: grid !important;
	grid-template-columns: 1.1fr 1fr 1fr;
	gap: var(--wp--preset--spacing--60);
	align-items: start;
}

.gh-footer-grid > * {
	margin-block-start: 0 !important;
}

.gh-footer-meta {
	border-top: 1px solid color-mix(in srgb, currentColor 35%, transparent);
	margin-top: var(--wp--preset--spacing--60);
	padding-top: var(--wp--preset--spacing--40);
}

.gh-footer-meta p {
	margin-block: 0;
}

.gh-footer-credit {
	opacity: 0.82;
}

.gh-footer-meta-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--30);
	margin-bottom: var(--wp--preset--spacing--30) !important;
}

.wp-block-navigation-item__content,
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close,
.wp-element-button,
.wp-block-button__link {
	min-height: 44px;
}

.wp-block-navigation-item__content,
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
	display: inline-flex;
	align-items: center;
}

.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
	min-width: 44px;
	justify-content: center;
}

.wp-element-button,
.wp-block-button__link {
	border: 2px solid var(--wp--preset--color--clinic-green);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	white-space: normal;
}

.wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover,
.wp-block-button:not(.is-style-outline) > .wp-block-button__link:focus-visible {
	background-color: var(--wp--preset--color--deep-green) !important;
	border-color: var(--wp--preset--color--deep-green);
	color: var(--wp--preset--color--white) !important;
}

.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	border-color: var(--wp--preset--color--clinic-green);
	color: var(--wp--preset--color--clinic-green);
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover,
.wp-block-button.is-style-outline > .wp-block-button__link:focus-visible {
	background-color: var(--wp--preset--color--soft-green) !important;
	border-color: var(--wp--preset--color--deep-green);
	color: var(--wp--preset--color--deep-green);
}

.wp-element-button:active,
.wp-block-button__link:active {
	background-color: var(--wp--preset--color--ink) !important;
	border-color: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--white) !important;
}

.wp-element-button[aria-disabled="true"],
.wp-block-button__link[aria-disabled="true"] {
	cursor: not-allowed;
	opacity: 0.65;
}

.gh-home-intro p {
	max-width: 42rem;
}

.gh-foundation-notice {
	max-width: 46rem;
}

.gh-section {
	scroll-margin-top: 2rem;
}

.gh-section-heading {
	max-width: 44rem;
}

.gh-eyebrow {
	color: var(--wp--preset--color--clinic-green);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.gh-hero {
	overflow: hidden;
}

.gh-hero__grid,
.gh-contact-grid,
.gh-practical-grid {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--60);
	align-items: start;
}

.gh-hero__grid {
	grid-template-columns: minmax(0, 1.4fr) minmax(18rem, 0.8fr);
	align-items: center;
}

.gh-hero__panel,
.gh-info-card,
.gh-practical-card,
.gh-staff-card {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--medium);
	overflow: hidden;
}

.gh-clinic-summary {
	background: var(--wp--preset--color--white);
	padding: var(--wp--preset--spacing--50);
}

.gh-clinic-summary > :first-child,
.gh-open-status > :first-child {
	margin-top: 0;
}

.gh-clinic-summary > :last-child,
.gh-open-status > :last-child {
	margin-bottom: 0;
}

.gh-open-status {
	background: var(--wp--preset--color--warm-white);
	border: 1px solid var(--wp--preset--color--border);
	border-left: 4px solid var(--wp--preset--color--muted-ink);
	border-radius: var(--wp--custom--radius--small);
	font-size: var(--wp--preset--font-size--small);
	margin-block: var(--wp--preset--spacing--40);
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
}

.gh-open-status--open {
	border-left-color: var(--wp--preset--color--clinic-green);
}

.gh-open-status--closed {
	border-left-color: var(--wp--preset--color--emergency);
}

.gh-open-status div {
	align-items: center;
	display: flex;
	gap: 0.55rem;
}

.gh-open-status p {
	color: var(--wp--preset--color--muted-ink);
	margin-block: 0.35rem 0;
}

.gh-status-dot {
	background: var(--wp--preset--color--muted-ink);
	border-radius: 50%;
	flex: 0 0 0.7rem;
	height: 0.7rem;
	width: 0.7rem;
}

.gh-open-status--open .gh-status-dot {
	background: var(--wp--preset--color--clinic-green);
}

.gh-open-status--closed .gh-status-dot {
	background: var(--wp--preset--color--emergency);
}

.gh-clinic-details > * {
	background: var(--wp--preset--color--warm-white);
}

.gh-actions,
.gh-staff-grid {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.75rem;
}

.gh-actions {
	margin: -1.4rem auto 0;
	max-width: var(--wp--style--global--wide-size);
	padding-inline: var(--wp--preset--spacing--40);
	position: relative;
	z-index: 2;
}

.gh-staff-grid {
	gap: var(--wp--preset--spacing--40);
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gh-doctor-grid {
	display: grid !important;
	gap: var(--wp--preset--spacing--40);
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gh-doctor-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--medium);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	padding: var(--wp--preset--spacing--40);
}

.gh-doctor-card__header {
	align-items: start;
	display: grid;
	gap: var(--wp--preset--spacing--30);
	grid-template-columns: 4.5rem minmax(0, 1fr);
	min-height: 9rem;
}

.gh-doctor-card__identity > * {
	margin-block: 0;
}

.gh-doctor-card__photo,
.gh-doctor-card__initials {
	align-items: center;
	background: var(--wp--preset--color--soft-green);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 0.875rem;
	box-sizing: border-box;
	color: var(--wp--preset--color--deep-green);
	display: inline-flex;
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 750;
	height: 6rem;
	justify-content: center;
	letter-spacing: 0.03em;
	line-height: 1;
	margin: 0;
	width: 4.5rem;
}

.gh-doctor-card__photo {
	object-fit: cover;
	object-position: center 30%;
}

.gh-doctor-card__role {
	color: var(--wp--preset--color--muted-ink);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 650;
	margin-block-start: 0.2rem;
}

.gh-doctor-card__badge {
	border: 1px solid transparent;
	border-radius: 999px;
	display: inline-flex;
	font-size: 0.78rem;
	font-weight: 750;
	line-height: 1;
	margin-block-start: 0.55rem !important;
	padding: 0.32rem 0.55rem;
	width: fit-content;
}

.gh-doctor-card__badge--available {
	background: var(--wp--preset--color--soft-green);
	border-color: var(--wp--preset--color--border);
	color: var(--wp--preset--color--deep-green);
}

.gh-doctor-card__badge--waitlist {
	background: #fbf0d8;
	border-color: #e7cc94;
	color: #755100;
}

.gh-doctor-card__badge--unavailable {
	background: var(--wp--preset--color--warm-white);
	border-color: var(--wp--preset--color--border);
	color: var(--wp--preset--color--muted-ink);
}

.gh-doctor-card__status {
	border-top: 1px solid var(--wp--preset--color--border);
	margin-block-start: var(--wp--preset--spacing--40);
	padding-block-start: var(--wp--preset--spacing--40);
}

.gh-doctor-card__status > * {
	margin-block: 0;
}

.gh-doctor-card__status-label {
	color: var(--wp--preset--color--muted-ink);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 650;
}

.gh-doctor-card__metric {
	color: var(--wp--preset--color--deep-green);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 750;
	line-height: 1.25;
	margin-block-start: 0.15rem !important;
}

.gh-doctor-card__detail,
.gh-doctor-choice__source {
	color: var(--wp--preset--color--muted-ink);
	font-size: var(--wp--preset--font-size--small);
}

.gh-doctor-card__detail {
	margin-block-start: 0.15rem !important;
}

.gh-doctor-card__action {
	margin-block: auto 0 !important;
	padding-block-start: var(--wp--preset--spacing--40);
}

.gh-doctor-card__action,
.gh-doctor-card__action .wp-block-button__link {
	width: 100%;
}

.gh-doctor-card__action .wp-block-button__link {
	align-items: center;
	display: flex;
	flex-direction: column;
	justify-content: center;
	line-height: 1.2;
	padding-inline: 0.7rem;
}

.gh-doctor-card__action-label,
.gh-doctor-card__action-meta {
	display: block;
}

.gh-doctor-card__action-label {
	font-size: 1rem;
}

.gh-doctor-card__action-meta {
	font-size: 0.78rem;
	font-weight: 650;
	margin-block-start: 0.16rem;
	opacity: 0.86;
}

.gh-doctor-choice__footer {
	margin-block-start: var(--wp--preset--spacing--50);
}

.gh-doctor-choice__footer > * {
	margin-block: 0;
}

/* WordPress flow layouts add top margins between sibling blocks. Grid gap is
 * the only spacing mechanism inside these components. */
.gh-hero__grid > *,
.gh-contact-grid > *,
.gh-practical-grid > *,
.gh-actions > *,
.gh-staff-grid > * {
	margin-block-start: 0 !important;
	margin-block-end: 0;
}

.gh-doctor-grid > * {
	box-sizing: border-box;
	height: 100%;
	margin-block: 0 !important;
}

.gh-action-card {
	align-content: start;
	align-items: start;
	border-radius: 0.8rem !important;
	box-shadow: 0 0.25rem 0.75rem color-mix(in srgb, var(--wp--preset--color--deep-green) 7%, transparent);
	color: var(--wp--preset--color--ink);
	column-gap: 0.7rem;
	display: grid;
	grid-template-areas:
		"icon heading"
		"icon description"
		"icon link";
	grid-template-columns: 2.5rem minmax(0, 1fr);
	grid-template-rows: auto auto auto;
	min-height: 0;
	padding: 0.9rem !important;
	position: relative;
	row-gap: 0.25rem;
	transition: box-shadow 180ms ease, transform 180ms ease;
}

.gh-actions .gh-action-card.has-border-color,
.gh-actions .gh-action-card.has-border-color > p:not(.gh-action-card__link) {
	color: var(--wp--preset--color--ink) !important;
}

.gh-action-card > * {
	margin-block: 0 !important;
	margin-inline: 0 !important;
	max-width: none !important;
	width: auto;
}

.gh-action-card__icon {
	align-items: center;
	align-self: start;
	background: var(--wp--preset--color--soft-green);
	border-radius: 0.65rem;
	color: var(--wp--preset--color--deep-green);
	display: flex;
	font-size: 1.35rem;
	grid-area: icon;
	height: 2.5rem;
	justify-content: center;
	line-height: 1;
	width: 2.5rem;
}

.gh-action-card > .wp-block-heading {
	font-size: 1.05rem !important;
	grid-area: heading;
	line-height: 1.25;
}

.gh-action-card > p:not(.gh-action-card__link) {
	align-self: start;
	font-size: 0.82rem;
	grid-area: description;
	line-height: 1.35;
}

.gh-action-card .gh-action-card__link {
	align-self: end;
}

.gh-action-card:focus-within {
	box-shadow: 0 0 0 3px var(--wp--preset--color--white), 0 0 0 6px var(--wp--preset--color--clinic-green);
	outline: none;
}

@media (hover: hover) and (pointer: fine) {
	.gh-action-card:hover {
		box-shadow: 0 0.5rem 1.2rem color-mix(in srgb, var(--wp--preset--color--deep-green) 12%, transparent);
		transform: translateY(-0.1rem);
	}
}

.gh-action-card__title {
	color: var(--wp--preset--color--deep-green);
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.2;
}

.gh-action-card .gh-action-card__link {
	grid-area: link;
}

.gh-action-card .gh-action-card__link a,
.gh-practical-card .gh-action-card__link a {
	align-items: center;
	color: var(--wp--preset--color--clinic-green);
	display: inline-flex;
	font-weight: 700;
	font-size: 0.88rem;
	min-height: 32px;
	position: static;
}

.gh-action-card .gh-action-card__link a::after {
	content: "";
	inset: 0;
	position: absolute;
}

.gh-action-card .gh-action-card__link a:focus-visible {
	outline: none;
}

.gh-contact-guide,
.gh-health-feed,
.gh-departures {
	margin-inline: auto;
	max-width: var(--wp--style--global--wide-size);
}

.gh-guide-list {
	display: grid;
	gap: var(--wp--preset--spacing--30);
	margin-top: var(--wp--preset--spacing--50);
}

.gh-guide-item {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--medium);
	overflow: hidden;
}

.gh-guide-item summary {
	color: var(--wp--preset--color--deep-green);
	cursor: pointer;
	font-weight: 700;
	list-style-position: inside;
	min-height: 44px;
	padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--50);
}

.gh-guide-item[open] summary {
	background: var(--wp--preset--color--soft-green);
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.gh-guide-item__answer {
	padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--50) var(--wp--preset--spacing--50);
}

.gh-guide-item__answer > :first-child,
.gh-health-card > :first-child,
.gh-departures > :first-child {
	margin-top: 0;
}

.gh-guide-item__answer > :last-child,
.gh-health-card > :last-child,
.gh-departures > :last-child {
	margin-bottom: 0;
}

.gh-guide-item__link,
.gh-health-card__link a {
	font-weight: 700;
}

.gh-guide-emergency {
	background: var(--wp--preset--color--emergency-pale);
	border-left: 4px solid var(--wp--preset--color--emergency);
	margin-top: var(--wp--preset--spacing--50);
	padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--50);
}

.gh-health-grid {
	display: grid;
	gap: var(--wp--preset--spacing--40);
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: var(--wp--preset--spacing--50);
}

.gh-contact-grid,
.gh-practical-grid,
.gh-price-grid,
.gh-local-price-grid,
.gh-page-grid,
.gh-page-link-grid,
.gh-emergency-grid {
	align-items: stretch;
}

.gh-contact-grid > *,
.gh-practical-grid > *,
.gh-actions > *,
.gh-staff-grid > *,
.gh-health-grid > *,
.gh-price-grid > *,
.gh-local-price-grid > *,
.gh-page-grid > *,
.gh-page-link-grid > *,
.gh-emergency-grid > * {
	box-sizing: border-box;
	height: 100%;
}

.gh-health-card,
.gh-departures {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--medium);
	padding: var(--wp--preset--spacing--50);
}

.gh-health-card {
	display: flex;
	flex-direction: column;
}

.gh-health-card__link {
	margin-top: auto;
}

.gh-departure-table-wrap {
	overflow-x: auto;
}

.gh-departure-table {
	border-collapse: collapse;
	width: 100%;
}

.gh-departure-table :where(th, td) {
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding: 0.75rem 0.5rem;
	text-align: left;
}

.gh-departure-table :where(th, td):last-child {
	font-variant-numeric: tabular-nums;
	text-align: right;
}

.editor-styles-wrapper .gh-editor-dynamic-block {
	background: var(--wp--preset--color--soft-green);
	border: 1px dashed var(--wp--preset--color--clinic-green);
	border-radius: var(--wp--custom--radius--medium);
	padding: var(--wp--preset--spacing--40);
}

.editor-styles-wrapper .gh-editor-dynamic-block p {
	margin-bottom: 0;
}

.gh-urgent a {
	color: var(--wp--preset--color--white);
	font-weight: 800;
}

.gh-contact-list,
.gh-hours-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.gh-contact-list li,
.gh-hours-list li {
	padding-block: 0.35rem;
}

.gh-contact-list a {
	font-weight: 700;
}

.gh-staff-photo {
	align-content: center;
	aspect-ratio: 4 / 3;
	background: var(--wp--preset--color--soft-green);
	display: grid;
	gap: var(--wp--preset--spacing--20);
	margin: 0;
	overflow: hidden;
	place-items: center;
	position: relative;
	text-align: center;
}

.gh-staff-photo__image {
	display: block;
	height: 100%;
	inset: 0;
	object-fit: cover;
	object-position: center 30%;
	position: absolute;
	width: 100%;
}

.gh-staff-photo__initials {
	color: var(--wp--preset--color--deep-green);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 750;
	line-height: 1;
}

.gh-staff-photo__label {
	color: var(--wp--preset--color--muted-ink);
	font-size: var(--wp--preset--font-size--small);
}

.gh-staff-photo__initials,
.gh-staff-photo__label {
	margin-block: 0;
}

.gh-staff-placeholder {
	align-items: center;
	color: var(--wp--preset--color--deep-green);
	display: flex;
	font-size: clamp(6rem, 10vw, 8rem);
	height: 8rem;
	justify-content: center;
	line-height: 1;
	margin-inline: auto;
	width: 8rem;
}

.gh-staff-card__content {
	padding: var(--wp--preset--spacing--40);
}

.gh-staff-card__content > :first-child,
.gh-practical-card > :first-child,
.gh-info-card > :first-child {
	margin-top: 0;
}

.gh-staff-card__content > :last-child,
.gh-practical-card > :last-child,
.gh-info-card > :last-child {
	margin-bottom: 0;
}

.sylling-staff-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sylling-staff-grid .gh-staff-card {
	display: flex;
	flex-direction: column;
	min-height: 100%;
}

.sylling-staff-grid .gh-staff-photo {
	aspect-ratio: 4 / 3;
	border-bottom: 1px solid var(--wp--preset--color--border);
	height: auto;
	width: 100%;
}

.sylling-staff-grid .gh-staff-card__content {
	flex: 1;
	padding: 1.25rem;
}

.sylling-staff-grid .gh-staff-card__content p {
	color: var(--wp--preset--color--muted-ink);
}

.gh-placeholder-note {
	border-left: 4px solid var(--wp--preset--color--clinic-green);
}

.gh-pattern-instruction {
	color: var(--wp--preset--color--muted-ink);
	font-size: var(--wp--preset--font-size--small);
	font-style: italic;
}

.gh-source-link {
	font-size: var(--wp--preset--font-size--small);
}

.gh-price-status {
	border-left: 4px solid var(--wp--preset--color--clinic-green);
	font-size: var(--wp--preset--font-size--small);
	margin-bottom: var(--wp--preset--spacing--50);
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	background: var(--wp--preset--color--white);
}

.gh-price-status--warning {
	border-color: var(--wp--preset--color--focus);
}

.gh-price-grid,
.gh-local-price-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--60);
	align-items: stretch;
}

.gh-price-grid > *,
.gh-local-price-grid > * {
	margin-block: 0 !important;
}

.gh-price-card,
.gh-local-price-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--medium);
	overflow: hidden;
	padding: var(--wp--preset--spacing--50);
}

.gh-price-card > :first-child,
.gh-local-price-card > :first-child {
	margin-top: 0;
}

.gh-price-card > :last-child,
.gh-local-price-card > :last-child {
	margin-bottom: 0;
}

.gh-price-table-wrap,
.gh-local-price-card .wp-block-table {
	margin: 0;
	overflow-x: auto;
}

.gh-price-table,
.gh-local-price-card .wp-block-table table {
	border: 0;
	border-collapse: collapse;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.45;
	table-layout: auto;
	width: 100%;
}

.gh-price-table :where(th, td),
.gh-local-price-card .wp-block-table :where(th, td) {
	border: 0 !important;
	border-bottom: 1px solid var(--wp--preset--color--border) !important;
	padding: 0.8rem 0.5rem;
	text-align: left;
	vertical-align: top;
}

.gh-price-table thead th,
.gh-price-table tbody th,
.gh-local-price-card .wp-block-table thead th,
.gh-local-price-card .wp-block-table tbody th {
	font-weight: 700;
}

.gh-price-table th:last-child,
.gh-price-table td:last-child,
.gh-local-price-card .wp-block-table th:last-child,
.gh-local-price-card .wp-block-table td:last-child {
	text-align: right;
	white-space: nowrap;
}

.gh-price-table tbody tr:last-child :where(th, td),
.gh-local-price-card .wp-block-table tbody tr:last-child :where(th, td) {
	border-bottom: 0 !important;
}

.gh-price-note,
.gh-price-source {
	font-size: var(--wp--preset--font-size--small);
}

.gh-local-price-section {
	margin-top: var(--wp--preset--spacing--70);
}

.gh-no-show-card {
	border-left: 4px solid var(--wp--preset--color--clinic-green);
	margin-top: var(--wp--preset--spacing--60);
}

.gh-internal-page > .wp-block-post-title {
	max-width: 52rem;
}

.gh-internal-page .wp-block-post-content > :first-child {
	margin-top: 0;
}

.gh-page-intro {
	max-width: 48rem;
}

.gh-page-section {
	margin-top: var(--wp--preset--spacing--70);
}

.gh-page-grid,
.gh-page-link-grid,
.gh-emergency-grid {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--50);
	align-items: stretch;
}

.gh-page-grid > *,
.gh-page-link-grid > *,
.gh-emergency-grid > * {
	margin-block: 0 !important;
}

.gh-page-card,
.gh-page-callout,
.gh-emergency-card {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--medium);
	padding: var(--wp--preset--spacing--50);
}

.gh-page-card,
.gh-page-callout {
	background: var(--wp--preset--color--warm-white);
}

.gh-page-card > :first-child,
.gh-page-callout > :first-child,
.gh-emergency-card > :first-child {
	margin-top: 0;
}

.gh-page-card > :last-child,
.gh-page-callout > :last-child,
.gh-emergency-card > :last-child {
	margin-bottom: 0;
}

.gh-page-callout {
	border-left: 4px solid var(--wp--preset--color--clinic-green);
}

.gh-page-callout--provisional {
	background: var(--wp--preset--color--soft-green);
}

.gh-page-link-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.gh-page-link-list li + li {
	margin-top: var(--wp--preset--spacing--30);
}

.gh-page-link-list a {
	font-weight: 700;
}

.gh-emergency-card {
	background: var(--wp--preset--color--white);
}

.gh-emergency-card--critical {
	background: var(--wp--preset--color--deep-green);
	color: var(--wp--preset--color--white);
}

.gh-emergency-card--critical :where(h2, h3, a) {
	color: var(--wp--preset--color--white);
}

.gh-emergency-number {
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 800;
}

.sylling-hero {
	background-image:
		linear-gradient(125deg, color-mix(in srgb, var(--wp--preset--color--soft-green) 82%, white), var(--wp--preset--color--warm-white) 68%);
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.sylling-now-panel {
	border: 1px solid var(--wp--preset--color--border);
	border-top: 0.3rem solid var(--wp--preset--color--clinic-green);
	border-radius: 1rem;
	box-shadow: 0 1rem 2.5rem color-mix(in srgb, var(--wp--preset--color--deep-green) 11%, transparent);
	padding: clamp(1.25rem, 3vw, 2rem);
}

.sylling-now-panel > :first-child {
	margin-top: 0;
}

.sylling-now-panel .gh-open-status {
	background: var(--wp--preset--color--warm-white);
	margin-block: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
}

.sylling-now-panel__tip {
	border-top: 1px solid var(--wp--preset--color--border);
	padding-top: var(--wp--preset--spacing--40);
}

.sylling-now-panel__tip > :first-child {
	margin-top: 0;
}

.sylling-now-panel__tip > :last-child {
	margin-bottom: 0;
}

.gh-clinic-photo {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 1.25rem;
	box-shadow: 0 1rem 2.5rem color-mix(in srgb, var(--wp--preset--color--deep-green) 12%, transparent);
	overflow: hidden;
}

.gh-clinic-photo img {
	display: block;
	height: 100%;
	max-height: 34rem;
	object-fit: cover;
	width: 100%;
}

.sylling-hero .gh-clinic-photo img {
	aspect-ratio: 5 / 4;
}

.sylling-hours .gh-page-card {
	border-top: 3px solid var(--wp--preset--color--clinic-green);
	box-shadow: none;
}

.sylling-doctor-choice {
	background-image: radial-gradient(circle at 92% 8%, color-mix(in srgb, var(--wp--preset--color--white) 46%, transparent), transparent 32%);
}

.sylling-contact-band {
	align-items: center;
	background: var(--wp--preset--color--soft-green);
	border-radius: 1rem;
	gap: var(--wp--preset--spacing--50);
	padding: clamp(1.5rem, 4vw, 2.5rem);
}

.sylling-contact-band > * {
	margin-block: 0 !important;
}

.gh-source-link {
	color: var(--wp--preset--color--muted-ink);
}

.gh-staff-photo[aria-hidden="true"] {
	user-select: none;
}

.gh-page-section > .gh-departures {
	margin-inline: 0;
	max-width: none;
}

@media (min-width: 48.0625rem) {
	.gh-doctor-card__identity h3 {
		min-height: 3.45em;
	}
}

@media (max-width: 64rem) {
	.gh-actions {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 48rem) {
	.gh-doctor-card__header {
		min-height: 0;
	}

	.site-header > .wp-block-group {
		align-items: center;
	}

	.sylling-brand img {
		height: 2.75rem;
		width: 2.75rem;
	}

	.gh-header-emergency .wp-block-group {
		align-items: flex-start;
		flex-direction: column;
	}

	.gh-home-intro {
		padding-top: var(--wp--preset--spacing--60) !important;
		padding-bottom: var(--wp--preset--spacing--60) !important;
	}

	.gh-hero__grid,
	.gh-contact-grid,
	.gh-practical-grid,
	.gh-staff-grid,
	.gh-doctor-grid,
	.gh-footer-grid,
	.gh-price-grid,
	.gh-local-price-grid,
	.gh-page-grid,
	.gh-page-link-grid,
	.gh-emergency-grid {
		grid-template-columns: minmax(0, 1fr);
	}

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

	.gh-action-card {
		align-items: start;
		column-gap: 0.7rem;
		grid-template-areas:
			"icon heading"
			"icon description"
			"icon link";
		grid-template-columns: 2.5rem minmax(0, 1fr);
		grid-template-rows: auto auto auto;
		padding: 0.85rem !important;
		row-gap: 0.2rem;
	}

	.gh-action-card__icon {
		align-self: start;
		font-size: 1.3rem;
		height: 2.5rem;
		width: 2.5rem;
	}

	.gh-section {
		padding-top: var(--wp--preset--spacing--60) !important;
		padding-bottom: var(--wp--preset--spacing--60) !important;
	}

	.gh-clinic-photo {
		border-radius: var(--wp--custom--radius--medium);
	}

	.sylling-now-panel {
		padding: 1.15rem;
	}
}

@media (max-width: 35rem) {
	.gh-actions {
		grid-template-columns: minmax(0, 1fr);
		margin-top: -0.75rem;
	}

	.sylling-staff-grid .gh-staff-card {
		align-items: center;
		display: grid;
		grid-template-columns: 5rem minmax(0, 1fr);
		min-height: 0;
	}

	.sylling-staff-grid .gh-staff-photo {
		aspect-ratio: 3 / 4;
		border-bottom: 0;
		border-right: 1px solid var(--wp--preset--color--border);
		height: 6.6667rem;
		margin-left: 0.75rem;
		width: 5rem;
	}

	.sylling-staff-grid .gh-staff-card__content {
		padding: 0.85rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
