/* Eldri — cream, charcoal, one leaf. Editorial, not brochure. */

:root {
	--eldri-gutter: var(--wp--style--root--padding-left, 1.25rem);
	--eldri-gap: 1.25rem;
	--eldri-band: 3.25rem;
	--eldri-line: color-mix(in srgb, var(--wp--preset--color--contrast) 12%, transparent);
	--eldri-focus: var(--wp--preset--color--accent-1);
	--eldri-shadow: 0 22px 50px color-mix(in srgb, var(--wp--preset--color--contrast) 16%, transparent);
}

html {
	scroll-behavior: smooth;
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

a {
	text-underline-offset: 0.18em;
}

img {
	height: auto;
	max-width: 100%;
}

/* Reads to screen readers, invisible on screen. */
.einfalt-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.einfalt-kicker,
.einfalt-cover-kicker,
.einfalt-bladid-year {
	margin: 0;
	color: var(--wp--preset--color--accent-4);
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.einfalt-lede {
	max-width: 38rem;
	margin-top: 0.35rem;
	font-size: 1.25rem;
	line-height: 1.55;
	overflow-wrap: break-word;
}

/*
 * A constrained layout centres every child on that child's own max-width, so
 * the narrower measure indented the lede 2rem past the heading it belongs to.
 * The auto margins are what position the column, so they have to stay: match
 * the sibling width instead and let the lede sit on the same left edge.
 */
.is-layout-constrained > .einfalt-lede {
	max-width: var(--wp--style--global--content-size, 42rem);
}

/* Header: logo, words, phone, search icon. */

.einfalt-site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: color-mix(in srgb, var(--wp--preset--color--base) 94%, transparent);
	border-bottom: 1px solid var(--eldri-line);
}

.admin-bar .einfalt-site-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.einfalt-header-inner {
	min-height: 4.75rem;
	padding-block: 0.65rem;
	gap: 1rem 1.5rem;
}

.einfalt-site-header .wp-block-site-logo img {
	height: auto;
	max-height: 2.85rem;
	width: auto;
}

.einfalt-site-header .wp-block-navigation {
	justify-content: center;
}

.einfalt-site-header .wp-block-navigation-item__content {
	padding: 0.45rem 0.15rem;
	font-size: 1.125rem;
}

.einfalt-header-tools {
	gap: 0.15rem 0.45rem;
	margin-left: auto;
	min-width: 0;
}

.einfalt-phone {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 700;
	white-space: nowrap;
}

.einfalt-phone a {
	color: inherit;
	text-decoration: none;
}

.einfalt-search-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	flex: 0 0 2.75rem;
	color: inherit;
	text-decoration: none;
}

.einfalt-search-icon:hover,
.einfalt-search-icon:focus {
	color: var(--wp--preset--color--accent-1);
}

.einfalt-search-icon svg {
	display: block;
	fill: currentColor;
}

.wp-block-button__link {
	min-height: 3rem;
	display: inline-flex;
	align-items: center;
}

/* Search-as-you-type: the bar under the header, and the answers panel. */

.einfalt-search-toggle {
	appearance: none;
	border: 0;
	background: none;
	cursor: pointer;
	font: inherit;
}

/*
 * The header is a constrained group, so it would hold the bar to the 42rem
 * content column — a search field a third the width of the header above it.
 * The bar spans the header; the form inside it keeps to the wide measure.
 */
.einfalt-site-header .einfalt-search-bar {
	width: 100%;
	max-width: none;
	border-top: 1px solid var(--eldri-line);
	background: var(--wp--preset--color--base);
}

.einfalt-search-form {
	display: flex;
	gap: 0.5rem;
	box-sizing: border-box;
	max-width: calc(var(--wp--style--global--wide-size, 76rem) + var(--eldri-gutter) * 2);
	margin-inline: auto;
	padding: 0.85rem var(--eldri-gutter);
	position: relative;
}

.einfalt-search-field {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 3.25rem;
	padding: 0.5rem 1.15rem;
	border: 2px solid var(--eldri-line);
	border-radius: 999px;
	background: var(--wp--preset--color--accent-5);
	color: inherit;
	font-family: inherit;
	font-size: 1.15rem;
}

.einfalt-search-field:focus {
	border-color: var(--wp--preset--color--accent-1);
	outline: none;
}

.einfalt-search-go {
	flex: 0 0 auto;
	min-height: 3.25rem;
	padding: 0.5rem 1.5rem;
	border: 0;
	border-radius: 999px;
	background: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--accent-5);
	font-family: inherit;
	font-size: 1.0625rem;
	font-weight: 700;
	cursor: pointer;
}

.einfalt-search-go:hover {
	background: var(--wp--preset--color--contrast);
}

/*
 * The panel hangs off the field it belongs to. Absolute rather than in flow,
 * so answers appearing under a header field do not shove the page down as
 * someone types.
 */
.einfalt-live {
	position: absolute;
	z-index: 60;
	top: 100%;
	left: 0;
	right: 0;
	max-height: min(28rem, 70vh);
	overflow-y: auto;
	background: var(--wp--preset--color--accent-5);
	border: 1px solid var(--eldri-line);
	border-radius: 0.75rem;
	box-shadow: var(--eldri-shadow);
}

/* The header bar carries the gutter as padding, so its panel matches. */
.einfalt-search-form .einfalt-live {
	left: var(--eldri-gutter);
	right: var(--eldri-gutter);
}

.einfalt-live-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.einfalt-live-item + .einfalt-live-item {
	border-top: 1px solid var(--eldri-line);
}

.einfalt-live-list a {
	display: block;
	padding: 0.85rem 1.15rem;
	color: inherit;
	text-decoration: none;
}

.einfalt-live-list a:hover,
.einfalt-live-list a:focus-visible {
	background: var(--wp--preset--color--accent-2);
	text-decoration: none;
}

