/*
Theme Name: TeamCraft Theme
Author: TeamCraft
Description: A refined theme for corporate team building companies. Includes a Programs catalogue with filters (activity type, setting, group size, length), detailed program pages (key outcomes, learning outcomes, run-of-show flow, inclusions, FAQ, gallery), a quote request form that saves every request in the dashboard and emails you, and one-click starter content. No extra plugins needed.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: teamcraft-theme
Tags: business, portfolio, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ---------- Tokens ---------- */
:root {
	--tc-primary: #123b34;
	--tc-accent: #c09a55;
	--tc-primary-deep: color-mix(in srgb, var(--tc-primary) 78%, #000);
	--tc-primary-soft: color-mix(in srgb, var(--tc-primary) 10%, #fff);
	--tc-accent-ink: color-mix(in srgb, var(--tc-accent) 62%, #000);
	--tc-ink: #18211f;
	--tc-muted: #56625e;
	--tc-paper: #f3f5f2;
	--tc-surface: #ffffff;
	--tc-line: #d6ddd8;
	--tc-on-dark: #edf2ee;
	--tc-on-dark-muted: rgba(237, 242, 238, 0.74);
	--tc-line-dark: rgba(237, 242, 238, 0.18);

	--tc-serif: "Newsreader", "Iowan Old Style", Georgia, serif;
	--tc-sans: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;

	--tc-wrap: 1240px;
	--tc-gutter: clamp(16px, 4vw, 40px);
	--tc-section: clamp(64px, 9vw, 120px);
	--tc-header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--tc-header-h) + 64px); }
html.tc-lock { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
	margin: 0;
	background: var(--tc-paper);
	color: var(--tc-ink);
	font-family: var(--tc-sans);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
h1, h2, h3, h4 { font-family: var(--tc-serif); font-weight: 500; line-height: 1.15; margin: 0; color: inherit; text-wrap: balance; }
p { margin: 0; }
p + p { margin-top: 1em; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--tc-accent); outline-offset: 3px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.tc-skip {
	position: absolute; left: 16px; top: -60px; z-index: 100;
	background: var(--tc-primary); color: #fff; padding: 10px 16px; border-radius: 2px;
}
.tc-skip:focus { top: 12px; }

.tc-wrap { width: 100%; max-width: calc(var(--tc-wrap) + var(--tc-gutter) * 2); margin: 0 auto; padding: 0 var(--tc-gutter); }
.tc-muted { color: var(--tc-muted); }
.tc-small { font-size: 0.875rem; }

/* ---------- Buttons & links ---------- */
.tc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 12px 22px;
	border: 1px solid transparent; border-radius: 2px;
	font-family: var(--tc-sans); font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.01em; line-height: 1.2;
	text-decoration: none; cursor: pointer;
	transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.tc-btn .tc-icon { width: 18px; height: 18px; }
.tc-btn--primary { background: var(--tc-primary); color: #fff; }
.tc-btn--primary:hover { background: var(--tc-primary-deep); }
.tc-btn--accent { background: var(--tc-accent); color: var(--tc-primary-deep); }
.tc-btn--accent:hover { background: color-mix(in srgb, var(--tc-accent) 85%, #fff); }
.tc-btn--ghost { border-color: color-mix(in srgb, var(--tc-ink) 40%, transparent); color: var(--tc-ink); background: transparent; }
.tc-btn--ghost:hover { border-color: var(--tc-ink); background: var(--tc-surface); }
.tc-btn--ghost-light { border-color: var(--tc-line-dark); color: var(--tc-on-dark); background: transparent; }
.tc-btn--ghost-light:hover { border-color: var(--tc-on-dark); }
.tc-btn--block { width: 100%; }
.tc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.tc-link { font-weight: 600; font-size: 0.9375rem; color: var(--tc-accent-ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--tc-accent) 60%, transparent); }
.tc-link:hover { text-decoration-color: currentColor; }
.tc-icon { flex: none; }

/* ---------- Header ---------- */
.tc-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--tc-paper) 94%, transparent);
	backdrop-filter: saturate(1.4) blur(10px);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid transparent;
	transition: border-color .2s ease;
}
.admin-bar .tc-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .tc-header { top: 46px; } }
.tc-header.is-scrolled { border-bottom-color: var(--tc-line); }
.tc-header__inner { display: flex; align-items: center; gap: 32px; min-height: var(--tc-header-h); }
.tc-brand {
	font-family: var(--tc-serif); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.01em;
	text-decoration: none; color: var(--tc-primary); margin-right: auto; line-height: 1.1;
}
.tc-brand--logo img { max-height: 48px; width: auto; }
.tc-nav { display: flex; align-items: center; gap: 28px; }
.tc-menu { display: flex; align-items: center; gap: 28px; list-style: none; }
.tc-menu a { text-decoration: none; font-size: 0.9375rem; font-weight: 500; padding: 6px 0; border-bottom: 1px solid transparent; }
.tc-menu a:hover { border-bottom-color: var(--tc-ink); }
.tc-menu .current-menu-item > a,
.tc-menu .current_page_item > a,
.tc-menu .current-menu-ancestor > a { border-bottom-color: var(--tc-accent); }
.tc-menu .sub-menu { display: none; }
.tc-header__cta { min-height: 42px; padding: 10px 18px; }
.tc-nav-toggle { display: none; }

