/*
 * HerbWhiteCheese — design v3, following the Π4.1 mockup DOCX.
 * Loaded only on /herbwhitecheese/ when v3 is active. Scoped to .hwc-v3.
 *
 * From the mockup:
 *   Typeface          Open Sans, as on kissas.gr (the mockup itself is set in Georgia)
 *   Headings          bold, #1D4D32
 *   Project name      gold #C9A83A
 *   Kicker            italic, #747474
 *   Partner cards     gold rounded border, text #496F2D
 *   Work packages     gold pills #CD9E25, icon circles, arc, outlined rows
 *   Deliverables      gold bar #B5923B, month/date field #E5E8E0, dashed separators #D0CECE
 * Introduced for accessibility (review):
 *   --gold-text #9A771C   gold used for TEXT (H1, codes) — the mockup gold is below 3:1 on white
 *   --gold-pill #A9862A   pill background behind white text (≥3:1 for large bold text)
 */

/* ================= Tokens & base ================= */
.hwc-v3 {
	--green: #1d4d32;
	--green-dark: #153222;
	--partner: #496f2d;
	--text: #1d211e;
	--muted: #4f5e35;
	--grey: #6b6b6b;
	--gold: #c9a83a;
	--gold-2: #b5923b;
	--gold-text: #9a771c;
	--gold-pill: #a9862a;
	--gold-soft: #e6d6a6;
	--sage: #e5e8e0;
	--line: #e6e6e1;
	--dash: #d0cece;
	--paper: #fff;
	--focus: #1d4d32;
	/* Open Sans — the kissas.gr typeface (Google Fonts, SIL Open Font License). */
	--serif: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	--hwc-header-h: 68px;
	--hwc-banner-space: 120px;
	--indent: 64px;

	margin: 0;
	background: var(--paper);
	color: var(--text);
	font-family: var(--serif);
	font-size: 18px;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
}

/*
 * Space left above a section when jumping to it from the menu:
 * sticky header (68px) + breathing room (+ WordPress admin bar when logged in).
 * Fixed values: the --hwc-header-h variable lives on <body> and is not visible to <html>.
 */
html:has(.hwc-v3) {
	scroll-padding-top: 108px; /* 68 header + 40 */
}

html:has(.hwc-v3.admin-bar) {
	scroll-padding-top: 140px; /* + 32 admin bar */
}

@media (max-width: 782px) {
	html:has(.hwc-v3.admin-bar) {
		scroll-padding-top: 154px; /* + 46 admin bar */
	}
}

@media (max-width: 600px) {
	html:has(.hwc-v3.admin-bar) {
		scroll-padding-top: 108px; /* admin bar scrolls away */
	}
}

@media (prefers-reduced-motion: no-preference) {
	html:has(.hwc-v3) {
		scroll-behavior: smooth;
	}
}

.hwc-v3 *,
.hwc-v3 *::before,
.hwc-v3 *::after {
	box-sizing: border-box;
}

.hwc-v3 p {
	margin: 0 0 1em;
	line-height: inherit;
}

.hwc-v3 p:last-child {
	margin-bottom: 0;
}

.hwc-v3 img {
	display: block;
	max-width: 100%;
	height: auto;
}

.hwc-v3 figure {
	margin: 0;
}

.hwc-v3 address {
	font-style: normal;
}

.hwc-v3 a {
	color: var(--green);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.hwc-v3 a:hover {
	color: var(--green-dark);
	text-decoration-thickness: 2px;
}

.hwc-v3 :focus-visible {
	outline: 2px solid var(--focus);
	outline-offset: 3px;
}

.hwc-v3 sup {
	font-size: 0.5em;
	vertical-align: super;
	line-height: 0;
}

.hwc-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.hwc-v3 .hwc-skip {
	position: absolute;
	left: 16px;
	top: -100px;
	z-index: 1000;
	padding: 12px 18px;
	background: var(--green);
	color: #fff;
	text-decoration: none;
}

.hwc-v3 .hwc-skip:focus {
	top: 12px;
	color: #fff;
}

.hwc-v3 .hwc-main:focus {
	outline: none;
}

.hwc-icon {
	width: 1.2em;
	height: 1.2em;
	flex: none;
}

.v3-wrap {
	width: min(1040px, 100% - 40px);
	margin-inline: auto;
}

/* ================= Header (shared markup) ================= */
.hwc-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #fff;
	border-bottom: 1px solid var(--line);
}

