/**
 * Teacher public profile — layout, rhythm, teal accent (aligns with style.css + .impeccable.md).
 * Scope everything under .tp-page to avoid bleeding into other templates.
 */

.tp-page {
	--tp-accent: #0878ab;
	--tp-accent-light: #30baec;
	--tp-accent-hover: #065a7f;
	--tp-text: #333;
	--tp-text-muted: #555;
	--tp-text-soft: #666;
	--tp-border: #e9ecef;
	--tp-surface: #fff;
	--tp-surface-subtle: #f8f9fa;
	--tp-radius: 12px;
	--tp-radius-sm: 8px;
	--tp-shadow: 0 2px 12px rgba(8, 120, 171, 0.08);
	--tp-shadow-hover: 0 4px 20px rgba(8, 120, 171, 0.12);
	--tp-space-section: 2rem;
	--tp-space-tight: 0.75rem;
	--tp-space-group: 1.5rem;
	color: var(--tp-text);
}

/**
 * Global style.css sets `.entry-content > * { margin-left: auto; margin-right: auto; }` for Gutenberg.
 * That overrides Bootstrap `.row` negative gutters and breaks the grid (columns overflow / misalign).
 * Restore row margins for this template only.
 */
.tp-page.entry-content > .row {
	margin-left: calc(-0.5 * var(--bs-gutter-x, 1.5rem));
	margin-right: calc(-0.5 * var(--bs-gutter-x, 1.5rem));
	width: auto;
	max-width: none;
}

.tp-page #teacher-profile-content {
	margin-top: 1.25rem;
}

.tp-page #teacher-profile-content .tp-story-main {
	display: flex;
	flex-direction: column;
	gap: clamp(1.5rem, 3.5vw, 2.5rem);
}

.tp-page .tp-breadcrumb-bar {
	margin-bottom: 1.25rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--tp-border);
}

.tp-page .tp-breadcrumb {
	font-size: 0.875rem;
	color: var(--tp-text-soft);
}

.tp-page .tp-breadcrumb a {
	color: var(--tp-accent);
	font-weight: 500;
	text-decoration: none;
	transition: color 0.2s ease;
}

.tp-page .tp-breadcrumb a:hover,
.tp-page .tp-breadcrumb a:focus-visible {
	color: var(--tp-accent-hover);
	text-decoration: underline;
}

.tp-page .tp-breadcrumb-sep {
	margin: 0 0.5rem;
	color: #ccc;
}

.tp-page .tp-breadcrumb-current {
	color: var(--tp-text);
	font-weight: 600;
}

.tp-page .tp-btn-back {
	color: #6c757d;
	font-size: 0.875rem;
	font-weight: 500;
	text-decoration: none;
	transition: color 0.2s ease;
}

.tp-page .tp-btn-back:hover,
.tp-page .tp-btn-back:focus-visible {
	color: var(--tp-accent);
}

.tp-page .tp-btn-edit {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-right: 0.75rem;
	padding: 0.5rem 0.75rem;
	border-radius: var(--tp-radius-sm);
	background: var(--tp-accent);
	color: #fff !important;
	font-size: 0.8125rem;
	font-weight: 700;
	text-decoration: none;
	box-shadow: var(--tp-shadow);
	transition: background 0.2s ease, box-shadow 0.2s ease;
}

.tp-page .tp-btn-edit:hover,
.tp-page .tp-btn-edit:focus-visible {
	background: var(--tp-accent-hover);
	color: #fff !important;
}

/* Hero */
.tp-page .tp-hero {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex-wrap: wrap;
	gap: var(--tp-space-group);
	padding: clamp(1.25rem, 3vw, 1.75rem);
	margin-bottom: var(--tp-space-section);
	background: linear-gradient(145deg, #f8fafb 0%, #eef5f8 100%);
	border-radius: var(--tp-radius);
	border: 1px solid var(--tp-border);
	box-shadow: var(--tp-shadow);
}

.tp-page .tp-hero__photo img {
	width: 150px;
	height: 150px;
	border-radius: 50%;
	object-fit: cover;
	border: 4px solid var(--tp-accent);
	box-shadow: 0 4px 16px rgba(8, 120, 171, 0.2);
}

.tp-page .tp-hero__placeholder {
	width: 150px;
	height: 150px;
	border-radius: 50%;
	background: linear-gradient(145deg, #f0f0f0, #e5e5e5);
	display: flex;
	align-items: center;
	justify-content: center;
	border: 4px solid #ddd;
	margin: 0 auto;
}

.tp-page .tp-hero__placeholder .fa-user {
	font-size: 60px;
	color: #999;
}

.tp-page .tp-hero__title {
	margin: 0 0 0.35rem;
	font-size: clamp(1.5rem, 4vw, 2rem);
	font-weight: 700;
	line-height: 1.2;
	color: var(--tp-text);
}

.tp-page .tp-hero__tagline {
	margin: 0 0 0.75rem;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--tp-accent);
	line-height: 1.35;
}

.tp-page .tp-hero__since {
	margin: 0 0 0.75rem;
	font-size: 0.875rem;
	color: var(--tp-text-muted);
	line-height: 1.4;
}

.tp-page .tp-hero__since .fa-chalkboard-teacher {
	color: var(--tp-accent);
	margin-right: 0.35rem;
}

.tp-page .tp-hero__contact {
	margin-top: 0.5rem;
}

.tp-page .tp-hero__contact p {
	margin: 0.35rem 0;
	font-size: 0.875rem;
	color: var(--tp-text-soft);
}

.tp-page .tp-hero__phone-strong {
	font-weight: 600;
	color: var(--tp-text);
}

.tp-page .tp-wa-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin-left: 0.5rem;
	padding: 0.25rem 0.65rem;
	border-radius: 999px;
	background: #25d366;
	color: #fff !important;
	text-decoration: none;
	font-size: 0.75rem;
	font-weight: 700;
}

.tp-page .tp-wa-pill:hover {
	filter: brightness(1.05);
	color: #fff !important;
}

/* Hero — calmer, balanced block */
.tp-page .tp-hero--profile {
	margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
	box-shadow: 0 1px 0 rgba(8, 120, 171, 0.06), 0 12px 40px rgba(15, 23, 42, 0.06);
}

.tp-page .tp-hero--profile .tp-hero__title {
	letter-spacing: -0.02em;
}

/* Main column reading width */
.tp-page .tp-main .tp-prose {
	max-width: 65ch;
}

.tp-page .tp-main .tp-prose p:last-child {
	margin-bottom: 0;
}

/* Sections — one surface system */
.tp-page .tp-section {
	background: var(--tp-surface);
	padding: clamp(1.25rem, 3vw, 1.75rem);
	border-radius: var(--tp-radius);
	border: 1px solid var(--tp-border);
	box-shadow: var(--tp-shadow);
	margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
}

/* Biography: lighter “paper” — less box fatigue */
.tp-page .tp-section--bio {
	background: linear-gradient(180deg, #fbfcfd 0%, #f5f8fa 100%);
	border-color: #e8eef2;
	box-shadow: none;
}

.tp-page .tp-section--bio .tp-section__title {
	border-bottom-color: rgba(8, 120, 171, 0.25);
}

/* Teaching block: grouped fields */
.tp-page .tp-section--teaching .tp-field-group + .tp-field-group {
	margin-top: 0.25rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--tp-border);
}

.tp-page .tp-section--contact {
	border-left: 4px solid var(--tp-accent);
	background: linear-gradient(165deg, rgba(8, 120, 171, 0.06) 0%, #fff 55%);
	box-shadow: 0 4px 24px rgba(8, 120, 171, 0.1);
}

.tp-page .tp-section--map .tp-section__title {
	margin-bottom: 1rem;
}

.tp-page .tp-section__title {
	margin: 0 0 var(--tp-space-group);
	padding-bottom: 0.65rem;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--tp-accent);
	border-bottom: 2px solid var(--tp-accent-light);
	text-transform: none;
	letter-spacing: 0;
}

.tp-page .tp-section__title--contact {
	font-size: 1.125rem;
}

.tp-page .tp-section__lead {
	color: var(--tp-text-soft);
	font-size: 0.875rem;
	margin-bottom: 1rem;
}

.tp-page .tp-prose {
	line-height: 1.75;
	font-size: 1rem;
	color: var(--tp-text);
}

