/* Shared base for the three Training concept takes: reset, type defaults, the header pill, the live
   arrow buttons and the footer, restated from the live /home-rebuild/ so the takes are judged on what differs.
   Polish round, 6 Nov (docs/polish-standard-2026-11-06.md): the type roles (A1), the four text colour levels (A2), one
   text link, one chip, one focus ring, hover only where a fine pointer can hover, and a small press on every control. */

/* ---------- A1 type roles: 1440 / 393, fluid between, growing above 1440 with --tcc-up ---------- */
:root {
  --t-statement: clamp(2.625rem, 1.546rem + 4.393vw, calc(5.5rem + var(--tcc-up) * .06));   /* 42 / 88 */
  --t-h2: clamp(2rem, 1.625rem + 1.528vw, calc(3rem + var(--tcc-up) * .016));                /* 32 / 48 */
  --t-h3: clamp(1.4375rem, 1.32rem + .478vw, calc(1.75rem + var(--tcc-up) * .008));          /* 23 / 28 */
  --t-lede: clamp(1.1875rem, 1.117rem + .287vw, calc(1.375rem + var(--tcc-up) * .0036));     /* 19 / 22 */
  --t-body: clamp(1.0625rem, 1.039rem + .096vw, calc(1.125rem + var(--tcc-up) * .0018));     /* 17 / 18 */
  --t-meta: 15px;
  --t-label: 13px;
  /* A2 text colour levels */
  --c-heading: var(--tcc-heading);        /* #E6E8E9 */
  --c-body: var(--tcc-on-dark-muted);     /* .78 */
  --c-meta: var(--tcc-text-muted);        /* .62 */
  --c-accent: var(--tcc-brand-hi);        /* #5cc3dc: links, active, chosen */
  /* A3 chips: the shared ask component's ring, an Accent ring and faint Accent fill when selected */
  --chip-ring: rgba(255,255,255,.16);
  --chip-ring-hover: rgba(255,255,255,.4);
  --chip-fill-on: rgba(92,195,220,.12);
  --ui-t: .2s;                            /* A4: UI feedback 160 to 240ms on the soft easing */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--tcc-ground); color: var(--c-body);
  font-family: var(--tcc-font-body); font-size: var(--t-body); line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }   /* a button never falls back to the system face (take 3 showed Arial, 6 Nov) */
h1, h2, h3, h4 { font-family: var(--tcc-font-heading); font-weight: 500; color: var(--c-heading); margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: var(--tcc-text-4xl); line-height: .95; }
h2 { font-size: var(--t-h2); line-height: 1.04; letter-spacing: -.02em; }
h3 { font-size: var(--t-h3); line-height: 1.1; letter-spacing: -.015em; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(100% - 2 * var(--tcc-edge), var(--tcc-wrap)); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }
/* the label role: Meta colour, never cyan (cyan is for what you can act on or what is active) */
.lbl { font: 600 var(--t-label)/1.3 var(--tcc-font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--c-meta); }
.nb { white-space: nowrap; }

/* ---------- Buttons: the live pill, "Reveal" (tcc-btn--arrow since 5 Nov; Sam picked it 4 Nov) ----------
   The plain arrow sits bare after the label; on hover (pointing devices), keyboard focus or a press a disc grows behind it
   while the arrow slides through. The circle keeps its footprint at rest. Each variant sets the arrow colour (color on
   .btn__ic) and the disc colour (--disc). Mirrors bricks/controls/classes.json. */
.btn {
  --h: var(--tcc-control-h-lg); --d: calc(var(--h) - 2 * var(--tcc-control-inset));
  display: inline-flex; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: calc(var(--h) * .26);
  height: var(--h); min-height: var(--tcc-control-touch); padding: 0 var(--tcc-control-inset) 0 calc(var(--h) * .48);
  border: 0; border-radius: var(--tcc-control-radius); width: fit-content;
  font: 600 var(--tcc-control-fs-lg)/1 var(--tcc-font-body); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .3s var(--tcc-easing-arrive), color .3s var(--tcc-easing-arrive), transform .16s var(--tcc-easing-soft);
}
.btn--sm { --h: var(--tcc-control-h-sm); font-size: var(--tcc-control-fs-sm); padding-left: calc(var(--h) * .45); min-height: var(--h); }
.btn__ic { position: relative; flex: none; width: var(--d); height: var(--d); border-radius: 999px; background: transparent; color: inherit; overflow: hidden; contain: paint;
  transition: color .3s var(--tcc-easing-arrive); }
