/* 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;

	--serif: "Newsreader", Georgia, "Times New Roman", serif;
	--sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

	--r-sm: 6px;
	--r-md: 10px;
	--shadow: 0 1px 2px rgba(20, 50, 92, .06), 0 10px 28px rgba(20, 50, 92, .08);
	--gutter: clamp(16px, 4vw, 32px);
	--section: clamp(56px, 8vw, 104px);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
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: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.tp-h1 { font: 500 clamp(2.1rem, 4.2vw, 3.1rem)/1.1 var(--serif); color: var(--ink); letter-spacing: -.01em; }
.tp-h2 { font: 500 clamp(1.75rem, 3.2vw, 2.5rem)/1.12 var(--serif); color: var(--ink); letter-spacing: -.005em; }
.tp-h3 { font: 650 1.2rem/1.3 var(--sans); color: var(--ink); }
.tp-lede { font-size: 1.125rem; color: var(--muted); max-width: 60ch; }
.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: 500 1.6rem/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: 46px; padding: 0 20px; border: 1.5px solid transparent; border-radius: var(--r-sm); font-weight: 650; font-size: 1rem; line-height: 1; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.tp-btn--primary { background: var(--gold); color: var(--ink-deep); }
.tp-btn--primary:hover { background: var(--gold-deep); color: var(--ink-deep); }
.tp-btn--ink { background: var(--ink); color: var(--white); }
.tp-btn--ink:hover { background: var(--ink-deep); color: var(--white); }
.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: 38px; padding: 0 14px; font-size: .9375rem; }
.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: 28px; min-height: 72px; }
.tp-brand { flex: none; }
.tp-brand img { width: 201px; height: auto; }
.tp-nav { display: flex; align-items: center; flex: 1; gap: 24px; }
.tp-nav__list { display: flex; gap: 26px; margin: 0; padding: 0; list-style: none; }
.tp-nav__list a { color: var(--text); text-decoration: none; font-weight: 550; font-size: .9875rem; 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: 18px; }
.tp-nav__teach, .tp-nav__signin { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9875rem; }
.tp-nav__teach:hover, .tp-nav__signin:hover { text-decoration: underline; }
.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; }

/* Hero */
.tp-hero { background: var(--mist); padding-top: clamp(40px, 6vw, 72px); overflow: hidden; }
.tp-hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.tp-hero__title { font: 500 clamp(2.5rem, 5.4vw, 4.25rem)/1.03 var(--serif); color: var(--ink); letter-spacing: -.02em; max-width: 13ch; }
.tp-hero__text { margin-top: 20px; font-size: 1.1875rem; color: #3c4a5e; max-width: 46ch; }
.tp-search { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); padding: 8px; }
.tp-search__field { padding: 6px 12px; border-right: 1px solid var(--line); }
.tp-search__field label { display: block; font-size: .8125rem; font-weight: 650; color: var(--muted); }
.tp-search__field select { width: 100%; border: 0; background: transparent; padding: 2px 0 4px; font-weight: 600; color: var(--ink); cursor: pointer; }
.tp-search__field select:focus-visible { outline-offset: 4px; }
.tp-search .tp-btn { margin-left: 8px; min-height: 52px; }
.tp-hero__popular { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .9375rem; color: var(--muted); }
.tp-hero__popular a { color: var(--ink); font-weight: 600; }
.tp-hero__media { align-self: stretch; margin-right: calc(-1 * var(--gutter)); }
.tp-hero__media img { width: 100%; height: 100%; min-height: 420px; max-height: 560px; object-fit: cover; object-position: 40% center; border-radius: var(--r-md) 0 0 var(--r-md); }
.tp-promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 28px 0 32px; margin-top: 40px; border-top: 1px solid var(--line); }
.tp-promise li { display: flex; gap: 12px; align-items: flex-start; font-size: .9875rem; color: #3c4a5e; }
.tp-promise strong { color: var(--ink); }
.tp-promise .tp-icon { color: var(--sky); width: 22px; height: 22px; margin-top: 1px; }

/* Sections */
.tp-section { padding: var(--section) 0; }
.tp-section--mist { background: var(--mist); }
.tp-section--rule { border-top: 1px solid var(--line); }
.tp-section--ink { background: var(--ink); color: #dfe8f3; }
.tp-section--ink .tp-h2, .tp-section--ink h3 { color: var(--white); }
.tp-section--ink .tp-lede { color: #b9c9dd; }
.tp-split-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 48px; flex-wrap: wrap; margin-bottom: 36px; }
.tp-split-head .tp-lede { max-width: 48ch; }

/* Curriculum index: the signature element */
.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: 96px minmax(0, 1fr) 180px; gap: 24px; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); }
.tp-tutor--compact { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; padding: 20px; }
.tp-tutor__name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font: 500 1.45rem/1.2 var(--serif); }
.tp-tutor__name a { color: var(--ink); text-decoration: none; }
.tp-tutor__name a:hover { text-decoration: underline; }
.tp-verified { color: var(--sky); display: inline-flex; }
.tp-tutor__headline { margin-top: 4px; font-weight: 600; color: var(--text); }
.tp-tutor__meta { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9375rem; color: var(--muted); }
.tp-tutor__meta span { display: inline-flex; align-items: center; gap: 6px; }
.tp-tutor__award { margin-top: 12px; display: inline-flex; align-items: center; gap: 8px; font-size: .9375rem; font-weight: 600; color: var(--warn); }
.tp-tutor__bio { margin-top: 12px; color: #3c4a5e; font-size: .9875rem; }
.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: 24px; }
.tp-tutor__fee { font-size: .875rem; color: var(--muted); white-space: nowrap; }
.tp-tutor__fee strong { display: block; font: 600 1.5rem/1.2 var(--sans); color: var(--ink); }
.tp-tutor-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tp-tutor-strip .tp-tutor__headline { font-size: .9375rem; }
.tp-tutor-strip .tp-tutor__meta span:nth-child(3) { display: none; }

