/* TutorPalz theme. Tokens first, then base, layout, components, pages. */

:root {
	--ink: #14325c;
	--ink-deep: #0d2242;
	--sky: #1f6bb5;
	--sky-soft: #e3eefa;
	--gold: #f0a033;
	--gold-deep: #d98a1c;
	--mist: #eef3f8;
	--line: #d6dfea;
	--text: #1b2433;
	--muted: #566377;
	--white: #fff;
	--ok: #1e7a46;
	--ok-soft: #e7f4ec;
	--warn: #8a5a00;
	--warn-soft: #fdf3dd;
	--bad: #b42318;
	--bad-soft: #fdecea;

	--orange: #ef6c1a;
	--orange-btn: #dc5a0c;
	--orange-deep: #bf4c08;
	--tint: #f4f8fd;

	--serif: "Newsreader", Georgia, "Times New Roman", serif;
	--sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
	--hand: "Caveat", "Segoe Print", cursive;

	/* Three radii only: controls, cards, large media. */
	--r-sm: 6px;
	--r-md: 8px;
	--r-lg: 12px;
	--shadow: 0 1px 2px rgba(20, 50, 92, .06), 0 10px 28px rgba(20, 50, 92, .08);
	/* Content runs 1312px wide at 1440 (64px gutters), in line with Preply-scale marketplaces. */
	--content: 1312px;
	--gutter: clamp(16px, 4.5vw, 64px);
	--section: clamp(64px, 8vw, 112px);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
fieldset { min-width: 0; }
input[type="file"] { min-width: 0; max-width: 100%; font: inherit; }
input[type="file"]::file-selector-button { min-height: 44px; margin-right: 12px; padding: 0 16px; border: 1px solid var(--ink); border-radius: var(--r-sm); background: var(--white); color: var(--ink); font: 600 1rem/1 var(--sans); cursor: pointer; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; font: 400 1.0625rem/1.6 var(--sans); color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--sky); text-underline-offset: .18em; }
a:hover { color: var(--ink); }
h1, h2, h3, h4, p, ul, ol, dl, figure { margin: 0; }
:where(ul[class], ol[class]) { list-style: none; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 3px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tp-skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--r-sm); }
.tp-skip:focus { top: 12px; }
.tp-icon { width: 1.15em; height: 1.15em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }

.tp-wrap { width: 100%; max-width: calc(var(--content) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
/* One heading scale for every page: serif display, same weight as the homepage. */
.tp-h1 { font: 700 clamp(2.4rem, 4.4vw, 3.6rem)/1.06 var(--serif); color: var(--ink); letter-spacing: -.02em; }
.tp-h2 { font: 700 clamp(1.9rem, 3.4vw, 2.75rem)/1.1 var(--serif); color: var(--ink); letter-spacing: -.015em; }
.tp-h3 { font: 600 1.5rem/1.25 var(--serif); color: var(--ink); letter-spacing: -.005em; }
.tp-lede { font-size: 1.1875rem; line-height: 1.55; color: var(--muted); max-width: 62ch; }
.tp-muted { color: var(--muted); }
.tp-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; text-decoration: none; }
.tp-link:hover { text-decoration: underline; }
.tp-prose { max-width: 70ch; }
.tp-prose p + p, .tp-prose ul, .tp-prose h2, .tp-prose h3 { margin-top: 1em; }
.tp-prose h2 { font: 600 1.75rem/1.2 var(--serif); color: var(--ink); margin-top: 1.6em; }
.tp-prose h3 { font: 650 1.15rem/1.3 var(--sans); color: var(--ink); margin-top: 1.4em; }

/* Buttons */
.tp-btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border: 1.5px solid transparent; border-radius: var(--r-sm); font-weight: 650; font-size: 1.0625rem; line-height: 1; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
/* Primary and orange are the same call-to-action style (client's Draft 1 orange). */
.tp-btn--primary { background: var(--orange-btn); color: var(--white); font-weight: 700; }
.tp-btn--primary:hover { background: var(--orange-deep); color: var(--white); }
.tp-btn--ink { background: var(--ink); color: var(--white); }
.tp-btn--ink:hover { background: var(--ink-deep); color: var(--white); }
.tp-btn--orange { background: var(--orange-btn); color: var(--white); font-weight: 700; }
.tp-btn--orange:hover { background: var(--orange-deep); color: var(--white); }
.tp-btn--outline { background: var(--white); border-color: var(--sky); color: var(--ink); }
.tp-btn--outline:hover { background: var(--sky-soft); color: var(--ink); }
.tp-btn--ghost { background: var(--white); border-color: var(--line); color: var(--ink); }
.tp-btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.tp-btn--sm { min-height: 44px; padding: 0 16px; font-size: 1rem; }
.tp-btn--block { width: 100%; }
.tp-btn[disabled] { background: var(--mist); color: var(--muted); cursor: not-allowed; }

/* Header */
.tp-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); }
.admin-bar .tp-header { top: 32px; }
.tp-header__bar { display: flex; align-items: center; gap: 40px; min-height: 80px; }
.tp-brand { flex: none; display: grid; justify-items: center; text-decoration: none; }
.tp-brand img { width: 260px; height: auto; }
.tp-nav { display: flex; align-items: center; flex: 1; gap: 24px; }
.tp-nav__list { display: flex; gap: 32px; margin: 0; padding: 0; list-style: none; }
.tp-nav__list a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 1.0625rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.tp-nav__list a:hover, .tp-nav__list a[aria-current="page"], .tp-nav__list .current-menu-item > a { color: var(--ink); border-color: var(--gold); }
.tp-nav__account { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.tp-nav__account .tp-btn { min-height: 44px; }
.tp-nav__teach { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.0625rem; margin-right: 4px; }
.tp-nav__teach:hover { text-decoration: underline; }
.tp-nav__search { display: inline-flex; padding: 8px; color: var(--ink); border-radius: 50%; }
.tp-nav__search:hover { background: var(--mist); color: var(--ink); }
.tp-nav__search .tp-icon { width: 21px; height: 21px; }
.tp-nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 10px; color: var(--ink); cursor: pointer; }
.tp-nav-toggle .tp-icon { width: 26px; height: 26px; }

/* Homepage (hp-*) */
.hp-section { padding: var(--section) 0; }
.hp-section--tint { background: var(--tint); }
.hp-eyebrow { display: flex; align-items: center; gap: 8px; font: 700 .875rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--sky); }
.hp-eyebrow .tp-icon { width: 20px; height: 20px; }
.hp-h2 { margin-top: 12px; font: 700 clamp(2.1rem, 3.9vw, 3.1rem)/1.06 var(--serif); color: var(--ink); letter-spacing: -.02em; }
.hp-h2--lg { font-size: clamp(2.3rem, 4.3vw, 3.5rem); }
.hp-h2 span { display: block; color: var(--orange); }
.hp-lede { margin-top: 14px; font-size: 1.1875rem; line-height: 1.55; color: #3c4a5e; max-width: 64ch; }
.hp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 48px; }
.hp-head--center { flex-direction: column; align-items: center; text-align: center; }
.hp-head--center .hp-eyebrow { justify-content: center; }
.hp-small { margin-top: 12px; font-size: .9375rem; color: var(--muted); }
.hp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hp-actions .tp-btn { min-height: 56px; padding: 0 28px; font-size: 1.125rem; }

.hp-note { font: 600 1.45rem/1.15 var(--hand); color: var(--ink); }
.hp-note--arrow { position: relative; flex: none; max-width: 190px; text-align: center; transform: rotate(-4deg); padding-bottom: 34px; }
.hp-note--arrow::after { content: ""; position: absolute; left: 30px; bottom: 0; width: 34px; height: 30px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); border-bottom-left-radius: 26px; }
.hp-note--arrow::before { content: ""; position: absolute; left: 60px; bottom: -5px; width: 9px; height: 9px; border-top: 2px solid var(--ink); border-right: 2px solid var(--ink); transform: rotate(45deg); }
.hp-note--bubble { flex: none; max-width: 240px; padding: 22px 26px; background: var(--sky-soft); border-radius: 50%; text-align: center; transform: rotate(-4deg); }
.hp-note--plain { color: var(--ink); }

/* Icons are plain single-colour line marks, no tinted bubbles. The colour modifiers stay in the
   markup but resolve to one ink tone so every section reads as one system. */
.hp-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 28px; height: 28px; color: var(--sky); }
.hp-icon .tp-icon { width: 24px; height: 24px; stroke-width: 1.75; }
.hp-icon--lg { width: 36px; height: 36px; }
.hp-icon--lg .tp-icon { width: 32px; height: 32px; }

.hp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hp-chips span { padding: 5px 11px; background: var(--sky-soft); border-radius: var(--r-sm); font-size: .9375rem; font-weight: 550; color: var(--ink); }