@media (max-width: 960px) {
	/* backdrop-filter would trap the fixed menu panel inside the header */
	.tc-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--tc-paper); }
	.tc-nav-toggle {
		display: inline-flex; align-items: center; justify-content: center;
		width: 44px; height: 44px; border: 1px solid var(--tc-line); background: var(--tc-surface); border-radius: 2px; cursor: pointer;
	}
	.tc-nav-toggle__close { display: none; }
	.tc-header.is-open .tc-nav-toggle__open { display: none; }
	.tc-header.is-open .tc-nav-toggle__close { display: block; }
	.tc-nav {
		position: fixed; inset: var(--tc-header-h) 0 0 0; z-index: 49;
		flex-direction: column; align-items: stretch; gap: 24px;
		padding: 24px var(--tc-gutter) 40px; background: var(--tc-paper);
		overflow-y: auto; visibility: hidden; opacity: 0;
		transition: opacity .2s ease, visibility 0s linear .2s;
	}
	.admin-bar .tc-nav { top: calc(var(--tc-header-h) + 46px); }
	.tc-header.is-open .tc-nav { visibility: visible; opacity: 1; transition: opacity .2s ease; }
	.tc-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.tc-menu li { border-bottom: 1px solid var(--tc-line); }
	.tc-menu a { display: block; padding: 16px 0; font-family: var(--tc-serif); font-size: 1.5rem; border: 0; }
	.tc-menu .sub-menu { display: block; list-style: none; padding: 0 0 12px 16px; }
	.tc-menu .sub-menu li { border: 0; }
	.tc-menu .sub-menu a { font-family: var(--tc-sans); font-size: 1rem; padding: 8px 0; }
	.tc-header__cta { min-height: 52px; }
}

/* ---------- Hero ---------- */
.tc-hero { padding: clamp(32px, 5vw, 64px) 0 0; }
.tc-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	column-gap: clamp(32px, 5vw, 80px);
	align-items: center;
}
.tc-hero__copy { padding: 24px 0 120px; }
.tc-hero__title {
	font-size: clamp(2.75rem, 6.2vw, 5.25rem);
	font-weight: 400; line-height: 1.02; letter-spacing: -0.022em;
	color: var(--tc-primary);
	max-width: 13ch;
}
.tc-hero__text { margin-top: 28px; max-width: 46ch; font-size: 1.1875rem; color: var(--tc-muted); }
.tc-hero__media { position: relative; align-self: stretch; min-height: 560px; }
.tc-hero__img, .tc-hero__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tc-hero__art,
.tc-art {
	background-color: var(--tc-primary);
	background-image:
		repeating-radial-gradient(circle at 72% 28%, transparent 0 26px, color-mix(in srgb, var(--tc-accent) 30%, transparent) 26px 27px),
		radial-gradient(circle at 72% 28%, color-mix(in srgb, var(--tc-accent) 35%, transparent), transparent 60%);
}
.tc-finder {
	grid-column: 1 / -1;
	position: relative; z-index: 2;
	margin: -96px 12% 0 0;
	background: var(--tc-surface);
	border-top: 3px solid var(--tc-accent);
	padding: 24px 28px 28px;
}
.tc-finder__title { font-family: var(--tc-serif); font-size: 1.375rem; color: var(--tc-primary); margin-bottom: 16px; }
.tc-finder__fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 12px; align-items: end; }
.tc-finder__field { display: flex; flex-direction: column; gap: 6px; font-size: 0.875rem; font-weight: 600; color: var(--tc-muted); }
.tc-finder__field input, .tc-finder__field select,
.tc-field input, .tc-field select, .tc-field textarea,
.tc-filters__input input, .tc-sort select {
	width: 100%; min-height: 48px; padding: 10px 14px;
	border: 1px solid var(--tc-line); border-radius: 2px; background: var(--tc-surface);
	font-size: 1rem; font-weight: 400; color: var(--tc-ink);
}
.tc-finder__field select, .tc-field select, .tc-sort select {
	appearance: none; -webkit-appearance: none; padding-right: 38px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2356625e' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center;
}
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--tc-ink) 35%, transparent); }