.admin-bar .hwc-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .hwc-header {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar .hwc-header {
		top: 0;
	}
}

.hwc-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	width: min(1200px, 100% - 40px);
	min-height: var(--hwc-header-h);
	margin-inline: auto;
}

.hwc-v3 .hwc-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex: none;
	text-decoration: none;
}

.hwc-brand__mark {
	width: 36px;
	height: auto;
}

.hwc-brand__word {
	font-family: var(--serif);
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--green-dark);
}

.hwc-brand__word span {
	color: #8a8c45;
}

.hwc-nav {
	margin-left: auto;
}

.hwc-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hwc-v3 .hwc-nav a {
	position: relative;
	display: block;
	padding: 10px 9px;
	font-size: 0.9rem;
	color: var(--text);
	text-decoration: none;
}

.hwc-v3 .hwc-nav a::after {
	content: "";
	position: absolute;
	left: 9px;
	right: 9px;
	bottom: 4px;
	height: 2px;
	background: var(--gold);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.25s ease;
}

.hwc-v3 .hwc-nav a:hover,
.hwc-v3 .hwc-nav a[aria-current="true"] {
	color: var(--green);
}

.hwc-v3 .hwc-nav a:hover::after,
.hwc-v3 .hwc-nav a[aria-current="true"]::after {
	transform: scaleX(1);
}

.hwc-header__end {
	display: flex;
	align-items: center;
	gap: 14px;
	flex: none;
}

.hwc-lang {
	display: flex;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hwc-v3 .hwc-lang a {
	display: block;
	padding: 6px 8px;
	font-size: 0.85rem;
	font-weight: 700;
	text-decoration: none;
}

.hwc-v3 .hwc-kissas {
	display: block;
	padding: 2px 0 2px 16px;
	border-left: 1px solid var(--line);
}

.hwc-kissas img {
	width: auto;
	height: 36px;
	max-width: 100px;
	object-fit: contain;
	margin: 0 !important;
	position: static !important;
}

.hwc-v3 .hwc-menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: #fff;
	color: var(--green);
	cursor: pointer;
}

.hwc-menu-toggle__close {
	display: none;
}

.hwc-menu-toggle[aria-expanded="true"] .hwc-menu-toggle__open {
	display: none;
}

.hwc-menu-toggle[aria-expanded="true"] .hwc-menu-toggle__close {
	display: inline-flex;
}

@media (max-width: 1100px) {
	.js .hwc-v3 .hwc-menu-toggle {
		display: inline-flex;
	}

	.hwc-header__end {
		margin-left: auto;
	}

	.js .hwc-v3 .hwc-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		margin: 0;
		padding: 8px 20px 20px;
		background: #fff;
		border-bottom: 1px solid var(--line);
		box-shadow: 0 12px 24px rgba(29, 77, 50, 0.08);
	}

	.js .hwc-v3 .hwc-nav.is-open {
		display: block;
	}

	.js .hwc-v3 .hwc-nav__list {
		flex-direction: column;
	}

	.js .hwc-v3 .hwc-nav a {
		padding: 14px 4px;
		font-size: 1.1rem;
		border-bottom: 1px solid var(--line);
	}

	.js .hwc-v3 .hwc-nav a::after {
		display: none;
	}

	.no-js .hwc-header__inner {
		flex-wrap: wrap;
		padding-block: 10px;
	}

	.no-js .hwc-nav {
		order: 3;
		width: 100%;
		margin: 0;
	}
}

@media (max-width: 480px) {
	.hwc-brand__word {
		font-size: 1rem;
	}

	.hwc-brand__mark {
		width: 30px;
	}

	.hwc-v3 .hwc-kissas {
		padding-left: 10px;
	}

	.hwc-kissas img {
		height: 30px;
		max-width: 76px;
	}
}

