/*
Theme Name: Triangle Self-Defense
Theme URI: https://www.triangleself-defense.com/
Author: Triangle Self-Defense & Tactical Training
Description: Custom block theme (Full Site Editing) for Triangle Self-Defense & Tactical Training, Durham NC. Replaces the Bateaux theme: renders old Blueprint page-builder content without the builder, built-in section patterns, no jQuery, self-hosted fonts, WooCommerce and TSD Events ready. Works with the TSD Essentials and TSD Events plugins.
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0.43
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tsd
Tags: block-patterns, full-site-editing, block-styles, wide-blocks, e-commerce, custom-colors, custom-logo, editor-style
*/

/* ---------- Tokens ---------- */
:root {
	--tt-gold: var(--wp--preset--color--gold, #ffb81c);
	--tt-red: var(--wp--preset--color--red, #dd0000);
	--tt-black: var(--wp--preset--color--black, #0b0b0b);
	--tt-ink: var(--wp--preset--color--ink, #191818);
	--tt-line: var(--wp--preset--color--line, #e4e4e4);
	--tt-radius: 6px;
	--tt-head: var(--wp--preset--font-family--heading, Montserrat, Arial, sans-serif);
	--tt-header-h: 72px;
	--tt-wide: 1240px;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--tt-header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, video, iframe { max-width: 100%; }
img { height: auto; }
:where(.wp-site-blocks) :focus-visible { outline: 3px solid var(--tt-gold); outline-offset: 3px; }
::selection { background: var(--tt-gold); color: var(--tt-black); }
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
.screen-reader-text:focus { background: #fff; color: #000; clip: auto; clip-path: none; height: auto; left: 8px; top: 8px; padding: 12px 18px; width: auto; z-index: 100000; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-site-blocks { padding-left: 0; padding-right: 0; }
.tt-gold { color: var(--tt-gold); }
.wp-block-post-content a:where(:not(.wp-element-button):not(.tt-btn)) { text-underline-offset: 2px; }
.tt-main { min-height: 40vh; }

/* Never gold or red links on dark sections */
.has-black-background-color a:where(:not(.wp-element-button):not(.tt-btn)),
.has-charcoal-background-color a:where(:not(.wp-element-button):not(.tt-btn)),
.tt-section--dark a:where(:not(.wp-element-button):not(.tt-btn)) { color: var(--tt-gold); }
.has-gold-background-color a:where(:not(.wp-element-button):not(.tt-btn)) { color: inherit; }

/* ---------- Buttons ---------- */
.tt-btn, .wp-element-button, .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em; cursor: pointer;
	border: 2px solid transparent; border-radius: var(--tt-radius); text-decoration: none;
	font-family: var(--tt-head); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 1.15;
	transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.tt-btn { padding: .9rem 1.5rem; font-size: .82rem; }
.tt-btn--primary, .tt-btn--gold { background: var(--tt-gold); color: var(--tt-black); border-color: var(--tt-gold); }
.tt-btn--primary:hover, .tt-btn--gold:hover { background: var(--tt-red); border-color: var(--tt-red); color: #fff; }
.tt-btn--border, .tt-btn--ghost { background: transparent; color: currentColor; border-color: currentColor; }
.tt-btn--border:hover, .tt-btn--ghost:hover { background: var(--tt-gold); border-color: var(--tt-gold); color: var(--tt-black); }
.tt-btn--sm { padding: .65rem 1.05rem; font-size: .72rem; }
.tt-btn--lg { padding: 1.1rem 2rem; font-size: .92rem; }
.tt-btn--block { display: flex; width: 100%; }
.is-style-tt-ghost .wp-block-button__link { background: transparent; color: currentColor; border: 2px solid currentColor; }
.is-style-tt-ghost .wp-block-button__link:hover { background: var(--tt-gold); border-color: var(--tt-gold); color: var(--tt-black); }
.is-style-tt-ghost-dark .wp-block-button__link { background: transparent; color: var(--tt-black); border: 2px solid var(--tt-black); }
.is-style-tt-ghost-dark .wp-block-button__link:hover { background: var(--tt-black); color: var(--tt-gold); }
.wp-block-button__link:hover { transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .wp-block-button__link:hover { transform: none; } }

/* ---------- Kicker / card styles ---------- */
.is-style-tt-kicker, .tt-kicker { font-family: var(--tt-head); font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--wp--preset--color--gold-deep, #8a5d00); margin: 0 0 .6rem; }
.has-black-background-color .is-style-tt-kicker, .tt-section--dark .is-style-tt-kicker, .tt-hero-cover .is-style-tt-kicker, .tt-band--dark .is-style-tt-kicker, .tt-section--charcoal .is-style-tt-kicker { color: var(--tt-gold); }
.is-style-tt-card { background: #fff; border: 1px solid var(--tt-line); border-radius: 10px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.06); color: var(--tt-ink); }
.is-style-tt-card a:where(:not(.wp-element-button)) { color: inherit; }
.tt-tile { height: 100%; transition: transform .2s, box-shadow .2s; }
.tt-tile:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(0,0,0,.06), 0 14px 32px rgba(0,0,0,.12); }
.tt-tile h3 { margin: 0; font-size: 1.25rem; }
.tt-tile h3 a { text-decoration: none; }
.tt-tile .tt-more { margin-top: auto; font-family: var(--tt-head); font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.tt-tile .tt-more a { color: var(--wp--preset--color--red-deep, #b30000); text-decoration: none; }
.tt-tile .wp-block-image, .tt-tile .wp-block-image img { margin: 0; width: 100%; display: block; }
.tt-tile > .wp-block-group { flex: 1; width: 100%; }
@media (prefers-reduced-motion: reduce) { .tt-tile, .tt-tile:hover { transition: none; transform: none; } }
.tt-grid4 > .tt-tile { min-width: 0; }

/* ---------- Header ---------- */
.tt-site-header { position: sticky; top: 0; z-index: 90; margin: 0; }
.admin-bar .tt-site-header { top: var(--wp-admin--admin-bar--height, 0px); }
.tt-header { background: var(--tt-black); color: #fff; border-bottom: 1px solid rgba(255,255,255,.1); }
.tt-header__in { display: flex; align-items: center; gap: 1rem; max-width: 1400px; margin: 0 auto; padding: 0 clamp(1rem, 2vw, 1.75rem); min-height: var(--tt-header-h); }
.tt-brand { display: flex; align-items: center; color: #fff; text-decoration: none; flex: none; }
.tt-brand img { width: 56px; height: 56px; display: block; }
.tt-header__act { display: flex; align-items: center; gap: .35rem; margin-left: auto; flex: none; }
.tt-phone, .tt-cartlink { color: #fff; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; font-family: var(--tt-head); font-weight: 700; font-size: .78rem; letter-spacing: .04em; position: relative; padding: .55rem; min-width: 44px; min-height: 44px; box-sizing: border-box; }
.tt-phone:hover, .tt-cartlink:hover { color: var(--tt-gold); }
.tt-phone__n { display: none; white-space: nowrap; }
.tt-cartcount { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; border-radius: 9px; background: var(--tt-gold); color: var(--tt-black); font-size: .68rem; line-height: 18px; text-align: center; padding: 0 4px; }
.tt-header__cta { display: none; padding: .75rem 1.1rem; font-size: .72rem; white-space: nowrap; flex: none; margin-left: .35rem; }
@media (min-width: 640px) { .tt-header__cta { display: inline-flex; } }
@media (min-width: 1360px) { .tt-phone__n { display: inline; } }

.tt-burger { width: 44px; height: 44px; border: 0; background: transparent; color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--tt-radius); }
.tt-burger__bars, .tt-burger__bars::before, .tt-burger__bars::after { display: block; width: 24px; height: 2px; background: currentColor; border-radius: 2px; content: ""; transition: transform .2s, opacity .2s; }
.tt-burger__bars { position: relative; }
.tt-burger__bars::before { position: absolute; top: -7px; }
.tt-burger__bars::after { position: absolute; top: 7px; }
.tt-burger[aria-expanded="true"] .tt-burger__bars { background: transparent; }
.tt-burger[aria-expanded="true"] .tt-burger__bars::before { transform: translateY(7px) rotate(45deg); }
.tt-burger[aria-expanded="true"] .tt-burger__bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer (default, below 1024px) */
.tt-nav { position: fixed; inset: var(--tt-header-actual, var(--tt-header-h)) 0 0 0; background: var(--tt-black); overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 1rem clamp(1rem, 4vw, 2rem) max(1.5rem, env(safe-area-inset-bottom, 0px)); transform: translateX(100%); visibility: hidden; transition: transform .25s, visibility 0s .25s; z-index: 89; }
.admin-bar .tt-nav { top: calc(var(--tt-header-actual, var(--tt-header-h)) + var(--wp-admin--admin-bar--height, 0px)); }
/* 1.0.25: JS sets --tt-nav-top (the header's real bottom edge) when the drawer opens; it wins over both rules above. */
.tt-nav.is-open, .admin-bar .tt-nav.is-open { top: var(--tt-nav-top, calc(var(--tt-header-actual, var(--tt-header-h)) + var(--wp-admin--admin-bar--height, 0px))); }
.admin-bar .tt-nav:not(.is-open) { top: calc(var(--tt-header-actual, var(--tt-header-h)) + var(--wp-admin--admin-bar--height, 0px)); }
.tt-nav__close { display: flex; align-items: center; gap: .5rem; margin: 0 0 .25rem auto; min-height: 44px; padding: .5rem .85rem; background: transparent; border: 2px solid rgba(255,255,255,.35); border-radius: var(--tt-radius); color: #fff; font-family: var(--tt-head); font-weight: 700; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.tt-nav__close:hover, .tt-nav__close:focus-visible { border-color: var(--tt-gold); color: var(--tt-gold); }
/* Phones: the WordPress admin bar scrolls away (it is not fixed under 600px), so the sticky header must not keep a gap for it. */
@media (max-width: 600px) { .admin-bar .tt-site-header { top: 0; } }
.tt-nav.is-open { transform: none; visibility: visible; transition: transform .25s; }
@media (prefers-reduced-motion: reduce) { .tt-nav { transition: none; } }
.tt-menu, .tt-sub { list-style: none; margin: 0; padding: 0; }
.tt-menu > .tt-mi { border-bottom: 1px solid rgba(255,255,255,.12); position: relative; }
.tt-mi { margin: 0; }
.tt-mi > a, .tt-mi__btn, .tt-mi__label { color: #fff; font-family: var(--tt-head); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .86rem; text-decoration: none; }
.tt-mi__link { display: block; padding: .95rem 3rem .95rem 0; }
.tt-mi__link:hover, .tt-mi__btn:hover { color: var(--tt-gold); }
.tt-mi__btn { display: flex; width: 100%; align-items: center; justify-content: space-between; background: none; border: 0; cursor: pointer; padding: .95rem 0; text-align: left; }
.tt-mi__tog { position: absolute; right: 0; top: .35rem; width: 44px; height: 44px; background: none; border: 0; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.tt-caret { transition: transform .15s; flex: none; }
[aria-expanded="true"] > .tt-caret, [aria-expanded="true"] .tt-caret { transform: rotate(180deg); }
.tt-panel { display: none; padding: 0 0 1rem .75rem; }
.tt-mi__btn[aria-expanded="true"] + .tt-panel, .tt-mi__tog[aria-expanded="true"] + .tt-panel { display: block; }
.tt-panel .tt-mi > a, .tt-panel .tt-mi__btn, .tt-panel .tt-mi__label { font-size: .8rem; letter-spacing: .04em; text-transform: none; font-weight: 600; }
.tt-panel .tt-mi__link { padding: .55rem 2.6rem .55rem 0; }
.tt-panel .tt-mi__btn { padding: .55rem 0; }
.tt-panel .tt-panel { padding-left: .9rem; border-left: 2px solid var(--tt-gold); margin-left: .2rem; }
.tt-mi__label { display: block; padding: .55rem 0; color: var(--tt-gold); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.tt-nav .tt-sub .tt-sub { padding-left: .9rem; }
.tt-mi--col { border: 0 !important; }

/* Desktop nav (1024px and up): everything fits at 1024 with the wordmark text removed (it stays as screen-reader text) */
@media (min-width: 1024px) {
	.tt-burger, .tt-nav__close { display: none; }
	.tt-nav { position: static; inset: auto; background: transparent; transform: none; visibility: visible; overflow: visible; padding: 0; flex: 1 1 auto; min-width: 0; margin-left: .25rem; transition: none; }
	.tt-menu { display: flex; align-items: center; justify-content: center; gap: 0; flex-wrap: nowrap; }
	.tt-menu > .tt-mi { border: 0; display: flex; align-items: center; position: relative; }
	.tt-menu > .tt-mi > a, .tt-menu > .tt-mi > .tt-mi__btn { padding: 1.7rem .6rem; font-size: .7rem; letter-spacing: .07em; width: auto; white-space: nowrap; gap: .3rem; }
	.tt-menu > .tt-mi > .tt-mi__link { padding-right: .15rem; }
	.tt-menu > .tt-mi > .tt-mi__tog { position: static; width: 24px; height: 24px; margin-left: -.35rem; margin-right: .1rem; }
	.tt-menu > .tt-mi.is-current > a, .tt-menu > .tt-mi.is-current > .tt-mi__btn { box-shadow: inset 0 -3px 0 var(--tt-gold); }

	/* Dropdown panel: opens under its item, never wider than the viewport (tsd.js nudges it back inside if needed) */
	.tt-menu > .tt-mi > .tt-panel { position: absolute; left: 0; top: 100%; width: max-content; min-width: 250px; max-width: min(calc(100vw - 32px), 780px); max-height: calc(100vh - var(--tt-header-actual, var(--tt-header-h)) - 16px); overflow-x: hidden; overflow-y: auto; box-sizing: border-box; background: #121212; border-top: 3px solid var(--tt-gold); border-radius: 0 0 12px 12px; box-shadow: 0 22px 44px rgba(0,0,0,.5); padding: 1rem; z-index: 91; }
	.tt-menu > .tt-mi:nth-last-child(-n+2) > .tt-panel { left: auto; right: 0; }
	.tt-menu > .tt-mi:hover > .tt-panel, .tt-menu > .tt-mi:focus-within > .tt-panel, .tt-menu > .tt-mi.is-open > .tt-panel { display: block; }
	.tt-menu > .tt-mi > .tt-panel > .tt-sub { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; align-items: flex-start; }
	.tt-menu > .tt-mi > .tt-panel > .tt-sub > .tt-mi { flex: 0 0 220px; width: 220px; min-width: 0; max-width: 220px; text-align: left; }
	.tt-panel .tt-sub--leaves { display: block; }
	.tt-panel .tt-mi--col { padding: 0; }

	/* Links inside a panel: roomy, with a clear hover state */
	.tt-panel .tt-mi > a, .tt-panel .tt-mi > .tt-mi__btn, .tt-panel .tt-mi > .tt-mi__label { font-family: var(--tt-head); text-transform: none; letter-spacing: .01em; font-size: .86rem; font-weight: 600; line-height: 1.3; }
	.tt-panel .tt-mi__link { display: block; padding: .55rem .75rem; border-radius: 8px; color: #f2f2f2; }
	.tt-panel .tt-mi__link:hover, .tt-panel .tt-mi__link:focus-visible { background: rgba(255,184,28,.14); color: var(--tt-gold); }
	.tt-panel .tt-mi__tog, .tt-panel .tt-mi__btn .tt-caret { display: none; }
	/* Group headings (items that have their own sub-list) */
	.tt-panel .tt-mi.has-children > .tt-mi__btn, .tt-panel .tt-mi.has-children > .tt-mi__label { pointer-events: none; display: block; width: auto; padding: .45rem .75rem .35rem; color: var(--tt-gold); font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
	.tt-panel .tt-mi.has-children > .tt-mi__link { color: var(--tt-gold); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; padding-bottom: .35rem; }
	.tt-panel .tt-panel { display: block; border: 0; margin: 0; padding: 0 0 .5rem; }
	.tt-panel .tt-panel .tt-sub { padding: 0; }
	.tt-panel .tt-panel .tt-mi > a { font-weight: 500; font-size: .84rem; }
	.tt-panel .tt-panel .tt-panel .tt-mi > a { padding-left: 1.4rem; font-size: .8rem; opacity: .9; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
	.tt-header__in { gap: .5rem; }
	.tt-menu > .tt-mi > a, .tt-menu > .tt-mi > .tt-mi__btn { padding-inline: .45rem; letter-spacing: .05em; }
	.tt-header__cta { padding-inline: .9rem; }
}

/* ---------- Mobile sticky CTA ---------- */
.tt-sticky { position: fixed; z-index: 80; left: 0; right: 0; bottom: 0; display: flex; gap: .6rem; padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom)); background: rgba(11,11,11,.96); border-top: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(6px); }
.tt-sticky__cta { flex: 1; padding: .95rem 1rem; }
.tt-sticky__call { flex: none; width: 52px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid rgba(255,255,255,.35); border-radius: var(--tt-radius); color: #fff; }
@media (min-width: 900px) { .tt-sticky { display: none; } }
@media (max-width: 899.98px) {
	/* Room for the fixed bars goes INSIDE the (black) footer, not on the white body, so no white strip shows under it.
	   --tt-sticky-h is measured by tsd.js; --tsd-tb-h / body.tsd-topbar-on come from the tsd-essentials announcement bar. */
	html body, html body.tsd-topbar-on { padding-bottom: 0; }
	.tt-site-footer .tt-footer { padding-bottom: calc(var(--wp--preset--spacing--40) + var(--tt-sticky-h, 76px) + var(--tsd-tb-h, 0px)) !important; }
	/* tsd-essentials announcement bar (fixed bottom): the sticky CTA sits ABOVE it. */
	body.tsd-topbar-on .tt-sticky { bottom: var(--tsd-tb-h, 0px); }
	/* Closed bar: the small re-open tab sits just above the sticky bar instead of on top of the call button. */
	.tsd-topbar__reopen { bottom: var(--tt-sticky-h, 76px) !important; right: 8px; z-index: 79; }
	/* Bar configured for the TOP: header drops below it and the sticky CTA stays at the bottom. */
	body.tsd-topbar-on:has(.tsd-topbar--top) .tt-site-footer .tt-footer { padding-bottom: calc(var(--wp--preset--spacing--40) + var(--tt-sticky-h, 76px)) !important; }
	body.tsd-topbar-on:has(.tsd-topbar--top) .tt-sticky { bottom: 0; }
	body.tsd-topbar-on:has(.tsd-topbar--top) .tt-site-header { top: var(--tsd-tb-h, 0px); }
	body:has(.tsd-topbar--top) .tsd-topbar__reopen { bottom: auto !important; top: 0; }
}
@media (min-width: 900px) { .tsd-topbar__reopen { z-index: 99998; } }
/* 1.0.25: fixed bars must never sit on top of what the visitor is aiming at. */
/* (a) Anchor jumps, "scroll into view" and keyboard focus keep clear of the fixed bars (announcement bar + mobile Book a class bar). */
html { scroll-padding-bottom: calc(var(--tsd-tb-h, 0px) + 16px); }
@media (max-width: 899.98px) { html { scroll-padding-bottom: calc(var(--tsd-tb-h, 0px) + var(--tt-sticky-h, 76px) + 16px); } }
/* (b) Product pages: the mobile "Book a class" bar would sit on top of the Add to cart form, so it is not shown there (the page has its own buttons). */
.single-product .tt-sticky { display: none; }
@media (max-width: 899.98px) {
	.single-product .tsd-topbar__reopen { bottom: 0 !important; }
	body.single-product.tsd-topbar-on .tt-site-footer .tt-footer { padding-bottom: calc(var(--wp--preset--spacing--40) + var(--tsd-tb-h, 0px)) !important; }
	body.single-product:not(.tsd-topbar-on) .tt-site-footer .tt-footer { padding-bottom: var(--wp--preset--spacing--40) !important; }
}
/* While the mobile drawer is open, hide the sticky CTA and the bottom announcement bar so the last menu items and the close button stay reachable (especially in landscape). */
body.tt-nav-open .tt-sticky,
body.tt-nav-open .tsd-topbar--bottom,
body.tt-nav-open .tsd-topbar__reopen { display: none !important; }

/* ---------- Hero (home) ---------- */
.tt-hero-cover { padding: clamp(2rem, 6vw, 5rem) var(--wp--preset--spacing--30); }
.tt-hero-cover .wp-block-cover__inner-container { width: 100%; max-width: 1240px; }
.tt-hero__h1 { margin: 0 0 .35em; text-transform: uppercase; font-style: italic; letter-spacing: .01em; line-height: 1.02; font-weight: 800; color: #fff; max-width: 15ch; font-size: clamp(2.6rem, 8.4vw, 5.6rem) !important; }
.tt-hero__lead { max-width: 36rem; margin-top: 0; font-size: clamp(1.1rem, 2.2vw, 1.4rem); line-height: 1.45; }
.tt-hero-cover .wp-block-buttons { gap: .8rem; }
.tt-hero-cover .is-style-tt-ghost .wp-block-button__link { color: #fff; }

/* ---------- Trust bar: four short, even items (2x2 on small screens) ---------- */
.tt-trust { font-family: var(--tt-head); line-height: 1.25; }
.tt-trust a { color: inherit !important; text-decoration: none; }
.tt-trust__grid { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: var(--tt-wide); }
.tt-trust__item { margin: 0; display: flex; }
.tt-trust__item > a, .tt-trust__item > .tt-trust__txt { flex: 1; }
.tt-trust__item { gap: .7rem; padding: .85rem .75rem; justify-content: center; border-top: 1px solid rgba(0,0,0,.14); }
.tt-trust__item:nth-child(-n+2) { border-top: 0; }
.tt-trust__item:nth-child(even) { border-left: 1px solid rgba(0,0,0,.14); }
.tt-trust__item > a { display: flex; align-items: center; justify-content: center; gap: .7rem; }
.tt-trust__ico { flex: none; display: inline-flex; align-items: center; color: #111; }
.tt-trust__txt { display: flex; flex-direction: column; font-size: .74rem; letter-spacing: .02em; min-width: 0; }
.tt-trust__txt strong { font-size: .84rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.tt-trust__txt span { opacity: .82; font-weight: 600; }
.tt-trust__item > .tt-trust__txt, .tt-trust__item > a > .tt-trust__txt { flex: 0 1 auto; }
.tt-trust a:hover strong { text-decoration: underline; }
@media (min-width: 900px) {
	.tt-trust__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.tt-trust__item { border-top: 0 !important; padding: 1rem .75rem; }
	.tt-trust__item + .tt-trust__item { border-left: 1px solid rgba(0,0,0,.14); }
	.tt-trust__txt { font-size: .78rem; }
	.tt-trust__txt strong { font-size: .88rem; }
}
@media (max-width: 480px) { .tt-trust__item { flex-direction: column; text-align: center; gap: .3rem; padding: .8rem .4rem; } .tt-trust__item > a { flex-direction: column; gap: .3rem; } .tt-trust__txt { align-items: center; } }

/* ---------- Sections ---------- */
.tt-section--center { text-align: center; }
.tt-section--center .tt-icon { display: inline-flex; }
.tt-section--center h2 { text-wrap: balance; }
.tt-section--dark, .tt-section--charcoal { color: #fff; }
.tt-band h1 { margin: 0 0 .35em; }
.tt-stars-big { letter-spacing: .25em; margin: 0 0 .25rem; }
.tt-quotes { align-items: stretch; }
.tt-quote-card { margin: 0; padding: 1.6rem 1.5rem; border: 0 !important; border-top: 4px solid var(--tt-gold) !important; background: rgba(255,255,255,.06); border-radius: 0 0 var(--tt-radius) var(--tt-radius); }
.tt-quote-card p { font-size: 1rem; line-height: 1.6; font-style: normal; color: #f2f2f2; }
.tt-quote-card cite { display: block; margin-top: 1rem; font-style: normal; font-family: var(--tt-head); font-weight: 700; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--tt-gold); }
.tt-instructor__photo img { border-radius: 10px; width: 100%; filter: grayscale(.1); }
.tt-checks { list-style: none; padding: 0; margin: 1rem 0 1.4rem; }
.tt-checks li { position: relative; padding-left: 1.9rem; margin-bottom: .55rem; }
.tt-checks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--tt-gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0b0b' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/70% no-repeat; }
.tt-pcard { height: 100%; }
.tt-pcard .wp-block-post-title a { text-decoration: none; color: var(--tt-ink); }
.tt-pcard .wp-block-post-title a:hover { color: var(--wp--preset--color--red-deep, #b30000); }
.tt-pcard__cat, .tt-pcard__cat a { font-family: var(--tt-head); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--wp--preset--color--red-deep, #b30000); text-decoration: none; }
.tt-pcard .wp-block-post-featured-image { margin: 0; }
.tt-pcard .wp-block-post-featured-image img { width: 100%; }
.tt-pcard .wp-block-post-excerpt { margin: 0; font-size: .95rem; color: #444; }
.tt-pcard .wp-block-post-excerpt__more-link { display: none; }

/* ---------- Page header / posts ---------- */
.tt-pagehead { padding: clamp(2rem, 5vw, 3.5rem) var(--wp--preset--spacing--30) .5rem; max-width: var(--tt-wide); margin: 0 auto; }
.tt-pagetitle { margin: 0; font-size: var(--wp--preset--font-size--xx-large); text-transform: uppercase; letter-spacing: .01em; }
/* post-content is full width (builder sections run edge to edge); plain text stays in a readable column */
.wp-block-post-content.alignfull { max-width: none; padding: 0; }
.wp-block-post-content.alignfull > :not(.alignfull):not(.alignwide):not(.tt-sec):not(.tt-hero):not(.tt-slider):not(.wp-block-woocommerce-cart):not(.wp-block-woocommerce-checkout):not(.woocommerce) { box-sizing: border-box; width: 100%; max-width: calc(var(--tt-prose, 760px) + 2 * var(--wp--preset--spacing--30)); margin-inline: auto; padding-inline: var(--wp--preset--spacing--30); }
.wp-block-post-content.alignfull > .alignwide { box-sizing: border-box; width: 100%; max-width: calc(var(--tt-wide, 1240px) + 2 * var(--wp--preset--spacing--30)); margin-inline: auto; padding-inline: var(--wp--preset--spacing--30); }
.tt-main--page { --tt-prose: 820px; }
.tt-main--post .tt-postmeta { padding: 1rem var(--wp--preset--spacing--30) 0; }
.tt-postfoot { text-align: left; }

/* ---------- Footer ---------- */
.tt-footer { font-size: .95rem; }
.tt-footer a { text-decoration: none; }
.tt-footer a:hover { text-decoration: underline; }
.tt-footer__name { margin-top: .6rem; }
.tt-footer__h { font-family: var(--tt-head); letter-spacing: .14em; text-transform: uppercase; color: var(--tt-gold); font-size: .78rem !important; margin: 0 0 .8rem; }
.tt-footer__list { list-style: none; padding: 0; margin: 0; }
.tt-footer__list li { margin: 0 0 .45rem; }
.tt-footer__legal { margin-top: var(--wp--preset--spacing--50); padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.15); gap: .8rem 2rem; color: var(--wp--preset--color--mist, #cfcfcf); }
.tt-footer__legal p { margin: 0; }
.tt-footmenu .tt-menu { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.tt-footmenu a { font-size: .875rem; }
.tt-footer .wp-block-columns { margin-bottom: 0; }

/* ---------- Site Editor niceties ---------- */
.wp-block-search__button { background: var(--tt-gold); color: var(--tt-black); border: 0; border-radius: var(--tt-radius); font-family: var(--tt-head); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.wp-block-query-pagination { font-family: var(--tt-head); font-weight: 700; font-size: .85rem; }

/* Cover content is left aligned inside the 1240px frame */
.tt-hero-cover .wp-block-cover__inner-container > * { margin-left: 0 !important; margin-right: 0 !important; }

.tt-hero-cover { justify-content: center; }

/* ---------- Rotating home hero (1.0.22) ---------- */
.tt-hero--rotate.wp-block-group,
.tt-hero--rotate {
	position: relative;
	min-height: 86vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: stretch;
	gap: 0;
	overflow: hidden;
	padding: clamp(2rem, 6vw, 5rem) var(--wp--preset--spacing--30);
	color: #fff;
	background: #0b0b0b;
}
.tt-hero--rotate > * { margin-block: 0; }
.tt-hero__slides,
.tt-hero__dim { position: absolute; inset: 0; }
.tt-hero__slides { z-index: 0; }
.tt-hero__slide {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	display: block;
	opacity: 0;
	animation: tt-hero-s2 28s linear infinite;
}
.tt-hero__slide.is-first {
	opacity: 1;
	animation-name: tt-hero-s1;
}
.tt-hero__slide:nth-child(1) { object-position: 52% 48%; animation-name: tt-hero-s1; }
.tt-hero__slide:nth-child(2) { object-position: 70% 42%; animation-name: tt-hero-s2; }
.tt-hero__slide:nth-child(3) { object-position: 55% 58%; animation-name: tt-hero-s3; }
.tt-hero__slide:nth-child(4) { object-position: 38% 40%; animation-name: tt-hero-s4; }
/* 7s per scene, 1s crossfade, subtle Ken Burns. Percentages of a 28s loop. */
@keyframes tt-hero-s1 {
	0% { opacity: 1; transform: scale(1); }
	21.429% { opacity: 1; transform: scale(1.06); }
	25% { opacity: 0; transform: scale(1.06); }
	96.429% { opacity: 0; transform: scale(1); }
	100% { opacity: 1; transform: scale(1); }
}
@keyframes tt-hero-s2 {
	0%, 21.429% { opacity: 0; transform: scale(1); }
	25% { opacity: 1; transform: scale(1); }
	46.429% { opacity: 1; transform: scale(1.06); }
	50% { opacity: 0; transform: scale(1.06); }
	100% { opacity: 0; transform: scale(1); }
}
@keyframes tt-hero-s3 {
	0%, 46.429% { opacity: 0; transform: scale(1); }
	50% { opacity: 1; transform: scale(1); }
	71.429% { opacity: 1; transform: scale(1.06); }
	75% { opacity: 0; transform: scale(1.06); }
	100% { opacity: 0; transform: scale(1); }
}
@keyframes tt-hero-s4 {
	0%, 71.429% { opacity: 0; transform: scale(1); }
	75% { opacity: 1; transform: scale(1); }
	96.429% { opacity: 1; transform: scale(1.06); }
	100% { opacity: 0; transform: scale(1.06); }
}
.tt-hero__dim {
	z-index: 1;
	background: rgba(0,0,0,.65);
	pointer-events: none;
}
.tt-hero__inner {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
}
.tt-hero--rotate .tt-hero__h1 .tt-gold { display: block; }
.tt-hero__badges {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: .45rem .7rem;
	margin: 0 0 0.15rem;
	padding: 0;
	max-width: 40rem;
}
.tt-hero__badges-break { display: none; }
.tt-hero__badges li {
	font-family: var(--tt-head);
	font-size: .62rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--tt-gold);
	border: 1px solid rgba(255,184,28,.45);
	padding: .38rem .65rem;
	border-radius: 4px;
	background: rgba(0,0,0,.28);
}
.tt-hero__dots {
	position: absolute;
	left: 50%;
	bottom: 18px;
	transform: translateX(-50%);
	z-index: 3;
	display: flex;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.tt-hero__dots li {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: 1.5px solid var(--tt-gold);
	background: transparent;
	animation: tt-hero-dot 28s linear infinite;
}
.tt-hero__dots li:nth-child(1) { animation-delay: 0s; }
.tt-hero__dots li:nth-child(2) { animation-delay: -21s; }
.tt-hero__dots li:nth-child(3) { animation-delay: -14s; }
.tt-hero__dots li:nth-child(4) { animation-delay: -7s; }
@keyframes tt-hero-dot {
	0%, 24.99% { background: var(--tt-gold); }
	25%, 100% { background: transparent; }
}
@media (max-width: 600px) {
	.tt-hero__slide:nth-child(1) { object-position: 50% 45%; }
	.tt-hero__slide:nth-child(2) { object-position: 68% 48%; }
	.tt-hero__slide:nth-child(3) { object-position: 48% 42%; }
	.tt-hero__slide:nth-child(4) { object-position: 34% 64%; }
	.tt-hero__badges { gap: 0 .15rem; margin: 0 0 .95rem; max-width: none; }
	.tt-hero__badges li {
		border: 0; padding: 0; background: none; border-radius: 0;
		font-size: .58rem; letter-spacing: .08em;
	}
	.tt-hero__badges li + li::before { content: "· "; }
	.tt-hero__badges-break {
		display: block; flex-basis: 100%; height: 0; padding: 0; margin: 0;
		border: 0; overflow: hidden; background: none;
	}
	.tt-hero__badges-break::before,
	.tt-hero__badges-break + li::before { content: none; }
	.tt-hero__dots { bottom: calc(14px + var(--tt-sticky-h, 88px) + var(--tsd-tb-h, 48px)); }
}
@media (max-width: 899px) {
	.tt-hero__dots {
		left: auto;
		right: 16px;
		transform: none;
		bottom: calc(10px + var(--tt-sticky-h, 88px) + var(--tsd-tb-h, 48px));
	}
}
@media (prefers-reduced-motion: reduce) {
	.tt-hero__slide,
	.tt-hero__dots li { animation: none !important; }
	.tt-hero__slide { opacity: 0; transform: none; }
	.tt-hero__slide.is-first,
	.tt-hero__slide:first-child { opacity: 1; }
	.tt-hero__dots li { background: transparent; }
	.tt-hero__dots li:first-child,
	.tt-hero__dots li.is-on { background: var(--tt-gold); }
}

.tt-events-placeholder { padding: 1rem; border: 1px dashed #999; background: #f6f6f6; }

/* Client / trusted-by strip: calm scrolling logos after the homepage intro. Grayscale at reduced opacity, full color on hover. A logo that fails becomes its name as text; if every one fails the strip hides (tsd.js). Auto-scrolls slowly; becomes a wrapping grid when the visitor prefers reduced motion, so nothing slides and the page never scrolls sideways. Selectors are rooted at .tt-trusted so they win over the legacy .tt-logos rules used on older Blueprint pages. */
.wp-block-group.tt-trusted { overflow-x: hidden; background: #fafaf8; padding: 3.25rem 0 3.5rem; border-top: 1px solid rgba(0,0,0,.06); }
.tt-trusted__eyebrow { text-align: center; margin: 0 auto 1.6rem; padding: 0 1rem; font-family: var(--tt-head); font-weight: 700; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--wp--preset--color--gold-deep, #8a5d00); }
.tt-trusted .tt-logos-marquee { overflow: hidden; width: 100%; max-width: none; box-sizing: border-box; padding-inline: 6%; mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); }
.tt-trusted .tt-logos-marquee__track { display: flex; width: max-content; align-items: center; animation: tt-logos-scroll 85s linear infinite; }
.tt-trusted .tt-logos-marquee:hover .tt-logos-marquee__track,
.tt-trusted .tt-logos-marquee:focus-within .tt-logos-marquee__track { animation-play-state: paused; }
@keyframes tt-logos-scroll { to { transform: translateX(-50%); } }
.tt-trusted .tt-logos--strip { list-style: none; margin: 0; padding: 0 3.5rem 0 0; display: flex; flex-wrap: nowrap; align-items: center; justify-content: flex-start; gap: 3.5rem; max-width: none; box-sizing: content-box; }
.tt-trusted .tt-logos--strip li { margin: 0; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.tt-trusted .tt-logos img { max-height: 48px; width: auto; filter: grayscale(1); opacity: .68; transition: opacity .25s, filter .25s; }
.tt-trusted .tt-logos img:hover { filter: none; opacity: 1; }
.tt-trusted .tt-logo-txt { font-family: var(--tt-head); font-weight: 700; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: #555; text-align: center; overflow-wrap: anywhere; }
.tt-trusted .tt-logos--strip img[alt] { font-size: 0; }
.tt-trusted[hidden] { display: none; }
@media (max-width: 1024px) {
	.wp-block-group.tt-trusted { padding: 2.75rem 0 3rem; }
	.tt-trusted .tt-logos--strip { gap: 2.8rem; padding: 0 2.8rem 0 0; }
	.tt-trusted .tt-logos img { max-height: 42px; }
	.tt-trusted .tt-logos-marquee__track { animation-duration: 75s; }
}
@media (max-width: 767px) {
	.wp-block-group.tt-trusted { padding: 2.15rem 0 2.35rem; }
	.tt-trusted__eyebrow { margin-bottom: 1.2rem; font-size: .66rem; }
	.tt-trusted .tt-logos--strip { gap: 2rem; padding: 0 2rem 0 0; }
	.tt-trusted .tt-logos img { max-height: 36px; }
	.tt-trusted .tt-logos-marquee__track { animation-duration: 65s; }
}
@media (prefers-reduced-motion: reduce) {
	.tt-trusted .tt-logos-marquee { mask-image: none; -webkit-mask-image: none; overflow: visible; padding: 0 1.25rem; }
	.tt-trusted .tt-logos-marquee__track { display: block; width: auto; max-width: 1100px; margin: 0 auto; animation: none; transform: none; }
	.tt-trusted .tt-logos-marquee__track .tt-logos--strip + .tt-logos--strip { display: none; }
	.tt-trusted .tt-logos--strip { flex-wrap: wrap; justify-content: center; gap: 1.4rem 2.4rem; padding: 0; max-width: 1100px; margin: 0 auto; }
	.tt-trusted .tt-logos img { max-width: 200px; max-height: 40px; }
	@media (max-width: 767px) {
		.tt-trusted .tt-logos-marquee { padding: 0 .9rem; }
		.tt-trusted .tt-logos--strip { gap: 1rem 1.25rem; }
		.tt-trusted .tt-logos--strip li { flex: 0 1 calc(33.333% - .9rem); max-width: calc(33.333% - .9rem); }
		.tt-trusted .tt-logos img { height: auto !important; width: auto !important; max-width: 100%; max-height: 32px; object-fit: contain; }
	}
}

/* Post footer: topic list (replaces the old sidebar "Categories" widget) */
.tt-topics-title { margin: 2rem 0 .6rem; font-family: var(--wp--preset--font-family--heading); text-transform: uppercase; letter-spacing: .08em; }
.tt-topics { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; font-size: .9rem; }
.tt-topics ul { list-style: none; margin: 0; padding: 0; display: contents; }
.tt-topics li { margin: 0; }
.tt-topics a { display: inline-block; padding: .3rem .8rem; border: 1px solid var(--wp--preset--color--line, #ddd); border-radius: 999px; text-decoration: none; color: inherit; }
.tt-topics a:hover, .tt-topics a:focus-visible { border-color: var(--wp--preset--color--gold, #ffb81c); background: var(--wp--preset--color--gold, #ffb81c); color: #000; }

/* Footer: compact topic links (the old footer carried the blog category list) */
.tt-footer__topicsrow { margin-top: 1.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .12); }
.tt-footer__topics { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; font-size: .8rem; }
.tt-footer__topics ul { display: contents; list-style: none; margin: 0; padding: 0; }
.tt-footer__topics a { color: rgba(255, 255, 255, .62); text-decoration: none; }
.tt-footer__topics a:hover, .tt-footer__topics a:focus-visible { color: var(--wp--preset--color--gold, #ffb81c); text-decoration: underline; }
.tt-tagcloud { margin: 1rem 0 0; font-size: .8rem; line-height: 1.9; }
.tt-tagcloud a { margin-right: .6rem; color: inherit; opacity: .75; text-decoration: none; }
.tt-tagcloud a:hover, .tt-tagcloud a:focus-visible { opacity: 1; text-decoration: underline; }
.tt-postmeta .wp-block-post-author__content { display: flex; gap: .35em; align-items: baseline; }
.tt-postmeta .wp-block-post-author__content p { margin: 0; }

.tt-pcard__by { margin: 0; opacity: .75; }
.tt-pcard__by a { text-decoration: none; }

/* Contact Form 7 */
.wpcf7 form{text-align:left}
.wpcf7 label{display:block;text-align:left;font-family:var(--wp--preset--font-family--montserrat,inherit);font-weight:600;font-size:.85rem;letter-spacing:.04em;text-transform:uppercase;color:inherit}
.wpcf7 p{margin:0 0 1rem}
.wpcf7 input[type=text],.wpcf7 input[type=email],.wpcf7 input[type=tel],.wpcf7 input[type=url],.wpcf7 input[type=number],.wpcf7 input[type=date],.wpcf7 select,.wpcf7 textarea{display:block;width:100%;box-sizing:border-box;margin-top:.35rem;padding:.8rem .9rem;font:inherit;font-size:1rem;color:#191818;background:#fff;border:2px solid #191818;border-radius:4px;min-height:48px}
.wpcf7 textarea{min-height:140px;resize:vertical}
.wpcf7 input:focus,.wpcf7 select:focus,.wpcf7 textarea:focus{outline:3px solid #ffb81c;outline-offset:2px;border-color:#191818}
.wpcf7 input[type=submit],.wpcf7 button[type=submit]{display:inline-block;cursor:pointer;padding:.9rem 2rem;border:0;border-radius:4px;background:#ffb81c;color:#000;font-family:var(--wp--preset--font-family--montserrat,inherit);font-weight:800;letter-spacing:.06em;text-transform:uppercase;min-height:48px}
.wpcf7 input[type=submit]:hover{background:#dd0000;color:#fff}
.wpcf7-not-valid-tip{color:#dd0000;font-size:.85rem;font-weight:600}
.wpcf7 form .wpcf7-response-output{margin:1rem 0 0;padding:.8rem 1rem;border:2px solid #ffb81c;background:#fff;color:#191818}

/* Empty builder wrappers take no space (tsd.js also hides sections that rendered with nothing in them). */
.wp-block-post-content :is(.tt-sec,.tt-container,.tt-row,.tt-col):empty,.tt-sec[hidden]{display:none!important}

/* ---------- Home: split intro ---------- */
.tt-intro__grid { display: grid; gap: clamp(1.75rem, 4vw, 3.5rem); grid-template-columns: minmax(0, 1fr); align-items: center; max-width: var(--tt-wide); margin: 0 auto; }
.tt-intro__h { margin: 0 0 1rem; font-size: clamp(1.9rem, 4.2vw, 3.1rem); line-height: 1.08; text-transform: uppercase; font-style: italic; font-weight: 800; letter-spacing: .005em; text-wrap: balance; }
.tt-intro__lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.45; font-weight: 600; margin: 0 0 1rem; padding-left: 1rem; border-left: 4px solid var(--tt-gold); }
.tt-intro__copy > p { max-width: 38rem; }
.tt-intro__btns { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.4rem; }
.tt-btn--dark { color: var(--tt-black); border-color: var(--tt-black); }
.tt-intro__tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tt-intro__tile { margin: 0; padding: 1.25rem 1.2rem 1.3rem; border: 1px solid var(--tt-line); border-top: 4px solid var(--tt-gold); border-radius: 10px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.05); display: flex; flex-direction: column; gap: .35rem; }
.tt-intro__tile strong { font-family: var(--tt-head); font-size: 1rem; line-height: 1.2; text-transform: uppercase; letter-spacing: .02em; }
.tt-intro__tile > span:last-child { font-size: .92rem; line-height: 1.45; color: #4a4a4a; }
.tt-intro__ico { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: var(--tt-black); color: var(--tt-gold); margin-bottom: .4rem; }
@media (min-width: 960px) { .tt-intro__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
@media (max-width: 480px) { .tt-intro__tiles { grid-template-columns: minmax(0, 1fr); } .tt-intro__btns .tt-btn { flex: 1 1 100%; } }

/* ---------- Home: Durham gym classes ---------- */
.tt-gym { background-image: radial-gradient(900px 400px at 85% -10%, rgba(255,184,28,.10), transparent 60%); }
.tt-gym__head { display: grid; gap: 1.5rem; align-items: end; grid-template-columns: minmax(0, 1fr); max-width: var(--tt-wide); margin: 0 auto 2rem; }
.tt-gym__h { margin: 0 0 .8rem; color: #fff; font-size: clamp(1.8rem, 4vw, 2.9rem); line-height: 1.08; text-transform: uppercase; font-style: italic; font-weight: 800; text-wrap: balance; }
.tt-gym__lead { margin: 0; max-width: 40rem; color: var(--wp--preset--color--mist, #cfcfcf); font-size: clamp(1rem, 1.6vw, 1.15rem); line-height: 1.5; }
.tt-gym__cta { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.tt-gym__join { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--tt-head); font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--tt-gold) !important; }
.tt-gym__join:hover { text-decoration: underline; color: #fff !important; }
.tt-gym .tt-btn--border { color: #fff; border-color: rgba(255,255,255,.7); }
.tt-gym .tt-btn--border:hover { color: var(--tt-black); }
.tt-gym__grid { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); max-width: var(--tt-wide); }
.tt-gym__card { margin: 0; padding: 1.4rem 1.35rem 1.3rem; background: #151515; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; display: flex; flex-direction: column; gap: .5rem; transition: border-color .2s, transform .2s; }
.tt-gym__card:hover { border-color: var(--tt-gold); transform: translateY(-3px); }
.tt-gym__card h3 { margin: .2rem 0 0; font-size: 1.25rem; line-height: 1.15; text-transform: uppercase; letter-spacing: .01em; }
.tt-gym__card h3 a, .tt-gym__card h3 a:where(:not(.wp-element-button):not(.tt-btn)) { color: #fff; text-decoration: none; }
.tt-gym__card p { margin: 0; font-size: .95rem; line-height: 1.55; color: #d6d6d6; }
.tt-gym__tag { font-family: var(--tt-head); font-size: .68rem !important; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--tt-gold) !important; }
.tt-gym__ico { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 12px; background: var(--tt-gold); color: var(--tt-black); }
.tt-gym__more { margin-top: auto; padding-top: .5rem; font-family: var(--tt-head); font-weight: 700; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--tt-gold) !important; }
.tt-gym__more:hover { text-decoration: underline; }
.tt-gym__card--photo { padding: 0; position: relative; overflow: hidden; min-height: 260px; border-color: transparent; }
.tt-gym__card--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.tt-gym__card--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,.05) 60%); }
.tt-gym__photo-cta { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 1.2rem 1.35rem; display: flex; flex-direction: column; gap: .15rem; text-decoration: none; color: #fff !important; }
.tt-gym__photo-cta span { font-family: var(--tt-head); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--tt-gold); font-weight: 700; }
.tt-gym__photo-cta strong { font-family: var(--tt-head); font-size: 1.1rem; text-transform: uppercase; }
.tt-gym__where { max-width: var(--tt-wide); margin: 1.6rem auto 0; font-size: .9rem; color: #bdbdbd; }
@media (min-width: 640px) { .tt-gym__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .tt-gym__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tt-gym__head { grid-template-columns: minmax(0, 1fr) auto; } }
@media (prefers-reduced-motion: reduce) { .tt-gym__card, .tt-gym__card:hover { transition: none; transform: none; } }

/* ---------- About page: picture panels built from a background image and a spacer (the instructor bio photo) ---------- */
.tt-box.has-bg:has(> .tt-box__col > .tt-sp:only-child) { padding: 0; background-position: 50% 15%; min-height: min(520px, 125vw); height: auto; }
.tt-box.has-bg > .tt-box__col > .tt-sp:only-child { height: min(calc(var(--sp, 360) * 1px), 125vw); }
@media (min-width: 900px) {
	.tt-row--cols > .tt-col > .tt-box.has-bg:has(> .tt-box__col > .tt-sp:only-child) { flex: 1 1 auto; align-self: stretch; min-height: 480px; }
}


@media (max-width: 1023.98px) and (max-height: 500px) {
	.tt-header__in { min-height: 56px; }
	.tt-brand img { width: 44px; height: 44px; }
	.tt-header__cta { padding: .55rem .85rem; }
}
/* ---------- Mega menu (inc/mega-menu.php): gold group labels, light items, one primary action per dropdown ---------- */
.tt-menu > .tt-mi > .tt-mi__tog { justify-content: flex-end; }
.tt-mega__cols { display: block; }
.tt-mega__col { display: block; }
.tt-mega__grp { margin: 0 0 .9rem; }
.tt-mega__label { margin: 0 0 .15rem; padding: .35rem 0; font-family: var(--tt-head); font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; line-height: 1.2; color: var(--tt-gold); }
.tt-mega__list { list-style: none; margin: 0; padding: 0; }
.tt-mega__list li { margin: 0; }
.tt-mega__link { display: block; padding: .6rem 0; min-height: 44px; box-sizing: border-box; color: #f2f2f2; text-decoration: none; font-family: var(--tt-head); line-height: 1.3; }
.tt-mega__t { display: block; font-size: .85rem; font-weight: 500; letter-spacing: .01em; }
.tt-mega__d { display: none; }
.tt-mega__link:hover, .tt-mega__link:focus-visible { color: var(--tt-gold); }
.tt-mega__link[aria-current="page"] .tt-mega__t { color: var(--tt-gold); font-weight: 700; }
/* Featured item (Concealed Carry in the Firearm Training dropdown): gold card with a "Most popular" tag; also first in the mobile drawer group. */
.tt-mega__li--feat { margin: 0 0 .35rem; }
.tt-mega__link--feat { padding: .7rem .85rem !important; border: 1px solid var(--tt-gold); border-left-width: 4px; border-radius: 8px; background: rgba(255,184,28,.14); }
.tt-mega__link--feat .tt-mega__t { font-size: .95rem; font-weight: 800; color: #fff; }
.tt-mega__link--feat .tt-mega__d { display: block; margin-top: .15rem; font-family: var(--wp--preset--font-family--body, Barlow, Arial, sans-serif); font-size: .8rem; font-weight: 400; line-height: 1.3; color: rgba(255,255,255,.8); }
.tt-mega__link--feat:hover, .tt-mega__link--feat:focus-visible { background: rgba(255,184,28,.26); }
.tt-mega__link--feat:hover .tt-mega__t, .tt-mega__link--feat:focus-visible .tt-mega__t { color: var(--tt-gold); }
.tt-mega__tag { display: inline-block; margin: 0 0 .35rem; padding: .15rem .5rem; border-radius: 99px; background: var(--tt-gold); color: var(--tt-black); font-family: var(--tt-head); font-size: .6rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; line-height: 1.3; }
.tt-mega__li--feat .tt-mega__more { display: inline-block; margin: .4rem .85rem .15rem; padding: 0; min-height: 32px; line-height: 1.3; font-family: var(--tt-head); font-size: .75rem; font-weight: 600; letter-spacing: .02em; color: rgba(255,255,255,.78); text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; }
.tt-mega__li--feat .tt-mega__more:hover, .tt-mega__li--feat .tt-mega__more:focus-visible { color: var(--tt-gold); background: none; }
.tt-mega__cta { margin: .25rem 0 .75rem; }
.tt-mega__note { display: none; }
.tt-mega__btn { display: flex; width: 100%; box-sizing: border-box; gap: .5rem; }
.tt-mega__btn svg { flex: none; transition: transform .15s; }
.tt-mega__btn:hover svg { transform: translateX(3px); }
.tt-nav .tt-panel--mega .tt-mega__btn.tt-btn--primary { color: var(--tt-black); }
.tt-nav .tt-panel--mega .tt-mega__btn.tt-btn--primary:hover { color: #fff; }
.tt-nav .tt-panel--mega .tt-mega__btn.tt-btn--border { color: #fff; border-color: rgba(255,255,255,.4); }
.tt-nav .tt-panel--mega .tt-mega__btn.tt-btn--border:hover { color: var(--tt-black); }
@media (min-width: 1024px) {
	.tt-menu > .tt-mi > .tt-panel.tt-panel--mega { padding: 0; min-width: 0; width: max-content; max-width: min(calc(100vw - 32px), 820px); }
	.tt-menu > .tt-mi > .tt-mi__tog { justify-content: center; }
	.tt-menu > .tt-mi.tt-esc > .tt-panel { display: none !important; }
	.tt-mega__cols { display: grid; align-items: start; justify-content: start; gap: 0 1.25rem; padding: 1.2rem 1.25rem 1rem; }
	.tt-mega__cols--1 { grid-template-columns: 240px; }
	.tt-mega__cols--2 { grid-template-columns: repeat(2, 240px); }
	.tt-mega__cols--3 { grid-template-columns: repeat(3, 240px); }
	.tt-mega__col { min-width: 0; }
	.tt-mega__col > .tt-mega__grp:last-child { margin-bottom: 0; }
	.tt-mega__grp { margin-bottom: 1.1rem; }
	.tt-mega__label { padding: 0 .75rem .55rem; margin-bottom: .3rem; border-bottom: 1px solid rgba(255,184,28,.28); }
	.tt-mega__link { padding: .5rem .75rem; min-height: 0; border-radius: 8px; }
	.tt-mega__link:hover, .tt-mega__link:focus-visible { background: rgba(255,184,28,.14); }
	.tt-mega__d { display: block; margin-top: .12rem; font-family: var(--wp--preset--font-family--body, Barlow, Arial, sans-serif); font-size: .78rem; font-weight: 400; line-height: 1.3; color: rgba(255,255,255,.62); }
	.tt-mega__link:hover .tt-mega__d, .tt-mega__link:focus-visible .tt-mega__d { color: rgba(255,255,255,.85); }
	.tt-mega__cta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0; padding: .8rem 1.25rem .8rem 2rem; background: rgba(255,184,28,.07); border-top: 1px solid rgba(255,184,28,.22); }
	.tt-mega__note { display: block; font-family: var(--tt-head); font-size: .8rem; font-weight: 500; color: rgba(255,255,255,.75); }
	.tt-mega__btn { display: inline-flex; width: auto; flex: none; }
}