.tp-page .tp-subhead {
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #6c757d;
	margin-bottom: 0.5rem;
}

.tp-page .tp-chip-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.tp-page .tp-chip {
	display: inline-block;
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
	font-size: 0.8125rem;
	font-weight: 600;
}

.tp-page .tp-chip--format {
	background: rgba(8, 120, 171, 0.1);
	color: var(--tp-accent);
}

.tp-page .tp-chip--level {
	background: #f1f3f5;
	color: var(--tp-text);
	font-weight: 500;
}

.tp-page .tp-chip--offering {
	background: rgba(8, 120, 171, 0.06);
	color: var(--tp-text);
	border: 1px solid rgba(8, 120, 171, 0.18);
	font-weight: 500;
}

.tp-page .tp-chip--place {
	background: #fff;
	color: var(--tp-text);
	border: 1px solid #dee2e6;
	font-weight: 500;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.tp-page .tp-stack {
	display: flex;
	flex-direction: column;
	gap: var(--tp-space-group);
}

/* Teaching: dividers between groups instead of double gap */
.tp-page .tp-section--teaching.tp-stack {
	gap: 0;
}

.tp-page .tp-stack > *:last-child {
	margin-bottom: 0 !important;
}

.tp-page .tp-list-tight {
	line-height: 1.7;
}

.tp-page .tp-text-soft {
	color: var(--tp-text-soft);
}

/* Weekly schedule — visual cards (public profile) */
.tp-page .tp-weekly-sched-outer {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

/* Single card: page title + calendar — drop inner place “double card” chrome */
.tp-page .tp-schedule-calendar-box .tp-weekly-sched__place {
	border: none;
	box-shadow: none;
	background: transparent;
	padding: 0;
	overflow: visible;
}

.tp-page .tp-weekly-sched__place {
	border-radius: var(--tp-radius);
	border: 1px solid var(--tp-border);
	background: linear-gradient(165deg, #fff 0%, var(--tp-surface-subtle) 100%);
	box-shadow: var(--tp-shadow);
	padding: 1.25rem 1.25rem 1.15rem;
	overflow: hidden;
}

/* Weekly grid: avoid clipping horizontal scroll / grid columns (parent had overflow:hidden for card chrome). */
.tp-page .tp-weekly-sched__place--has-grid {
	overflow: visible;
}

.tp-page .tp-weekly-sched__place-top {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	margin-bottom: 1rem;
}

.tp-page .tp-weekly-sched__place-icon {
	flex-shrink: 0;
	width: 2.35rem;
	height: 2.35rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: linear-gradient(145deg, rgba(48, 186, 236, 0.24), rgba(8, 120, 171, 0.1));
	color: var(--tp-accent);
	font-size: 1rem;
}

.tp-page .tp-weekly-sched__location {
	margin: 0;
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.45;
	color: var(--tp-text);
	white-space: pre-wrap;
	flex: 1;
	min-width: 0;
}

.tp-page .tp-weekly-sched--visual {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(9.25rem, 1fr));
	gap: 0.75rem;
}

@media (min-width: 576px) {
	.tp-page .tp-weekly-sched--visual {
		grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
		gap: 0.85rem;
	}
}

.tp-page .tp-weekly-sched__day {
	--tp-day-accent: var(--tp-accent);
	border-radius: var(--tp-radius-sm);
	border: 1px solid var(--tp-border);
	background: var(--tp-surface);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	min-height: 4.5rem;
	border-top: 3px solid var(--tp-day-accent);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.tp-page .tp-weekly-sched__day--mon {
	--tp-day-accent: #0878ab;
}
.tp-page .tp-weekly-sched__day--tue {
	--tp-day-accent: #0d9488;
}
.tp-page .tp-weekly-sched__day--wed {
	--tp-day-accent: #6d28d9;
}
.tp-page .tp-weekly-sched__day--thu {
	--tp-day-accent: #c2410c;
}
.tp-page .tp-weekly-sched__day--fri {
	--tp-day-accent: #be185d;
}
.tp-page .tp-weekly-sched__day--sat {
	--tp-day-accent: #047857;
}
.tp-page .tp-weekly-sched__day--sun {
	--tp-day-accent: #b45309;
}

.tp-page .tp-weekly-sched__day-header {
	padding: 0.5rem 0.65rem 0.45rem;
	background: linear-gradient(180deg, rgba(8, 120, 171, 0.08), transparent);
}

.tp-page .tp-weekly-sched__dayname {
	margin: 0;
	font-size: 0.6875rem;
	font-weight: 800;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--tp-day-accent);
}

.tp-page .tp-weekly-sched__slot-list {
	list-style: none;
	margin: 0;
	padding: 0.35rem 0.5rem 0.65rem;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.tp-page .tp-weekly-sched__slot {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	padding: 0.45rem 0.5rem;
	border-radius: 6px;
	background: #f8fafb;
	border: 1px solid rgba(8, 120, 171, 0.12);
}

.tp-page .tp-weekly-sched__slot-time {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.8125rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.02em;
	color: var(--tp-text);
}

.tp-page .tp-weekly-sched__slot-clock {
	font-size: 0.7rem;
	opacity: 0.9;
	color: var(--tp-day-accent);
}

.tp-page .tp-weekly-sched__slot-time-text {
	flex: 1;
	min-width: 0;
}

.tp-page .tp-weekly-sched__slot-label {
	font-size: 0.8125rem;
	line-height: 1.45;
	color: var(--tp-text-muted);
	font-weight: 500;
}

.tp-page .tp-weekly-sched__slot-fallback {
	font-size: 0.8125rem;
	line-height: 1.45;
	color: var(--tp-text);
}

.tp-page .tp-weekly-sched__notes {
	font-size: 0.875rem;
	line-height: 1.55;
	color: var(--tp-text);
	margin: 0.85rem 0 0;
}

.tp-page .tp-weekly-sched__notes > p:last-child {
	margin-bottom: 0;
}

.tp-page .tp-weekly-sched__notes--panel {
	padding: 0.85rem 1rem;
	border-radius: var(--tp-radius-sm);
	background: rgba(48, 186, 236, 0.07);
	border: 1px solid rgba(8, 120, 171, 0.12);
	border-left: 4px solid var(--tp-accent-light);
}

/* Legacy list markup (if cached HTML) */
.tp-page .tp-weekly-sched:not(.tp-weekly-sched--visual) .tp-weekly-sched__list {
	margin: 0;
	padding-left: 1.15rem;
	line-height: 1.65;
	color: var(--tp-text);
}

.tp-page .tp-sched-summary + .tp-prose,
.tp-page .tp-sched-free {
	color: var(--tp-text);
}

/* Schedule — nested hierarchy (studio-style clarity: labels → body) */
.tp-page .tp-field-group--schedule .tp-schedule-label {
	display: block;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--tp-accent);
	margin-bottom: 0.4rem;
}

.tp-page .tp-schedule-piece + .tp-schedule-piece {
	margin-top: 1rem;
}

.tp-page .tp-schedule-block--spaced {
	margin-top: 1.25rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--tp-border);
}

.tp-page .tp-teaching-hours {
	border: 1px solid var(--tp-border);
	border-radius: var(--tp-radius-sm);
	overflow: hidden;
	background: var(--tp-surface-subtle);
}

.tp-page .tp-teaching-hours__row {
	display: grid;
	grid-template-columns: minmax(3.25rem, 5.5rem) minmax(0, 1fr);
	gap: 0;
	border-bottom: 1px solid var(--tp-border);
	align-items: stretch;
}

.tp-page .tp-teaching-hours__row:last-child {
	border-bottom: none;
}

.tp-page .tp-teaching-hours__day {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--tp-accent);
	background: linear-gradient(145deg, rgba(48, 186, 236, 0.14), rgba(8, 120, 171, 0.05));
	padding: 0.55rem 0.75rem;
	border-right: 1px solid var(--tp-border);
}

.tp-page .tp-teaching-hours__cell {
	padding: 0.55rem 0.85rem;
	font-size: 0.875rem;
	line-height: 1.45;
	color: var(--tp-text);
	word-break: break-word;
}

.tp-page .tp-teaching-hours__empty {
	color: #adb5bd;
}

.tp-page .tp-teaching-hours__note {
	font-size: 0.875rem;
	color: var(--tp-text-muted);
}

.tp-page .tp-weekly-sched-wrap {
	margin-top: 0.25rem;
}