.tp-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tp-tags li { padding: 4px 10px; background: var(--mist); border-radius: 999px; font-size: .875rem; color: var(--ink); }
.tp-tags--lg li { padding: 6px 14px; font-size: .9375rem; 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 .75rem/1.6 var(--sans); }

.tp-avatar { border-radius: 50%; object-fit: cover; background: var(--sky-soft); }
.tp-avatar--sm { width: 44px; height: 44px; }
.tp-avatar--md { width: 96px; height: 96px; }
.tp-tutor--compact .tp-avatar--md { width: 72px; height: 72px; }
.tp-avatar--lg { width: 120px; height: 120px; }
.tp-avatar--xl { width: 168px; height: 168px; 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; }

/* How it works */
.tp-how { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); }
.tp-steps { counter-reset: step; display: grid; gap: 0; }
.tp-steps li { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.tp-steps li:last-child { border-bottom: 1px solid var(--line); }
.tp-steps li::before { content: counter(step); grid-row: span 2; font: 500 2.4rem/1 var(--serif); color: var(--gold-deep); }
.tp-steps h3 { font: 650 1.15rem/1.3 var(--sans); color: var(--ink); }
.tp-steps p { color: var(--muted); margin-top: 4px; }

/* Learn beyond lessons */
.tp-visually-left { margin-bottom: 32px; }
.tp-learn { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: stretch; }
.tp-learn__feature { position: relative; display: block; border-radius: var(--r-md); overflow: hidden; min-height: 360px; color: var(--white); text-decoration: none; }
.tp-learn__feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tp-learn__text { position: absolute; left: 0; right: 0; bottom: 0; padding: 80px 28px 26px; background: linear-gradient(transparent, rgba(13, 34, 66, .88)); display: grid; gap: 4px; }
.tp-learn__text strong { font: 500 1.9rem/1.15 var(--serif); }
.tp-learn__text span { color: #dbe5f1; max-width: 44ch; }
.tp-learn__feature:hover strong { text-decoration: underline; text-underline-offset: .15em; }
.tp-learn__list h3 { font: 500 1.9rem/1.15 var(--serif); color: var(--ink); }
.tp-learn__list > p { color: var(--muted); margin: 6px 0 18px; }
.tp-learn__list ul { display: grid; margin-bottom: 20px; padding: 0; list-style: none; }
.tp-how .tp-lede { margin-top: 14px; }
.tp-learn__list li { display: flex; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 550; }
.tp-learn__list li .tp-icon { color: var(--sky); }

/* Teach programmes */
.tp-programmes { display: grid; grid-template-columns: 1.2fr 1fr 1fr; border-top: 1px solid rgba(255, 255, 255, .18); }
.tp-programmes > div { padding: 28px 28px 8px 0; }
.tp-programmes > div + div { padding-left: 28px; border-left: 1px solid rgba(255, 255, 255, .18); }
.tp-programmes h3 { font: 500 1.6rem/1.2 var(--serif); margin-bottom: 10px; }
.tp-programmes p { color: #c7d5e6; margin-bottom: 20px; max-width: 40ch; }

/* Schools */
.tp-schools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.tp-schools img { border-radius: var(--r-md); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.tp-schools p { margin: 14px 0 24px; color: #3c4a5e; max-width: 52ch; }

/* Page head */
.tp-page-head { background: var(--mist); padding: clamp(36px, 5vw, 64px) 0 clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line); }
.tp-page-head .tp-lede { margin-top: 12px; }
.tp-page-body { padding-top: 48px; padding-bottom: var(--section); }

/* Tutor finder */
.tp-finder { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; padding-top: 36px; padding-bottom: var(--section); align-items: start; }
.tp-filters { position: sticky; top: 96px; display: grid; gap: 22px; }
.tp-filters fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 4px; }
.tp-filters legend { font-weight: 650; font-size: .9375rem; margin-bottom: 6px; color: var(--ink); }
.tp-radio { display: flex; gap: 10px; align-items: center; padding: 5px 0; min-height: 30px; font-size: .9375rem; 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; }
.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: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.tp-results__bar strong { color: var(--ink); }
.tp-sort { display: flex; align-items: center; gap: 10px; font-size: .9375rem; white-space: nowrap; }
.tp-sort select { padding: 8px 32px 8px 10px; }
.tp-results__list { display: grid; gap: 16px; }
.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: 6px; }
.tp-field label, .tp-field > legend { font-weight: 650; font-size: .9375rem; color: var(--ink); }
.tp-optional { font-weight: 400; color: var(--muted); font-size: .8125rem; 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: 11px 12px; background: var(--white); border: 1px solid #b9c6d6; border-radius: var(--r-sm); min-height: 46px;
}
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: .875rem; color: var(--muted); }
.tp-field__error { font-size: .875rem; 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; gap: 20px; }
.tp-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 20px; min-width: 0; }
.tp-form fieldset[disabled] { opacity: .6; }
.tp-form--narrow { max-width: 420px; }
.tp-form__section { font: 500 1.35rem/1.3 var(--serif); color: var(--ink); padding-top: 12px; border-top: 1px solid var(--line); margin-top: 8px; }
.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: .9375rem; color: var(--muted); }
.tp-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tp-check { display: flex; gap: 10px; align-items: flex-start; font-size: .9375rem; 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 label { position: relative; cursor: pointer; }
.tp-chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.tp-chips span { display: inline-block; padding: 7px 14px; border: 1px solid #b9c6d6; border-radius: 999px; font-size: .9375rem; background: var(--white); }
.tp-chips input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.tp-chips input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }
.tp-hp { position: absolute; left: -9999px; }
.tp-switch { border: 0; padding: 0; margin: 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: 16px 18px; border: 1.5px solid var(--line); border-radius: var(--r-md); color: var(--muted); font-size: .9375rem; }
.tp-switch strong { display: block; font: 500 1.35rem/1.2 var(--serif); color: var(--ink); margin-bottom: 2px; }
.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: 12px 16px; border-radius: var(--r-sm); border-left: 4px solid; font-size: .9875rem; }
.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: 12px; text-align: center; padding: 56px 24px; border: 1px dashed #b9c6d6; border-radius: var(--r-md); color: var(--muted); }
.tp-empty > .tp-icon { width: 36px; height: 36px; color: var(--sky); }
.tp-empty p { max-width: 46ch; }

