/*
 * Content pages in the Arctic Thyme design.
 * Every colour comes from the --palette-* tokens set by homepage.css and the
 * palette picker (assets/js/palettes.js), so all palettes work here too.
 */

body.svava-design:not(.home) {
	--card: var(--palette-canvas);
	--white: var(--card);
	--content-max: 1680px;
	--hero-max: 1750px;
	--prose-max: 820px;
	--card-border: var(--palette-cool);
	overflow-x: clip;
}

body.svava-design:not(.home):not([data-palette]),
body.svava-design:not(.home)[data-palette^="thyme-garden"],
body.svava-design:not(.home)[data-palette^="charcoal-"] {
	--card: #ffffff;
	--card-border: #d7d3d9;
}

/* Layout ------------------------------------------------------------- */

body.svava-design:not(.home) .entry-content,
body.svava-design:not(.home) .post-list {
	width: min(90.6%, var(--content-max));
	padding-top: 0;
	padding-bottom: clamp(64px, 8vw, 110px);
	color: var(--palette-ink);
	font-family: "Svava Inter", Arial, sans-serif;
	font-size: 17px;
	line-height: 1.75;
}

/*
 * Keep running text at a comfortable reading width, but let grids, cards,
 * panels, tables and shop blocks use the full content width.
 */
body.svava-design:not(.home) .entry-content > :is(p, ul, ol, dl, h1, h2, h3, h4, h5, h6, blockquote) {
	max-width: var(--prose-max);
}

/* Page hero: a full-width band, echoing the homepage invitation band. */
body.svava-design:not(.home) .entry-content > .page-hero {
	position: relative;
	width: auto;
	max-width: none;
	margin: 0 calc(50% - 50vw) clamp(48px, 6vw, 80px);
	padding: clamp(56px, 7vw, 88px) max(4.7vw, calc((100vw - var(--hero-max)) / 2)) clamp(56px, 7vw, 80px);
	overflow: hidden;
	border: 0;
	border-radius: 0;
	background: var(--palette-cool);
	color: var(--palette-ink);
}

/*
 * Clifftop flowers photo in the title band, framed like the homepage portrait.
 * It is a pseudo-element so it also appears on pages whose content supplies
 * its own .page-hero section.
 */
body.svava-design:not(.home) .entry-content > .page-hero::after {
	display: block;
	width: min(100% - 24px, 520px);
	margin: 40px 0 24px 24px;
	aspect-ratio: 3 / 2;
	border-radius: 24px;
	background: var(--palette-primary) url("images/moss-campion-cliff-800.jpg") 40% 65% / cover no-repeat;
	box-shadow: -24px 24px 0 var(--palette-warm);
	content: "";
}

@media (min-width: 900px) {
	body.svava-design:not(.home) .entry-content > .page-hero {
		display: flex;
		min-height: 440px;
		padding-right: calc(max(4.7vw, (100vw - var(--hero-max)) / 2) + min(38vw, 680px) + 56px);
		flex-direction: column;
		justify-content: center;
	}

	body.svava-design:not(.home) .entry-content > .page-hero::after {
		position: absolute;
		top: 56px;
		right: max(4.7vw, calc((100vw - var(--hero-max)) / 2));
		bottom: 80px;
		width: min(38vw, 680px);
		margin: 0;
		aspect-ratio: auto;
		background-image: url("images/moss-campion-cliff-1200.jpg");
	}
}

body.svava-design:not(.home) .page-hero .eyebrow {
	position: relative;
	margin: 0 0 18px;
	color: var(--home-primary-text);
}

body.svava-design:not(.home) .entry-content .page-hero h1 {
	position: relative;
	max-width: 900px;
	margin: 0;
	color: var(--palette-ink);
	font-size: clamp(34px, 4.5vw, 54px);
	letter-spacing: -.035em;
	line-height: 1.15;
}

body.svava-design:not(.home) .page-hero h1 em {
	color: var(--home-accent-text);
	font-style: normal;
	font-weight: 600;
}

body.svava-design:not(.home) .page-hero .lead,
body.svava-design:not(.home) .page-hero p {
	position: relative;
	max-width: 680px;
	margin: 22px 0 0;
	color: var(--palette-ink);
	font-size: 18px;
}

body.svava-design:not(.home) .page-hero .button {
	margin-top: 8px;
}

/* Learning path cards (Learn Icelandic page), matching the homepage cards. */
body.svava-design:not(.home) .entry-content > .path-grid {
	gap: 24px;
}

body.svava-design:not(.home) .path-card,
body.svava-design:not(.home) .path-card:nth-child(2),
body.svava-design:not(.home) .path-card:nth-child(3) {
	min-height: 260px;
	padding: 30px;
	gap: 8px;
	border: 1px solid var(--card-border);
	border-radius: 20px;
	background: var(--card);
	box-shadow: none;
}

body.svava-design:not(.home) .path-card:hover {
	transform: none;
	box-shadow: 0 18px 40px color-mix(in srgb, var(--palette-ink) 10%, transparent);
}

body.svava-design:not(.home) .path-card > p:empty {
	display: none;
}

body.svava-design:not(.home) .path-number {
	display: block;
	width: auto;
	height: auto;
	margin: 0 0 6px;
	border: 0;
	color: var(--home-accent-text);
	font-size: 14px;
	font-weight: 600;
}

body.svava-design:not(.home) .entry-content .path-card h3 {
	margin: 0;
}

body.svava-design:not(.home) .path-card p {
	margin: 0;
	font-size: 15px;
}

body.svava-design:not(.home) .path-card p:has(.text-link) {
	margin-top: auto;
	padding-top: 12px;
}

body.svava-design:not(.home) .entry-content .path-card .text-link {
	color: var(--home-primary-text);
	font-size: 15px;
	font-weight: 600;
}

body.svava-design:not(.home) .entry-content > .path-grid + .cta-panel {
	margin-top: clamp(48px, 6vw, 80px);
}

/* Typography ---------------------------------------------------------- */

body.svava-design:not(.home) .entry-content :is(h1, h2, h3, h4, h5, h6),
body.svava-design:not(.home) .post-list h2 {
	color: var(--palette-ink);
	font-family: "Svava Inter", Arial, sans-serif;
	font-weight: 700;
}

/* Legacy pages use <h1> for section headings; give them h2 sizing. */
body.svava-design:not(.home) .entry-content > h1,
body.svava-design:not(.home) .entry-content h2 {
	margin: clamp(44px, 5vw, 64px) 0 16px;
	font-size: clamp(26px, 3vw, 34px);
	letter-spacing: -.025em;
	line-height: 1.25;
}

body.svava-design:not(.home) .entry-content > h1:first-child,
body.svava-design:not(.home) .entry-content > .page-hero + :is(h1, h2) {
	margin-top: 0;
}

body.svava-design:not(.home) .entry-content h3 {
	margin: 36px 0 10px;
	font-size: 22px;
	letter-spacing: -.02em;
	line-height: 1.3;
}

body.svava-design:not(.home) .entry-content :is(h4, h5, h6) {
	margin: 28px 0 8px;
	font-size: 18px;
}

body.svava-design:not(.home) .entry-content :is(p, li, dd, dt, td, figcaption) {
	color: var(--palette-ink);
}

body.svava-design:not(.home) .entry-content strong {
	color: inherit;
}

body.svava-design:not(.home) .entry-content a:not(.button):not(.wp-block-button__link) {
	color: var(--home-primary-text);
	text-decoration: underline;
	text-decoration-thickness: .08em;
	text-underline-offset: .2em;
}

body.svava-design:not(.home) .entry-content a:not(.button):not(.wp-block-button__link):hover {
	color: var(--home-accent-text);
}

body.svava-design:not(.home) .entry-content :is(ul, ol) {
	padding-left: 1.3rem;
}

body.svava-design:not(.home) .entry-content li::marker {
	color: var(--home-accent-text);
}

body.svava-design:not(.home) .entry-content ul[style*="list-style-type: none"] {
	padding-left: 0;
}

body.svava-design:not(.home) .entry-content blockquote {
	margin: 32px 0;
	padding: 4px 0 4px 24px;
	border-left: 3px solid var(--palette-accent);
	color: var(--palette-ink);
	font-family: inherit;
	font-size: 22px;
	line-height: 1.5;
}

body.svava-design:not(.home) .entry-content hr {
	margin: 48px 0;
	border: 0;
	border-top: 1px solid var(--palette-cool);
}

body.svava-design:not(.home) .entry-content img {
	border-radius: 20px;
}

/*
 * Old Avada content hard-codes red, navy and black text colours inline.
 * Let that text take the palette colour instead so every palette stays readable.
 */
body.svava-design:not(.home) .entry-content [style*="color"]:not([style*="background"]) {
	color: inherit !important;
}

body.svava-design:not(.home) .entry-content [style*="background"] {
	background: var(--palette-cool) !important;
	color: var(--palette-ink) !important;
	border-radius: 12px;
}

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

body.svava-design:not(.home) .entry-content :is(.wp-block-button__link, button[type="submit"], input[type="submit"], .woocommerce a.button, .woocommerce button.button, .tutor-btn-primary) {
	display: inline-flex;
	min-height: 50px;
	padding: 12px 25px;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--palette-primary);
	border-radius: 10px;
	background: var(--palette-primary);
	color: var(--palette-on-primary);
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