/* Schedule subsection in OSP card — meta rows + weekly visual */
.tp-page .tp-schedule-meta {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 0.7rem 0.9rem;
	border-radius: var(--tp-radius-sm);
	background: var(--tp-surface-subtle);
	border: 1px solid var(--tp-border);
	margin-bottom: 0.5rem;
}

.tp-page .tp-schedule-meta--availability {
	border-left: 4px solid var(--tp-accent);
}

.tp-page .tp-schedule-meta--timezone {
	border-left: 4px solid var(--tp-accent-light);
}

.tp-page .tp-schedule-meta--notes {
	border-left: 4px solid #94a3b8;
	align-items: flex-start;
}

.tp-page .tp-schedule-meta__icon {
	flex-shrink: 0;
	width: 2rem;
	height: 2rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	background: rgba(8, 120, 171, 0.1);
	color: var(--tp-accent);
	font-size: 0.9rem;
}

.tp-page .tp-schedule-meta__icon--top {
	align-self: flex-start;
	margin-top: 0.1rem;
}

.tp-page .tp-schedule-meta--notes .tp-schedule-meta__icon {
	background: rgba(148, 163, 184, 0.2);
	color: #475569;
}

.tp-page .tp-schedule-meta__body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}

.tp-page .tp-schedule-meta__label {
	font-size: 0.6875rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--tp-text-soft);
}

.tp-page .tp-schedule-meta__value {
	font-size: 0.9375rem;
	line-height: 1.45;
	color: var(--tp-text);
	font-weight: 500;
}

.tp-page .tp-schedule-meta__code {
	font-size: 0.875rem;
	padding: 0.15rem 0.45rem;
	border-radius: 4px;
	background: #fff;
	border: 1px solid var(--tp-border);
	color: var(--tp-text);
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.tp-page .tp-schedule-weekly-visual .tp-weekly-sched__place:first-child {
	margin-top: 0;
}

/* Weekly grid (calendar-style) — inside .tp-weekly-sched__place */
.tp-page .tp-sched-grid {
	--tp-sched-primary: #1e5a97;
	--tp-sched-lab: #4a5568;
	--tp-sched-office: #975a16;
	/* Class type colors (matches legend + grid + list) */
	--tp-sched-type-private: #4f46e5;
	--tp-sched-type-group: #0d9488;
	--tp-sched-type-workshop: #c2410c;
	--tp-sched-type-other: #64748b;
	--tp-sched-bg: #f3f4f6;
	--tp-sched-panel: #ffffff;
	border-radius: 14px;
	background: var(--tp-sched-bg);
	padding: 1rem;
	margin-top: 0.35rem;
}

.tp-page .tp-sched-grid__chrome {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
}

.tp-page .tp-sched-grid__title {
	margin: 0 0 0.2rem;
	font-size: 1.2rem;
	font-weight: 800;
	color: var(--tp-text);
	letter-spacing: -0.02em;
}

.tp-page .tp-sched-grid__subtitle {
	margin: 0;
	font-size: 0.85rem;
	color: var(--tp-text-soft);
}

.tp-page .tp-sched-grid__toggle {
	display: inline-flex;
	padding: 0.2rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.85);
	border: 1px solid var(--tp-border);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.tp-page .tp-sched-grid__toggle-btn {
	border: 0;
	background: transparent;
	padding: 0.45rem 0.95rem;
	font-size: 0.78rem;
	font-weight: 700;
	border-radius: 999px;
	color: var(--tp-text-soft);
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.tp-page .tp-sched-grid__toggle-btn.is-active {
	background: #fff;
	color: var(--tp-accent);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tp-page .tp-sched-grid__legend-wrap {
	margin-bottom: 1rem;
	padding: 0.65rem 0.9rem;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.85);
	border: 1px solid var(--tp-border);
}

.tp-page .tp-sched-grid__legend-title {
	margin: 0 0 0.45rem;
	font-size: 0.6875rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--tp-text-soft);
}

.tp-page .tp-sched-grid__panel--hidden {
	display: none !important;
}

.tp-page .tp-sched-grid__scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border-radius: 12px;
	background: var(--tp-sched-panel);
	border: 1px solid var(--tp-border);
	box-shadow: var(--tp-shadow);
	min-width: 0;
	min-height: 0;
}

.tp-page .tp-sched-grid__matrix {
	min-width: 720px;
}

.tp-page .tp-sched-grid__head-row {
	display: grid;
	grid-template-columns: 5rem repeat(7, minmax(0, 1fr));
	gap: 0;
	border-bottom: 1px solid var(--tp-border);
	background: linear-gradient(180deg, #fafbfc, #fff);
}

.tp-page .tp-sched-grid__corner {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem;
	border-right: 1px solid var(--tp-border);
	color: var(--tp-text-soft);
}

.tp-page .tp-sched-grid__day-head {
	padding: 0.55rem 0.35rem;
	text-align: center;
	border-right: 1px solid var(--tp-border);
}

.tp-page .tp-sched-grid__day-head:last-child {
	border-right: none;
}

.tp-page .tp-sched-grid__day-head-short {
	display: block;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	color: var(--tp-accent);
}

.tp-page .tp-sched-grid__day-head-long {
	display: block;
	font-size: 0.65rem;
	color: var(--tp-text-soft);
	margin-top: 0.1rem;
	line-height: 1.2;
}

.tp-page .tp-sched-grid__body {
	display: grid;
	grid-template-columns: 5rem repeat(7, minmax(0, 1fr));
	position: relative;
	min-height: 28rem;
}

.tp-page .tp-sched-grid__gutter {
	grid-column: 1;
	position: relative;
	border-right: 1px solid var(--tp-border);
	background: #fafbfc;
	align-self: stretch;
}

.tp-page .tp-sched-grid__tick {
	position: absolute;
	left: 0;
	right: 0;
	transform: translateY(-50%);
	padding: 0 0.35rem;
	font-size: 0.65rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: var(--tp-text-soft);
	text-align: right;
	line-height: 1;
	white-space: nowrap;
}

.tp-page .tp-sched-grid__cols {
	grid-column: 2 / -1;
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	min-height: 28rem;
	align-items: stretch;
	align-self: stretch;
}

.tp-page .tp-sched-grid__col {
	border-right: 1px solid rgba(0, 0, 0, 0.04);
	position: relative;
	min-height: 28rem;
}

.tp-page .tp-sched-grid__col:last-child {
	border-right: none;
}

.tp-page .tp-sched-grid__col-track {
	position: relative;
	height: 100%;
	min-height: 28rem;
}

.tp-page .tp-sched-grid__empty {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%) rotate(-90deg);
	font-size: 0.62rem;
	font-weight: 800;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #d1d5db;
	white-space: nowrap;
	pointer-events: none;
}

.tp-page .tp-sched-grid__event {
	position: absolute;
	left: 4px;
	right: 4px;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
	container-type: size;
	container-name: tp-sched-event;
}

.tp-page .tp-sched-grid__event[data-bs-toggle="tooltip"] {
	cursor: help;
}

.tp-page .tp-sched-grid__event-inner {
	padding: 0.35rem 0.45rem;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	gap: 0.1rem;
	min-height: 0;
}

/* Short slots: avoid stacked title+time overlap — row layout + ellipsis */
@container tp-sched-event (max-height: 52px) {
	.tp-page .tp-sched-grid__event .tp-sched-grid__event-inner {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 0.3rem;
		padding: 0.15rem 0.35rem;
	}

	.tp-page .tp-sched-grid__event .tp-sched-grid__event-title {
		display: block;
		-webkit-line-clamp: unset;
		-webkit-box-orient: unset;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		flex: 1 1 auto;
		min-width: 0;
		font-size: 0.5rem;
		line-height: 1.15;
		letter-spacing: 0.02em;
	}

	.tp-page .tp-sched-grid__event .tp-sched-grid__event-time {
		margin-top: 0;
		flex-shrink: 0;
		font-size: 0.55rem;
	}
}

/* Very short slots: show time only; full text in Bootstrap tooltip (title on parent) */
@container tp-sched-event (max-height: 38px) {
	.tp-page .tp-sched-grid__event .tp-sched-grid__event-inner:has(.tp-sched-grid__event-time) .tp-sched-grid__event-title {
		display: none;
	}

	.tp-page .tp-sched-grid__event .tp-sched-grid__event-inner {
		justify-content: flex-start;
		padding: 0.1rem 0.3rem;
	}

	.tp-page .tp-sched-grid__event .tp-sched-grid__event-time {
		font-size: 0.58rem;
		text-align: left;
		margin-left: 0;
		margin-right: auto;
	}
}