/* 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(--mist); border-bottom: 1px solid var(--line); padding: 24px 0 0; }
.tp-crumbs { display: flex; align-items: center; gap: 6px; font-size: .9375rem; color: var(--muted); margin-bottom: 28px; }
.tp-crumbs .tp-icon { width: 14px; height: 14px; }
.tp-profile__id { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px; align-items: center; }
.tp-profile__name { font: 500 clamp(2.2rem, 4.6vw, 3.4rem)/1.05 var(--serif); color: var(--ink); letter-spacing: -.015em; margin-top: 6px; }
.tp-profile__headline { margin-top: 8px; font-size: 1.2rem; font-weight: 600; color: #3c4a5e; }
.tp-profile__meta { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: .9375rem; }
.tp-profile__meta li { display: inline-flex; gap: 6px; align-items: center; }
.tp-verified-text { color: var(--sky); font-weight: 650; }
.tp-awards { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.tp-awards li { display: flex; gap: 14px; align-items: center; padding: 14px 20px 14px 16px; background: #fff8ea; border: 1px solid #f1d7a4; border-radius: var(--r-md); }
.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: .875rem; color: var(--warn); }
.tp-stats { margin-top: 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.tp-stats > div { padding: 18px 20px 20px 0; }
.tp-stats > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.tp-stats dt { font-size: .8125rem; color: var(--muted); font-weight: 600; }
.tp-stats dd { margin: 4px 0 0; font-weight: 650; color: var(--ink); }
.tp-profile__layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 64px); padding-top: 40px; padding-bottom: var(--section); align-items: start; }
.tp-block { padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.tp-block:last-child { border-bottom: 0; margin-bottom: 0; }
.tp-block > .tp-h3 { margin-bottom: 16px; }
.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-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, 140px)); gap: 12px; margin-bottom: 16px; }
.tp-contrib > div { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.tp-contrib dt { font-size: .875rem; color: var(--muted); }
.tp-contrib dd { margin: 2px 0 0; font: 500 1.9rem/1.1 var(--serif); color: var(--ink); }
.tp-contrib__courses { display: grid; gap: 6px; }
.tp-profile__aside { position: sticky; top: 96px; }
.tp-book { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); background: var(--white); display: grid; gap: 18px; }
.tp-book__fee { color: var(--muted); font-size: .9375rem; }
.tp-book__fee strong { font: 600 1.85rem/1.2 var(--sans); color: var(--ink); }
.tp-book__facts { display: grid; gap: 12px; }
.tp-book__facts > div { display: grid; gap: 2px; }
.tp-book__facts dt { display: flex; gap: 8px; align-items: center; font-size: .875rem; color: var(--muted); font-weight: 600; }
.tp-book__facts dd { margin: 0 0 0 26px; font-weight: 550; }
.tp-book__small { font-size: .875rem; color: var(--muted); text-align: center; }
.tp-book__privacy { display: flex; gap: 10px; font-size: .875rem; color: var(--muted); padding-top: 16px; 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: 28px; margin-bottom: calc(-1 * clamp(28px, 4vw, 44px) - 1px); }
.tp-tabs a { padding: 12px 18px; text-decoration: none; font-weight: 650; 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); }
.tp-bar { display: flex; flex-wrap: wrap; gap: 12px; padding: 28px 0 8px; }
.tp-bar__search { flex: 1 1 260px; }
.tp-bar select { width: auto; flex: 0 1 220px; }
.tp-count { color: var(--muted); margin: 16px 0; font-size: .9375rem; }
.tp-course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 28px 24px; }
.tp-course { display: flex; flex-direction: column; }
.tp-only-tutor { display: grid; 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: .875rem; font-weight: 600; color: #b9c9dd; }
.tp-course__cover strong { font: 500 1.75rem/1.1 var(--serif); }
.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: 14px; display: grid; gap: 6px; flex: 1; align-content: start; }
.tp-course__level { font-size: .875rem; font-weight: 650; color: var(--sky); }
.tp-course__title { font: 500 1.35rem/1.2 var(--serif); }
.tp-course__title a { color: var(--ink); text-decoration: none; }
.tp-course__title a:hover { text-decoration: underline; }
.tp-course__tutor { font-size: .9375rem; color: var(--muted); }
.tp-course__foot { display: flex; justify-content: space-between; font-size: .9375rem; color: var(--muted); padding-top: 10px; border-top: 1px solid var(--line); margin-top: 4px; }
.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: 56px 0 var(--section); padding: 28px 32px; background: var(--mist); border-radius: var(--r-md); }
.tp-callout p { color: var(--muted); margin-top: 4px; }
.tp-course-page { padding-top: 32px; padding-bottom: var(--section); }
.tp-course-page__layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; 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: 760px; padding-top: 48px; padding-bottom: var(--section); }
.tp-auth .tp-auth-wrap:has(.tp-form--narrow) { max-width: 468px; }
.tp-auth-wrap__head { margin-bottom: 28px; }
.tp-auth-wrap__head .tp-lede { margin-top: 10px; }

/* Dashboard */
.tp-app-wrap { padding-top: 32px; padding-bottom: 72px; }
.tp-dash { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; align-items: start; }
.tp-dash__side { position: sticky; top: 96px; }
.tp-dash__who { display: flex; gap: 12px; align-items: center; padding-bottom: 18px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.tp-dash__who strong { display: block; color: var(--ink); line-height: 1.3; }
.tp-dash__who span { font-size: .8125rem; color: var(--muted); }
.tp-dash__nav { display: grid; gap: 2px; }
.tp-dash__nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); text-decoration: none; color: var(--text); font-weight: 550; font-size: .9875rem; }
.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: .75rem; 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: 24px; align-content: start; min-width: 0; }
.tp-dash__title { font: 500 2.2rem/1.1 var(--serif); color: var(--ink); }
.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: 16px 20px; min-width: 0; }
.tp-facts > div + div { border-left: 1px solid var(--line); }
.tp-facts span { display: block; font-size: .8125rem; color: var(--muted); font-weight: 600; }
.tp-facts strong { display: block; margin-top: 2px; color: var(--ink); font-size: 1.1rem; 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; }