/* What kind of thing this is: a deal, a club, a story. */
.einfalt-live-kind {
	display: block;
	margin-bottom: 0.15rem;
	color: var(--wp--preset--color--accent-1);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.einfalt-live-title {
	display: block;
	font-size: 1.15rem;
	font-weight: 650;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.einfalt-live-where {
	display: block;
	margin-top: 0.1rem;
	color: var(--wp--preset--color--accent-4);
	font-size: 1rem;
}

.einfalt-live-foot:empty {
	display: none;
}

.einfalt-live-foot {
	margin: 0;
	padding: 0.85rem 1.15rem;
	border-top: 1px solid var(--eldri-line);
	font-size: 1.05rem;
}

.einfalt-live-all {
	font-weight: 700;
	text-decoration: none;
}

.einfalt-live-all::after {
	content: "\00a0\2192";
}

.einfalt-live-none {
	color: var(--wp--preset--color--accent-4);
}

/* Every enhanced form is the panel's positioning parent. */
.einfalt-has-live {
	position: relative;
}

/* In the menu overlay the field is already full width, and the overlay
   scrolls, so the panel is free to run as long as it needs to. */
.einfalt-nav-search {
	position: relative;
}

.einfalt-nav-search .einfalt-live {
	left: 0;
	right: 4rem;
	max-height: none;
}

/* Magazine cover as homepage. */

.einfalt-heim-bladid {
	padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

.einfalt-cover-hero {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: clamp(2.25rem, 7vw, 5.5rem) 1rem clamp(2.75rem, 6vw, 4.5rem);
}

.einfalt-cover-hero-art {
	margin: 0 0 1.75rem;
}

.einfalt-cover-hero-img {
	display: block;
	width: min(28rem, 72vw);
	aspect-ratio: 3 / 4;
	object-fit: cover;
	background: var(--wp--preset--color--accent-2);
	box-shadow: var(--eldri-shadow);
}

.einfalt-cover-kicker {
	margin-bottom: 0.45rem;
}

.einfalt-cover-title {
	margin: 0 0 0.85rem;
	max-width: 22rem;
	font-size: clamp(1.65rem, 3vw, 2.15rem);
	line-height: 1.2;
	font-weight: 700;
	text-wrap: balance;
}

.einfalt-cover-action {
	margin: 0;
}

.einfalt-cover-action a {
	color: var(--wp--preset--color--accent-1);
	font-size: 1.2rem;
	font-weight: 700;
	text-decoration: none;
}

.einfalt-cover-action a:hover {
	text-decoration: underline;
}

.einfalt-cover-shop {
	max-width: var(--wp--style--global--wide-size, 76rem);
	margin-inline: auto;
	padding-top: 0.5rem;
	padding-bottom: clamp(1.5rem, 4vw, 3rem);
}

.einfalt-bladid-grid,
.einfalt-directory-grid {
	display: grid;
	gap: 1.75rem 1.35rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.einfalt-bladid-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2.75rem 2rem;
}

.einfalt-bladid-card {
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
}

.einfalt-bladid-card a {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.45rem;
	text-align: center;
	color: inherit;
	text-decoration: none;
}

.einfalt-bladid-cover,
.einfalt-bladid-single-cover img {
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	background: var(--wp--preset--color--accent-2);
}

.einfalt-bladid-title {
	font-weight: 600;
	font-size: 1.05rem;
	line-height: 1.3;
}

.einfalt-bladid-card a:hover .einfalt-bladid-title {
	color: var(--wp--preset--color--accent-1);
}

.einfalt-bladid-single-cover {
	margin: 0 0 1.25rem;
	max-width: 22rem;
}

/* News as date + title. */

.einfalt-band {
	padding-block: clamp(2rem, 5vw, 3.75rem);
}

.einfalt-band-head {
	margin-bottom: 0.5rem;
}

.einfalt-news {
	border-top: 1px solid var(--eldri-line);
}

/* Search and the index fallback still run a core query loop. Same two-column
   rhythm as the news archive below, so the site reads as one thing. */

.einfalt-news-list {
	display: grid;
	gap: 0;
	border-top: 1px solid var(--eldri-line);
}

.einfalt-news-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.2rem 2rem;
	padding-block: 1.4rem;
	border-bottom: 1px solid var(--eldri-line);
}

/* Search results carry no date, so only indent when there is one to indent past. */
.einfalt-news-row:has(.wp-block-post-date) {
	grid-template-columns: 11rem minmax(0, 1fr);
}

.einfalt-news-row .wp-block-post-date {
	grid-column: 1;
	color: var(--wp--preset--color--accent-4);
	font-size: 1.05rem;
	font-variant-numeric: tabular-nums;
}

.einfalt-news-row:has(.wp-block-post-date) .wp-block-post-title,
.einfalt-news-row:has(.wp-block-post-date) .wp-block-post-excerpt {
	grid-column: 2;
}

.einfalt-news-row .wp-block-post-title {
	margin: 0;
	font-size: 1.35rem;
	font-weight: 650;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.einfalt-news-row .wp-block-post-title a {
	color: inherit;
	text-decoration: none;
}

.einfalt-news-row .wp-block-post-title a:hover {
	color: var(--wp--preset--color--accent-1);
	text-decoration: underline;
}

.einfalt-news-row .wp-block-post-excerpt {
	max-width: 44rem;
	margin: 0.3rem 0 0;
	color: var(--wp--preset--color--accent-4);
	font-size: 1.1rem;
	line-height: 1.5;
}

.einfalt-news-row .wp-block-post-excerpt p {
	margin: 0;
}

.einfalt-news-row .wp-block-post-excerpt__more-text {
	margin-top: 0.35rem;
}

@media (max-width: 700px) {
	.einfalt-news-row,
	.einfalt-news-row:has(.wp-block-post-date) {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.25rem;
	}

	.einfalt-news-row:has(.wp-block-post-date) .wp-block-post-title,
	.einfalt-news-row:has(.wp-block-post-date) .wp-block-post-excerpt {
		grid-column: 1;
	}
}

/* Kunning: the full news archive, and the category views it filters to. */

.einfalt-news-archive {
	padding-block: clamp(1.75rem, 4vw, 3rem) clamp(3rem, 7vw, 5rem);
}

.einfalt-news-filters {
	margin-bottom: 1.5rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--eldri-line);
}

.einfalt-news-filters ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.einfalt-news-filters li {
	margin: 0;
}

.einfalt-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.55rem 1.1rem;
	background: var(--wp--preset--color--accent-2);
	border: 2px solid transparent;
	border-radius: 999px;
	color: var(--wp--preset--color--contrast);
	font-size: 1.075rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
}

.einfalt-chip:hover {
	border-color: var(--wp--preset--color--accent-1);
	text-decoration: none;
}

.einfalt-chip.is-active {
	background: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--accent-5);
}

.einfalt-chip-count {
	color: var(--wp--preset--color--accent-4);
	font-size: 0.95rem;
	font-variant-numeric: tabular-nums;
	font-weight: 600;
}

.einfalt-chip.is-active .einfalt-chip-count,
.einfalt-chip:hover .einfalt-chip-count {
	color: inherit;
}

.einfalt-news-count {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.9rem;
	margin: 0 0 0.75rem;
	color: var(--wp--preset--color--accent-4);
	font-size: 1.05rem;
	font-variant-numeric: tabular-nums;
}

.einfalt-news-page::before {
	content: "·\00a0";
}

.einfalt-news-rows {
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--eldri-line);
	list-style: none;
	counter-reset: none;
}

.einfalt-news-item {
	margin: 0;
}

.einfalt-news-link {
	display: grid;
	grid-template-columns: 11rem minmax(0, 1fr) 1.5rem;
	align-items: start;
	gap: 0 2rem;
	padding: 1.4rem 0.9rem 1.4rem 0;
	border-bottom: 1px solid var(--eldri-line);
	color: inherit;
	text-decoration: none;
}

.einfalt-news-link:hover {
	background: color-mix(in srgb, var(--wp--preset--color--accent-2) 55%, transparent);
	text-decoration: none;
}

/* The arrow is the only affordance on the row, since the whole row is the
   link. Nudge it on hover rather than repeating "Les meira" twenty times. */
.einfalt-news-link::after {
	content: "\2192";
	grid-column: 3;
	align-self: center;
	color: var(--wp--preset--color--accent-4);
	font-size: 1.35rem;
	line-height: 1;
	transition: transform 0.15s ease, color 0.15s ease;
}

.einfalt-news-link:hover::after {
	color: var(--wp--preset--color--accent-1);
	transform: translateX(0.2rem);
}