.tp-page .tp-sched-grid__event--primary {
	background: var(--tp-sched-primary);
	color: #fff;
}

.tp-page .tp-sched-grid__event--lab {
	background: var(--tp-sched-lab);
	color: #fff;
}

.tp-page .tp-sched-grid__event--office {
	background: var(--tp-sched-office);
	color: #fff;
}

/* Schedule blocks by class type (public profile) */
.tp-page .tp-sched-grid__event--type-private {
	background: var(--tp-sched-type-private);
	color: #fff;
}

.tp-page .tp-sched-grid__event--type-group {
	background: var(--tp-sched-type-group);
	color: #fff;
}

.tp-page .tp-sched-grid__event--type-workshop {
	background: var(--tp-sched-type-workshop);
	color: #fff;
}

.tp-page .tp-sched-grid__event--type-other {
	background: var(--tp-sched-type-other);
	color: #fff;
}

.tp-page .tp-sched-grid__event-title {
	font-size: 0.58rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	opacity: 0.92;
	line-height: 1.2;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.tp-page .tp-sched-grid__event-time {
	font-size: 0.62rem;
	font-weight: 600;
	opacity: 0.95;
	font-variant-numeric: tabular-nums;
	margin-top: auto;
	white-space: nowrap;
}

/* Appended to body; avoids clipping from overflow on grid cells */
.tooltip.tp-sched-tooltip .tooltip-inner {
	max-width: 18rem;
	text-align: left;
	font-size: 0.8125rem;
	line-height: 1.45;
	padding: 0.5rem 0.65rem;
}

.tp-page .tp-sched-grid__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 1rem;
	padding: 0 0.15rem;
}

.tp-page .tp-sched-grid__legend {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.75rem;
	color: var(--tp-text-muted);
}

.tp-page .tp-sched-grid__legend li {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.tp-page .tp-sched-grid__legend-dot {
	width: 0.55rem;
	height: 0.55rem;
	border-radius: 50%;
	flex-shrink: 0;
}

.tp-page .tp-sched-grid__legend-dot--primary {
	background: var(--tp-sched-primary);
}

.tp-page .tp-sched-grid__legend-dot--lab {
	background: var(--tp-sched-lab);
}

.tp-page .tp-sched-grid__legend-dot--office {
	background: var(--tp-sched-office);
}

.tp-page .tp-sched-grid__legend-dot--type-private {
	background: var(--tp-sched-type-private);
}

.tp-page .tp-sched-grid__legend-dot--type-group {
	background: var(--tp-sched-type-group);
}

.tp-page .tp-sched-grid__legend-dot--type-workshop {
	background: var(--tp-sched-type-workshop);
}

.tp-page .tp-sched-grid__legend-dot--type-other {
	background: var(--tp-sched-type-other);
}

.tp-page .tp-sched-grid__tz {
	margin: 0;
	font-size: 0.72rem;
	color: var(--tp-text-soft);
	max-width: 20rem;
	text-align: right;
}

.tp-page .tp-sched-grid__list-inner {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 0.75rem 1rem;
}

.tp-page .tp-sched-grid__list-dayname {
	display: block;
	font-size: 0.85rem;
	color: var(--tp-accent);
	margin-bottom: 0.35rem;
}

.tp-page .tp-sched-grid__list-ul {
	margin: 0;
	padding-left: 0;
	list-style: none;
	font-size: 0.875rem;
	color: var(--tp-text);
}

.tp-page .tp-sched-grid__list-li {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	margin-bottom: 0.35rem;
	padding-left: 0;
}

.tp-page .tp-sched-grid__list-li:last-child {
	margin-bottom: 0;
}

.tp-page .tp-sched-grid__list-type-marker {
	flex-shrink: 0;
	width: 0.45rem;
	margin-top: 0.45em;
	border-radius: 2px;
	min-height: 0.85rem;
	align-self: stretch;
	background: var(--tp-sched-type-other);
}

.tp-page .tp-sched-grid__list-li--type-private .tp-sched-grid__list-type-marker {
	background: var(--tp-sched-type-private);
}

.tp-page .tp-sched-grid__list-li--type-group .tp-sched-grid__list-type-marker {
	background: var(--tp-sched-type-group);
}

.tp-page .tp-sched-grid__list-li--type-workshop .tp-sched-grid__list-type-marker {
	background: var(--tp-sched-type-workshop);
}

.tp-page .tp-sched-grid__list-li--type-other .tp-sched-grid__list-type-marker {
	background: var(--tp-sched-type-other);
}

.tp-page .tp-sched-grid__list-text {
	flex: 1;
	min-width: 0;
}

@media (max-width: 575.98px) {
	.tp-page .tp-sched-grid__chrome {
		flex-direction: column;
		align-items: stretch;
	}

	.tp-page .tp-sched-grid__toggle {
		align-self: flex-start;
	}
}

.tp-page .tp-pricing-note {
	color: var(--tp-text);
}

.tp-page .tp-pricing-list {
	line-height: 1.75;
	color: var(--tp-text);
}

.tp-page .tp-main .form-control:focus {
	border-color: var(--tp-accent);
	box-shadow: 0 0 0 0.2rem rgba(8, 120, 171, 0.12);
}

.tp-page .tp-gallery img {
	width: 100%;
	height: 140px;
	object-fit: cover;
	border-radius: var(--tp-radius-sm);
	border: 1px solid var(--tp-border);
}

/* Media block — gallery + presentation video */
.tp-page .tp-media-block__kicker {
	margin: 0 0 0.65rem;
	font-size: 0.8125rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--tp-text-muted);
}

.tp-page .tp-gallery-thumb {
	border: 1px solid var(--tp-border);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	cursor: pointer;
	background: transparent;
	color: inherit;
}

.tp-page .tp-gallery-thumb:hover {
	transform: scale(1.02);
	box-shadow: var(--tp-shadow-hover);
}

.tp-page .tp-gallery-thumb:focus-visible {
	outline: 2px solid var(--tp-accent);
	outline-offset: 3px;
}

/* Modal lives outside .tp-page so backdrop stacks correctly above page content */
.tp-gallery-modal .tp-gallery-modal__dialog {
	max-width: min(94vw, 880px);
	width: min(94vw, 880px);
	--bs-modal-border-width: 0;
	--bs-modal-border-radius: 0;
	/* Must keep horizontal auto — Bootstrap centers the dialog this way */
	margin: var(--bs-modal-margin) auto;
}

@media (max-width: 575.98px) {
	.tp-gallery-modal .tp-gallery-modal__dialog.modal-fullscreen-sm-down {
		max-width: 100%;
		width: 100%;
		margin: 0;
	}
}

.tp-gallery-modal .tp-gallery-modal__surface {
	overflow: visible;
	pointer-events: auto;
	width: 100%;
}

.tp-gallery-modal .tp-gallery-modal__carousel {
	width: 100%;
}

/* Fixed viewport: same area for every slide; image fits width+height via contain */
.tp-gallery-modal {
	--tp-gallery-viewport-h: min(68vh, 600px);
}

.tp-gallery-modal .tp-gallery-modal__head {
	padding: 0 0 0.5rem;
	min-height: 2.25rem;
}

.tp-gallery-modal .tp-gallery-modal__close {
	position: static;
	opacity: 0.92;
	flex-shrink: 0;
}

.tp-gallery-modal .tp-gallery-modal__close:hover,
.tp-gallery-modal .tp-gallery-modal__close:focus {
	opacity: 1;
}

.tp-gallery-modal .tp-gallery-modal__stage {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	width: 100%;
	position: relative;
}

.tp-gallery-modal .tp-gallery-modal__viewport {
	flex: 1 1 0;
	min-width: 0;
	overflow: hidden;
	border-radius: 0;
	order: 0;
}

.tp-gallery-modal .carousel-inner {
	height: var(--tp-gallery-viewport-h);
	min-height: var(--tp-gallery-viewport-h);
}

.tp-gallery-modal .carousel-item,
.tp-gallery-modal .tp-gallery-modal__slide {
	height: 100%;
}