/* ================= Top banner (Region of Thessaly) ================= */
/* Shown whole, at its natural proportions (no cropping). Width capped so that on
   wide screens it does not grow taller than the viewport. */
.v3-banner {
	max-width: 1200px;
	margin-inline: auto;
}

.v3-banner img {
	width: 100%;
	height: auto;
}

/* ================= Title block ================= */
.v3-title {
	padding: clamp(40px, 6vw, 72px) 0 clamp(16px, 3vw, 32px);
	text-align: center;
}

.hwc-v3 .v3-title__kicker {
	margin: 0 0 18px;
	font-size: clamp(0.92rem, 0.85rem + 0.3vw, 1.05rem);
	font-style: italic;
	color: var(--grey);
}

.hwc-v3 .v3-title__subtitle {
	max-width: 30em;
	margin: 0 auto 26px;
	font-size: clamp(1.3rem, 1.05rem + 1.1vw, 1.95rem);
	font-weight: 700;
	line-height: 1.35;
	color: var(--green);
	text-wrap: balance;
}

.hwc-v3 .v3-title__name {
	margin: 0;
	font-family: var(--serif);
	font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.005em;
	color: var(--gold-text);
}

.v3-title__mark {
	width: clamp(110px, 12vw, 150px);
	margin: clamp(20px, 3vw, 32px) auto 0;
}

/* ================= Intro + round photo ================= */
.v3-intro {
	padding: clamp(32px, 5vw, 64px) 0 clamp(40px, 6vw, 80px);
}

.v3-intro__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: clamp(32px, 5vw, 64px);
	align-items: center;
}

.v3-intro__text {
	font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
	line-height: 1.95;
	text-align: justify;
	hyphens: auto;
}

.hwc-v3 .v3-intro__photo {
	width: 100%;
	max-width: 420px;
	margin-left: auto;
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	overflow: hidden;
	background: var(--sage);
}

.v3-intro__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 74% 55%;
}

/* ================= Document body ================= */
.v3-doc {
	padding-bottom: clamp(56px, 8vw, 104px);
}

/* Space between sections. The negative scroll margin makes menu jumps land on the
   section TITLE (40px under the header), not on the empty space above it. */
.v3-section {
	--sec-pad: clamp(64px, 7vw, 104px);
	padding-top: var(--sec-pad);
	scroll-margin-top: calc(-1 * var(--sec-pad));
}

/*
 * Tinted bands — soft full-width backgrounds in the project colours, used on a few
 * sections as separators. The band reaches the screen edges via box-shadow +
 * clip-path, which never causes horizontal scrolling.
 */
.v3-section--sage,
.v3-section--cream {
	--band: var(--sage);
	margin-top: var(--sec-pad);
	padding-bottom: var(--sec-pad);
	background: var(--band);
	box-shadow: 0 0 0 100vmax var(--band);
	clip-path: inset(0 -100vmax);
}

.v3-section--cream {
	--band: #f2efe9;
}

/* Cards and rows sit on white so they stand out from the band. */
.v3-section--sage .v3-partner,
.v3-section--cream .v3-deliv__row {
	background: #fff;
}

.v3-section--cream .v3-deliv__when {
	background: var(--sage);
}

.hwc-v3 .v3-h2 {
	margin: 0 0 0.75em;
	font-family: var(--serif);
	font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem);
	font-weight: 700;
	line-height: 1.3;
	color: var(--green);
}

.hwc-v3 .v3-h2--sub {
	margin-top: clamp(36px, 4vw, 52px);
}

.hwc-v3 .v3-h3 {
	margin: 1.4em 0 0.6em;
	font-family: var(--serif);
	font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.3rem);
	font-weight: 700;
	line-height: 1.35;
	color: var(--green);
}

.v3-body > .v3-h3:first-child,
.v3-body > .v3-float + .v3-h3 {
	margin-top: 0;
}

.v3-body {
	margin-left: var(--indent);
	text-align: justify;
	hyphens: auto;
}

.v3-body h2,
.v3-body h3 {
	text-align: left;
}

