/* Shared by the three App Training takes: pieces every take uses (the remembered coach states, the coach pair, the
   picker chips, the app headcount mark, the steps, other ways to train). Each take's own idea lives in take.css. */

.tcc-hy { font-family: "Archivo", system-ui, sans-serif; font-weight: 500; font-stretch: 100%; }

/* ---------- remembered coach: show per state ---------- */
/* one value per element: none | josh | darren | chosen (either coach) */
html:not([data-coach="josh"]):not([data-coach="darren"]) :is([data-when="josh"], [data-when="darren"], [data-when="chosen"]),
html[data-coach="josh"] :is([data-when="none"], [data-when="darren"]),
html[data-coach="darren"] :is([data-when="none"], [data-when="josh"]) { display: none !important; }

/* ---------- the app headcount mark: the client (cyan dot) and their phone (Sam, 13 Oct) ---------- */
.ap-mark { display: inline-flex; align-items: center; gap: .42em; color: var(--tcc-brand); vertical-align: middle; }
.ap-mark::before { content: ''; width: .5em; height: .5em; border-radius: 50%; background: currentColor; }
.ap-mark::after { content: ''; width: .58em; height: .98em; border-radius: .14em; box-shadow: inset 0 0 0 .1em currentColor; }

/* ---------- coach picker chip and the Switch link: styled in roles.css (the polish standard, A3) ---------- */

/* ---------- the coach pair: matched cutouts on one ground ---------- */
.ap-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(8px, 2vw, 40px); align-items: start; }
.ap-coach { position: relative; display: grid; justify-items: center; text-align: center; transition: opacity .5s var(--tcc-easing-arrive), filter .5s var(--tcc-easing-arrive); }
.ap-coach__cut { width: min(100%, 340px); aspect-ratio: 600 / 852; display: flex; align-items: flex-end; justify-content: center; }
.ap-coach__cut img { max-height: 100%; width: auto; object-fit: contain; object-position: bottom; }
.ap-coach__cut img[data-who="darren"] { height: 96%; }
.ap-coach__name { margin-top: 14px; font: 500 clamp(24px, 2.4vw, calc(36px + var(--tcc-up) * .03))/1 var(--tcc-font-heading); color: var(--tcc-heading); letter-spacing: -.02em; }
.ap-coach__name span { color: #7d8386; }
.ap-coach__works { margin-top: 8px; max-width: 30ch; font-size: 15px; line-height: 1.45; color: var(--tcc-on-dark-muted); }
html[data-coach="josh"] .ap-coach[data-who="darren"], html[data-coach="darren"] .ap-coach[data-who="josh"] { opacity: .38; filter: grayscale(1); }

/* ---------- steps ---------- */
.ap-steps { display: grid; gap: clamp(28px, 3vw, 48px); counter-reset: s; }
@media (min-width: 900px) { .ap-steps { grid-template-columns: repeat(4, 1fr); } }
.ap-steps li { counter-increment: s; display: grid; gap: 10px; align-content: start; }
.ap-steps li::before { content: counter(s); font: 500 clamp(44px, 4.6vw, calc(72px + var(--tcc-up) * .05))/1 var(--tcc-font-heading); color: var(--tcc-brand); letter-spacing: -.03em; }
.ap-steps h3 { font-size: clamp(22px, 1.8vw, calc(28px + var(--tcc-up) * .02)); line-height: 1.15; }
.ap-steps p { color: var(--tcc-on-dark-muted); max-width: 34ch; }

/* ---------- other ways to train ---------- */
.ap-other { background: var(--tcc-ground); padding: var(--tcc-space-xl) 0; border-top: 1px solid var(--tcc-border); }
.ap-other__title { font-size: var(--tcc-text-2xl); }
.ap-other__row { display: grid; gap: 12px; margin-top: var(--tcc-space-m); }
@media (min-width: 768px) { .ap-other__row { grid-template-columns: 1fr 1fr; gap: 18px; } }
.ap-other__link { display: grid; gap: 6px; padding: clamp(20px, 2.4vw, 32px); border-radius: var(--tcc-radius-card); background: var(--tcc-surface); text-decoration: none;
  box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .35s var(--tcc-easing-arrive); }
.ap-other__name { display: flex; align-items: center; gap: 14px; font: 500 clamp(22px, 2vw, 30px)/1.1 var(--tcc-font-heading); color: var(--tcc-heading); }
.ap-other__desc { color: var(--tcc-on-dark-muted); }
.hc { display: inline-flex; gap: 5px; }
.hc i { width: 8px; height: 8px; border-radius: 50%; background: var(--tcc-brand); }

/* the ask: the remembered coach's chip carries the cyan ring; the other stays, never hidden */
.tcc-ask .tcc-chip.is-picked { box-shadow: inset 0 0 0 1.5px var(--tcc-brand); border-radius: 999px; }
.ap-ask__note { margin-top: 14px; font-size: 15px; color: var(--tcc-on-dark-muted); }