.tp-gallery-modal .tp-gallery-modal__frame {
	height: 100%;
	width: 100%;
	padding: 0;
	box-sizing: border-box;
}

.tp-gallery-modal .tp-gallery-modal__img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	margin: 0 auto;
	object-fit: contain;
	object-position: center;
}

/*
 * Nav must stay in flex row (prev | viewport | next). Bootstrap’s carousel
 * uses position:absolute + % width on .carousel-control-*, which pulls them
 * to the center of .carousel — override hard so they sit at the sides.
 */
.tp-gallery-modal .carousel-control-prev.tp-gallery-modal__nav,
.tp-gallery-modal .carousel-control-next.tp-gallery-modal__nav {
	position: static !important;
	top: auto !important;
	bottom: auto !important;
	left: auto !important;
	right: auto !important;
	inset: auto !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 2.75rem !important;
	height: 2.75rem !important;
	min-width: 2.75rem !important;
	min-height: 2.75rem !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0;
	border-radius: 50%;
	background: rgba(15, 23, 42, 0.55);
	transform: none !important;
	opacity: 1;
	flex: 0 0 auto;
	align-self: center;
	z-index: 2;
}

.tp-gallery-modal .carousel-control-prev.tp-gallery-modal__nav {
	order: -1;
}

.tp-gallery-modal .carousel-control-next.tp-gallery-modal__nav {
	order: 1;
}

.tp-gallery-modal .tp-gallery-modal__nav:hover,
.tp-gallery-modal .tp-gallery-modal__nav:focus {
	opacity: 1;
	background: rgba(15, 23, 42, 0.75);
}

.tp-gallery-modal .carousel-control-prev-icon,
.tp-gallery-modal .carousel-control-next-icon {
	filter: brightness(0) invert(1);
	width: 1.75rem;
	height: 1.75rem;
	background-size: 100% 100%;
}

.tp-gallery-modal .tp-gallery-modal__indicators {
	position: static;
	left: auto;
	right: auto;
	bottom: auto;
	width: 100%;
	margin: 0.65rem 0 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.45rem;
	padding: 0;
}

.tp-gallery-modal .tp-gallery-modal__indicators [data-bs-target] {
	box-sizing: content-box;
	flex: 0 0 auto;
	width: 0.45rem;
	height: 0.45rem;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	opacity: 1;
	background-color: rgba(255, 255, 255, 0.35);
	text-indent: -999px;
}

.tp-gallery-modal .tp-gallery-modal__indicators [data-bs-target].active {
	background-color: #fff;
}

.tp-page .tp-media-block__video-title {
	margin: 0 0 0.65rem;
	font-size: 0.8125rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--tp-text-muted);
}

.tp-page .tp-media-block__video--after-gallery {
	margin-top: 1.25rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--tp-border);
}

.tp-page .tp-video-embed.ratio {
	background: #0f172a;
	border-radius: var(--tp-radius-sm);
	overflow: hidden;
	box-shadow: var(--tp-shadow);
}

.tp-page .tp-video-embed.ratio > * {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.tp-page .tp-video-embed.ratio iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

@media (prefers-reduced-motion: reduce) {
	.tp-page .tp-gallery-thumb:hover {
		transform: none;
	}
}

/* Map — proportional, less overwhelming */
.tp-page .tp-map-wrap {
	position: relative;
	border-radius: var(--tp-radius-sm);
	overflow: hidden;
	box-shadow: var(--tp-shadow);
	aspect-ratio: 16 / 10;
	max-height: 380px;
}

.tp-page .tp-map-wrap iframe {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	border: 0;
	min-height: 200px;
}

.tp-page .tp-map-cta {
	margin-top: 1rem;
	text-align: center;
}

.tp-page .tp-btn-maps {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.6rem 1.25rem;
	border-radius: var(--tp-radius-sm);
	background: var(--tp-accent);
	color: #fff !important;
	font-weight: 500;
	text-decoration: none;
	transition: background 0.2s ease;
}

.tp-page .tp-btn-maps:hover,
.tp-page .tp-btn-maps:focus-visible {
	background: var(--tp-accent-hover);
	color: #fff !important;
}

/* Related content (events / studios / trainings) */
.tp-page .tp-related {
	padding: clamp(1.25rem, 3vw, 1.5rem);
	margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
	background: linear-gradient(180deg, #f6f8fa 0%, #f0f4f7 100%);
	border-radius: var(--tp-radius);
	border: 1px solid var(--tp-border);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.tp-page .tp-related__title {
	margin: 0 0 var(--tp-space-group);
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--tp-accent);
}

.tp-page .tp-related-grid {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.tp-page .tp-feed-card {
	background: var(--tp-surface);
	padding: 1rem 1.125rem;
	border-radius: var(--tp-radius-sm);
	border: 1px solid var(--tp-border);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
	border-left: 4px solid var(--tp-accent);
}

.tp-page .tp-feed-card--studio {
	border-left-color: #198754;
}

.tp-page .tp-feed-card--training {
	border-left-color: #ffc107;
}

.tp-page .tp-feed-card__head {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	margin-bottom: 0.75rem;
}

.tp-page .tp-feed-card__head h4 {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	color: var(--tp-accent);
}

.tp-page .tp-feed-card--studio .tp-feed-card__head h4 {
	color: #198754;
}

.tp-page .tp-feed-card--training .tp-feed-card__head h4 {
	color: #b8860b;
}

.tp-page .tp-feed-scroll {
	max-height: 220px;
	overflow-y: auto;
}

.tp-page .tp-feed-item {
	padding: 0.75rem;
	margin-bottom: 0.5rem;
	background: var(--tp-surface-subtle);
	border-radius: var(--tp-radius-sm);
	border: 1px solid transparent;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.tp-page .tp-feed-item:hover {
	background: #fff;
	border-color: rgba(8, 120, 171, 0.2);
}

.tp-page .tp-feed-item:focus-visible {
	outline: 2px solid var(--tp-accent);
	outline-offset: 2px;
	background: #fff;
	border-color: rgba(8, 120, 171, 0.25);
}

.tp-page .tp-feed-item__title {
	font-weight: 600;
	font-size: 0.875rem;
	color: var(--tp-text);
	margin-bottom: 0.25rem;
}

.tp-page .tp-feed-item__meta {
	font-size: 0.6875rem;
	color: var(--tp-accent);
	font-weight: 500;
}

.tp-page .tp-feed-card--studio .tp-feed-item__meta {
	color: #198754;
}

.tp-page .tp-feed-card--training .tp-feed-item__meta {
	color: #b8860b;
}

.tp-page .tp-feed-item__cta {
	font-size: 0.75rem;
	color: var(--tp-accent);
	font-weight: 500;
}

/* Sidebar */
.tp-page #teacher-sidebar .tp-side-block {
	padding: 1.25rem;
	margin-bottom: 1.25rem;
	background: var(--tp-surface);
	border-radius: var(--tp-radius);
	border: 1px solid var(--tp-border);
	box-shadow: var(--tp-shadow);
}

.tp-page #teacher-sidebar .tp-side-block--kri {
	background: linear-gradient(165deg, #f8fbfd 0%, #eef6fa 100%);
	border-left: 4px solid var(--tp-accent);
}

.tp-page #teacher-sidebar .tp-side-block--social {
	background: linear-gradient(165deg, #fafbfc 0%, #f4f6f8 100%);
	border-left: 4px solid #6c757d;
}

.tp-page #teacher-sidebar .tp-side-block--specialty {
	border-left: 4px solid #6c757d;
}

.tp-page #teacher-sidebar .tp-side-block--lang {
	background: linear-gradient(165deg, #f4faf6 0%, #eaf5ec 100%);
	border-left: 4px solid #28a745;
}

.tp-page #teacher-sidebar .tp-side-title {
	font-size: 1rem;
	font-weight: 700;
	margin-bottom: 0.75rem;
	color: var(--tp-accent);
}

.tp-page #teacher-sidebar .tp-side-title--muted {
	color: #6c757d;
}

.tp-page #teacher-sidebar .tp-side-title--green {
	color: #28a745;
}

.tp-page #teacher-sidebar .tp-side-title--center {
	text-align: center;
}

.tp-page #teacher-sidebar .tp-specialty-pill {
	display: inline-block;
	background: #6c757d;
	color: #fff;
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 500;
}

