/* Teachwise theme — component styles. Colours, fonts and sizes live in theme.json. */

:root {
	--tw-ink: var(--wp--preset--color--ink);
	--tw-sun: var(--wp--preset--color--sun);
	--tw-mint: var(--wp--preset--color--mint);
	--tw-line: var(--wp--preset--color--line);
	--tw-sea: var(--wp--preset--color--sea);
	--tw-text: var(--wp--preset--color--body-text);
	--tw-curve: var(--wp--custom--radius--curve);
	--tw-shadow: var(--wp--preset--shadow--soft);
	--tw-display: var(--wp--preset--font-family--display);
}

/* ---------- Page rhythm ---------- */
html, body { overflow-x: clip; }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.tw-content-full > * + *,
main > .tw-section + .tw-section,
main > .wp-block-post-content + * { margin-block-start: 0; }
.tw-section {
	padding-block: var(--wp--preset--spacing--70);
	position: relative;
}
.tw-section + .tw-section.has-background:not(.is-style-tw-curve-top) { margin-block-start: 0; }
.tw-page-hero { padding-block: var(--wp--preset--spacing--70) var(--wp--preset--spacing--60); }
.tw-page-hero__inner > h1 { max-width: 900px; }
.tw-page-hero__inner > * + * { margin-top: 16px; }
.tw-prose { padding-block: var(--wp--preset--spacing--60); }
.tw-center { text-align: center; }
.tw-strong { color: var(--tw-ink); font-weight: 600; font-size: var(--wp--preset--font-size--large); }
.tw-small, .tw-small p { font-size: var(--wp--preset--font-size--small); }
h1 em, h2 em { font-style: italic; color: var(--tw-sea); }

/* Curved corners (the signature shape) */
.is-style-tw-curve { border-bottom-right-radius: var(--tw-curve); }
.is-style-tw-curve-top { border-top-right-radius: var(--tw-curve); }
.is-style-tw-curve + .tw-section:not(.has-background) { padding-top: calc(var(--wp--preset--spacing--70) * 0.8); }

/* ---------- Header ---------- */
/* Like Univet: the header sits at the top of the page and scrolls away with it (not pinned) */
header.wp-block-template-part { position: relative; z-index: 100; }

/* Top strip: no background of its own, navy text on light pages */
.tw-topbar.tw-topbar,
.tw-topbar.has-background { background: transparent !important; border: 0; padding-block: 10px; font-size: var(--wp--preset--font-size--x-small); transition: opacity 0.25s ease, visibility 0.25s; }
.tw-topbar p { margin: 0; }
.tw-topbar.tw-topbar,
.tw-topbar.tw-topbar :is(p, a) { color: var(--tw-ink) !important; font-weight: 600; text-decoration: none; }
.tw-topbar.tw-topbar a:hover { color: var(--tw-sea) !important; }
/* Once the page scrolls, only the floating bar stays pinned */
.is-scrolled .tw-topbar { opacity: 0; visibility: hidden; }

/* Floating navy bar, Univet-style: container width, softly rounded corners */
.wp-block-template-part > .tw-header,
.tw-header {
	background: var(--tw-ink);
	border-bottom: 0;
	border-radius: 22px; /* same corner as the Mentoring band and other navy panels */
	width: auto;
	max-width: min(1600px, calc(100% - 24px));
	margin-inline: auto !important;
	margin-block-start: 6px;
	padding-block: 16px;
	padding-inline: clamp(16px, 2.2vw, 32px) !important;
	box-shadow: 0 10px 30px rgba(2, 12, 28, 0.22);
	transition: box-shadow 0.2s ease;
}
.is-scrolled .tw-header { box-shadow: 0 12px 28px rgba(2, 12, 28, 0.35); }
.tw-header__inner { gap: 24px; }
/* Logo, menu and button spread across the whole bar; the top strip lines up with it */
.tw-header > .tw-header__inner { max-width: none !important; width: 100%; }
.tw-topbar > .tw-topbar__inner { max-width: calc(min(1600px, 100vw - 24px) - 2 * clamp(16px, 2.2vw, 32px)) !important; width: 100%; margin-inline: auto !important; }