body.svava-design:not(.home) .entry-content :is(.button, .wp-block-button__link, button[type="submit"], input[type="submit"]):hover {
	transform: none;
	text-decoration: underline;
	text-underline-offset: .25em;
	box-shadow: none;
}

/* Forms --------------------------------------------------------------- */

body.svava-design:not(.home) .entry-content :is(input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]), select, textarea) {
	width: 100%;
	max-width: 560px;
	min-height: 48px;
	padding: 10px 14px;
	border: 1px solid color-mix(in srgb, var(--palette-ink) 25%, transparent);
	border-radius: 10px;
	background: var(--card);
	color: var(--palette-ink);
	font: inherit;
}

body.svava-design:not(.home) .entry-content :is(input, select, textarea):focus-visible {
	outline: 3px solid var(--palette-accent);
	outline-offset: 2px;
}

body.svava-design:not(.home) .entry-content label {
	color: var(--palette-ink);
	font-weight: 600;
}

/* Tables -------------------------------------------------------------- */

body.svava-design:not(.home) .entry-content table {
	border-color: var(--card-border);
	border-radius: 16px;
	background: var(--card);
}

body.svava-design:not(.home) .entry-content :is(th, td) {
	border-bottom-color: var(--card-border);
}

body.svava-design:not(.home) .entry-content th {
	background: var(--palette-cool);
	color: var(--palette-ink);
}

/* Cards and panels ---------------------------------------------------- */

body.svava-design:not(.home) :is(.feature-card, .faq-item, .info-panel) {
	border-color: var(--card-border);
	border-radius: 20px;
	background: var(--card);
}

body.svava-design:not(.home) .faq-item {
	border-top-color: var(--card-border);
	border-right-color: var(--card-border);
	border-bottom-color: var(--card-border);
	border-radius: 16px;
}

body.svava-design:not(.home) .entry-content .faq-item h2 {
	margin: 0;
	font-size: 17px;
	letter-spacing: -.01em;
}

body.svava-design:not(.home) .faq-item h2::before {
	color: var(--home-accent-text);
	font-family: inherit;
	font-weight: 600;
}

body.svava-design:not(.home) .entry-content .faq-item > p {
	border-top-color: var(--palette-cool);
}

body.svava-design:not(.home) .faq-item summary {
	color: var(--palette-ink);
}

body.svava-design:not(.home) :is(.quote-panel, .contact-card) {
	border-color: transparent;
	border-radius: 20px;
	background: var(--palette-cool);
}

body.svava-design:not(.home) .quote-panel::after {
	color: color-mix(in srgb, var(--palette-accent) 25%, transparent);
	font-family: "Svava Inter", Arial, sans-serif;
}

body.svava-design:not(.home) .quote-panel blockquote {
	border: 0;
	padding: 0;
}

body.svava-design:not(.home) .quote-panel blockquote p {
	font-family: inherit;
}

body.svava-design:not(.home) .teacher-strip {
	border-color: transparent;
	border-radius: 20px;
	background: var(--palette-banner);
}

body.svava-design:not(.home) .teacher-strip :is(h2, p, .eyebrow) {
	color: var(--palette-banner-ink);
}

/* Call to action panels match the homepage teacher band. */
body.svava-design:not(.home) .entry-content .cta-panel {
	border: 0;
	border-radius: 24px;
	background: var(--home-section);
	color: var(--home-section-text);
}

body.svava-design:not(.home) .entry-content .cta-panel :is(h2, p) {
	color: var(--home-section-text);
}

body.svava-design:not(.home) .entry-content :is(.cta-panel, .teacher-strip, .quote-panel, .contact-card) h2 {
	margin-top: 4px;
}

body.svava-design:not(.home) .entry-content :is(.cta-panel, .teacher-strip) > div > :last-child {
	margin-bottom: 0;
}

body.svava-design:not(.home) .entry-content .cta-panel .eyebrow {
	color: var(--home-section-accent);
}

body.svava-design:not(.home) .entry-content .cta-panel .button {
	border: 0;
	background: var(--palette-warm);
	color: var(--palette-ink);
}

body.svava-design:not(.home) .entry-content .cta-panel a:not(.button) {
	color: var(--home-section-accent);
}

/* Closing note paragraphs used on the FAQ and testimonials pages. */
body.svava-design.page-id-1032 .entry-content > p:last-child,
body.svava-design.testimonials-layout .entry-content > p:last-child {
	max-width: none;
	border-radius: 16px;
	background: var(--palette-cool);
	color: var(--palette-ink);
}

/* Testimonials page: quote cards. */
body.svava-design.testimonials-layout .entry-content > p:nth-of-type(n + 2):nth-of-type(-n + 6) {
	max-width: none;
	border-color: var(--card-border);
	border-radius: 20px;
	background: var(--card);
	color: var(--palette-ink);
	font-family: inherit;
	box-shadow: none;
}

body.svava-design.testimonials-layout .entry-content > p:nth-of-type(n + 2):nth-of-type(-n + 6)::before {
	color: var(--palette-accent);
	font-family: "Svava Inter", Arial, sans-serif;
	font-weight: 700;
}

body.svava-design.testimonials-layout .entry-content > p:nth-of-type(n + 2):nth-of-type(-n + 6) span[style*="#db003c"]:has(em) {
	color: var(--home-primary-text) !important;
}

/* Posts list and archives -------------------------------------------- */

body.svava-design:not(.home) .post-list {
	padding-top: clamp(48px, 6vw, 80px);
}

body.svava-design:not(.home) .post-list article {
	border-bottom-color: var(--palette-cool);
}

body.svava-design:not(.home) .post-list h2 a {
	color: var(--palette-ink);
}

body.svava-design:not(.home) .post-list h2 a:hover {
	color: var(--home-accent-text);
}

body.svava-design:not(.home) .post-list p {
	color: var(--palette-ink);
}

/* Small screens ------------------------------------------------------- */