/* Hero */
.hp-hero { position: relative; overflow: hidden; padding: clamp(40px, 5.5vw, 80px) 0 40px; background: var(--tint); }
.hp-hero__grid { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hp-hero__title { margin-top: 16px; font: 700 clamp(2.75rem, 4.9vw, 4.4rem)/1.02 var(--serif); color: var(--ink); letter-spacing: -.028em; }
.hp-hero__title span { color: var(--orange); }
.hp-hero__text { margin-top: 22px; font-size: clamp(1.2rem, 1.5vw, 1.375rem); line-height: 1.5; color: #3c4a5e; max-width: 48ch; }
.hp-search { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; padding: 10px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 2px 4px rgba(20, 50, 92, .05), 0 18px 40px rgba(20, 50, 92, .1); }
.hp-search__field { position: relative; display: grid; align-content: center; padding: 10px 14px 10px 50px; border: 1px solid var(--line); border-radius: var(--r-md); }
.hp-search__field > .tp-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; color: var(--ink); }
.hp-search__field label { font-size: .875rem; font-weight: 600; color: var(--muted); line-height: 1.2; }
.hp-search__field select { min-height: 0; padding: 0 22px 0 0; border: 0; background-color: transparent; background-position: right 0 center; font-size: 1.125rem; font-weight: 650; color: var(--ink); cursor: pointer; }
.hp-search .tp-btn { min-height: 64px; padding: 0 32px; font-size: 1.125rem; border-radius: var(--r-md); }
.hp-popular { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .9375rem; color: #3c4a5e; }
.hp-popular a { padding: 6px 14px; border: 1px solid #bcd0e8; border-radius: 999px; background: var(--white); color: var(--ink); font-weight: 600; text-decoration: none; }
.hp-popular a:hover { border-color: var(--sky); background: var(--white); }
.hp-hero__media { position: relative; margin: 0; }
.hp-hero__media > img { width: 100%; aspect-ratio: 1 / 1.04; max-height: 620px; object-fit: cover; object-position: 38% center; border-radius: var(--r-lg); }
.hp-note--card { position: absolute; right: -10px; bottom: 84px; max-width: 180px; padding: 14px 16px; background: #e6f0fc; border: 1px solid #c9dcf4; border-radius: var(--r-md); box-shadow: var(--shadow); transform: rotate(-5deg); font-size: 1.4rem; color: #1d4f8f; }
.hp-hero__tutors { position: absolute; left: 20px; bottom: 20px; display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; background: var(--white); border-radius: var(--r-md); box-shadow: var(--shadow); font-size: .9375rem; font-weight: 600; color: var(--ink); max-width: 290px; line-height: 1.3; }
.hp-faces { display: flex; flex: none; }
.hp-faces img { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--white); }
.hp-faces img + img { margin-left: -10px; }
.hp-trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 48px; padding: 22px 8px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); }
.hp-trust li { display: flex; gap: 14px; align-items: center; padding: 4px 24px; font-size: .9375rem; color: var(--muted); line-height: 1.4; }
.hp-trust li + li { border-left: 1px solid var(--line); }
.hp-trust .tp-icon { width: 30px; height: 30px; color: var(--sky); stroke-width: 1.75; }
.hp-trust strong { display: block; font-size: 1.0625rem; color: var(--ink); }
.hp-teach { margin-top: 22px; font-size: 1.0625rem; color: #3c4a5e; }
.hp-teach strong { color: var(--ink); }
.hp-teach a { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; font-weight: 700; text-decoration: none; }
.hp-teach a:hover { text-decoration: underline; }

/* Curriculum cards */
.hp-boards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
/* Board name leads; the icon column only cost width, so it is dropped. */
.hp-board { display: flex; padding: 28px 26px 24px; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--ink); border-radius: var(--r-md); text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
.hp-board:hover { border-color: #b4cbe6; border-top-color: var(--orange); box-shadow: var(--shadow); color: inherit; }
.hp-board .hp-icon { display: none; }
.hp-board__body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
.hp-board__title { font: 700 1.5rem/1.15 var(--serif); color: var(--ink); letter-spacing: -.01em; }
.hp-board__range { margin-top: -6px; margin-bottom: 4px; font-size: 1rem; color: var(--muted); }
.hp-board__go { margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 1rem; color: var(--sky); }
.hp-board:hover .hp-board__go { text-decoration: underline; }

/* How it works */
.hp-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; counter-reset: none; }
.hp-step { position: relative; container-type: inline-size; padding: 32px 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); }
.hp-step__in { display: grid; gap: 18px; }
.hp-step__art { max-width: 230px; }
/* Text and illustration side by side, as in the Draft 1 mockup, whenever the card is wide enough. */
@container (min-width: 520px) {
	.hp-step__in { grid-template-columns: minmax(0, 1fr) minmax(0, .82fr); gap: 14px; align-items: center; }
	.hp-step__art { padding: 9px; font-size: .6875rem; }
}
.hp-step + .hp-step::before { content: ""; position: absolute; left: -32px; top: 50%; width: 24px; border-top: 2px dashed var(--sky); }
.hp-step + .hp-step::after { content: ""; position: absolute; left: -14px; top: calc(50% - 4px); width: 7px; height: 7px; border-top: 2px solid var(--sky); border-right: 2px solid var(--sky); transform: rotate(45deg); }
/* Step number as a typeset numeral, not a coloured disc. */
.hp-step__no { display: block; font: 700 2.5rem/1 var(--serif); color: var(--orange); letter-spacing: -.02em; }
.hp-step h3 { margin-top: 14px; font: 700 1.6rem/1.2 var(--serif); color: var(--ink); letter-spacing: -.01em; }
.hp-step p { margin-top: 8px; font-size: 1.0625rem; color: #3c4a5e; }
.hp-step__art { display: grid; gap: 8px; padding: 12px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 8px 22px rgba(20, 50, 92, .08); font-size: .8125rem; color: var(--ink); }
.hp-mini-search span { display: flex; align-items: center; gap: 6px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 6px; font-weight: 600; }
.hp-mini-search b { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px; background: var(--orange-btn); color: var(--white); border-radius: 6px; }
.hp-mini-search .tp-icon { width: 13px; height: 13px; }
.hp-mini-profile__video { position: relative; display: block; border-radius: 8px; overflow: hidden; }
.hp-mini-profile__video img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 80% 30%; }
.hp-mini-profile__video i { position: absolute; inset: 0; margin: auto; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--orange-btn); }
.hp-mini-profile__video .tp-icon { width: 15px; height: 15px; fill: currentColor; }
.hp-mini-profile .hp-chips span { font-size: .6875rem; padding: 2px 6px; }
.hp-mini-cal__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; padding-top: 14px; border-top: 6px solid var(--sky); border-radius: 4px; }
.hp-mini-cal__grid i { aspect-ratio: 1; background: var(--line); border-radius: 3px; }
.hp-mini-cal__grid i:nth-child(8) { background: var(--sky); }
.hp-mini-cal__sent { display: flex; align-items: center; gap: 6px; padding: 7px 8px; border-radius: 8px; background: var(--white); box-shadow: var(--shadow); font-weight: 700; }
.hp-mini-cal__sent .tp-icon { width: 16px; height: 16px; color: var(--ok); }
.hp-band { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 32px; align-items: center; margin-top: 40px; padding: 0 40px 0 0; background: var(--ink); color: var(--white); border-radius: var(--r-lg); overflow: hidden; }
.hp-band > .hp-icon { display: none; }
.hp-band__img { width: 220px; height: 100%; min-height: 140px; object-fit: cover; object-position: left center; }
.hp-band__text { padding: 28px 0; }
.hp-band__text h3 { font: 700 1.85rem/1.15 var(--serif); color: var(--white); letter-spacing: -.01em; }
.hp-band__text p { margin-top: 6px; font-size: 1.0625rem; color: #d3deec; max-width: 56ch; }
.hp-band__action { display: grid; justify-items: center; gap: 8px; padding: 24px 0; }
.hp-band__action .tp-btn { min-height: 56px; padding: 0 28px; font-size: 1.125rem; }
.hp-band__action small { font-size: .9375rem; color: #b9c9dd; }
.tp-finder__band .hp-band { margin-top: 40px; }
.tp-enquiry__badge { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--r-sm); background: var(--ok-soft); color: #14532d; font-size: .9375rem; font-weight: 650; }
.tp-enquiry__badge .tp-icon { width: 16px; height: 16px; }

/* Learn beyond lessons */
.hp-learn { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.hp-learn__card { display: flex; flex-direction: column; gap: 24px; padding: 0 0 32px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.hp-learn__card > img { width: 100%; aspect-ratio: 579 / 200; object-fit: cover; }
.hp-learn__card > :not(img) { margin-left: 32px; margin-right: 32px; }
.hp-learn__head { display: block; }
.hp-learn__head .hp-icon { display: none; }
.hp-learn__head h3 { font: 700 2rem/1.1 var(--serif); color: var(--ink); letter-spacing: -.015em; }
.hp-learn__head p { margin-top: 8px; font-size: 1.0625rem; color: #3c4a5e; }
/* Tiles become a ruled list: icon, label, hairline. */
.hp-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; flex: 1; align-content: start; border-top: 1px solid var(--line); }
.hp-tiles--3 { grid-template-columns: 1fr 1fr; }
.hp-tiles li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; font-weight: 600; color: var(--ink); line-height: 1.35; }
.hp-tiles li span:last-child:not(.hp-icon) { font-weight: 400; font-size: .9375rem; color: var(--muted); }
.hp-tiles strong { display: block; font-size: 1.0625rem; color: var(--ink); margin-bottom: 2px; }
.hp-learn__card .tp-btn { width: auto; min-height: 56px; font-size: 1.125rem; }
.hp-soon { padding: 17px; text-align: center; background: var(--mist); border-radius: var(--r-sm); font-weight: 600; color: var(--muted); }

/* Learning champion */
.hp-champion { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hp-champion__intro { margin-top: 22px; font-size: 1.1875rem; line-height: 1.6; color: #3c4a5e; max-width: 60ch; }
/* Perks as three ruled columns, no boxes. */
.hp-perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.hp-perks li { display: grid; gap: 10px; align-content: start; font-size: 1rem; color: var(--muted); line-height: 1.45; }
.hp-perks strong { display: block; font-size: 1.0625rem; color: var(--ink); margin-bottom: 2px; }
.hp-champion__media { position: relative; padding: 44px 84px 0 0; }
.hp-champion__photo { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; object-position: 45% center; border-radius: var(--r-lg); }
.hp-champion__media .hp-note { position: absolute; left: 0; top: 0; transform: rotate(-5deg); }
.hp-champion__videos { position: absolute; right: 0; top: 18%; display: grid; gap: 14px; }
.hp-champion__videos li { position: relative; }
.hp-champion__videos img { width: 100px; height: 100px; object-fit: cover; border-radius: var(--r-md); border: 3px solid var(--white); box-shadow: var(--shadow); }
.hp-champion__videos i { position: absolute; right: -10px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--orange-btn); color: var(--white); }
.hp-champion__videos .tp-icon { width: 12px; height: 12px; fill: currentColor; }
.hp-sticky { position: absolute; left: -16px; bottom: -22px; padding: 14px 16px; background: #ffe9a8; font: 600 1.3rem/1.05 var(--hand); color: var(--ink); transform: rotate(4deg); box-shadow: 0 8px 16px rgba(20, 50, 92, .12); }
.hp-ways { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 56px; }
.hp-way { display: flex; gap: 20px; align-items: flex-start; padding: 28px 32px; border: 1px solid var(--line); border-left: 4px solid var(--sky); border-radius: var(--r-md); background: var(--white); }
.hp-way--amber { border-left-color: var(--orange); }
.hp-way--amber .hp-icon { color: var(--orange-btn); }
.hp-way h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font: 700 1.5rem/1.2 var(--serif); color: var(--ink); }
.hp-way h3 em { padding: 3px 10px; border-radius: var(--r-sm); background: var(--sky-soft); font: 600 .875rem/1.3 var(--sans); font-style: normal; color: var(--ink); }
.hp-way--amber h3 em { background: #fff0e2; color: var(--orange-deep); }
.hp-way p { margin-top: 8px; color: #3c4a5e; font-size: 1.0625rem; }

/* Schools */
.hp-schools { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding: clamp(24px, 3.5vw, 48px); background: var(--tint); border: 1px solid var(--line); border-radius: var(--r-lg); }
.hp-schools__img { width: 100%; height: 100%; min-height: 440px; object-fit: cover; border-radius: var(--r-md); }
.hp-services { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin-top: 28px; border-top: 1px solid var(--line); }
.hp-services li { display: flex; gap: 14px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 1rem; color: var(--muted); line-height: 1.45; }
.hp-services strong { display: block; font-size: 1.0625rem; color: var(--ink); margin-bottom: 2px; }

/* Curriculum index (Resources page) */
.tp-index { border-top: 2px solid var(--ink); }
.tp-index__row { display: grid; grid-template-columns: 220px 1fr auto; gap: 8px 32px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.tp-index__board { font: 500 1.6rem/1.2 var(--serif); color: var(--ink); }
.tp-index__programmes { display: flex; flex-wrap: wrap; gap: 4px 24px; color: #3c4a5e; }
.tp-index__programmes li { white-space: nowrap; }
.tp-index__go { display: inline-flex; align-items: center; gap: 4px; font-weight: 650; text-decoration: none; white-space: nowrap; color: var(--sky); }
.tp-index__go:hover { color: var(--ink); text-decoration: underline; }
.tp-index__soon { font-size: .875rem; color: var(--muted); white-space: nowrap; }

/* Tutor summary */
.tp-tutor { display: grid; align-content: start; grid-template-columns: 120px minmax(0, 1fr) 200px; gap: 32px; padding: 32px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); transition: border-color .15s, box-shadow .15s; }
.tp-tutor:hover { border-color: #b4cbe6; box-shadow: var(--shadow); }
.tp-tutor--compact { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; padding: 22px; }
.tp-tutor__name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font: 700 1.75rem/1.15 var(--serif); letter-spacing: -.01em; }
.tp-tutor__name a { color: var(--ink); text-decoration: none; }
.tp-tutor__name a:hover { text-decoration: underline; }
.tp-level { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-sm); font: 650 .875rem/1.3 var(--sans); letter-spacing: 0; white-space: nowrap; }
.tp-level--verified { color: var(--sky); background: var(--sky-soft); }
.tp-level--preferred { color: #8a5407; background: #fdf0db; }
.tp-level--distinguished { color: #14633a; background: #e2f3e8; }
.tp-level--champion { color: #6b3fa0; background: #f1e9fb; }
.tp-tutor__headline { margin-top: 6px; font-size: 1.125rem; font-weight: 600; line-height: 1.45; color: var(--text); }
.tp-tutor__meta { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 1rem; color: var(--muted); }
.tp-tutor__meta span { display: inline-flex; align-items: center; gap: 6px; }
.tp-tutor__award { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 600; color: var(--warn); }
.tp-tutor__bio { margin-top: 14px; color: #3c4a5e; font-size: 1.0625rem; }
.tp-tutor__side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 16px; text-align: right; border-left: 1px solid var(--line); padding-left: 32px; }
.tp-tutor__fee { font-size: .9375rem; color: var(--muted); white-space: nowrap; }
.tp-tutor__fee strong { display: block; font: 700 1.9rem/1.15 var(--sans); color: var(--ink); letter-spacing: -.01em; }

/* Tags are labels, so they get the control radius, not pills. */
.tp-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tp-tags li { padding: 5px 11px; background: var(--mist); border-radius: var(--r-sm); font-size: .9375rem; color: var(--ink); }
.tp-tags--lg li { padding: 7px 14px; font-size: 1rem; background: var(--sky-soft); }
.tp-sample { display: inline-block; padding: 2px 8px; border: 1px dashed var(--warn); border-radius: 4px; background: var(--warn-soft); color: var(--warn); font: 600 .8125rem/1.6 var(--sans); }
p.tp-sample { margin-bottom: 12px; }

.tp-avatar { border-radius: 50%; object-fit: cover; background: var(--sky-soft); }
.tp-avatar--sm { width: 44px; height: 44px; }
.tp-avatar--md { width: 120px; height: 120px; }
.tp-tutor--compact .tp-avatar--md { width: 72px; height: 72px; }
.tp-avatar--lg { width: 120px; height: 120px; }
.tp-avatar--xl { width: 184px; height: 184px; border: 4px solid var(--white); box-shadow: var(--shadow); }
.tp-avatar--initials { display: inline-flex; align-items: center; justify-content: center; color: var(--ink); font: 500 2rem/1 var(--serif); }
.tp-avatar--sm.tp-avatar--initials { font-size: 1rem; }
.tp-avatar--xl.tp-avatar--initials { font-size: 3.4rem; }

/* Page head */
.tp-page-head { background: var(--tint); padding: clamp(44px, 6vw, 88px) 0 clamp(36px, 4.5vw, 56px); border-bottom: 1px solid var(--line); }
.tp-page-head .tp-lede { margin-top: 16px; }
.tp-page-body { padding-top: 56px; padding-bottom: var(--section); }

/* Tutor finder */
.tp-finder { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 56px; padding-top: 48px; padding-bottom: var(--section); align-items: start; }
.tp-filters { position: sticky; top: 104px; display: grid; gap: 24px; }
.tp-filters fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 4px; }
.tp-filters legend { font-weight: 650; font-size: 1rem; margin-bottom: 6px; color: var(--ink); }
.tp-radio { display: flex; gap: 10px; align-items: center; padding: 5px 0; min-height: 32px; font-size: 1rem; cursor: pointer; }
.tp-radio input { accent-color: var(--ink); width: 16px; height: 16px; }
.tp-filters__reset { text-align: center; font-size: .9375rem; }
.tp-filters__toggle > summary { display: none; }
/* Sticky sidebars only when they fit the window, else "Search Tutors" sits below the fold until the page ends (short laptop screens, Edge/Firefox). */
@media (max-height: 760px) { .tp-filters, .tp-profile__aside, .tp-dash__side { position: static; } }
.tp-filters__body { display: grid; gap: 22px; }
.tp-results__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--line); font-size: 1.125rem; }
.tp-results__bar strong { color: var(--ink); }
.tp-sort { display: flex; align-items: center; gap: 10px; font-size: 1rem; white-space: nowrap; }
.tp-sort select { padding: 8px 34px 8px 12px; }
.tp-results__list { display: grid; gap: 20px; }
.tp-pager { margin-top: 32px; display: flex; gap: 6px; flex-wrap: wrap; }
.tp-pager .page-numbers { display: inline-flex; align-items: center; min-width: 40px; min-height: 40px; padding: 0 12px; justify-content: center; border: 1px solid var(--line); border-radius: var(--r-sm); text-decoration: none; color: var(--ink); }
.tp-pager .current { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* Forms */
.tp-field { display: grid; gap: 8px; }
.tp-field label, .tp-field > legend { font-weight: 650; font-size: 1rem; color: var(--ink); }
.tp-resource-free { margin-top: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--tint); }
.tp-optional { font-weight: 400; color: var(--muted); font-size: .875rem; margin-left: 4px; }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="number"], input[type="url"], select, textarea {
	width: 100%; padding: 13px 14px; background: var(--white); border: 1px solid #b9c6d6; border-radius: var(--r-sm); min-height: 52px;
}
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2314325c' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.tp-search__field select { background-position: right 0 center; padding-right: 22px; min-height: 0; }
textarea { min-height: 120px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--sky-soft); border-color: var(--sky); outline-offset: 0; }
.has-error input, .has-error textarea, .has-error select, [aria-invalid="true"] { border-color: var(--bad); }
.tp-field__help { font-size: .9375rem; color: var(--muted); }
.tp-field__error { font-size: .9375rem; color: var(--bad); font-weight: 600; }
.tp-input-icon { position: relative; }
.tp-input-icon .tp-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.tp-input-icon input { padding-left: 38px; }
.tp-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.tp-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 24px; min-width: 0; }
.tp-form fieldset[disabled] { opacity: .6; }
.tp-form--narrow { max-width: 440px; }
.tp-form__section { font: 600 1.6rem/1.25 var(--serif); color: var(--ink); letter-spacing: -.01em; padding-top: 28px; border-top: 1px solid var(--line); margin-top: 16px; }
.tp-form__intro { color: var(--muted); margin-top: -8px; }
.tp-form__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 1rem; color: var(--muted); }
.tp-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.tp-grid-2 > .tp-field { align-content: start; }
.tp-check { display: flex; gap: 10px; align-items: flex-start; font-size: 1rem; color: #3c4a5e; cursor: pointer; }
.tp-check input { margin-top: 4px; accent-color: var(--ink); width: 17px; height: 17px; flex: none; }
.tp-chips { border: 0; padding: 0; margin: 0; }
.tp-chips__list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.tp-chips__list label { position: relative; cursor: pointer; }
.tp-chips__list input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.tp-chips__list span { display: inline-block; padding: 10px 16px; border: 1px solid #b9c6d6; border-radius: var(--r-sm); font-size: 1rem; background: var(--white); }
.tp-chips__list label:hover span { border-color: var(--ink); }
.tp-chips__list input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.tp-chips__list input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }
.tp-other { display: none; margin-top: 14px; }
.tp-chips:has(.tp-other-toggle:checked) .tp-other { display: block; }
.tp-hp { position: absolute; left: -9999px; }
.tp-switch { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tp-switch legend { font-weight: 650; margin-bottom: 8px; color: var(--ink); }
.tp-switch label { position: relative; cursor: pointer; }
.tp-switch input { position: absolute; opacity: 0; }
.tp-switch span { display: block; height: 100%; padding: 20px 22px; border: 1.5px solid var(--line); border-radius: var(--r-md); color: var(--muted); font-size: 1rem; }
.tp-switch strong { display: block; font: 600 1.5rem/1.2 var(--serif); color: var(--ink); margin-bottom: 4px; }
.tp-switch input:checked + span { border-color: var(--ink); background: var(--mist); box-shadow: inset 0 0 0 1px var(--ink); }
.tp-switch input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }
.tp-join[data-type="student"] .tp-only-tutor, .tp-join[data-type="tutor"] .tp-only-student { display: none; }

/* Alerts and states */
.tp-alert { padding: 14px 18px; border-radius: var(--r-sm); border-left: 4px solid; font-size: 1.0625rem; }
.tp-alert--error { background: var(--bad-soft); border-color: var(--bad); color: #7a1a12; }
.tp-alert--ok { background: var(--ok-soft); border-color: var(--ok); color: #14532d; }
.tp-alert--info { background: var(--sky-soft); border-color: var(--sky); color: var(--ink); }
.tp-alert--warn { background: var(--warn-soft); border-color: var(--warn); color: #5c3d00; }
.tp-note { padding: 16px; background: var(--mist); border-radius: var(--r-sm); }
.tp-empty { display: grid; justify-items: center; gap: 14px; text-align: center; padding: 72px 32px; border: 1px dashed #b9c6d6; border-radius: var(--r-md); color: var(--muted); font-size: 1.0625rem; }
.tp-empty > .tp-icon { width: 36px; height: 36px; color: var(--sky); }
.tp-empty p { max-width: 46ch; }
.tp-empty .tp-empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: none; }

/* Tutor profile */
.tp-preview-bar { background: var(--warn-soft); color: #5c3d00; font-weight: 600; padding: 10px 0; border-bottom: 1px solid #ecd9a6; }
.tp-preview-bar .tp-wrap { display: flex; gap: 8px; align-items: center; }
.tp-profile__head { background: var(--tint); border-bottom: 1px solid var(--line); padding: 28px 0 0; }
.tp-crumbs { display: flex; align-items: center; gap: 6px; font-size: 1rem; color: var(--muted); margin-bottom: 32px; }
.tp-crumbs .tp-icon { width: 14px; height: 14px; }
.tp-profile__id { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 40px; align-items: center; }
.tp-profile__name { font: 700 clamp(2.4rem, 4.8vw, 3.8rem)/1.03 var(--serif); color: var(--ink); letter-spacing: -.022em; margin-top: 6px; }
.tp-profile__headline { margin-top: 12px; font-size: 1.3rem; font-weight: 600; line-height: 1.4; color: #3c4a5e; max-width: 60ch; }
.tp-profile__meta { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); font-size: 1rem; }
.tp-profile__meta li { display: inline-flex; gap: 6px; align-items: center; }
.tp-awards { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.tp-awards li { display: flex; gap: 14px; align-items: center; padding: 16px 22px 16px 18px; background: #fff8ea; border: 1px solid #f1d7a4; border-radius: var(--r-md); font-size: 1.0625rem; }
.tp-awards .tp-icon { width: 30px; height: 30px; color: var(--gold-deep); }
.tp-awards strong { display: block; color: var(--ink); }
.tp-awards span { font-size: .9375rem; color: var(--warn); }
.tp-stats { margin-top: 32px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.tp-stats > div { padding: 22px 24px 24px 0; }
.tp-stats > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.tp-stats dt { font-size: .875rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.tp-stats dd { margin: 6px 0 0; font-size: 1.0625rem; font-weight: 650; color: var(--ink); }
.tp-profile__layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(40px, 6vw, 88px); padding-top: 56px; padding-bottom: var(--section); align-items: start; }
.tp-block { padding-bottom: 44px; margin-bottom: 44px; border-bottom: 1px solid var(--line); font-size: 1.0625rem; }
.tp-block:last-child { border-bottom: 0; margin-bottom: 0; }
.tp-block > .tp-h3 { margin-bottom: 20px; }
.tp-video { position: relative; aspect-ratio: 16 / 9; background: var(--ink-deep); border-radius: var(--r-md); overflow: hidden; }
.tp-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tp-video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.tp-creds__list { display: grid; gap: 12px; }
.tp-creds__list + .tp-creds__list { margin-top: 20px; padding-top: 20px; border-top: 1px dashed var(--line); }
.tp-creds__list li { display: flex; gap: 12px; align-items: flex-start; }
.tp-creds__list .tp-icon { color: var(--sky); margin-top: 3px; }
.tp-creds__list small { display: block; color: var(--muted); font-size: .875rem; }
.tp-contrib { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 560px; gap: 12px; margin-bottom: 18px; }
.tp-contrib > div { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-md); }
.tp-contrib dt { font-size: .9375rem; color: var(--muted); }
.tp-contrib dd { margin: 4px 0 0; font: 700 2.2rem/1.05 var(--serif); color: var(--ink); }
.tp-contrib__courses { display: grid; gap: 6px; }
.tp-profile__aside { position: sticky; top: 104px; }
.tp-book { padding: 32px; border: 1px solid var(--line); border-top: 3px solid var(--ink); border-radius: var(--r-md); box-shadow: var(--shadow); background: var(--white); display: grid; gap: 22px; }
.tp-book__fee { color: var(--muted); font-size: 1rem; }
.tp-book__fee strong { font: 700 2.4rem/1.1 var(--sans); color: var(--ink); letter-spacing: -.015em; }
.tp-book__facts { display: grid; gap: 14px; }
.tp-book__facts > div { display: grid; gap: 2px; }
.tp-book__facts dt { display: flex; gap: 8px; align-items: center; font-size: .9375rem; color: var(--muted); font-weight: 600; }
.tp-book__facts dd { margin: 0 0 0 26px; font-size: 1.0625rem; font-weight: 600; }
.tp-book .tp-btn { min-height: 56px; font-size: 1.125rem; }
.tp-book__small { font-size: .9375rem; color: var(--muted); text-align: center; }
.tp-book__privacy { display: flex; gap: 10px; font-size: .9375rem; color: var(--muted); padding-top: 18px; border-top: 1px solid var(--line); }
.tp-book__privacy .tp-icon { color: var(--ok); margin-top: 2px; }
.tp-request { gap: 14px; }

/* Courses */
.tp-tabs { display: flex; gap: 4px; margin-top: 36px; margin-bottom: calc(-1 * clamp(36px, 4.5vw, 56px) - 1px); }
.tp-tabs a { padding: 14px 22px; text-decoration: none; font-weight: 650; font-size: 1.0625rem; color: var(--muted); border: 1px solid transparent; border-bottom: 0; border-radius: var(--r-sm) var(--r-sm) 0 0; }
.tp-tabs a[aria-selected="true"] { background: var(--white); color: var(--ink); border-color: var(--line); }
/* Search and filters on one row; they wrap only when the row runs out. */
.tp-bar { display: flex; flex-wrap: wrap; gap: 12px; padding: 36px 0 8px; }
.tp-bar__search { flex: 2 1 280px; }
.tp-bar select { width: auto; min-width: 0; flex: 1 1 180px; }
.tp-bar .tp-btn { flex: none; min-height: 52px; }
.tp-count { color: var(--muted); margin: 20px 0 24px; font-size: 1.0625rem; }
.tp-course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 40px 32px; }
.tp-course { display: flex; flex-direction: column; }
.tp-only-tutor { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.tp-form__intro { margin-top: -12px; }
.tp-course__media { text-decoration: none; display: block; aspect-ratio: 16 / 10; border-radius: var(--r-md); overflow: hidden; background: var(--mist); }
.tp-course__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.tp-course:hover .tp-course__media img { transform: scale(1.03); }
.tp-course__cover { display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; height: 100%; padding: 20px 22px; background: var(--ink); color: var(--white); background-image: repeating-linear-gradient(0deg, transparent 0 27px, rgba(255, 255, 255, .07) 27px 28px); }
.tp-course__cover span { font-size: .9375rem; font-weight: 600; color: #b9c9dd; }
.tp-course__cover strong { font: 700 2rem/1.1 var(--serif); letter-spacing: -.01em; }
.tp-course__cover--ib { background-color: #1d4f7a; }
.tp-course__cover--cbse, .tp-course__cover--icse { background-color: #2b4a3f; }
.tp-course__cover--edexcel { background-color: #3d2f5c; }
.tp-course__cover--adult { background-color: #5a3a1f; }
.tp-course__body { padding-top: 18px; display: grid; gap: 8px; flex: 1; align-content: start; }
.tp-course__level { font-size: .9375rem; font-weight: 650; color: var(--sky); }
.tp-course__title { font: 600 1.55rem/1.2 var(--serif); letter-spacing: -.01em; }
.tp-course__title a { color: var(--ink); text-decoration: none; }
.tp-course__title a:hover { text-decoration: underline; }
.tp-course__tutor { font-size: 1rem; color: var(--muted); }
.tp-course__foot { display: flex; justify-content: space-between; font-size: 1rem; color: var(--muted); padding-top: 12px; border-top: 1px solid var(--line); margin-top: 6px; }
.tp-course__foot strong { color: var(--ink); }
.tp-course__body .tp-sample { justify-self: start; }
.tp-callout { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin: 72px 0 var(--section); padding: 36px 40px; background: var(--tint); border: 1px solid var(--line); border-radius: var(--r-lg); font-size: 1.0625rem; }
.tp-callout p { color: var(--muted); margin-top: 4px; }
.tp-course-page { padding-top: 40px; padding-bottom: var(--section); }
.tp-course-page__layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(40px, 6vw, 88px); align-items: start; }
.tp-course-page__layout .tp-h1 { margin: 6px 0 12px; }
.tp-course-page__media { margin: 28px 0; }
.tp-course-page__media img { border-radius: var(--r-md); }

/* Account pages */
.tp-auth-wrap { max-width: calc(840px + 2 * var(--gutter)); padding-top: clamp(48px, 6vw, 80px); padding-bottom: var(--section); }
.tp-auth .tp-auth-wrap:has(.tp-form--narrow) { max-width: calc(440px + 2 * var(--gutter)); }
.tp-auth-wrap__head { margin-bottom: 36px; }
.tp-auth-wrap__head .tp-lede { margin-top: 12px; }
.tp-auth .tp-form > .tp-btn, .tp-auth .tp-form .tp-btn--block { min-height: 56px; font-size: 1.125rem; }

/* Dashboard */
.tp-app-wrap { padding-top: 40px; padding-bottom: 88px; }
.tp-dash { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 56px; align-items: start; }
.tp-dash__side { position: sticky; top: 104px; }
.tp-dash__who { display: flex; gap: 12px; align-items: center; padding-bottom: 20px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.tp-dash__who strong { display: block; color: var(--ink); line-height: 1.3; font-size: 1.0625rem; }
.tp-dash__who span { font-size: .875rem; color: var(--muted); }
.tp-dash__nav { display: grid; gap: 2px; }
.tp-dash__nav a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-sm); text-decoration: none; color: var(--text); font-weight: 600; font-size: 1.0625rem; }
.tp-dash__nav a:hover { background: var(--mist); color: var(--ink); }
.tp-dash__nav a[aria-current="page"] { background: var(--ink); color: var(--white); }
.tp-dash__nav em { margin-left: auto; font-style: normal; font-size: .8125rem; color: var(--muted); }
.tp-dash__nav a[aria-current="page"] em { color: #b9c9dd; }
.tp-dash__nav a:last-child { margin-top: 12px; border-top: 1px solid var(--line); border-radius: 0; padding-top: 16px; }
.tp-dash__main { display: grid; gap: 28px; align-content: start; min-width: 0; font-size: 1.0625rem; }
.tp-dash__title { font: 700 clamp(2.2rem, 3.6vw, 2.9rem)/1.08 var(--serif); color: var(--ink); letter-spacing: -.02em; }
.tp-status { display: flex; gap: 16px; padding: 20px 22px; border-radius: var(--r-md); border: 1px solid; }
.tp-status > .tp-icon { width: 28px; height: 28px; margin-top: 2px; }
.tp-status h2 { font: 650 1.15rem/1.3 var(--sans); margin-bottom: 4px; }
.tp-status p { margin-bottom: 8px; }
.tp-status a { font-weight: 650; }
.tp-status--ok { background: var(--ok-soft); border-color: #b9dfc7; color: #14532d; }
.tp-status--wait { background: var(--sky-soft); border-color: #bcd4ee; color: var(--ink); }
.tp-status--warn { background: var(--warn-soft); border-color: #ecd9a6; color: #5c3d00; }
.tp-status--bad { background: var(--bad-soft); border-color: #f2c4bf; color: #7a1a12; }
.tp-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-md); }
.tp-facts > div { padding: 20px 24px; min-width: 0; }
.tp-facts > div + div { border-left: 1px solid var(--line); }
.tp-facts span { display: block; font-size: .875rem; color: var(--muted); font-weight: 600; }
.tp-facts strong { display: block; margin-top: 4px; color: var(--ink); font-size: 1.25rem; overflow-wrap: anywhere; }
.tp-checklist { display: grid; gap: 10px; }
.tp-checklist li { display: flex; gap: 10px; align-items: center; color: var(--muted); }
.tp-checklist li .tp-icon { color: #9aa7b8; }
.tp-checklist li.is-done { color: var(--text); }
.tp-checklist li.is-done .tp-icon { color: var(--ok); }
.tp-dash__main > .tp-btn { justify-self: start; }
.tp-upcoming { padding: 28px; border: 1px dashed #b9c6d6; border-radius: var(--r-md); max-width: 62ch; display: grid; gap: 8px; }
.tp-upcoming__tag { justify-self: start; font-size: .8125rem; font-weight: 650; color: var(--muted); background: var(--mist); padding: 3px 10px; border-radius: 999px; }
.tp-upcoming__note { color: var(--muted); font-size: .9375rem; }
.tp-photo-field { display: flex; gap: 20px; align-items: center; }
.tp-photo-field .tp-field { flex: 1; }
.tp-next { padding: 24px; background: var(--mist); border-radius: var(--r-md); display: grid; gap: 8px; justify-items: start; }
.tp-requests { display: grid; gap: 14px; }
.tp-request-item { padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r-md); display: grid; gap: 10px; justify-items: start; }
.tp-request-item__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; width: 100%; }
.tp-request-item__head span { color: var(--muted); font-size: .9375rem; }
.tp-request-item__head time { margin-left: auto; color: var(--muted); font-size: .875rem; }
.tp-request-item__status { font-size: .8125rem; font-weight: 650; color: var(--ink); background: var(--sky-soft); padding: 3px 10px; border-radius: 999px; }
.tp-request-item__status.is-approved { background: var(--warn-soft); color: #5c3d00; }
.tp-request-item__status.is-accepted { background: var(--ok-soft); color: #14532d; }
.tp-request-item__status.is-declined, .tp-request-item__status.is-tutor_declined { background: var(--bad-soft); color: #7a1a12; }
.tp-request-item p { margin: 0; }
.tp-request-item__note { padding: 10px 14px; background: var(--mist); border-radius: var(--r-md); width: 100%; }
.tp-request-item__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.tp-request-item__fee { font-weight: 650; color: var(--ink); font-size: .9375rem; }
.tp-request-item__next { display: flex; gap: 8px; align-items: center; color: var(--sky); font-weight: 600; font-size: .9375rem; }
.tp-respond { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.tp-respond input { flex: 1 1 220px; min-height: 46px; padding: 10px 12px; }
.tp-respond__fee { flex: 1 1 100%; display: grid; gap: 4px; font-weight: 650; font-size: .9375rem; color: var(--ink); }
.tp-respond__fee input { max-width: 200px; }
.tp-request-item__thread { width: 100%; border-top: 1px solid var(--line); padding-top: 10px; }
.tp-request-item__thread summary, .tp-class__edit summary, .tp-cal-sync summary { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; font-weight: 650; color: var(--ink); font-size: .9375rem; }
.tp-thread { display: grid; gap: 10px; margin-top: 12px; }
.tp-thread__msg { padding: 10px 14px; border-radius: var(--r-md); background: var(--mist); max-width: 85%; }
.tp-thread__msg.is-mine { background: var(--sky-soft); justify-self: end; }
.tp-thread__who { font-size: .8125rem; color: var(--muted); margin-bottom: 2px; }
.tp-thread__who strong { color: var(--ink); }
.tp-thread__form { display: grid; gap: 8px; justify-items: start; }
.tp-thread__form textarea { min-height: 76px; }
.tp-book__steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: .875rem; color: var(--muted); }
input[type="date"], input[type="time"] { width: 100%; padding: 13px 14px; background: var(--white); border: 1px solid #b9c6d6; border-radius: var(--r-sm); min-height: 52px; font: inherit; }

/* Classes */
.tp-panel > summary { list-style: none; display: inline-flex; }
.tp-panel > summary::-webkit-details-marker { display: none; }
.tp-panel[open] { padding: 22px; border: 1px solid var(--line); border-radius: var(--r-md); }
.tp-panel[open] > summary { margin-bottom: 18px; }
.tp-classes { display: grid; gap: 14px; }
.tp-class { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-md); }
.tp-class__when { display: grid; justify-items: center; align-content: start; padding: 8px 0; border-radius: var(--r-sm); background: var(--sky-soft); color: var(--ink); }
.tp-class__when strong { font: 600 1.6rem/1 var(--serif); }
.tp-class__when span { font-size: .8125rem; font-weight: 650; text-transform: uppercase; }
.tp-class.is-cancelled { opacity: .7; }
.tp-class.is-cancelled .tp-class__when, .tp-class.is-completed .tp-class__when, .tp-class.is-finished .tp-class__when { background: var(--mist); }
.tp-class__body { display: grid; gap: 6px; min-width: 0; }
.tp-class__title { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; color: var(--ink); }
.tp-class__status { font-size: .8125rem; font-weight: 650; background: var(--mist); padding: 2px 10px; border-radius: 999px; color: var(--muted); }
.tp-class.is-scheduled .tp-class__status { background: var(--ok-soft); color: #14532d; }
.tp-class.is-cancelled .tp-class__status { background: var(--bad-soft); color: #7a1a12; }
.tp-class__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); font-size: .9375rem; }
.tp-class__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; align-items: center; }
.tp-class__rated { display: inline-flex; gap: 6px; align-items: center; color: var(--ok); font-weight: 600; font-size: .9375rem; }
.tp-class__edit { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.tp-class__edit .tp-class-form { margin-top: 14px; }
.tp-cal-sync { display: flex; gap: 14px; padding: 18px 20px; background: var(--mist); border-radius: var(--r-md); }
.tp-cal-sync > .tp-icon { width: 26px; height: 26px; color: var(--sky); flex: none; }
.tp-cal-sync p { color: var(--muted); margin: 2px 0 10px; font-size: .9375rem; }
.tp-cal-sync details { margin-top: 10px; }
.tp-cal-sync input { margin-top: 6px; font-size: 1rem; }
.tp-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.tp-table th { text-align: left; font-size: .8125rem; color: var(--muted); font-weight: 650; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.tp-table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }

/* Ratings */
.tp-rating { display: inline-flex; align-items: center; gap: 4px; color: var(--text); text-decoration: none; }
.tp-rating .tp-icon { color: var(--gold-deep); fill: var(--gold); }
.tp-stars { color: var(--gold-deep); letter-spacing: 2px; }
.tp-rating-sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin-bottom: 14px; }
.tp-reviews { display: grid; gap: 14px; }
.tp-review { padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r-md); }
.tp-review__head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin-bottom: 4px; }
.tp-review__head time { color: var(--muted); font-size: .875rem; }
.tp-feedback { padding: 22px; border: 1px solid var(--line); border-radius: var(--r-md); }
.tp-rate { border: 0; padding: 0; margin: 0; }
.tp-rate__stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.tp-rate__stars input { position: absolute; opacity: 0; }
.tp-rate__stars label { cursor: pointer; padding: 4px; color: #b9c6d6; }
.tp-rate__stars label .tp-icon { width: 30px; height: 30px; }
.tp-rate__stars input:checked ~ label, .tp-rate__stars label:hover, .tp-rate__stars label:hover ~ label { color: var(--gold-deep); }
.tp-rate__stars input:checked ~ label .tp-icon, .tp-rate__stars label:hover .tp-icon, .tp-rate__stars label:hover ~ label .tp-icon { fill: var(--gold); }
.tp-rate__stars input:focus-visible + label { outline: 3px solid var(--sky); border-radius: var(--r-sm); }

/* In-page jumps (#lesson, #request-1, #class-1, #rate) land below the sticky header. */
.tp-course-page, .tp-player, .tp-request-item, .tp-class, .tp-feedback, #request { scroll-margin-top: 96px; }

/* Course player and outline */
.tp-player { display: grid; gap: 16px; padding: 24px 0 40px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.tp-player__pos { font-size: .875rem; font-weight: 650; color: var(--sky); }
.tp-player__nav { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tp-outline-pub { margin-top: 36px; }
.tp-outline-list, .tp-outline-list ol { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 0; }
.tp-outline-list__section > h3 { font: 650 1rem/1.4 var(--sans); color: var(--ink); padding: 14px 0 6px; }
.tp-outline-list__lesson { display: flex; gap: 10px; align-items: center; padding: 11px 14px; border: 1px solid var(--line); border-top: 0; font-size: .9375rem; }
.tp-outline-list ol .tp-outline-list__lesson:first-child, .tp-outline-list > .tp-outline-list__lesson:first-child { border-top: 1px solid var(--line); border-radius: var(--r-sm) var(--r-sm) 0 0; }
.tp-outline-list__lesson .tp-icon { color: var(--muted); flex: none; }
.tp-outline-list__lesson.is-done .tp-icon { color: var(--ok); }
.tp-outline-list__lesson.is-current { background: var(--sky-soft); }
.tp-outline-list__lesson span:not(.tp-outline-list__min) { color: var(--muted); }
.tp-outline-list__free { white-space: nowrap; font-style: normal; font-size: .75rem; font-weight: 650; color: var(--ok); background: var(--ok-soft); padding: 2px 8px; border-radius: 999px; }
.tp-outline-list__min { margin-left: auto; color: var(--muted); font-size: .875rem; white-space: nowrap; }
.tp-progress { height: 8px; background: var(--mist); border-radius: 999px; overflow: hidden; width: 100%; }
.tp-progress span { display: block; height: 100%; background: var(--ok); }
.tp-my-courses { display: grid; gap: 14px; }
.tp-my-course { display: flex; gap: 18px; align-items: center; justify-content: space-between; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-md); }
.tp-my-course > div { flex: 1; display: grid; gap: 6px; }
.tp-my-course__title { font: 500 1.25rem/1.25 var(--serif); color: var(--ink); text-decoration: none; }

/* Footer: colours sampled from the client's footer mockup (Nov 7). */
.tp-footer { --f-bg: #082147; --f-text: #e3ecf7; --f-line: rgba(111, 140, 181, .55); background: var(--f-bg); color: var(--f-text); padding: 44px 0 0; font-size: .875rem; line-height: 1.5; }
.tp-footer__name { display: flex; align-items: center; gap: 8px; font: 700 1.375rem/1.2 var(--sans); color: var(--white); }
.tp-footer__name .tp-icon { width: 26px; height: 26px; color: var(--gold); }
.tp-footer__tag { margin: 2px 0 0 34px; font-size: .8125rem; color: var(--f-text); }
.tp-footer__about { margin-top: 12px; max-width: 110ch; color: var(--f-text); }
.tp-footer__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 40px; padding: 28px 0 24px; }
.tp-footer__h { font: 700 1rem/1.3 var(--sans); color: var(--white); margin-bottom: 10px; }
.tp-footer__connect { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; padding: 16px 0; border-top: 1px solid var(--f-line); }
.tp-footer__connect .tp-footer__h { margin-bottom: 8px; }
.tp-footer .tp-footer__social { display: flex; gap: 8px; }
.tp-footer__social a { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid var(--f-line); border-radius: 50%; color: var(--white); }
.tp-footer__social a:hover { background: rgba(255, 255, 255, .1); text-decoration: none; }
.tp-footer__social .tp-icon { width: 16px; height: 16px; }
.tp-footer__email { display: flex; align-items: center; gap: 8px; color: var(--f-text); margin: 0; }
.tp-footer__email .tp-icon { width: 18px; height: 18px; }
.tp-footer__email a { color: var(--white); font-weight: 700; }
.tp-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.tp-footer a { color: var(--f-text); text-decoration: none; }
.tp-footer a:hover { color: var(--gold); text-decoration: none; }
.tp-footer__base { position: relative; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-top: 14px; padding-bottom: 22px; font-size: .8125rem; color: var(--f-text); }
.tp-footer__base::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--f-line); }
/* Policy links: two audience columns split by a rule, then one inline legal row with bars. */
.tp-footer__h--icon { display: flex; align-items: center; gap: 8px; }
.tp-footer__h--icon .tp-icon { width: 20px; height: 20px; color: var(--gold); flex: none; }
.tp-footer__policies { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 40px; padding: 18px 0; border-top: 1px solid var(--f-line); }
.tp-footer__policies > div + div { border-left: 1px solid var(--f-line); padding-left: 40px; }
.tp-footer__legal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; padding: 14px 0; border-top: 1px solid var(--f-line); }
.tp-footer__legal .tp-footer__h { margin: 0; }
.tp-footer .tp-footer__legal ul { display: flex; flex-wrap: wrap; gap: 6px 0; }
.tp-footer__legal li + li { border-left: 1px solid var(--f-line); margin-left: 16px; padding-left: 16px; }
/* Long policy pages: readable lists and tables. */
.tp-prose ol, .tp-prose ul { padding-left: 1.4em; }
.tp-prose ul { list-style: disc; }
.tp-prose ol { list-style: decimal; margin-top: 1em; }
.tp-prose li + li { margin-top: .4em; }
.tp-prose ul + p, .tp-prose ol + p, .tp-prose figure + p { margin-top: 1em; }
.tp-prose h2 + p, .tp-prose h3 + p { margin-top: .75em; }
.tp-prose p + h2, .tp-prose ul + h2, .tp-prose figure + h2 { margin-top: 1.6em; }
.tp-prose strong { color: var(--ink); font-weight: 650; }
.tp-prose .wp-block-table { margin: 1.25em 0; overflow-x: auto; }
.tp-prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.tp-prose th, .tp-prose td { padding: 10px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.tp-prose th { background: var(--tint); color: var(--ink); font-weight: 650; }

/* Tablet */
@media (max-width: 1080px) {
	.tp-nav__teach { display: none; }
	.tp-nav__list { gap: 18px; }
	.tp-tutor { grid-template-columns: 80px minmax(0, 1fr); }
	.tp-tutor .tp-avatar--md { width: 80px; height: 80px; }
	.tp-tutor__side { grid-column: 2; flex-direction: row; align-items: center; text-align: left; border-left: 0; padding-left: 0; padding-top: 14px; border-top: 1px solid var(--line); }
	.tp-tutor__fee strong { display: inline; font-size: 1.2rem; }
	.tp-tutor--compact { grid-template-columns: 1fr; }
	.tp-profile__layout, .tp-course-page__layout { grid-template-columns: minmax(0, 1fr) 300px; }
	.hp-boards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hp-steps { grid-template-columns: 1fr; gap: 16px; max-width: 760px; margin: 0 auto; }
	.hp-step + .hp-step::before, .hp-step + .hp-step::after { display: none; }
	.hp-perks { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
	.tp-nav-toggle { display: inline-flex; }
	.tp-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(20, 50, 92, .08); }
	.tp-nav.is-open { display: flex; }
	.tp-nav__list { flex-direction: column; gap: 0; }
	.tp-nav__list a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
	.tp-nav__list a[aria-current="page"] { border-bottom-color: var(--line); color: var(--sky); }
	.tp-nav__account { margin: 16px 0 0; flex-wrap: wrap; }
	.tp-nav__teach { display: block; flex: 1 0 100%; order: -1; margin: -16px 0 4px; padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 550; color: var(--text); }
	.tp-finder { grid-template-columns: 1fr; gap: 24px; }
	.tp-filters { position: static; }
	.tp-profile__layout, .tp-course-page__layout { grid-template-columns: minmax(0, 1fr); }
	.tp-profile__aside { position: static; order: -1; }
	.tp-stats { grid-template-columns: 1fr 1fr; }
	.tp-stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
	.tp-stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
	.tp-tutor--compact { grid-template-columns: 72px minmax(0, 1fr); }
	.tp-filters { padding: 0; background: none; display: block; }
	.tp-filters__toggle { background: var(--mist); border-radius: var(--r-md); }
	.tp-filters__toggle > summary { display: flex; align-items: center; gap: 10px; padding: 14px 18px; font-weight: 650; color: var(--ink); cursor: pointer; list-style: none; }
	.tp-filters__toggle > summary::-webkit-details-marker { display: none; }
	.tp-filters__toggle > summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s; }
	.tp-filters__toggle[open] > summary::after { transform: rotate(-135deg); }
	.tp-filters__body { grid-template-columns: 1fr 1fr; padding: 4px 18px 20px; }
	.tp-filters__body fieldset { grid-column: 1 / -1; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
	.tp-filters__body > .tp-field:first-child, .tp-filters__body .tp-btn, .tp-filters__body .tp-filters__reset { grid-column: 1 / -1; }
	.tp-dash { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.tp-dash__side { position: static; }
	.tp-dash__nav { display: flex; overflow-x: auto; gap: 4px; padding-bottom: 6px; scrollbar-width: thin; }
	.tp-dash__nav a { white-space: nowrap; flex: none; }
	.tp-dash__nav a:last-child { margin-top: 0; border-top: 0; padding-top: 10px; border-radius: var(--r-sm); }
	.tp-dash__nav em { display: none; }
	.admin-bar .tp-header { top: 46px; }
	.hp-hero__grid, .hp-learn, .hp-champion, .hp-schools, .hp-ways { grid-template-columns: 1fr; }
	.hp-hero__media { max-width: 620px; }
	.hp-trust { grid-template-columns: 1fr 1fr; gap: 12px 0; }
	.hp-trust li:nth-child(3) { border-left: 0; }
	.hp-head { flex-direction: column; align-items: flex-start; }
	.hp-note--arrow, .hp-note--bubble { display: none; }
	.hp-band { grid-template-columns: minmax(0, 1fr); padding: 28px; gap: 16px 20px; }
	.hp-band__img { display: none; }
	.hp-band__text { padding: 0; }
	.hp-band__action { grid-column: 1 / -1; justify-items: start; padding: 0; }
	.hp-schools__img { min-height: 0; aspect-ratio: 3 / 2; }
	.hp-champion__media { max-width: 620px; }
	.tp-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Below 600px WordPress stops pinning the admin bar (it scrolls away), so the header pins to the very top. */
@media (max-width: 600px) {
	.admin-bar .tp-header { top: 0; }
}

/* Phone */
@media (max-width: 640px) {
	body { font-size: 1rem; }
	.tp-header__bar { min-height: 64px; }
	.tp-brand img { width: 200px; }
	.tp-index__row { grid-template-columns: 1fr auto; padding: 16px 0; }
	.tp-index__programmes { grid-column: 1 / -1; grid-row: 2; font-size: .9375rem; }
	.tp-index__board { font-size: 1.35rem; }
	.tp-tutor { padding: 18px; gap: 14px; grid-template-columns: 64px minmax(0, 1fr); }
	.tp-tutor .tp-avatar--md { width: 64px; height: 64px; }
	.tp-tutor__name { font-size: 1.25rem; }
	.tp-tutor__bio { display: none; }
	.tp-grid-2, .tp-switch { grid-template-columns: 1fr; }
	.tp-filters__body { grid-template-columns: 1fr; }
	.tp-tutor__side { grid-column: 1 / -1; flex-wrap: wrap; }
	.tp-profile__id { grid-template-columns: 1fr; gap: 16px; }
	.tp-avatar--xl { width: 112px; height: 112px; }
	.tp-avatar--xl.tp-avatar--initials { font-size: 2.4rem; }
	.tp-contrib { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.tp-facts { grid-template-columns: 1fr; }
	.tp-facts > div + div { border-left: 0; border-top: 1px solid var(--line); }
	.tp-photo-field { flex-direction: column; align-items: flex-start; }
	.tp-bar select { flex: 1 1 100%; width: 100%; }
	.tp-callout { padding: 22px; }
	.tp-footer__grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
	.tp-footer__policies { grid-template-columns: 1fr; }
	.tp-footer__policies > div + div { border-left: 0; padding-left: 0; }
	.tp-footer .tp-footer__legal ul { display: grid; gap: 4px; }
	.tp-footer__legal li + li { border-left: 0; margin-left: 0; padding-left: 0; }
	.hp-search { grid-template-columns: 1fr; }
	.hp-search .tp-btn { min-height: 54px; }
	.hp-hero__media > img { border-radius: 90px 22px 22px 22px; aspect-ratio: 4 / 3.6; }
	.hp-note--card { font-size: 1.1rem; max-width: 140px; bottom: 64px; right: 0; padding: 10px 12px; }
	.hp-hero__tutors { left: 12px; bottom: 12px; max-width: 230px; }
	.hp-trust { grid-template-columns: 1fr; }
	.hp-trust li + li { border-left: 0; border-top: 1px solid var(--line); padding-top: 12px; }
	.hp-boards { grid-template-columns: 1fr; }
	.hp-tiles { grid-template-columns: 1fr; }
	.hp-tiles.hp-tiles--3 { grid-template-columns: 1fr 1fr; }
	.hp-learn__head { align-items: flex-start; }
	.hp-learn__head .hp-icon--lg { width: 52px; height: 52px; }
	.hp-services { grid-template-columns: 1fr; }
	.hp-champion__media { padding-right: 64px; }
	.hp-sticky { left: 4px; font-size: 1.1rem; padding: 10px 12px; }
	.hp-band { grid-template-columns: 1fr; padding: 22px; }
	.hp-band > .hp-icon { display: none; }
	.hp-champion__videos img { width: 64px; height: 64px; }
	.hp-champion__videos i { right: 4px; top: auto; bottom: 4px; transform: none; width: 22px; height: 22px; }
	.hp-way { align-items: flex-start; padding: 20px; }
	.hp-actions .tp-btn { width: 100%; white-space: normal; text-align: center; }
	.tp-class { grid-template-columns: 1fr; gap: 10px; padding: 16px; }
	.tp-class__when { grid-auto-flow: column; justify-content: start; gap: 6px; padding: 4px 10px; justify-self: start; align-items: baseline; }
	.tp-class__when strong { font-size: 1.15rem; }
	.tp-class__actions .tp-btn { flex: 1 1 100%; justify-content: center; }
	.tp-thread__msg { max-width: 100%; }
	.tp-my-course { flex-direction: column; align-items: stretch; }
	.tp-table thead { display: none; }
	.tp-table tr { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--line); }
	.tp-table td { padding: 0; border: 0; }
	.tp-cal-sync { flex-direction: column; }
	.tp-respond .tp-btn { flex: 1; justify-content: center; }
}

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

@media (max-width: 400px) {
	.hp-tiles.hp-tiles--3 { grid-template-columns: 1fr; }
}

.tp-join .tp-alert { scroll-margin-top: 100px; }

/* ---------- Resource library, wallet and checkout (Phase 3) ---------- */
.tp-lib-search { display: flex; gap: 12px; margin-top: 28px; max-width: 760px; }
.tp-lib-search .tp-input-icon { flex: 1 1 auto; }
.tp-lib-search input[type=search] { width: 100%; min-height: 56px; font-size: 1.0625rem; }
.tp-lib-search .tp-btn { min-height: 56px; flex: none; }
.tp-lib-upload { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 20px; color: var(--muted); font-size: .9375rem; }
.tp-lib-subjects { padding: 32px 0 8px; }
.tp-lib-subjects__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); border-top: 1px solid var(--line); margin: 16px 0 40px; }
.tp-lib-subjects__list a { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 16px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; }
.tp-lib-subjects__list a:hover span { text-decoration: underline; }
.tp-lib-subjects__list em { font-style: normal; font-weight: 500; font-size: .875rem; color: var(--muted); }
.tp-lib-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 8px; }
.tp-lib-jump a { padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-size: .9375rem; font-weight: 600; }
.tp-lib-jump a:hover { border-color: var(--ink); }
.tp-lib-jump em { font-style: normal; color: var(--muted); font-weight: 500; margin-left: 4px; }
.tp-lib-group { padding-top: 32px; scroll-margin-top: 96px; }
.tp-lib-group .tp-h3 { margin-bottom: 16px; }
.tp-resource__cover--video { background-color: #2b4a3f; }
.tp-resource__cover--model-paper, .tp-resource__cover--unit-test { background-color: #3d2f5c; }
.tp-resource__cover--notes, .tp-resource__cover--presentation { background-color: #1d4f7a; }
.tp-resource-page__preview img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--r-lg); }
.tp-resource-lock { margin: 16px 0 24px; }
.tp-resource-tags { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 32px; margin: 32px 0; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tp-resource-tags dt { font-size: .8125rem; font-weight: 650; color: var(--muted); }
.tp-resource-tags dd { margin: 4px 0 0; color: var(--ink); }
.tp-contributor { display: flex; align-items: center; gap: 16px; }
.tp-contributor p { margin: 0; font-size: .875rem; }
.tp-contributor__name { display: block; font: 700 1.25rem/1.25 var(--serif); color: var(--ink); margin: 2px 0 6px; }
.tp-table-wrap { overflow-x: auto; margin: 16px 0 32px; }
.tp-table-wrap .tp-table { min-width: 560px; }
.tp-pill { display: inline-block; padding: 3px 10px; border-radius: var(--r-sm); font-size: .8125rem; font-weight: 650; background: var(--mist); color: var(--ink); white-space: nowrap; }
.tp-pill--approved { background: var(--ok-soft); color: var(--ok); }
.tp-pill--pending { background: var(--warn-soft); color: var(--warn); }
.tp-pill--rejected { background: var(--bad-soft); color: var(--bad); }
.tp-neg { color: var(--bad); white-space: nowrap; }
.tp-pos { color: var(--ok); font-weight: 650; white-space: nowrap; }
.tp-resource-form .tp-field__help + .tp-chips__list { margin-top: 8px; }
/* WooCommerce cart, checkout and account pages sit at full content width. */
.woocommerce-cart .tp-page-body, .woocommerce-checkout .tp-page-body, .woocommerce-account .tp-page-body { max-width: var(--content); }
.woocommerce-cart .tp-page-head, .woocommerce-checkout .tp-page-head { padding: 40px 0 28px; }
@media (max-width: 640px) {
	.tp-lib-search { flex-direction: column; }
	.tp-resource-tags { grid-template-columns: 1fr; }
}.tp-lib-body { padding-bottom: var(--section); }
.tp-lib-subjects + .tp-h3 { margin-bottom: 16px; }
.tp-contributor .tp-avatar { width: 64px; height: 64px; font-size: 1.25rem; flex: none; }