/* Square bullets */
.v3-squares {
	margin: 0.4em 0 0;
	padding: 0;
	list-style: none;
}

.v3-squares li {
	position: relative;
	margin: 0 0 0.35em;
	padding-left: 2.1em;
}

.v3-squares li::before {
	content: "";
	position: absolute;
	left: 0.75em;
	top: 0.72em;
	width: 7px;
	height: 7px;
	background: var(--green-dark);
}

/* Plain paragraph-style list */
.v3-plain {
	margin: 0;
	padding: 0;
	list-style: none;
}

.v3-plain li {
	margin: 0 0 1em;
}

.v3-pubs li {
	text-align: left;
}

/* ================= Partners ================= */
.v3-partners {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(20px, 3vw, 40px);
	margin: clamp(32px, 4vw, 48px) 0 0 var(--indent);
}

.v3-partner {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 28px clamp(20px, 2.5vw, 32px) 32px;
	border: 3px solid var(--gold);
	border-radius: 48px;
	text-align: center;
	color: var(--partner);
	font-size: 1.05rem;
	line-height: 1.6;
}

.v3-partner__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 112px;
	margin-bottom: 18px;
}

.v3-partner__logo img {
	width: auto;
	max-width: 200px;
	max-height: 112px;
	object-fit: contain;
}

.hwc-v3 .v3-partner__name {
	margin: 0 0 0.9em;
	font-family: var(--serif);
	font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
	font-weight: 700;
	line-height: 1.3;
	color: var(--partner);
}

.hwc-v3 .v3-partner__link {
	margin-top: auto;
	padding-top: 16px;
	font-size: 0.95rem;
}

.hwc-v3 .v3-partner__link a {
	color: var(--partner);
}

/* ================= Work-package diagram ================= */
.hwc-v3 .v3-wpmap {
	margin: clamp(40px, 5vw, 56px) 0 clamp(56px, 7vw, 88px);
}

.hwc-v3 .v3-wpmap__title {
	margin: 0 0 20px;
	padding-left: 300px;
	font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
	font-weight: 700;
	text-align: center;
	color: var(--gold-text);
}

.v3-wpmap__body {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	column-gap: 40px;
	align-items: center;
}

.v3-wpmap__hub {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 240px;
	height: 240px;
	border-radius: 50%;
	background: #f6f5f0;
}

.v3-wpmap__hub img {
	width: 190px;
}

.v3-wpmap__arc {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: visible;
}

.v3-wpmap__list {
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
	/* Arc drawn behind the rows (see .v3-wpmap__list::before). */
}

/* The SVG arc is positioned against the list. */
.v3-wpmap__body {
	position: relative;
}

.v3-wpmap__body > .v3-wpmap__arc {
	top: 0;
	bottom: 0;
	left: calc(240px + 40px - 20px);
	width: 60px;
	height: 100%;
	color: var(--green);
}

.v3-wpmap__row {
	position: relative;
	display: flex;
	align-items: center;
	height: 92px;
}

/* Rows follow the arc (offsets computed for the curve in the SVG). */
.v3-wpmap__row:nth-child(2),
.v3-wpmap__row:nth-child(3) {
	padding-left: 22px;
}

.v3-wpmap__row::before {
	content: "";
	position: relative;
	z-index: 2;
	flex: none;
	width: 18px;
	height: 18px;
	margin-right: -2px;
	border: 3px solid var(--green);
	border-radius: 50%;
	background: #fff;
}

.v3-wpmap__pill {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	flex: none;
	height: 66px;
	padding-left: 26px;
	border-radius: 999px;
	background: var(--gold-pill);
}

.v3-wpmap__code {
	min-width: 64px;
	font-size: 1.55rem;
	font-weight: 700;
	line-height: 1;
	color: #fff;
}

.v3-wpmap__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 66px;
	height: 66px;
	margin-left: 8px;
	border: 3px solid var(--gold-pill);
	border-radius: 50%;
	background: #fff;
	color: var(--muted);
}

.v3-wpmap__icon .hwc-icon {
	width: 32px;
	height: 32px;
	stroke-width: 1.6;
}