/* Pages that open with the photo hero: the photo and gradient run up behind the header */
body:has(.tw-hero.wp-block-cover) .tw-topbar.tw-topbar,
body:has(.tw-hero.wp-block-cover) .tw-topbar.tw-topbar :is(p, a) { color: #fff !important; text-shadow: 0 1px 2px rgba(2, 12, 28, 0.45); }
body:has(.tw-hero.wp-block-cover) .tw-topbar.tw-topbar a:hover { color: var(--tw-sun) !important; }
.tw-hero.wp-block-cover {
	margin-top: calc(-1 * var(--tw-header-h, 128px)) !important;
	padding-top: var(--tw-header-h, 128px) !important;
}
.tw-hero.wp-block-cover::before {
	content: ""; position: absolute; inset: 0 0 auto 0; z-index: 1; pointer-events: none;
	height: calc(var(--tw-header-h, 128px) + 60px);
	background: linear-gradient(180deg, rgba(17, 32, 51, 0.72) 0%, rgba(17, 32, 51, 0.35) 55%, rgba(17, 32, 51, 0) 100%);
}
.tw-brand { gap: 10px; }
.tw-brand .wp-block-site-title,
.tw-footer__brand { font-family: var(--tw-display); font-size: 1.6rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1; margin: 0; }
.tw-brand .wp-block-site-title a { color: #fff; text-decoration: none; }
.tw-brand .wp-block-site-logo:has(img) + .wp-block-site-title { display: none; }
.tw-nav { gap: 26px; }
.tw-nav a { color: #fff; text-decoration: none; }
.tw-nav .wp-block-navigation-item__content.wp-block-navigation-item__content { color: #fff; padding-block: 6px; border-bottom: 2px solid transparent; }
.tw-nav .wp-block-navigation-item__content.wp-block-navigation-item__content:hover { color: var(--tw-sun); }
.tw-nav .current-menu-item > .wp-block-navigation-item__content { border-bottom-color: var(--tw-sun); }
.tw-nav .wp-block-navigation__submenu-container {
	border: 1px solid var(--tw-line) !important;
	border-radius: 16px;
	box-shadow: var(--tw-shadow);
	padding: 8px !important;
	min-width: 280px !important;
	background: #fff;
	margin-top: 10px;
}
.tw-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content,
.tw-nav .wp-block-navigation__submenu-container a { color: var(--tw-ink); }
.tw-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 10px 12px !important; border-radius: 10px; border: 0; }
.tw-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: var(--tw-mint); }
.tw-header .tw-header__cta .wp-block-button__link {
	padding: 0.8rem 1.4rem; font-size: var(--wp--preset--font-size--small); white-space: nowrap;
	background: var(--tw-sun); color: var(--tw-ink); border-radius: 999px; font-weight: 600;
}
.tw-header .tw-header__cta .wp-block-button__link:hover { background: #fff; color: var(--tw-ink); }
/* Mobile menu toggle should read white against the navy bar when closed */
.tw-nav .wp-block-navigation__responsive-container-open { color: #fff; }
.tw-nav .wp-block-navigation__responsive-container-open svg { fill: #fff; }

/* Mobile menu overlay: full navy drawer, so the close icon and links stay white throughout */
.tw-nav.tw-nav .wp-block-navigation__responsive-container.is-menu-open.is-menu-open {
	padding: 24px; background: var(--tw-ink) !important; color: #fff !important;
}
.tw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { gap: 14px; font-size: 1.15rem; align-items: flex-start; }
.tw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { align-items: flex-start; }
.tw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { align-items: flex-start; }
.tw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { color: #fff; }
.tw-nav .wp-block-navigation__responsive-container.is-menu-open .has-child > .wp-block-navigation-item__content { font-weight: 700; }
.tw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { box-shadow: none; border: 0 !important; padding: 4px 0 4px 14px !important; margin: 0; background: transparent; }
.tw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { color: var(--wp--preset--color--on-dark); }
.tw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close { color: #fff; }
.tw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close svg { fill: #fff; }

/* Hybrid sub-menu */
.tw-subnav { background: #fff; border-bottom: 1px solid var(--tw-line); padding-block: 6px; }
.tw-subnav__inner { gap: 16px 28px; }
.tw-subnav__label { margin: 0; color: var(--tw-ink); }
.tw-subnav__nav { gap: 22px; font-size: var(--wp--preset--font-size--small); }
.tw-subnav__nav a { color: var(--tw-text); text-decoration: none; }
.tw-subnav__nav .wp-block-navigation-item__content { padding-block: 14px; border-bottom: 3px solid transparent; }
.tw-subnav__nav .current-menu-item > .wp-block-navigation-item__content { color: var(--tw-ink); font-weight: 600; border-bottom-color: var(--tw-sun); }
.tw-subnav__cta .wp-block-button__link { padding: 0.65rem 1.1rem; font-size: var(--wp--preset--font-size--small); }
.tw-chip {
	display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
	color: #6f5236; background: #f3ede4; border-radius: 999px; padding: 4px 10px; margin-left: 6px; vertical-align: middle;
}

/* ---------- Buttons ---------- */
.wp-block-button__link { transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease; }
.wp-block-button__link:hover { transform: translateY(-1px); }
.is-style-tw-arrow .wp-block-button__link::after { content: "→"; margin-left: 0.55em; display: inline-block; transition: transform 0.2s ease; }
.is-style-tw-arrow .wp-block-button__link:hover::after { transform: translateX(3px); }
.is-style-tw-dark .wp-block-button__link { background: var(--tw-ink); color: #fff; }
.is-style-tw-dark .wp-block-button__link:hover { background: var(--tw-sea); color: #fff; }
.is-style-tw-ghost .wp-block-button__link { background: #fff; color: var(--tw-ink); box-shadow: inset 0 0 0 1.5px var(--tw-line); }
.is-style-tw-ghost .wp-block-button__link:hover { background: var(--tw-ink); color: #fff; box-shadow: none; }
.has-ink-background-color .is-style-tw-ghost .wp-block-button__link,
.has-ink-deep-background-color .is-style-tw-ghost .wp-block-button__link { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.45); }
.has-ink-background-color .is-style-tw-ghost .wp-block-button__link:hover { background: #fff; color: var(--tw-ink); }

/* ---------- Text styles ---------- */
.is-style-tw-eyebrow {
	display: flex; align-items: center; gap: 10px;
	font-size: var(--wp--preset--font-size--x-small); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
	color: var(--tw-sea); margin-bottom: 0;
}
.is-style-tw-eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--wp--preset--color--coral); flex-shrink: 0; }
.has-ink-background-color .is-style-tw-eyebrow, .has-ink-deep-background-color .is-style-tw-eyebrow { color: var(--tw-sun); }
.is-style-tw-lead { font-size: var(--wp--preset--font-size--large); line-height: 1.6; max-width: 640px; }
.tw-sec-head { gap: 14px; margin-bottom: var(--wp--preset--spacing--50); }
.tw-sec-head h2 { margin: 0; max-width: 820px; }
.tw-sec-head p { margin: 0; }
.tw-sec-head--center { text-align: center; margin-inline: auto !important; max-width: 820px; }
.tw-sec-head--center .is-style-tw-lead { margin-inline: auto; }
.tw-sec-head--center .is-style-tw-eyebrow { justify-content: center; }
.tw-sec-row { gap: 24px; margin-bottom: var(--wp--preset--spacing--50); }
.tw-sec-row .tw-sec-head { margin-bottom: 0; }
.tw-more { font-weight: 600; margin-top: auto; }
.tw-more a { text-decoration: none; color: var(--tw-ink); border-bottom: 2px solid var(--tw-sun); padding-bottom: 2px; }
.tw-more a:hover { color: var(--tw-sea); }
.has-ink-background-color .tw-more a { color: #fff; }
.tw-pill {
	display: inline-block; width: fit-content; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
	background: #f3ede4; color: #6f5236; border-radius: 999px; padding: 5px 11px; margin: 0;
}
.tw-pill--sun { background: var(--tw-sun); color: var(--tw-ink); }
.tw-age { font-size: var(--wp--preset--font-size--x-small); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tw-sea); margin: 0; }
.tw-confirm {
	font-size: var(--wp--preset--font-size--small); color: #3A56D4; background: #F1F3FF;
	border: 1px dashed #AEBBF3; border-radius: 10px; padding: 10px 14px; margin-top: var(--wp--preset--spacing--40) !important;
}

/* Dark sections */
.has-ink-background-color, .has-ink-deep-background-color { color: var(--wp--preset--color--on-dark); }
.has-ink-background-color :where(h1, h2, h3, h4), .has-ink-deep-background-color :where(h1, h2, h3, h4) { color: #fff; }
.has-ink-background-color a:where(:not(.wp-element-button)) { color: #fff; }
.has-ink-background-color :where(.is-style-tw-card, .is-style-tw-card-line) { color: var(--tw-text); }
.has-ink-background-color :where(.is-style-tw-card, .is-style-tw-card-line) a:where(:not(.wp-element-button)) { color: var(--tw-ink); }
.has-ink-background-color .tw-icon, .has-ink-deep-background-color .tw-icon { background: #fff; border-radius: 14px; padding: 6px; width: fit-content; }
.has-ink-background-color .tw-icon img { width: 40px; height: 40px; }

/* ---------- Cards ---------- */
.is-style-tw-card {
	background: #fff; border-radius: 22px; padding: clamp(20px, 2.4vw, 30px);
	box-shadow: var(--tw-shadow); color: var(--tw-text); box-sizing: border-box;
	display: flex; flex-direction: column; gap: 14px;
}
.is-style-tw-card > * { margin: 0 !important; }
.is-style-tw-card :where(h2, h3, h4) { color: var(--tw-ink); }
.is-style-tw-card-line {
	background: #fff; border: 1.5px solid var(--tw-ink); border-radius: 18px; padding: clamp(20px, 2.4vw, 28px);
	box-sizing: border-box; display: flex; flex-direction: column; gap: 12px; color: var(--tw-text);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.is-style-tw-card-line > * { margin: 0 !important; }
.is-style-tw-card-line:hover { transform: translateY(-4px); box-shadow: 6px 6px 0 var(--tw-sun); }
.is-style-tw-card-line :where(h3) { color: var(--tw-ink); }
.tw-card__title, .is-style-tw-card h3, .is-style-tw-card-line h3 { font-size: 1.45rem; }
[class*="tw-grid"] > .is-style-tw-card, [class*="tw-grid"] > .is-style-tw-card-line, .wp-block-post-template > li > * { height: 100%; }
.tw-icon img { width: 48px; height: 48px; }
.tw-icon { margin: 0 !important; }
.wp-block-group[class*="tw-grid"] { gap: clamp(16px, 2vw, 24px); }
@media (min-width: 1024px) {
	.wp-block-group.tw-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	.wp-block-group.tw-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
	.wp-block-group.tw-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
	.wp-block-group.tw-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
	.wp-block-group.tw-grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
	.wp-block-column .wp-block-group.tw-grid-3, .wp-block-column .wp-block-group.tw-grid-4 { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)) !important; }
}
@media (min-width: 600px) and (max-width: 1023px) {
	.wp-block-group[class*="tw-grid"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	.wp-block-group.tw-grid-6, .wp-block-group.tw-grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 599px) {
	.wp-block-group[class*="tw-grid"] { grid-template-columns: 1fr !important; }
	.wp-block-group.tw-grid-6, .wp-block-group.tw-stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
.tw-section .wp-block-columns { column-gap: clamp(32px, 5vw, 80px); }
.tw-mini h3 { font-size: 1.2rem; }
.tw-stage-link a { text-decoration: none; color: var(--tw-ink); }
.tw-stage-link a::after { content: " →"; color: var(--tw-sea); }
.tw-mini:hover { box-shadow: 6px 6px 0 var(--tw-sun); }

/* ---------- Hero ---------- */
.tw-hero { overflow: visible; }
.tw-hero.wp-block-cover { padding: 0; overflow: hidden; }
.tw-hero.wp-block-cover .wp-block-cover__background { background-color: transparent !important; }
/* No solid fill behind the photo, so the curved corner's anti-aliased edge can't show a navy hairline */
.tw-hero.wp-block-cover.has-background { background: none !important; }
.tw-hero.wp-block-cover > .wp-block-cover__image-background { object-position: 78% 30%; }
.tw-hero .wp-block-cover__inner-container {
	width: 100%; max-width: 1200px; margin-inline: auto;
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--70);
}
.tw-hero__cols { gap: clamp(28px, 5vw, 72px); }
.tw-hero h1 { margin-block: 14px 18px; font-size: clamp(2.4rem, 4.3vw, 3.75rem); }
.tw-hero-media { position: relative; min-height: clamp(320px, 30vw, 430px); }
.is-style-tw-sun-frame { position: relative; margin: 0; --tw-frame-br: 140px; --tw-frame-r: 140px 22px 140px 22px; }
.is-style-tw-sun-frame::before {
	content: ""; position: absolute; inset: 14% -5% -5% 10%;
	background: var(--tw-sun); border-radius: var(--tw-frame-r); z-index: 0;
	/* The yellow sits ~5% further right and lower, so its big corner grows by that much to stay parallel to the photo */
	border-bottom-right-radius: calc(var(--tw-frame-br) + 5.3%) calc(var(--tw-frame-br) + 5.5%);
}
.is-style-tw-sun-frame img, .is-style-tw-sun-frame a img {
	position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
	border-radius: var(--tw-frame-r); display: block;
}
.is-style-tw-float {
	position: absolute; z-index: 2; background: #fff; border-radius: 18px; padding: 14px 18px;
	box-shadow: var(--tw-shadow); min-width: 150px; max-width: 220px;
}
.is-style-tw-float p { margin: 0; }
.tw-float--tl { top: 16%; left: -2%; }
.tw-float--br { bottom: 6%; right: 0; }
.tw-float__n { font-family: var(--tw-display); font-size: 2rem; color: var(--tw-ink); line-height: 1.05; }
.tw-float__label { font-size: var(--wp--preset--font-size--x-small); line-height: 1.35; }
.tw-proof-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; }
.tw-proof-list li { font-size: var(--wp--preset--font-size--small); font-weight: 600; color: var(--tw-ink); display: flex; align-items: center; gap: 8px; }
.tw-proof-list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tw-sea); }
.tw-hero .wp-block-buttons { margin-top: 26px; }

/* Images */
.tw-story .is-style-tw-sun-frame img { aspect-ratio: 1; }
.tw-bigquote .is-style-tw-round img { max-width: 280px; }
.is-style-tw-leaf img { border-radius: 60px 14px 60px 14px; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.is-style-tw-round img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; }
.wp-block-image { margin-block: 0; }

/* ---------- Home sections ---------- */
.tw-trust { padding-block: var(--wp--preset--spacing--50) !important; }
.tw-logos { font-family: var(--tw-display); font-size: 1.2rem; color: var(--tw-ink); }
.tw-logo-item, .tw-chip-item { display: inline-block; }
.tw-logos .tw-logo-item { margin: 6px 24px 6px 0; opacity: 0.8; }
.tw-logos--dark .tw-logo-item { color: #fff; }
.tw-schools-strip {
	background: #fff; border: 1px solid var(--tw-line); border-radius: 18px; padding: 18px 24px !important;
	gap: 16px; margin-top: var(--wp--preset--spacing--50) !important;
}
.tw-schools-strip p { margin: 0; }
.tw-subjects { text-align: center; margin-top: var(--wp--preset--spacing--50) !important; font-size: var(--wp--preset--font-size--small); }
.tw-stage h3 { font-size: 1.6rem; }

.tw-proof { padding-block: var(--wp--preset--spacing--70); }
.tw-pillar h3 { font-size: 1.35rem; margin-top: 14px; }
.tw-pillar p { font-size: var(--wp--preset--font-size--small); }
.tw-stat__n { font-family: var(--tw-display); font-size: clamp(2.6rem, 4.5vw, 3.6rem); color: var(--tw-sun); line-height: 1; margin: 0; }
.tw-stat__label { font-size: var(--wp--preset--font-size--small); margin-top: 8px; }

.tw-steps > .tw-step { margin: 0 !important; }
.tw-step { border-top: 1px solid var(--tw-line); padding-top: 22px; }
.tw-step > * { margin: 0 0 10px; }
.tw-step__n {
	width: 46px; height: 46px; border-radius: 50%; background: var(--tw-sun); color: var(--tw-ink);
	display: inline-flex !important; align-items: center; justify-content: center; font-family: var(--tw-display); font-size: 1.05rem;
}
.tw-step__title { font-size: 1.3rem; }
.tw-steps { margin-bottom: var(--wp--preset--spacing--50); }

/* Tutors */
.tw-tutor-grid { gap: 24px !important; }
.tw-tutor { background: #fff; border-radius: 22px; padding: 12px 12px 22px; height: 100%; box-sizing: border-box; box-shadow: var(--tw-shadow); }
.tw-team .tw-tutor, .tw-tutors:not(.has-background) .tw-tutor { box-shadow: none; border: 1px solid var(--tw-line); }
.tw-tutor > * { margin: 0; padding-inline: 10px; }
.tw-tutor .wp-block-post-featured-image { padding: 0; margin-bottom: 16px; }
.tw-tutor .wp-block-post-featured-image img { border-radius: 16px; object-fit: cover; }
.tw-tutor__name { font-size: 1.35rem; margin-bottom: 4px; }
.tw-tutor__name a { text-decoration: none; color: var(--tw-ink); }
.tw-role { font-weight: 700; color: var(--tw-sea); font-size: var(--wp--preset--font-size--small); margin-bottom: 6px !important; }
.tw-role--lg { font-size: var(--wp--preset--font-size--large); }
.tw-cred { font-size: var(--wp--preset--font-size--small); line-height: 1.5; margin-bottom: 12px !important; }
.tw-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.tw-badge {
	font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tw-ink);
	border: 1.5px solid var(--tw-ink); border-radius: 999px; padding: 3px 9px;
}
.tw-filter { margin-bottom: var(--wp--preset--spacing--50) !important; }
.tw-filter .wp-block-buttons { gap: 10px; }
.tw-filter .wp-block-button__link { padding: 0.7rem 1.2rem; font-size: var(--wp--preset--font-size--small); }
.tw-filter .is-active .wp-block-button__link { background: var(--tw-ink); color: #fff; box-shadow: none; }
.wp-block-post.is-hidden { display: none; }

/* Reviews */
.tw-review { position: relative; }
.tw-review::before { content: "“"; font-family: var(--tw-display); font-size: 4rem; line-height: 0.6; color: var(--wp--preset--color--coral); height: 26px; display: block; }
.tw-quote, .tw-quote p { color: var(--tw-ink); font-size: var(--wp--preset--font-size--medium); line-height: 1.6; margin: 0; }
.tw-quote__who { font-family: var(--wp--preset--font-family--body); font-size: 1rem; font-weight: 700; margin-top: auto !important; letter-spacing: 0; }
.tw-quote__where { font-size: var(--wp--preset--font-size--small); margin-top: -8px !important; }
.tw-review-grid { gap: 24px !important; }
.tw-review-grid > li { display: flex; }

/* Story + about */
.tw-mission {
	background: var(--wp--preset--color--sun-soft); border-radius: 18px; padding: 20px 24px;
	font-family: var(--tw-display); font-size: 1.3rem; color: var(--tw-ink); line-height: 1.45;
}
.tw-mission p { margin: 0; }
.tw-inline-list { display: flex; flex-wrap: wrap; gap: 8px 26px; }

/* FAQ */
.tw-faq__list .wp-block-details summary {
	font-family: var(--tw-display); font-size: 1.25rem; color: var(--tw-ink); cursor: pointer; list-style: none;
	display: flex; justify-content: space-between; gap: 20px; align-items: center;
}
.tw-faq__list .wp-block-details summary::-webkit-details-marker { display: none; }
.tw-faq__list .wp-block-details summary::after {
	content: "+"; flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--tw-ink);
	display: grid; place-items: center; font-family: var(--wp--preset--font-family--body); font-size: 1.2rem; transition: background 0.2s;
}
.tw-faq__list .wp-block-details[open] summary::after { content: "−"; background: var(--tw-sun); border-color: var(--tw-sun); }
.tw-faq__list .wp-block-details > p { margin-top: 12px; }
.tw-faq__list .wp-block-details:first-child { border-top: 1px solid var(--tw-line); }

/* Facts table */
.tw-facts { gap: 0 !important; }
.tw-fact { border-bottom: 1px solid var(--tw-line); padding-block: 13px; gap: 16px; }
.tw-fact:last-child { border-bottom: 0; }
.tw-fact p { margin: 0; }
.tw-fact__k { flex: 0 0 140px; font-size: var(--wp--preset--font-size--x-small); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tw-sea); padding-top: 3px; }
.tw-fact__v { color: var(--tw-ink); font-weight: 500; }

/* Chips */
.tw-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tw-chips .tw-chip-item { background: #fff; border: 1.5px solid var(--tw-line); border-radius: 999px; padding: 9px 18px; color: var(--tw-ink); font-weight: 500; }
.tw-chips--sm { justify-content: flex-start; gap: 6px; }
.tw-chips--sm .tw-chip-item { padding: 4px 11px; font-size: var(--wp--preset--font-size--small); background: var(--tw-mint); border-color: transparent; }

/* Price / model cards */

/* Lists */
.is-style-tw-check { list-style: none; padding-left: 0; }
.is-style-tw-check li { position: relative; padding-left: 30px; margin-bottom: 8px; }
.is-style-tw-check li::before {
	content: "✓"; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
	background: var(--tw-sun); color: var(--tw-ink); font-size: 12px; font-weight: 700; display: grid; place-items: center;
}
.tw-numbered { list-style: none; padding: 0; counter-reset: tw; }
.tw-numbered li { counter-increment: tw; position: relative; padding-left: 40px; margin-bottom: 14px; }
.tw-numbered li::before {
	content: counter(tw); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
	border: 1.5px solid var(--tw-ink); display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--tw-ink);
}

/* Quotes */
.is-style-tw-big-quote { border: 0 !important; padding: 0 !important; margin: 18px 0; }
.is-style-tw-big-quote p { font-family: var(--tw-display); font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.35; color: var(--tw-ink); }
.is-style-tw-big-quote::before { content: "“"; font-family: var(--tw-display); font-size: 5rem; line-height: 0.5; color: var(--wp--preset--color--coral); display: block; height: 34px; }

/* CTA band + consultation */
.tw-cta-band { padding-block: var(--wp--preset--spacing--60); }
.tw-cta-band h2 { margin: 0 0 10px; }
.tw-cta-band .wp-block-buttons { justify-content: flex-end; }
.tw-consult .is-style-tw-check li { color: #fff; }
.tw-form-card { color: var(--tw-text); }
.tw-note-card { background: var(--wp--preset--color--sun-soft); box-shadow: none; }
.tw-booking .wp-block-column > * + * { margin-top: 20px; }

/* ---------- Forms ---------- */
.tw-form { display: flex; flex-direction: column; gap: 22px; }
.tw-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.tw-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.tw-field--full { grid-column: 1 / -1; }
.tw-field label, .tw-choices legend { font-size: var(--wp--preset--font-size--small); font-weight: 700; color: var(--tw-ink); }
.tw-req { color: #C2410C; }
.tw-form input[type="text"], .tw-form input[type="email"], .tw-form input[type="tel"], .tw-form select, .tw-form textarea {
	width: 100%; box-sizing: border-box; font: inherit; font-size: 1rem; color: var(--tw-ink);
	border: 1.5px solid #c9c2b6; border-radius: 12px; padding: 12px 14px; background: #fff; min-height: 50px;
}
.tw-form textarea { min-height: 110px; resize: vertical; }
.tw-form input:focus, .tw-form select:focus, .tw-form textarea:focus { outline: 3px solid rgba(255, 212, 59, 0.7); outline-offset: 1px; border-color: var(--tw-ink); }
.tw-choices { border: 0; padding: 0; margin: 0; }
.tw-choice-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tw-choice { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid #c9c2b6; border-radius: 999px; padding: 10px 16px; cursor: pointer; font-size: 0.95rem; color: var(--tw-ink); background: #fff; }
.tw-choice:has(input:checked) { border-color: var(--tw-ink); background: var(--tw-mint); }
.tw-choice input { accent-color: var(--tw-ink); width: 16px; height: 16px; margin: 0; }
.tw-consent { display: flex; gap: 10px; align-items: flex-start; font-size: var(--wp--preset--font-size--small); }
.tw-consent input { accent-color: var(--tw-ink); width: 18px; height: 18px; margin-top: 2px; }
.tw-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tw-btn {
	font: inherit; font-weight: 600; cursor: pointer; border: 0; border-radius: 999px; padding: 0.95rem 1.6rem;
	background: var(--tw-sun); color: var(--tw-ink); transition: background 0.2s, color 0.2s;
}
.tw-btn:hover { background: var(--tw-ink); color: #fff; }
.tw-btn--ghost { background: #fff; box-shadow: inset 0 0 0 1.5px #c9c2b6; }
.tw-btn--arrow::after { content: " →"; }
.tw-form__submit { display: flex; justify-content: flex-end; }
.tw-notice { border-radius: 12px; padding: 14px 16px; font-weight: 500; }
.tw-notice--ok { background: #E3F4EC; color: #0B5E55; border: 1px solid #9ED3C0; }
.tw-notice--error { background: #FDECEA; color: #8A1C12; border: 1px solid #F3B2AA; }

/* Join our team: a calm, photo-led introduction and a clear application form. */
.tw-join-hero { padding-block: clamp(52px, 7vw, 92px); }
.tw-join-hero__grid { gap: clamp(32px, 6vw, 84px); margin-block: 0 !important; }
.tw-join-hero__copy > * + * { margin-block-start: 18px; }
.tw-join-hero__copy h1 { max-width: 650px; margin-block: 14px 20px; font-size: clamp(2.5rem, 4.7vw, 4rem); line-height: 1.04; }
.tw-join-hero__copy .is-style-tw-lead { max-width: 620px; }
.tw-join-hero__copy .wp-block-buttons { margin-block-start: 28px; }
.tw-join-hero__copy .tw-btn--arrow::after { content: none; }
.tw-join-hero__image { margin: 0; overflow: visible; border: 0; border-radius: 0; box-shadow: none; }
.tw-join-hero__image img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center; }
.tw-join-application { padding-block: clamp(54px, 7vw, 92px); }
.tw-join-application__inner > .is-style-tw-eyebrow { margin: 0 0 10px; }
.tw-join-application__inner > h2 { margin: 0; font-size: clamp(2rem, 3.2vw, 2.8rem); }
.tw-join-application__intro { max-width: 720px; margin-block: 12px 30px; }
.tw-join-application__card { padding: clamp(22px, 4vw, 48px); border: 1px solid var(--tw-line); border-radius: 22px; background: #fff; box-shadow: 0 18px 46px rgba(17, 32, 51, 0.08); }
.tw-join-application__card .tw-form__submit { justify-content: flex-start; }
.tw-join-application__card .tw-field input[type="file"] { width: 100%; min-height: 50px; padding: 10px 12px; border: 1.5px solid #c9c2b6; border-radius: 12px; background: #fff; color: var(--tw-ink); font: inherit; }
.tw-join-application__card .tw-field .description { margin: 0; color: var(--tw-text); font-size: var(--wp--preset--font-size--small); }
@media (max-width: 781px) {
	.tw-join-hero { padding-block: 46px 52px; }
	.tw-join-hero__grid { gap: 30px; }
	.tw-join-hero__copy h1 { font-size: clamp(2.25rem, 9vw, 3.25rem); }
	.tw-join-application { padding-block: 48px; }
	.tw-join-application__card { padding: 22px 18px; }
	.tw-join-application__card .tw-grid { grid-template-columns: minmax(0, 1fr); }
}
.tw-stepper { list-style: none; display: flex; gap: 10px; padding: 0 0 18px; margin: 0; border-bottom: 1px solid var(--tw-line); }
.tw-stepper li { flex: 1; display: flex; align-items: center; gap: 10px; font-size: var(--wp--preset--font-size--small); color: var(--tw-text); }
.tw-stepper__n { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--tw-line); display: grid; place-items: center; font-weight: 700; flex-shrink: 0; background: #fff; }
.tw-stepper li.is-current { color: var(--tw-ink); font-weight: 700; }
.tw-stepper li.is-current .tw-stepper__n, .tw-stepper li.is-done .tw-stepper__n { background: var(--tw-sun); border-color: var(--tw-sun); color: var(--tw-ink); }
.tw-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.tw-step + .tw-step { margin-top: 22px; }
.tw-step__title { font-family: var(--tw-display); font-size: 1.6rem; color: var(--tw-ink); margin-bottom: 16px; padding: 0; }
.tw-step__nav { display: none; }
.tw-form.is-steps .tw-step { display: none; }
.tw-form.is-steps .tw-step.is-active { display: block; }
.tw-form.is-steps .tw-step + .tw-step { margin-top: 0; }
.tw-form.is-steps .tw-step__nav { display: flex; justify-content: space-between; margin-top: 22px; gap: 12px; }
.tw-form.is-steps .tw-step__nav .tw-btn:only-child { margin-left: auto; }
.tw-form.is-steps:not(.is-last) .tw-consent-wrap, .tw-form.is-steps:not(.is-last) .tw-form__submit { display: none; }
.tw-form.is-steps:not(.is-last) .tw-verify { height: 0; overflow: hidden; margin: 0 !important; }
.tw-consult .tw-form-card h3 { margin-bottom: 4px; }

/* ---------- Footer ---------- */
.tw-footer { padding-block: var(--wp--preset--spacing--70) 28px; margin-top: 0; }
.tw-footer__cols { gap: 32px; }
.tw-footer__brand a, .tw-footer .wp-block-site-title a { color: #fff; text-decoration: none; }
.tw-footer__h { color: var(--tw-sun) !important; margin-bottom: 14px !important; }
.tw-footer__h::before { display: none; }
.tw-footer__links { list-style: none; padding: 0; margin: 0; }
.tw-footer__links li { margin-bottom: 9px; font-size: var(--wp--preset--font-size--small); }
.tw-footer a { color: var(--wp--preset--color--on-dark); text-decoration: none; }
.tw-footer a:hover { color: #fff; text-decoration: underline; }
.tw-footer__members { font-size: var(--wp--preset--font-size--small); }
.tw-footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: var(--wp--preset--spacing--60) !important; padding-top: 22px; font-size: var(--wp--preset--font-size--x-small); gap: 10px; }
.tw-footer__bottom p { margin: 0; }
/* designer credit: deliberately faint */
.tw-footer a.tw-credit { margin-left: 1.4em; font-size: 0.85em; color: #fff; opacity: 0.22; transition: opacity 0.2s ease; }
.tw-footer a.tw-credit:hover, .tw-footer a.tw-credit:focus-visible { opacity: 0.7; text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.tw-nav { gap: 18px; }
	.tw-topbar__contact { font-size: 12px; }
}
@media (max-width: 781px) {
	.tw-topbar__tag { display: none; }
	.tw-topbar__inner { justify-content: center !important; }
	.tw-header__inner { gap: 12px; }
	.tw-header__cta .wp-block-button__link { padding: 0.65rem 0.95rem; font-size: 0.85rem; }
	.tw-hero .wp-block-cover__inner-container { padding-inline: 20px; }
	/* phones: text sits high over the brightest part of the photo, so the bottom-up gradient keeps a stronger floor */
	.tw-hero.wp-block-cover .wp-block-cover__background.has-background-gradient { background-image: linear-gradient(0deg, rgba(17, 32, 51, 0.97) 0%, rgba(17, 32, 51, 0.9) 45%, rgba(17, 32, 51, 0.74) 75%, rgba(17, 32, 51, 0.58) 100%) !important; }
	.tw-hero-media { min-height: 180px; margin-top: 12px; }
	.is-style-tw-float { padding: 10px 14px; min-width: 0; }
	.tw-float__n { font-size: 1.5rem; }
	.is-style-tw-sun-frame { --tw-frame-br: 90px; --tw-frame-r: 90px 18px 90px 18px; }
	.tw-grid { grid-template-columns: 1fr; }
	.tw-cta-band .wp-block-buttons { justify-content: flex-start; }
	.wp-block-post-template.is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	.tw-review-grid.is-layout-grid { grid-template-columns: 1fr !important; }
	.tw-stepper__label { display: none; }
	.tw-stepper li.is-current .tw-stepper__label { display: inline; }
	.tw-fact__k { flex-basis: 110px; }
	.tw-subnav__label { display: none; }
	.tw-subnav__nav { width: 100%; }
	.tw-subnav__nav .wp-block-navigation__container { flex-wrap: nowrap !important; overflow-x: auto; gap: 18px; scrollbar-width: none; }
	.tw-subnav__nav .wp-block-navigation-item__content { padding-block: 10px; white-space: nowrap; }
	.tw-subnav__cta { display: none; }
}
@media (max-width: 480px) {
	.wp-block-post-template.is-layout-grid.tw-tutor-grid { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
	.tw-tutor { padding: 8px 8px 16px; }
	.tw-tutor__name { font-size: 1.1rem; }
	.tw-brand .wp-block-site-title { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- 1.1: parent / school routes, hybrid model ---------- */
.tw-narrow { max-width: 760px; margin-left: auto !important; margin-right: auto !important; }
.tw-model-sec .tw-model { text-align: left; }
.tw-model .tw-age { margin-top: 12px; }
.tw-model h3 { margin-top: 4px; }
.tw-routes .tw-route { display: flex; flex-direction: column; gap: 12px; padding: clamp(24px, 4vw, 40px); }
.tw-route h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0; }
.tw-route .wp-block-buttons { margin-top: auto; }
.tw-contact-direct { margin-top: 32px; text-align: center; }
.tw-contact-direct p { margin: 0; }
.tw-steps .tw-step p:last-child { font-size: 0.95rem; }
.tw-page-hero__inner > p:not(.is-style-tw-eyebrow) { max-width: 720px; }

/* ---------- 1.2: navy palette + clean-up ---------- */
::selection { background: var(--tw-sun); color: var(--tw-ink); }
html { accent-color: var(--tw-ink); caret-color: var(--tw-ink); scrollbar-color: #cbbfae transparent; }
a { text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
h1, h2, h3, .wp-block-heading { text-wrap: balance; }
p, li { text-wrap: pretty; }
:where(a, button, input, select, textarea, summary, .wp-block-button__link):focus-visible { outline: 2px solid var(--tw-sea); outline-offset: 3px; }
:where(.has-ink-background-color, .has-ink-deep-background-color) :where(a, .wp-block-button__link):focus-visible { outline-color: var(--tw-sun); }
.tw-stat__n { font-variant-numeric: lining-nums tabular-nums; }

/* Section labels: the heading carries the section. Keep a quiet label only in page heroes. */
:where(.tw-section:not(.tw-hero, .tw-page-hero)) .is-style-tw-eyebrow:not(.tw-footer__h):has(+ .wp-block-heading) { display: none; }
.is-style-tw-eyebrow::before { display: none; }
:where(.tw-hero, .tw-page-hero) .is-style-tw-eyebrow { color: var(--tw-sea); letter-spacing: 0.12em; }
.tw-sec-head { gap: 12px; }

/* Navy world details */
.tw-pill { background: #f3ede4; color: #6f5236; }
.tw-pill--sun { background: var(--tw-sun); color: var(--tw-ink); }
.tw-review::before, .is-style-tw-big-quote::before { color: var(--tw-sun); }
.tw-hero-media .is-style-tw-float { box-shadow: 0 12px 28px rgba(7, 61, 119, 0.14); }

/* ---------- 1.3: credentials band (schools taught at + memberships) ---------- */
.tw-trust.has-background { background-color: var(--wp--preset--color--white) !important; border-bottom: 1px solid var(--tw-line); padding-block: 44px !important; }
.tw-trust__cols { gap: 0 !important; align-items: flex-start; }
.tw-trust__cols > .wp-block-column + .wp-block-column { border-left: 1px solid var(--tw-line); padding-left: clamp(24px, 3vw, 40px); }
.tw-trust__cols > .wp-block-column:first-child { padding-right: clamp(24px, 3vw, 40px); }
.tw-trust .is-style-tw-eyebrow { color: var(--tw-text); letter-spacing: 0.12em; margin-bottom: 14px; }
.tw-trust .tw-logos { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; font-size: 1rem; line-height: 1.25; }
.tw-trust .tw-logos .tw-logo-item { display: inline-flex; align-items: center; gap: 10px; margin: 0; opacity: 1; padding: 9px 16px 9px 11px; background: var(--wp--preset--color--white); border: 1px solid var(--tw-line); border-radius: 12px; color: var(--tw-ink); }
.tw-trust .tw-logos .tw-logo-item::before { content: ""; flex: none; width: 26px; height: 26px; background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2307294D' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M12 2.6 19.4 5.4v5.9c0 4.6-3.1 8.3-7.4 10.1-4.3-1.8-7.4-5.5-7.4-10.1V5.4z'/><path d='M8.3 9.6c1.4-.6 2.7-.5 3.7.4 1-.9 2.3-1 3.7-.4v4.9c-1.4-.6-2.7-.5-3.7-.4-1-.9-2.3-1-3.7-.4z'/><path d='M12 10v4.9'/><circle cx='18.6' cy='4.6' r='2.3' fill='%23ffc20e' stroke='none'/></svg>") center / contain no-repeat; }
.tw-trust__cols > .wp-block-column:last-child .tw-logo-item::before { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2307294D' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='9' r='6'/><circle cx='12' cy='9' r='2.6' fill='%23ffc20e' stroke='none'/><path d='M8.6 14 7.4 21.2l4.6-2.5 4.6 2.5L15.4 14'/></svg>"); }
.tw-trust .tw-logo-item img { max-height: 28px; width: auto; }
/* School logos: rows built in PHP (up to 4 each, evenly split). Equal gaps between logos whatever their width,
   rows start under the heading, so adding or reordering logos in Site settings never needs manual nudges. */
.tw-trust .tw-school-logos { display: flex; flex-direction: column; align-items: stretch; gap: 20px; }
.tw-trust .tw-school-row { display: flex; flex-wrap: nowrap; align-items: center; justify-content: flex-start; column-gap: clamp(24px, 3vw, 44px); }
.tw-trust .tw-school-logo { display: flex; flex: 0 1 auto; align-items: center; justify-content: center; min-width: 0; }
.tw-trust .tw-school-logo img { display: block; width: auto; height: 42px; max-width: 100%; object-fit: contain; transform-origin: center; transition: transform 240ms cubic-bezier(.2,.7,.2,1); }
.tw-line-link { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; text-decoration: underline; text-underline-offset: 0.16em; }
.tw-line-link__icon { display: inline-block; flex: none; width: 17px; height: 17px; overflow: visible; }
.tw-line-link__icon path { fill: #06C755; }
.tw-line-link__icon circle { fill: #fff; }
@media (hover: hover) and (pointer: fine) {
	.tw-trust .tw-school-logo:hover img { transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
	.tw-trust .tw-school-logo img { transition: none; }
}
.tw-trust .tw-school-logos .tw-school-logo::before { content: none; }
@media (max-width: 781px) {
	.tw-trust__cols > .wp-block-column + .wp-block-column { border-left: 0; padding-left: 0; border-top: 1px solid var(--tw-line); padding-top: 24px; margin-top: 24px; }
	.tw-trust__cols > .wp-block-column:first-child { padding-right: 0; }
	.tw-trust .tw-logos .tw-logo-item { font-size: 0.95rem; }
	.tw-trust .tw-school-logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 18px; }
	.tw-trust .tw-school-row { display: contents; }
	.tw-trust .tw-school-logo img { width: 100%; height: 40px; max-width: none; }
}

/* ---------- 1.4: personality: display type, highlighter signature, varied sections ---------- */
/* Type: Season Serif for display, Season Sans for body (theme.json). */
body { --wp--preset--font-family--display: "Season Serif", "Noto Serif Thai", Georgia, serif; --tw-display: "Season Serif", "Noto Serif Thai", Georgia, serif; }
:where(h1, h2, h3, h4, .wp-block-site-title) { font-family: var(--tw-display); }
h1, .wp-block-heading:is(h1) { font-weight: 700; letter-spacing: -0.035em; line-height: 1.04; }
h2, .wp-block-heading:is(h2) { font-weight: 650; letter-spacing: -0.03em; line-height: 1.08; }
h3, h4 { font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; }
.tw-hero h1 { font-size: clamp(2.5rem, 4.6vw, 4rem); line-height: 1.02; }
.wp-block-site-title a { font-weight: 700; letter-spacing: -0.03em; }
.tw-stat__n, .tw-float__n { font-family: var(--tw-display); font-weight: 700; letter-spacing: -0.03em; }

/* Signature: the highlighter. Used only on a few emphasised words. */
h1 em, h2 em {
	font-style: normal; color: inherit; padding: 0 0.1em; margin: 0 -0.06em;
	background-image: linear-gradient(100deg, transparent 0.2em, var(--tw-sun) 0.2em, var(--tw-sun) calc(100% - 0.12em), transparent calc(100% - 0.12em));
	background-size: 100% 0.42em; background-position: 0 88%; background-repeat: no-repeat;
	-webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.has-ink-background-color h2 em { color: #fff; }

/* Checklists: drawn tick instead of a text glyph. */
.is-style-tw-check li::before { content: ""; background: var(--tw-sun) url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2307294D' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M5.5 10.5l3 3 6-7'/></svg>") center / 16px no-repeat; }

/* Cards: one soft depth language (no hard offset shadow). Radius rule: cards 20px, tiles 12px, buttons pill. */
.is-style-tw-card { border-radius: 20px; }
.is-style-tw-card-line { border-radius: 20px; border-width: 1px; border-color: var(--wp--preset--color--line); }
.is-style-tw-card-line:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(7, 61, 119, 0.12); border-color: transparent; }

/* Reasons: an open 4-up with ruled columns, not boxed cards. */
.tw-reasons .tw-grid-4 { gap: 0 !important; }
.tw-reasons .is-style-tw-card-line.tw-feature { background: none; border: 0; border-left: 1px solid var(--wp--preset--color--line); border-radius: 0; padding: 4px 28px 8px; box-shadow: none; transform: none; }
.tw-reasons .is-style-tw-card-line.tw-feature:first-child { border-left: 0; padding-left: 0; }
.tw-reasons .tw-feature .tw-icon img { width: 52px; height: 52px; }
.tw-reasons .tw-feature h3 { font-size: 1.4rem; }
.tw-reasons > .tw-strong { margin-top: 44px; }

/* Services: the most-chosen route leads, in navy. */

/* Stages: a ladder, not a card wall. */
.tw-stages .tw-grid-3 { column-gap: 48px !important; row-gap: 48px !important; }
.tw-stages .is-style-tw-card-line.tw-stage { background: none; border: 0; border-top: 3px solid var(--tw-ink); border-radius: 0; padding: 20px 0 0; box-shadow: none; transform: none; }
.tw-stages .tw-stage:hover { border-top-color: var(--tw-sun); }
.tw-stages .tw-stage .tw-age { font-family: var(--tw-display); font-size: 1rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--tw-sea); }
.tw-stages .tw-stage h3 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); font-weight: 700; letter-spacing: -0.03em; }

/* Reviews: the first voice leads. */
.tw-reviews .wp-block-post-template > li:first-child .tw-review { background: var(--wp--preset--color--sun-soft); box-shadow: none; }
.tw-reviews .wp-block-post-template > li:first-child .tw-quote { font-family: var(--tw-display); font-size: 1.3rem; line-height: 1.4; color: var(--tw-ink); letter-spacing: -0.01em; }
.tw-reviews .wp-block-post-template > li:first-child .tw-review::before { color: var(--tw-ink); }

/* Proof band stats read as a display row. */
.tw-proof .tw-stat__n { font-size: clamp(2.6rem, 5vw, 3.8rem); line-height: 1; }

/* Motion: arrival of the hero, one highlighter swipe, sections rise as they enter. */
@keyframes tw-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes tw-hl { from { background-size: 0% 0.42em; } to { background-size: 100% 0.42em; } }
@media (prefers-reduced-motion: no-preference) {
	.tw-hero .tw-hero__cols > .wp-block-column:first-child > * { animation: tw-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; }
	.tw-hero .tw-hero__cols > .wp-block-column:first-child > :nth-child(2) { animation-delay: 0.06s; }
	.tw-hero .tw-hero__cols > .wp-block-column:first-child > :nth-child(3) { animation-delay: 0.14s; }
	.tw-hero .tw-hero__cols > .wp-block-column:first-child > :nth-child(n+4) { animation-delay: 0.22s; }
	.tw-hero .tw-hero-media { animation: tw-rise 1.1s 0.18s cubic-bezier(0.16, 1, 0.3, 1) both; }
	.tw-hero h1 em { animation: tw-hl 0.9s 0.75s cubic-bezier(0.16, 1, 0.3, 1) both; }
	.wp-block-button__link { transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, color 0.2s ease; }
	.wp-block-button__link:active { transform: translateY(1px) scale(0.98); }
}
@media (max-width: 781px) {
	.tw-reasons .is-style-tw-card-line.tw-feature { border-left: 0; border-top: 1px solid var(--wp--preset--color--line); padding: 20px 0 12px; }
	.tw-reasons .is-style-tw-card-line.tw-feature:first-child { border-top: 0; padding-top: 0; }
	.tw-stages .tw-grid-3 { row-gap: 32px !important; }
}
/* Trust points now live in the credentials band, as ticks. */
.tw-trust .tw-trust-proof { display: flex; flex-wrap: wrap; gap: 10px 32px; margin: 28px 0 0; padding: 22px 0 0; border-top: 1px solid var(--wp--preset--color--line); list-style: none; }
.tw-trust .tw-trust-proof li { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 0; color: var(--tw-ink); font-weight: 600; font-size: 0.98rem; }
.tw-trust .tw-trust-proof li::before { content: ""; position: static; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--tw-sun) url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2307294D' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M5.5 10.5l3 3 6-7'/></svg>") center / 16px no-repeat; }

/* 1.4.1: hero headline sizing */
.tw-hero h1 { font-size: clamp(2.4rem, 3.7vw, 3.35rem); }
@media (max-width: 600px) { .tw-hero h1 { font-size: 2.2rem; } }

/* ---------- 1.5: interactivity ---------- */
.tw-top-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 1px; pointer-events: none; }

/* Whole cards are clickable through their main link. */
:is(.tw-stages .tw-stage, .tw-reasons .tw-feature, .tw-mini) { position: relative; cursor: pointer; }
:is(.tw-stages .tw-stage, .tw-reasons .tw-feature) .tw-more a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.tw-mini .tw-stage-link a::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }
:is(.tw-stages .tw-stage, .tw-reasons .tw-feature, .tw-mini):has(a:focus-visible) { outline: 2px solid var(--tw-sea); outline-offset: 6px; }
:is(.tw-stages .tw-stage, .tw-reasons .tw-feature, .tw-mini) a:focus-visible { outline: 0; }
.tw-mini { transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease; }
.tw-mini:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(7, 61, 119, 0.16); }
:is(.tw-stages .tw-stage, .tw-reasons .tw-feature):hover .tw-more a { color: var(--tw-sea); border-bottom-color: var(--tw-sea); }
.tw-stages .tw-stage { transition: border-color 0.25s ease; }
.tw-stages .tw-stage h3 { transition: color 0.25s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
.tw-stages .tw-stage:hover h3 { color: var(--tw-sea); transform: translateX(4px); }
.tw-reasons .tw-feature .tw-icon img { transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
.tw-reasons .tw-feature:hover .tw-icon img { transform: translateY(-3px) rotate(-6deg); }

/* Tutor cards: the whole card opens the profile; the photo leans in. */
.tw-tutor { position: relative; }
.tw-tutor__name a::after { content: ""; position: absolute; inset: 0; }
.tw-tutor .wp-block-post-featured-image { overflow: hidden; border-radius: 16px; }
.tw-tutor .wp-block-post-featured-image img { transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.tw-tutor:hover .wp-block-post-featured-image img { transform: scale(1.05); }
.tw-tutor:hover .tw-tutor__name a { color: var(--tw-sea); }
.tw-tutor:has(a:focus-visible) { outline: 2px solid var(--tw-sea); outline-offset: 4px; border-radius: 20px; }

/* Six steps: numbers fill in as each step arrives. */
.tw-steps .tw-step__n { transition: background-color 0.5s ease, box-shadow 0.5s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); transition-delay: calc(var(--tw-i, 0) * 60ms); }
.tw-motion .tw-steps .tw-step:not(.is-seen) .tw-step__n { background-color: transparent; box-shadow: inset 0 0 0 2px var(--tw-sun); transform: scale(0.82); }

/* Dropdown menus ease in. */
.tw-nav .wp-block-navigation__submenu-container { transition: opacity 0.18s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.18s; }
.tw-motion .tw-nav .has-child:not(:hover):not(:focus-within) > .wp-block-navigation__submenu-container { transform: translateY(6px); }

/* FAQ: answers open smoothly; the plus turns into a cross. */
.tw-faq__list .wp-block-details summary::after { content: "+"; transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
.tw-faq__list .wp-block-details[open] summary::after { content: "+"; transform: rotate(45deg); }
.tw-faq__list .wp-block-details summary:hover { color: var(--tw-sea); }
@supports (interpolate-size: allow-keywords) {
	.tw-motion { interpolate-size: allow-keywords; }
	.tw-motion .tw-faq__list .wp-block-details::details-content { block-size: 0; overflow: clip; transition: block-size 0.4s cubic-bezier(0.16, 1, 0.3, 1), content-visibility 0.4s allow-discrete; }
	.tw-motion .tw-faq__list .wp-block-details[open]::details-content { block-size: auto; }
}

/* Phones: pinned enquiry bar. */
.tw-dock { display: none; }
@media (max-width: 781px) {
	.tw-dock { position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 90; display: flex; gap: 8px; padding: 8px; background: var(--tw-ink); border-radius: 999px; box-shadow: 0 14px 34px rgba(7, 61, 119, 0.35); transform: translateY(calc(100% + 24px)); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
	.tw-dock.is-visible { transform: none; }
	.tw-dock a { flex: 1; display: grid; place-items: center; min-height: 46px; padding: 0 16px; border-radius: 999px; font-weight: 600; font-size: 0.95rem; text-decoration: none; white-space: nowrap; }
	.tw-dock__primary { background: var(--tw-sun); color: var(--tw-ink); }
	.tw-dock__secondary { flex: 0 0 auto !important; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.45); }
	.tw-dock__line { background: #06C755; color: #fff; box-shadow: none; }
	.tw-dock a:active { transform: scale(0.97); }

	/* Reviews become a swipeable row. */
	.tw-review-grid.is-layout-grid { display: grid !important; grid-template-columns: none !important; grid-auto-flow: column; grid-auto-columns: 86%; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding-bottom: 12px; margin-inline: -16px !important; padding-inline: 16px; scrollbar-width: none; }
	.tw-review-grid.is-layout-grid::-webkit-scrollbar { display: none; }
	.tw-review-grid > li { scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) {
	.tw-dock, .tw-mini, .tw-tutor .wp-block-post-featured-image img, .tw-steps .tw-step__n, .tw-stages .tw-stage h3 { transition: none !important; }
	.tw-mini:hover { transform: none; }
}

/* 1.5.1: card image zoom, clipped to the leaf shape */
.tw-tutor .wp-block-post-featured-image img { backface-visibility: hidden; transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s ease; }
@media (prefers-reduced-motion: reduce) {
	.tw-tutor .wp-block-post-featured-image img { transition: filter 0.4s ease !important; }
	.tw-tutor:hover .wp-block-post-featured-image img { transform: none; filter: brightness(1.06) saturate(1.05); }
}

/* 1.6: navy hero on the landing page */
@keyframes tw-hl-dark { from { background-size: 0% 0.1em; } to { background-size: 100% 0.1em; } }
.has-ink-background-color :is(h1, h2) em { color: var(--tw-sun); background-size: 100% 0.1em; background-position: 0 98%; }
.tw-motion .has-ink-background-color.tw-hero h1 em, .tw-motion .has-ink-background-color h2 em { animation-name: tw-hl-dark; }
.tw-hero.has-ink-background-color .is-style-tw-lead { color: var(--wp--preset--color--on-dark); }
.has-ink-background-color .is-style-tw-float, .has-ink-background-color .tw-float__label { color: var(--tw-text); }
.has-ink-background-color .tw-float__n { color: var(--tw-ink); }
.tw-hero.has-ink-background-color .tw-hero-media .is-style-tw-float { box-shadow: 0 18px 40px rgba(2, 18, 40, 0.38); }

/* 1.7: hero gradient + readable primary-button hover on dark backgrounds */
/* 1.9: a single navy (#112033) with a subtle depth gradient toward the same hue, darker */
.tw-hero.has-ink-background-color {
	background-image: linear-gradient(155deg, #112033 0%, #112033 45%, #0e1b2c 80%, #0b1726 100%);
}
.has-ink-background-color .wp-block-button:not(.is-style-tw-ghost):not(.is-style-tw-dark) .wp-block-button__link:is(:hover, :focus-visible) { background: #fff; color: var(--tw-ink); }

/* 1.8: staggered fade-up reveal (replaces the Chrome-only scroll-driven version) */
.tw-reveal { opacity: 0; transform: translateY(28px); }
.tw-reveal.is-in { opacity: 1; transform: none; transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) var(--tw-d, 0ms), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) var(--tw-d, 0ms); }
.tw-motion .tw-reveal h2 em { background-size: 0% 0.42em; }
.tw-motion .tw-reveal.is-in h2 em { animation: tw-hl 0.9s calc(var(--tw-d, 0ms) + 350ms) cubic-bezier(0.16, 1, 0.3, 1) both; }

/* ---------- Reasons: photo collage + video lightbox (Univet-inspired, Teachwise style) ---------- */
.tw-reasons--collage .tw-collage-cols { gap: clamp(36px, 6vw, 96px); }
.tw-collage { position: relative; padding: 4% 14% 24% 0; isolation: isolate; }
.tw-collage > * { margin: 0 !important; }
/* sunshine dot grid peeking out behind the main photo */
.tw-collage::before {
	content: ""; position: absolute; z-index: -1; left: -5%; top: 0; width: 38%; aspect-ratio: 1;
	background-image: radial-gradient(var(--tw-sun) 2.2px, transparent 2.6px); background-size: 18px 18px;
}
.tw-collage .tw-collage__main img {
	display: block; width: 100%; aspect-ratio: 1 / 1.02; object-fit: cover;
	border-radius: 120px 22px 120px 22px; box-shadow: 0 24px 50px rgba(17, 32, 51, 0.16);
}
.tw-collage .tw-collage__second { position: absolute; right: 0; bottom: 0; width: 46%; z-index: 2; }
.tw-collage .tw-collage__second img {
	display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
	border: 6px solid #fff; border-radius: 22px 90px 22px 90px; box-shadow: 0 20px 44px rgba(17, 32, 51, 0.22);
}
/* round logo badge with a slowly turning ring of words, sitting on the main photo's corner */
.tw-collage .tw-collage__badge {
	position: absolute; z-index: 3; top: 0; left: calc(86% - 68px); width: 136px; aspect-ratio: 1;
	display: grid; place-items: center; border-radius: 50%; background: #fff;
	box-shadow: 0 0 0 6px var(--tw-sun), 0 18px 36px rgba(17, 32, 51, 0.25);
}
.tw-collage .tw-collage__badge::before {
	content: ""; position: absolute; inset: 0; border-radius: 50%;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cdefs%3E%3Cpath id='c' d='M100,100 m-78,0 a78,78 0 1,1 156,0 a78,78 0 1,1 -156,0'/%3E%3C/defs%3E%3Ctext font-family='Arial,Helvetica,sans-serif' font-size='13' font-weight='700' fill='%2307294D'%3E%3CtextPath href='%23c' textLength='486' lengthAdjust='spacing'%3EPERSONALISED LEARNING %E2%80%A2 QUALIFIED UK TEACHERS %E2%80%A2%3C/textPath%3E%3C/text%3E%3C/svg%3E") center / 100% no-repeat;
	animation: tw-spin 28s linear infinite;
}
.tw-collage .tw-collage__badge img { position: relative; width: 40%; height: auto; }
@keyframes tw-spin { to { transform: rotate(360deg); } }
/* families strip under the main photo */
.tw-collage .tw-collage__people { position: absolute; left: 0; bottom: 2%; width: 50%; z-index: 2; }
.tw-avatars { display: flex; align-items: center; gap: 0 !important; padding-left: 10px; }
.tw-avatars > * { margin: 0 0 0 -10px !important; }
/* each avatar zooms in on the face in its photo */
.tw-avatars .tw-avatar { width: 46px; height: 46px; flex: none; border-radius: 50%; overflow: hidden; border: 3px solid #fff; box-shadow: 0 4px 10px rgba(17, 32, 51, 0.15); box-sizing: border-box; }
.tw-avatars .tw-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(2.3); transform-origin: var(--tw-face, 50% 35%); }
.tw-avatars .tw-avatar:nth-child(1) { --tw-face: 62% 28%; }
.tw-avatars .tw-avatar:nth-child(2) { --tw-face: 12% 34%; }
.tw-avatars .tw-avatar:nth-child(3) { --tw-face: 42% 30%; }
.tw-avatars .tw-avatar:nth-child(4) { --tw-face: 40% 27%; }
.tw-avatars::after {
	content: "+"; display: grid; place-items: center; width: 46px; height: 46px; margin-left: -10px; border-radius: 50%;
	border: 3px solid #fff; background: var(--tw-sun); color: var(--tw-ink); font-weight: 700; font-size: 1.3rem; box-sizing: border-box;
}
.tw-collage__caption { margin: 10px 0 0 !important; font-size: var(--wp--preset--font-size--small); line-height: 1.35; color: var(--tw-text); }
.tw-collage__caption strong { color: var(--tw-ink); }

/* right-hand column */
.tw-reasons--collage h2 { margin: 0 0 8px; }
.tw-reason-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 32px; margin-top: 30px !important; }
.tw-reason-list > * { margin: 0 !important; }
.tw-reason { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 16px; align-content: start; }
.tw-reason > * { grid-column: 2; margin: 0 !important; }
.tw-reason .tw-icon { grid-column: 1; grid-row: 1 / span 3; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--wp--preset--color--sun-soft); }
.tw-reason .tw-icon img { width: 26px; height: 26px; }
.tw-reason h3 { font-size: 1.12rem; line-height: 1.25; margin-bottom: 6px !important; }
.tw-reason p { font-size: 0.95rem; line-height: 1.5; }
.tw-reason .tw-more { margin-top: 8px !important; font-size: 0.92rem; }
.tw-reasons__foot { display: flex; align-items: center; gap: 28px; margin-top: 36px !important; padding-top: 30px; border-top: 1px solid var(--tw-line); }
.tw-reasons__foot > * { margin: 0 !important; }
.tw-reasons__foot .tw-strong { font-size: 1.05rem; line-height: 1.45; margin-bottom: 16px !important; }

/* small video card that opens a larger player */
.tw-video { position: relative; flex: 0 0 250px; margin: 0; border-radius: 18px; overflow: hidden; border: 5px solid #fff; box-shadow: 0 16px 34px rgba(17, 32, 51, 0.2); }
.tw-video img { display: block; width: 100%; aspect-ratio: 16 / 11; object-fit: cover; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.tw-video:hover img { transform: scale(1.05); }
.tw-video a { display: block; }
.tw-video a::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(17, 32, 51, 0.1), rgba(17, 32, 51, 0.55)); }
.tw-video::before, .tw-video::after { content: ""; position: absolute; z-index: 2; left: 50%; top: 44%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; pointer-events: none; }
.tw-video::before {
	background: var(--tw-sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5v11l9-5.5z' fill='%2307294D'/%3E%3C/svg%3E") 56% 50% / 26px no-repeat;
	box-shadow: 0 8px 20px rgba(2, 12, 28, 0.35); z-index: 3;
}
.tw-video::after { background: rgba(255, 212, 59, 0.45); animation: tw-pulse 2.2s ease-out infinite; }
@keyframes tw-pulse { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(1.9); opacity: 0; } }
.tw-video figcaption { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; margin: 0; padding: 10px 14px; color: #fff; font-size: 0.85rem; font-weight: 600; text-align: left; }
/* until a video link is added, only signed-in editors see the card (with a reminder) */
body:not(.logged-in) .tw-video:not(:has(a[href])) { display: none; }
/* shortcut for signed-in editors: Pages > Lesson video */
.tw-video a.tw-video__edit { position: absolute; z-index: 4; top: 8px; right: 8px; display: inline-block; padding: 4px 10px; border-radius: 999px; background: #fff; color: var(--tw-ink); font-size: 0.72rem; font-weight: 700; text-decoration: none; box-shadow: 0 4px 12px rgba(17, 32, 51, 0.25); }
.tw-video a.tw-video__edit::before { content: none; }
.tw-video a.tw-video__edit:hover { background: var(--tw-sun); }

/* the expanded player */
.tw-lightbox { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: clamp(16px, 4vw, 48px); background: rgba(4, 21, 38, 0.84); backdrop-filter: blur(4px); opacity: 0; transition: opacity 0.25s ease; }
.tw-lightbox.is-open { opacity: 1; }
.tw-lightbox__box { position: relative; width: min(1000px, 100%); aspect-ratio: 16 / 9; background: #000; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); transform: scale(0.94); transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
.tw-lightbox.is-open .tw-lightbox__box { transform: none; }
.tw-lightbox__box :is(iframe, video) { display: block; width: 100%; height: 100%; border: 0; }
.tw-lightbox__close { position: absolute; top: 16px; right: 16px; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--tw-sun); color: var(--tw-ink); font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); }
.tw-lightbox__close:hover { background: #fff; }
html.tw-noscroll { overflow: hidden; }

@media (max-width: 781px) {
	.tw-collage { padding: 4% 12% 30% 0; margin-bottom: 8px; }
	.tw-collage .tw-collage__badge { width: 100px; left: calc(88% - 50px); }
	.tw-collage .tw-collage__people { width: 52%; bottom: 0; }
	.tw-avatars .tw-avatar, .tw-avatars::after { width: 38px; height: 38px; }
	.tw-reason-list { grid-template-columns: 1fr; gap: 22px; }
	.tw-reasons__foot { flex-direction: column; align-items: stretch; }
	.tw-video { flex-basis: auto; }
}
@media (prefers-reduced-motion: reduce) {
	.tw-collage .tw-collage__badge::before, .tw-video::after { animation: none; }
}

/* ---------- Stages: one learning path from 3 to 18, with mentoring running alongside ---------- */
.tw-stages .tw-sec-head { margin-bottom: clamp(44px, 5vw, 68px) !important; }
.tw-stages .wp-block-group.tw-path { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) !important; gap: 0 !important; }
.tw-path > * { margin: 0 !important; }
.tw-stages .tw-path .is-style-tw-card-line.tw-stage { border: 0; border-radius: 0; background: none; box-shadow: none; padding: 0 30px 6px 0; display: flex; flex-direction: column; align-items: flex-start; }
.tw-path .tw-stage > * { margin: 0 !important; }
/* the path itself: one line per stage, meeting edge to edge, with a node where each stage begins */
.tw-path .tw-stage::before { content: ""; position: absolute; left: 0; right: 0; top: 52px; height: 2px; background: var(--tw-ink); transform-origin: left center; }
.tw-path .tw-stage:last-child::before { background: linear-gradient(90deg, var(--tw-ink) 50%, rgba(17, 32, 51, 0)); }
.tw-path .tw-stage::after { content: ""; position: absolute; left: 0; top: 45px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 3px var(--tw-ink), 0 0 0 5px #fff; transition: background-color 0.25s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
.tw-path .tw-stage:hover::after, .tw-path .tw-stage:has(a:focus-visible)::after { background: var(--tw-sun); transform: scale(1.3); }
.tw-stages .tw-stage .tw-age {
	font-family: var(--wp--preset--font-family--body); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.01em; line-height: 1;
	color: var(--tw-ink); background: var(--tw-sun); border-radius: 999px; padding: 8px 13px;
}
.tw-path .tw-stage .tw-age { margin-bottom: 54px !important; }
.tw-path .tw-stage h3 { font-size: clamp(1.45rem, 1.9vw, 1.85rem); margin-bottom: 10px !important; }
.tw-path .tw-stage p:not(.tw-age):not(.tw-more) { font-size: 0.95rem; line-height: 1.55; margin-bottom: 16px !important; }
.tw-path .tw-stage .tw-more { margin-top: auto !important; }
/* the line draws itself across as the section arrives (without JS or with reduced motion it is simply there) */
.tw-motion .tw-path .tw-stage.tw-reveal { transform: none; }
.tw-motion .tw-path .tw-stage.tw-reveal::before { transform: scaleX(0); }
.tw-motion .tw-path .tw-stage.tw-reveal.is-in::before { transform: none; transition: transform 0.6s cubic-bezier(0.33, 0, 0.2, 1) var(--tw-d, 0ms); }
.tw-motion .tw-path .tw-stage.tw-reveal::after { transform: scale(0); }
.tw-motion .tw-path .tw-stage.tw-reveal.is-in::after { transform: none; transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--tw-d, 0ms) + 120ms); }

/* mentoring: not a step on the path but a band that runs the whole length of it */

/* subjects as a row of chips */
.tw-stages .tw-subjects { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 14px; margin-top: clamp(40px, 5vw, 56px) !important; }
.tw-subjects > * { margin: 0 !important; }
.tw-subjects__label { font-weight: 700; font-size: 0.95rem; color: var(--tw-ink); }
.tw-subject-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; padding: 0 !important; }
.tw-subject-list li { margin: 0; padding: 8px 15px; border-radius: 999px; background: var(--wp--preset--color--mint); color: var(--tw-ink); font-size: 0.9rem; font-weight: 500; line-height: 1.2; }

/* narrower screens: the path runs downwards */
@media (max-width: 1023px) {
	.tw-stages .wp-block-group.tw-path { grid-template-columns: 1fr !important; max-width: 640px; }
	.tw-stages .tw-path .is-style-tw-card-line.tw-stage { padding: 0 0 36px 46px; }
	.tw-path .tw-stage::before { left: 7px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; transform-origin: center top; }
	.tw-path .tw-stage:first-child::before { top: 12px; }
	.tw-path .tw-stage:last-child::before { background: linear-gradient(180deg, var(--tw-ink) 45%, rgba(17, 32, 51, 0)); }
	.tw-path .tw-stage::after { top: 5px; }
	.tw-path .tw-stage .tw-age { margin-bottom: 14px !important; }
	.tw-motion .tw-path .tw-stage.tw-reveal::before { transform: scaleY(0); }
}

/* ---------- Why parents choose: a photo, the reasons as a ruled list, the figures as a ruled band ---------- */
.tw-proof--photo .tw-proof__cols { align-items: center !important; column-gap: clamp(44px, 6.5vw, 104px) !important; }
.tw-proof__media { position: relative; margin: 0 !important; padding: 0 0 30px 30px; isolation: isolate; }
.tw-proof__media > * { margin: 0 !important; }
/* a sunshine block tucked behind the photo's lower-left, the same idea as the hero frame, mirrored */
.tw-proof__media::before { content: ""; position: absolute; z-index: -1; left: 0; bottom: 0; width: 64%; height: 60%; background: var(--tw-sun); border-radius: 22px 22px 22px 170px; }
.tw-proof__photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 28% 50%; border-radius: 22px 140px 22px 140px; box-shadow: 0 30px 60px rgba(2, 12, 28, 0.42); }
.tw-proof__media .tw-proof__chip {
	position: absolute; z-index: 2; right: -22px; bottom: 76px; max-width: 230px; padding: 14px 18px 15px;
	background: #fff; color: var(--tw-text); border-radius: 16px; box-shadow: 0 18px 40px rgba(2, 12, 28, 0.38);
	font-size: 0.92rem; line-height: 1.35;
}
.tw-proof__chip::before {
	content: ""; display: block; width: 92px; height: 16px; margin-bottom: 8px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 115 20'%3E%3Cg fill='%23E0A21A'%3E%3Cpath id='s' d='M10 1l2.8 6 6.6.7-4.9 4.5 1.4 6.5L10 15.4l-5.9 3.3 1.4-6.5L.6 7.7 7.2 7z'/%3E%3Cuse href='%23s' x='23.5'/%3E%3Cuse href='%23s' x='47'/%3E%3Cuse href='%23s' x='70.5'/%3E%3Cuse href='%23s' x='94'/%3E%3C/g%3E%3C/svg%3E") left center / contain no-repeat;
}
.tw-proof__chip strong { display: block; font-family: var(--tw-display); font-size: 1.12rem; color: var(--tw-ink); letter-spacing: -0.01em; }

.tw-proof--photo h2 { margin: 0 0 16px !important; }
.tw-proof--photo .tw-proof__cols > .wp-block-column:last-child > p:not(.is-style-tw-eyebrow) { font-size: 1.1rem; line-height: 1.6; color: var(--wp--preset--color--on-dark); max-width: 50ch; }
.tw-proof__list { display: grid; margin-top: 30px !important; }
.tw-proof__list > * { margin: 0 !important; }
.tw-proof__list .tw-pillar { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 20px; align-items: start; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.tw-proof__list .tw-pillar:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.tw-proof__list .tw-pillar > * { grid-column: 2; margin: 0 !important; }
.tw-proof__list .tw-pillar .tw-icon { grid-column: 1; grid-row: 1 / span 2; }
.tw-proof__list .tw-pillar h3 { font-size: 1.3rem; color: #fff; margin: 3px 0 5px !important; }
.tw-proof__list .tw-pillar p { font-size: 1rem; line-height: 1.55; color: var(--wp--preset--color--on-dark); }

.tw-proof--photo .wp-block-group.tw-stats { margin-top: clamp(56px, 7vw, 92px) !important; padding-top: 36px; border-top: 1px solid rgba(255, 255, 255, 0.16); gap: 28px 0 !important; }
.tw-proof--photo .tw-stat { padding: 0 28px; border-left: 1px solid rgba(255, 255, 255, 0.16); }
.tw-proof--photo .tw-stat:first-child { padding-left: 0; border-left: 0; }
.tw-proof--photo .tw-stat__label { color: var(--wp--preset--color--on-dark); max-width: 22ch; }

@media (max-width: 781px) {
	.tw-proof__media { padding: 0 0 22px 22px; margin-bottom: 12px !important; }
	.tw-proof__media .tw-proof__chip { right: 10px; bottom: 44px; }
	.tw-proof__photo img { aspect-ratio: 1 / 1.05; border-radius: 18px 100px 18px 100px; }
	.tw-proof__media::before { border-radius: 18px 18px 18px 122px; }
}
@media (max-width: 599px) {
	.tw-proof--photo .tw-stat:nth-child(odd) { padding-left: 0; border-left: 0; }
	.tw-proof--photo .tw-stat { padding-right: 12px; }
}

/* ---------- Six steps: icon-led, numbered, joined by dashed arrows ---------- */
.tw-process .tw-sec-head { margin-bottom: clamp(44px, 5vw, 68px) !important; }
.tw-process .wp-block-group.tw-steps { --tw-gap: clamp(40px, 5vw, 76px); column-gap: var(--tw-gap) !important; row-gap: clamp(48px, 5vw, 68px) !important; margin-bottom: clamp(48px, 5vw, 64px); }
.tw-process .tw-steps > .tw-step { position: relative; border: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; }
.tw-process .tw-step > * { margin: 0 !important; }
.tw-process .tw-step .tw-step__icon {
	width: 68px; height: 68px; display: grid; place-items: center; border-radius: 20px; background: #fff;
	box-shadow: 0 0 0 1.5px var(--tw-line), 0 14px 28px rgba(17, 32, 51, 0.08); margin-bottom: 24px !important;
}
.tw-process .tw-step .tw-step__icon img { width: 46px; height: 46px; }
.tw-process .tw-step .tw-step__n {
	position: absolute; z-index: 1; top: -11px; left: 50px; width: 30px; height: 30px;
	font-family: var(--wp--preset--font-family--body); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em;
	background: var(--tw-ink); color: #fff; box-shadow: 0 0 0 3px #fff;
}
.tw-process .tw-step__title { font-size: 1.3rem; line-height: 1.25; margin-bottom: 8px !important; }
.tw-process .tw-step p:not(.tw-step__n) { font-size: 1rem; line-height: 1.55; max-width: 34ch; }
/* dashed arrow from each icon to the next step along the row */
.tw-process .tw-step::before, .tw-process .tw-step::after { content: ""; position: absolute; pointer-events: none; }
.tw-process .tw-step::before { top: 33px; left: 88px; right: calc(-1 * var(--tw-gap) + 20px); border-top: 2px dashed #cbbfae; }
.tw-process .tw-step::after { top: 29px; right: calc(-1 * var(--tw-gap) + 20px); width: 9px; height: 9px; border-top: 2px solid #cbbfae; border-right: 2px solid #cbbfae; transform: rotate(45deg); }
@media (min-width: 900px) {
	.tw-process .wp-block-group.tw-steps { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
	.tw-process .tw-step:nth-child(3n)::before, .tw-process .tw-step:nth-child(3n)::after { display: none; }
}
@media (min-width: 600px) and (max-width: 899px) {
	.tw-process .wp-block-group.tw-steps { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	.tw-process .tw-step:nth-child(2n)::before, .tw-process .tw-step:nth-child(2n)::after { display: none; }
}
/* phones: one column, icon on the left, arrows running down between the icons */
@media (max-width: 599px) {
	.tw-process .wp-block-group.tw-steps { grid-template-columns: minmax(0, 1fr) !important; row-gap: 40px !important; }
	.tw-process .tw-steps > .tw-step { grid-template-columns: 68px minmax(0, 1fr); column-gap: 18px; }
	.tw-process .tw-step > * { grid-column: 2; }
	.tw-process .tw-step .tw-step__icon { grid-column: 1; grid-row: 1 / span 3; margin: 0 !important; }
	/* keep the number on the icon tile, not on the text column */
	.tw-process .tw-step .tw-step__n { grid-column: 1; grid-row: 1; }
	.tw-process .tw-step::before { top: 80px; bottom: -32px; left: 33px; right: auto; border-top: 0; border-left: 2px dashed #cbbfae; }
	.tw-process .tw-step::after { top: auto; bottom: -32px; left: 29px; right: auto; transform: rotate(135deg); }
	.tw-process .tw-step:last-child::before, .tw-process .tw-step:last-child::after { display: none; }
}

/* Download buttons (information pack PDF): a download arrow before the label */
.tw-btn-download .wp-block-button__link { display: inline-flex; align-items: center; gap: 0.55em; text-align: left; }
.tw-btn-download .wp-block-button__link::before {
	content: ""; width: 1.05em; height: 1.05em; flex: none; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11m0 0l-4.5-4.5M12 15l4.5-4.5M5 19.5h14'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11m0 0l-4.5-4.5M12 15l4.5-4.5M5 19.5h14'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* closing line under the "Why parents choose" list */
.tw-proof .tw-proof__close { margin-top: 26px !important; max-width: 58ch; color: var(--wp--preset--color--on-dark); font-size: 1.02rem; line-height: 1.6; }


/* policy pages: document-sized section headings */
:is(.page-id-3, .page-id-151, .page-id-152, .page-id-153, .page-id-154, .page-id-155) .wp-block-post-content h2 { font-size: clamp(1.3rem, 1.8vw, 1.55rem); line-height: 1.25; margin-top: 2em; margin-bottom: 0.5em; }

/* ---------- Choose how your child learns: two formats, one decision ---------- */
.tw-choose { position: relative; container-type: inline-size; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 36px; row-gap: 0; }
.tw-choose > * { margin: 0 !important; }
.tw-option { position: relative; display: flex; flex-direction: column; border-radius: 26px; padding: 16px 16px clamp(26px, 3vw, 34px); }
.tw-option--one { background: var(--tw-ink); color: var(--wp--preset--color--on-dark); box-shadow: 0 26px 52px rgba(17, 32, 51, 0.26); }
.tw-option--group { background: #fff; color: var(--tw-ink); box-shadow: 0 18px 40px rgba(17, 32, 51, 0.08); outline: 1px solid var(--tw-line); outline-offset: -1px; }
.tw-option .tw-option__photo { margin: 0 0 clamp(20px, 2.4vw, 28px) !important; border-radius: 18px; overflow: hidden; }
.tw-option .tw-option__photo img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 0; transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.tw-option:hover .tw-option__photo img { transform: scale(1.04); }
/* this photo has a white strip on its right edge: anchor the crop left */
.tw-option--group .tw-option__photo img { object-position: 0% 50%; transform-origin: left center; }
.tw-option__body { display: flex; flex-direction: column; flex: 1; padding: 0 clamp(8px, 1.4vw, 18px); }
.tw-option__body > * { margin: 0 !important; }
.tw-option .tw-option__top { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 12px !important; }
.tw-option .tw-option__title { margin: 0; font-size: clamp(1.75rem, 2.6vw, 2.3rem); line-height: 1.05; letter-spacing: -0.025em; }
.tw-option--one .tw-option__title { color: #fff; }
.tw-option__price { margin: 0; font-size: 0.95rem; white-space: nowrap; }
.tw-option__price strong { font-family: var(--tw-display); font-size: clamp(1.6rem, 2.3vw, 2rem); font-weight: 600; letter-spacing: -0.02em; margin-right: 0.12em; font-variant-numeric: lining-nums tabular-nums; }
.tw-option--one .tw-option__price strong { color: var(--tw-sun); }
.tw-option__desc { font-size: 1.06rem; line-height: 1.55; max-width: 46ch; margin-bottom: 18px !important; }
.tw-option__fit { font-size: 0.95rem; line-height: 1.55; padding: 14px 16px; border-radius: 14px; margin-bottom: 20px !important; }
.tw-option__fit strong { display: block; margin-bottom: 2px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.tw-option--one .tw-option__fit { background: rgba(255, 255, 255, 0.08); }
.tw-option--one .tw-option__fit strong { color: var(--tw-sun); }
.tw-option--group .tw-option__fit { background: #f7f5f1; }
.tw-option .tw-option__list { margin-bottom: 24px !important; }
.tw-option .tw-option__list li { margin-bottom: 9px; }
.tw-option--one .tw-option__list li { color: #fff; }
.tw-option__cta { margin-top: auto !important; }
.tw-option__cta a { display: inline-flex; align-items: center; gap: 0.5em; font-weight: 700; text-decoration: none; padding: 12px 20px; border-radius: 999px; transition: background-color 0.2s ease, color 0.2s ease, gap 0.25s cubic-bezier(0.16, 1, 0.3, 1); }
.tw-option__cta a::after { content: ""; width: 1em; height: 1em; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; }
.tw-option__cta a:hover { gap: 0.8em; }
.tw-option__cta a:focus-visible { outline: 3px solid var(--tw-sun); outline-offset: 3px; }
.tw-option--one .tw-option__cta a { background: var(--tw-sun); color: var(--tw-ink); }
.tw-option--one .tw-option__cta a:hover { background: #fff; }
.tw-option--group .tw-option__cta a { background: var(--tw-ink); color: #fff; }
.tw-option--group .tw-option__cta a:hover { background: #0d3a6b; }
/* the seal that joins the two formats: same style as the collage badge (white disc, sun ring, turning lettering, tw mark) */
.tw-choose .tw-choose__seal {
	position: absolute; z-index: 3; left: 50%; top: calc(16px + ((100cqw - 36px) / 2 - 32px) * 0.3125); transform: translate(-50%, -50%);
	display: block; width: 140px; height: 140px; border-radius: 50%; background: #fff;
	color: transparent; font-size: 0; line-height: 0; user-select: none;
	box-shadow: 0 0 0 6px var(--tw-sun), 0 18px 36px rgba(17, 32, 51, 0.25);
}
.tw-choose .tw-choose__seal::before, .tw-choose .tw-choose__seal::after { content: ""; position: absolute; pointer-events: none; }
.tw-choose .tw-choose__seal::before { inset: 0; border-radius: 50%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cdefs%3E%3Cpath id='c' d='M100,100 m-76,0 a76,76 0 1,1 152,0 a76,76 0 1,1 -152,0'/%3E%3C/defs%3E%3Ctext font-family='Arial,Helvetica,sans-serif' font-size='18' font-weight='700' fill='%2307294D'%3E%3CtextPath href='%23c' textLength='470' lengthAdjust='spacing'%3ESAME TEACHERS %E2%80%A2 SAME PLAN %E2%80%A2%3C/textPath%3E%3C/text%3E%3C/svg%3E") center / 100% no-repeat; animation: tw-spin 28s linear infinite; }
.tw-choose .tw-choose__seal::after { left: 50%; top: 50%; width: 42%; height: 42%; transform: translate(-50%, -50%); background: var(--tw-mark, url("/wp-content/uploads/2026/09/favicontw.png")) center / contain no-repeat; }
/* what both formats share, said once */
.tw-choose .tw-choose__both { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px 32px; margin-top: 24px !important; padding: 20px 28px; border-radius: 20px; background: #fff; outline: 1px solid var(--tw-line); outline-offset: -1px; }
.tw-choose__both > * { margin: 0 !important; }
.tw-choose__both-label { flex: none; font-family: var(--tw-display); font-size: 1.1rem; font-weight: 600; color: var(--tw-ink); }
.tw-choose .tw-choose__both-list { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 24px; list-style: none; padding: 0; }
.tw-choose__both-list li { position: relative; margin: 0; padding-left: 28px; font-size: 0.95rem; line-height: 1.4; color: var(--tw-ink); }
.tw-choose__both-list li::before { content: ""; position: absolute; left: 0; top: 0.05em; width: 20px; height: 20px; border-radius: 50%; background: var(--tw-sun) url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2307294D' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M5.5 10.5l3 3 6-7'/></svg>") center / 15px no-repeat; }
@media (min-width: 782px) and (max-width: 1100px) { .tw-choose .tw-choose__both-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 781px) {
	.tw-choose { grid-template-columns: minmax(0, 1fr); }
	.tw-choose .tw-choose__seal { position: relative; left: auto; top: auto; transform: none; justify-self: center; width: 116px; height: 116px; margin: -34px 0 !important; }
	.tw-choose .tw-choose__both { flex-direction: column; align-items: flex-start; padding: 20px 22px; }
	.tw-choose .tw-choose__both-list { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .tw-option .tw-option__photo img, .tw-option__cta a { transition: none; } .tw-choose .tw-choose__seal::before { animation: none; } }

/* membership logos in the trust band: small, clean, no tiles */
.tw-member-logos { gap: 14px 30px !important; margin: 0 !important; }
.tw-member-logos .tw-member-logo { margin: 0 !important; line-height: 0; }
.tw-member-logos .tw-member-logo a { display: block; border-radius: 6px; transition: opacity 0.2s ease; }
.tw-member-logos .tw-member-logo a:hover { opacity: 0.8; }
.tw-member-logos .tw-member-logo a:focus-visible { outline: 2px solid var(--tw-ink); outline-offset: 4px; }
.tw-member-logos .tw-member-logo img { display: block; width: auto; max-width: none; }
.tw-member-logo--ta img { height: 48px; }
.tw-member-logo--fobisia img { height: 36px; }
@media (max-width: 781px) { .tw-member-logo--ta img { height: 42px; } .tw-member-logo--fobisia img { height: 32px; } }

/* ---------- About: What parents say (rating + swipeable quotes) ---------- */
.tw-reviews--rail { overflow: hidden; --tw-rv-bleed: max(var(--wp--style--root--padding-right, 24px), calc((100vw - 1200px) / 2)); }
.tw-rv { display: grid; grid-template-columns: minmax(250px, 290px) minmax(0, 1fr); gap: clamp(32px, 4.5vw, 72px); align-items: start; }
.tw-rv > *, .tw-rv__intro > * { margin: 0 !important; }
.tw-rv .tw-rv__title { font-size: clamp(2rem, 3.2vw, 2.75rem); line-height: 1.05; letter-spacing: -0.025em; margin-bottom: 26px !important; text-wrap: balance; }
.tw-rv .tw-rv__score { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-block: 1px solid var(--tw-line); }
.tw-rv__score > * { margin: 0 !important; }
.tw-rv__num { font-family: var(--tw-display); font-size: 3.6rem; font-weight: 600; line-height: 0.9; letter-spacing: -0.03em; color: var(--tw-ink); font-variant-numeric: lining-nums; }
.tw-rv__meta { font-size: 0.9rem; line-height: 1.4; color: var(--tw-text); }
.tw-rv__stars { display: block; width: 96px; height: 18px; margin-bottom: 6px; background: #c5a374;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.2l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17l-5.9 3.3 1.3-6.6-4.9-4.6 6.6-.8z'/%3E%3C/svg%3E") left center / 19.2px 18px repeat-x;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.2l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17l-5.9 3.3 1.3-6.6-4.9-4.6 6.6-.8z'/%3E%3C/svg%3E") left center / 19.2px 18px repeat-x; }
.tw-rv .tw-rv__link { margin-top: 20px !important; }
.tw-rv__link a { color: var(--tw-ink); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--tw-sun); padding-bottom: 2px; }
.tw-rv__link a:hover { border-bottom-color: var(--tw-ink); }
.tw-rv__nav { display: flex; gap: 10px; margin-top: 30px !important; }
.tw-rv__btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--tw-line); background: #fff; color: var(--tw-ink); cursor: pointer; display: grid; place-items: center; padding: 0; transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease; }
.tw-rv__btn::before { content: ""; width: 18px; height: 18px; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; }
.tw-rv__btn--prev::before { transform: scaleX(-1); }
.tw-rv__btn:hover:not(:disabled) { background: var(--tw-ink); border-color: var(--tw-ink); color: #fff; }
.tw-rv__btn:focus-visible { outline: 3px solid var(--tw-sun); outline-offset: 3px; }
.tw-rv__btn:disabled { opacity: 0.35; cursor: default; }
/* the quote rail runs off the right edge of the page */
.tw-rv .tw-rv__viewport { min-width: 0; margin-right: calc(-1 * var(--tw-rv-bleed)) !important; }
.tw-rv .tw-rv__rail { display: flex; gap: 20px; margin: 0; padding: 4px var(--tw-rv-bleed) 8px 4px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 4px; overscroll-behavior-x: contain; scrollbar-width: none; }
.tw-rv .tw-rv__rail::-webkit-scrollbar { display: none; }
.tw-rv .tw-rv__rail:focus-visible { outline: 3px solid var(--tw-sun); outline-offset: 2px; border-radius: 22px; }
.tw-rv .tw-rv__rail > li { flex: 0 0 clamp(270px, 27vw, 330px); display: flex; margin: 0; scroll-snap-align: start; }
.tw-rv__card { position: relative; display: flex; flex-direction: column; width: 100%; padding: 26px 26px 22px; border-radius: 22px; background: #fff; }
.tw-rv__card > * { margin: 0 !important; }
.tw-rv__card::before { content: "\201C"; display: block; height: 30px; font-family: var(--tw-display); font-size: 3.6rem; line-height: 0.85; color: var(--tw-ink); }
.tw-rv__quote, .tw-rv__quote p { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--tw-ink); }
.tw-rv .tw-rv__by { margin-top: auto !important; padding-top: 18px; }
.tw-rv__by::before { content: ""; display: block; width: 28px; height: 3px; border-radius: 2px; background: var(--tw-sun); margin-bottom: 12px; }
.tw-rv__by > * { margin: 0 !important; }
.tw-rv .tw-rv__who { font-family: var(--wp--preset--font-family--body); font-size: 0.98rem; font-weight: 700; letter-spacing: 0; line-height: 1.3; color: var(--tw-ink); }
.tw-rv__where { font-size: 0.85rem; color: var(--tw-text); margin-top: 2px !important; }
.tw-rv__quote + .tw-rv__by { margin-top: auto; }
.tw-rv__card .tw-rv__quote { margin-bottom: 18px !important; }
@media (max-width: 900px) {
	.tw-rv { grid-template-columns: minmax(0, 1fr); gap: 26px; }
	.tw-rv .tw-rv__title { margin-bottom: 18px !important; }
	.tw-rv__nav { display: none; }
	.tw-rv .tw-rv__rail > li { flex-basis: min(82vw, 320px); }
}
@media (prefers-reduced-motion: reduce) { .tw-rv__btn { transition: none; } }

/* inner pages: the hero's light blue runs up behind the top strip, the menu bar and any sub-menu */
body:not(:has(.tw-hero.wp-block-cover)):has(main .tw-section.has-mint-background-color) .wp-site-blocks > header.wp-block-template-part,
body:not(:has(.tw-hero.wp-block-cover)):has(main .tw-section.has-mint-background-color) .wp-site-blocks > .wp-block-template-part:not(header):not(footer) { background-color: var(--wp--preset--color--mint) !important; }
body:not(:has(.tw-hero.wp-block-cover)):has(main .tw-section.has-mint-background-color) .tw-subnav { background: transparent !important; border-bottom-color: rgba(17, 32, 51, 0.1); }

/* ---------- Forms: problems shown in place after a refused submission ---------- */
.tw-form .tw-field--error input[type="text"], .tw-form .tw-field--error input[type="email"], .tw-form .tw-field--error input[type="tel"],
.tw-form .tw-field--error select, .tw-form .tw-field--error textarea { border-color: #B42318; background: #FFF8F7; }
.tw-form .tw-field--error .tw-choice { border-color: #B42318; }
.tw-field__error { display: flex; align-items: flex-start; gap: 6px; margin: 2px 0 0; font-size: 0.88rem; font-weight: 600; line-height: 1.35; color: #B42318; }
.tw-field__error::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 1px; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 7.5v5.5M12 16.5v.01'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 7.5v5.5M12 16.5v.01'/%3E%3C/svg%3E") center / contain no-repeat; }
.tw-consent-wrap { display: flex; flex-direction: column; gap: 4px; }
.tw-consent-wrap.tw-field--error .tw-consent { color: #B42318; }
.tw-consent-wrap.tw-field--error .tw-consent input { outline: 2px solid #B42318; outline-offset: 2px; }
.tw-notice--error { line-height: 1.45; }
.tw-notice--error:focus { outline: 3px solid rgba(180, 35, 24, 0.35); outline-offset: 2px; }
.tw-notice__lead { margin: 0; font-weight: 700; }
.tw-notice__list { margin: 8px 0 0; padding-left: 20px; font-weight: 500; }
.tw-notice__list li + li { margin-top: 4px; }
.tw-notice__list a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.tw-verify { min-height: 0; }

/* ---------- 2.0: review fixes (accessibility, headings) ---------- */
/* Keyboard focus: sun-yellow ring on every navy surface, including the header and top bar. */
:where(.tw-header, .tw-topbar, .tw-footer, .has-ink-background-color, .has-ink-deep-background-color) :where(a, button, .wp-block-button__link):focus-visible { outline: 2px solid var(--tw-sun); outline-offset: 3px; }
/* Phone menu open/close buttons: at least 44 x 44 so they are easy to tap.
   No display value here: WordPress hides the open button on wider screens and the close button until the menu opens. */
.tw-nav .wp-block-navigation__responsive-container-open,
.tw-nav .wp-block-navigation__responsive-container-close { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 9px; margin: -9px; border-radius: 10px; }
.tw-nav .wp-block-navigation__responsive-container-open svg,
.tw-nav .wp-block-navigation__responsive-container-close svg { width: 26px; height: 26px; }
/* Heading levels corrected (tutor names h2, "What happens next" h2, review names as text): keep their look. */
h2.tw-tutor__name { font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; margin-top: 0; }
.is-style-tw-card-line :where(h2) { color: var(--tw-ink); }
.is-style-tw-card-line h2.tw-card__title { font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; }
p.tw-quote__who { line-height: 1.3; color: var(--tw-ink); }

/* ---------- 2.1: menu bar returns on scroll up ---------- */
/* The header keeps its space in the page while the navy bar floats, so nothing jumps. */
header.wp-block-template-part.is-pinned { min-height: var(--tw-header-hold, auto); }
header.is-pinned .tw-header {
	position: fixed; z-index: 1000;
	top: calc(var(--wp-admin--admin-bar--height, 0px) + 8px);
	left: 0; right: 0; margin-block-start: 0;
	box-shadow: 0 14px 34px rgba(2, 12, 28, 0.3);
	transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}
header.is-pinned.is-bar-hidden .tw-header { transform: translateY(calc(-100% - var(--wp-admin--admin-bar--height, 0px) - 24px)); box-shadow: none; }
header.is-pin-start .tw-header { transition: none; }
/* With the phone menu open the bar must not be moved, or the full-screen menu is squeezed into the bar. */
header.is-pinned .tw-header:has(.is-menu-open) { transform: none !important; transition: none; }
@media (max-width: 600px) {
	header.is-pinned .tw-header { top: 8px; } /* the admin bar scrolls away on small screens */
}
@media (prefers-reduced-motion: reduce) {
	header.is-pinned .tw-header { transition: none; }
}

/* ---------- Homepage: parent reviews and story transition ---------- */
.tw-reviews {
	background: #f7f5f1;
	padding-block: clamp(64px, 7vw, 88px) clamp(36px, 4vw, 52px);
}
.tw-reviews .tw-sec-row { align-items: flex-end; margin-bottom: clamp(28px, 3vw, 40px); }
.tw-reviews .tw-sec-head { gap: 10px; }
.tw-reviews .tw-sec-head h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); letter-spacing: -0.035em; }
.tw-reviews .tw-sec-head .is-style-tw-lead {
	color: #4a5160;
	font-size: 0.96rem;
	line-height: 1.5;
}
.tw-reviews .tw-more { margin: 0 0 4px !important; }
.tw-reviews .tw-more a {
	color: var(--tw-ink);
	font-weight: 700;
	text-decoration: none;
	border-bottom: 2px solid var(--tw-sun);
	padding-bottom: 4px;
	transition: border-color 180ms ease, color 180ms ease;
}
.tw-reviews .tw-more a:hover { color: #155A8A; border-color: var(--tw-ink); }
.tw-reviews .tw-review-grid { gap: 20px !important; }
.tw-reviews .tw-review-grid > li { min-width: 0; }
.tw-reviews .tw-review {
	width: 100%;
	min-height: 272px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	padding: 26px 28px 24px;
	border: 1px solid #e6e0d6;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 10px 28px rgba(17, 32, 51, 0.055);
}
.tw-reviews .tw-review::before { color: #c5a374; height: 32px; margin-bottom: 12px; }
.tw-reviews .tw-quote,
.tw-reviews .tw-quote p { font-size: 1rem; line-height: 1.65; }
.tw-reviews .tw-review .tw-quote__who {
	margin-top: auto !important;
	padding-top: 18px;
	font-size: 0.98rem;
	line-height: 1.35;
}
.tw-reviews .tw-quote__where { margin-top: 3px !important; color: #6b7080; font-size: 0.875rem; }
.tw-reviews .wp-block-post-template > li:first-child .tw-review,
.tw-reviews .wp-block-post-template > li:first-child .tw-quote { background: #fff; }
.tw-reviews .wp-block-post-template > li:first-child .tw-quote { font-family: var(--wp--preset--font-family--body); font-size: 1rem; line-height: 1.65; }
.tw-reviews .wp-block-post-template > li:first-child .tw-review::before { color: #c5a374; }
.tw-story { padding-top: clamp(48px, 5vw, 64px); }
@media (max-width: 781px) {
	.tw-reviews { padding-block: 56px 32px; }
	.tw-reviews .tw-sec-row { align-items: flex-start; gap: 16px; margin-bottom: 24px; }
	.tw-reviews .tw-sec-head { gap: 8px; }
	.tw-reviews .tw-sec-head h2 { font-size: clamp(1.9rem, 8vw, 2.35rem); }
	.tw-reviews .tw-sec-head .is-style-tw-lead { max-width: 34ch; }
	.tw-reviews .tw-more { margin-top: 2px !important; }
	.tw-reviews .tw-review-grid.is-layout-grid {
		grid-auto-columns: min(88%, 360px);
		gap: 14px !important;
		margin-inline: -20px !important;
		padding: 4px 20px 14px;
	}
	.tw-reviews .tw-review { min-height: 250px; padding: 24px 22px 22px; }
	.tw-story { padding-top: 40px; }
}
@media (prefers-reduced-motion: reduce) { .tw-reviews .tw-more a { transition: none; } }


/* ---------- 2.2: tablets (iPad and similar, 782-1250px) ---------- */
/* Hero text keeps a side margin that lines up with the logo in the menu bar. */
.tw-hero .wp-block-cover__inner-container {
	--tw-hero-pad: calc(12px + clamp(16px, 2.2vw, 32px));
	padding-inline: var(--tw-hero-pad);
	max-width: calc(1200px + 2 * var(--tw-hero-pad));
}
/* "Online tutoring at every stage": five stage cards fill the row instead of leaving a sixth gap. */
@media (min-width: 1024px) {
	.wp-block-group.tw-grid-6:has(> :nth-child(5):last-child) { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
}
/* iPad Pro portrait and small laptops: five-across rows are too tight, so they become 3 + 2. */
@media (min-width: 1024px) and (max-width: 1180px) {
	.wp-block-group.tw-grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (min-width: 782px) and (max-width: 1180px) {
	/* Home "Every child is different": give the text and its four reasons more room than the photos. */
	.tw-reasons--collage .tw-collage-cols > .wp-block-column:first-child { flex-basis: 40% !important; }
	.tw-reasons--collage .tw-collage-cols > .wp-block-column:last-child { flex-basis: 60% !important; }
	/* Footer: the brand block takes a full row, the four link columns share the next one. */
	.tw-footer .wp-block-columns.tw-footer__cols { flex-wrap: wrap !important; row-gap: 36px; }
	.tw-footer .tw-footer__cols > .wp-block-column:first-child { flex: 0 0 100% !important; }
	.tw-footer .tw-footer__cols > .wp-block-column:first-child > * { max-width: 560px; }
	.tw-footer .tw-footer__cols > .wp-block-column:not(:first-child) { flex: 1 1 0 !important; min-width: 0; }
}
/* Enquiry side panel: the WhatsApp number stays on one line. */
@media (min-width: 1000px) { .tw-booking .wp-block-button__link[href*="wa.me"] { white-space: nowrap; padding-inline: 1.1rem; } }
@media (min-width: 1000px) and (max-width: 1180px) {
	/* Home: lesson video card a little smaller so "Tell us about your child" fits on one line beside it. */
	.tw-reasons__foot > :not(.tw-reasons__cta) { flex: 0 0 200px; }
	.tw-reasons__cta { flex: 1 1 0; min-width: 0; }
	.tw-reasons__cta .wp-block-button__link { white-space: nowrap; }
}
@media (min-width: 782px) and (max-width: 1180px) {
	/* Dark call-to-action band: buttons sit under the text, so long labels stay on one line. */
	.tw-cta-band > .wp-block-columns { flex-wrap: wrap !important; row-gap: 22px; }
	.tw-cta-band > .wp-block-columns > .wp-block-column { flex: 0 0 100% !important; }
	.tw-cta-band > .wp-block-columns > .wp-block-column:first-child > * { max-width: 640px; }
	.tw-cta-band .wp-block-buttons { justify-content: flex-start; }
}
/* Small tablets (e.g. iPad Air portrait): the video card and its button stack, as on phones. */
@media (min-width: 782px) and (max-width: 999px) {
	.tw-reasons__foot { flex-direction: column; align-items: flex-start; }
	.tw-reasons__foot > :not(.tw-reasons__cta) { width: 100%; max-width: 360px; }
}
@media (min-width: 782px) and (max-width: 999px) {
	.tw-reasons--collage .tw-collage-cols .wp-block-group[class*="tw-grid"] { grid-template-columns: 1fr !important; }
}
@media (min-width: 600px) and (max-width: 899px) {
	.wp-block-post-template.is-layout-grid.tw-tutor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* ---------- 2.3: hero background video ---------- */
/* The video always fills the hero edge to edge at any screen size (cropping, never black bars):
   the frame keeps the 16:9 shape and grows until it covers both the width and the height. */
.wp-block-cover .wp-block-cover__embed-background { position: absolute; inset: 0; overflow: hidden; container-type: size; }
.wp-block-cover .wp-block-cover__embed-background iframe {
	position: absolute !important; left: 50% !important; top: 50% !important;
	width: max(100cqw, 177.78cqh) !important; height: max(100cqh, 56.25cqw) !important;
	max-width: none !important; max-height: none !important;
	transform: translate(-50%, -50%) scale(1.02) !important; /* tiny overscan hides YouTube's edge lines */
	pointer-events: none; border: 0;
}
/* Fade the video in once it is playing, so there is no black box while it loads. */
.tw-yt-bg iframe { opacity: 0; transition: opacity 0.8s ease; }
.tw-yt-bg.is-playing iframe { opacity: 1; }


/* ---------- 2.4: announcement bar (Site settings → Announcement bar) ---------- */
.tw-bar { position: relative; z-index: 101; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 9px 52px; background: var(--tw-sun); color: var(--tw-ink); font-family: var(--wp--preset--font-family--body); font-size: 0.9rem; line-height: 1.4; text-align: center; }
.tw-bar[hidden] { display: none; }
.tw-bar__msg { margin: 0; font-weight: 600; text-wrap: balance; }
.tw-bar__link { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 0.2em; white-space: nowrap; }
.tw-bar__link::after { content: " →"; }
.tw-bar__close { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.tw-bar__close::before { content: ""; position: absolute; inset: 0; margin: auto; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M1 1l12 12M13 1L1 13' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M1 1l12 12M13 1L1 13' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.tw-bar__close:hover { background: rgba(17, 32, 51, 0.1); }
.tw-bar__close:focus-visible, .tw-bar__link:focus-visible { outline: 2px solid var(--tw-ink); outline-offset: 2px; }
.tw-bar--navy { background: var(--tw-ink); color: #fff; }
.tw-bar--navy .tw-bar__link { color: var(--tw-sun); }
.tw-bar--navy .tw-bar__close:hover { background: rgba(255, 255, 255, 0.12); }
.tw-bar--navy .tw-bar__close:focus-visible, .tw-bar--navy .tw-bar__link:focus-visible { outline-color: var(--tw-sun); }
@media (max-width: 600px) {
	.tw-bar { font-size: 0.82rem; padding: 8px 48px 8px 16px; justify-content: flex-start; text-align: left; }
}

/* ---------- 2.5: tutor availability (Tutors → Availability switch) ---------- */
.tw-booked { display: inline-flex; align-items: center; gap: 6px; margin: 2px 0 6px !important; padding: 3px 10px; border-radius: 999px; background: #f3ede4; color: var(--tw-ink); font-family: var(--wp--preset--font-family--body); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em; line-height: 1.4; }
.tw-booked__dot { width: 7px; height: 7px; border-radius: 50%; background: #B54708; }
.tw-tutor.is-booked .wp-block-post-featured-image img { filter: grayscale(0.6); opacity: 0.85; }
.tw-booked-note { max-width: 46ch; margin: 4px 0 14px !important; font-size: 0.95rem; color: inherit; opacity: 0.9; }

/* ---------- Mobile navigation: clearer groups and confident touch feedback ---------- */
@media (max-width: 781px) {
	.tw-nav .wp-block-navigation__responsive-container.is-menu-open {
		padding: 18px 18px 28px;
		background: var(--tw-ink) !important;
	}
	.tw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog {
		width: 100%;
		max-width: 520px;
		margin-inline: auto;
	}
	.tw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
		top: 10px;
		right: 10px;
		border-radius: 12px;
		transition: background-color 180ms ease, transform 180ms ease;
	}
	.tw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close:hover {
		background: rgba(255, 255, 255, 0.1);
	}
	.tw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close:active {
		transform: scale(0.94);
	}
	.tw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
		align-items: stretch;
		gap: 0;
		padding-top: 48px;
	}
	.tw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
		align-items: stretch;
		gap: 0;
		width: 100%;
	}
	.tw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .wp-block-navigation-item {
		position: relative;
		flex-wrap: wrap;
		align-items: stretch;
		width: 100%;
		border-bottom: 1px solid rgba(255, 255, 255, 0.14);
		padding-block: 3px;
	}
	.tw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
		flex: 1 1 auto;
		min-height: 48px;
		align-items: center;
		padding: 12px 14px !important;
		border: 0;
		border-radius: 12px;
		font-size: 1.08rem;
		font-weight: 600;
		line-height: 1.3;
		transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
	}
	.tw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content:hover {
		color: #fff;
		background: rgba(255, 255, 255, 0.08);
	}
	.tw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content:active {
		transform: scale(0.985);
		background: rgba(255, 255, 255, 0.12);
	}
	.tw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .current-menu-item > .wp-block-navigation-item__content,
	.tw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .current-menu-ancestor > .wp-block-navigation-item__content {
		color: var(--tw-sun);
	}
	.tw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-icon {
		flex: 0 0 44px;
		width: 44px;
		min-height: 44px;
		align-self: center;
		border-radius: 12px;
		color: #fff;
		transition: background-color 180ms ease, transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
	}
	.tw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-icon:hover {
		background: rgba(255, 255, 255, 0.1);
	}
	.tw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-icon:active {
		transform: scale(0.94);
	}
	.tw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-icon[aria-expanded="true"] svg {
		transform: rotate(180deg);
	}
	.tw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-icon svg {
		transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
	}
	.tw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
		flex: 0 0 100%;
		width: 100%;
		gap: 2px;
		margin: 0 !important;
		padding: 2px 0 10px 12px !important;
		border: 0 !important;
		background: transparent;
	}
	.tw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item {
		align-items: stretch;
		width: 100%;
	}
	.tw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
		min-height: 42px;
		padding: 10px 14px !important;
		border: 0;
		border-radius: 0 10px 10px 0;
		color: rgba(255, 255, 255, 0.82);
		font-size: 0.98rem;
		font-weight: 450;
		line-height: 1.35;
		transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
	}
	.tw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
		background: rgba(255, 255, 255, 0.08);
		color: #fff;
	}
	.tw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content:active {
		transform: translateX(2px);
		background: rgba(255, 194, 14, 0.14);
	}
	.tw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .current-menu-item > .wp-block-navigation-item__content {
		color: var(--tw-sun);
	}
}
@media (prefers-reduced-motion: reduce) {
	.tw-nav .wp-block-navigation__responsive-container.is-menu-open :is(.wp-block-navigation-item__content, .wp-block-navigation__submenu-icon, .wp-block-navigation__responsive-container-close) {
		transition-duration: 0.01ms !important;
	}
}
