/*
 * Welle Kaarten: soft tinted cards, the look of the home page's Praktische info cards.
 *
 * Titles use a deeper shade of each brand colour. The bright brand colours reach only
 * about 2:1 on the tints; these shades reach at least 3.7:1, which WCAG 2.2 accepts for
 * text of 18.66px bold and up. Body text is #374151 (7.7:1 or more on every tint).
 */

.welle-tone-1 { --welle-tint: #cce9e9; --welle-ink: #007c7a; }
.welle-tone-2 { --welle-tint: #fde8c4; --welle-ink: #b5600a; }
.welle-tone-3 { --welle-tint: #fbd7c6; --welle-ink: #b04a17; }

/* Shared: the number in a white circle. Lists already announce the order, so it is aria-hidden. */
.welle-num {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 999px;
	background: #fff;
	color: var(--welle-ink);
	font-weight: 800;
	font-size: 1.125rem;
	line-height: 1;
}

/* ── Click-through tiles ─────────────────────────────────────────────── */

.welle-tiles {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	margin: 2rem 0;
}
@media (min-width: 640px)  { .welle-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .welle-tiles { grid-template-columns: repeat(3, 1fr); } }

.welle-tiles__cell { display: flex; }

.welle-tiles a.welle-tile,
.welle-tiles div.welle-tile {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	width: 100%;
	padding: 1.5rem 1.5rem 1.25rem;
	border-radius: 1.5rem;
	background: var(--welle-tint);
	color: #374151;
	text-decoration: none;
}
@media (min-width: 640px) {
	.welle-tiles a.welle-tile { min-height: 12.75rem; padding: 1.75rem 1.75rem 1.5rem; }
}

.welle-tile__title {
	display: block;
	font-size: 1.375rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--welle-ink);
}
.welle-tile__text { display: block; line-height: 1.5; }
.welle-tile__note { display: block; font-size: 0.875rem; }

.welle-tile__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	margin-top: auto;
	border-radius: 999px;
	background: #fff;
	color: var(--welle-ink);
	transition: background-color 150ms cubic-bezier(0.23, 1, 0.32, 1), color 150ms cubic-bezier(0.23, 1, 0.32, 1);
}
/* The text keeps a gap above the arrow; the arrow's auto margin pins it to the bottom. */
.welle-tile__text,
.welle-tile__note { margin-bottom: 1rem; }
.welle-tile__text:has(+ .welle-tile__note) { margin-bottom: 0; }

@media (hover: hover) {
	.welle-tiles a.welle-tile:hover .welle-tile__arrow { background: var(--welle-ink); color: #fff; }
}
.welle-tiles a.welle-tile:focus-visible {
	outline: 3px solid var(--welle-ink);
	outline-offset: 3px;
}
.welle-tiles a.welle-tile:focus-visible .welle-tile__arrow { background: var(--welle-ink); color: #fff; }

/* ── Text cards (with an optional icon) ──────────────────────────────── */

.welle-cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
	margin: 1.5rem 0 2rem;
}
@media (min-width: 768px) { .welle-cards { grid-template-columns: repeat(2, 1fr); } }

.welle-card {
	padding: 1.5rem;
	border-radius: 1.5rem;
	background: var(--welle-tint);
	color: #374151;
}
.welle-card__icon { display: inline-flex; margin-bottom: 0.5rem; color: var(--welle-ink); }
.welle-card .welle-card__title {
	margin: 0 0 0.4rem;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--welle-ink);
}
.welle-card .welle-card__text { margin: 0; line-height: 1.55; }

/* ── Pillars: short numbered cards, four per row ─────────────────────── */

ol.welle-pillars {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
	margin: 1.5rem 0 2.5rem;
	padding: 0;
	list-style: none;
}
/* Beats the theme's .entry-content ol margin, without outranking the column rules below. */
.entry-content ol.welle-pillars { margin: 1.5rem 0 2.5rem; padding: 0; }

@media (min-width: 640px)  { ol.welle-pillars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { ol.welle-pillars { grid-template-columns: repeat(4, 1fr); } }

ol.welle-pillars > li.welle-pillar {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	margin: 0;
	padding: 1.25rem;
	border-radius: 1.25rem;
	background: var(--welle-tint);
	list-style: none;
}
.welle-pillar__body { display: block; }
.welle-pillar__title {
	display: block;
	margin-bottom: 0.15rem;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--welle-ink);
}
.welle-pillar__text { display: block; font-size: 0.95rem; line-height: 1.45; color: #374151; }

/* ── Steps: numbered cards in one row on desktop ─────────────────────── */

ol.welle-steps {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
	margin: 1.5rem 0 2rem;
	padding: 0;
	list-style: none;
}
/* Beats the theme's .entry-content ol margin, without outranking the column rules below. */
.entry-content ol.welle-steps { margin: 1.5rem 0 2rem; padding: 0; }

@media (min-width: 640px)  { ol.welle-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { ol.welle-steps { grid-template-columns: repeat(4, 1fr); } }

ol.welle-steps > li.welle-step {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin: 0;
	padding: 1.5rem 1.5rem 1.75rem;
	border-radius: 1.5rem;
	background: var(--welle-tint);
	color: #374151;
	list-style: none;
}
.welle-step .welle-num { width: 3rem; height: 3rem; font-size: 1.25rem; }
.welle-step__title { font-size: 1.25rem; font-weight: 700; line-height: 1.3; color: var(--welle-ink); }
.welle-step__text { line-height: 1.5; }

/* ── Photos (1.1.0) ──────────────────────────────────────────────────── */

/* Overview tiles with a photo on top: four per row on desktop. */
@media (min-width: 1024px) { .welle-tiles--4 { grid-template-columns: repeat(4, 1fr); } }

.welle-tiles a.welle-tile--photo,
.welle-tiles div.welle-tile--photo {
	gap: 0;
	min-height: 0;
	padding: 0;
	overflow: hidden;
}
.welle-tiles a.welle-tile--photo .welle-tile__img,
.welle-tiles div.welle-tile--photo .welle-tile__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	/* The card clips its own corners; the theme's rounded .entry-content img would round the photo's bottom edge. */
	border-radius: 0;
}
/* Grid cells may shrink below a long word ("Kindergemeenteraad"), which then hyphenates. */
.welle-tiles__cell { min-width: 0; }
.welle-tiles--4 .welle-tile__title { font-size: 1.2rem; hyphens: auto; overflow-wrap: break-word; }

.welle-tile__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1.25rem 1.5rem 1.25rem;
}

/* One large photo at the top of a page. A fixed 3:2 frame keeps pages alike; object-position steers the crop. */
.welle-photo { margin: 0 0 2rem; }
.welle-photo img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: 1.5rem;
}
/* On laptops and desktops a 3:2 photo filled the screen and pushed the text below the fold; a wide banner (about 420 px high) keeps every face whole. */
@media (min-width: 1024px) { .welle-photo img { aspect-ratio: 21 / 8; } }