.einfalt-news-meta {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	padding-top: 0.15rem;
}

.einfalt-news-meta time {
	color: var(--wp--preset--color--accent-4);
	font-size: 1.05rem;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.einfalt-news-kicker {
	align-self: start;
	color: var(--wp--preset--color--accent-1);
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.einfalt-news-body {
	display: block;
	min-width: 0;
}

.einfalt-news-title {
	margin: 0;
	font-size: 1.35rem;
	font-weight: 650;
	line-height: 1.3;
	letter-spacing: -0.01em;
	overflow-wrap: anywhere;
}

.einfalt-news-link:hover .einfalt-news-title {
	color: var(--wp--preset--color--accent-1);
	text-decoration: underline;
}

.einfalt-news-text {
	display: -webkit-box;
	max-width: 44rem;
	margin-top: 0.35rem;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	color: var(--wp--preset--color--accent-4);
	font-size: 1.1rem;
	line-height: 1.5;
}

.einfalt-news-empty {
	padding-block: 2rem;
	font-size: 1.2rem;
}

.einfalt-news-pages {
	margin-top: 2rem;
}

.einfalt-news-pages ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.einfalt-news-pages li {
	margin: 0;
}

.einfalt-news-pages a,
.einfalt-news-pages span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 3rem;
	min-height: 3rem;
	padding-inline: 0.85rem;
	border: 2px solid var(--eldri-line);
	border-radius: 999px;
	color: inherit;
	font-size: 1.1rem;
	font-weight: 650;
	font-variant-numeric: tabular-nums;
	text-decoration: none;
}

.einfalt-news-pages a:hover {
	border-color: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--accent-1);
	text-decoration: none;
}

.einfalt-news-pages .current {
	background: var(--wp--preset--color--accent-1);
	border-color: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--accent-5);
}

.einfalt-news-pages .dots {
	min-width: 1.5rem;
	padding-inline: 0;
	border-color: transparent;
	color: var(--wp--preset--color--accent-4);
}

@media (max-width: 700px) {
	.einfalt-news-link {
		grid-template-columns: minmax(0, 1fr) 1.5rem;
		gap: 0.35rem 1rem;
		padding-block: 1.25rem;
	}

	.einfalt-news-meta {
		flex-direction: row;
		align-items: baseline;
		gap: 0.75rem;
		grid-column: 1;
		padding-top: 0;
	}

	.einfalt-news-body {
		grid-column: 1;
	}

	.einfalt-news-link::after {
		grid-column: 2;
		grid-row: 1 / span 2;
	}
}

/* Homepage: hero slider, news, events, shortcuts. */

.einfalt-heim-slider.wp-block-group,
.einfalt-heim-news.wp-block-group,
.einfalt-heim-events.wp-block-group,
.einfalt-heim-shortcuts.wp-block-group {
	margin: 0;
	padding: 0;
}

.einfalt-heim-slider.wp-block-group {
	padding-top: 1.25rem;
}

/*
 * One grid for the whole homepage. The header puts its content in a wide-size
 * box inside the root padding, so bands have to add that gutter themselves to
 * line up with the logo and the nav.
 */
.einfalt-inner {
	display: block;
	box-sizing: border-box;
	max-width: calc(var(--wp--style--global--wide-size, 76rem) + var(--eldri-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--eldri-gutter);
}

.einfalt-hero {
	position: relative;
	overflow: hidden;
	border-radius: 0.65rem;
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--accent-5);
}

/* Roughly 16:9 of the content box, so group photos are not letterboxed. */
.einfalt-hero-viewport {
	position: relative;
	width: 100%;
	height: clamp(30rem, 48vw, 46rem);
}

.einfalt-hero-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.6s ease, visibility 0.6s ease;
}

.einfalt-hero-slide.is-active {
	opacity: 1;
	visibility: visible;
}

.einfalt-hero-link {
	position: absolute;
	inset: 0;
	display: block;
	color: inherit;
	text-decoration: none;
}

.einfalt-hero-art {
	position: absolute;
	inset: 0;
	display: block;
	background: var(--wp--preset--color--accent-4);
}

.einfalt-hero-art::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		color-mix(in srgb, var(--wp--preset--color--contrast) 38%, transparent) 0%,
		transparent 42%
	);
}

.einfalt-hero-art img,
.einfalt-hero-img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100% !important;
	max-width: none !important;
	height: 100% !important;
	min-width: 100%;
	min-height: 100%;
	object-fit: cover;
	object-position: center;
}

.einfalt-hero-copy {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	padding: 1.25rem 1.25rem 4.75rem;
}

.einfalt-hero-box {
	display: block;
	max-width: 26rem;
	padding: 1.1rem 1.25rem 1.2rem;
	border-radius: 0.45rem;
	background: color-mix(in srgb, var(--wp--preset--color--contrast) 68%, transparent);
}

.einfalt-hero-kicker {
	display: block;
	margin-bottom: 0.65rem;
	color: var(--wp--preset--color--accent-3);
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.einfalt-hero-title {
	display: block;
	margin: 0;
	max-width: 26ch;
	color: var(--wp--preset--color--accent-5);
	font-size: clamp(1.6rem, 3vw, 2.45rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.1;
	overflow-wrap: anywhere;
	text-wrap: pretty;
}

.einfalt-hero-date {
	display: block;
	margin-top: 0.85rem;
	color: color-mix(in srgb, var(--wp--preset--color--accent-5) 82%, transparent);
	font-size: 1.1rem;
}

.einfalt-hero-cta {
	display: inline-flex;
	align-items: center;
	min-height: 3rem;
	margin-top: 1.35rem;
	padding: 0.45rem 1.5rem;
	border-radius: 999px;
	background: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--accent-5);
	font-size: 1.125rem;
	font-weight: 700;
}

.einfalt-hero-link:hover .einfalt-hero-cta,
.einfalt-hero-link:focus-visible .einfalt-hero-cta {
	background: var(--wp--preset--color--accent-5);
	color: var(--wp--preset--color--contrast);
}

.einfalt-hero-link:hover .einfalt-hero-title {
	text-decoration: underline;
	text-decoration-thickness: 2px;
}

.einfalt-hero-controls {
	position: absolute;
	inset-inline: 1.25rem;
	bottom: 1.15rem;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	pointer-events: none;
}

.einfalt-hero-dots,
.einfalt-hero-arrows {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	pointer-events: auto;
}

/* The bars share whatever room the arrows leave, however many slides there are. */
.einfalt-hero-dots {
	flex: 1 1 auto;
	min-width: 0;
}

.einfalt-hero-arrows {
	flex: 0 0 auto;
}

.einfalt-hero-dots button {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 1 1 auto;
	min-width: 0.9rem;
	max-width: 2.6rem;
	height: 2.75rem;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.einfalt-hero-dots button::before {
	content: "";
	display: block;
	width: 100%;
	max-width: 2.1rem;
	height: 0.3rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--wp--preset--color--accent-5) 40%, transparent);
	transition: background 0.25s ease;
}

.einfalt-hero-dots button[aria-current="true"]::before {
	background: var(--wp--preset--color--accent-5);
}