.tp-page #teacher-sidebar .tp-social-row {
	display: flex;
	gap: 0.4rem;
	justify-content: center;
	flex-wrap: wrap;
}

.tp-page #teacher-sidebar .tp-social-row a {
	transition: transform 0.2s ease;
}

.tp-page #teacher-sidebar .tp-social-row a:hover,
.tp-page #teacher-sidebar .tp-social-row a:focus-visible {
	transform: scale(1.08);
}

/* Primary button in this template */
.tp-page .btn-primary {
	background-color: var(--tp-accent);
	border-color: var(--tp-accent);
}

.tp-page .btn-primary:hover,
.tp-page .btn-primary:focus-visible {
	background-color: var(--tp-accent-hover);
	border-color: var(--tp-accent-hover);
}

.tp-page .btn-outline-primary {
	color: var(--tp-accent);
	border-color: var(--tp-accent);
}

.tp-page .btn-outline-primary:hover {
	background-color: var(--tp-accent);
	border-color: var(--tp-accent);
}

#teacher-profile-content {
	margin-top: 0.5rem;
	align-items: flex-start;
}

.tp-page .tp-sidebar {
	padding-bottom: 1rem;
}

#teacher-sidebar {
	position: sticky;
	top: 80px;
}

@media (prefers-reduced-motion: reduce) {
	.tp-page #teacher-sidebar .tp-social-row a {
		transition: none;
	}

	.tp-page #teacher-sidebar .tp-social-row a:hover,
	.tp-page #teacher-sidebar .tp-social-row a:focus-visible {
		transform: none;
	}

	.tp-page .tp-feed-item {
		transition: none;
	}
}

@media (max-width: 991.98px) {
	#teacher-sidebar {
		position: static;
		margin-top: var(--tp-space-section);
	}

	.tp-page .tp-teaching-hours__row {
		grid-template-columns: minmax(2.75rem, 4.5rem) minmax(0, 1fr);
	}

	.tp-page .tp-teaching-hours__day {
		font-size: 0.6875rem;
		padding: 0.5rem 0.5rem;
	}
}

/* --------------------------------------------------------------------------
   Single wide column profile (reference: one narrative column + hero band)
   -------------------------------------------------------------------------- */
.tp-page.tp-profile-wide.container {
	max-width: 1080px;
}

.tp-page .tp-profile-main {
	width: 100%;
	max-width: 100%;
}

.tp-page .tp-profile-hero {
	--tp-hero-gap: clamp(1rem, 3vw, 1.5rem);
	background: transparent;
	border-radius: 0;
	padding: 0;
	box-shadow: none;
	border: none;
}

.tp-page .tp-profile-hero__photo-col {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 168px;
}

@media (min-width: 768px) {
	.tp-page .tp-profile-hero__photo-col {
		align-items: flex-start;
	}
}

.tp-page .tp-profile-hero__main {
	display: flex;
	flex-direction: column;
	gap: 0;
	min-width: 0;
}

.tp-page .tp-profile-hero__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.75rem 1rem;
	margin-bottom: 0.65rem;
}

.tp-page .tp-profile-hero__head-text {
	flex: 1 1 12rem;
	min-width: 0;
}

/* Right column: Active IKYTA badge + Send message / WhatsApp */
.tp-page .tp-profile-hero__head-aside {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.65rem;
	min-width: 0;
	max-width: 100%;
}

.tp-page .tp-profile-hero__active-ikyta-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	padding: 0.35rem 0.75rem;
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
	text-align: center;
	white-space: nowrap;
	background: linear-gradient(135deg, #28a745, #20c997);
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 999px;
	box-shadow: 0 2px 8px rgba(40, 167, 69, 0.35);
}

.tp-page .tp-profile-hero__active-ikyta-badge .fa-check-circle {
	font-size: 0.95em;
	opacity: 0.95;
}

.tp-page .tp-profile-hero__head-cta {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.5rem;
	min-width: 0;
	width: 100%;
	max-width: 16rem;
}

.tp-page .tp-profile-hero__head-cta-wa {
	width: 100%;
	margin: 0;
}

/* Match .btn.btn-sm sizing (padding, type, radius) with Send a message */
.tp-page .tp-profile-hero__head-cta-wa .tp-profile-hero__wa {
	margin-left: 0;
	width: 100%;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	padding: 0.25rem 0.5rem;
	font-size: 0.875rem;
	line-height: 1.5;
	font-weight: 700;
	font-family: inherit;
	border-radius: var(--bs-border-radius-sm, 0.25rem);
	border: 1px solid rgba(0, 0, 0, 0.08);
	box-shadow: 0 2px 10px rgba(37, 211, 102, 0.28);
	white-space: nowrap;
	transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out,
		box-shadow 0.15s ease-in-out;
}

.tp-page .tp-profile-hero__head-cta-wa .tp-profile-hero__wa:hover,
.tp-page .tp-profile-hero__head-cta-wa .tp-profile-hero__wa:focus-visible {
	box-shadow: 0 2px 12px rgba(37, 211, 102, 0.38);
}

.tp-page .tp-profile-hero__head-cta .tp-profile-hero__btn-primary {
	width: 100%;
	font-size: 0.875rem;
	line-height: 1.5;
	font-weight: 700;
	border-radius: var(--bs-border-radius-sm, 0.25rem);
	box-shadow: 0 2px 10px rgba(8, 120, 171, 0.28);
	white-space: nowrap;
	text-decoration: none !important;
}

@media (max-width: 575.98px) {
	.tp-page .tp-profile-hero__head-aside {
		flex: 1 1 100%;
		align-items: stretch;
	}

	.tp-page .tp-profile-hero__active-ikyta-badge {
		align-self: flex-end;
		white-space: normal;
		max-width: 100%;
		text-align: right;
	}

	.tp-page .tp-profile-hero__head-cta {
		flex: 1 1 100%;
		max-width: none;
	}
}

.tp-page .tp-profile-hero__panels-row {
	margin-top: var(--tp-hero-gap);
	width: 100%;
	max-width: 100%;
}

.tp-page .tp-profile-hero__panels-row .tp-profile-hero__panel {
	margin-bottom: 0;
	width: 100%;
}

@media (min-width: 768px) {
	.tp-page .tp-profile-hero__panels-row--split {
		flex-wrap: nowrap;
		column-gap: var(--tp-hero-gap);
	}

	.tp-page .tp-profile-hero__panels-row--split > [class*="col-"] {
		flex: 1 1 0;
		max-width: none;
		width: auto;
		min-width: 0;
	}
}

.tp-page .tp-profile-hero__chunk-title {
	margin: 0 0 0.85rem;
	font-size: 1.0625rem;
	font-weight: 800;
	color: var(--tp-text);
	letter-spacing: -0.02em;
	line-height: 1.25;
	padding-bottom: 0.45rem;
	border-bottom: 2px solid rgba(8, 120, 171, 0.28);
	text-transform: none;
	font-variant: normal;
}

.tp-page .tp-profile-hero__panel {
	padding: 1rem 1.15rem;
	margin-bottom: var(--tp-hero-gap);
	background: rgba(255, 255, 255, 0.78);
	border: 1px solid rgba(8, 120, 171, 0.14);
	border-radius: 10px;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.tp-page .tp-profile-hero__panel:last-child {
	margin-bottom: 0;
}

.tp-page .tp-profile-hero__subchunk-title {
	margin: 0 0 0.5rem;
	font-size: 0.8125rem;
	font-weight: 700;
	color: #475569;
	letter-spacing: 0.01em;
	text-transform: none;
	font-variant: normal;
}

.tp-page .tp-profile-hero__subchunk--split {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--tp-border);
}

.tp-page .tp-profile-hero__photo {
	width: 160px;
	height: 160px;
	object-fit: cover;
	border-radius: 50%;
	border: 3px solid rgba(8, 120, 171, 0.35);
	box-shadow: var(--tp-shadow);
	display: block;
}

.tp-page .tp-profile-hero__photo--placeholder {
	width: 160px;
	height: 160px;
	border-radius: 50%;
	background: linear-gradient(145deg, #f0f0f0, #e2e8f0);
	border: 2px solid var(--tp-border);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #94a3b8;
	font-size: 3rem;
}

.tp-page .tp-profile-hero__name {
	margin: 0 0 0.35rem;
	font-size: clamp(1.65rem, 4vw, 2.15rem);
	font-weight: 800;
	color: var(--tp-text);
	letter-spacing: -0.02em;
	line-height: 1.15;
}

.tp-page .tp-profile-hero__subtitle {
	margin: 0 0 0.75rem;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--tp-accent);
	letter-spacing: 0.02em;
}

