/* B29: live letterforms, a directional bevel and independent engraved metalwork. */
@font-face {
  font-family: TrainerGothic;
  src: url('./gothic-ponomar.woff') format('woff');
  font-display: swap;
}
@font-face {
  font-family: TrainerUI;
  src: url('./gothic-ui-regular.woff') format('woff');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: TrainerUI;
  src: url('./gothic-ui-bold.woff') format('woff');
  font-weight: 700;
  font-display: swap;
}
:root {
  --chrome-plain: #281526;
  --chrome-outline: #261422;
  --chrome-face: linear-gradient(172deg,#fdf4fa 6%,#9e899c 21%,#554154 33%,#190e1b 49%,#fff0fa 53%,#e1bdcf 64%,#6d3559 84%,#35132b);
  --chrome-veil: #f9f4f8;
}
:root[data-theme='dark'] {
  --chrome-plain: #fff0f7;
  --chrome-outline: #4b3146;
  --chrome-face: linear-gradient(172deg,#fff9fd 9%,#ccb9ca 27%,#a38da2 42%,#fff6fb 49%,#e7cddf 63%,#b16c95 85%,#eeabc8);
  --chrome-veil: #100c14;
}
.chrome-defs { position: absolute; overflow: hidden; pointer-events: none; }
body,.app-shell,.app-shell * { font-family: TrainerUI,system-ui,sans-serif !important; }
.app-shell :is(button,strong,b,h2,h3) { font-weight: 700 !important; }
.app-shell :is(.technique-b14,.progress-b16) h2 { font-style: normal; letter-spacing: .005em; }
.app-shell .chrome-title {
  --ornament-width: 100%;
  font-style: normal;
  text-transform: none;
  letter-spacing: -.012em;
  line-height: 1.05;
  color: var(--chrome-plain);
  overflow-wrap: anywhere;
}
.app-shell .chrome-title,.app-shell .chrome-title * {
  font-family: TrainerGothic,Georgia,serif !important;
  font-weight: 700 !important;
  font-feature-settings: 'ss02';
}
.chrome-face { display: block; }
.chrome-ornament {
  display: block;
  width: var(--ornament-width);
  max-width: 100%;
  height: auto;
  aspect-ratio: 7 / 1;
  margin: 1px 0 0;
  pointer-events: none;
}
@supports (-webkit-background-clip:text) {
  .chrome-face { filter: url('#trainer-metal-relief'); }
  .chrome-ink {
    background-image: var(--chrome-face);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: .3px var(--chrome-outline);
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
  }
}
.app-shell .workout-b11 .page-heading,.app-shell .workout-b11 .workout-meta,
:root[data-theme='dark'] .app-shell .workout-b11 .page-heading,
:root[data-theme='dark'] .app-shell .workout-b11 .workout-meta { background: none; }
.app-shell .workout-b11 .workout-poster-heading { min-height: 260px; }
.app-shell .workout-b11 .page-heading {
  width: min(54%,200px);
  max-width: none;
  padding: 6px 0;
  position: relative;
  isolation: isolate;
}
.app-shell .workout-b11 .page-heading::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -20px -15px -16px -15px;
  background: radial-gradient(ellipse at 34% 47%,var(--chrome-veil) 20%,transparent 78%);
  pointer-events: none;
}
.app-shell .chrome-workout {
  --ornament-width: min(100%, 220px);
  font-size: clamp(1.85rem,8.6vw,2.35rem);
  line-height: 1.1;
}
.app-shell .workout-b11 { container-type: inline-size; }
/* At a narrow effective text width, give the live title the entire reading lane. */
@container (max-width: 16rem) {
  .app-shell .workout-b11 .workout-poster-art {
    inset-inline: 0;
    width: 100%;
    height: min(60vw, 245px);
    mask-image: linear-gradient(#000 62%, transparent);
  }
  .app-shell .workout-b11 .workout-poster-art img { object-fit: cover; }
  .app-shell .workout-b11 .workout-poster-heading {
    min-height: 0;
    padding-top: min(60vw, 245px);
  }
  .app-shell .workout-b11 .page-heading { width: 100%; }
  .app-shell .workout-b11 .page-heading::before { content: none; }
  .app-shell .workout-b11 .chrome-workout { font-size: 1.5rem; }
}
.app-shell .workout-b11 .page-heading > .eyebrow { color: #810043; text-shadow: 0 0 3px white,0 0 5px white; }
:root[data-theme='dark'] .app-shell .workout-b11 .page-heading > .eyebrow { color: #ffa6d3; text-shadow: 0 0 3px black,0 0 5px black; }
.app-shell .home-slogan {
  --ornament-width: 96%;
  max-width: 39%;
  text-align: right;
  top: 98px;
  right: 7px;
  z-index: 1;
  font-size: clamp(16px,5.3vw,22px);
  text-shadow: none;
}
.chrome-home .chrome-ornament { margin-left: auto; }
.app-shell .home-scene::after {
  content: '';
  position: absolute;
  right: 0;
  top: 77px;
  width: 40%;
  height: 147px;
  pointer-events: none;
  background: radial-gradient(ellipse at 81% 52%,var(--chrome-veil) 12%,transparent 79%);
}
.app-shell :is(.technique-b14,.progress-b16) .heading .chrome-title {
  --ornament-width: 142px;
  font-size: clamp(2.15rem,10.4vw,2.85rem);
}
.app-shell .technique-b14 .poster-title,.app-shell .progress-b16 .hero-caption {
  --ornament-width: 110px;
  max-width: 61%;
  font-size: clamp(1.3rem,6.4vw,1.78rem);
}
.app-shell .technique-b14 .poster-title { bottom: 13px; }
.app-shell .progress-b16 .hero-caption { margin-top: 20px; max-width: 68%; }
.app-shell .progress-b16 .subhead{gap:8px}
.app-shell .progress-b16 .subhead>div{min-width:0;flex:1}
.app-shell .progress-b16 .subhead h2{font-size:clamp(1.1rem,5.4vw,1.35rem);line-height:1.06;overflow-wrap:normal;word-break:normal}
.app-shell .progress-b16 .subhead>b{flex:0 1 38%;min-width:0}
.app-shell :is(small,.tiny,.eyebrow,.badge,.label,.kicker,.step-top,.end-tag,.poster-bar,.head-index,.hero-top,.window-mode,.date){font-size:12px!important}
.app-shell :is(.workout-b11 .stat-grid span,.progress-b16 .subhead>b,.progress-b16 .empty>b,.technique-b14 .instruction-head span,.technique-b14 .poster-number,.brand-caption){font-size:12px!important}
:root[data-theme='dark'] .app-shell .progress-b16 .empty>b{color:#ff83bd}
.app-shell .technique-b14 :is(.poster-bar,.step-top),.app-shell .progress-b16 .hero-top{gap:6px;flex-wrap:wrap}
.app-shell .bottom-nav { display: grid; }
.app-shell .bottom-nav button { min-width: 0; flex-wrap: wrap; align-content: center; }
.app-shell .bottom-nav button span { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
@media (max-width: 350px) {
  .app-shell .bottom-nav { gap: 0; grid-template-columns: minmax(0,.94fr) minmax(0,1.4fr) minmax(0,1.06fr); }
  .app-shell .bottom-nav button { padding-inline: 2px; gap: 2px; }
  .app-shell .home-art { left: -64px; }
  .app-shell .home-slogan { font-size: 16px; max-width: 104px; top: 118px; right: 6px; }
}

.app-shell :is(.progress-b16 .hero-top,.technique-b14 .end-tag){font-size:11px!important}

.app-shell .brand-name { font-size: 1.15rem; letter-spacing: .035em; }
.app-shell :is(.home-scene .button,.workout-b11 .current-card .button,.technique-b14 .back) {
  font-size: 1rem;
  letter-spacing: .025em;
}
.app-shell .workout-b11 .current-card h2 { font-size: 1.45rem; }
.app-shell .bottom-nav button { font-size: .8rem; }
@media (max-width: 350px) {
  .app-shell .bottom-nav button { font-size: .72rem; }
}
@media (forced-colors: active) {
  .chrome-face { filter: none; }
  .chrome-ink { background: none; -webkit-text-fill-color: CanvasText; -webkit-text-stroke: 0; }
  .chrome-ornament { display: none; }
}
.app-shell .chrome-home { overflow-wrap: normal; }

/* Keep training prescriptions distinct from their captions. */
.app-shell .workout-b11 .stat-grid strong {
  font-size: 1.4rem;
  font-variant-numeric: lining-nums tabular-nums;
  overflow-wrap: anywhere;
}