.einfalt-hero-arrows button {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: color-mix(in srgb, var(--wp--preset--color--accent-5) 88%, transparent);
	color: var(--wp--preset--color--contrast);
	cursor: pointer;
}

.einfalt-hero-arrows button:hover,
.einfalt-hero-arrows button:focus-visible {
	background: var(--wp--preset--color--accent-5);
}

.einfalt-hero-arrows svg {
	display: block;
}

.einfalt-heim-band {
	padding-block: var(--eldri-band);
}

.einfalt-heim-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.4rem 1.5rem;
	margin-bottom: 1.5rem;
}

.einfalt-heim-head h2 {
	margin: 0;
	font-size: clamp(1.85rem, 3vw, 2.55rem);
	letter-spacing: -0.03em;
}

.einfalt-heim-head h2::after {
	content: "";
	display: block;
	width: 2.4rem;
	height: 3px;
	margin-top: 0.55rem;
	background: var(--wp--preset--color--accent-1);
}

.einfalt-heim-head p {
	margin: 0;
	font-weight: 700;
}

.einfalt-heim-head a {
	text-decoration: none;
}

.einfalt-heim-head a:hover {
	text-decoration: underline;
}

.einfalt-heim-head a::after,
.einfalt-lead-cta::after,
.einfalt-event-cta::after,
.einfalt-link-cta::after {
	content: "\00a0\2192";
}

/* Latest news: one lead, then dated headlines. Type, not a card dashboard. */

.einfalt-news-split {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: 0 3rem;
	align-items: start;
}

.einfalt-lead a {
	display: flex;
	flex-direction: column;
	color: inherit;
	text-decoration: none;
}

.einfalt-lead-art {
	display: block;
	width: 100%;
	margin: 0 0 1rem;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	background: var(--wp--preset--color--accent-2);
	border-radius: 0.45rem;
}

.einfalt-lead-meta {
	margin: 0 0 0.35rem;
	color: var(--wp--preset--color--accent-4);
	font-size: 1.05rem;
}

.einfalt-news-split.is-text-only {
	grid-template-columns: 1fr;
}

.einfalt-news-split.is-text-only .einfalt-lead a {
	padding-bottom: 1.5rem;
	margin-bottom: 0.25rem;
	border-bottom: 1px solid var(--eldri-line);
}

.einfalt-news-split.is-text-only .einfalt-lead h3 {
	font-size: clamp(1.7rem, 2.6vw, 2.35rem);
}

.einfalt-news-split.is-text-only .einfalt-headlines {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 3rem;
}

.einfalt-lead h3 {
	margin: 0;
	font-size: clamp(1.5rem, 2.2vw, 2rem);
	letter-spacing: -0.02em;
	line-height: 1.2;
	overflow-wrap: anywhere;
}

.einfalt-lead-text {
	margin: 0.55rem 0 0;
	max-width: 38rem;
	color: var(--wp--preset--color--accent-4);
}

.einfalt-lead-cta {
	align-self: flex-start;
	margin-top: 1rem;
	color: var(--wp--preset--color--accent-1);
	font-weight: 700;
}

.einfalt-lead a:hover h3 {
	color: var(--wp--preset--color--accent-1);
}

.einfalt-lead a:hover .einfalt-lead-cta {
	text-decoration: underline;
}

.einfalt-headlines {
	margin: 0;
	padding: 0;
	list-style: none;
}

.einfalt-headlines li {
	margin: 0;
}

.einfalt-headlines a {
	display: block;
	padding: 1.25rem 0;
	border-bottom: 1px solid var(--eldri-line);
	color: inherit;
	text-decoration: none;
}

.einfalt-headlines time {
	display: block;
	margin-bottom: 0.2rem;
	color: var(--wp--preset--color--accent-4);
	font-size: 1rem;
}

.einfalt-headlines-title {
	display: block;
	font-size: 1.2rem;
	font-weight: 650;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.einfalt-headlines a:hover .einfalt-headlines-title {
	color: var(--wp--preset--color--accent-1);
	text-decoration: underline;
}

/* Tiltøk on a sand band. Text cards, because most posts carry no picture. */

.einfalt-heim-events {
	background: var(--wp--preset--color--accent-2);
}

.einfalt-event-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--eldri-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.einfalt-event-card {
	display: flex;
	overflow: hidden;
	background: var(--wp--preset--color--accent-5);
	border-top: 3px solid var(--wp--preset--color--accent-1);
	border-radius: 0.15rem 0.15rem 0.5rem 0.5rem;
	box-shadow: 0 1px 0 var(--eldri-line);
}

.einfalt-event-card a {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 1.5rem 1.5rem 1.55rem;
	color: inherit;
	text-decoration: none;
}

/*
 * A dateline, not a calendar tile. The only date these posts carry is the day
 * the notice went up, and a big day-over-month badge on an events card is read
 * as the day the event happens — so "Eldradagurin ... leyg. 5. sept" wore a
 * badge saying 7 mai. Until there is a real event date to show, say plainly
 * what this date is.
 */
.einfalt-event-when {
	display: block;
	margin-bottom: 0.6rem;
	color: var(--wp--preset--color--accent-4);
	font-size: 1rem;
}

/* Imported excerpts run long; clamp them so the row of cards stays even. */
.einfalt-event-card h3 {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	overflow-wrap: anywhere;
	margin: 0;
	font-size: 1.3rem;
	line-height: 1.25;
}

.einfalt-event-text {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	margin: 0.55rem 0 0;
	color: var(--wp--preset--color--accent-4);
	font-size: 1.1rem;
}

.einfalt-event-cta {
	margin-top: auto;
	padding-top: 1.1rem;
	color: var(--wp--preset--color--accent-1);
	font-weight: 700;
}

.einfalt-event-card a:hover h3 {
	color: var(--wp--preset--color--accent-1);
}

.einfalt-event-card a:hover .einfalt-event-cta {
	text-decoration: underline;
}

/* Snarslóðir: three links, then Blaðið. */

.einfalt-snar {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.75rem;
}

.einfalt-link-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.einfalt-link-card {
	display: flex;
	background: none;
	box-shadow: none;
}

/*
 * The card box has to be the anchor's own height. A percentage height here
 * resolves against an indefinite grid row, so the anchor paints taller than the
 * row it sits in and the next band lands on top of it.
 */
.einfalt-link-card a {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 1.6rem 1.55rem 1.5rem;
	border-radius: 0.5rem;
	background: var(--wp--preset--color--accent-5);
	box-shadow: 0 1px 0 var(--eldri-line);
	color: inherit;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.einfalt-link-card a:hover,
.einfalt-link-card a:focus-visible {
	transform: translateY(-3px);
	box-shadow: var(--eldri-shadow);
}

.einfalt-link-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.25rem;
	height: 3.25rem;
	margin-bottom: 1.1rem;
	border-radius: 0.65rem;
	background: color-mix(in srgb, var(--wp--preset--color--accent-3) 42%, transparent);
	color: var(--wp--preset--color--accent-1);
	transition: background 0.2s ease, color 0.2s ease;
}

.einfalt-link-card a:hover .einfalt-link-icon,
.einfalt-link-card a:focus-visible .einfalt-link-icon {
	background: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--accent-5);
}

.einfalt-link-card h3 {
	margin: 0;
	font-size: 1.4rem;
	line-height: 1.2;
}