@media (max-width: 620px) {
	body.svava-design:not(.home) .entry-content {
		font-size: 16px;
	}

	body.svava-design:not(.home) .entry-content > .page-hero {
		padding-top: 44px;
		padding-bottom: 44px;
	}

	body.svava-design:not(.home) .entry-content .page-hero h1 {
		font-size: 34px;
	}

	body.svava-design:not(.home) .entry-content blockquote {
		font-size: 19px;
	}

	body.svava-design:not(.home) .entry-content .cta-panel {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (min-width: 1600px) {
	body.svava-design:not(.home) .entry-content > .page-hero {
		min-height: clamp(440px, calc(440px + (100vw - 1600px) * .4), 600px);
	}

	body.svava-design:not(.home) .entry-content .page-hero h1 {
		font-size: clamp(54px, 3.4vw, 68px);
	}
}

/* Consistent containers ---------------------------------------------- */

/* One rhythm between every top-level block on content pages. */
body.svava-design:not(.home) .entry-content > * + *,
body.svava-design:not(.home) .entry-content > .path-grid + .cta-panel,
body.svava-design:not(.home) .entry-content > .content-section {
	margin-top: 24px;
}

body.svava-design:not(.home) .entry-content > .page-hero + * {
	margin-top: 0;
}

/* Shared card shape for every container. */
body.svava-design:not(.home) .entry-content :is(.content-section, .feature-card, .quote-panel, .cta-panel, .contact-card, .teacher-strip, .info-panel) {
	padding: clamp(28px, 3.5vw, 48px);
	border-radius: 20px;
}

body.svava-design:not(.home) .entry-content > .content-section:not(.quote-panel):not(.cta-panel):not(.faq-list) {
	max-width: none;
	border: 1px solid var(--card-border);
	background: var(--card);
}

body.svava-design:not(.home) .entry-content > .feature-grid {
	gap: 24px;
}

body.svava-design:not(.home) .entry-content .feature-card {
	border: 1px solid var(--card-border);
	background: var(--card);
}

body.svava-design:not(.home) .entry-content figure.feature-card {
	padding: 0;
	overflow: hidden;
}

body.svava-design:not(.home) .entry-content figure.feature-card img {
	width: 100%;
	height: 100%;
	max-height: none !important;
	border-radius: 0;
	object-fit: cover;
}

/* Section cards: heading column and body column. */
body.svava-design:not(.home) .content-section-head > :is(h1, h2, h3) {
	margin: 0;
	font-size: clamp(24px, 2.4vw, 30px);
	letter-spacing: -.025em;
	line-height: 1.25;
}

body.svava-design:not(.home) .content-section-head .eyebrow {
	margin: 0 0 10px;
}

body.svava-design:not(.home) .content-section-body {
	margin-top: 20px;
}

body.svava-design:not(.home) .content-section-body > :first-child,
body.svava-design:not(.home) .content-section > :first-child {
	margin-top: 0;
}

body.svava-design:not(.home) .content-section-body > :last-child,
body.svava-design:not(.home) .content-section > :last-child,
body.svava-design:not(.home) .feature-card > :last-child {
	margin-bottom: 0;
}

body.svava-design:not(.home) .content-section-body > * {
	max-width: var(--prose-max);
}

body.svava-design:not(.home) .entry-content .content-section-body :is(h2, h3) {
	margin-top: 32px;
}

@media (min-width: 1000px) {
	body.svava-design:not(.home) .content-section.is-split {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
		align-items: start;
		gap: 64px;
	}

	body.svava-design:not(.home) .content-section-body {
		margin-top: 0;
	}
}

/* Testimonials: every quote is a card, however many there are. */
body.svava-design.testimonials-layout .entry-content > p:not(:first-of-type):not(:last-child) {
	position: relative;
	max-width: none;
	margin: 0;
	padding: 3.2rem clamp(28px, 3vw, 40px) clamp(28px, 3vw, 40px);
	border: 1px solid var(--card-border);
	border-radius: 20px;
	background: var(--card);
	color: var(--palette-ink);
	font-family: inherit;
	font-size: .97rem;
	line-height: 1.8;
	box-shadow: none;
}

body.svava-design.testimonials-layout .entry-content > p:not(:first-of-type):not(:last-child)::before {
	position: absolute;
	top: .4rem;
	left: clamp(28px, 3vw, 40px);
	color: var(--palette-accent);
	content: "\201C";
	font-family: "Svava Inter", Arial, sans-serif;
	font-size: 4rem;
	font-weight: 700;
	line-height: 1;
}

body.svava-design.testimonials-layout .entry-content > p:not(:first-of-type):not(:last-child) span[style*="#db003c"]:has(strong) {
	display: inline-block;
	margin-top: .75rem;
	color: var(--palette-ink) !important;
}

body.svava-design.testimonials-layout .entry-content > p:not(:first-of-type):not(:last-child) span[style*="#db003c"]:has(em),
body.svava-design.testimonials-layout .entry-content > p:not(:first-of-type):not(:last-child) em:has(span[style*="#db003c"]) {
	color: var(--home-primary-text) !important;
	font-size: .85rem;
}

body.svava-design.testimonials-layout .entry-content > p:last-child {
	padding: clamp(20px, 2.5vw, 28px);
	border-radius: 20px;
}

@media (max-width: 620px) {
	body.svava-design.testimonials-layout .entry-content > p:not(:first-of-type):not(:last-child) {
		grid-column: 1;
	}
}

/* The testimonials page lays its cards out in a grid, so the grid gap does the spacing. */
body.svava-design.testimonials-layout .entry-content > * + * {
	margin-top: 0;
}

/* A small label directly above a heading sits close to it. */
body.svava-design:not(.home) .entry-content .eyebrow + :is(h1, h2, h3) {
	margin-top: 4px;
}

body.svava-design:not(.home) .entry-content .feature-card p + p {
	margin-top: 1em;
}

/* Photos in a card grid fill their card instead of setting the row height. */
body.svava-design:not(.home) .entry-content figure.feature-card {
	position: relative;
	min-height: 420px;
}

body.svava-design:not(.home) .entry-content figure.feature-card img {
	position: absolute;
	inset: 0;
	object-position: center 25%;
}

@media (max-width: 820px) {
	body.svava-design:not(.home) .entry-content > .feature-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	body.svava-design:not(.home) .entry-content figure.feature-card {
		min-height: 380px;
	}
}

body.svava-design.testimonials-layout .entry-content > p:not(:first-of-type):not(:last-child) > strong:has(span[style*="#db003c"]) {
	display: inline-block;
	margin-top: .75rem;
}

/* Old pages wrap headings in <strong>; keep every heading the same weight. */
body.svava-design:not(.home) .entry-content :is(h1, h2, h3) :is(strong, b) {
	font-weight: inherit;
}

/* Closing email note: ignore stray line breaks from old content and centre the text. */
body.svava-design.testimonials-layout .entry-content > p:last-child,
body.svava-design.page-id-1032 .entry-content > p:last-child {
	display: flex;
	min-height: 72px;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	text-align: center;
}

body.svava-design.testimonials-layout .entry-content > p:last-child br,
body.svava-design.page-id-1032 .entry-content > p:last-child br {
	display: none;
}

/* Wild flower strip above the footer --------------------------------- */
/* Same height rules as the homepage flower strip. */
body.svava-design:not(.home) .page-flowers {
	/* Always the original Arctic Thyme Garden greys, whatever the palette. */
	--flowers-ground: #eceaeb;
	--flowers-shade: #3c3742;
	height: 260px;
	overflow: hidden;
	background: var(--flowers-ground);
	pointer-events: none;
}

body.svava-design:not(.home) .page-flowers > svg {
	display: block;
	width: 100%;
	height: 100%;
}

body.svava-design:not(.home) .page-flowers > svg > rect {
	fill: var(--flowers-ground);
}

body.svava-design:not(.home) .page-flowers > svg > path:first-of-type {
	fill: color-mix(in srgb, var(--flowers-ground), var(--flowers-shade) 5%);
}

body.svava-design:not(.home) .page-flowers > svg > path:nth-of-type(2) {
	fill: color-mix(in srgb, var(--flowers-ground), var(--flowers-shade) 10%);
}

body.svava-design:not(.home) .page-flowers > svg > ellipse {
	fill: color-mix(in srgb, var(--flowers-ground), var(--flowers-shade) 18%);
}

body.svava-design:not(.home) .page-flowers > svg > ellipse:nth-of-type(even) {
	fill: color-mix(in srgb, var(--flowers-ground), var(--flowers-shade) 11%);
}

/* The flower strip already separates the content from the footer. */
body.svava-design:not(.home) .site-main {
	min-height: 0;
}

@media (min-width: 2100px) {
	body.svava-design:not(.home) .page-flowers {
		height: calc(276px + (100vw - 2100px) / 4);
	}
}

@media (max-width: 620px) {
	body.svava-design:not(.home) .page-flowers {
		height: 180px;
	}
}

/* FAQ: colourful question cards ------------------------------------- */
/* Every colour is mixed from the active palette, so this works in all palettes. */
body.svava-design:not(.home) .entry-content > .faq-list {
	display: grid;
	max-width: none;
	margin-top: 0;
	padding: 0;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
	border: 0;
	background: transparent;
	counter-reset: faq;
}

@media (min-width: 900px) {
	body.svava-design:not(.home) .entry-content > .faq-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

body.svava-design:not(.home) .entry-content .faq-list .faq-item {
	--faq-tint: var(--palette-cool);
	--faq-badge: var(--palette-primary);
	padding: clamp(24px, 3vw, 36px);
	overflow: visible;
	border: 0;
	border-radius: 20px;
	background: color-mix(in srgb, var(--faq-tint) var(--faq-mix, 75%), var(--card));
}

body.svava-design:not(.home) .entry-content .faq-list .faq-item:nth-child(4n + 2) {
	--faq-tint: var(--palette-warm);
	--faq-mix: 40%;
	--faq-badge: var(--palette-accent);
}

body.svava-design:not(.home) .entry-content .faq-list .faq-item:nth-child(4n + 3) {
	--faq-tint: var(--palette-banner);
	--faq-mix: 28%;
}

body.svava-design:not(.home) .entry-content .faq-list .faq-item:nth-child(4n + 4) {
	--faq-tint: var(--palette-accent);
	--faq-mix: 14%;
	--faq-badge: var(--palette-accent);
}

body.svava-design:not(.home) .entry-content .faq-list .faq-item h2 {
	display: grid;
	min-height: 0;
	margin: 0;
	padding: 0;
	align-items: center;
	grid-template-columns: 44px minmax(0, 1fr);
	gap: 14px;
	color: var(--palette-ink);
	font-size: 19px;
	letter-spacing: -.015em;
	line-height: 1.3;
}

body.svava-design:not(.home) .entry-content .faq-list .faq-item h2::before {
	display: grid;
	width: 44px;
	height: 44px;
	place-items: center;
	border-radius: 50%;
	background: var(--faq-badge);
	color: var(--palette-on-primary);
	content: counter(faq, decimal-leading-zero);
	counter-increment: faq;
	font-family: "Svava Inter", Arial, sans-serif;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0;
}

body.svava-design:not(.home) .entry-content .faq-list .faq-item > p {
	max-width: none;
	margin: 16px 0 0 58px;
	padding: 16px 0 0;
	border-top: 1px solid color-mix(in srgb, var(--palette-ink) 14%, transparent);
	color: var(--palette-ink);
	font-size: 16px;
	line-height: 1.7;
}

@media (max-width: 620px) {
	body.svava-design:not(.home) .entry-content .faq-list .faq-item > p {
		margin-left: 0;
	}
}

/* "Still have a question?" note in the palette's strip colour. */
body.svava-design.page-id-1032 .entry-content > p:last-child {
	margin-top: 24px;
	padding: clamp(20px, 2.5vw, 28px);
	border-radius: 20px;
	background: var(--palette-banner);
	color: var(--palette-banner-ink);
	font-weight: 600;
}

body.svava-design.page-id-1032 .entry-content > p:last-child a {
	margin-left: .4em;
	color: var(--palette-banner-ink) !important;
}

/* Palette looks ------------------------------------------------------ */
/*
 * Optional layout switches a palette can turn on with `look` in palettes.js:
 * data-hero (dark | pink), data-cards (tint | pink | outline | dark),
 * data-cta (pink | green), data-headings (bar) and data-faq (rows). Areas that flip to a dark
 * background swap the ink and canvas colours locally, so everything inside
 * them (headings, links, numbers, markers) follows automatically.
 */
body.svava-design:not(.home) {
	--base-ink: var(--palette-ink);
	--base-canvas: var(--palette-canvas);
}

/* Title band */
body.svava-design:not(.home)[data-hero="dark"] .entry-content > .page-hero {
	--palette-ink: var(--base-canvas);
	--home-primary-text: var(--palette-warm);
	--home-accent-text: var(--palette-warm);
	background: var(--base-ink);
}

body.svava-design:not(.home)[data-hero="pink"] .entry-content > .page-hero {
	--home-primary-text: var(--base-ink);
	--home-accent-text: var(--base-ink);
	background: var(--palette-warm);
}

body.svava-design:not(.home)[data-hero="pink"] .entry-content > .page-hero::after {
	box-shadow: -24px 24px 0 var(--base-ink);
}

/* Cards: section cards, story cards, learning paths and testimonials */
body.svava-design:not(.home)[data-cards] :is(.entry-content > .content-section:not(.quote-panel):not(.cta-panel):not(.faq-list), .entry-content section.feature-card, .entry-content .path-card) {
	border-color: transparent;
	box-shadow: none;
}

body.svava-design:not(.home)[data-cards="tint"] :is(.entry-content > .content-section:not(.quote-panel):not(.cta-panel):not(.faq-list), .entry-content section.feature-card, .entry-content .path-card) {
	background: var(--palette-cool);
}

body.svava-design:not(.home)[data-cards="pink"] :is(.entry-content > .content-section:not(.quote-panel):not(.cta-panel):not(.faq-list), .entry-content section.feature-card, .entry-content .path-card) {
	background: color-mix(in srgb, var(--palette-warm) 35%, #ffffff);
}

body.svava-design:not(.home)[data-cards="outline"] :is(.entry-content > .content-section:not(.quote-panel):not(.cta-panel):not(.faq-list), .entry-content section.feature-card, .entry-content .path-card) {
	border: 1.5px solid var(--base-ink);
	background: transparent;
}

body.svava-design:not(.home)[data-cards="dark"] :is(.entry-content > .content-section:not(.quote-panel):not(.cta-panel):not(.faq-list), .entry-content section.feature-card, .entry-content .path-card) {
	--palette-ink: var(--base-canvas);
	--home-primary-text: var(--palette-warm);
	--home-accent-text: var(--palette-warm);
	background: var(--base-ink);
	color: var(--base-canvas);
}

/* "Need a hand choosing?" and other call-to-action panels */
body.svava-design:not(.home)[data-cta="pink"] .entry-content .cta-panel {
	--home-section-text: var(--base-ink);
	--home-section-accent: var(--base-ink);
	background: var(--palette-warm);
}

body.svava-design:not(.home)[data-cta="pink"] .entry-content .cta-panel .button {
	background: var(--base-ink);
	color: var(--base-canvas);
}

body.svava-design:not(.home)[data-cta="green"] .entry-content .cta-panel {
	--home-section-text: var(--palette-on-primary);
	--home-section-accent: var(--palette-on-primary);
	background: var(--palette-primary);
}

/* Section headings with a short accent bar */
body.svava-design:not(.home)[data-headings="bar"] .entry-content :is(.content-section-head > :is(h1, h2, h3), section.feature-card > h2, .cta-panel h2)::after {
	display: block;
	width: 48px;
	height: 4px;
	margin-top: 14px;
	border-radius: 2px;
	background: var(--home-accent-text);
	content: "";
}

body.svava-design:not(.home)[data-headings="bar"] .entry-content .cta-panel h2::after {
	background: var(--home-section-accent);
}

/* Small labels above headings use the palette's label colour inside cards too
   (call-to-action and teacher panels keep their own). */
body.svava-design:not(.home) .entry-content .eyebrow:not(:is(.cta-panel, .teacher-strip, .youtube-feature) .eyebrow) {
	color: var(--home-primary-text);
}

/* FAQ "rows" look: each pair of questions shares one colour, so the two-column
   grid reads as rows (the colours of questions 1, 3, 5 and 7). */
body.svava-design:not(.home)[data-faq="rows"] .entry-content .faq-list .faq-item:nth-child(4n + 2) {
	--faq-tint: var(--palette-cool);
	--faq-mix: 75%;
	--faq-badge: var(--palette-primary);
}

body.svava-design:not(.home)[data-faq="rows"] .entry-content .faq-list .faq-item:nth-child(4n + 4) {
	--faq-tint: var(--palette-banner);
	--faq-mix: 28%;
	--faq-badge: var(--palette-primary);
}

/* Testimonials: colour the quote cards in rows, like the FAQ ------------- */
/* Paragraph 1 is a hidden "more" marker, so testimonials are paragraphs 2–7.
   Rows (2,3) and (6,7) use the pale band colour; row (4,5) the strip colour. */
body.svava-design.testimonials-layout .entry-content > p:not(:first-of-type):not(:last-child) {
	--testimonial-tint: var(--palette-cool);
	--testimonial-mix: 75%;
	border-color: transparent;
	background: color-mix(in srgb, var(--testimonial-tint) var(--testimonial-mix), var(--card));
}

body.svava-design.testimonials-layout .entry-content > p:not(:first-of-type):not(:last-child):is(:nth-of-type(4n), :nth-of-type(4n + 1)) {
	--testimonial-tint: var(--palette-banner);
	--testimonial-mix: 28%;
}

/* "Email all enquiries" note in the palette's strip colour, as on the FAQ. */
body.svava-design.testimonials-layout .entry-content > p:last-child {
	background: var(--palette-banner);
	color: var(--palette-banner-ink);
	font-weight: 600;
}

body.svava-design.testimonials-layout .entry-content > p:last-child a {
	color: var(--palette-banner-ink) !important;
}

/* Sections that open with a centred intro (e.g. "What to expect" on Private
   tuition): the intro is its own silvery container with a large title, and the
   section itself is not boxed. The silver is fixed greys in every palette. */
/* !important so palette card settings (e.g. outlined cards) don't box it again. */
body.svava-design:not(.home) .entry-content > .content-section:has(> .section-intro:first-child) {
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

body.svava-design:not(.home) .entry-content > .content-section > .section-intro:first-child {
	--palette-ink: #3c3742;
	--home-primary-text: #5b5763;
	max-width: none;
	margin: 0 0 24px;
	padding: clamp(48px, 7vw, 96px) clamp(24px, 5vw, 64px);
	border: 1px solid #d6d8dc;
	border-radius: 24px;
	background:
		radial-gradient(120% 140% at 18% 0%, rgba(255, 255, 255, .85) 0%, rgba(255, 255, 255, 0) 55%),
		linear-gradient(125deg, #f6f7f8 0%, #e3e5e8 32%, #f1f2f4 52%, #d8dbdf 78%, #eceef0 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 18px 40px rgba(60, 55, 66, .08);
	color: #3c3742;
	text-align: center;
}

body.svava-design:not(.home) .entry-content .section-intro .eyebrow {
	margin: 0 0 14px;
	color: #5b5763;
}

body.svava-design:not(.home) .entry-content .section-intro h2 {
	margin: 0;
	color: #3c3742;
	font-size: clamp(36px, 5vw, 60px);
	letter-spacing: -.035em;
	line-height: 1.1;
}

body.svava-design:not(.home) .entry-content .section-intro + .feature-grid {
	margin-top: 0;
}

/* No extra space above the first heading inside a card. */
body.svava-design:not(.home) .entry-content .feature-card > :first-child {
	margin-top: 0;
}

/* Feature card grids (e.g. the boxes under "What to expect"): tinted like the
   FAQ, including the FAQ "rows" setting where a palette turns it on. */
body.svava-design:not(.home) .entry-content .feature-grid > article.feature-card {
	--feature-tint: var(--palette-cool);
	--feature-mix: 75%;
	/* A faint edge keeps every card visible, even where a tint is close to the page colour. */
	border-color: color-mix(in srgb, var(--palette-ink) 9%, transparent);
	background: color-mix(in srgb, var(--feature-tint) var(--feature-mix), var(--card));
}

body.svava-design:not(.home) .entry-content .feature-grid > article.feature-card:nth-child(4n + 2) {
	--feature-tint: var(--palette-warm);
	--feature-mix: 40%;
}

body.svava-design:not(.home) .entry-content .feature-grid > article.feature-card:nth-child(4n + 3) {
	--feature-tint: var(--palette-banner);
	--feature-mix: 28%;
}

body.svava-design:not(.home) .entry-content .feature-grid > article.feature-card:nth-child(4n + 4) {
	--feature-tint: var(--palette-accent);
	--feature-mix: 14%;
}

body.svava-design:not(.home)[data-faq="rows"] .entry-content .feature-grid > article.feature-card:nth-child(4n + 2) {
	--feature-tint: var(--palette-cool);
	--feature-mix: 75%;
}

body.svava-design:not(.home)[data-faq="rows"] .entry-content .feature-grid > article.feature-card:nth-child(4n + 4) {
	--feature-tint: var(--palette-banner);
	--feature-mix: 28%;
}

/* Private tuition: tint the "Lesson fees" and "Cancellation policy" boxes to
   match the feature boxes above. !important so palette card settings
   (e.g. outlined cards) don't remove the tint. */
body.svava-design.page-id-496 .entry-content > .content-section.is-split {
	border-color: color-mix(in srgb, var(--palette-ink) 9%, transparent) !important;
	background: color-mix(in srgb, var(--palette-banner) 28%, var(--card)) !important;
}

body.svava-design.page-id-496 .entry-content > .content-section.is-split.info-panel {
	background: color-mix(in srgb, var(--palette-warm) 40%, var(--card)) !important;
}

/* The fees table stays white so the prices read clearly on the tint. */
body.svava-design.page-id-496 .entry-content .info-panel table {
	background: var(--card);
}

/* Fees: pricing cards (built from the TablePress fees table) ----------- */
/* The fees box drops its two columns so the cards get the full width. */
body.svava-design:not(.home) .entry-content > .content-section.is-split:has(.price-cards) {
	display: block;
}

body.svava-design:not(.home) .content-section:has(.price-cards) .content-section-head {
	margin-bottom: 12px;
}

body.svava-design:not(.home) .content-section:has(.price-cards) .content-section-body {
	max-width: none;
}

body.svava-design:not(.home) .content-section:has(.price-cards) .content-section-body > :not(.price-cards) {
	max-width: var(--prose-max);
}

body.svava-design:not(.home) .entry-content .price-cards {
	display: grid;
	max-width: none;
	margin: 36px 0 0;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
	align-items: stretch;
	gap: 20px;
}

body.svava-design:not(.home) .entry-content .price-card {
	position: relative;
	display: flex;
	padding: 40px 28px 28px;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	border: 1px solid color-mix(in srgb, var(--palette-ink) 10%, transparent);
	border-radius: 22px;
	background: var(--card);
	box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 14px 34px color-mix(in srgb, var(--palette-ink) 8%, transparent);
	text-align: center;
	transition: transform .2s ease, box-shadow .2s ease;
}

body.svava-design:not(.home) .entry-content .price-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 22px 44px color-mix(in srgb, var(--palette-ink) 14%, transparent);
}

body.svava-design:not(.home) .entry-content .price-card p {
	max-width: none;
	margin: 0;
}

body.svava-design:not(.home) .entry-content .price-card-name {
	color: var(--home-primary-text);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

body.svava-design:not(.home) .entry-content .price-card-price {
	display: flex;
	margin-top: 14px !important;
	flex-direction: column;
	align-items: center;
	line-height: 1;
}

body.svava-design:not(.home) .entry-content .price-amount {
	color: var(--palette-ink);
	font-size: clamp(52px, 6vw, 68px);
	font-weight: 800;
	letter-spacing: -.045em;
}

body.svava-design:not(.home) .entry-content .price-unit {
	margin-top: 10px;
	color: color-mix(in srgb, var(--palette-ink) 70%, transparent);
	font-size: 15px;
	font-weight: 500;
}

body.svava-design:not(.home) .entry-content .price-card-total {
	margin-top: 18px !important;
	padding-top: 16px;
	width: 100%;
	border-top: 1px solid color-mix(in srgb, var(--palette-ink) 12%, transparent);
	color: var(--palette-ink);
	font-size: 15px;
	font-weight: 600;
}

body.svava-design:not(.home) .entry-content .price-card-saving {
	display: inline-block;
	margin-top: 8px !important;
	padding: 3px 12px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--palette-primary) 14%, transparent);
	color: var(--home-primary-text);
	font-size: 13px;
	font-weight: 700;
}

body.svava-design:not(.home) .entry-content .price-card-cta {
	display: inline-flex;
	min-height: 44px;
	margin-top: auto;
	padding: 10px 22px;
	align-items: center;
	gap: 6px;
	border: 1.5px solid var(--palette-ink);
	border-radius: 999px;
	color: var(--palette-ink) !important;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none !important;
}

/* The button sits at the bottom of every card so they line up across the row. */
body.svava-design:not(.home) .entry-content .price-card > :nth-last-child(2) {
	margin-bottom: 22px !important;
}

body.svava-design:not(.home) .entry-content .price-card-cta:hover {
	background: var(--palette-ink);
	color: var(--base-canvas) !important;
}

/* Best value: the standout card, in the palette's dark ink with light text. */
body.svava-design:not(.home) .entry-content .price-card.is-best {
	--palette-ink: var(--base-canvas);
	--home-primary-text: var(--palette-warm);
	border-color: transparent;
	background: var(--base-ink);
	box-shadow: 0 22px 48px color-mix(in srgb, var(--base-ink) 30%, transparent);
}

body.svava-design:not(.home) .entry-content .price-card.is-best .price-card-cta {
	border-color: var(--palette-warm);
	background: var(--palette-warm);
	color: var(--base-ink) !important;
}

body.svava-design:not(.home) .entry-content .price-card.is-best .price-card-cta:hover {
	background: transparent;
	color: var(--palette-warm) !important;
}

body.svava-design:not(.home) .entry-content .price-card.is-best .price-card-saving {
	background: color-mix(in srgb, var(--palette-warm) 22%, transparent);
	color: var(--palette-warm);
}

body.svava-design:not(.home) .entry-content .price-badge {
	position: absolute;
	top: 0;
	left: 50%;
	padding: 6px 16px;
	transform: translate(-50%, -50%);
	border-radius: 999px;
	background: var(--palette-warm);
	color: var(--base-ink);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	white-space: nowrap;
}

@media (min-width: 900px) {
	body.svava-design:not(.home) .entry-content .price-card.is-best {
		transform: translateY(-10px);
	}

	body.svava-design:not(.home) .entry-content .price-card.is-best:hover {
		transform: translateY(-14px);
	}
}

@media (prefers-reduced-motion: reduce) {
	body.svava-design:not(.home) .entry-content .price-card {
		transition: none;
	}
}

/* Resources page ---------------------------------------------------- */
/* Jump links under the title, styled like the main menu: plain text with a
   thin underline that slides in on hover. */
body.svava-design:not(.home) .entry-content > .resource-nav {
	display: flex;
	max-width: none;
	margin: 0 0 8px -0.8rem;
	flex-wrap: wrap;
	gap: .3rem;
}

body.svava-design:not(.home) .entry-content .resource-nav a {
	position: relative;
	display: inline-flex;
	min-height: 44px;
	padding: .75rem .8rem;
	align-items: center;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--palette-ink) !important;
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 0;
	text-decoration: none !important;
}

body.svava-design:not(.home) .entry-content .resource-nav a::before {
	position: absolute;
	right: .8rem;
	bottom: .45rem;
	left: .8rem;
	height: 1px;
	background: currentColor;
	content: "";
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .22s ease;
}

body.svava-design:not(.home) .entry-content .resource-nav a:is(:hover, :focus-visible) {
	background: transparent;
	color: var(--palette-ink) !important;
}

body.svava-design:not(.home) .entry-content .resource-nav a:is(:hover, :focus-visible)::before {
	transform: scaleX(1);
}

/* Topic icons, drawn as masks so they take any palette colour. */
[data-topic] {
	--topic-icon: url("data:image/svg+xml;utf8,<svg 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'><path d='M10 13a5 5 0 0 0 7.5.5l3-3a5 5 0 0 0-7-7l-1.7 1.7'/><path d='M14 11a5 5 0 0 0-7.5-.5l-3 3a5 5 0 0 0 7 7l1.7-1.7'/></svg>");
}

[data-topic="online"] {
	--topic-icon: url("data:image/svg+xml;utf8,<svg 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'><circle cx='12' cy='12' r='10'/><path d='M2 12h20M12 2a15 15 0 0 1 0 20M12 2a15 15 0 0 0 0 20'/></svg>");
}

[data-topic="apps"] {
	--topic-icon: url("data:image/svg+xml;utf8,<svg 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'><rect x='6' y='2' width='12' height='20' rx='2.5'/><path d='M11 18h2'/></svg>");
}

[data-topic="books"] {
	--topic-icon: url("data:image/svg+xml;utf8,<svg 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'><path d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20V3H6.5A2.5 2.5 0 0 0 4 5.5z'/><path d='M4 19.5A2.5 2.5 0 0 0 6.5 22H20v-5'/></svg>");
}

[data-topic="dictionaries"] {
	--topic-icon: url("data:image/svg+xml;utf8,<svg 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'><circle cx='11' cy='11' r='7'/><path d='M21 21l-4.3-4.3'/></svg>");
}

[data-topic="shops"] {
	--topic-icon: url("data:image/svg+xml;utf8,<svg 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'><path d='M5 7h14l-1 14H6z'/><path d='M9 10V6a3 3 0 0 1 6 0v4'/></svg>");
}

/* Sections: full width, tinted in alternating rows.
   !important so palette card settings don't remove the tint. */
body.svava-design:not(.home) .entry-content > .resource-section {
	display: block;
	scroll-margin-top: 140px;
	border-color: color-mix(in srgb, var(--palette-ink) 9%, transparent) !important;
	background: color-mix(in srgb, var(--palette-cool) 75%, var(--card)) !important;
}

body.svava-design:not(.home) .entry-content > .resource-section:nth-of-type(odd) {
	background: color-mix(in srgb, var(--palette-banner) 22%, var(--card)) !important;
}

body.svava-design:not(.home) .resource-section .content-section-head {
	margin-bottom: 24px;
}

/* Heading with its topic icon in a coloured circle: the circle is ::before
   and the icon ::after (with !important so the heading-bar setting can't
   take over ::after). */
body.svava-design:not(.home) .entry-content .resource-section .content-section-head > :is(h1, h2, h3) {
	position: relative;
	display: flex;
	min-height: 48px;
	padding-left: 64px;
	align-items: center;
	font-size: clamp(26px, 3vw, 34px);
}

body.svava-design:not(.home) .entry-content .resource-section .content-section-head > :is(h1, h2, h3)::before {
	position: absolute;
	top: 50%;
	left: 0;
	width: 48px;
	height: 48px;
	transform: translateY(-50%);
	border-radius: 50%;
	background: var(--palette-primary);
	content: "";
}

body.svava-design:not(.home) .entry-content .resource-section .content-section-head > :is(h1, h2, h3)::after {
	position: absolute !important;
	top: 50% !important;
	left: 13px !important;
	display: block !important;
	width: 22px !important;
	height: 22px !important;
	margin: 0 !important;
	transform: translateY(-50%) !important;
	border-radius: 0 !important;
	background: var(--palette-on-primary) !important;
	content: "" !important;
	-webkit-mask: var(--topic-icon) center / contain no-repeat;
	mask: var(--topic-icon) center / contain no-repeat;
}

/* Resource cards. */
body.svava-design:not(.home) .resource-section .content-section-body {
	display: grid;
	max-width: none;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: 16px;
}

body.svava-design:not(.home) .entry-content .resource-section .content-section-body > p {
	max-width: none;
	margin: 0;
}

body.svava-design:not(.home) .entry-content .resource-section .content-section-body > p:has(strong):not(:has(a[href^="mailto:"])) {
	padding: 22px 24px;
	border: 1px solid color-mix(in srgb, var(--palette-ink) 9%, transparent);
	border-radius: 16px;
	background: var(--card);
	box-shadow: 0 8px 22px color-mix(in srgb, var(--palette-ink) 6%, transparent);
	font-size: 15px;
	line-height: 1.65;
	transition: transform .2s ease, box-shadow .2s ease;
}

body.svava-design:not(.home) .entry-content .resource-section .content-section-body > p:has(strong):not(:has(a[href^="mailto:"])):hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 32px color-mix(in srgb, var(--palette-ink) 11%, transparent);
}

body.svava-design:not(.home) .entry-content .resource-section .content-section-body > p strong {
	color: var(--palette-ink);
	font-size: 17px;
	line-height: 1.35;
}

body.svava-design:not(.home) .entry-content .resource-section .content-section-body a {
	color: var(--palette-ink) !important;
	text-decoration-color: color-mix(in srgb, var(--palette-ink) 30%, transparent);
	text-decoration-thickness: 1.5px;
}

body.svava-design:not(.home) .entry-content .resource-section .content-section-body a:hover {
	color: var(--home-primary-text) !important;
	text-decoration-color: currentColor;
}

body.svava-design:not(.home) .entry-content .resource-section .content-section-body a[href^="http"]::after {
	display: inline-block;
	margin-left: 4px;
	color: var(--home-accent-text);
	content: "\2197";
	font-size: .85em;
	text-decoration: none;
}

/* Plain notes span the full width under the cards. */
body.svava-design:not(.home) .entry-content .resource-section .content-section-body > p:not(:has(strong)) {
	grid-column: 1 / -1;
	color: color-mix(in srgb, var(--palette-ink) 80%, transparent);
	font-size: 15px;
}

/* "Email all enquiries" as a closing note in the strip colour. */
body.svava-design:not(.home) .entry-content .resource-section .content-section-body > p:has(a[href^="mailto:"]) {
	grid-column: 1 / -1;
	padding: 20px 24px;
	border-radius: 16px;
	background: var(--palette-banner);
	text-align: center;
}

body.svava-design:not(.home) .entry-content .resource-section .content-section-body > p:has(a[href^="mailto:"]) a {
	color: var(--palette-banner-ink) !important;
	text-decoration-color: currentColor;
}

@media (prefers-reduced-motion: reduce) {
	body.svava-design:not(.home) .entry-content .resource-section .content-section-body > p,
	body.svava-design:not(.home) .entry-content .resource-nav a {
		transition: none;
	}
}

/* Resources fixes: no underline on the jump links, no arrow on image links,
   and old pictures inside a card shown at a tidy size. */
body.svava-design:not(.home) .entry-content .resource-section .content-section-body a[href]:has(img)::after {
	content: none;
}

body.svava-design:not(.home) .entry-content .resource-section .content-section-body img {
	display: block;
	width: auto;
	max-width: 100%;
	max-height: 160px;
	margin: 16px auto 0;
	border-radius: 12px;
	object-fit: contain;
}

/* Resources: "Email all enquiries" in its own closing section at the bottom. */
body.svava-design:not(.home) .entry-content > .resource-contact {
	display: flex;
	max-width: none;
	min-height: 96px;
	margin-top: 24px;
	padding: clamp(24px, 3vw, 36px);
	align-items: center;
	justify-content: center;
	border-radius: 20px;
	background: var(--palette-banner);
	text-align: center;
}

body.svava-design:not(.home) .entry-content > .resource-contact p {
	max-width: none;
	margin: 0;
	font-size: 18px;
}

body.svava-design:not(.home) .entry-content > .resource-contact a {
	color: var(--palette-banner-ink) !important;
	text-decoration-color: currentColor;
	text-underline-offset: .25em;
}

/* Envelope icon on the email banner. */
body.svava-design:not(.home) .entry-content > .resource-contact p {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--palette-banner-ink);
	font-weight: 600;
}

body.svava-design:not(.home) .entry-content > .resource-contact p::before {
	display: inline-block;
	width: 24px;
	height: 24px;
	flex: 0 0 auto;
	background: currentColor;
	content: "";
	-webkit-mask: url("data:image/svg+xml;utf8,<svg 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'><rect x='3' y='5' width='18' height='14' rx='2'/><path d='M3 7l9 6 9-6'/></svg>") center / contain no-repeat;
	mask: url("data:image/svg+xml;utf8,<svg 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'><rect x='3' y='5' width='18' height='14' rx='2'/><path d='M3 7l9 6 9-6'/></svg>") center / contain no-repeat;
}

body.svava-design:not(.home) .entry-content > .resource-contact a {
	text-decoration: none !important;
}



/* Boxes with a single destination work as buttons ------------------------
   (marked .link-card by the theme; its link is .link-card-link). The link is
   stretched over the whole box, and the box fills with the main palette
   colour on hover or keyboard focus. */
body.svava-design:not(.home) .entry-content .link-card {
	position: relative;
	cursor: pointer;
	transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease, color .25s ease;
}

body.svava-design:not(.home) .entry-content .link-card .link-card-link::before {
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: inherit;
	content: "";
}

body.svava-design:not(.home) .entry-content .link-card:is(:hover, :has(.link-card-link:focus-visible)) {
	--palette-ink: var(--palette-on-primary);
	--palette-banner-ink: var(--palette-on-primary);
	--home-primary-text: var(--palette-on-primary);
	--home-accent-text: var(--palette-on-primary);
	--home-section-text: var(--palette-on-primary);
	--home-section-accent: var(--palette-on-primary);
	border-color: var(--palette-primary) !important;
	background: var(--palette-primary) !important;
	box-shadow: 0 18px 36px color-mix(in srgb, var(--palette-primary) 30%, transparent) !important;
	color: var(--palette-on-primary);
	transform: translateY(-3px);
}

/* Text and buttons inside a hovered box switch to the light colour. */
body.svava-design:not(.home) .entry-content .link-card:is(:hover, :has(.link-card-link:focus-visible)) :is(h1, h2, h3, h4, p, li, strong, em, span, .eyebrow, .path-number, .price-card-name, .price-amount, .price-unit, .price-card-total) {
	color: var(--palette-on-primary) !important;
}

body.svava-design:not(.home) .entry-content .link-card:is(:hover, :has(.link-card-link:focus-visible)) :is(.button, .price-card-cta, .price-badge, .price-card-saving) {
	border-color: var(--palette-on-primary) !important;
	background: var(--palette-on-primary) !important;
	color: var(--palette-primary) !important;
}

body.svava-design:not(.home) .entry-content .link-card:is(:hover, :has(.link-card-link:focus-visible)) :is(h1, h2, h3)::after {
	background: var(--palette-on-primary) !important;
}

body.svava-design:not(.home) .entry-content .link-card .link-card-link:focus-visible {
	outline: none;
}

body.svava-design:not(.home) .entry-content .link-card:has(.link-card-link:focus-visible) {
	outline: 3px solid var(--palette-accent);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	body.svava-design:not(.home) .entry-content .link-card {
		transition: none;
	}

	body.svava-design:not(.home) .entry-content .link-card:is(:hover, :has(.link-card-link:focus-visible)) {
		transform: none;
	}
}

/* Sections reached from a jump link take keyboard focus without a ring. */
body.svava-design:not(.home) .entry-content > .resource-section:focus {
	outline: none;
}

@media (prefers-reduced-motion: reduce) {
	body.svava-design:not(.home) .entry-content .resource-nav a::before {
		transition: none;
	}
}

/* Term dates: cards built from a "Term …:" list ----------------------- */
/* The box drops its two columns so the cards get the full width. */
body.svava-design:not(.home) .entry-content > .content-section.is-split:has(.term-cards) {
	display: block;
}

body.svava-design:not(.home) .content-section:has(.term-cards) .content-section-head {
	margin-bottom: 12px;
}

body.svava-design:not(.home) .content-section:has(.term-cards) .content-section-body {
	max-width: none;
}

body.svava-design:not(.home) .content-section:has(.term-cards) .content-section-body > :not(.term-cards) {
	max-width: var(--prose-max);
}

body.svava-design:not(.home) .entry-content .term-cards {
	display: grid;
	max-width: none;
	margin: 24px 0 28px;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	gap: 20px;
}

body.svava-design:not(.home) .entry-content .term-card {
	position: relative;
	padding: 28px 28px 26px 92px;
	border: 1px solid color-mix(in srgb, var(--palette-ink) 10%, transparent);
	border-radius: 20px;
	background: var(--card);
	box-shadow: 0 14px 34px color-mix(in srgb, var(--palette-ink) 8%, transparent);
}

/* Calendar icon in a coloured circle. */
body.svava-design:not(.home) .entry-content .term-card::before,
body.svava-design:not(.home) .entry-content .term-card::after {
	position: absolute;
	top: 28px;
	content: "";
}

body.svava-design:not(.home) .entry-content .term-card::before {
	left: 26px;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--palette-primary);
}

