/* ==========================================================================
   Hebrides People 2026 - design layer
   Tokens come from theme.json (var(--wp--preset--...)). This file holds the
   pieces theme.json cannot express: header, footer, motif, cards, states.
   ========================================================================== */

:root {
	--hp-teal: var(--wp--preset--color--contrast, #11464a);
	--hp-teal-deep: var(--wp--preset--color--contrast-deep, #0b3336);
	--hp-orange: var(--wp--preset--color--primary, #e58556);
	--hp-orange-ink: var(--wp--preset--color--primary-ink, #a8491f);
	--hp-sage: var(--wp--preset--color--secondary, #ccd0a4);
	--hp-straw: var(--wp--preset--color--custom-color-1, #e5e5bb);
	--hp-paper: var(--wp--preset--color--tertiary, #f5f3ec);
	--hp-ink: var(--wp--preset--color--ink, #1f2a2b);
	--hp-muted: var(--wp--preset--color--muted, #4a5657);
	--hp-line: var(--wp--preset--color--line, #e1e1e1);
	--hp-on-teal: #d5e0de;
	--hp-radius: 6px;
	--hp-radius-card: 8px;
	--hp-focus: 3px solid var(--hp-teal-deep);
	--hp-print: url("../img/fingerprint.svg");
	--hp-print-size: 360px;
	--hp-shell: 1340px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

::selection {
	background: var(--hp-straw);
	color: var(--hp-teal);
}

a {
	text-underline-offset: 0.18em;
	text-decoration-thickness: 1px;
}

a:hover {
	text-decoration-thickness: 2px;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: var(--hp-focus);
	outline-offset: 3px;
	border-radius: 2px;
}

h1, h2, h3, h4 {
	text-wrap: balance;
}

p {
	text-wrap: pretty;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link.screen-reader-text:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	background: var(--hp-teal);
	color: #fff;
	font-weight: 600;
	padding: 12px 18px;
	border-radius: var(--hp-radius);
	z-index: 100000;
}

hr.wp-block-separator {
	border-top-width: 1px;
	opacity: 1;
}

/* Gaelic: italic Newsreader. Elements only, never <html>, because
   TranslatePress sets lang="gd" on the whole page for the Gaelic site. */
.hp-gd,
.is-style-hp-gaelic,
:not(html, .hp-lang a)[lang|="gd"] {
	font-family: var(--wp--preset--font-family--newsreader);
	font-style: italic;
	font-weight: 400;
}

:where(.is-style-hp-gaelic) {
	font-size: clamp(1.625rem, 1.3rem + 1vw, 2.125rem);
	line-height: 1.1;
	color: var(--hp-teal);
}

/* Focus ring: deep teal on light surfaces, orange on dark ones (both 3:1 or better) */
.has-contrast-background-color,
.has-contrast-deep-background-color,
.hp-foot,
.hp-support,
.wp-block-cover {
	--hp-focus: 3px solid var(--hp-orange);
}

.has-base-background-color,
.has-tertiary-background-color,
.has-custom-color-1-background-color,
.has-custom-color-2-background-color,
.has-secondary-background-color {
	--hp-focus: 3px solid var(--hp-teal-deep);
}

/* --------------------------------------------------------------------------
   Small type helpers
   -------------------------------------------------------------------------- */

.is-style-hp-eyebrow,
.hp-eyebrow {
	font-size: 0.875rem !important;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--hp-orange-ink);
	line-height: 1.4;
}

.has-contrast-background-color .is-style-hp-eyebrow,
.has-contrast-deep-background-color .is-style-hp-eyebrow,
.hp-on-dark .is-style-hp-eyebrow {
	color: var(--hp-straw);
}

.is-style-hp-rule::before,
.hp-rule::before {
	content: "";
	display: block;
	width: 48px;
	height: 4px;
	margin-bottom: 1rem;
	background: var(--hp-orange);
}

.has-text-align-center.is-style-hp-rule::before {
	margin-inline: auto;
}

.hp-lede {
	font-size: clamp(1.125rem, 1rem + 0.4vw, 1.25rem);
}

.hp-measure {
	max-width: 68ch;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.wp-element-button,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 44px;
	box-sizing: border-box;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.wp-block-button__link:focus-visible {
	outline: var(--hp-focus);
	outline-offset: 3px;
}

/* Outline (core style) */
.wp-block-button.is-style-outline > .wp-block-button__link,
.wp-block-button .wp-block-button__link.is-style-outline {
	background: transparent;
	color: var(--hp-teal);
	border: 2px solid currentColor;
	padding-top: calc(0.625rem - 2px);
	padding-bottom: calc(0.625rem - 2px);
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--hp-teal);
	border-color: var(--hp-teal);
	color: #fff;
}

/* Straw, for dark panels */
.wp-block-button.is-style-hp-straw > .wp-block-button__link {
	background: var(--hp-straw);
	color: var(--hp-teal);
}

.wp-block-button.is-style-hp-straw > .wp-block-button__link:hover,
.wp-block-button.is-style-hp-straw > .wp-block-button__link:focus-visible {
	background: #fff;
	color: var(--hp-teal);
}

/* Outline on dark */
.wp-block-button.is-style-hp-ghost-light > .wp-block-button__link {
	background: transparent;
	color: #fff;
	border: 2px solid rgba(255, 255, 255, 0.7);
	padding-top: calc(0.625rem - 2px);
	padding-bottom: calc(0.625rem - 2px);
}

.wp-block-button.is-style-hp-ghost-light > .wp-block-button__link:hover {
	background: #fff;
	color: var(--hp-teal);
	border-color: #fff;
}

/* Arrow on buttons that ask for it */
.hp-arrow .wp-block-button__link::after,
.wp-block-button.hp-arrow > .wp-block-button__link::after {
	content: "";
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* --------------------------------------------------------------------------
   Fingerprint motif
   Whole print, bleeds off one corner (about a quarter to a half shows),
   sits behind content, never under text (the side it bleeds from gets
   extra padding), hidden on narrow screens.
   -------------------------------------------------------------------------- */

[class*="is-style-hp-print-"] {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	--hp-print-colour: color-mix(in srgb, currentColor 13%, transparent);
}

[class*="is-style-hp-print-"]::before {
	content: "";
	position: absolute;
	z-index: -1;
	width: var(--hp-print-size);
	aspect-ratio: 122 / 156;
	background-color: var(--hp-print-colour);
	-webkit-mask: var(--hp-print) center / contain no-repeat;
	mask: var(--hp-print) center / contain no-repeat;
	pointer-events: none;
}

.is-style-hp-print-tr::before {
	top: calc(var(--hp-print-size) * -0.64);
	right: calc(var(--hp-print-size) * -0.5);
}

.is-style-hp-print-br::before {
	bottom: calc(var(--hp-print-size) * -0.64);
	right: calc(var(--hp-print-size) * -0.53);
}

.is-style-hp-print-bl::before {
	bottom: calc(var(--hp-print-size) * -0.64);
	left: calc(var(--hp-print-size) * -0.5);
}

/* Keep text out of the print's corner */
@media (min-width: 900px) {
	.is-style-hp-print-tr,
	.is-style-hp-print-br {
		padding-right: max(var(--wp--style--root--padding-right, 2rem), calc(var(--hp-print-size) * 0.5 + 1.5rem)) !important;
	}

	.is-style-hp-print-bl {
		padding-left: max(var(--wp--style--root--padding-left, 2rem), calc(var(--hp-print-size) * 0.5 + 1.5rem)) !important;
	}

	/* Full-width bands: content is centred, so the print only needs the corner. */
	.alignfull.is-style-hp-print-tr,
	.alignfull.is-style-hp-print-br {
		padding-right: var(--wp--style--root--padding-right) !important;
	}

	.alignfull.is-style-hp-print-bl {
		padding-left: var(--wp--style--root--padding-left) !important;
	}
}

/* Colour of the print on each background */
.has-contrast-background-color[class*="is-style-hp-print-"],
.has-contrast-deep-background-color[class*="is-style-hp-print-"] {
	--hp-print-colour: rgba(229, 229, 187, 0.12);
}

.has-tertiary-background-color[class*="is-style-hp-print-"],
.has-base-background-color[class*="is-style-hp-print-"],
.has-custom-color-2-background-color[class*="is-style-hp-print-"] {
	--hp-print-colour: var(--hp-sage);
}

.has-custom-color-1-background-color[class*="is-style-hp-print-"],
.has-secondary-background-color[class*="is-style-hp-print-"] {
	--hp-print-colour: rgba(17, 70, 74, 0.09);
}

.hp-print-orange[class*="is-style-hp-print-"] {
	--hp-print-colour: rgba(229, 133, 86, 0.32);
}

@media (max-width: 899px) {
	[class*="is-style-hp-print-"]::before {
		display: none;
	}
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.hp-utility {
	font-size: 0.9375rem;
	line-height: 1.4;
}

.hp-utility {
	border-bottom: 1px solid #e6e3d6;
}

.hp-utility a {
	color: var(--hp-teal);
}

.hp-utility a:hover {
	color: var(--hp-teal-deep);
}

.hp-utility .hp-utility-icons {
	gap: 0.5rem 1.25rem;
}

/* Woo mini cart and account icons on the teal bar */
.hp-utility .wc-block-mini-cart__button,
.hp-utility .wc-block-customer-account a {
	color: var(--hp-teal) !important;
	padding: 6px;
	min-width: 32px;
	min-height: 32px;
}

.hp-utility .wc-block-mini-cart__icon,
.hp-utility .wc-block-customer-account__account-icon {
	width: 22px;
	height: 22px;
}

.hp-utility .wc-block-mini-cart__badge {
	background: var(--hp-orange);
	color: var(--hp-teal-deep);
	font-weight: 700;
	border: 0;
}

.hp-search-link a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	text-decoration: none;
}

.hp-search-link a::before {
	content: "";
	width: 20px;
	height: 20px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E") center / contain no-repeat;
}

.hp-header {
	position: relative;
	z-index: 20;
}

.hp-header .hp-logo img {
	height: clamp(64px, 3.5rem + 2.4vw, 92px);
	width: auto;
	display: block;
}

.hp-header .wp-block-navigation {
	gap: 0.25rem 0.375rem;
}

.hp-header .wp-block-navigation .wp-block-navigation-item__content {
	padding: 0.625rem 0.5rem;
	color: var(--hp-teal);
}

/* Hover: a plain underline. The orange bar marks only the section you are in. */
.hp-header .wp-block-navigation .wp-block-navigation-item > .wp-block-navigation-item__content:hover {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.3em;
}

.hp-header .wp-block-navigation__container > .current-menu-item > .wp-block-navigation-item__content,
.hp-header .wp-block-navigation__container > .current-menu-ancestor > .wp-block-navigation-item__content {
	box-shadow: inset 0 -3px 0 var(--hp-orange);
}

/* Submenus */
.hp-header .wp-block-navigation .wp-block-navigation__submenu-container {
	min-width: 260px !important;
	padding: 0.5rem 0;
	border: 1px solid var(--hp-line) !important;
	border-radius: var(--hp-radius-card);
	box-shadow: 0 12px 28px rgba(17, 70, 74, 0.14);
	background: #fff !important;
	font-weight: 500;
}

.hp-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 0.5rem 1.125rem;
	box-shadow: none !important;
}

.hp-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	background: var(--hp-paper);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.25em;
}

/* Nested submenu (Western Isles Genealogy, Stories) */
.hp-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container {
	border-radius: var(--hp-radius-card);
	border-top-width: 1px !important;
}

/* The old "visit-mobile" class on the Visit Us link: no special handling needed now. */
.hp-header .visit-mobile {
	margin: 0;
}

.hp-donate .wp-block-button__link {
	min-height: 44px;
	padding: 0.5rem 1rem;
	min-height: 42px;
	white-space: nowrap;
}

/* Mobile overlay menu */
.hp-header .wp-block-navigation__responsive-container-open,
.hp-header .wp-block-navigation__responsive-container-close {
	width: 48px;
	height: 48px;
	align-items: center;
	justify-content: center;
	border-radius: var(--hp-radius);
	color: var(--hp-teal);
}

@media (max-width: 599px) {
	.hp-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: inline-flex;
	}
}

.hp-header .wp-block-navigation__responsive-container-close {
	display: inline-flex;
}

.hp-header .wp-block-navigation__responsive-container-open {
	border: 2px solid var(--hp-teal);
}

.hp-header .wp-block-navigation__responsive-container.is-menu-open {
	padding: 1.25rem clamp(1rem, 4vw, 2rem) 2rem;
	background: #fff !important;
}

.hp-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	gap: 0.25rem;
	padding-top: 3.5rem;
	align-items: stretch;
}

.hp-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	width: 100%;
}

.hp-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--newsreader);
	font-size: 1.5rem;
	font-weight: 500;
	padding: 0.5rem 0;
	box-shadow: none;
	border-bottom: 1px solid var(--hp-line);
	width: 100%;
}

.hp-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	border: 0 !important;
	box-shadow: none;
	padding: 0.25rem 0 0.75rem 1rem !important;
	min-width: 0 !important;
}

.hp-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 0.375rem 0;
	font-size: 1.0625rem;
}

@media (max-width: 1180px) {
	.hp-header .wp-block-navigation .wp-block-navigation-item__content {
		padding-inline: 0.4rem;
	}

	.hp-header .wp-block-navigation {
		font-size: 1rem;
	}
}

/* --------------------------------------------------------------------------
   Donate modal (Modal Block plugin) - skin only, behaviour untouched
   -------------------------------------------------------------------------- */

.bod-block-popup {
	border-radius: var(--hp-radius-card) !important;
}

.bod-block-popup-overlay {
	background-color: rgba(11, 51, 54, 0.55) !important;
}

.bod-block-popup .wp-block-heading {
	font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem) !important;
	font-weight: 500 !important;
}

.bod-block-title-closer {
	width: 44px;
	height: 44px;
	border-radius: var(--hp-radius);
	color: var(--hp-teal);
}

/* --------------------------------------------------------------------------
   Page header band (page, archive, shop, post titles)
   -------------------------------------------------------------------------- */

.hp-page-head {
	border-bottom: 1px solid #e6e3d6;
}

.hp-page-head .wp-block-post-title,
.hp-page-head .wp-block-query-title,
.hp-page-head h1 {
	margin: 0;
	font-size: clamp(2rem, 1.5rem + 1.6vw, 2.875rem);
	font-weight: 500;
	line-height: 1.05;
	color: var(--hp-teal);
}

.hp-page-head .wp-block-boldblocks-breadcrumb-block,
.hp-crumbs {
	font-size: 0.9375rem;
	color: var(--hp-muted);
}

/* Breadcrumb Block: plain text trail, no pill */
.wp-block-boldblocks-breadcrumb-block {
	background: transparent !important;
	border-radius: 0 !important;
	padding: 0 !important;
	font-family: var(--wp--preset--font-family--signika) !important;
}

.wp-block-boldblocks-breadcrumb-block a {
	color: var(--hp-teal);
	font-weight: 600;
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.is-style-hp-card {
	background-color: var(--hp-paper);
	padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}

.is-style-hp-card > * + * {
	margin-block-start: 1rem;
}

.hp-card-row > .wp-block-column {
	display: flex;
	flex-direction: column;
}

.hp-card-row > .wp-block-column > .wp-block-buttons:last-child {
	margin-top: auto;
	padding-top: 0.5rem;
}

/* Post cards (news, stories, search) */
.hp-post-card {
	background: var(--hp-paper);
	height: 100%;
	display: flex;
	flex-direction: column;
	border-top: 3px solid transparent;
	transition: border-color 0.15s ease;
}

.hp-post-card:hover,
.hp-post-card:focus-within {
	border-top-color: var(--hp-orange);
}

.hp-post-card .wp-block-post-featured-image {
	margin: 0;
}

.hp-post-card .wp-block-post-featured-image img {
	aspect-ratio: 3 / 2;
	object-fit: cover;
	width: 100%;
	height: auto;
}

.hp-post-card .hp-post-card-body {
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
	flex: 1;
}

.hp-post-card .wp-block-post-title {
	font-size: 1.5rem;
	line-height: 1.15;
	margin: 0;
}

.hp-post-card .wp-block-post-title a {
	text-decoration: none;
}

.hp-post-card .wp-block-post-title a:hover {
	text-decoration: underline;
}

/* Make the whole card clickable through the title link */
.hp-post-card {
	position: relative;
}

.hp-post-card .wp-block-post-title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.hp-post-card .wp-block-post-terms a,
.hp-post-card .wp-block-read-more {
	position: relative;
	z-index: 2;
}

.hp-post-card .wp-block-post-excerpt {
	margin: 0;
}

.hp-post-card .wp-block-post-excerpt__more-text {
	display: none;
}

/* Sidebar list (latest news, village histories) */
.hp-side-list .wp-block-post {
	padding: 0.875rem 0;
	border-bottom: 1px solid var(--hp-line);
}

.hp-side-list .wp-block-post:first-child {
	border-top: 1px solid var(--hp-line);
}

.hp-side-list .wp-block-post-title {
	font-size: 1.1875rem;
	line-height: 1.25;
	margin: 0;
}

.hp-side-list .wp-block-post-featured-image img {
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

/* --------------------------------------------------------------------------
   Homepage pieces
   -------------------------------------------------------------------------- */

/* Lineage chips: Beathag Ceit Aonghais Beathaig */
.hp-chips {
	gap: 0.625rem !important;
	align-items: center;
}

.hp-chip {
	background: #fff;
	border: 1px solid var(--hp-sage);
	border-radius: var(--hp-radius);
	padding: 0.625rem 1rem;
	min-width: 110px;
	text-align: center;
	line-height: 1.2;
}

.hp-chip p {
	margin: 0;
}

.hp-chip .hp-gd,
.hp-chip [lang|="gd"] {
	font-size: 1.375rem;
	color: var(--hp-teal);
}

.hp-chip p + p {
	font-size: 0.875rem;
	color: var(--hp-muted);
	margin-top: 0.25rem;
}

.hp-chip-join {
	font-size: 0.875rem;
	color: var(--hp-muted);
	margin: 0;
}

/* St Kilda image band */
.hp-band-image .wp-block-cover__background {
	background: linear-gradient(90deg, rgba(11, 51, 54, 0.92) 0%, rgba(11, 51, 54, 0.72) 45%, rgba(11, 51, 54, 0.15) 100%) !important;
	opacity: 1 !important;
}

@media (max-width: 781px) {
	.hp-band-image .wp-block-cover__background {
		background: rgba(11, 51, 54, 0.78) !important;
	}
}

/* Book cover tilt */
.is-style-hp-book img {
	transform: rotate(-4deg);
	box-shadow: 0 14px 28px rgba(17, 70, 74, 0.28);
}

/* Shop category pills */
.hp-pills {
	gap: 0.5rem !important;
}

.hp-pills p {
	margin: 0;
}

.hp-pills a {
	display: inline-block;
	padding: 0.375rem 0.75rem;
	border: 1px solid var(--hp-sage);
	background: #fff;
	border-radius: 999px;
	font-size: 0.9375rem;
	color: var(--hp-teal);
	text-decoration: none;
}

.hp-pills a:hover {
	border-color: var(--hp-teal);
	text-decoration: underline;
}

/* Split panels: image fills its column */
.hp-split {
	gap: 0 !important;
}

.hp-split > .wp-block-column {
	margin: 0 !important;
}

.hp-split .hp-split-media,
.hp-split .hp-split-media img {
	height: 100%;
	width: 100%;
	min-height: 360px;
	object-fit: cover;
	margin: 0;
	display: block;
}

/* Gallery grid on the homepage */
.hp-gallery-grid img {
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

/* Support band tiles */
.hp-tiles {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
	gap: 1rem;
}

.hp-tile {
	position: relative;
	min-height: 140px;
	box-sizing: border-box;
	padding: 1.25rem;
	border: 1px solid rgba(255, 255, 255, 0.24);
	border-radius: var(--hp-radius-card);
	display: flex !important;
	flex-direction: column;
	justify-content: space-between;
	gap: 1.25rem;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.hp-tile:hover,
.hp-tile:focus-within {
	background-color: rgba(255, 255, 255, 0.08);
	border-color: var(--hp-straw);
}

.hp-tile::before {
	content: "";
	width: 34px;
	height: 34px;
	background: var(--hp-straw);
	-webkit-mask: var(--hp-icon) center / contain no-repeat;
	mask: var(--hp-icon) center / contain no-repeat;
}

.hp-tile p {
	margin: 0;
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 0.75rem;
	font-family: var(--wp--preset--font-family--newsreader);
	font-size: 1.375rem;
	line-height: 1.15;
	font-weight: 500;
}

.hp-tile a {
	color: #fff;
	text-decoration: none;
}

.hp-tile a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.hp-tile p::after {
	content: "";
	width: 20px;
	height: 20px;
	flex: 0 0 auto;
	background: var(--hp-straw);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.hp-tile a:focus-visible {
	outline: none;
}

.hp-tile:has(a:focus-visible) {
	outline: var(--hp-focus);
	outline-offset: 3px;
}

.hp-icon-people { --hp-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.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20c.6-3.6 3.2-5.5 6.5-5.5s5.9 1.9 6.5 5.5'/%3E%3Ccircle cx='17' cy='9' r='2.5'/%3E%3Cpath d='M16 14.6c2.8.2 4.8 1.9 5.5 5.4'/%3E%3C/svg%3E"); }
.hp-icon-book { --hp-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.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5h6a3 3 0 0 1 3 3v12a2 2 0 0 0-2-2H3z'/%3E%3Cpath d='M21 5h-6a3 3 0 0 0-3 3v12a2 2 0 0 1 2-2h7z'/%3E%3C/svg%3E"); }
.hp-icon-search { --hp-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.6' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E"); }
.hp-icon-mail { --hp-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.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E"); }
.hp-icon-pin { --hp-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='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s7-7.8 7-13a7 7 0 0 0-14 0c0 5.2 7 13 7 13z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E"); }
.hp-icon-hash { --hp-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='2' stroke-linecap='round'%3E%3Cpath d='M9 4L7 20M17 4l-2 16M4 9h17M3 15h17'/%3E%3C/svg%3E"); }
.hp-icon-phone { --hp-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='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 3h4l2 5-2.5 1.5a11 11 0 0 0 6 6L16 13l5 2v4a2 2 0 0 1-2 2A17 17 0 0 1 3 5a2 2 0 0 1 2-2z'/%3E%3C/svg%3E"); }

/* Donation card in the support band */
.hp-donate-card {
	border-radius: var(--hp-radius-card);
}

.hp-donate-card .hp-donate-quote {
	font-family: var(--wp--preset--font-family--newsreader);
	font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.625rem);
	line-height: 1.25;
	font-weight: 500;
}

/* Contact list with icons (Find Us) */
.hp-contact-list p {
	display: flex;
	gap: 0.875rem;
	margin: 0;
	padding: 0.875rem 0;
	border-bottom: 1px solid var(--hp-line);
}

.hp-contact-list p:last-of-type {
	border-bottom: 0;
}

.hp-contact-list p::before {
	content: "";
	flex: 0 0 22px;
	height: 22px;
	margin-top: 3px;
	background: var(--hp-teal);
	-webkit-mask: var(--hp-icon) center / contain no-repeat;
	mask: var(--hp-icon) center / contain no-repeat;
}

.hp-contact-list a {
	font-weight: 600;
}

/* Map panel: the map fills the panel */
.hp-map {
	border: 1px solid var(--hp-sage);
	border-radius: var(--hp-radius-card);
	overflow: hidden;
	min-height: 420px;
	display: flex;
	flex-direction: column;
	background: #e6e9d6;
}

.hp-map .wp-block-webfactory-map,
.hp-map iframe {
	flex: 1;
	display: block;
	width: 100%;
	height: 100% !important;
	min-height: 420px;
	border: 0;
}

.hp-map .wp-block-webfactory-map .wp-block-webfactory-map {
	height: 100%;
}

.hp-radius {
	border-radius: var(--hp-radius-card);
}

/* Funders strip */
.hp-funders .isle-logo-block,
.hp-funders [class*="isle-logo-block"] {
	align-items: center;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.hp-foot {
	position: relative;
	font-size: 1rem;
	color: #fff;
}

.hp-foot a {
	color: #fff;
	text-decoration: none;
}

.hp-foot a:hover {
	color: var(--hp-straw);
	text-decoration: underline;
}

.hp-foot .hp-foot-head {
	font-family: var(--wp--preset--font-family--signika);
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--hp-straw);
	margin: 0 0 0.375rem;
}

.hp-foot .wp-block-list.is-style-hp-links,
.is-style-hp-links {
	list-style: none;
	padding-left: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
}

.hp-foot .hp-foot-muted,
.hp-foot .hp-foot-muted p {
	color: var(--hp-on-teal);
}

.hp-foot-base {
	border-top: 1px solid rgba(255, 255, 255, 0.16);
	font-size: 0.875rem;
	color: var(--hp-on-teal);
}

.hp-foot-base p {
	margin: 0;
}

.hp-foot-base .hp-legal a {
	margin-right: 1.125rem;
	display: inline-block;
}

.hp-facebook a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 50%;
	font-size: 0;
}

.hp-facebook a::before {
	content: "";
	width: 20px;
	height: 20px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h-2.5A3.5 3.5 0 0 0 9 6.5V9H6.5v3.5H9V21h3.5v-8.5H15l.5-3.5h-3V7a1 1 0 0 1 1-1H15z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h-2.5A3.5 3.5 0 0 0 9 6.5V9H6.5v3.5H9V21h3.5v-8.5H15l.5-3.5h-3V7a1 1 0 0 1 1-1H15z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.hp-top a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
}

/* Curator.io social feed: keep its own layout, quieten its chrome */
#curator-feed-new-feed-layout {
	min-height: 120px;
}

#curator-feed-new-feed-layout .crt-logo {
	font-size: 0.8125rem;
	color: var(--hp-muted);
}

/* --------------------------------------------------------------------------
   Forms (core, WooCommerce, Profile Builder, WPForms, Cake)
   -------------------------------------------------------------------------- */

:where(input[type="text"], input[type="email"], input[type="search"], input[type="password"], input[type="tel"], input[type="number"], input[type="url"], input[type="date"], select, textarea) {
	font: inherit;
	font-size: 1rem;
	color: var(--hp-ink);
	background-color: #fff;
	border: 1.5px solid #9aa391;
	border-radius: var(--hp-radius);
	padding: 0.625rem 0.875rem;
	min-height: 48px;
	box-sizing: border-box;
	max-width: 100%;
}

:where(textarea) {
	min-height: 140px;
}

:where(input, select, textarea):focus {
	border-color: var(--hp-teal);
	outline: var(--hp-focus);
	outline-offset: 1px;
}

:where(.wp-block-post-content, .hpapp, .wppb-user-forms, .comment-form, .wp-block-search) label {
	font-weight: 600;
}

/* Core search block */
.wp-block-search__inside-wrapper {
	border: 2px solid var(--hp-teal) !important;
	border-radius: var(--hp-radius);
	padding: 0 !important;
	overflow: hidden;
	background: #fff;
}

.wp-block-search__input {
	border: 0 !important;
	min-height: 52px;
	padding-inline: 1rem;
}

.wp-block-search__button {
	margin: 0 !important;
	border-radius: 0 !important;
	min-height: 52px;
}

/* --------------------------------------------------------------------------
   Tables, pagination, misc
   -------------------------------------------------------------------------- */

.wp-block-table table {
	border-collapse: collapse;
}

.wp-block-table th {
	text-align: left;
	background: var(--hp-paper);
	color: var(--hp-teal);
}

.wp-block-table td,
.wp-block-table th {
	border: 1px solid var(--hp-line);
	padding: 0.625rem 0.875rem;
}

.wp-block-query-pagination {
	gap: 0.5rem;
	font-weight: 600;
}

.wp-block-query-pagination-numbers {
	display: flex;
	gap: 0.5rem;
}

.wp-block-query-pagination .page-numbers,
.wp-block-query-pagination-previous,
.wp-block-query-pagination-next {
	min-width: 44px;
	min-height: 44px;
	padding: 0 0.875rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 2px solid var(--hp-sage);
	border-radius: var(--hp-radius);
	text-decoration: none;
	box-sizing: border-box;
}

.wp-block-query-pagination .page-numbers.current {
	background: var(--hp-teal);
	border-color: var(--hp-teal);
	color: #fff;
}

.wp-block-query-pagination .page-numbers.dots {
	border: 0;
}

.wp-block-post-navigation-link a {
	font-weight: 600;
}

/* Images in content: square corners, captions in muted text */
.wp-block-image img {
	border-radius: 0;
}

figcaption.wp-element-caption {
	margin-top: 0.5rem;
}

/* Cover blocks: comfortable minimum padding */
.wp-block-cover {
	padding: clamp(1.5rem, 1rem + 3vw, 3.5rem);
}

/* Old content compatibility: legacy "responsive" helper classes still in page content */
@media (max-width: 781px) {
	.responsive_container_desktop,
	.image_responsive_container {
		display: none !important;
	}

	.responsive_title {
		text-align: left !important;
	}

	.responsive_button_container.is-content-justification-center {
		justify-content: flex-start !important;
	}
}

@media (min-width: 782px) {
	.responsive_container_mobile {
		display: none !important;
	}
}

.underline a,
.resource-titles a {
	text-decoration: none;
}

.underline a:hover,
.resource-titles a:hover {
	text-decoration: underline;
}

/* Galleries: two columns on phones (was one), one on very small screens */
@media (max-width: 600px) {
	.wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image),
	.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
		width: calc(50% - var(--wp--style--unstable-gallery-gap, 16px) / 2);
	}
}

@media (max-width: 400px) {
	.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
		width: 100%;
	}
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* Print */
@media print {
	.hp-utility,
	.hp-header .wp-block-navigation,
	.hp-foot,
	.hp-support,
	#curator-feed-new-feed-layout {
		display: none !important;
	}
}

.hp-header .hp-logo--small img {
	height: 72px;
}

/* --------------------------------------------------------------------------
   Layout fixes found in testing
   -------------------------------------------------------------------------- */

/* Split panels: no column padding from the background, image fills its half */
.wp-block-columns.hp-split.has-background {
	padding: 0;
}

.hp-split > .wp-block-column:has(.hp-split-media) {
	align-self: stretch;
	display: flex;
}

.hp-split .hp-split-media {
	flex: 1;
}

@media (max-width: 781px) {
	.hp-split > .wp-block-column {
		padding: var(--wp--preset--spacing--40) !important;
	}

	.hp-split > .wp-block-column:has(.hp-split-media) {
		padding: 0 !important;
	}

	.hp-split .hp-split-media,
	.hp-split .hp-split-media img {
		min-height: 240px;
	}
}

/* Two cards: equal widths even when one carries the fingerprint padding */
.wp-block-columns.hp-card-row {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
}

.hp-card-row > .wp-block-column {
	margin: 0 !important;
}

/* Tiles sit in a grid, so no flow margins */
.hp-tiles > * {
	margin: 0 !important;
}

/* Lineage: smaller island chain on phones */
@media (max-width: 781px) {
	.hp-lineage-chain img {
		width: 96px !important;
	}
}

/* Long unbroken strings (non-breaking spaces in imported text, URLs) never push the page sideways */
.wp-site-blocks {
	overflow-x: clip;
}

.hp-post-card,
.hp-side-list .wp-block-post,
.wp-block-post-template > li {
	min-width: 0;
	overflow-wrap: anywhere;
}

.hp-post-card > * {
	margin-block: 0 !important;
}

.hp-post-card .hp-post-card-body > * {
	margin-block: 0 !important;
}

/* Woo review form and comment forms: labels above fields */
.comment-form label {
	display: block;
	margin-bottom: 0.25rem;
}

.comment-form .comment-form-cookies-consent label {
	display: inline;
}

/* Images in page content never wider than the screen */
.wp-block-post-content img {
	max-width: 100%;
}

.wp-block-post-content img:not([style*="height"]) {
	height: auto;
}

.wp-block-post-content figure {
	max-width: 100%;
}

/* Old centred images (figure.aligncenter uses display:table, which ignores max-width) */
.wp-block-post-content figure.wp-block-image.aligncenter,
.wp-block-post-content figure.wp-block-image.alignleft,
.wp-block-post-content figure.wp-block-image.alignright {
	display: block;
}

.wp-block-post-content figure.wp-block-image.aligncenter img {
	display: block;
	margin-inline: auto;
}

.wp-block-post-content .wp-block-image > a {
	max-width: 100%;
}


/* --------------------------------------------------------------------------
   Fixes from the first live preview
   -------------------------------------------------------------------------- */

/* Title bands: the orange rule sits above the breadcrumb, not under "Home" */
.hp-page-head .wp-block-boldblocks-breadcrumb-block ~ .hp-rule::before,
.hp-page-head .wp-block-woocommerce-breadcrumbs ~ .hp-rule::before {
	display: none;
}

.hp-page-head:has(.wp-block-boldblocks-breadcrumb-block, .wp-block-woocommerce-breadcrumbs)::before {
	content: "";
	display: block;
	width: 48px;
	height: 4px;
	background: var(--hp-orange);
	margin: 0 0 0.875rem max(0px, calc((100% - var(--wp--style--global--wide-size, 1340px)) / 2));
}

.hp-page-head .wp-block-boldblocks-breadcrumb-block,
.hp-page-head .wp-block-woocommerce-breadcrumbs {
	margin-bottom: 0.25rem;
}

.hp-page-head .wp-block-boldblocks-breadcrumb-block a,
.hp-page-head .wp-block-woocommerce-breadcrumbs a {
	text-decoration: none;
}

.hp-page-head .wp-block-boldblocks-breadcrumb-block a:hover,
.hp-page-head .wp-block-woocommerce-breadcrumbs a:hover {
	text-decoration: underline;
}

/* Links inside headings: no underline until hovered */
:where(h1, h2, h3, h4, h5, h6) a {
	text-decoration: none;
}

:where(h1, h2, h3, h4, h5, h6) a:hover {
	text-decoration: underline;
}

/* WooCommerce store notice: shown as a bar at the top of the page (moved there by assets/js/theme.js) */
/* Store notice (delivery info): a floating bar at the bottom of the screen */
.woocommerce-store-notice,
p.demo_store {
	position: fixed !important;
	top: auto !important;
	bottom: 1rem !important;
	left: 50% !important;
	right: auto !important;
	transform: translateX(-50%);
	z-index: 9990;
	width: max-content !important;
	max-width: calc(100vw - 2rem);
	box-sizing: border-box;
	margin: 0 !important;
	padding: 0.75rem 1.25rem !important;
	border: 0 !important;
	border-radius: var(--hp-radius-card);
	box-shadow: 0 10px 30px rgba(17, 70, 74, 0.25) !important;
	text-align: center;
	font-size: 0.9375rem;
	line-height: 1.45;
}

.woocommerce-store-notice__dismiss-link {
	margin-left: 0.75rem;
	white-space: nowrap;
}

/* No gap between the header, the page and the footer: each section sets its own spacing */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* EN / GD switcher in the top bar */
.hp-lang {
	display: inline-flex;
	border: 1px solid var(--hp-teal);
	border-radius: 4px;
	overflow: hidden;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1;
}

.hp-lang a {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 0 0.6rem;
	color: var(--hp-teal);
	text-decoration: none;
}

.hp-lang a + a {
	border-left: 1px solid var(--hp-teal);
}

.hp-lang a:hover {
	background: #fff;
	text-decoration: underline;
}

.hp-lang a.is-current {
	background: var(--hp-teal);
	color: #fff;
}

.hp-lang a {
	font-family: var(--wp--preset--font-family--signika);
	font-style: normal;
}

/* Top bar on phones: icons only, everything fits */
@media (max-width: 599px) {
	.hp-utility .hp-utility-icons {
		flex-wrap: wrap !important;
		gap: 0.25rem 0.875rem !important;
		justify-content: flex-end;
	}

	.hp-search-link a {
		font-size: 0;
	}

	.hp-search-link a::before {
		width: 22px;
		height: 22px;
	}
}

/* Top bar: every item sits on the same centre line */
.hp-utility .hp-utility-icons > * {
	margin: 0 !important;
}

.hp-utility .hp-utility-icons > p {
	line-height: 1;
}

.hp-utility .hp-utility-icons > p > a {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	line-height: 1;
	text-decoration: none;
}

.hp-utility .hp-utility-icons > p > a:hover {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.hp-utility .hp-lang {
	align-self: center;
}

/* Boxes with a background get the same rounded corners as the cards in the footer.
   Full-width bands stay square. Low specificity, so a radius set in the editor still wins. */
:where(.wp-block-group.has-background:not(.alignfull)),
:where(.wp-block-columns.has-background:not(.alignfull)),
:where(.wp-block-column.has-background),
:where(.wp-block-cover:not(.alignfull)),
:where(.gb-grid-column > .gb-container) {
	border-radius: var(--hp-radius-card);
}

:where(.wp-block-cover:not(.alignfull)) {
	overflow: hidden;
}

/* Boxes set to a 0 corner radius in the editor get rounded corners too.
   Any other radius chosen in the editor still wins. */
:where(.wp-block-group.has-border-color:not(.alignfull)) {
	border-radius: var(--hp-radius-card);
}

.wp-block-group:is(.has-background, .has-border-color):not(.alignfull):is([style*="border-radius:0px"], [style*="border-radius:0;"], [style*="border-radius: 0px"]),
.wp-block-column.has-background:is([style*="border-radius:0px"], [style*="border-radius: 0px"]) {
	border-radius: var(--hp-radius-card) !important;
}

/* News and story cards: rounded like the other boxes */
.hp-post-card {
	border-radius: var(--hp-radius-card);
}

.hp-post-card .wp-block-post-featured-image,
.hp-post-card .wp-block-post-featured-image img {
	border-radius: calc(var(--hp-radius-card) - 3px) calc(var(--hp-radius-card) - 3px) 0 0;
}

/* Submenus open to the right, under their own item. WordPress flips them leftwards
   because the menu is right-aligned. The last two items keep opening leftwards so they stay on screen. */
@media (min-width: 600px) {
	.hp-header .wp-block-navigation.items-justified-right .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-container {
		left: 0;
		right: auto;
	}

	.hp-header .wp-block-navigation.items-justified-right .wp-block-navigation__container > .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container {
		left: 100%;
		right: auto;
	}

	.hp-header .wp-block-navigation.items-justified-right .wp-block-navigation__container > .has-child:nth-last-child(-n+2) > .wp-block-navigation__submenu-container {
		left: auto;
		right: 0;
	}

	.hp-header .wp-block-navigation.items-justified-right .wp-block-navigation__container > .has-child:nth-last-child(-n+2) .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container {
		left: auto;
		right: 100%;
	}
}

/* Page title stays in line with the breadcrumbs on every page (WooCommerce stretches it on account pages) */
.hp-page-head > .wp-block-post-title {
	width: auto !important;
	max-width: var(--wp--style--global--wide-size, 1340px) !important;
	margin-left: auto !important;
	margin-right: auto !important;
	box-sizing: border-box;
}

/* Nested flyouts that would run off the screen open leftwards instead (class added by theme.js) */
.hp-header .wp-block-navigation .wp-block-navigation__submenu-container .has-child.hp-flip > .wp-block-navigation__submenu-container {
	left: auto !important;
	right: 100% !important;
}

/* Desktop: the logo hangs from the top of the page on a white card,
   over the top bar and down into the slider or the page heading. */
@media (min-width: 1280px) {
	.hp-header .hp-logo {
		position: relative;
		width: 196px;
		height: clamp(64px, 3.5rem + 2.4vw, 92px);
		margin: 0;
		z-index: 30;
	}

	.hp-header .hp-logo a {
		position: absolute;
		left: 0;
		bottom: calc(-1rem - 44px);
		display: block;
		box-sizing: border-box;
		width: 196px;
		height: 220px;
		padding: 20px 22px 24px;
		background: #fff;
		border-radius: 0 0 var(--hp-radius-card) var(--hp-radius-card);
		box-shadow: 0 14px 30px rgba(17, 70, 74, 0.16);
		display: flex;
		align-items: flex-end;
		justify-content: center;
	}

	.hp-header .hp-logo img {
		height: auto !important;
		width: 100% !important;
		max-height: 100%;
		object-fit: contain;
	}

	/* Room for the card where it dips into the slider and the page heading */
	.hp-hero-slide__panel {
		padding-top: max(clamp(32px, 4.5vw, 56px), 88px) !important;
	}

	.hp-page-head {
		padding-top: calc(var(--wp--preset--spacing--50) + 48px) !important;
	}
}