/* Photo grid: same-size tiles; each opens the whole, uncropped photo. Not .welle-gallery: the theme uses that name. */
.welle-photo-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
	margin: 2rem 0;
}
@media (min-width: 768px) { .welle-photo-grid { grid-template-columns: repeat(3, 1fr); } }

.welle-photo-grid__item {
	display: block;
	border-radius: 1rem;
	overflow: hidden;
}
.welle-photo-grid__item img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}
.welle-photo-grid__item:focus-visible {
	outline: 3px solid var(--color-teal, #007c7a);
	outline-offset: 3px;
}

/* ── Banner and footer (1.1.1) ──────────────────────────────────────── */

/* The headline sits top-left on bright photos; a shade behind it keeps white text readable on any banner photo. */
.welle-hero-slider .sow-slider-image::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, rgb(0 0 0 / 0.55) 0%, rgb(0 0 0 / 0.3) 40%, rgb(0 0 0 / 0) 70%);
	pointer-events: none;
}
/* On phones the headline spans the full width, so the shade runs top-down instead. */
@media (max-width: 768px) {
	.welle-hero-slider .sow-slider-image::before {
		background: linear-gradient(180deg, rgb(0 0 0 / 0.55) 0%, rgb(0 0 0 / 0.35) 60%, rgb(0 0 0 / 0.15) 100%);
	}
}
.welle-hero-slider .sow-slider-image-container {
	position: relative;
	z-index: 1;
}

/* The trail already shows under the header; a second copy in the footer only repeats it. */
.site-footer .breadcrumbs { display: none; }

/* ── Footer contact (1.1.3) ─────────────────────────────────────────── */

/* On phones every contact row is centred, the address included. */
@media (max-width: 767px) {
	.footer-contact ul { align-items: center; }
}

/* ── Tiles without a link (1.2.0) ───────────────────────────────────── */

/* A tile that only informs: no arrow, so the text needs no gap below it. */
.welle-tiles div.welle-tile .welle-tile__text { margin-bottom: 0; }
.welle-tiles div.welle-tile .welle-tile__text a { color: var(--welle-ink); font-weight: 700; }