.v3-wpmap__text {
	display: flex;
	align-items: center;
	flex: 1;
	min-height: 66px;
	margin-left: -34px;
	padding: 10px 28px 10px 50px;
	border: 2px solid var(--gold-soft);
	border-left: 0;
	border-radius: 0 999px 999px 0;
	background: #fff;
	font-size: 1.05rem;
	line-height: 1.4;
	color: var(--text);
}

/* Detailed work-package descriptions */
.v3-wplist {
	text-align: left;
}

.v3-wplist > .v3-h3:first-child {
	margin-top: 0;
}

/* A little more space between the ΕΕ1–ΕΕ4 descriptions. */
.v3-wplist > .v3-h3 + p ~ .v3-h3,
.v3-wplist > p + .v3-h3 {
	margin-top: 1.9em;
}

/* ================= Deliverables ================= */
.v3-deliv {
	margin: clamp(28px, 4vw, 40px) 0 0 var(--indent);
}

.v3-deliv__group + .v3-deliv__group {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 3px dashed var(--dash);
}

.v3-deliv__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.v3-deliv__row {
	display: grid;
	grid-template-columns: 84px minmax(0, 1fr) 132px;
	gap: 18px;
	align-items: center;
	margin-bottom: 10px;
	padding: 12px 12px 12px 18px;
	border: 1px solid var(--line);
	border-left: 5px solid var(--gold-2);
	border-radius: 2px 8px 8px 2px;
	background: #fff;
}

.v3-deliv__row:last-child {
	margin-bottom: 0;
}

.v3-deliv__code {
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--gold-text);
}

.v3-deliv__title {
	font-size: 1rem;
	line-height: 1.5;
}

.v3-deliv__links {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 20px;
	margin-top: 6px;
}

.hwc-v3 .v3-deliv__file {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 32px;
	font-size: 0.9rem;
	font-weight: 700;
}

.v3-deliv__file .hwc-icon {
	width: 1em;
	height: 1em;
}

.v3-deliv__meta {
	font-weight: 400;
	color: var(--muted);
}

.v3-deliv__when {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 58px;
	padding: 6px 10px;
	border-radius: 8px;
	background: var(--sage);
	line-height: 1.35;
	text-align: center;
}

.v3-deliv__when strong {
	font-size: 1.1rem;
	color: var(--green-dark);
}

.v3-deliv__when time,
.v3-deliv__when span {
	font-size: 0.82rem;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}

/* ================= Dissemination float ================= */
.hwc-v3 .v3-float {
	float: right;
	width: min(320px, 40%);
	margin: -12px 0 16px 36px;
}

.v3-clear {
	clear: both;
}

.v3-section::after {
	content: "";
	display: block;
	clear: both;
}

/* ================= Contact ================= */
.v3-contact .v3-body {
	text-align: left;
	line-height: 1.8;
}

/* ================= Footer (shared markup) ================= */
.hwc-footer {
	--focus: #f2efe9;
	padding: clamp(48px, 6vw, 72px) 0 calc(28px + var(--hwc-banner-space));
	background: var(--green);
	color: #dfe7df;
	font-size: 0.95rem;
	line-height: 1.6;
}

.hwc-footer .hwc-container {
	width: min(1040px, 100% - 40px);
	margin-inline: auto;
}

.hwc-v3 .hwc-footer a {
	color: #fff;
}

.hwc-v3 .hwc-footer a:hover {
	color: var(--gold-soft);
}

.hwc-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr);
	gap: 36px;
}

.hwc-footer__name {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px !important;
}

.hwc-footer__mark {
	width: 44px;
	padding: 4px;
	border-radius: 6px;
	background: #f2efe9;
}

.hwc-footer .hwc-brand__word {
	font-size: 1.25rem;
	color: #fff;
}

.hwc-footer .hwc-brand__word span {
	color: var(--gold-soft);
}

.hwc-footer__lead {
	max-width: 30em;
	line-height: 1.55 !important;
}

.hwc-v3 .hwc-footer__title {
	margin: 0 0 14px;
	font-family: var(--serif);
	font-size: 1rem;
	font-weight: 700;
	color: var(--gold-soft);
}