body.svava-design:not(.home) .entry-content .term-card::after {
	top: 41px;
	left: 39px;
	width: 22px;
	height: 22px;
	background: var(--palette-on-primary);
	-webkit-mask: url("data:image/svg+xml;utf8,<svg 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'><rect x='3' y='4' width='18' height='18' rx='2'/><path d='M16 2v4M8 2v4M3 10h18'/></svg>") center / contain no-repeat;
	mask: url("data:image/svg+xml;utf8,<svg 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'><rect x='3' y='4' width='18' height='18' rx='2'/><path d='M16 2v4M8 2v4M3 10h18'/></svg>") center / contain no-repeat;
}

body.svava-design:not(.home) .entry-content .term-card p {
	max-width: none;
	margin: 0;
}

body.svava-design:not(.home) .entry-content .term-name {
	color: var(--home-primary-text);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

body.svava-design:not(.home) .entry-content .term-dates {
	margin-top: 6px !important;
	color: var(--palette-ink);
	font-size: clamp(20px, 2.2vw, 24px);
	font-weight: 700;
	letter-spacing: -.02em;
	line-height: 1.3;
}

body.svava-design:not(.home) .entry-content .term-note {
	display: inline-block;
	margin-top: 12px !important;
	padding: 4px 12px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--palette-warm) 35%, transparent);
	color: var(--palette-ink);
	font-size: 14px;
	font-weight: 500;
}

