/* Wah-Kit Tai Chi (/wellness/tai-chi/): calm jade on the site's own ground */
.tc { --jade: #2F7D62; --jade-soft: #DCEEE6; --clay: #B5643C; --clay-soft: #F6E3D8; --stage: #DCE5DF; --tc-display: 'Marcellus', var(--font-display); padding-bottom: 40px; }
.tc-crumb { padding-top: 16px; font-size: 14px; color: var(--muted); }
.tc-crumb a { color: var(--jade); text-decoration: none; font-weight: 600; }
.tc-top { padding: 6px 0 14px; display: grid; gap: 4px; }
.tc-top h1 { margin: 0; font-size: clamp(26px, 4vw, 38px); font-weight: 800; }
.tc-lede { margin: 0; color: var(--ink-soft); max-width: 700px; }

.tc-studio { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.tc-stage { position: relative; aspect-ratio: 4 / 4.3; max-width: 100%; border-radius: 22px; overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(110% 85% at 50% 18%, #FFFFFF, var(--stage)); touch-action: none; cursor: grab; }
.tc-stage:active { cursor: grabbing; }
.tc-stage canvas { display: block; width: 100%; height: 100%; }
.tc-load { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-soft); font-weight: 600; text-align: center; padding: 20px; }
.tc-breath { position: absolute; left: 12px; top: 12px; display: flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.tc-breath i { width: 22px; height: 22px; border-radius: 50%; background: var(--jade-soft); border: 2px solid var(--jade); transition: transform 2.4s ease, background .5s, border-color .5s; }
.tc-breath.in i { transform: scale(1.35); }
.tc-breath.out i { transform: scale(.7); background: var(--clay-soft); border-color: var(--clay); }
.tc-views { position: absolute; right: 12px; top: 12px; display: flex; gap: 6px; }
.tc-chip { font: 600 13px var(--font-body); padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.tc-chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tc-caption { position: absolute; left: 50%; bottom: 58px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 28px); padding: 9px 16px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 15.5px; text-align: center; transition: opacity .4s; }
.tc-caption:empty { opacity: 0; }
.tc-fsbtn { position: absolute; z-index: 2; left: 12px; bottom: 12px; font: 600 13px var(--font-body); padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.tc-fsbar { display: none; }
.tc-startover { position: absolute; z-index: 1; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; background: rgba(238, 242, 238, .55); }
.tc-bigplay { font: 700 18px var(--font-body); padding: 16px 26px; border-radius: 999px; border: 0; background: var(--jade); color: #fff; cursor: pointer; display: grid; gap: 2px; text-align: center; }
.tc-bigplay small { font-weight: 500; font-size: 13px; opacity: .9; }
.tc-fsbtn2 { font: 600 14px var(--font-body); padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }

.tc-panel { display: grid; gap: 12px; min-width: 0; }
.tc-movehead { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px; }
.tc-mt { display: grid; text-align: center; min-width: 0; }
.tc-num { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--jade); }
.tc-mt b { font-size: 18px; line-height: 1.25; text-wrap: balance; }
.tc-zh { color: var(--muted); font-size: 15px; }
.tc-btn { font: 600 15px var(--font-body); min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.tc-btn.primary { background: var(--jade); border-color: var(--jade); color: #fff; }
.tc-btn[aria-pressed="true"] { background: var(--jade-soft); border-color: var(--jade); }
.tc-btn.tc-nav { width: 44px; padding: 0; font-size: 24px; }
.tc-btn:disabled { opacity: .4; cursor: default; }
.tc-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.tc-all { display: flex; gap: 8px; align-items: center; font-size: 14.5px; color: var(--ink-soft); }
.tc-all input { width: 18px; height: 18px; accent-color: var(--jade); }
.tc-scrub { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font-variant-numeric: tabular-nums; font-size: 13px; color: var(--muted); }
.tc-scrub input, .tc-sound input { width: 100%; accent-color: var(--jade); }
.tc-sound { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; align-items: center; font-size: 14px; color: var(--ink-soft); }
.tc-steps { margin: 0; padding: 12px 14px 12px 34px; background: #fff; border: 1px solid var(--line); border-radius: 16px; display: grid; gap: 4px; color: var(--ink-soft); font-size: 14.5px; }
.tc-btn:focus-visible, .tc-chip:focus-visible, .tc-fsbtn:focus-visible, .tc-fsbtn2:focus-visible, .tc-bigplay:focus-visible, .tc-moves button:focus-visible, .tc-fsbar button:focus-visible, .tc input:focus-visible { outline: 3px solid var(--jade); outline-offset: 2px; }

.tc-list { margin-top: 30px; }
.tc-list h2, .tc-lesson h2 { font-size: 24px; margin: 0 0 12px; }
.tc-moves { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.tc-moves button { width: 100%; text-align: left; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; font: 600 14.5px var(--font-body); }
.tc-moves .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--stage); color: var(--ink-soft); font-size: 13px; }
.tc-moves button[aria-current="true"] { border-color: var(--jade); box-shadow: 0 0 0 1px var(--jade) inset; }
.tc-moves button[aria-current="true"] .n { background: var(--jade); color: #fff; }
.tc-moves small { display: block; color: var(--muted); font-weight: 500; }

.tc-lesson { margin-top: 34px; display: grid; gap: 14px; }
.tc-p { margin: 0; color: var(--ink-soft); max-width: 70ch; }
.tc-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; }
.tc-cols h3 { margin: 0 0 6px; font-size: 18px; }
.tc-cols ul { margin: 0; padding-left: 20px; color: var(--ink-soft); }
.tc-note { margin: 0; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; background: #fff; color: var(--ink-soft); font-size: 14.5px; }
.tc-note b { color: var(--ink); }
.tc-small { margin: 0; font-size: 13px; color: var(--muted); }

@media (max-width: 820px) {
  .tc-studio { grid-template-columns: minmax(0, 1fr); }
  .tc-stage { aspect-ratio: 1 / 1.05; }
  .tc-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .tc-lede { display: none; }
  .tc-top { padding-bottom: 10px; }
  .tc-breath { top: 54px; }
  .tc-steps { display: none; }
}

/* full-screen practice */
body.tc-focus { overflow: hidden; }
body.tc-focus .tc-stage { position: fixed; inset: 0; z-index: 50; aspect-ratio: auto; border-radius: 0; border: 0; max-width: none;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
body.tc-focus .tc-stage canvas { height: calc(100% - 150px); }
body.tc-focus .tc-fsbtn { display: none; }
body.tc-focus .tc-views { top: calc(12px + env(safe-area-inset-top, 0px)); right: calc(12px + env(safe-area-inset-right, 0px)); }
body.tc-focus .tc-breath { top: calc(12px + env(safe-area-inset-top, 0px)); left: calc(12px + env(safe-area-inset-left, 0px)); }
@media (max-width: 520px) { body.tc-focus .tc-breath { top: calc(54px + env(safe-area-inset-top, 0px)); } }
body.tc-focus .tc-caption { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); font-size: 17px; }
body.tc-focus .tc-fsbar { display: flex; gap: 8px; position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
.tc-fsbar button { white-space: nowrap; font: 700 16px var(--font-body); min-height: 50px; min-width: 50px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.tc-fsbar button.primary { background: var(--jade); border-color: var(--jade); color: #fff; min-width: 116px; }
@media (max-height: 520px) and (orientation: landscape) {
  body.tc-focus .tc-stage canvas { height: 100%; }
  body.tc-focus .tc-stage .tc-fsbar { flex-direction: column; left: auto; transform: translateY(-50%); top: 50%; bottom: auto; right: calc(16px + env(safe-area-inset-right, 0px)); }
  body.tc-focus .tc-stage .tc-caption { top: calc(12px + env(safe-area-inset-top, 0px)); bottom: auto; max-width: 42%; font-size: 15px; }
  body.tc-focus .tc-stage .tc-views { top: auto; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) { .tc-breath i { transition: none; } }
.tc-pace { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14.5px; color: var(--ink-soft); }
.tc-pace span { margin-right: 4px; }
.tc-pace button { font: 600 14px var(--font-body); min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.tc-pace button[aria-pressed="true"] { background: var(--jade); border-color: var(--jade); color: #fff; }
.tc-pace button:focus-visible { outline: 3px solid var(--jade); outline-offset: 2px; }
/* pace chip on the stage: always in reach on a phone and in full screen */
.tc-pacechip { position: absolute; z-index: 2; right: 12px; bottom: 12px; padding: 7px 12px; }
body.tc-focus .tc-pacechip { bottom: auto; top: calc(54px + env(safe-area-inset-top, 0px)); right: calc(12px + env(safe-area-inset-right, 0px)); }
@media (max-height: 520px) and (orientation: landscape) {
  body.tc-focus .tc-stage .tc-pacechip { top: auto; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); right: auto; left: calc(12px + env(safe-area-inset-left, 0px)); }
}