.tp-page .tp-profile-hero__subtitle--has-kri-below {
	margin-bottom: 0.35rem;
}

.tp-page .tp-profile-hero__head-kri {
	margin: 0 0 0.65rem;
}

.tp-page .tp-profile-hero__teacher-since {
	margin: 0.4rem 0 0;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--tp-text-muted);
	display: flex;
	align-items: center;
	gap: 0.45rem;
	line-height: 1.35;
}

.tp-page .tp-profile-hero__teacher-since i {
	color: var(--tp-accent);
	font-size: 0.9em;
}

.tp-page .tp-profile-hero__kri-levels--head {
	margin-bottom: 0;
}

.tp-page .tp-profile-hero__sep {
	margin: 0 0.35rem;
	opacity: 0.65;
}

.tp-page .tp-profile-hero__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 0.85rem;
}

.tp-page .tp-profile-hero__tags--hero-extras {
	margin-bottom: 0;
}

.tp-page .tp-profile-hero__tag {
	display: inline-flex;
	align-items: center;
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	background: rgba(8, 120, 171, 0.1);
	color: var(--tp-accent-hover);
	border: 1px solid rgba(8, 120, 171, 0.2);
}

.tp-page .tp-profile-hero__tag--offering,
.tp-page .tp-profile-hero__tag--level {
	text-transform: none;
	letter-spacing: 0.02em;
	font-weight: 600;
	font-size: 0.8125rem;
	line-height: 1.25;
}

.tp-page .tp-profile-hero__tag--level {
	background: rgba(91, 75, 138, 0.1);
	color: #5b4b8a;
	border-color: rgba(91, 75, 138, 0.22);
}

.tp-page .tp-profile-hero__inline-label {
	font-weight: 700;
	color: var(--tp-text);
	margin-right: 0.35rem;
}

.tp-page .tp-profile-hero__kri {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
	margin-bottom: 0.85rem;
}

.tp-page .tp-profile-hero__kri-levels {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem;
}

.tp-page .tp-profile-hero__kri-level {
	display: inline-flex;
	align-items: center;
	padding: 0.25rem 0.55rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	background: rgba(8, 120, 171, 0.1);
	color: var(--tp-accent-hover);
	border: 1px solid rgba(8, 120, 171, 0.2);
}

.tp-page .tp-profile-hero__kri-level--certification {
	border-radius: 0.55rem;
	line-height: 1.25;
	white-space: normal;
	text-align: left;
}

.tp-page .tp-profile-hero__subchunk--kri .tp-profile-hero__kri-levels {
	justify-content: flex-start;
}

.tp-page .tp-profile-hero__meta-lines {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.tp-page .tp-profile-hero__meta-lines .tp-profile-hero__line {
	margin-bottom: 0;
}

.tp-page .tp-profile-hero__line {
	margin: 0 0 0.55rem;
	font-size: 0.875rem;
	color: var(--tp-text-soft);
	line-height: 1.45;
}

.tp-page .tp-profile-hero__line.tp-profile-hero__languages {
	margin-bottom: 0.9rem;
}

.tp-page .tp-profile-hero__line i {
	color: var(--tp-accent);
	margin-right: 0.35rem;
}

/* Multi-line address: pin aligned with first line, not vertically centered */
.tp-page .tp-profile-hero__line--address {
	display: flex;
	align-items: flex-start;
	gap: 0.35rem;
}

.tp-page .tp-profile-hero__line--address > i {
	flex-shrink: 0;
	margin-right: 0;
	margin-top: 0.12em;
	line-height: 1;
}

.tp-page .tp-profile-hero__line--address > span {
	flex: 1 1 auto;
	min-width: 0;
	max-width: 42rem;
}

.tp-page .tp-profile-hero__wa {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin-left: 0.6rem;
	padding: 0.2rem 0.65rem;
	border-radius: 999px;
	background: #25d366;
	color: #fff !important;
	font-size: 0.75rem;
	font-weight: 700;
	text-decoration: none !important;
	vertical-align: middle;
	transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.tp-page .tp-profile-hero__wa:hover,
.tp-page .tp-profile-hero__wa:focus,
.tp-page .tp-profile-hero__wa:focus-visible,
.tp-page .tp-profile-hero__wa:active {
	background: #1fb855;
	color: #fff !important;
	text-decoration: none !important;
}

.tp-page .tp-profile-hero__wa:focus-visible {
	outline: 2px solid var(--tp-accent);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.tp-page .tp-profile-hero__wa {
		transition: none;
	}
}

.tp-page .tp-profile-hero__head-cta .tp-profile-hero__btn-primary:hover,
.tp-page .tp-profile-hero__head-cta .tp-profile-hero__btn-primary:focus,
.tp-page .tp-profile-hero__head-cta .tp-profile-hero__btn-primary:focus-visible,
.tp-page .tp-profile-hero__head-cta .tp-profile-hero__btn-primary:active {
	text-decoration: none !important;
}

.tp-page .tp-profile-meta-strip__inner {
	display: block;
	padding: 1rem 1.25rem;
	background: var(--tp-surface);
	border-radius: var(--tp-radius);
	border: 1px solid var(--tp-border);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.tp-page .tp-profile-meta-block--connect {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.25rem;
}

.tp-page .tp-profile-meta-block__title {
	margin: 0;
	font-size: 0.9375rem;
	font-weight: 800;
	letter-spacing: -0.01em;
	color: var(--tp-text);
	padding-bottom: 0;
	border-bottom: none;
	flex: 1 1 auto;
	min-width: 10rem;
	text-transform: none;
}

.tp-page .tp-profile-meta-block__title i {
	margin-right: 0.4rem;
	color: var(--tp-accent);
	font-size: 0.9em;
}

.tp-page .tp-profile-meta-block--connect .tp-profile-meta-block__icons {
	margin: 0;
	flex: 0 0 auto;
}

.tp-page .tp-profile-meta-block__text {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--tp-text);
}

.tp-page .tp-profile-meta-block__icons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.tp-page .tp-profile-social-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 50%;
	background: var(--tp-social-bg, var(--tp-accent));
	color: #fff;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
	font-size: 0.85rem;
}

.tp-page .tp-profile-social-icon:hover {
	transform: scale(1.08);
	color: #fff;
}

.tp-page .tp-profile-kri-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
}

.tp-page .tp-profile-kri-badges img {
	width: 4.5rem;
	height: auto;
	border-radius: 50%;
}

/* --------------------------------------------------------------------------
   Story column — stacked cards (biography, map, pricing, schedule, explore)
   -------------------------------------------------------------------------- */
.tp-page .tp-story-card {
	background: var(--tp-surface);
	border-radius: var(--tp-radius);
	box-shadow: var(--tp-shadow);
	border: 1px solid rgba(8, 120, 171, 0.1);
	padding: var(--tp-space-group);
}

/* Single card: biography + places + map + pricing + schedule */
.tp-page .tp-story-combined > .tp-story-combined__block:not(:first-child) {
	margin-top: 1.35rem;
	padding-top: 1.15rem;
	border-top: 1px solid var(--tp-border);
}

.tp-page .tp-story-card__title {
	margin: 0 0 1rem;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--tp-accent);
	padding-bottom: 0.5rem;
	border-bottom: 2px solid rgba(8, 120, 171, 0.28);
	display: flex;
	align-items: center;
	gap: 0.5rem;
	line-height: 1.3;
}

.tp-page .tp-story-card__title--lg {
	font-size: 1.35rem;
}

.tp-page .tp-story-card__title--contact {
	font-size: 1.375rem;
	margin-bottom: 0.65rem;
}

.tp-page .tp-story-card__title i {
	opacity: 0.92;
}

.tp-page .tp-story-card__prose {
	line-height: 1.75;
	color: var(--tp-text);
	font-size: 1rem;
}

.tp-page .tp-story-card__prose > *:last-child {
	margin-bottom: 0;
}

.tp-page .tp-story-card__prose--schedule-legacy {
	font-size: 0.9375rem;
	margin-bottom: 0.75rem;
}

.tp-page .tp-story-map-address {
	margin: 0 0 0.875rem;
	font-size: 0.875rem;
	color: var(--tp-text-muted);
	line-height: 1.5;
}