@media (max-width: 520px) {
	body.svava-design:not(.home) .entry-content .term-card {
		padding: 84px 24px 24px;
	}

	body.svava-design:not(.home) .entry-content .term-card::before {
		top: 24px;
		left: 24px;
	}

	body.svava-design:not(.home) .entry-content .term-card::after {
		top: 37px;
		left: 37px;
	}
}

/* Group classes: icons on the "How group lessons work" cards ------------- */
body.svava-design.page-id-740 .entry-content .feature-grid > article.feature-card {
	position: relative;
	padding-top: 96px;
}

body.svava-design.page-id-740 .entry-content .feature-grid > article.feature-card::before,
body.svava-design.page-id-740 .entry-content .feature-grid > article.feature-card::after {
	position: absolute;
	content: "";
}

body.svava-design.page-id-740 .entry-content .feature-grid > article.feature-card::before {
	top: 32px;
	left: clamp(28px, 3.5vw, 48px);
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--palette-primary);
}

body.svava-design.page-id-740 .entry-content .feature-grid > article.feature-card::after {
	top: 45px;
	left: calc(clamp(28px, 3.5vw, 48px) + 13px);
	width: 22px;
	height: 22px;
	background: var(--palette-on-primary);
	-webkit-mask: var(--feature-icon) center / contain no-repeat;
	mask: var(--feature-icon) center / contain no-repeat;
}