.einfalt-link-card p {
	margin: 0.35rem 0 0;
	color: var(--wp--preset--color--accent-4);
	font-size: 1.05rem;
}

.einfalt-link-cta {
	margin-top: auto;
	padding-top: 1.15rem;
	color: var(--wp--preset--color--accent-1);
	font-weight: 700;
}

.einfalt-link-card a:hover h3 {
	color: var(--wp--preset--color--accent-1);
}

.einfalt-link-card a:hover .einfalt-link-cta {
	text-decoration: underline;
}

.einfalt-heim-blad {
	display: grid;
	grid-template-columns: minmax(14rem, 18rem) minmax(0, 1fr);
	min-height: 22rem;
	margin: 0;
	background: var(--wp--preset--color--accent-5);
	border-radius: 0.5rem;
	overflow: hidden;
	box-shadow: 0 1px 0 var(--eldri-line);
	color: inherit;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.einfalt-heim-blad:hover,
.einfalt-heim-blad:focus-visible {
	transform: translateY(-3px);
	box-shadow: var(--eldri-shadow);
}

.einfalt-heim-blad-art {
	display: block;
	height: 100%;
	min-height: 0;
	background: var(--wp--preset--color--accent-2);
}

.einfalt-heim-blad-cover {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
}

.einfalt-heim-blad-copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 2rem 2.25rem;
}

.einfalt-heim-blad-kicker {
	margin-bottom: 0.4rem;
	color: var(--wp--preset--color--accent-1);
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.einfalt-heim-blad-title {
	font-size: clamp(1.55rem, 2.4vw, 2.15rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.einfalt-heim-blad-text {
	margin-top: 0.45rem;
	color: var(--wp--preset--color--accent-4);
	font-size: 1.1rem;
}

.einfalt-heim-blad-cta {
	margin-top: 1.15rem;
	color: var(--wp--preset--color--accent-1);
	font-weight: 700;
}

.einfalt-heim-blad-cta::after {
	content: "\00a0\2192";
}

.einfalt-heim-blad:hover .einfalt-heim-blad-title {
	color: var(--wp--preset--color--accent-1);
}

/* Homepage breakpoints. */

@media (max-width: 900px) {
	.einfalt-news-split,
	.einfalt-news-split.is-text-only {
		grid-template-columns: 1fr;
	}

	.einfalt-news-split.is-text-only .einfalt-headlines {
		grid-template-columns: 1fr;
	}

	.einfalt-event-grid {
		grid-template-columns: 1fr;
	}

	.einfalt-heim-blad {
		grid-template-columns: minmax(12rem, 15rem) minmax(0, 1fr);
		min-height: 18rem;
	}
}

@media (max-width: 700px) {
	.einfalt-link-grid {
		grid-template-columns: 1fr;
	}

	.einfalt-heim-blad {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.einfalt-heim-blad-cover {
		aspect-ratio: 3 / 4;
		height: auto;
	}
}

@media (max-width: 781px) {
	.einfalt-hero-viewport {
		height: clamp(28rem, 72vh, 36rem);
	}

	.einfalt-hero-copy {
		padding: 1rem 1rem 4.5rem;
	}

	.einfalt-hero-box {
		max-width: none;
		padding: 1rem 1.1rem 1.1rem;
	}

	.einfalt-hero-title {
		max-width: none;
		font-size: clamp(1.45rem, 6.6vw, 2rem);
	}

	.einfalt-hero-controls {
		inset-inline: 1rem;
	}
}


@media (prefers-reduced-motion: reduce) {
	.einfalt-hero-slide {
		transition: none;
	}
}

/* Quiet cards. */

/* Grid stretch already fills the row; height:100% would add padding on top
   of it and overlap the row below, since the site is not border-box. */
.einfalt-card {
	position: relative;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	padding: 1.5rem;
	background: var(--wp--preset--color--accent-5);
	border: 1px solid var(--eldri-line);
	border-radius: 0.75rem;
}

.einfalt-card h3 {
	margin: 0 0 0.25rem;
	font-size: 1.35rem;
	line-height: 1.25;
}

.einfalt-card .wp-block-heading a,
.einfalt-card .wp-block-post-title a,
.einfalt-card h3 a {
	color: inherit;
	text-decoration: none;
}

.einfalt-card h3 a:hover {
	color: var(--wp--preset--color--accent-1);
	text-decoration: underline;
}

.einfalt-card p {
	margin: 0.2rem 0;
}

.einfalt-main {
	padding-block: clamp(1.75rem, 4vw, 3.25rem) clamp(3rem, 7vw, 5rem);
}

.einfalt-page-head {
	margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

.einfalt-meta-card {
	padding: 1.4rem 1.5rem;
	background: var(--wp--preset--color--accent-2);
}

.einfalt-badge {
	display: inline-block;
	margin: 0 0 0.6rem;
	padding: 0.25rem 0.7rem;
	background: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--accent-5);
	border-radius: 999px;
	font-weight: 700;
}

.einfalt-site-footer {
	padding-top: clamp(2.5rem, 5vw, 4rem);
	border-top: 1px solid var(--eldri-line);
	background: var(--wp--preset--color--accent-2);
}

.einfalt-site-footer .wp-block-heading {
	font-size: 1.2rem;
}

.einfalt-footer-copy {
	margin-top: 1.5rem;
	padding-block: 1.1rem 1.4rem;
	border-top: 1px solid var(--eldri-line);
	color: var(--wp--preset--color--accent-4);
	font-size: 1.05rem;
}

/* The sitting board, on Um okkum. */

.einfalt-nevnd {
	margin-top: clamp(2rem, 4vw, 3rem);
}

.einfalt-nevnd-title {
	margin: 0 0 1.25rem;
	font-size: var(--wp--preset--font-size--large, 1.75rem);
	font-weight: 650;
	line-height: 1.25;
}

.einfalt-nevnd-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(16rem, 100%), 1fr));
	gap: 0.85rem 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.einfalt-nevnd-list li {
	margin: 0;
	padding-bottom: 0.85rem;
	border-bottom: 1px solid var(--eldri-line);
}

.einfalt-nevnd-name {
	display: block;
	font-size: 1.2rem;
	font-weight: 650;
	line-height: 1.3;
}

.einfalt-nevnd-role {
	display: block;
	margin-top: 0.1rem;
	color: var(--wp--preset--color--accent-4);
	font-size: 1.05rem;
}

.einfalt-nevnd-older {
	margin: 1.5rem 0 0;
	font-weight: 600;
}

/* Ways on from a single story, and back to the list it came from. */

.einfalt-back {
	margin: 1.75rem 0 0;
	font-weight: 600;
}

.einfalt-back a {
	text-decoration: none;
}

.einfalt-back a::before {
	content: "\2190\00a0";
}

.einfalt-back a:hover {
	text-decoration: underline;
}

.einfalt-post-foot {
	margin-top: clamp(2.5rem, 5vw, 3.5rem);
	padding-top: 1.75rem;
	border-top: 1px solid var(--eldri-line);
}

.einfalt-post-nav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

/* One neighbour only — the newest and oldest stories have a single side —
   so the lone link keeps its own half rather than stretching across. */
.einfalt-post-nav:has(.is-next:only-child) {
	justify-items: end;
}

.einfalt-post-nav-link {
	display: block;
	padding: 1.1rem 1.25rem;
	border: 1px solid var(--eldri-line);
	border-radius: 0.5rem;
	color: inherit;
	text-decoration: none;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.einfalt-post-nav-link:hover,
.einfalt-post-nav-link:focus-visible {
	background: var(--wp--preset--color--accent-2);
	border-color: color-mix(in srgb, var(--wp--preset--color--accent-1) 35%, transparent);
	text-decoration: none;
}

.einfalt-post-nav-link.is-next {
	text-align: right;
}

.einfalt-post-nav-label {
	display: block;
	margin-bottom: 0.2rem;
	color: var(--wp--preset--color--accent-4);
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.einfalt-post-nav-title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	font-size: 1.15rem;
	font-weight: 650;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.einfalt-post-nav-link:hover .einfalt-post-nav-title {
	color: var(--wp--preset--color--accent-1);
}

@media (max-width: 600px) {
	.einfalt-post-nav {
		grid-template-columns: 1fr;
	}

	.einfalt-post-nav-link.is-next {
		text-align: left;
	}
}

/* Search runs a core query loop, so it gets core's pagination markup. Same
   pills as the hand-rolled pagination on Kunning. */

.einfalt-query-pages {
	gap: 0.5rem;
	margin-top: 2rem;
}

.einfalt-query-pages .wp-block-query-pagination-numbers {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}

.einfalt-query-pages a,
.einfalt-query-pages .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 3rem;
	min-height: 3rem;
	padding-inline: 0.85rem;
	border: 2px solid var(--eldri-line);
	border-radius: 999px;
	color: inherit;
	font-size: 1.1rem;
	font-weight: 650;
	font-variant-numeric: tabular-nums;
	text-decoration: none;
}

.einfalt-query-pages a:hover {
	border-color: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--accent-1);
	text-decoration: none;
}

.einfalt-query-pages .page-numbers.current {
	background: var(--wp--preset--color--accent-1);
	border-color: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--accent-5);
}

.einfalt-query-pages .page-numbers.dots {
	min-width: 1.5rem;
	padding-inline: 0;
	border-color: transparent;
	color: var(--wp--preset--color--accent-4);
}

/* Øki as pills. */

.einfalt-directory {
	display: block;
}

.einfalt-filter {
	padding-bottom: 1.35rem;
	border-bottom: 1px solid var(--eldri-line);
}

.einfalt-filter-label {
	margin: 0 0 0.75rem;
	color: var(--wp--preset--color--accent-4);
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.einfalt-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
}

.einfalt-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	min-height: 2.75rem;
	padding: 0.35rem 1.05rem;
	border: 0;
	border-radius: 999px;
	background: var(--wp--preset--color--accent-2);
	color: inherit;
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.einfalt-pill:hover {
	background: var(--wp--preset--color--accent-3);
	color: var(--wp--preset--color--contrast);
}

.einfalt-pill.is-active {
	background: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--accent-5);
}