/* Footer */
.tp-footer { background: var(--ink-deep); color: #b9c9dd; padding: 64px 0 0; font-size: .9875rem; }
.tp-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.tp-footer__name { font: 500 1.6rem/1.2 var(--serif); color: var(--white); margin-bottom: 10px; }
.tp-footer__brand p { max-width: 36ch; }
.tp-footer__founder { margin-top: 16px; color: var(--white); }
.tp-footer__h { font: 650 .9375rem/1.3 var(--sans); color: var(--white); margin-bottom: 14px; }
.tp-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.tp-footer a { color: #b9c9dd; text-decoration: none; }
.tp-footer a:hover { color: var(--white); text-decoration: underline; }
.tp-footer__base { position: relative; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-top: 20px; padding-bottom: 28px; font-size: .875rem; }
.tp-footer__base::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid rgba(255, 255, 255, .12); }

/* 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; }
}

@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: inline; }
	.tp-hero__grid { grid-template-columns: 1fr; }
	.tp-hero__media { margin-right: 0; }
	.tp-promise { grid-template-columns: 1fr; gap: 14px; margin-top: 32px; }
	.tp-how, .tp-learn, .tp-schools { grid-template-columns: 1fr; }
	.tp-programmes { grid-template-columns: 1fr; }
	.tp-programmes > div + div { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .18); }
	.tp-finder { grid-template-columns: 1fr; gap: 24px; }
	.tp-filters { position: static; }
	.tp-profile__layout, .tp-course-page__layout { grid-template-columns: 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-strip { grid-template-columns: 1fr; }
	.tp-tutor--compact { grid-template-columns: 72px minmax(0, 1fr); }
	.tp-hero__media { display: block; order: 0; }
	.tp-hero__media img { min-height: 0; max-height: 340px; border-radius: var(--r-md); aspect-ratio: 16 / 9; }
	.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: 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; }
	.tp-footer__grid { grid-template-columns: 1fr 1fr; }
	.tp-footer__brand { grid-column: 1 / -1; }
	.admin-bar .tp-header { top: 46px; }
}

/* Phone */
@media (max-width: 640px) {
	body { font-size: 1rem; }
	.tp-header__bar { min-height: 64px; }
	.tp-brand img { width: 164px; }
	.tp-search { grid-template-columns: 1fr; padding: 6px; }
	.tp-search__field { border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 10px; }
	.tp-search .tp-btn { margin: 8px 0 0; }
	.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-strip { grid-template-columns: 1fr; }
	.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-hero__media { display: none; }
	.tp-filters__body { grid-template-columns: 1fr; }
	.tp-tutor__side { grid-column: 1 / -1; }
	.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; gap: 28px; }
	.tp-learn__feature { min-height: 280px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