/* Meet weekly: clock. */
body.svava-design.page-id-740 .entry-content .feature-grid > article.feature-card:nth-child(1) {
	--feature-icon: url("data:image/svg+xml;utf8,<svg 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'><circle cx='12' cy='12' r='9'/><path d='M12 7v5l3 2'/></svg>");
}

/* Small class: people. */
body.svava-design.page-id-740 .entry-content .feature-grid > article.feature-card:nth-child(2) {
	--feature-icon: url("data:image/svg+xml;utf8,<svg 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'><circle cx='9' cy='8' r='3.5'/><path d='M2.5 20a6.5 6.5 0 0 1 13 0'/><path d='M16 4.6a3.5 3.5 0 0 1 0 6.8M18 14.2a6.5 6.5 0 0 1 3.5 5.8'/></svg>");
}

/* Between classes: open book. */
body.svava-design.page-id-740 .entry-content .feature-grid > article.feature-card:nth-child(3) {
	--feature-icon: url("data:image/svg+xml;utf8,<svg 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'><path d='M2 4h7a3 3 0 0 1 3 3v13a2 2 0 0 0-2-2H2z'/><path d='M22 4h-7a3 3 0 0 0-3 3v13a2 2 0 0 1 2-2h8z'/></svg>");
}

/* Find your level: rising bars. */
body.svava-design.page-id-740 .entry-content .feature-grid > article.feature-card:nth-child(4) {
	--feature-icon: url("data:image/svg+xml;utf8,<svg 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'><path d='M5 20v-5M12 20V10M19 20V4'/></svg>");
}