.hwc-footer__partners {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hwc-footer__partners li {
	display: flex;
	align-items: center;
	gap: 12px;
	line-height: 1.4;
}

.hwc-footer__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 58px;
	height: 44px;
	padding: 5px;
	border-radius: 6px;
	background: #fff;
}

.hwc-footer__logo img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	object-fit: contain;
}

.hwc-footer__contact {
	display: grid;
	gap: 6px;
}

.hwc-footer__bottom {
	margin-top: 40px;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
	font-size: 0.85rem;
	color: #c9d6cc;
}

.hwc-footer__meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	margin-top: 14px !important;
}

/* ================= Fixed funding banner (as the mockup's page footer) ================= */
.hwc-funding-banner {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 90;
	width: min(440px, calc(100% - 40px));
	padding: 10px 16px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(29, 77, 50, 0.14);
}

.hwc-funding-banner img {
	width: 100%;
	height: auto;
}

/* ================= Tablet ================= */
@media (max-width: 960px) {
	.hwc-v3 {
		--indent: 32px;
	}

	.hwc-v3 .v3-wpmap__title {
		padding-left: 0;
	}

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

	.v3-wpmap__hub,
	.v3-wpmap__body > .v3-wpmap__arc {
		display: none;
	}

	.v3-wpmap__row:nth-child(n) {
		padding-left: 0;
	}

	.v3-wpmap__row::before {
		display: none;
	}

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

	.hwc-footer__brand {
		grid-column: 1 / -1;
	}
}

/* ================= Mobile ================= */
@media (max-width: 700px) {
	.hwc-v3 {
		--indent: 0px;
		--hwc-banner-space: 80px;
		font-size: 17px;
	}

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

	.hwc-v3 .v3-intro__photo {
		order: -1;
		max-width: 300px;
		margin: 0 auto;
	}

	.v3-intro__text,
	.v3-body {
		text-align: left;
	}

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

	.v3-partner {
		border-radius: 32px;
	}

	/* Work packages: stacked pill + description */
	.v3-wpmap__row {
		flex-wrap: wrap;
		height: auto;
		margin-bottom: 16px;
	}

	.v3-wpmap__pill {
		height: 54px;
		padding-left: 20px;
	}

	.v3-wpmap__code {
		min-width: 52px;
		font-size: 1.3rem;
	}

	.v3-wpmap__icon {
		width: 54px;
		height: 54px;
	}

	.v3-wpmap__icon .hwc-icon {
		width: 26px;
		height: 26px;
	}

	.v3-wpmap__text {
		flex-basis: 100%;
		min-height: 0;
		margin: 8px 0 0;
		padding: 10px 16px;
		border-left: 2px solid var(--gold-soft);
		border-radius: 16px;
		font-size: 1rem;
	}

	/* Deliverables */
	.v3-deliv__row {
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas:
			"code when"
			"title title";
		gap: 8px 12px;
		padding: 12px 12px 14px 14px;
	}

	.v3-deliv__code {
		grid-area: code;
	}

	.v3-deliv__title {
		grid-area: title;
	}

	.v3-deliv__when {
		grid-area: when;
		flex-direction: row;
		gap: 8px;
		min-height: 0;
		padding: 4px 10px;
	}

	.hwc-v3 .v3-float {
		float: none;
		width: 220px;
		margin: 0 auto 20px;
	}

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

	.hwc-funding-banner {
		left: 0;
		right: 0;
		bottom: 0;
		width: auto;
		padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
		border-width: 1px 0 0;
		border-radius: 12px 12px 0 0;
		box-shadow: 0 -6px 18px rgba(29, 77, 50, 0.12);
	}

	.hwc-funding-banner img {
		max-width: 420px;
		margin-inline: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hwc-v3 *,
	.hwc-v3 *::before,
	.hwc-v3 *::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}

/* ================= Print ================= */
@media print {
	.hwc-header,
	.hwc-skip {
		display: none;
	}

	.hwc-footer {
		padding-bottom: 28px;
	}

	.hwc-funding-banner {
		position: static;
		width: 100%;
		box-shadow: none;
	}
}