.btn__ic::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--disc, transparent); transform: scale(0); transition: transform .4s var(--tcc-easing-arrive); }
.btn__ic > span { position: absolute; inset: 0 auto 0 0; display: flex; width: 200%; transform: translate3d(-50%,0,0); transition: transform .5s var(--tcc-easing-move); }
.btn__ic > span::before, .btn__ic > span::after {
  content: ''; flex: 0 0 50%; align-self: center; height: 16px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h11M9 4l4 4-4 4' fill='none' stroke='black' stroke-width='1.7'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h11M9 4l4 4-4 4' fill='none' stroke='black' stroke-width='1.7'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover .btn__ic::before { transform: scale(1); }
  .btn:hover .btn__ic > span { transform: translate3d(0,0,0); }
}
.btn:focus-visible .btn__ic::before, .btn:active .btn__ic::before { transform: scale(1); }
.btn:focus-visible .btn__ic > span, .btn:active .btn__ic > span { transform: translate3d(0,0,0); }
.btn--primary, .btn--primary:hover { --disc: var(--tcc-brand-hi); background: var(--tcc-brand); color: var(--tcc-text-on-brand); }
.btn--ghost { --disc: rgba(255,255,255,.22); background: var(--tcc-btn-ghost-fill); color: var(--tcc-text); box-shadow: inset 0 0 0 1px var(--tcc-btn-ghost-ring); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
@media (hover: hover) and (pointer: fine) { .btn--ghost:hover { background: var(--tcc-btn-ghost-fill-hover); } }
.btn--outline { --disc: var(--tcc-brand-hi); background: transparent; color: var(--tcc-text); box-shadow: inset 0 0 0 1.5px var(--tcc-brand); }
.btn--outline .btn__ic { color: var(--tcc-brand); }
@media (hover: hover) and (pointer: fine) {
  .btn--outline:hover { background: var(--tcc-brand); color: var(--tcc-ink); }
  .btn--outline:hover .btn__ic { color: var(--tcc-ink); }
}
.btn--outline:focus-visible, .btn--outline:active { background: var(--tcc-brand); color: var(--tcc-ink); }
.btn--outline:focus-visible .btn__ic, .btn--outline:active .btn__ic { color: var(--tcc-ink); }
/* A3 text link, one style on every page: body size, Host Grotesk 500, Accent, 1px underline at .2em; hover lifts it to
   white and thickens the line. (The sliding arrow of the old "tlink" is retired for the one style.) */
.tlink, .tx { font: 500 var(--t-body)/1.4 var(--tcc-font-body); color: var(--c-accent); text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: .2em; text-decoration-color: color-mix(in srgb, currentColor 55%, transparent);
  transition: color var(--ui-t) var(--tcc-easing-soft), text-decoration-color var(--ui-t) var(--tcc-easing-soft); }
.tlink { display: inline-flex; align-items: center; min-height: 44px; }
button.tx { background: none; border: 0; padding: 0 2px; min-height: 44px; cursor: pointer; font-size: inherit; }
@media (hover: hover) and (pointer: fine) { .tlink:hover, .tx:hover { color: var(--tcc-text); text-decoration-color: currentColor; text-decoration-thickness: 2px; } }
.tlink:active, .tx:active { color: var(--tcc-text); }

/* A3 chips and choices: pill, hairline ring at rest, Accent ring and faint Accent fill when selected, a filled dot as
   the second (non-colour) signal. Used by the coach picks and any mode chip. */
.chip { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px 0 14px; border: 0; border-radius: 999px; background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--chip-ring); color: var(--tcc-text); font: 600 15px/1 var(--tcc-font-body); text-decoration: none; cursor: pointer;
  transition: box-shadow var(--ui-t) var(--tcc-easing-soft), background-color var(--ui-t) var(--tcc-easing-soft), transform .16s var(--tcc-easing-soft); }
.chip--dot::before { content: ''; flex: none; width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; transition: background-color var(--ui-t) var(--tcc-easing-soft), box-shadow var(--ui-t); }
@media (hover: hover) and (pointer: fine) { .chip:hover { box-shadow: inset 0 0 0 1.5px var(--chip-ring-hover); } }
.chip[aria-pressed="true"], .chip[aria-current="true"] { box-shadow: inset 0 0 0 1.5px var(--c-accent); background: var(--chip-fill-on); }
.chip--dot[aria-pressed="true"]::before { background: var(--c-accent); box-shadow: none; }