@media (max-width: 900px) {
	.tc-hero__grid { grid-template-columns: 1fr; }
	.tc-hero__copy { padding: 8px 0 32px; }
	.tc-hero__media { min-height: 0; aspect-ratio: 4 / 3; }
	.tc-finder { margin: -48px 16px 0; padding: 20px; }
	.tc-finder__fields { grid-template-columns: 1fr 1fr; }
	.tc-finder__fields .tc-btn { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
	.tc-finder { margin: -32px 0 0; }
	.tc-finder__fields { grid-template-columns: 1fr; }
}

/* ---------- Sections ---------- */
.tc-section { padding: var(--tc-section) 0; }
.tc-hero + .tc-section { padding-top: clamp(64px, 8vw, 104px); }
.tc-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.tc-section__title { font-size: clamp(2rem, 3.6vw, 2.875rem); letter-spacing: -0.015em; color: var(--tc-primary); }

/* ---------- Cards ---------- */
.tc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; }
.tc-grid--catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1180px) { .tc-grid--catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; } }
@media (max-width: 900px) { .tc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 20px; } }
@media (max-width: 560px) { .tc-grid, .tc-grid--catalog { grid-template-columns: 1fr; } }

.tc-card { display: flex; flex-direction: column; }
.tc-card__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--tc-line); }
.tc-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tc-card:hover .tc-card__media img { transform: scale(1.03); }
.tc-art { position: relative; width: 100%; height: 100%; display: flex; align-items: flex-end; padding: 20px 22px; }
.tc-art span { font-family: var(--tc-serif); font-size: 3.25rem; line-height: 1; color: color-mix(in srgb, var(--tc-accent) 75%, #fff); letter-spacing: 0.02em; }
.tc-art--1 { background-color: color-mix(in srgb, var(--tc-primary) 80%, #3b5b55); background-position: 0 0; }
.tc-art--1 { background-image: repeating-radial-gradient(circle at 20% 80%, transparent 0 22px, color-mix(in srgb, var(--tc-accent) 28%, transparent) 22px 23px); }
.tc-art--2 { background-color: var(--tc-primary-deep); background-image: repeating-radial-gradient(circle at 85% 85%, transparent 0 30px, color-mix(in srgb, var(--tc-accent) 26%, transparent) 30px 31px); }
.tc-art--3 { background-color: color-mix(in srgb, var(--tc-primary) 70%, #4a3d22); background-image: repeating-radial-gradient(circle at 50% 10%, transparent 0 24px, color-mix(in srgb, var(--tc-accent) 30%, transparent) 24px 25px); }
.tc-card__body { padding-top: 18px; display: flex; flex-direction: column; flex: 1; }
.tc-card__type { font-size: 0.8125rem; font-weight: 600; color: var(--tc-accent-ink); letter-spacing: 0.01em; margin-bottom: 6px; }
.tc-card__title { font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.01em; }
.tc-card__title a { text-decoration: none; }
.tc-card__title a:hover { text-decoration: underline; text-decoration-color: var(--tc-accent); }
.tc-card__text { margin-top: 8px; color: var(--tc-muted); font-size: 0.975rem; }
.tc-card__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: auto; padding-top: 14px; font-size: 0.875rem; font-weight: 500; color: var(--tc-ink); }
.tc-card__facts li { display: inline-flex; align-items: center; gap: 6px; }
.tc-card__facts .tc-icon { width: 17px; height: 17px; color: var(--tc-accent-ink); }

/* ---------- Homepage intro (page content) ---------- */
.tc-intro { background: var(--tc-surface); }
.tc-intro__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(32px, 6vw, 96px); align-items: start; }
.tc-intro__inner > * { grid-column: 2; }
.tc-intro__inner > :first-child { grid-column: 1; grid-row: 1 / span 6; margin: 0; }
.tc-intro__inner > :first-child:is(h2, h3) { font-size: clamp(1.875rem, 3.2vw, 2.625rem); color: var(--tc-primary); }
.tc-intro .tc-prose > p { font-size: 1.1875rem; }
@media (max-width: 800px) {
	.tc-intro__inner { grid-template-columns: 1fr; }
	.tc-intro__inner > *, .tc-intro__inner > :first-child { grid-column: 1; grid-row: auto; }
	.tc-intro__inner > :first-child { margin-bottom: 20px; }
}

/* ---------- Activity types ---------- */
.tc-types__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px clamp(32px, 6vw, 96px); }
.tc-types__grid .tc-muted { margin-top: 16px; max-width: 34ch; }
.tc-types__list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; border-top: 1px solid var(--tc-line); }
.tc-types__list li { border-bottom: 1px solid var(--tc-line); }
.tc-types__list a { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; padding: 20px 0; text-decoration: none; }
.tc-types__name { font-family: var(--tc-serif); font-size: 1.375rem; color: var(--tc-primary); line-height: 1.25; }
.tc-types__count { font-size: 0.8125rem; color: var(--tc-muted); white-space: nowrap; padding-top: 6px; }
.tc-types__desc { grid-column: 1 / -1; margin-top: 4px; font-size: 0.9375rem; color: var(--tc-muted); }
.tc-types__list a:hover .tc-types__name { text-decoration: underline; text-decoration-color: var(--tc-accent); text-decoration-thickness: 1px; }
@media (max-width: 900px) { .tc-types__grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .tc-types__list { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */
.tc-steps { background: var(--tc-surface); }
.tc-steps__list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 48px; counter-reset: none; }
.tc-steps__item { border-top: 1px solid var(--tc-line); padding-top: 24px; }
.tc-steps__num { display: block; font-family: var(--tc-serif); font-size: 3.5rem; line-height: 1; color: var(--tc-accent); margin-bottom: 20px; }
.tc-steps__item h3 { font-size: 1.5rem; color: var(--tc-primary); margin-bottom: 10px; }
.tc-steps__item p { color: var(--tc-muted); max-width: 36ch; }
@media (max-width: 800px) { .tc-steps__list { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- CTA ---------- */
.tc-cta { background: var(--tc-primary); color: var(--tc-on-dark); padding: clamp(56px, 8vw, 96px) 0; }
.tc-cta__inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 32px 64px; align-items: end; }
.tc-cta__title { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 400; letter-spacing: -0.015em; max-width: 18ch; }
.tc-cta__text { margin-top: 16px; color: var(--tc-on-dark-muted); max-width: 52ch; }
.tc-cta__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.tc-cta__line { display: inline-flex; align-items: center; gap: 10px; color: var(--tc-on-dark); text-decoration: none; font-weight: 500; }
.tc-cta__line:hover { text-decoration: underline; }
.tc-cta__line .tc-icon { color: var(--tc-accent); }
@media (max-width: 800px) { .tc-cta__inner { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.tc-footer { background: var(--tc-primary-deep); color: var(--tc-on-dark-muted); padding: 72px 0 0; font-size: 0.9375rem; }
.tc-footer a { color: var(--tc-on-dark); text-decoration: none; }
.tc-footer a:hover { text-decoration: underline; }
.tc-footer__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: 40px; padding-bottom: 56px; }
.tc-brand--footer { color: var(--tc-on-dark); margin: 0 0 14px; display: inline-block; }
.tc-footer__brand p { max-width: 38ch; }
.tc-footer__heading { font-family: var(--tc-sans); font-size: 0.875rem; font-weight: 600; color: var(--tc-on-dark); margin-bottom: 16px; }
.tc-footer__contact ul, .tc-footer__menu { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.tc-footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.tc-footer__contact .tc-icon { color: var(--tc-accent); margin-top: 2px; width: 18px; height: 18px; }
.tc-footer__base { border-top: 1px solid var(--tc-line-dark); padding-top: 20px; padding-bottom: 28px; font-size: 0.8125rem; }
@media (max-width: 800px) { .tc-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Page heads ---------- */
.tc-page-head { padding: clamp(48px, 7vw, 96px) 0 clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--tc-line); }
.tc-page-head__title { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 400; letter-spacing: -0.02em; color: var(--tc-primary); max-width: 20ch; }
.tc-page-head__text { margin-top: 16px; max-width: 58ch; color: var(--tc-muted); font-size: 1.125rem; }
.tc-crumbs { font-size: 0.875rem; margin-bottom: 16px; color: var(--tc-muted); display: flex; gap: 8px; flex-wrap: wrap; }
.tc-crumbs a { color: var(--tc-accent-ink); text-decoration: none; font-weight: 600; }
.tc-crumbs a:hover { text-decoration: underline; }
.tc-crumbs--light, .tc-crumbs--light a { color: var(--tc-on-dark-muted); }
.tc-crumbs--light a { color: var(--tc-accent); }
.tc-page-body { padding-top: 48px; padding-bottom: var(--tc-section); }
.tc-page-body .tc-prose { max-width: 720px; }
.tc-page-img { margin-top: 40px; }
.tc-page-img img { width: 100%; }

/* ---------- Catalogue ---------- */
.tc-catalog { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 48px; padding-top: 40px; padding-bottom: var(--tc-section); align-items: start; }
.tc-filters { position: sticky; top: calc(var(--tc-header-h) + 24px); }
.tc-filters__summary { list-style: none; font-family: var(--tc-serif); font-size: 1.375rem; color: var(--tc-primary); padding-bottom: 12px; border-bottom: 1px solid var(--tc-line); cursor: default; }
.tc-filters__summary::-webkit-details-marker { display: none; }
.tc-filters__form fieldset { border: 0; margin: 0; padding: 20px 0; border-bottom: 1px solid var(--tc-line); }
.tc-filters__form legend { float: left; width: 100%; font-size: 0.875rem; font-weight: 600; padding: 0; margin-bottom: 8px; }
.tc-filters__form legend + * { clear: both; }
.tc-choice { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 0.9375rem; cursor: pointer; }
.tc-choice input { width: 18px; height: 18px; accent-color: var(--tc-primary); margin: 0; flex: none; }
.tc-filters__actions { display: flex; align-items: center; gap: 16px; padding-top: 20px; }
.tc-results__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.tc-results__count { font-weight: 600; }
.tc-sort { display: flex; align-items: center; gap: 10px; font-size: 0.9375rem; color: var(--tc-muted); }
.tc-sort select { width: auto; min-height: 42px; }
@media (max-width: 900px) {
	.tc-catalog { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
	.tc-filters { position: static; }
	.tc-filters__panel { background: var(--tc-surface); border: 1px solid var(--tc-line); padding: 0 16px; }
	.tc-filters__summary { cursor: pointer; border: 0; padding: 14px 0; display: flex; justify-content: space-between; align-items: center; font-family: var(--tc-sans); font-size: 1rem; font-weight: 600; }
	.tc-filters__summary::after { content: "+"; font-size: 1.375rem; font-weight: 400; color: var(--tc-muted); }
	.tc-filters__panel[open] .tc-filters__summary::after { content: "−"; }
	.tc-filters__form fieldset:last-of-type { border-bottom: 0; }
	.tc-filters__actions { padding-bottom: 16px; }
}

.tc-empty { background: var(--tc-surface); border: 1px solid var(--tc-line); padding: clamp(28px, 4vw, 48px); }
.tc-empty h2 { font-size: 1.75rem; color: var(--tc-primary); }
.tc-empty p { margin-top: 10px; color: var(--tc-muted); max-width: 56ch; }

.pagination { margin-top: 56px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px; border: 1px solid var(--tc-line); text-decoration: none; font-weight: 600; font-size: 0.9375rem; background: var(--tc-surface); }
.pagination .page-numbers.current { background: var(--tc-primary); border-color: var(--tc-primary); color: #fff; }
.pagination a.page-numbers:hover { border-color: var(--tc-ink); }

/* ---------- Program page ---------- */
.tc-p__head { background: var(--tc-primary); color: var(--tc-on-dark); padding: clamp(40px, 6vw, 80px) 0; }
.tc-p__head-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px clamp(32px, 5vw, 72px); align-items: center; }
.tc-p__logo img { max-height: 72px; width: auto; margin-bottom: 20px; }
.tc-p__title { font-size: clamp(2.75rem, 6vw, 5rem); font-weight: 400; line-height: 1.02; letter-spacing: -0.022em; }
.tc-p__tagline { margin-top: 16px; font-family: var(--tc-serif); font-style: italic; font-size: clamp(1.25rem, 2.2vw, 1.625rem); color: var(--tc-on-dark-muted); max-width: 32ch; line-height: 1.35; }
.tc-p__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 36px 0 0; max-width: 560px; }
.tc-p__facts > div { padding: 14px 0; border-top: 1px solid var(--tc-line-dark); }
.tc-p__facts dt { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; color: var(--tc-on-dark-muted); }
.tc-p__facts dt .tc-icon { width: 16px; height: 16px; color: var(--tc-accent); }
.tc-p__facts dd { margin: 4px 0 0; font-size: 1.0625rem; font-weight: 600; }
.tc-p__media { aspect-ratio: 4 / 5; position: relative; overflow: hidden; }
.tc-p__media .tc-p__img, .tc-p__media .tc-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tc-p__media .tc-art { background-color: var(--tc-primary-deep); }
.tc-p__media .tc-art span { font-size: 6rem; }
@media (max-width: 900px) {
	.tc-p__head-grid { grid-template-columns: 1fr; }
	.tc-p__media { aspect-ratio: 16 / 10; order: -1; }
}

.tc-p__toc { position: sticky; top: var(--tc-header-h); z-index: 20; background: var(--tc-surface); border-bottom: 1px solid var(--tc-line); }
.admin-bar .tc-p__toc { top: calc(var(--tc-header-h) + 32px); }
.tc-p__toc ul { list-style: none; display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; }
.tc-p__toc ul::-webkit-scrollbar { display: none; }
.tc-p__toc a { display: block; padding: 16px 0; white-space: nowrap; font-size: 0.9375rem; font-weight: 500; text-decoration: none; color: var(--tc-muted); border-bottom: 2px solid transparent; }
.tc-p__toc a:hover { color: var(--tc-ink); border-bottom-color: var(--tc-accent); }
@media (max-width: 782px) { .admin-bar .tc-p__toc { top: var(--tc-header-h); } }

.tc-p__body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(40px, 6vw, 96px); padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 80px); align-items: start; }
.tc-p__main { min-width: 0; max-width: 760px; }
.tc-p__section + .tc-p__section { margin-top: clamp(56px, 7vw, 88px); }
.tc-p__h2 { font-size: clamp(1.875rem, 3vw, 2.375rem); color: var(--tc-primary); letter-spacing: -0.012em; margin-bottom: 24px; }
.tc-p__section > .tc-muted { margin: -12px 0 24px; }
.tc-p__aside { position: sticky; top: calc(var(--tc-header-h) + 88px); }
@media (max-width: 1000px) {
	.tc-p__body { grid-template-columns: 1fr; }
	.tc-p__aside { position: static; order: -1; }
}

.tc-checks { list-style: none; display: grid; gap: 12px; }
.tc-p__section > .tc-checks { grid-template-columns: 1fr 1fr; gap: 14px 32px; }
@media (max-width: 600px) { .tc-p__section > .tc-checks { grid-template-columns: 1fr; } }
.tc-checks li { display: flex; gap: 12px; align-items: flex-start; }
.tc-checks .tc-icon { width: 20px; height: 20px; color: var(--tc-accent-ink); margin-top: 3px; }
.tc-checks--out .tc-icon { color: var(--tc-muted); }
.tc-checks--out { color: var(--tc-muted); }

.tc-prose > * + * { margin-top: 1.1em; }
.tc-prose h2 { font-size: 2rem; color: var(--tc-primary); margin-top: 1.6em; }
.tc-prose h3 { font-size: 1.5rem; color: var(--tc-primary); margin-top: 1.4em; }
.tc-prose ul, .tc-prose ol { padding-left: 1.3em; }
.tc-prose li + li { margin-top: 0.4em; }
.tc-prose a { color: var(--tc-accent-ink); }
.tc-prose blockquote { margin: 1.6em 0; padding-left: 24px; border-left: 2px solid var(--tc-accent); font-family: var(--tc-serif); font-size: 1.375rem; line-height: 1.45; }
.tc-prose img { height: auto; }
.tc-prose .alignwide { margin-left: 0; margin-right: 0; }
.tc-prose .wp-block-image figcaption { font-size: 0.875rem; color: var(--tc-muted); margin-top: 8px; }

.tc-learning { display: grid; gap: 0; border-top: 1px solid var(--tc-line); }
.tc-learning__item { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 8px 32px; padding: 22px 0; border-bottom: 1px solid var(--tc-line); }
.tc-learning__item h3 { font-size: 1.3125rem; color: var(--tc-primary); }
.tc-learning__item p { color: var(--tc-muted); }
@media (max-width: 640px) { .tc-learning__item { grid-template-columns: 1fr; } }

/* Run-of-show route — the signature element. */
.tc-route { list-style: none; position: relative; }
.tc-route::before {
	content: ""; position: absolute; top: 14px; bottom: 14px; left: 71px; width: 1px;
	background: linear-gradient(var(--tc-accent), var(--tc-accent)) no-repeat, var(--tc-line);
}
.tc-route__stop { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 40px; padding-bottom: 32px; }
.tc-route__stop:last-child { padding-bottom: 0; }
.tc-route__stop::before {
	content: ""; position: absolute; left: 66px; top: 9px; width: 11px; height: 11px; border-radius: 50%;
	background: var(--tc-paper); border: 2px solid var(--tc-accent);
}
.tc-route__mark { font-family: var(--tc-serif); font-size: 1.25rem; line-height: 1.4; color: var(--tc-primary); text-align: right; font-variant-numeric: tabular-nums lining-nums; }
.tc-route__body h3 { font-size: 1.375rem; color: var(--tc-primary); line-height: 1.3; }
.tc-route__body p { margin-top: 6px; color: var(--tc-muted); }
.tc-route__body .tc-route__time { font-size: 0.8125rem; font-weight: 600; color: var(--tc-accent-ink); margin-top: 8px; }
.tc-route__stop--end::before { background: var(--tc-accent); }
.tc-route__stop--end .tc-route__body p { margin-top: 0; font-weight: 600; color: var(--tc-ink); line-height: 1.75; }
@media (max-width: 520px) {
	.tc-route::before { left: 55px; }
	.tc-route__stop { grid-template-columns: 44px minmax(0, 1fr); column-gap: 30px; }
	.tc-route__stop::before { left: 50px; }
	.tc-route__mark { font-size: 1.0625rem; }
}

.tc-scope { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.tc-scope__col { background: var(--tc-surface); border: 1px solid var(--tc-line); padding: 24px 26px; }
.tc-scope__col h3 { font-family: var(--tc-sans); font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.tc-scope__col--out { background: transparent; }
.tc-scope__col .tc-small { margin-top: 16px; }
@media (max-width: 640px) { .tc-scope { grid-template-columns: 1fr; } }

.tc-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tc-gallery a { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.tc-gallery img { width: 100%; height: 100%; object-fit: cover; }
.tc-gallery a:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 560px) { .tc-gallery { grid-template-columns: 1fr 1fr; } }

.tc-faq { border-top: 1px solid var(--tc-line); }
.tc-faq__item { border-bottom: 1px solid var(--tc-line); }
.tc-faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 20px 0; font-weight: 600; font-size: 1.0625rem; }
.tc-faq__item summary::-webkit-details-marker { display: none; }
.tc-faq__item summary::after { content: "+"; font-family: var(--tc-serif); font-size: 1.75rem; line-height: 0.9; color: var(--tc-accent-ink); flex: none; transition: transform .2s ease; }
.tc-faq__item[open] summary::after { transform: rotate(45deg); }
.tc-faq__item p { padding: 0 48px 22px 0; color: var(--tc-muted); }

.tc-plan { background: var(--tc-surface); border: 1px solid var(--tc-line); border-top: 3px solid var(--tc-accent); padding: 24px; }
.tc-plan__title { font-family: var(--tc-serif); font-size: 1.375rem; line-height: 1.25; color: var(--tc-primary); margin-bottom: 16px; }
.tc-plan__facts { list-style: none; display: grid; gap: 10px; margin-bottom: 22px; font-size: 0.9375rem; }
.tc-plan__facts li { display: flex; gap: 10px; align-items: center; }
.tc-plan__facts .tc-icon { width: 18px; height: 18px; color: var(--tc-accent-ink); }
.tc-plan__line { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 14px; font-weight: 600; text-decoration: none; font-size: 0.9375rem; }
.tc-plan__line:hover { text-decoration: underline; }
.tc-plan__note { margin-top: 12px; font-size: 0.8125rem; color: var(--tc-muted); text-align: center; }
@media (max-width: 1000px) {
	.tc-plan { display: none; }
}

.tc-related { border-top: 1px solid var(--tc-line); }

/* ---------- Quote ---------- */
.tc-quote { background: var(--tc-primary-soft); padding: var(--tc-section) 0; }
.tc-quote__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 40px clamp(32px, 6vw, 96px); align-items: start; }
.tc-quote__intro p { margin-top: 16px; color: var(--tc-muted); max-width: 40ch; }
.tc-quote__lines { list-style: none; margin-top: 28px; display: grid; gap: 12px; }
.tc-quote__lines li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.tc-quote__lines .tc-icon { color: var(--tc-accent-ink); }
.tc-quote__lines a { text-decoration: none; }
.tc-quote__lines a:hover { text-decoration: underline; }
.tc-quote__form { background: var(--tc-surface); padding: clamp(24px, 4vw, 40px); }
@media (max-width: 900px) { .tc-quote__grid { grid-template-columns: 1fr; } }

.tc-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.tc-field { display: flex; flex-direction: column; gap: 6px; }
.tc-field--full { grid-column: 1 / -1; }
.tc-field label { font-size: 0.875rem; font-weight: 600; }
.tc-optional { font-weight: 400; color: var(--tc-muted); }
.tc-field textarea { min-height: 132px; resize: vertical; }
.tc-field input:focus, .tc-field select:focus, .tc-field textarea:focus,
.tc-finder__field input:focus, .tc-finder__field select:focus, .tc-filters__input input:focus { border-color: var(--tc-primary); outline: 2px solid color-mix(in srgb, var(--tc-accent) 60%, transparent); outline-offset: 0; }
.tc-form__actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 6px; }
.tc-form__note { font-size: 0.875rem; color: var(--tc-muted); }
.tc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 560px) { .tc-form { grid-template-columns: 1fr; } }

.tc-notice { padding: 20px 22px; border-left: 3px solid var(--tc-accent); background: var(--tc-surface); margin-bottom: 20px; }
.tc-notice--ok { border-left-color: var(--tc-primary); }
.tc-notice--error { border-left-color: #a23a2b; background: #fbefec; }
.tc-notice__title { font-family: var(--tc-serif); font-size: 1.5rem; color: var(--tc-primary); margin-bottom: 6px; }
.tc-quote-embed { margin-top: 32px; background: var(--tc-surface); border: 1px solid var(--tc-line); padding: clamp(20px, 4vw, 36px); }
.tc-page-body .tc-prose .tc-quote-embed { max-width: none; }

/* ---------- Blog list ---------- */
.tc-posts { max-width: 820px; }
.tc-post { padding: 28px 0; border-bottom: 1px solid var(--tc-line); }
.tc-post__title { font-size: 1.75rem; margin-bottom: 8px; }
.tc-post__title a { text-decoration: none; }
.tc-post__title a:hover { text-decoration: underline; }
.search-form { display: flex; gap: 8px; margin-top: 20px; }
.search-form .search-field { min-height: 48px; padding: 10px 14px; border: 1px solid var(--tc-line); }
.search-form .search-submit { min-height: 48px; padding: 0 18px; background: var(--tc-primary); color: #fff; border: 0; cursor: pointer; }

/* ---------- v1.1: TeamPrograms integration ---------- */
.tc-page-body--wide { padding-top: 0; }
.tc-page-body--wide .tc-prose { max-width: none; }
.tc-page-body--wide .tc-prose > * + * { margin-top: 0; }
.tc-page-body--wide .tc-catalog { padding-top: 40px; }
.tc-anchor { position: relative; top: -120px; display: block; }

.tc-card__media { position: relative; }
.tc-card__tags { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.tc-tag { background: rgba(255, 255, 255, 0.94); color: var(--tc-ink); font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: 2px; }
.tc-tag--new { background: var(--tc-accent); color: var(--tc-primary-deep); }

.tc-filters__summary { display: flex; align-items: center; gap: 10px; }
.tc-filters__badge { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--tc-primary); color: #fff; font-family: var(--tc-sans); font-size: 0.75rem; font-weight: 700; }
@media (max-width: 900px) { .tc-filters__summary::after { margin-left: auto; } }
.tc-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: -12px 0 24px; }
.tc-chips a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 12px; background: var(--tc-surface); border: 1px solid var(--tc-line); font-size: 0.875rem; font-weight: 500; text-decoration: none; }
.tc-chips a:hover { border-color: var(--tc-ink); }
.tc-chips .tc-icon { width: 14px; height: 14px; color: var(--tc-muted); }

.tc-p__media { overflow: visible; }
.tc-p__media > .tc-p__img { overflow: hidden; }
.tc-p__logo {
	position: absolute; left: -28px; bottom: -28px; z-index: 2;
	width: min(46%, 220px); padding: 16px 18px; background: var(--tc-surface);
	box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.55);
}
.tc-p__logo img { width: 100%; height: auto; max-height: 120px; object-fit: contain; }
@media (max-width: 900px) { .tc-p__logo { left: 16px; bottom: -24px; width: min(40%, 170px); padding: 10px 12px; } .tc-p__media.has-logo { margin-bottom: 28px; } }

.tc-quotes { display: grid; gap: 24px; }
.tc-quotes--two { grid-template-columns: 1fr 1fr; }
@media (max-width: 700px) { .tc-quotes--two { grid-template-columns: 1fr; } }
.tc-quotes__item { margin: 0; padding: 28px 28px 24px; background: var(--tc-primary-soft); border-left: 3px solid var(--tc-accent); }
.tc-quotes__item blockquote { margin: 0; font-size: 1.1875rem; line-height: 1.55; color: var(--tc-primary); }
.tc-quotes__item figcaption { margin-top: 14px; font-size: 0.875rem; font-weight: 600; color: var(--tc-muted); }

.tc-route__body p + p { margin-top: 0.5em; }
.tc-route--timed .tc-route__mark { font-variant-numeric: tabular-nums; }

.tc-gallery a { cursor: zoom-in; }
.tc-gallery--1 { grid-template-columns: 1fr; }
.tc-gallery--1 a:first-child, .tc-gallery--2 a:first-child { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; }
.tc-gallery--2 { grid-template-columns: 1fr 1fr; }
.tc-lightbox { border: 0; padding: 8px; overflow: visible; background: transparent; max-width: 96vw; max-height: 96vh; }
.tc-lightbox::backdrop { background: rgba(8, 18, 16, 0.9); }
.tc-lightbox img { max-width: 92vw; max-height: 82vh; width: auto; height: auto; margin: 0 auto; }
.tc-lightbox__bar { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 12px; color: #fff; font-size: 0.875rem; }
.tc-lightbox__bar button { width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; font-size: 1.25rem; cursor: pointer; border-radius: 2px; }
.tc-lightbox__bar button:hover { border-color: #fff; }

/* ---------- Sans headings (Be Vietnam Pro everywhere) ---------- */
.tc-head-sans h1, .tc-head-sans h2, .tc-head-sans h3, .tc-head-sans h4 { font-weight: 600; letter-spacing: -0.02em; }
.tc-head-sans .tc-hero__title,
.tc-head-sans .tc-p__title,
.tc-head-sans .tc-page-head__title,
.tc-head-sans .tc-cta__title { font-weight: 600; letter-spacing: -0.035em; line-height: 1.06; }
.tc-head-sans .tc-hero__title { font-size: clamp(2.5rem, 5.4vw, 4.5rem); }
.tc-head-sans .tc-p__title { font-size: clamp(2.5rem, 5.2vw, 4.25rem); }
.tc-head-sans .tc-section__title,
.tc-head-sans .tc-p__h2 { letter-spacing: -0.03em; }
.tc-head-sans .tc-p__tagline { font-style: normal; font-weight: 400; }
.tc-head-sans .tc-brand { font-weight: 700; letter-spacing: -0.03em; }
.tc-head-sans .tc-art span { font-weight: 600; letter-spacing: -0.02em; }
.tc-head-sans .tc-route__mark { font-weight: 500; font-size: 1.0625rem; }
.tc-head-sans .tc-steps__num { font-weight: 300; }
.tc-head-sans .tc-menu a { font-weight: 500; }
.tc-head-sans .tc-types__name, .tc-head-sans .tc-card__title { font-weight: 600; letter-spacing: -0.015em; }
.tc-head-sans .tc-card__title { font-size: 1.3125rem; }

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