.einfalt-pill-count {
	color: var(--wp--preset--color--accent-4);
	font-size: 0.9rem;
	font-variant-numeric: tabular-nums;
}

.einfalt-pill:hover .einfalt-pill-count {
	color: inherit;
}

.einfalt-pill.is-active .einfalt-pill-count {
	color: color-mix(in srgb, var(--wp--preset--color--accent-5) 78%, transparent);
}

/* Find by name. Big target: this is the control most people will use. */

.einfalt-find {
	margin-top: 1.35rem;
}

.einfalt-find-label {
	display: block;
	margin-bottom: 0.5rem;
	color: var(--wp--preset--color--accent-4);
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.einfalt-find-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.einfalt-find-input {
	flex: 1 1 20rem;
	box-sizing: border-box;
	min-width: 0;
	min-height: 3.25rem;
	padding: 0.5rem 1.1rem;
	border: 2px solid var(--eldri-line);
	border-radius: 999px;
	background: var(--wp--preset--color--accent-5);
	color: inherit;
	font-family: inherit;
	font-size: 1.15rem;
}

.einfalt-find-input::placeholder {
	color: var(--wp--preset--color--accent-4);
}

.einfalt-find-input:focus {
	border-color: var(--wp--preset--color--accent-1);
}

.einfalt-find-submit {
	min-height: 3.25rem;
	padding: 0.5rem 1.5rem;
	border: 0;
	border-radius: 999px;
	background: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--accent-5);
	font-family: inherit;
	font-size: 1.125rem;
	font-weight: 600;
	cursor: pointer;
}

.einfalt-find-submit:hover {
	background: var(--wp--preset--color--contrast);
}

.einfalt-directory-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.35rem 1rem;
	margin: 1.15rem 0 1.5rem;
}

.einfalt-directory-count {
	margin: 0;
	color: var(--wp--preset--color--contrast);
	font-size: 1.1rem;
	font-weight: 600;
}

.einfalt-directory-reset {
	color: var(--wp--preset--color--accent-1);
	font-size: 1.05rem;
	font-weight: 600;
}

.einfalt-directory-empty {
	margin: 0;
	padding: 2.5rem 1.5rem;
	background: var(--wp--preset--color--accent-2);
	border-radius: 0.75rem;
	text-align: center;
}

.einfalt-directory-empty a {
	margin-left: 0.35rem;
	font-weight: 600;
}

/* Cards fill their row. The contact block is already pinned with margin-top:
   auto, so every "Ring" lands on the same line across a row; sized to content
   instead, the ragged bottoms read as gaps torn in the grid. */
.einfalt-directory-grid {
	grid-template-columns: repeat(auto-fill, minmax(min(19.5rem, 100%), 1fr));
	align-items: stretch;
	gap: 1.25rem;
}