/* Four photos in a row on desktop, for a short set under a page's tiles. */
@media (min-width: 1024px) { .welle-photo-grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* ── Praktische info boxes (1.3.0) ──────────────────────────────────── */

/*
 * The three home page boxes (Schooluren, Kalender, Contact) sit in a row that
 * SiteOrigin aligns to the top, so each box is as tall as its own text. Stretch
 * the row and let every box fill its cell, so all three end on one line.
 */
/* The cells' parent is .panel-grid, or .panel-row-style when the row has its own style. */
:is(.panel-grid, .panel-row-style):has(> .panel-grid-cell > .welle-info-card) { align-items: stretch !important; }
.panel-grid-cell:has(> .welle-info-card) { display: flex; flex-direction: column; }
.panel-grid-cell > .welle-info-card { flex: 1; }

/* ── Chapters (1.4.0): VBS in actie ─────────────────────────────────── */

/*
 * Activities grouped in chapters. A tinted panel opens each chapter; equal cards follow:
 * photo, title, text, and any extra photos behind a "+N foto's" toggle.
 * Small text on a tint needs 4.5:1, which the tile inks (3.7:1) miss, so it uses a deeper ink.
 */
.welle-tone-1 { --welle-ink-small: #006664; }
.welle-tone-2 { --welle-ink-small: #8a4a08; }
.welle-tone-3 { --welle-ink-small: #9a3f12; }

.welle-chapter-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.25rem 0 0; }
.entry-content .welle-chapter-nav a {
	display: inline-flex;
	align-items: center;
	min-height: 2.25rem;
	padding: 0 1rem;
	border-radius: 999px;
	background: var(--welle-tint);
	color: var(--welle-ink-small);
	font-weight: 700;
	text-decoration: none;
}
.entry-content .welle-chapter-nav a:hover { text-decoration: underline; }

.welle-chapters { display: grid; gap: 2.5rem; margin: 2.5rem 0 1rem; }

.welle-chapter {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
	/* An anchor link (/in-actie/#inspraak) lands below the sticky header. */
	scroll-margin-top: 6rem;
}
@media (min-width: 640px) { .welle-chapter { grid-template-columns: repeat(2, 1fr); } .welle-chapter__intro { grid-column: 1 / -1; } }
@media (min-width: 1024px) {
	.welle-chapter { grid-template-columns: repeat(3, 1fr); }
	.welle-chapter__intro { grid-column: auto; }
	/* Four cards sit two by two beside a panel that spans both rows. */
	.welle-chapter--four .welle-chapter__intro { grid-row: span 2; }
}

.welle-chapter__intro {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	padding: 1.6rem;
	border-radius: 1.5rem;
	background: var(--welle-tint);
	color: #374151;
}
.entry-content .welle-chapter__title { margin: 0; color: var(--welle-ink); }
.welle-chapter__intro p { margin: 0; }
.welle-chapter__intro .welle-chapter__count { margin-top: auto; font-size: 0.875rem; font-weight: 700; color: var(--welle-ink-small); }

.welle-activity {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	border-radius: 1.5rem;
	/* Each card takes the colour of its chapter, so a chapter reads as one coloured group. */
	background: var(--welle-tint);
	/* An old subpage address (/in-actie/skiklassen/) jumps here. */
	scroll-margin-top: 6rem;
}
.welle-activity__media { margin: 0; }
.entry-content .welle-activity__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	/* The card clips its own corners. */
	border-radius: 0;
}
.welle-activity__body { display: grid; gap: 0.5rem; padding: 1.15rem 1.35rem 1.35rem; }
.entry-content .welle-activity__title { margin: 0; font-size: 1.25rem; color: var(--welle-ink); hyphens: auto; overflow-wrap: break-word; }
.welle-activity__body p { color: #374151; }
.welle-activity__body p { margin: 0; line-height: 1.6; }

.welle-activity__more summary {
	display: inline-flex;
	align-items: center;
	min-height: 2rem;
	padding: 0 0.85rem;
	border-radius: 999px;
	/* White on the tinted card; the chapter's small ink is 6:1 or more on white. */
	background: #ffffff;
	color: var(--welle-ink-small);
	font-size: 0.875rem;
	font-weight: 800;
	cursor: pointer;
	list-style: none;
}
.welle-activity__more summary::-webkit-details-marker { display: none; }
.welle-activity__more summary:focus-visible { outline: 3px solid #007c7a; outline-offset: 2px; }
.welle-activity__more .welle-photo-grid { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin: 0.75rem 0 0; }
.welle-activity__more .welle-photo-grid__item { border-radius: 0.75rem; }

/* ── Menu: hover on the active item (1.3.0) ─────────────────────────── */

/*
 * The active item is a teal pill with white text (!important in the theme). The
 * general hover rule swapped in a 10% teal tint, leaving white text on near-white.
 * On hover and keyboard focus the pill now darkens instead (white on #007c7a: 5.2:1).
 */
.site-header .desktop-nav .menu :is(.current-menu-item, .current_page_item):not(.current-menu-ancestor) > a:is(:hover, :focus-visible) {
	background-color: #007c7a;
}

/* ── Banner: second button (1.3.2) ──────────────────────────────────── */

/*
 * The theme paints every banner button orange with !important. A second button on a
 * slide ("Kom kennismaken") is the quieter choice: white with teal text (5.2:1), so
 * the two never compete. Same shape, size and lift as the first. Each button sits in
 * its own Button widget wrapper, so the count is on the wrapper, not on .ow-button-base.
 */
.welle-hero-slider .sow-hero-buttons > :nth-child(n + 2) a[class*="btn"] {
	background-color: #ffffff !important;
	color: #007c7a !important;
}
.welle-hero-slider .sow-hero-buttons > :nth-child(n + 2) a[class*="btn"]:is(:hover, :focus-visible) {
	background-color: #e6f4f4 !important;
	color: #007c7a !important;
}

/* ── Buttons in page text (1.3.2) ───────────────────────────────────── */

/*
 * wpautop turns line breaks inside a button link into <br>, which doubles the pill's
 * height and lifts the arrow above the text (the Facebook button on VBS in beeld).
 */
.entry-content a.btn > br { display: none; }

/* ── Lightbox (1.5.0) ───────────────────────────────────────────────── */

/*
 * Photo grids open their photos here (assets/lightbox.js). White buttons with teal icons on a
 * near-black backdrop: 48 px targets, and the photo is never covered on desktop.
 */
.welle-lightbox {
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 4.5rem max(16px, env(safe-area-inset-right, 0px)) 6rem max(16px, env(safe-area-inset-left, 0px));
	border: 0;
	background: transparent;
	color: #ffffff;
	font-family: inherit;
}
.welle-lightbox[open] {
	display: grid;
	place-items: center;
	/* Opening is rare and the photo is the point: a short fade, no movement. */
	animation: welle-lightbox-in 200ms cubic-bezier(0.23, 1, 0.32, 1);
}
.welle-lightbox::backdrop { background: rgb(8 24 24 / 92%); }
@keyframes welle-lightbox-in { from { opacity: 0; } }

html:has(.welle-lightbox[open]) { overflow: hidden; }

.welle-lightbox__figure { display: grid; gap: 0.75rem; justify-items: center; margin: 0; max-width: 100%; }
.welle-lightbox__img {
	display: block;
	max-width: min(100%, 75rem);
	max-height: calc(100dvh - 12rem);
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 1rem;
	/* A swipe should step through photos, not drag the image file. */
	user-select: none;
	-webkit-user-drag: none;
}
.welle-lightbox__caption { max-width: 60ch; text-align: center; font-size: 0.95rem; line-height: 1.5; color: #e6f4f4; }
.welle-lightbox__caption:empty { display: none; }

.welle-lightbox__count {
	position: absolute;
	top: max(1.25rem, env(safe-area-inset-top, 0px));
	left: max(16px, env(safe-area-inset-left, 0px));
	margin: 0;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.welle-lightbox__btn {
	position: absolute;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #ffffff;
	color: #007c7a;
	cursor: pointer;
	box-shadow: 0 2px 10px rgb(0 0 0 / 25%);
}
.welle-lightbox__btn[hidden] { display: none; }
.welle-lightbox__btn:hover { background: #e6f4f4; }
.welle-lightbox__btn:focus-visible { outline: 3px solid #ffffff; outline-offset: 3px; }

.welle-lightbox__close { top: max(0.75rem, env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); }

/* Phones: both arrows sit in the thumb zone under the photo. Desktop: beside the photo, centred. */
.welle-lightbox__prev,
.welle-lightbox__next { bottom: max(1.25rem, env(safe-area-inset-bottom, 0px)); }
.welle-lightbox__prev { left: calc(50% - 3.75rem); }
.welle-lightbox__next { right: calc(50% - 3.75rem); }
@media (min-width: 768px) {
	.welle-lightbox { padding-inline: 6rem; padding-bottom: 4.5rem; }
	.welle-lightbox__prev,
	.welle-lightbox__next { top: 50%; bottom: auto; transform: translateY(-50%); }
	.welle-lightbox__prev { left: 1.5rem; }
	.welle-lightbox__next { right: 1.5rem; }
}

/* ── VBS in beeld and Nieuw op school (1.6.0) ───────────────────────── */

/* Phones show two columns: an odd last photo spans both, wide, so it never sits alone. */
@media (max-width: 767px) {
	.welle-photo-grid > :last-child:nth-child(odd) { grid-column: span 2; }
	.welle-photo-grid > :last-child:nth-child(odd) img { aspect-ratio: 16 / 9; }
}

/* Full width, like the intro text on every other page; a narrower lead looked cut off above the full-width photo grid. */
.welle-lead { font-size: 1.15rem; }

.welle-fb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.75rem 1.25rem;
	margin: 1rem 0 3rem;
	text-align: center;
}
.welle-fb p { margin: 0; color: #3d4a4a; }
.welle-fb br { display: none; }

.welle-highlights {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	margin: 1rem 0 2rem;
}
.welle-highlight { background: #ffffff; border-radius: 1rem; padding: 1.25rem 1.5rem 1.5rem; box-shadow: 0 1px 2px rgb(0 0 0 / 4%); }
.welle-highlight h3 { margin: 0 0 0.4rem; font-size: 1.15rem; color: #1a1a1a; }
.welle-highlight p { margin: 0; font-size: 0.95rem; }

/* FAQ: native details/summary, so keyboard and screen readers work without script. */
.welle-faq-group { margin: 2.5rem 0 0; }
.welle-faq-group h2 { margin-bottom: 0.75rem; }
.welle-faq { background: #ffffff; border-radius: 1rem; margin: 0 0 0.75rem; box-shadow: 0 1px 2px rgb(0 0 0 / 4%); }
.welle-faq summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 3.25rem;
	padding: 0.9rem 1.25rem;
	font-weight: 700;
	font-size: 1.05rem;
}
.welle-faq summary::-webkit-details-marker { display: none; }
.welle-faq summary::after {
	content: "";
	flex: none;
	width: 0.6rem;
	height: 0.6rem;
	border-right: 2.5px solid #007c7a;
	border-bottom: 2.5px solid #007c7a;
	transform: rotate(45deg) translateY(-2px);
}
.welle-faq[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.welle-faq summary:focus-visible { outline: 3px solid #007c7a; outline-offset: 2px; border-radius: 1rem; }
.welle-faq__answer { padding: 0 1.25rem 1.1rem; }
.welle-faq__answer p { margin: 0 0 0.5rem; }
.welle-faq-note { font-size: 0.95rem; color: #3d4a4a; margin-top: 2.5rem; }

/* ── Standard SiteOrigin widgets (1.7.0) ─────────────────────────────── */

/*
 * The pages are SiteOrigin layouts of standard widgets, so the school edits fields instead of HTML.
 * A Welle class on the widget (Widget styles > Attributes > Widget class) gives it the look the
 * hand-written blocks had. The rules below restyle the widgets' own markup. They start with
 * "body … .panel-widget-style" because each widget's own CSS loads later with equal weight.
 */

/* The theme stretches each widget to its column's height, for equal cards side by side. Where a
   column stacks several widgets, as on the text pages, each would take the whole column's height. */
.panel-grid-cell > .so-panel:not(:only-child) { height: auto; }

/* On the converted pages (row class welle-page-layout) the content's own margins space the widgets, as
   on the hand-written pages; the builder's bottom margin per widget would add to them. */
.welle-page-layout .panel-grid-cell > .so-panel { margin-bottom: 0 !important; }
/* Nothing floats in these widgets, so the builder's clearfix can go: with it, a bottom margin stays
   inside its widget instead of collapsing with the next one, and the gaps grow. */
.welle-page-layout .so-panel::before,
.welle-page-layout .so-panel::after { content: none !important; }

/* Editor widget, class welle-subheading: the short line under the page title. */
body .welle-subheading.panel-widget-style p { font-size: 1.35rem; font-weight: 700; line-height: 1.4; margin: 0 0 1.75rem; }

/* Editor widget, class welle-closing: the one-line conclusion, with an orange bar. */
body .welle-closing.panel-widget-style p {
	margin: 2rem 0 1.25rem;
	padding: 1rem 1.25rem;
	border-left: 6px solid var(--color-orange);
	background: #fff;
	border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
	font-weight: 700;
	font-size: 1.15rem;
}

/* Editor widget, class welle-photo-placeholder: where a photo still has to come. */
.welle-photo-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 14rem;
	margin: 0 0 2rem;
	padding: 1.5rem;
	background: var(--color-muted);
	border: 2px dashed #8fb8b6;
	border-radius: var(--radius-xl);
	text-align: center;
	color: #3d4a4a;
}
body .welle-photo-placeholder.panel-widget-style p { margin: 0; }
.welle-photo-placeholder p + p { font-size: 0.9rem; }

/* Image widget, class welle-photo: the large photo; .welle-photo img above sets its frame. */
.welle-photo .sow-image-container { display: block; }

/* Features widget, class welle-tiles: each feature a tinted tile, the whole tile one link. The class
   sits on the widget's wrapper, which the older .welle-tiles rule would turn into a grid itself. */
.welle-tiles.panel-widget-style { display: block; margin: 2rem 0; }
body .welle-tiles.panel-widget-style .sow-features-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
@media (min-width: 640px)  { body .welle-tiles.panel-widget-style .sow-features-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { body .welle-tiles.panel-widget-style .sow-features-list { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { body .welle-tiles--4.panel-widget-style .sow-features-list { grid-template-columns: repeat(4, 1fr); } }

/* Tile colours: automatic in turn, unless the tile's Kleur field sets a welle-tone class. */
body .welle-tiles.panel-widget-style .sow-features-feature:nth-child(3n+1):not([class*="welle-tone-"]),
body .welle-tiles.panel-widget-style .sow-features-feature.welle-tone-1 { --welle-tint: #cce9e9; --welle-ink: #007c7a; --welle-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23007c7a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E"); }
body .welle-tiles.panel-widget-style .sow-features-feature:nth-child(3n+2):not([class*="welle-tone-"]),
body .welle-tiles.panel-widget-style .sow-features-feature.welle-tone-2 { --welle-tint: #fde8c4; --welle-ink: #b5600a; --welle-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b5600a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E"); }
body .welle-tiles.panel-widget-style .sow-features-feature:nth-child(3n):not([class*="welle-tone-"]),
body .welle-tiles.panel-widget-style .sow-features-feature.welle-tone-3 { --welle-tint: #fbd7c6; --welle-ink: #b04a17; --welle-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b04a17' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E"); }

/* The widget sets each feature's width inline for its own float layout; the grid takes over. */
body .welle-tiles.panel-widget-style .sow-features-list .sow-features-feature {
	position: relative;
	width: auto !important;
	min-width: 0;
	margin: 0;
	padding: 1.5rem 1.5rem 1.25rem;
	border-radius: 1.5rem;
	background: var(--welle-tint);
	color: #374151;
	text-align: left !important; /* the widget centres top-icon features on phones */
	overflow: hidden;
}
@media (min-width: 640px) {
	/* Only a tile that links somewhere gets the taller size, with room for its arrow. */
	body .welle-tiles.panel-widget-style .sow-features-list .sow-features-feature:has(.sow-features-feature-linked-column) { min-height: 12.75rem; padding: 1.75rem 1.75rem 1.5rem; }
}
body .welle-tiles.panel-widget-style .sow-features-feature-right-left-container { flex-direction: column !important; height: 100%; }
body .welle-tiles.panel-widget-style .sow-features-feature .textwidget { display: flex; flex-direction: column; flex: 1; }

/* No icon chosen: no empty box above the title. */
body .welle-tiles.panel-widget-style .sow-icon-container:not(:has(*)) { display: none; }
/* A photo as the icon: full width on top of the tile, like the photo tiles. */
body .welle-tiles.panel-widget-style .sow-icon-container:has(*) { margin: -1.75rem -1.75rem 1rem !important; }
body .welle-tiles.panel-widget-style .sow-icon-container .sow-icon-image {
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 4 / 3;
	background-size: cover !important;
	background-position: center !important;
}

body .welle-tiles.panel-widget-style .sow-features-feature .sow-features-feature-title {
	margin: 0 0 0.5rem;
	font-size: 1.375rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--welle-ink);
}
body .welle-tiles--4.panel-widget-style .sow-features-feature .sow-features-feature-title { font-size: 1.2rem; hyphens: auto; overflow-wrap: break-word; }
/* 1.5rem above the arrow: the original's 1rem margin plus its 0.5rem flex gap. */
body .welle-tiles.panel-widget-style .sow-features-feature .sow-features-feature-text { margin: 0 0 1.5rem; line-height: 1.5; color: #374151; }
/* A tile without a link has no arrow below its text, so no gap either. */
body .welle-tiles.panel-widget-style .sow-features-feature:not(:has(.sow-features-feature-linked-column)) .sow-features-feature-text { margin-bottom: 0; }
body .welle-tiles.panel-widget-style .sow-features-feature .sow-features-feature-text p { margin: 0; }
/* Extra photos of one tile sit under its text, so they read as part of that tile and not of the whole page. */
body .welle-tiles.panel-widget-style .welle-tile-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-top: 1rem; }
body .welle-tiles.panel-widget-style .welle-tile-photos img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 0.75rem; }

/* The read-more text names the link for screen readers only; the tile shows the arrow instead. */
body .welle-tiles.panel-widget-style .sow-features-feature .sow-more-text { display: none; }

/* The arrow in a white circle, pinned to the bottom of the tile, only on tiles that link. */
body .welle-tiles.panel-widget-style .sow-features-feature:has(.sow-features-feature-linked-column) .textwidget::after {
	content: "";
	display: block;
	width: 2.5rem;
	height: 2.5rem;
	margin-top: auto;
	border-radius: 999px;
	background: #fff var(--welle-arrow) center / 18px no-repeat;
	transition: background-color 150ms cubic-bezier(0.23, 1, 0.32, 1);
}
@media (hover: hover) {
	body .welle-tiles.panel-widget-style .sow-features-feature:hover .textwidget::after { background-color: var(--welle-ink); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E"); }
}
body .welle-tiles.panel-widget-style .sow-features-feature:focus-within .textwidget::after { background-color: var(--welle-ink); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E"); }

/* The link covers the whole tile; its outline marks the tile for keyboard users. SiteOrigin lifts the
   title and text to z-index 1, so the link sits at 2 or they would swallow the click. */
body .welle-tiles.panel-widget-style .sow-features-feature-linked-column {
	position: absolute;
	inset: 0;
	z-index: 2;
	border-radius: inherit;
}
body .welle-tiles.panel-widget-style .sow-features-feature-linked-column:focus-visible {
	outline: 3px solid var(--welle-ink);
	outline-offset: -3px;
}


/* The widget sizes the icon box from its icon-size setting and lays the image over it; here the image
   (a photo or an icon) sets the box's size itself. */
body :is(.welle-tiles, .welle-cards, .welle-highlights).panel-widget-style .sow-features-feature .sow-icon-container:has(*) { height: auto !important; font-size: 1rem; }
body :is(.welle-tiles, .welle-cards, .welle-highlights).panel-widget-style .sow-features-feature .sow-icon-container .sow-icon-image { position: static !important; display: block !important; }

/* Tiles with a photo: the photo fills the top edge to edge, the text sits below it. */
body .welle-tiles.panel-widget-style .sow-features-list .sow-features-feature:has(.sow-icon-image) { padding: 0; min-height: 0; }
body .welle-tiles.panel-widget-style .sow-features-feature:has(.sow-icon-image) .sow-icon-container { margin: 0 !important; width: 100%; }
body .welle-tiles.panel-widget-style .sow-features-feature:has(.sow-icon-image) .textwidget { padding: 1.25rem 1.5rem; }

/* ── The other Features lists share the grid reset ── */

/* Each class sits on the widget's wrapper, which the older rule of the same name would style itself. */
:is(.welle-cards, .welle-highlights, .welle-photo-grid, .welle-faq).panel-widget-style {
	display: block;
	padding: 0;
	background: none;
	box-shadow: none;
	border-radius: 0;
}

body :is(.welle-cards, .welle-pillars, .welle-steps, .welle-highlights).panel-widget-style .sow-features-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
	margin: 1.5rem 0 2rem;
	padding: 0;
	list-style: none;
	counter-reset: welle-num;
}
body :is(.welle-cards, .welle-pillars, .welle-steps, .welle-highlights).panel-widget-style .sow-features-list .sow-features-feature {
	width: auto !important;
	min-width: 0;
	margin: 0;
	text-align: left !important;
	counter-increment: welle-num;
}
body :is(.welle-cards, .welle-pillars, .welle-steps, .welle-highlights).panel-widget-style .sow-icon-container:not(:has(*)) { display: none; }
body :is(.welle-cards, .welle-pillars, .welle-steps, .welle-highlights).panel-widget-style .sow-more-text { display: none; }
body :is(.welle-cards, .welle-pillars, .welle-steps, .welle-highlights).panel-widget-style .sow-features-feature-right-left-container { flex-direction: column !important; align-items: stretch; }
body :is(.welle-cards, .welle-pillars, .welle-steps, .welle-highlights).panel-widget-style .sow-features-feature-text p { margin: 0; }
body :is(.welle-cards, .welle-pillars, .welle-steps).panel-widget-style .sow-features-feature:nth-child(3n+1):not([class*="welle-tone-"]),
body :is(.welle-cards, .welle-pillars, .welle-steps).panel-widget-style .sow-features-feature.welle-tone-1 { --welle-tint: #cce9e9; --welle-ink: #007c7a; }
body :is(.welle-cards, .welle-pillars, .welle-steps).panel-widget-style .sow-features-feature:nth-child(3n+2):not([class*="welle-tone-"]),
body :is(.welle-cards, .welle-pillars, .welle-steps).panel-widget-style .sow-features-feature.welle-tone-2 { --welle-tint: #fde8c4; --welle-ink: #b5600a; }
body :is(.welle-cards, .welle-pillars, .welle-steps).panel-widget-style .sow-features-feature:nth-child(3n):not([class*="welle-tone-"]),
body :is(.welle-cards, .welle-pillars, .welle-steps).panel-widget-style .sow-features-feature.welle-tone-3 { --welle-tint: #fbd7c6; --welle-ink: #b04a17; }

/* Features widget, class welle-cards: text cards with an icon, two per row. */
@media (min-width: 768px) { body .welle-cards.panel-widget-style .sow-features-list { grid-template-columns: repeat(2, 1fr); } }
body .welle-cards.panel-widget-style .sow-features-list .sow-features-feature { padding: 1.5rem; border-radius: 1.5rem; background: var(--welle-tint); color: #374151; }
/* The icon sits beside the title, so it reads as the title's symbol rather than a separate block above it
   (the school's request). The text runs under both at full width. */
body .welle-cards.panel-widget-style .sow-features-list .sow-features-feature:has(.sow-icon-image) {
	display: grid !important;
	grid-template-columns: 40px 1fr;
	column-gap: 0.85rem;
	row-gap: 0.6rem;
	align-items: center;
	/* A card stretched to its taller neighbour keeps its text under the title, not halfway down. */
	align-content: start;
}
body .welle-cards.panel-widget-style .sow-features-feature:has(.sow-icon-image) .textwidget { display: contents; }
body .welle-cards.panel-widget-style .sow-features-feature:has(.sow-icon-image) .sow-features-feature-text { grid-column: 1 / -1; }
body .welle-cards.panel-widget-style .sow-features-feature .sow-icon-container { margin: 0 !important; }
body .welle-cards.panel-widget-style .sow-features-feature .sow-icon-image { width: 40px !important; height: 40px !important; background-size: contain !important; background-position: left center !important; }
body .welle-cards.panel-widget-style .sow-features-feature .sow-features-feature-title { margin: 0; font-size: 1.25rem; font-weight: 700; line-height: 1.3; color: var(--welle-ink); }
body .welle-cards.panel-widget-style .sow-features-feature .sow-features-feature-text { line-height: 1.55; color: #374151; }

/* Features widget, class welle-pillars or welle-steps: numbered cards, four per row. The number is the
   feature's place in the list, so moving a feature renumbers them all. */
@media (min-width: 640px)  { body :is(.welle-pillars, .welle-steps).panel-widget-style .sow-features-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { body :is(.welle-pillars, .welle-steps).panel-widget-style .sow-features-list { grid-template-columns: repeat(4, 1fr); } }
body :is(.welle-pillars, .welle-steps).panel-widget-style .sow-features-list .sow-features-feature::before {
	content: counter(welle-num);
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 999px;
	background: #fff;
	color: var(--welle-ink);
	font-weight: 800;
	font-size: 1.125rem;
	line-height: 1;
}
body .welle-pillars.panel-widget-style .sow-features-list .sow-features-feature {
	flex-direction: row !important;
	align-items: center;
	gap: 0.9rem;
	padding: 1.25rem;
	border-radius: 1.25rem;
	background: var(--welle-tint);
}
body .welle-pillars.panel-widget-style .sow-features-feature .sow-features-feature-title { margin: 0 0 0.15rem; font-size: 1.125rem; font-weight: 700; line-height: 1.3; color: var(--welle-ink); }
body .welle-pillars.panel-widget-style .sow-features-feature .sow-features-feature-text { font-size: 0.95rem; line-height: 1.45; color: #374151; }
body .welle-pillars.panel-widget-style .sow-features-list { margin-bottom: 2.5rem; }

body .welle-steps.panel-widget-style .sow-features-list .sow-features-feature {
	flex-direction: column !important;
	gap: 0.75rem;
	padding: 1.5rem 1.5rem 1.75rem;
	border-radius: 1.5rem;
	background: var(--welle-tint);
	color: #374151;
}
body .welle-steps.panel-widget-style .sow-features-list .sow-features-feature::before { width: 3rem; height: 3rem; font-size: 1.25rem; }
body .welle-steps.panel-widget-style .sow-features-feature .sow-features-feature-title { margin: 0 0 0.75rem; font-size: 1.25rem; font-weight: 700; line-height: 1.3; color: var(--welle-ink); }
body .welle-steps.panel-widget-style .sow-features-feature .sow-features-feature-text { line-height: 1.5; color: #374151; }

/* Features widget, class welle-highlights: white cards, optionally with a photo on top. */
body .welle-highlights.panel-widget-style .sow-features-list { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; margin: 1rem 0 2rem; }
body .welle-highlights.panel-widget-style .sow-features-list .sow-features-feature { padding: 1.25rem 1.5rem 1.5rem; border-radius: 1rem; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 4%); overflow: hidden; }
body .welle-highlights.panel-widget-style .sow-features-list .sow-features-feature:has(.sow-icon-image) { padding-top: 0; }
body .welle-highlights.panel-widget-style .sow-features-feature .sow-icon-container:has(*) { margin: 0 -1.5rem 1.25rem !important; }
body .welle-highlights.panel-widget-style .sow-features-feature .sow-icon-image { width: 100% !important; height: auto !important; aspect-ratio: 4 / 3; background-size: cover !important; }
/* The theme's entry-content h3 margin and size, which the original cards ended up with. */
body .welle-highlights.panel-widget-style .sow-features-feature .sow-features-feature-title { margin: 1.5rem 0 0.6rem; font-size: 1.25rem; color: #1a1a1a; }
body .welle-highlights.panel-widget-style .sow-features-feature .sow-features-feature-text { font-size: 0.95rem; }
body .welle-highlights.panel-widget-style .sow-features-feature .sow-features-feature-text { margin-bottom: 1.25rem; }

/* Image Grid widget, class welle-photo-grid: same-size photos; each opens in the lightbox. The widget's
   script sizes the images inline for its own justified layout; the grid takes over. */
.welle-photo-grid.panel-widget-style { margin: 2rem 0; }
body .welle-photo-grid.panel-widget-style .sow-image-grid-wrapper {
	display: grid !important;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
	opacity: 1 !important;
}
@media (min-width: 768px)  { body .welle-photo-grid.panel-widget-style .sow-image-grid-wrapper { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { body .welle-photo-grid--4.panel-widget-style .sow-image-grid-wrapper { grid-template-columns: repeat(4, 1fr); } }
body .welle-photo-grid.panel-widget-style .sow-image-grid-image { width: auto !important; margin: 0 !important; padding: 0 !important; border-radius: 1rem; overflow: hidden; }
body .welle-photo-grid.panel-widget-style .sow-image-grid-image a { display: block; }
body .welle-photo-grid.panel-widget-style .sow-image-grid-image img {
	display: block;
	width: 100% !important;
	height: auto !important;
	max-width: none !important;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 0;
}
body .welle-photo-grid.panel-widget-style .sow-image-grid-image a:focus-visible { outline: 3px solid var(--color-teal, #007c7a); outline-offset: 3px; }
@media (max-width: 767px) {
	body .welle-photo-grid.panel-widget-style .sow-image-grid-image:last-child:nth-child(odd) { grid-column: span 2; }
	body .welle-photo-grid.panel-widget-style .sow-image-grid-image:last-child:nth-child(odd) img { aspect-ratio: 16 / 9; }
}

/* Editor widget, class welle-fb: the Facebook line and button side by side, centred. */
.welle-fb.panel-widget-style { display: block; margin: 1rem 0 3rem; }
.welle-fb .textwidget { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.75rem 1.25rem; text-align: center; }

/* Editor widget, class welle-faq-heading, then an Accordion widget, class welle-faq: one FAQ group. */
.welle-faq-heading.panel-widget-style { margin-top: 2.5rem; }
.welle-faq-heading h2 { margin-bottom: 0.75rem; }
/* The group headings take turns in teal and orange, the darker tile inks so they pass contrast on the page
   background (7:1 teal, 5.6:1 orange). "of S" counts only the heading widgets, so a group added later keeps the rhythm. */
body .panel-grid-cell > .so-panel:nth-child(odd of :has(> .welle-faq-heading)) .welle-faq-heading h2 { color: #007c7a; }
body .panel-grid-cell > .so-panel:nth-child(even of :has(> .welle-faq-heading)) .welle-faq-heading h2 { color: #b04a17; }
body .welle-faq.panel-widget-style .sow-accordion-panel {
	margin: 0 0 0.75rem !important;
	border-radius: 1rem;
	background: #fff;
	box-shadow: 0 1px 2px rgb(0 0 0 / 4%);
	overflow: hidden;
}
body .welle-faq.panel-widget-style .sow-accordion-panel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 3.25rem;
	padding: 0.9rem 1.25rem !important;
	border-radius: 1rem;
	background: #fff !important;
	cursor: pointer;
}
/* !important: the widget's own instance CSS styles the title with a long selector chain. */
body .welle-faq.panel-widget-style .sow-accordion-title { margin: 0; padding: 0; font-size: 1.05rem !important; font-weight: 700 !important; line-height: 1.72 !important; color: #1a1a1a !important; }
body .welle-faq.panel-widget-style .sow-accordion-open-close-button { display: none; }
body .welle-faq.panel-widget-style .sow-accordion-panel-header::after {
	content: "";
	flex: none;
	width: 0.6rem;
	height: 0.6rem;
	border-right: 2.5px solid #007c7a;
	border-bottom: 2.5px solid #007c7a;
	transform: rotate(45deg) translateY(-2px);
}
body .welle-faq.panel-widget-style .sow-accordion-panel-open .sow-accordion-panel-header::after { transform: rotate(-135deg) translateY(-2px); }
body .welle-faq.panel-widget-style .sow-accordion-panel-header:focus-visible { outline: 3px solid #007c7a; outline-offset: 2px; }
/* The answers read as page text, as they did before: same size, colour and paragraph gap. */
body .welle-faq.panel-widget-style .sow-accordion-panel-border { padding: 0 1.25rem 1.1rem !important; border: 0 !important; background: #fff !important; }
body .welle-faq.panel-widget-style .sow-accordion-panel-border,
body .welle-faq.panel-widget-style .sow-accordion-panel-border * { font-size: inherit !important; line-height: inherit !important; color: inherit; }
body .welle-faq.panel-widget-style .sow-accordion-panel-border a { color: var(--color-teal, #007c7a); }
body .welle-faq.panel-widget-style .sow-accordion-panel-border p { margin: 0 0 1.25rem; }

/* A link inside a tile's text (tiles without their own link) reads as a link in the tile's colour. */
body .welle-tiles.panel-widget-style .sow-features-feature-text a { color: var(--welle-ink); font-weight: 700; }

/* Features widget, class welle-team plus welle-team--teal, --green, --amber or --orange: the team
   cards, photo on top. The first line of the text is the role, a second one the bio. */
.welle-team--teal   { --welle-team-accent: var(--color-teal); }
.welle-team--green  { --welle-team-accent: var(--color-green); }
.welle-team--amber  { --welle-team-accent: var(--color-amber); }
.welle-team--orange { --welle-team-accent: var(--color-orange); }
body .welle-team.panel-widget-style .sow-features-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 2rem;
	margin: 0;
	padding: 1rem 0;
	list-style: none;
}
body .welle-team.panel-widget-style .sow-features-list .sow-features-feature {
	width: auto !important;
	min-width: 0;
	margin: 0;
	border-top: 3px solid var(--welle-team-accent);
	border-radius: var(--radius-xl);
	background: #fff;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	text-align: center !important;
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	body .welle-team.panel-widget-style .sow-features-list .sow-features-feature:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10); }
}
body .welle-team.panel-widget-style .sow-features-feature-right-left-container { flex-direction: column !important; align-items: stretch; }
body .welle-team.panel-widget-style .sow-features-feature .sow-icon-container { width: 100%; height: auto !important; margin: 0 !important; font-size: 1rem; }
body .welle-team.panel-widget-style .sow-features-feature .sow-icon-container:not(:has(*)) { display: none; }
body .welle-team.panel-widget-style .sow-features-feature .sow-icon-image {
	position: static !important;
	display: block !important;
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 1;
	background-color: var(--color-muted);
	background-size: cover !important;
	background-position: center !important;
}
body .welle-team.panel-widget-style .sow-features-feature .textwidget { padding: 1.25rem 1rem 1.5rem; }
/* The theme's h3 size and spacing win over the old card rule, so the cards keep the sizes they showed. */
body .welle-team.panel-widget-style .sow-features-feature .sow-features-feature-title { margin: 1.5rem 0 0.6rem; font-size: 1.25rem; font-weight: 700; line-height: 1.4; color: var(--color-gray-800); }
body .welle-team.panel-widget-style .sow-features-feature-text p { margin: 0; font-size: 0.82rem; line-height: 1.45; color: #666; }
body .welle-team.panel-widget-style .sow-features-feature-text p:first-child { margin-bottom: 0.35rem; font-size: 0.88rem; font-weight: 600; line-height: 1.72; color: var(--color-teal); }
body .welle-team.panel-widget-style .sow-more-text { display: none; }

/* A tile's note, such as "(pdf, opent in een nieuw tabblad)", on its own line in small type. */
body .welle-tiles.panel-widget-style .sow-features-feature-text small { display: block; margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.72; }


/* ── Components (1.8.0) ───────────────────────────────────────────────────────────────────────
 * The last hand-written HTML became standard widgets. Colours and buttons come from the visual
 * editor's Formats menu (classes welle-ink-* and btn); includes/components.php turns plain editor
 * text into the theme's markup where a widget carries a component class. */

/* Formats menu: Titelkleur and Tekstkleur. The heading margins are the ones the coloured headings
   had in their inline styles. */
/* A colour the editor picked wins over the colour of the place it sits in, as the inline styles did. */
body .welle-ink-teal { color: var(--color-teal) !important; }
body .welle-ink-orange { color: var(--color-orange) !important; }
body .welle-ink-green { color: var(--color-green) !important; }
body .welle-ink-amber { color: var(--color-amber) !important; }
body .entry-content h2[class*="welle-ink-"] { margin-bottom: 1rem; }
body .entry-content h3[class*="welle-ink-"] { margin-top: 2rem; }

/* Editor widget, class welle-group-title: a coloured heading above a group of cards, as on Team. */
body .entry-content .welle-group-title.panel-widget-style h3 { margin: 1.5rem 0 0.5rem; }

/* A paragraph that is only a button (Formats > Knop) stands a little apart from the text above. */
body .entry-content .siteorigin-widget-tinymce > p:has(> a.btn:only-child) { margin-top: 1.5rem; }
body :is(.welle-fb, .welle-isa-text).panel-widget-style .siteorigin-widget-tinymce > p:has(> a.btn:only-child) { margin-top: 0; }

/* Editor widget, class welle-section-intro: the home page's title with a centred introduction. */
body .welle-section-intro.panel-widget-style p { max-width: 48rem; margin: -0.5rem auto 1rem; text-align: center; }

/* Editor widget, class welle-isa-text: the ISA band's text and button. */
body .welle-isa-text.panel-widget-style a.btn { margin-top: 1rem; }

/* Image widget, class welle-isa-photo: the ISA band's photo, cropped to its top. */
body .welle-isa-photo.panel-widget-style img {
	display: block;
	width: 100%;
	max-height: 280px;
	object-fit: cover;
	object-position: center top;
	border-radius: 1.5rem;
}

/* Editor widget, class welle-feature-card, in a feature-card cell: the theme stretches the card's text
   to the cell's height so the buttons line up; the widget's two wrappers have to pass that on. */
.panel-grid-cell .feature-card :is(.welle-feature-card.panel-widget-style, .so-widget-sow-editor) {
	display: flex;
	flex: 1;
	flex-direction: column;
}

/* The ISA band's three decorative icons, in its middle column, which holds no widget. The SVG is the
   design's own lightbulb, heart and tree (Welle.be.fig, Main New); it is wider than the column and,
   like the design, spills into the gutters on both sides. */
.welle-isa-band.panel-row-style > .panel-grid-cell:nth-child(2):not(:has(.so-panel))::before {
	content: "";
	display: block;
	width: 10rem;
	aspect-ratio: 231 / 360;
	margin-inline: calc((100% - 10rem) / 2);
	background: url("isa-icons.svg") center / contain no-repeat;
	pointer-events: none;
}

/* Hours, calendar and contact cards (classes welle-info-*): what the theme's inline styles did. */
body .welle-info-card .welle-u2-calendar-link { margin-top: 0.5rem; }
body .welle-info-card .welle-u2-calendar-link a {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	min-height: 24px;
	color: var(--color-amber);
	font-weight: 600;
	text-decoration: none;
}
body .welle-u2-calendar-link svg { flex: none; }
body .welle-info-contact.panel-widget-style address { font-style: normal; }
body .welle-info-contact.panel-widget-style .welle-contact { display: grid; gap: 0.45rem; margin: 0; padding: 0; list-style: none; }
body .welle-info-contact.panel-widget-style .welle-contact li { margin: 0; }
body .welle-info-contact.panel-widget-style .welle-contact li:not(:has(a)),
body .welle-info-contact.panel-widget-style .welle-contact a {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	min-height: 24px;
	color: var(--color-gray-800);
	font-size: 0.9rem;
	text-decoration: none;
}
body .welle-info-contact.panel-widget-style .welle-contact a.welle-contact__social { color: var(--color-orange); }
body .welle-contact__icon { display: inline-flex; color: var(--color-orange); }
body .welle-contact__icon svg { flex: none; }

/* Welle tabel: labels as row headings keep room before their value. */
body .entry-content .welle-kv--rijkop th[scope="row"] { text-align: left; padding-right: 1.5rem; }

/* Features widget, class welle-linkcards: white cards, each one link, two side by side (Ouders). */
body .welle-linkcards.panel-widget-style .sow-features-list {
	display: grid !important;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	margin: 2rem 0 0;
	padding: 0;
}
body .welle-linkcards.panel-widget-style .sow-features-list .sow-features-feature {
	position: relative;
	display: block !important;
	width: auto !important;
	margin: 0 !important;
	padding: 2rem;
	background: #fff;
	border-radius: var(--radius-lg);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
body .welle-linkcards.panel-widget-style .sow-features-feature-right-left-container { display: block !important; text-align: left; }
/* The old hand-written cards left about 4.5rem between title and text (a link the browser split in two); the
   space stays so the cards keep their size. */
body .welle-linkcards.panel-widget-style .sow-features-feature-text { margin: 4.6rem 0 1.25rem; text-align: left; }
body .welle-linkcards.panel-widget-style .sow-icon-container,
body .welle-linkcards.panel-widget-style .sow-more-text { display: none; }
body .welle-linkcards.panel-widget-style .sow-features-feature .sow-features-feature-title {
	margin: 1.5rem 0 0.6rem;
	font-size: 1.2rem;
	color: var(--color-teal);
}
body .welle-linkcards.panel-widget-style .sow-features-feature.welle-tone-3 .sow-features-feature-title { color: var(--color-orange); }
/* Above SiteOrigin's z-index 1 on the title and text, so the whole card opens the page. */
body .welle-linkcards.panel-widget-style .sow-features-feature-linked-column {
	position: absolute;
	inset: 0;
	z-index: 2;
	border-radius: inherit;
}
body .welle-linkcards.panel-widget-style .sow-features-feature-linked-column:focus-visible {
	outline: 3px solid var(--color-teal);
	outline-offset: -3px;
}