/* A4 pressed: a small inward response on every control */
.btn:active, .chip:active { transform: scale(.97); }

/* ---------- Header pill (restated from the live header, simplified: no mega menu) ---------- */
.hd { position: fixed; z-index: 100; top: var(--tcc-top); left: 0; right: 0; pointer-events: none; }
.hd__pill {
  pointer-events: auto; margin-inline: auto; width: min(100% - 2 * var(--tcc-edge), 100vw);
  height: var(--tcc-bar); display: flex; align-items: center; gap: 24px;
  padding: 0 calc((var(--tcc-bar) - var(--tcc-header-btn-h)) / 2) 0 14px;
  border-radius: 999px; background: var(--tcc-header-fill); box-shadow: inset 0 0 0 1px var(--tcc-header-line);
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  transition: width .48s var(--tcc-easing-move);
}
.hd.is-narrow .hd__pill { width: min(100% - 2 * var(--tcc-edge), var(--tcc-header-narrow)); }
.hd__brand { display: block; flex: none; padding: 12px 0; margin: -12px 0; }   /* 44px tap height, same look */
.hd__brand img { height: calc(20px + var(--tcc-up) * .02); width: auto; }
.hd__links { display: flex; gap: calc(34px + var(--tcc-up) * .03); margin-inline: auto; }
.hd__links a { font: 500 var(--tcc-control-fs-nav)/1 var(--tcc-font-body); color: var(--tcc-header-link); text-decoration: none; padding: 10px 2px; }
@media (hover: hover) and (pointer: fine) { .hd__links a:hover { color: var(--tcc-text); } }
.hd__links a[aria-current] { color: var(--tcc-text); }
.hd__cta { flex: none; }
.hd__burger { display: none; margin-left: auto; width: var(--tcc-header-btn-h); height: var(--tcc-header-btn-h); min-width: 44px; min-height: 44px; border: 0; border-radius: 999px; background: rgba(255,255,255,.1); color: var(--tcc-text); cursor: pointer; place-items: center; }
.hd__menu { pointer-events: auto; margin: 8px auto 0; width: min(100% - 2 * var(--tcc-edge), 480px); padding: 12px; border-radius: 22px; background: var(--tcc-surface); box-shadow: inset 0 0 0 1px var(--tcc-header-line); }
.hd__menu a:not(.btn) { display: block; padding: 14px 12px; font: 500 20px/1.2 var(--tcc-font-heading); color: var(--tcc-text); text-decoration: none; border-bottom: 1px solid var(--tcc-border); }
.hd__menu .btn { margin: 14px 0 4px; width: 100%; justify-content: space-between; }
/* touch is possible under 1080: every header control reaches 44px */
@media (max-width: 1079px) {
  .hd__links a { padding: 17px 2px; }
  .hd__cta { --h: 44px; }
}
@media (max-width: 1023px) {
  .hd__links, .hd__cta { display: none; }
  .hd__burger { display: grid; }
}

/* ---------- Footer (restated from the live footer's content) ---------- */
.ft { background: #000; color: var(--tcc-text); padding: var(--tcc-space-2xl) 0 28px; }
.ft__top { display: grid; grid-template-columns: 1fr auto; gap: 32px 48px; align-items: end; }
.ft__ask { font: 500 var(--tcc-text-3xl)/1.05 var(--tcc-font-heading); color: var(--tcc-heading); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .ft__ask:hover { color: var(--tcc-brand-hi); } }
.ft__meta { display: grid; gap: 6px; font-size: 15px; color: var(--tcc-on-dark-muted); }
.ft__meta a { color: var(--tcc-text); }
.ft__bottom { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; margin-top: var(--tcc-space-xl); padding-top: 22px; border-top: 1px solid var(--tcc-border); font-size: 14px; color: var(--tcc-on-dark-muted); }
.ft__bottom a { color: var(--tcc-on-dark-muted); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.ft__social { display: flex; gap: 6px; }
.ft__social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--tcc-border); }
.ft__social svg { width: 18px; height: 18px; fill: currentColor; }
@media (max-width: 767px) { .ft__top { grid-template-columns: 1fr; } }

/* ---------- Reduced motion: every element finished and visible ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .btn__ic::before { display: none; }
  .btn:active, .chip:active { transform: none; }
}