.einfalt-deal-card,
.einfalt-club-card {
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.einfalt-deal-card:hover,
.einfalt-club-card:hover {
	transform: translateY(-3px);
	border-color: color-mix(in srgb, var(--wp--preset--color--accent-1) 35%, transparent);
	box-shadow: var(--eldri-shadow);
}

/* Club card: who and where on top, how to reach them pinned below. */

.einfalt-card .einfalt-card-oki {
	margin: 0 0 0.45rem;
	font-size: 0.85rem;
}

.einfalt-club-card h3 {
	margin: 0 0 0.5rem;
	font-size: 1.3rem;
	text-wrap: balance;
}

.einfalt-club-head {
	margin-bottom: 1.15rem;
}

.einfalt-card-contact {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	margin-top: auto;
	padding-top: 1.15rem;
	border-top: 1px solid var(--eldri-line);
}

.einfalt-contact {
	display: flex;
	gap: 0.65rem;
	align-items: center;
	min-height: 2.75rem;
	margin-inline: -0.6rem;
	padding: 0.4rem 0.6rem;
	border-radius: 0.5rem;
	text-decoration: none;
	overflow-wrap: anywhere;
	transition: background-color 0.15s ease;
}

.einfalt-contact:hover {
	background: var(--wp--preset--color--accent-2);
	text-decoration: none;
}

.einfalt-contact-icon {
	flex: 0 0 auto;
}

.einfalt-contact-tel {
	color: var(--wp--preset--color--accent-1);
	font-size: 1.15rem;
}

.einfalt-contact-tel strong {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.einfalt-contact-verb {
	font-weight: 600;
}

.einfalt-contact-mail {
	color: var(--wp--preset--color--accent-4);
	font-size: 1rem;
}

.einfalt-contact-mail:hover {
	color: var(--wp--preset--color--contrast);
}

/* Deal card: name and terms on top, the discount pinned to the corner so
   every title in a row starts on the same line. */

.einfalt-deal-head {
	margin-bottom: 1.15rem;
}

.einfalt-deal-card h3 {
	margin: 0 0 0.4rem;
	padding-right: 3.6rem;
	font-size: 1.3rem;
	text-wrap: balance;
}

.einfalt-pct {
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.85rem;
	height: 1.85rem;
	padding: 0 0.6rem;
	border-radius: 999px;
	background: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--accent-5);
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.01em;
}

.einfalt-card-place,
.einfalt-card-oki {
	color: var(--wp--preset--color--accent-4);
	font-size: 1.05rem;
}

.einfalt-card .einfalt-card-place {
	margin: 0;
	line-height: 1.45;
}

.einfalt-card .einfalt-card-founded {
	margin: 0.4rem 0 0;
	color: var(--wp--preset--color--accent-4);
	font-size: 0.95rem;
}

/* Imported terms range from three words to a full paragraph; clamp them so
   neighbouring cards stay within a line or two of each other. */
.einfalt-deal-line {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	margin: 0.55rem 0 0;
	font-size: 1.1rem;
	line-height: 1.45;
}

/* Eldratænastur: logo tile, the name in words, and where the link lands. */

.einfalt-care-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(21rem, 100%), 1fr));
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.einfalt-care-card {
	display: flex;
	margin: 0;
}

/* Stretched by the grid row, so every "Vitja" lands on the same line. */
.einfalt-care-link {
	display: flex;
	flex-direction: column;
	gap: 1.15rem;
	box-sizing: border-box;
	width: 100%;
	padding: 1.5rem;
	background: var(--wp--preset--color--accent-5);
	border: 1px solid var(--eldri-line);
	border-radius: 0.75rem;
	color: inherit;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.einfalt-care-link:hover,
.einfalt-care-link:focus-visible {
	transform: translateY(-3px);
	border-color: color-mix(in srgb, var(--wp--preset--color--accent-1) 35%, transparent);
	box-shadow: var(--eldri-shadow);
}

/*
 * Every logo is a wide wordmark saved onto an opaque 500px square, so the file
 * is 70-85% empty top and bottom. A square tile would shrink the mark to a
 * smudge, so the tile keeps the wordmark's own proportions and cover-crops the
 * padding away. Two of the eight sit on grey, hence the border: it makes a
 * white file and a grey one read as the same kind of thing.
 *
 * Cover scales by the tile's width, so width alone decides how big the mark
 * reads: a full-width tile renders it ~2.5x larger than an inline one, which
 * is what makes the three- and four-word marks legible. The tallest mark is
 * 29% of its canvas, so anything wider than 3.4:1 would start clipping it.
 */
.einfalt-care-logo-frame {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 22rem;
	aspect-ratio: 3 / 1;
	overflow: hidden;
	border: 1px solid var(--eldri-line);
	border-radius: 0.5rem;
	background: var(--wp--preset--color--accent-5);
}

.einfalt-care-logo {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.einfalt-care-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
}

.einfalt-care-name {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.3;
	overflow-wrap: break-word;
	text-wrap: pretty;
}

.einfalt-care-site {
	display: flex;
	gap: 0.6rem;
	align-items: center;
	margin-top: auto;
	padding-top: 1rem;
	color: var(--wp--preset--color--accent-1);
	font-size: 1.05rem;
}

.einfalt-care-icon {
	flex: 0 0 auto;
}

.einfalt-care-verb {
	font-weight: 600;
}

.einfalt-care-site strong {
	font-weight: 700;
	overflow-wrap: anywhere;
}

.einfalt-care-link:hover .einfalt-care-site strong,
.einfalt-care-link:focus-visible .einfalt-care-site strong {
	text-decoration: underline;
}

/* Single tænasta: no body text to show, so lead with the way out and back. */

.einfalt-care-detail {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.35rem;
	max-width: 34rem;
}

.einfalt-care-logo-frame.is-large {
	width: 14rem;
	height: 5rem;
	border-radius: 0.5rem;
}

.einfalt-care-detail-action,
.einfalt-care-detail-help,
.einfalt-care-detail-back {
	margin: 0;
}

.einfalt-care-detail-link {
	display: inline-flex;
	gap: 0.65rem;
	align-items: center;
	min-height: 3rem;
	padding: 0.55rem 1.4rem;
	border-radius: 999px;
	background: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--accent-5);
	font-size: 1.125rem;
	text-decoration: none;
}

.einfalt-care-detail-link:hover,
.einfalt-care-detail-link:focus-visible {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

@media (max-width: 480px) {
	.einfalt-care-link {
		gap: 1rem;
		padding: 1.25rem;
	}

	.einfalt-care-logo-frame.is-large {
		width: 11rem;
		height: 4rem;
	}
}

@media (min-width: 1101px) {
	/* The header already shows search and the phone at this width. */
	.einfalt-site-header .einfalt-nav-search,
	.einfalt-site-header .einfalt-nav-call {
		display: none !important;
	}

	/*
	 * Where you are, up here too. Drawn with an inset shadow rather than a
	 * border so marking an item does not shift the row it sits in.
	 */
	.einfalt-site-header .is-current > .wp-block-navigation-item__content {
		color: var(--wp--preset--color--accent-1);
		box-shadow: inset 0 -3px 0 var(--wp--preset--color--accent-1);
	}

	.einfalt-site-header .is-section > .wp-block-navigation-item__content {
		box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--wp--preset--color--accent-1) 38%, transparent);
	}

	.einfalt-header-inner {
		flex-wrap: nowrap;
	}

	.einfalt-header-brand {
		display: contents !important;
	}

	.einfalt-site-header .wp-block-navigation {
		flex: 1 1 auto;
	}

	.einfalt-header-tools {
		flex: 0 0 auto;
		justify-content: flex-end;
		margin-left: auto;
	}
}

