/* App Training: the polish standard's system layer (docs/polish-standard-2026-11-06.md, Part A), shared by all three
   takes. Loaded after the shared components and app.css, before each take.css. Type roles are fluid between 393 and
   1440 and keep growing above 1440 with --tcc-up. Text colours are the four levels only: heading, body, meta, accent. */

:root {
  /* A1 type roles */
  --ap-h2: clamp(32px, 25.99px + 1.528vw, calc(48px + var(--tcc-up) * .03));
  --ap-h3: clamp(23px, 21.12px + .4776vw, calc(28px + var(--tcc-up) * .02));
  --ap-lede: clamp(19px, 17.87px + .2865vw, calc(22px + var(--tcc-up) * .01));
  --ap-body: clamp(17px, 16.62px + .0955vw, calc(18px + var(--tcc-up) * .01));
  --ap-meta: 15px;
  --ap-label: 13px;
  --ap-statement: clamp(42px, 24.73px + 4.394vw, calc(88px + var(--tcc-up) * .06));
  /* A2 text colour levels */
  --ap-c-heading: var(--tcc-heading);
  --ap-c-body: var(--tcc-on-dark-muted);
  --ap-c-meta: var(--tcc-text-muted);
  --ap-c-accent: var(--tcc-brand-hi);
  /* A4 UI feedback */
  --ap-ui: .2s var(--tcc-easing-soft);
}

/* element defaults: a class on the page or in a component may set its own role on top */
h2 { font-size: var(--ap-h2); line-height: 1.04; }
h3 { font-size: var(--ap-h3); line-height: 1.1; }

/* the role classes, for markup that has no better hook */
.ap-label { font: 600 var(--ap-label)/1.3 var(--tcc-font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ap-c-meta); }
.ap-meta { font: 400 var(--ap-meta)/1.5 var(--tcc-font-body); color: var(--ap-c-meta); }

/* A4 focus: one ring everywhere on a dark ground (2px Accent, 3px offset) */
:focus-visible { outline: 2px solid var(--ap-c-accent); outline-offset: 3px; }
.tcc-chip:focus-visible, .tcc-ask__go:focus-visible { outline: 2px solid var(--ap-c-accent); outline-offset: 3px; }

/* A3 text links: body size, Host Grotesk 500, Accent, 1px underline at 0.2em; hover lifts to white and thickens */
.ap-switch, .tcc-ask__mail a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  font: 500 var(--ap-body)/1.3 var(--tcc-font-body); color: var(--ap-c-accent);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; text-decoration-color: currentColor;
  transition: color var(--ap-ui), text-decoration-thickness var(--ap-ui);
}
@media (hover: hover) and (pointer: fine) {
  .ap-switch:hover, .tcc-ask__mail a:hover { color: var(--tcc-text); text-decoration-thickness: 2px; }
}
.ap-switch:active, .tcc-ask__mail a:active { color: var(--tcc-text); }

/* A3 chips and choices: pill, hairline ring at rest, Accent ring and a faint Accent fill when selected, plus a dot
   so the selected state never rests on colour alone. Control text 15/600. */
.ap-pick, .ap-chip {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); color: var(--tcc-text);
  font: 600 var(--tcc-control-fs-lg)/1 var(--tcc-font-body);
  transition: box-shadow var(--ap-ui), background-color var(--ap-ui), color var(--ap-ui), transform var(--ap-ui);
}
.ap-pick { padding: 4px 18px 4px 4px; }
.ap-chip { padding: 0 16px; }
.ap-pick:not(:has(img)) { padding: 4px 20px; }
@media (hover: hover) and (pointer: fine) {
  .ap-pick:hover, .ap-chip:hover { box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); }
}
.ap-pick:active, .ap-chip:active { transform: scale(.97); }
.ap-pick[aria-pressed="true"], .ap-chip[aria-pressed="true"] {
  box-shadow: inset 0 0 0 1.5px var(--ap-c-accent); background: rgba(92,195,220,.1); color: var(--tcc-text);
}
.ap-pick::after, .ap-chip::after { content: ''; width: 7px; height: 7px; margin-left: -4px; border-radius: 50%; background: var(--ap-c-accent);
  transform: scale(0); transition: transform var(--ap-ui), margin var(--ap-ui); }
.ap-pick[aria-pressed="true"]::after, .ap-chip[aria-pressed="true"]::after { transform: scale(1); margin-left: 2px; }

/* shared pieces, set to their roles */
.ap-coach__name { font-size: var(--ap-h3); line-height: 1.1; letter-spacing: -.015em; }
.ap-coach__name span { color: var(--ap-c-meta); }
.ap-coach__works { font-size: var(--ap-meta); line-height: 1.5; color: var(--ap-c-meta); }
.ap-steps h3 { font-size: var(--ap-h3); line-height: 1.1; }
.ap-other__title { font-size: var(--ap-h2); line-height: 1.04; }
.ap-other__name { font-size: var(--ap-h3); }
.ap-other__link { transition: box-shadow var(--ap-ui), transform var(--ap-ui); }
.ap-other__link:hover { box-shadow: inset 0 0 0 1px transparent; }
@media (hover: hover) and (pointer: fine) { .ap-other__link:hover { box-shadow: inset 0 0 0 1px var(--ap-c-accent); } }
.ap-other__link:active { transform: scale(.99); }
.ap-ask__note { font-size: var(--ap-meta); color: var(--ap-c-meta); display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; }

/* shared components on these pages: labels are Meta (not cyan); greys come from the four levels */
.tcc-write-block .tcc-write-block__label, .tcc-quotes__h {
  font: 600 var(--ap-label)/1.3 var(--tcc-font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ap-c-meta);
}
.tcc-quotes .tcc-quotes__in .tcc-quotes__h { font: 600 var(--ap-label)/1.3 var(--tcc-font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--q-ink, var(--tcc-text-on-brand)); }
.tcc-quotes .tcc-quotes__dot { min-width: 44px; }
.tcc-ask__coaches > span, .tcc-chip__sur { color: var(--ap-c-meta); }
.tcc-ask__line { font-size: var(--ap-lede); line-height: 1.5; }
