/* Shared by the three Training takes: the remembered-coach states, the headcount marks, the coach pair, where we train.
   Class prefix tr- (namespaced for this page). */
.tcc-hy { font-family: "Archivo", var(--tcc-font-heading); }

/* remembered coach: [data-when] shows only in its state */
[data-when] { display: none; }
html[data-coach="none"] [data-when="none"], html:not([data-coach]) [data-when="none"],
html[data-coach="josh"] [data-when="josh"], html[data-coach="darren"] [data-when="darren"],
html[data-coach="josh"] [data-when="chosen"], html[data-coach="darren"] [data-when="chosen"] { display: revert; }

/* the headcount marks: grey coach dot, then a cyan dot per person training, or a phone for the app (Sam, 11 Oct) */
.tr-marks { --d: 9px; display: inline-flex; align-items: center; gap: calc(var(--d) * .6); color: var(--tcc-brand); }
.tr-marks i { flex: none; width: var(--d); height: var(--d); border-radius: 50%; background: currentColor; }
.tr-marks i.co { background: #b9bcbd; margin-right: calc(var(--d) * .3); }
.tr-marks i.ph { width: calc(var(--d) * 1.2); height: calc(var(--d) * 1.85); border-radius: calc(var(--d) * .3); background: none; box-shadow: inset 0 0 0 calc(var(--d) * .2) currentColor; }

/* section heads */
.tr-h2 { font-size: var(--t-h2); line-height: 1.04; letter-spacing: -.02em; }
.tr-lede { color: var(--c-body); max-width: 46ch; font-size: var(--t-lede); line-height: 1.5; }

/* the coach pair: both cutouts on one ground, same size, same light */
.tr-coaches { padding: var(--tcc-section-y) 0; }
.tr-coaches__head { display: grid; gap: 18px; max-width: 760px; }
.tr-pair { margin-top: var(--tcc-space-xl); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 3vw, 48px); max-width: 980px; }
@media (max-width: 599px) { .tr-coach__name { flex-wrap: wrap; gap: 0 8px; } .tr-coach__name span { display: block; } .tr-coach__pick { padding: 0 14px 0 12px; } }
.tr-coach { position: relative; display: grid; gap: 14px; align-content: start; }
.tr-coach__fig { position: relative; aspect-ratio: 4 / 5; max-width: 300px; width: 100%; border-radius: var(--tcc-radius-card); overflow: clip;
  background: radial-gradient(120% 90% at 50% 100%, #1d2a2f 0%, #121517 55%, #0e1011 100%); box-shadow: inset 0 0 0 1px var(--tcc-border); }
.tr-coach__fig::after { content: ''; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(to top, rgba(11,13,14,.85), transparent); }
.tr-coach__fig img { position: absolute; left: 50%; bottom: 0; width: 92%; height: auto; transform: translateX(-50%); filter: grayscale(.15) contrast(1.02); }
.tr-coach__name { display: flex; align-items: center; gap: 10px; font: 500 var(--t-h3)/1.1 var(--tcc-font-heading); color: var(--c-heading); letter-spacing: -.015em; }
.tr-coach__name i { flex: none; width: 12px; height: 12px; border-radius: 50%; background: #b9bcbd; transition: background-color .3s, box-shadow .3s; }
.tr-coach__name span { color: var(--c-meta); }
.tr-coach p { color: var(--c-body); font-size: var(--t-body); max-width: 34ch; }
/* the coach pick is the shared chip (.chip .chip--dot in base.css) */
.tr-coach__pick { justify-self: start; }
html[data-coach="josh"] .tr-coach[data-c="josh"] .tr-coach__name i, html[data-coach="darren"] .tr-coach[data-c="darren"] .tr-coach__name i { background: var(--tcc-brand); box-shadow: 0 0 0 5px rgba(54,174,203,.18); }
html[data-coach="josh"] .tr-coach[data-c="darren"] .tr-coach__fig, html[data-coach="darren"] .tr-coach[data-c="josh"] .tr-coach__fig { opacity: .55; }
.tr-coach__fig { transition: opacity .4s var(--tcc-easing-soft); }
.tr-coaches__note { margin-top: var(--tcc-space-m); color: var(--c-meta); font-size: var(--t-meta); display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; }


/* where we train */
.tr-where { padding: var(--tcc-section-y) 0; border-top: 1px solid var(--tcc-border); }
.tr-where__grid { margin-top: var(--tcc-space-l); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); }
.tr-place { display: grid; gap: 10px; align-content: start; }
.tr-place h3 { font-size: var(--t-h3); line-height: 1.1; }
.tr-place p { color: var(--c-body); font-size: var(--t-body); }
.tr-place .tr-marks { --d: 8px; margin-bottom: 6px; }
.tr-where__facts { margin-top: var(--tcc-space-l); display: flex; flex-wrap: wrap; gap: 8px 32px; color: var(--c-meta); font-size: var(--t-meta); }
.tr-where__facts b { color: var(--c-heading); font-weight: 600; }
@media (max-width: 767px) { .tr-where__grid { grid-template-columns: 1fr; } }

/* the ask: the chosen coach's chip is ringed cyan */
.tcc-chip.is-chosen .tcc-chip__ph { box-shadow: 0 0 0 2px var(--tcc-brand); }
.tr-ask-switch { margin-top: 10px; text-align: center; color: var(--c-meta); font-size: var(--t-meta); }

/* the page ends where the shared footer will start */
.tr-end { height: 1px; }

/* the shared footer sits sticky under the page, so every section of main needs a solid ground above it */
main { background: var(--tcc-ground); }
