/* Theme 1.0.27 - site-wide pieces: gritty footer, flip-card program strip, inline maps.
   Product-page rules live in v1027-product.css, the contact page in v1027-contact.css.
   Kill switch: add_filter( 'tsd_v1027_on', '__return_false' ); */

:root {
	/* Film-grain texture (inline SVG noise, no extra request). Used at low opacity on dark panels. */
	--tsd-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .13 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	--tsd-mist: #cfcfcf;
	--tsd-slash: repeating-linear-gradient(-45deg, #ffb81c 0 12px, #0b0b0b 12px 24px);
}

.tsd-kicker { font-family: var(--tt-head); font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--tt-gold); margin: 0 0 .7rem; }

/* ------------------------------------------------------------------ Footer */
.tt-footer--v27 { position: relative; isolation: isolate; overflow: hidden; background: #0b0b0b !important; border-top: 7px solid transparent; border-image: var(--tsd-slash) 7; font-size: .97rem; }
.tt-footer--v27::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(900px 420px at 88% -5%, rgba(255, 184, 28, .13), transparent 62%), radial-gradient(700px 380px at 0% 100%, rgba(221, 0, 0, .10), transparent 65%), linear-gradient(180deg, #151515, #0b0b0b 45%); }
.tt-footer--v27::after { content: "TSD"; content: "TSD" / ""; position: absolute; right: -.04em; bottom: -.22em; z-index: -1; font-family: var(--tt-head); font-weight: 900; font-style: italic; font-size: clamp(9rem, 24vw, 19rem); line-height: 1; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .07); pointer-events: none; user-select: none; }
.tt-footer--v27 > * { position: relative; }
.tt-footer--v27 .tsd-grain, .tt-footer--v27 .tt-footer__cols { position: relative; }

/* Call-to-action band */
.tsd-ft-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; max-width: var(--tt-wide, 1240px); margin: 0 auto clamp(2rem, 5vw, 3.25rem); padding: clamp(1.25rem, 3vw, 1.9rem) clamp(1.25rem, 3vw, 2.25rem); border: 1px solid rgba(255, 255, 255, .14); border-left: 6px solid var(--tt-gold); background: linear-gradient(100deg, rgba(255, 184, 28, .16), rgba(255, 255, 255, .03) 55%), var(--tsd-grain); }
.tsd-ft-top__k { margin: 0 0 .35rem; font-family: var(--tt-head); font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--tt-gold); }
.tsd-ft-top__h { margin: 0; font-family: var(--tt-head); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: clamp(1.25rem, 3vw, 1.9rem); line-height: 1.1; color: #fff; text-wrap: balance; }
.tsd-ft-top__btns { display: flex; flex-wrap: wrap; gap: .7rem; }
.tsd-ft-top__call { color: #fff; }
.tsd-ft-top__call:hover { color: var(--tt-black) !important; }

/* Columns */
.tt-footer--v27 .tt-footer__cols { gap: 2.25rem 2rem; }
.tt-footer--v27 .tt-footer__name { color: #e9e9e9; line-height: 1.5; max-width: 26rem; }
.tt-footer--v27 .tt-footer__name strong { font-family: var(--tt-head); font-weight: 700; font-size: 1.02rem; letter-spacing: .02em; color: #fff; }
.tt-footer--v27 .wp-block-image img { filter: drop-shadow(0 4px 18px rgba(255, 184, 28, .25)); }
.tt-footer--v27 .tt-footer__h { display: flex; align-items: center; gap: .65rem; margin: 0 0 1.05rem; color: var(--tt-gold); font-weight: 700; letter-spacing: .2em; }
.tt-footer--v27 .tt-footer__h::before { content: ""; width: 22px; height: 4px; background: var(--tt-gold); transform: skewX(-32deg); flex: none; }
.tt-footer--v27 .tt-footer__list li { margin: 0; }
.tt-footer--v27 .tt-footer__list a { position: relative; display: inline-block; padding: .32rem 0 .32rem 0; color: #ececec; text-decoration: none; transition: color .18s, padding-left .18s; }
.tt-footer--v27 .tt-footer__list a::before { content: ""; position: absolute; left: 0; top: 50%; width: 0; height: 2px; background: var(--tt-gold); transform: translateY(-50%) skewX(-32deg); transition: width .18s; }
.tt-footer--v27 .tt-footer__list a:hover, .tt-footer--v27 .tt-footer__list a:focus-visible { color: var(--tt-gold); padding-left: 20px; text-decoration: none; }
.tt-footer--v27 .tt-footer__list a:hover::before, .tt-footer--v27 .tt-footer__list a:focus-visible::before { width: 12px; }
.tt-footer--v27 p a { color: var(--tt-gold); }
.tt-footer--v27 .has-small-font-size { line-height: 1.7; }

/* Legal row */
.tt-footer--v27 .tt-footer__legal { margin-top: clamp(2rem, 5vw, 3rem); border-top: 1px solid rgba(255, 255, 255, .14); position: relative; }
.tt-footer--v27 .tt-footer__legal::before { content: ""; position: absolute; left: 0; top: -1px; width: 88px; height: 3px; background: var(--tt-gold); }
.tt-footer--v27 .tt-footer__legal a { color: #e6e6e6; }
.tt-footer--v27 .tt-footer__legal a:hover { color: var(--tt-gold); }

@media (max-width: 781px) {
	.tt-footer--v27 .tt-footer__cols > .wp-block-column { flex-basis: 100% !important; }
	.tt-footer--v27 .tt-footer__cols { gap: 1.75rem; }
	.tsd-ft-top__btns .tt-btn { flex: 1 1 10rem; text-align: center; justify-content: center; }
	/* the ghost wordmark must never sit behind readable text on small screens */
	.tt-footer--v27::after { opacity: .5; font-size: 9rem; bottom: -.12em; }
}

/* ------------------------------------------------------------------ Programs strip -> flip cards */
.tsd-programs.tsd-programs--flip { box-sizing: border-box; position: relative; isolation: isolate; background: #0b0b0b; color: #fff; border-top: 0; padding: clamp(2.5rem, 6vw, 4.5rem) 1rem clamp(2.25rem, 5vw, 3.75rem); overflow: hidden; }
.tsd-programs--flip::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(900px 360px at 12% 0%, rgba(255, 184, 28, .12), transparent 62%), var(--tsd-grain); }
.tsd-programs.tsd-programs--flip .tsd-programs__in { max-width: var(--tt-wide, 1240px); }
.tsd-programs--flip .tsd-programs__k { color: var(--tt-gold); font-size: .78rem; letter-spacing: .2em; font-weight: 700; margin-bottom: .6rem; }
.tsd-programs--flip .tsd-programs__h { color: #fff; font-family: var(--tt-head); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: clamp(1.45rem, 3.4vw, 2.3rem); margin: 0 0 clamp(1.5rem, 3vw, 2.25rem); text-wrap: balance; }
.tsd-programs--flip .tsd-programs__start { color: var(--tt-gold); font-size: .85rem; letter-spacing: .14em; }
.tsd-programs--flip .tsd-programs__start:hover { color: #fff; }
.tsd-programs--flip .tsd-programs__start:focus-visible { outline-color: var(--tt-gold); }

.tsd-flipgrid { list-style: none; margin: 0 auto clamp(1.5rem, 3vw, 2.25rem); padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: clamp(.75rem, 1.6vw, 1.1rem); text-align: left; }
.tsd-flip { perspective: 1100px; aspect-ratio: 4 / 5; min-height: 300px; }
.tsd-flip__in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .65s cubic-bezier(.2, .7, .2, 1); }
.tsd-flip:hover .tsd-flip__in, .tsd-flip:focus-within .tsd-flip__in, .tsd-flip.is-flipped .tsd-flip__in { transform: rotateY(180deg); }
.tsd-flip__front, .tsd-flip__back { position: absolute; inset: 0; border-radius: 8px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; border: 1px solid rgba(255, 255, 255, .16); }
.tsd-flip__front { background: #111; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.1rem 1.1rem 1.25rem; isolation: isolate; }
.tsd-flip__front img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15) brightness(.78); }
.tsd-flip__front::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .15) 0%, rgba(0, 0, 0, .35) 45%, rgba(0, 0, 0, .92) 100%); }
.tsd-flip__front::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--tsd-grain); opacity: .22; mix-blend-mode: overlay; pointer-events: none; }
.tsd-flip__tag { position: absolute; top: 1rem; left: 1rem; padding: .3rem .6rem; background: var(--tt-gold); color: var(--tt-black); font-family: var(--tt-head); font-weight: 700; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; transform: skewX(-8deg); }
.tsd-flip__t { margin: 0; font-family: var(--tt-head); font-weight: 700; font-style: italic; text-transform: uppercase; font-size: 1.2rem; line-height: 1.12; letter-spacing: .01em; color: #fff; text-wrap: balance; }
.tsd-flip__front .tsd-flip__t::after { content: ""; display: block; width: 44px; height: 3px; margin-top: .7rem; background: var(--tt-gold); transform: skewX(-32deg); }
.tsd-flip__back { transform: rotateY(180deg); background: #151515; padding: 1.35rem 1.2rem 1.3rem; display: flex; flex-direction: column; justify-content: center; gap: .85rem; border-top: 4px solid var(--tt-gold); isolation: isolate; }
.tsd-flip__back::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(240px 200px at 100% 0%, rgba(255, 184, 28, .14), transparent 70%), var(--tsd-grain); opacity: .9; }
.tsd-flip__t--back { color: var(--tt-gold); font-size: .95rem; }
.tsd-flip__back p { margin: 0; color: #e4e4e4; font-size: 1rem; line-height: 1.5; }
.tsd-flip__go { align-self: flex-start; display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .6rem 1rem; background: var(--tt-gold); color: var(--tt-black) !important; font-family: var(--tt-head); font-weight: 700; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; border-radius: 4px; transition: background .15s, color .15s; }
.tsd-flip__go:hover { background: #fff; }
.tsd-flip__go:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* Touch screens and narrow screens: no flipping (nothing to hover). Photo on top, text and link below. */
@media (hover: none), (max-width: 700px) {
	.tsd-flip { aspect-ratio: auto; min-height: 0; perspective: none; }
	.tsd-flip__in { transform: none !important; display: grid; grid-template-columns: 1fr; height: auto; background: #131313; border: 1px solid rgba(255, 255, 255, .16); border-top: 4px solid var(--tt-gold); border-radius: 8px; overflow: hidden; }
	.tsd-flip__front, .tsd-flip__back { position: relative; inset: auto; transform: none; backface-visibility: visible; -webkit-backface-visibility: visible; border: 0; border-radius: 0; }
	.tsd-flip__front { min-height: 150px; padding: .9rem 1rem; }
	.tsd-flip__front .tsd-flip__t::after { display: none; }
	.tsd-flip__back { padding: .9rem 1rem 1.1rem; background: transparent; border-top: 0; gap: .65rem; }
	.tsd-flip__back::before { display: none; }
	.tsd-flip__t--back { display: none; }
	.tsd-flipgrid { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
}

/* Reduced motion: no spinning. The back fades in on hover or keyboard focus instead. */
@media (prefers-reduced-motion: reduce) {
	.tsd-flip__in { transition: none; }
	.tsd-flip:hover .tsd-flip__in, .tsd-flip:focus-within .tsd-flip__in, .tsd-flip.is-flipped .tsd-flip__in { transform: none; }
	.tsd-flip__front, .tsd-flip__back { backface-visibility: visible; -webkit-backface-visibility: visible; }
	.tsd-flip__back { transform: none; opacity: 0; transition: opacity .15s; }
	.tsd-flip:hover .tsd-flip__back, .tsd-flip:focus-within .tsd-flip__back, .tsd-flip.is-flipped .tsd-flip__back { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) and (hover: none), (prefers-reduced-motion: reduce) and (max-width: 700px) {
	.tsd-flip__back { opacity: 1; }
}

/* ------------------------------------------------------------------ Inline maps (load by themselves) */
.tsd-map--inline { margin: 1rem 0; }
.tsd-map--inline iframe, .tsd-map__frame { display: block; width: 100%; height: 380px; border: 0; border-radius: 8px; filter: grayscale(.35) contrast(1.05); background: #1b1b1b; }
.tsd-map__dir { margin: .6rem 0 0; font-size: .95rem; }