/* Group classes: tint the term dates and cancellation boxes, as on Private
   tuition. !important so palette card settings don't remove the tint. */
body.svava-design.page-id-740 .entry-content > .content-section.is-split {
	border-color: color-mix(in srgb, var(--palette-ink) 9%, transparent) !important;
	background: color-mix(in srgb, var(--palette-banner) 28%, var(--card)) !important;
}

body.svava-design.page-id-740 .entry-content > .content-section.is-split.info-panel {
	background: color-mix(in srgb, var(--palette-warm) 40%, var(--card)) !important;
}

/* Title photos by section.
   Learn Icelandic section (Learn Icelandic and the pages under it in the
   menu): pink thrift growing in black lava gravel.
   Contact: stone cairns and white flowers on lava. */
body.svava-design.learn-section:not(.home) .entry-content > .page-hero::after {
	background-image: url("images/pink-thrift-gravel-800.jpg");
	background-position: 36% 50%;
}

body.svava-design.contact-page:not(.home) .entry-content > .page-hero::after {
	background-image: url("images/lava-cairns-flowers-800.jpg");
	background-position: 50% 78%;
}

@media (min-width: 900px) {
	body.svava-design.learn-section:not(.home) .entry-content > .page-hero::after {
		background-image: url("images/pink-thrift-gravel-1400.jpg");
	}

	body.svava-design.contact-page:not(.home) .entry-content > .page-hero::after {
		background-image: url("images/lava-cairns-flowers-1400.jpg");
	}
}

/* Testimonials: the quotes sit in a grid, and its row gap was adding to the
   space under the title area. Use 24px gaps (as on the FAQ) and take that
   gap off the title area's spacing so content starts at the same height as
   on the other pages. */
body.svava-design.testimonials-layout .entry-content {
	gap: 24px;
}

body.svava-design.testimonials-layout:not(.home) .entry-content > .page-hero {
	margin-bottom: calc(clamp(48px, 6vw, 80px) - 24px);
}