@media (max-width: 1100px) {
	.einfalt-header-inner {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		align-items: center !important;
		gap: 0.25rem 0.4rem;
	}

	.einfalt-header-brand {
		display: contents !important;
	}

	.einfalt-header-brand .wp-block-site-logo {
		order: 1;
		min-width: 0;
	}

	.einfalt-header-tools {
		order: 2;
		display: flex !important;
		flex: 1 1 auto !important;
		width: auto !important;
		max-width: none !important;
		margin-left: auto !important;
		margin-right: 0 !important;
		justify-content: flex-end;
		gap: 0.2rem;
	}

	/*
	 * No width here. The closed nav already collapses to the button on its own,
	 * because the responsive container below is display:none until it opens —
	 * and the open overlay is the same block, so a 2.75rem clamp with
	 * overflow:hidden clipped its link list too. The menu opened showing only
	 * "Heim"; the other six links were laid out in a row running off the side
	 * of a 44px box.
	 */
	.einfalt-header-brand .wp-block-navigation {
		order: 3;
		flex: 0 0 auto !important;
		margin-left: 0 !important;
	}

	.einfalt-header-tools > * {
		flex: 0 0 auto !important;
	}

	.einfalt-site-header .wp-block-site-logo img {
		width: auto !important;
		max-width: 5.5rem;
		max-height: 1.85rem;
	}

	.einfalt-phone {
		font-size: 1rem;
	}

	.einfalt-site-header .wp-block-navigation__responsive-container-open {
		display: flex !important;
		width: 2.75rem;
		height: 2.75rem;
		padding: 0;
		align-items: center;
		justify-content: center;
		background: transparent;
		color: inherit;
	}

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

	.einfalt-site-header .wp-block-navigation {
		overflow: visible;
	}

	/*
	 * The open menu, on a phone, is the whole site. It gets the room: a real
	 * search field, thumb-sized rows, and the phone number as the one filled
	 * button — for most of the people this site is for, ringing the office is
	 * the likeliest thing they came to do.
	 */
	.einfalt-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog {
		display: flex;
		flex-direction: column;
		min-height: 100%;
		padding: 0.5rem 0 2rem;
	}

	.einfalt-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
		display: block;
		width: 100%;
	}

	/* Clear of the close button, which sits in the same corner. */
	.einfalt-site-header .wp-block-navigation__responsive-container.is-menu-open .einfalt-nav-search {
		margin: 0 0 1.5rem;
		padding-right: 4rem;
	}

	.einfalt-site-header .wp-block-navigation__responsive-container.is-menu-open .einfalt-nav-search .wp-block-search__inside-wrapper {
		border: 2px solid var(--eldri-line);
		border-radius: 999px;
		background: var(--wp--preset--color--accent-5);
		padding: 0;
		overflow: hidden;
	}

	.einfalt-site-header .wp-block-navigation__responsive-container.is-menu-open .einfalt-nav-search .wp-block-search__input {
		min-height: 3.25rem;
		padding: 0.5rem 1.15rem;
		border: 0;
		background: transparent;
		font-family: inherit;
		font-size: 1.15rem;
	}

	.einfalt-site-header .wp-block-navigation__responsive-container.is-menu-open .einfalt-nav-search .wp-block-search__button {
		min-width: 3.25rem;
		min-height: 3.25rem;
		margin: 0;
		padding: 0;
		border: 0;
		background: var(--wp--preset--color--accent-1);
		color: var(--wp--preset--color--accent-5);
	}

	.einfalt-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
		flex-direction: column !important;
		flex-wrap: nowrap !important;
		align-items: stretch !important;
		width: 100% !important;
		max-width: none !important;
		overflow: visible !important;
		gap: 0;
	}

	.einfalt-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
		width: 100%;
		border-bottom: 1px solid var(--eldri-line);
	}

	.einfalt-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:first-child {
		border-top: 1px solid var(--eldri-line);
	}

	.einfalt-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
		display: flex;
		align-items: center;
		width: 100%;
		box-sizing: border-box;
		min-height: 3.75rem;
		padding: 0.6rem 0.5rem 0.6rem 1rem;
		border-left: 4px solid transparent;
		font-size: 1.35rem;
		font-weight: 600;
	}

	/* Where you are. The menu said nothing about this before. */
	.einfalt-site-header .wp-block-navigation__responsive-container.is-menu-open .is-current .wp-block-navigation-item__content {
		border-left-color: var(--wp--preset--color--accent-1);
		background: color-mix(in srgb, var(--wp--preset--color--accent-3) 22%, transparent);
		color: var(--wp--preset--color--accent-1);
		font-weight: 700;
	}

	.einfalt-site-header .wp-block-navigation__responsive-container.is-menu-open .is-section .wp-block-navigation-item__content {
		border-left-color: color-mix(in srgb, var(--wp--preset--color--accent-1) 40%, transparent);
	}

	/*
	 * Ring the office: the one filled action, sitting just off the end of the
	 * list rather than pinned to the bottom of the screen, which on a tall
	 * phone would leave it stranded across an empty gap.
	 */
	.einfalt-site-header .wp-block-navigation__responsive-container.is-menu-open .einfalt-nav-call {
		margin-top: 1.75rem;
		border: 0 !important;
	}

	.einfalt-site-header .wp-block-navigation__responsive-container.is-menu-open .einfalt-nav-call .wp-block-navigation-item__content {
		justify-content: center;
		min-height: 3.5rem;
		padding: 0.6rem 1.5rem;
		border-left: 0;
		border-radius: 999px;
		background: var(--wp--preset--color--accent-1);
		color: var(--wp--preset--color--accent-5);
		font-weight: 700;
	}

	/* 24px was the target before. */
	.einfalt-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 3.25rem;
		height: 3.25rem;
		padding: 0;
		border: 2px solid var(--eldri-line);
		border-radius: 999px;
		background: var(--wp--preset--color--accent-5);
		color: var(--wp--preset--color--contrast);
	}

	.einfalt-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close svg {
		width: 26px;
		height: 26px;
	}
}

@media (max-width: 781px) {
	.einfalt-bladid-grid {
		grid-template-columns: 1fr;
	}

	.einfalt-cover-hero-img {
		width: min(22rem, 88vw);
	}

	.einfalt-news-row .wp-block-post-date {
		flex-basis: 100%;
	}
}

/* Scraped news: files, video, photo grids. */

.einfalt-main .wp-block-post-content .wp-block-file,
.einfalt-main .wp-block-html .wp-block-file,
.einfalt-main .wp-block-file {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
	align-items: center;
	margin: 0 0 1.5rem;
	padding: 1rem 1.15rem;
	background: var(--wp--preset--color--accent-2);
	border: 1px solid var(--eldri-line);
}

.einfalt-main .wp-block-file a:not(.wp-block-file__button) {
	font-weight: 600;
}

.einfalt-main .wp-block-file__button,
.einfalt-main a.wp-block-file__button {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	padding: 0.4rem 1rem;
	background: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--accent-5);
	border-radius: 999px;
	font-weight: 700;
	text-decoration: none;
}

.einfalt-main .wp-block-embed,
.einfalt-main .wp-block-embed__wrapper {
	margin: 0 0 1.5rem;
}

.einfalt-main iframe {
	max-width: 100%;
}

.einfalt-main .wp-block-embed-youtube iframe {
	width: min(22rem, 100%);
	height: auto;
	aspect-ratio: 9 / 16;
}

.happyfiles-gallery ul,
.einfalt-gallery ul {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
	gap: 0.5rem;
	margin: 0 0 1.75rem;
	padding: 0;
	list-style: none;
}

.happyfiles-gallery img,
.einfalt-gallery img {
	width: 100%;
	height: 8.5rem;
	object-fit: cover;
	background: var(--wp--preset--color--accent-2);
}

.einfalt-main .wp-block-post-content figure {
	margin: 0 0 1.5rem;
}

.einfalt-main .wp-block-post-content figcaption {
	margin-top: 0.4rem;
	color: var(--wp--preset--color--accent-4);
	font-size: 1.05rem;
}

@media (min-width: 601px) and (max-width: 900px) {
	.einfalt-bladid-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