.tp-page .tp-story-map-address i {
	margin-right: 0.35rem;
	color: var(--tp-accent);
}

.tp-page .tp-place-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.tp-page .tp-place-pill {
	background: rgba(8, 120, 171, 0.08);
	color: var(--tp-accent-hover);
	padding: 0.35rem 0.85rem;
	border-radius: 999px;
	font-size: 0.8125rem;
	font-weight: 600;
	border: 1px solid rgba(8, 120, 171, 0.2);
}

.tp-page .tp-map-embed {
	position: relative;
	width: 100%;
	border-radius: var(--tp-radius-sm);
	overflow: hidden;
	border: 1px solid var(--tp-border);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	background: var(--tp-surface-subtle);
}

.tp-page .tp-map-embed__ratio {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
}

.tp-page .tp-map-embed__ratio iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.tp-page .tp-osp-subsection:not(:first-child) {
	margin-top: 1.25rem;
}

.tp-page .tp-osp-subsection__title {
	margin: 0 0 0.75rem;
	font-size: 0.8125rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--tp-text-muted);
}

.tp-page .tp-osp-pricing-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr));
	gap: 0.85rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tp-page .tp-osp-pricing-card {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 0.95rem 1rem;
	background: linear-gradient(145deg, var(--tp-surface) 0%, var(--tp-surface-subtle) 100%);
	border: 1px solid var(--tp-border);
	border-radius: var(--tp-radius-sm);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset, var(--tp-shadow);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tp-page .tp-osp-pricing-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, var(--tp-shadow-hover);
	border-color: rgba(8, 120, 171, 0.22);
}

.tp-page .tp-osp-pricing-card__icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 10px;
	font-size: 1rem;
	color: var(--tp-accent);
	background: linear-gradient(160deg, rgba(8, 120, 171, 0.14) 0%, rgba(48, 186, 236, 0.12) 100%);
	border: 1px solid rgba(8, 120, 171, 0.15);
}

.tp-page .tp-osp-pricing-card__body {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.tp-page .tp-osp-pricing-card__label {
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--tp-text-soft);
	line-height: 1.25;
}

.tp-page .tp-osp-pricing-card__price {
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--tp-text);
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.02em;
	word-break: break-word;
}

.tp-page .tp-osp-pricing-currency {
	margin: 0.85rem 0 0;
	padding: 0.35rem 0.65rem;
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--tp-text-soft);
	background: rgba(8, 120, 171, 0.06);
	border: 1px solid rgba(8, 120, 171, 0.12);
	border-radius: 999px;
}

@media (prefers-reduced-motion: reduce) {
	.tp-page .tp-osp-pricing-card:hover {
		transform: none;
	}
}

.tp-page .tp-osp-pricing-callout {
	font-size: 0.9375rem;
	color: var(--tp-text);
}

.tp-page .tp-osp-pricing-callout i {
	margin-right: 0.35rem;
	color: var(--tp-accent);
}

.tp-page .tp-osp-pricing-contact-btn {
	text-decoration: none;
}

.tp-page .tp-osp-pricing-contact-btn:hover,
.tp-page .tp-osp-pricing-contact-btn:focus,
.tp-page .tp-osp-pricing-contact-btn:focus-visible,
.tp-page .tp-osp-pricing-contact-btn:active {
	text-decoration: none;
}

.tp-page .tp-osp-pricing-contact-btn i {
	margin-right: 0.4rem;
}

.tp-page .tp-schedule-meta--flush {
	margin-top: 0;
}

.tp-page .tp-schedule-meta--after-sched {
	margin-top: 0.625rem;
}

.tp-page .tp-schedule-meta__prose--location-notes {
	font-size: 0.875rem;
	color: #444;
	line-height: 1.6;
}

.tp-page .tp-weekly-sched-outer--tight {
	margin-top: 0;
	margin-bottom: 0.25rem;
}

.tp-page .tp-story-card__kicker {
	margin: 0 0 0.4rem;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--tp-text-soft);
}

.tp-page .tp-story-card__lead {
	margin: 0 0 1.1rem;
	font-size: 0.875rem;
	color: var(--tp-text-muted);
	line-height: 1.5;
}

.tp-page .tp-story-card--explore {
	background: linear-gradient(160deg, var(--tp-surface-subtle) 0%, #eef2f5 100%);
	border: 1px solid var(--tp-border);
}

.tp-page .tp-story-card--contact {
	background: linear-gradient(180deg, #f8fbff 0%, #fff 48%);
	box-shadow: 0 4px 18px rgba(8, 120, 171, 0.12);
	border: 1px solid rgba(8, 120, 171, 0.12);
}

.tp-page .tp-story-card__intro {
	margin: 0 0 1.1rem;
	font-size: 0.875rem;
	color: var(--tp-text-soft);
	line-height: 1.55;
}

.tp-page .tp-contact-status {
	margin-top: 0.75rem;
}

.tp-page .tp-explore-grid {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.tp-page .tp-explore-card {
	background: var(--tp-surface);
	border-radius: var(--tp-radius-sm);
	border: 1px solid var(--tp-border);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	padding: 1.1rem 1.15rem;
	border-left: 4px solid var(--tp-accent);
}

.tp-page .tp-explore-card--studio {
	border-left-color: #198754;
}

.tp-page .tp-explore-card--training {
	border-left-color: #b8860b;
}

.tp-page .tp-explore-card__head {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	margin-bottom: 0.85rem;
}

.tp-page .tp-explore-card__icon {
	font-size: 1.35rem;
	color: var(--tp-accent);
	line-height: 1;
}

.tp-page .tp-explore-card--studio .tp-explore-card__icon {
	color: #198754;
}

.tp-page .tp-explore-card--training .tp-explore-card__icon {
	color: #b8860b;
}

.tp-page .tp-explore-card__heading {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	color: var(--tp-accent);
}

.tp-page .tp-explore-card--studio .tp-explore-card__heading {
	color: #198754;
}

.tp-page .tp-explore-card--training .tp-explore-card__heading {
	color: #9a7b0a;
}

.tp-page .tp-explore-scroll {
	max-height: 200px;
	overflow-y: auto;
}

.tp-page .tp-explore-more {
	text-align: center;
	margin-top: 0.85rem;
}

.tp-page a.tp-feed-line {
	color: inherit;
	text-decoration: none;
}

.tp-page .tp-feed-line {
	padding: 0.75rem;
	border-radius: var(--tp-radius-sm);
	margin-bottom: 0.5rem;
	background: var(--tp-surface-subtle);
	border: 1px solid transparent;
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.tp-page .tp-feed-line:last-child {
	margin-bottom: 0;
}

.tp-page .tp-feed-line:hover,
.tp-page .tp-feed-line:focus-visible {
	background: var(--tp-surface);
	border-color: rgba(8, 120, 171, 0.2);
	transform: translateX(4px);
}

.tp-page .tp-feed-line--studio:hover,
.tp-page .tp-feed-line--studio:focus-visible {
	border-color: rgba(25, 135, 84, 0.25);
}

.tp-page .tp-feed-line--training:hover,
.tp-page .tp-feed-line--training:focus-visible {
	border-color: rgba(184, 134, 11, 0.35);
}

.tp-page .tp-feed-line__row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
}

.tp-page .tp-feed-line__main {
	flex: 1;
	min-width: 0;
}

.tp-page .tp-feed-line__title {
	color: var(--tp-text);
	font-weight: 600;
	font-size: 0.875rem;
	margin-bottom: 0.25rem;
	line-height: 1.35;
}

.tp-page .tp-feed-line__meta {
	font-size: 0.6875rem;
	font-weight: 500;
}

.tp-page .tp-feed-line__meta--events {
	color: var(--tp-accent);
}

.tp-page .tp-feed-line__meta--studio {
	color: #198754;
}

.tp-page .tp-feed-line__meta--training {
	color: #9a7b0a;
}

.tp-page .tp-feed-line__action {
	font-size: 0.75rem;
	font-weight: 600;
	white-space: nowrap;
	flex-shrink: 0;
}

.tp-page .tp-feed-line__action--events {
	color: var(--tp-accent);
}

.tp-page .tp-feed-line__action--studio {
	color: #198754;
}

.tp-page .tp-feed-line__action--training {
	color: #9a7b0a;
}
