/* TAHE 7.8: shared visual tokens and explicit surface/foreground pairs.
   Scoped to TAHE modules; product swatches and printable designs stay intact. */
:root{--tahe-ui-ink:#171717;--tahe-ui-muted:#595959;--tahe-ui-line:#dedede;--tahe-ui-paper:#fff;--tahe-ui-soft:#f6f6f4;--tahe-ui-red:#b5121b;--tahe-ui-radius:12px;--tahe-ui-font:"Manrope",Arial,sans-serif;--tahe-ui-display:"Playfair Display",Georgia,serif}
:root body :is(.tahe-academy,.tahe-account-panel,.tahe-partner-app,.tahe-ordering,.tspc-app,.tscf-app,.tahe-sl-wrap,.tahe-offers){--ink:var(--tahe-ui-ink);--muted:var(--tahe-ui-muted);--line:var(--tahe-ui-line);--soft:var(--tahe-ui-soft);--accent:var(--tahe-ui-red);--tp-gray-500:var(--tahe-ui-muted);color:var(--tahe-ui-ink);font-family:var(--tahe-ui-font);color-scheme:light;line-height:1.65;min-width:0}
:root body :is(.tahe-academy,.tahe-partner-app,.tahe-ordering,.tspc-app,.tscf-app,.tahe-offers) :is(h1,h2,h3){font-family:var(--tahe-ui-display)!important;font-weight:400!important;line-height:1.18!important;letter-spacing:-.025em!important;text-transform:none!important}
:root body :is(.tahe-partner-hero,.tspc-header,.tscf-hero){background:var(--tahe-ui-paper)!important;color:var(--tahe-ui-ink)!important;border:1px solid var(--tahe-ui-line)!important;border-radius:var(--tahe-ui-radius)!important;padding:clamp(20px,4vw,36px)!important;box-shadow:none!important;text-align:left!important}
:root body :is(.tahe-partner-hero,.tspc-header,.tscf-hero) :is(h1,h2){color:var(--tahe-ui-ink)!important;font-size:clamp(30px,4vw,42px)!important;margin:0 0 12px!important}
:root body :is(.tahe-partner-hero,.tspc-header,.tscf-hero) :is(p,.tahe-kicker){color:var(--tahe-ui-muted)!important;max-width:70ch;font-size:15px!important;line-height:1.65!important}
:root body .tscf-app .tscf-hero h2::after{display:none!important}
:root body .tahe-partner-hero .tahe-level-badge{background:var(--tahe-ui-soft)!important;color:var(--tahe-ui-ink)!important;border:1px solid var(--tahe-ui-line)!important}
:root body :is(.tahe-partner-card,.tahe-partner-metric,.tahe-module,.tahe-partner-quarter-progress,.tahe-ordering__form,.tahe-ordering__create,.tahe-ordering__repeat,.tahe-offers__card,.tahe-offers__bottom,.tspc-stage,.tspc-price-list-panel,.tscf-panel,.tscf-result-panel){background:var(--tahe-ui-paper)!important;color:var(--tahe-ui-ink)!important;border-color:var(--tahe-ui-line)!important;border-radius:var(--tahe-ui-radius)!important;box-shadow:none!important}
:root body :is(.tahe-partner-metric,.tahe-partner-card,.tahe-module,.tahe-ordering__form,.tahe-ordering__create){padding:clamp(18px,2.5vw,24px)!important}
/* Price results are a light surface, avoiding inherited dark account headings. */
:root body .tspc-app .tspc-price{background:var(--tahe-ui-soft)!important;color:var(--tahe-ui-ink)!important;border:1px solid var(--tahe-ui-line)!important;border-radius:var(--tahe-ui-radius)!important}
:root body .tspc-app .tspc-price :is(strong,span,small,p){color:var(--tahe-ui-ink)!important;-webkit-text-fill-color:var(--tahe-ui-ink)!important}
:root body :is(.tahe-ordering,.tahe-partner-app,.tspc-app,.tscf-app) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=submit]):not([type=color]),select,textarea){background:#fff!important;color:#171717!important;-webkit-text-fill-color:#171717!important;border-color:#aaa!important;border-radius:8px!important;font-family:var(--tahe-ui-font)!important;font-size:16px!important;max-width:100%;min-width:0}
:root body :is(.tahe-academy,.tahe-partner-app,.tahe-ordering,.tspc-app,.tscf-app,.tahe-sl-wrap) :is(input,select,textarea)::placeholder{color:#676767!important;opacity:1}
:root body :is(.tspc-button,.tscf-primary,.tahe-ordering button,.tahe-partner-app .button,.tahe-offers__add,.tahe-offers__next,.tahe-sl-btn,.tahe-sl-reset){background:#171717!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border:2px solid #171717!important;border-radius:8px!important;min-height:44px;box-shadow:none!important;font:700 14px/1.4 var(--tahe-ui-font)!important;text-transform:none!important;text-decoration:none!important}
:root body :is(.tspc-button,.tscf-primary,.tahe-ordering button,.tahe-partner-app .button,.tahe-offers__add,.tahe-offers__next,.tahe-sl-btn,.tahe-sl-reset):hover{background:#303030!important;color:#fff!important;border-color:var(--tahe-ui-red)!important}
:root body :is(.tspc-button:not(.tspc-button-primary),.tahe-ordering button.tahe-ordering__secondary){background:#fff!important;color:#171717!important;-webkit-text-fill-color:#171717!important;border-color:#aaa!important}
:root body :is(.tspc-mode-nav button,.tscf-filters button){background:#fff!important;color:#171717!important;-webkit-text-fill-color:#171717!important;border:1px solid #aaa!important;border-radius:8px!important}
:root body :is(.tspc-mode-nav button.is-active,.tscf-filters button[aria-pressed=true]){background:#171717!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:#171717!important}
:root body :is(.tspc-progress,.tscf-progress) :is(.is-active,.is-complete) b{background:#171717!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
:root body :is(.tahe-academy,.tahe-partner-app,.tahe-ordering,.tspc-app,.tscf-app,.tahe-sl-wrap,.tahe-offers) :is(a,button,input,select,textarea,summary):focus-visible{outline:3px solid #b5121b!important;outline-offset:3px!important}
:root body :is(.tspc-app,.tscf-app,.tahe-ordering,.tahe-partner-app) button:disabled{opacity:.5!important;cursor:not-allowed!important}
:root body :is(.tahe-ordering,.tahe-partner-app,.tspc-app,.tscf-app) [hidden]{display:none!important}
:root body .tahe-offers{background:var(--tahe-ui-soft);color:var(--tahe-ui-ink)}
:root body .tahe-offers__eyebrow{background:#eee;color:#444}
:root body .tahe-offers__sale{background:#b5121b;color:#fff}
:root body .tahe-shipping-banner{background:#171717;color:#fff}
:root body .tahe-shipping-banner :is(p,span,strong,a){color:#fff!important}
:root body .tahe-shipping-banner__progress>span{background:#ddd}
:root body :is(.tahe-partner-card,.tahe-module,.tahe-ordering__repeat,.tspc-kpis>div){min-width:0;overflow-wrap:anywhere}
@media(max-width:680px){:root body .tahe-partner-grid,:root body .tahe-benefit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}:root body .tahe-module-grid{grid-template-columns:1fr}:root body .tspc-mode-nav{flex-wrap:wrap}:root body :is(.tahe-partner-hero,.tspc-header,.tscf-hero){padding:20px!important}:root body .tahe-section-head{flex-wrap:wrap}}
@media(max-width:380px){:root body .tahe-partner-grid,:root body .tahe-benefit-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){:root body :is(.tahe-academy,.tahe-partner-app,.tahe-ordering,.tspc-app,.tscf-app,.tahe-sl-wrap) *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
:root body :is(.tahe-academy,.tahe-account-panel,.tahe-account-academy) :is(.tahe-section,.tahe-card-section,.tahe-profile,.tahe-training-catalog,.tahe-my-trainings,.tahe-points-overview,.tahe-studio-category,.tahe-history-card,.tahe-training-item,.tahe-course-card,.tahe-award-card,.tahe-studio-item,.tahe-login,.tahe-register,.tahe-summary-item,.tahe-quick-link,.tahe-points-use-box,.tahe-points-box,.tahe-points-redeem-box){background:#fff!important;color:#171717!important;border:1px solid #dedede!important;border-radius:12px!important;box-shadow:none!important}

/* Consistent spacing also wins over legacy module skins loaded by shortcodes. */
:root body .tspc-app :is(.tspc-stage,.tspc-price-list-panel){padding:clamp(18px,3vw,30px)!important;margin-top:20px!important;border:1px solid #dedede!important}
:root body .tspc-app .tspc-price{padding:22px!important}
:root body :is(.tspc-app,.tscf-app) :is(h3,.tscf-panel>h3){font-size:clamp(24px,3vw,30px)!important;line-height:1.2!important;text-align:left!important;margin-bottom:18px!important}
:root body .tspc-app :is(.tspc-header,.tspc-step-number,.tspc-intro){text-align:left!important}
:root body .tspc-app .tspc-header p{margin-left:0!important}
:root body .tspc-app .tspc-text-button{background:#fff!important;color:#171717!important;-webkit-text-fill-color:#171717!important;border:1px solid #aaa!important;border-radius:8px!important;padding:8px 12px!important}
:root body .tscf-app .tscf-panel{animation:none!important;opacity:1!important}
:root body .tscf-app .tscf-hero{padding:clamp(20px,4vw,36px)!important}
:root body .woocommerce-MyAccount-content :is(.tspc-app,.tscf-app){width:100%!important;max-width:100%!important;padding:0!important;margin:0!important}
@media(max-width:600px){:root body .tscf-app .tscf-progress{margin:16px 0!important;padding:12px 0!important;width:100%!important}:root body .tscf-app .tscf-progress>[data-go-step] span{font-size:9px!important;white-space:normal!important;line-height:1.25!important}:root body .tspc-app .tspc-price{padding:18px!important}}
:root body :is(.tspc-app,.tscf-app) :is(.tspc-header,.tscf-hero) :is(h2,p){text-align:left!important;margin-left:0!important}
:root body .tscf-app .tscf-layout .tscf-panel{padding:clamp(18px,3vw,28px)!important;border:1px solid #dedede!important;border-radius:12px!important}
:root body .tspc-app .tspc-result-head p{text-align:left!important}
:root body .tspc-app :is(.tspc-used-row,.tspc-breakdown-row)>:last-child{white-space:nowrap;flex-shrink:0}
@media(max-width:600px){:root body .tspc-app .tspc-result-head{flex-direction:column!important;align-items:flex-start!important;gap:8px!important}:root body .tspc-app .tspc-result-head h3{margin-bottom:8px!important}:root body .tspc-app .tspc-actions{align-items:stretch!important}:root body .tspc-app .tspc-actions button{width:100%!important}}

/* 7.8.2 — unified clean frontend controls */
:root body :is(.tahe-academy,.tahe-account-panel,.tahe-partner-app,.tahe-ordering,.tspc-app,.tscf-app,.tahe-sl-wrap,.tahe-offers){--tahe-control-radius:10px;--tahe-card-radius:14px}
:root body :is(.tahe-academy,.tahe-account-panel,.tahe-partner-app,.tahe-ordering,.tspc-app,.tscf-app,.tahe-sl-wrap,.tahe-offers) :is(.button,button,input[type=submit],a.button,.tspc-button,.tscf-primary,.tahe-sl-btn,.tahe-sl-reset){min-height:42px!important;border-radius:var(--tahe-control-radius)!important;font-size:13px!important;font-weight:750!important;letter-spacing:0!important;text-transform:none!important;box-shadow:none!important}
:root body :is(.tahe-academy,.tahe-account-panel,.tahe-partner-app,.tahe-ordering,.tspc-app,.tscf-app,.tahe-sl-wrap,.tahe-offers) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=submit]),select,textarea){border:1px solid #b7b7bb!important;border-radius:var(--tahe-control-radius)!important;box-shadow:none!important}
:root body :is(.tahe-academy,.tahe-account-panel,.tahe-partner-app,.tahe-ordering,.tspc-app,.tscf-app,.tahe-sl-wrap,.tahe-offers) :is(.tahe-section,.tahe-card-section,.tahe-profile,.tahe-training-catalog,.tahe-my-trainings,.tahe-points-overview,.tahe-studio-category,.tahe-history-card,.tahe-training-item,.tahe-course-card,.tahe-award-card,.tahe-studio-item,.tahe-login,.tahe-register,.tahe-partner-card,.tahe-partner-metric,.tahe-module,.tahe-ordering__form,.tahe-ordering__create,.tahe-ordering__repeat,.tspc-stage,.tspc-price-list-panel,.tscf-panel,.tscf-result-panel){border-radius:var(--tahe-card-radius)!important;border-color:#dedee1!important;box-shadow:none!important}
:root body .woocommerce-MyAccount-navigation ul{display:grid;gap:6px;margin:0!important;padding:0!important;list-style:none!important}
:root body .woocommerce-MyAccount-navigation li a{display:flex;align-items:center;min-height:42px;padding:9px 12px;border-radius:9px;color:#323232!important;font-weight:650;text-decoration:none!important}
:root body .woocommerce-MyAccount-navigation li a:hover{background:#f4f4f5!important;color:#111!important}
:root body .woocommerce-MyAccount-navigation li.is-active a{background:#171717!important;color:#fff!important}
:root body .woocommerce-MyAccount-content :is(.woocommerce-message,.woocommerce-info,.woocommerce-error){border:1px solid #dedee1!important;border-radius:10px!important;background:#fff!important;color:#272727!important;box-shadow:none!important;padding:14px 16px 14px 44px!important}