/* Phones: tighter spacing on content pages --------------------------- */
@media (max-width: 620px) {
	/* Title area: less padding, photo closer to the text. */
	body.svava-design:not(.home) .entry-content > .page-hero {
		margin-bottom: 32px;
		padding-top: 32px;
		padding-bottom: 28px;
	}

	body.svava-design.testimonials-layout:not(.home) .entry-content > .page-hero {
		margin-bottom: 16px;
	}

	body.svava-design:not(.home) .entry-content .page-hero h1 {
		font-size: 32px;
	}

	body.svava-design:not(.home) .page-hero .lead,
	body.svava-design:not(.home) .page-hero p {
		margin-top: 16px;
		font-size: 17px;
	}

	body.svava-design:not(.home) .entry-content > .page-hero::after {
		margin: 28px 0 22px 22px;
		box-shadow: -18px 18px 0 var(--palette-warm);
	}

	/* One 16px rhythm between blocks and between cards. */
	body.svava-design:not(.home) .entry-content > * + *,
	body.svava-design:not(.home) .entry-content > .content-section,
	body.svava-design:not(.home) .entry-content > .resource-contact,
	body.svava-design:not(.home) .entry-content > .youtube-feature.is-in-content {
		margin-top: 16px;
	}

	body.svava-design:not(.home) .entry-content > .page-hero + * {
		margin-top: 0;
	}

	body.svava-design:not(.home) .entry-content :is(.feature-grid, .path-grid, .faq-list, .price-cards, .term-cards),
	body.svava-design.testimonials-layout .entry-content,
	body.svava-design:not(.home) .resource-section .content-section-body {
		gap: 16px;
	}

	/* Boxes: 22px padding, and smaller cards inside other boxes. */
	body.svava-design:not(.home) .entry-content :is(.content-section, .feature-card, .quote-panel, .cta-panel, .contact-card, .teacher-strip, .info-panel, .youtube-feature) {
		padding: 22px;
		border-radius: 18px;
	}

	body.svava-design:not(.home) .entry-content .faq-list .faq-item,
	body.svava-design:not(.home) .entry-content .path-card,
	body.svava-design.testimonials-layout .entry-content > p:not(:first-of-type):not(:last-child) {
		padding: 22px;
		border-radius: 18px;
	}

	body.svava-design.testimonials-layout .entry-content > p:not(:first-of-type):not(:last-child) {
		padding-top: 52px;
	}

	body.svava-design.testimonials-layout .entry-content > p:not(:first-of-type):not(:last-child)::before {
		left: 22px;
	}

	body.svava-design:not(.home) .entry-content .faq-list .faq-item > p {
		margin-top: 12px;
		padding-top: 12px;
	}

	body.svava-design:not(.home) .content-section-head > :is(h1, h2, h3),
	body.svava-design:not(.home) .entry-content .resource-section .content-section-head > :is(h1, h2, h3) {
		font-size: 24px;
	}

	body.svava-design:not(.home) .resource-section .content-section-head {
		margin-bottom: 16px;
	}

	body.svava-design:not(.home) .content-section-body {
		margin-top: 14px;
	}

	/* "What to expect" style silver headings. */
	body.svava-design:not(.home) .entry-content > .content-section > .section-intro:first-child {
		margin-bottom: 16px;
		padding: 32px 20px;
		border-radius: 18px;
	}

	body.svava-design:not(.home) .entry-content .section-intro h2 {
		font-size: 32px;
	}

	/* Cards with an icon on top (Group classes). */
	body.svava-design.page-id-740 .entry-content .feature-grid > article.feature-card {
		padding-top: 84px;
	}

	body.svava-design.page-id-740 .entry-content .feature-grid > article.feature-card::before {
		top: 22px;
		left: 22px;
	}

	body.svava-design.page-id-740 .entry-content .feature-grid > article.feature-card::after {
		top: 35px;
		left: 35px;
	}

	/* Pricing, term and resource cards inside their boxes. */
	body.svava-design:not(.home) .entry-content .price-cards,
	body.svava-design:not(.home) .entry-content .term-cards {
		margin-top: 20px;
	}

	body.svava-design:not(.home) .entry-content .price-card {
		padding: 30px 20px 22px;
		border-radius: 18px;
	}

	body.svava-design:not(.home) .entry-content .price-card.is-best {
		margin-top: 8px;
	}

	body.svava-design:not(.home) .entry-content .term-card {
		padding: 20px 20px 20px 84px;
		border-radius: 16px;
	}

	body.svava-design:not(.home) .entry-content .term-card::before {
		top: 20px;
		left: 20px;
	}

	body.svava-design:not(.home) .entry-content .term-card::after {
		top: 33px;
		left: 33px;
	}

	body.svava-design:not(.home) .entry-content .resource-section .content-section-body > p:has(strong):not(:has(a[href^="mailto:"])) {
		padding: 18px 20px;
		border-radius: 14px;
	}

	/* Jump links: closer together. */
	body.svava-design:not(.home) .entry-content > .resource-nav {
		margin-bottom: 0;
		row-gap: 0;
	}

	/* YouTube panel. */
	body.svava-design.svava-palette .entry-content .youtube-feature {
		gap: 24px;
	}

	body.svava-design.svava-palette .entry-content .youtube-feature h2 {
		font-size: 28px;
	}

	body.svava-design.svava-palette .entry-content .youtube-feature-player {
		margin-left: 14px;
		box-shadow: -14px 14px 0 var(--palette-warm);
	}

	/* Closing notes and the space before the flower strip. */
	body.svava-design:not(.home) .entry-content > .resource-contact {
		min-height: 0;
		padding: 20px;
	}

	body.svava-design:not(.home) .entry-content,
	body.svava-design:not(.home) .post-list {
		padding-bottom: 40px;
	}

	/* Flower strip: zoom in so the flowers are bigger and there is less empty sky. */
	body.svava-design:not(.home) .page-flowers {
		position: relative;
		height: 130px;
	}

	body.svava-design:not(.home) .page-flowers > svg {
		position: absolute;
		right: 0;
		bottom: 0;
		left: 0;
		height: 220px;
	}
}

/* Group classes: course timetable (inc/course-timetable.php) ------------ */
/* Heading on top, table across the full width, like the term dates. */
body.svava-design:not(.home) .entry-content > .content-section.is-split.course-timetable-section {
	display: block;
}

body.svava-design:not(.home) .course-timetable-section .content-section-head {
	margin-bottom: 20px;
}

body.svava-design:not(.home) .course-timetable-section .content-section-body {
	max-width: none;
}

body.svava-design:not(.home) .entry-content table.course-timetable {
	width: 100%;
	max-width: none;
	margin: 0;
	border: 1px solid color-mix(in srgb, var(--palette-ink) 10%, transparent);
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 20px;
	background: var(--card);
	box-shadow: 0 14px 34px color-mix(in srgb, var(--palette-ink) 8%, transparent);
	overflow: hidden;
	font-size: 16px;
	line-height: 1.4;
}

body.svava-design:not(.home) .entry-content .course-timetable :is(th, td) {
	padding: 18px 20px;
	border: 0;
	text-align: left;
	vertical-align: middle;
}

body.svava-design:not(.home) .entry-content .course-timetable thead th {
	padding-top: 14px;
	padding-bottom: 14px;
	background: var(--palette-primary);
	color: var(--palette-on-primary);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	white-space: nowrap;
}

body.svava-design:not(.home) .entry-content .course-timetable tbody td {
	border-top: 1px solid color-mix(in srgb, var(--palette-ink) 9%, transparent);
	color: var(--palette-ink);
}

body.svava-design:not(.home) .entry-content .course-timetable tbody tr:first-child td {
	border-top: 0;
}

body.svava-design:not(.home) .entry-content .course-timetable tbody tr:nth-child(even) td {
	background: color-mix(in srgb, var(--palette-cool) 45%, transparent);
}

body.svava-design:not(.home) .entry-content .course-timetable tbody tr:hover td {
	background: color-mix(in srgb, var(--palette-warm) 22%, transparent);
}

/* Course name. */
body.svava-design:not(.home) .entry-content .course-timetable td:first-child {
	font-size: 17px;
	font-weight: 700;
	letter-spacing: -.01em;
}

/* Second line in a cell (time, lessons per week). */
body.svava-design:not(.home) .entry-content .course-timetable small {
	display: block;
	margin-top: 3px;
	color: color-mix(in srgb, var(--palette-ink) 68%, transparent);
	font-size: 14px;
	font-weight: 400;
}

body.svava-design:not(.home) .entry-content .course-timetable td[data-label="Day & time"],
body.svava-design:not(.home) .entry-content .course-timetable td[data-label="Starts"] {
	font-weight: 600;
	white-space: nowrap;
}

body.svava-design:not(.home) .entry-content .course-timetable td[data-label="Fee"] {
	color: var(--home-primary-text, var(--palette-primary));
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -.02em;
	white-space: nowrap;
}

body.svava-design:not(.home) .entry-content .course-timetable .course-new {
	display: table;
	margin-bottom: 6px;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--palette-warm);
	color: var(--palette-ink);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	line-height: 1.3;
	text-transform: uppercase;
}

body.svava-design:not(.home) .entry-content .course-timetable-note {
	display: inline-block;
	max-width: none;
	margin: 18px 0 0;
	padding: 6px 14px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--palette-warm) 35%, transparent);
	color: var(--palette-ink);
	font-size: 14px;
	font-weight: 500;
}

/* Narrower screens: one card per course, each value labelled. */
@media (max-width: 900px) {
	body.svava-design:not(.home) .entry-content table.course-timetable,
	body.svava-design:not(.home) .entry-content .course-timetable :is(tbody, tr, td) {
		display: block;
		width: 100%;
	}

	body.svava-design:not(.home) .entry-content table.course-timetable {
		border: 0;
		border-radius: 0;
		background: none;
		box-shadow: none;
		overflow: visible;
	}

	body.svava-design:not(.home) .entry-content .course-timetable thead {
		display: none;
	}

	body.svava-design:not(.home) .entry-content .course-timetable tbody {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
		gap: 16px;
	}

	body.svava-design:not(.home) .entry-content .course-timetable tr {
		border: 1px solid color-mix(in srgb, var(--palette-ink) 10%, transparent);
		border-radius: 20px;
		background: var(--card);
		box-shadow: 0 10px 26px color-mix(in srgb, var(--palette-ink) 8%, transparent);
		overflow: hidden;
	}

	body.svava-design:not(.home) .entry-content .course-timetable tbody tr td,
	body.svava-design:not(.home) .entry-content .course-timetable tbody tr:hover td {
		background: none;
	}

	body.svava-design:not(.home) .entry-content .course-timetable tbody td {
		display: grid;
		grid-template-columns: 7em 1fr;
		gap: 12px;
		align-items: baseline;
		padding: 10px 20px;
		white-space: normal;
	}

	body.svava-design:not(.home) .entry-content .course-timetable tbody td:first-child {
		display: block;
		padding: 16px 20px;
		border-top: 0;
		background: var(--palette-primary);
		color: var(--palette-on-primary);
	}

	body.svava-design:not(.home) .entry-content .course-timetable td:not(:first-child)::before {
		content: attr(data-label);
		color: color-mix(in srgb, var(--palette-ink) 60%, transparent);
		font-size: 12px;
		font-weight: 700;
		letter-spacing: .06em;
		text-transform: uppercase;
	}

	body.svava-design:not(.home) .entry-content .course-timetable tbody tr td:nth-child(2) {
		border-top: 0;
	}

	body.svava-design:not(.home) .entry-content .course-timetable tbody td:last-child {
		padding-bottom: 16px;
	}

	body.svava-design:not(.home) .entry-content .course-timetable-note {
		display: block;
		border-radius: 14px;
	}
}

/* The timetable box takes the "Meet weekly" card colour, not the darker
   banner tint the other Group classes boxes get (page-id-740 rule above). */
body.svava-design:not(.home) .entry-content > .content-section.is-split.course-timetable-section {
	border-color: color-mix(in srgb, var(--palette-ink) 9%, transparent) !important;
	background: color-mix(in srgb, var(--palette-cool) 75%, var(--card)) !important;
}
