/*
 * Train look — workout library (/workout-library/) and workout pages (/workout-library/{id}/).
 * Refines the Eat & Train v2 compositions (eat-train/render/workouts.php, workout.php) for the Train track.
 * Scoped to body.sh-tr; loaded after train.css on the workouts surfaces (train-look/train-look.php).
 */

/* Stage cards on the track: solid white, Train ink accents. */
body.sh-tr .sl-mast--train :is(.etv-route-stage, .etv-ticket) { background: #fff !important; border: 0 !important; box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .1) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
body.sh-tr .sl-mast--train .etv-ticket .sl-eyebrow { color: var(--tr-ink) !important; }
body.sh-tr .sl-mast--train .etv-stage-cap { color: var(--sl-copy); }
body.sh-tr .sl-mast--train .etv-stage-cap a { color: var(--tr-ink); }
/* The two-part title: the "60-minute … workout:" lead-in reads quietly but legibly on navy. */
body.sh-tr .sl-mast--train .sl-mast-copy .etv-pre { color: var(--tr-copy-d) !important; opacity: 1 !important; }

/* The email widget sits as a slim toolbar under the start line instead of a lone band. */
body.sh-tr-workout .etv-email { padding-block: 14px 0 !important; margin-block: 0 !important; }

/* The library console: a calmer rail with Train chips. */
body.sh-tr .etv-console { border: 0 !important; border-radius: 24px !important; box-shadow: 0 0 0 1px var(--tr-rule), 0 30px 60px -44px rgba(12, 34, 54, .6) !important; }
body.sh-tr .etv-console :is(legend b, .etv-c-row > b, .etv-c-row > b label) { font: 800 12px/1.2 var(--sl-text) !important; letter-spacing: .14em; text-transform: uppercase; color: var(--sl-muted) !important; }
body.sh-tr .etv-chip:has(input:checked) > span { background: var(--tr-deep) !important; border-color: var(--tr-deep) !important; color: #fff !important; }
body.sh-tr .etv-chip:has(input:checked) > span .sl-i { color: var(--tr-sky) !important; }
body.sh-tr .etv-chip input:focus-visible + span { outline: 3px solid var(--tr-blue); outline-offset: 2px; }

/* Results head: a display title with a hairline, like the rest of Train. */
body.sh-tr .etv-results .sl-head--row { align-items: baseline; padding-bottom: 12px; border-bottom: 2px solid var(--sl-ink); margin-bottom: clamp(18px, 2.4vw, 26px); }

/* Workout tickets: the level dots become the Train level bars; minutes read as a stat. */
body.sh-tr .etv-wk { border: 0 !important; box-shadow: 0 0 0 1px var(--tr-rule) !important; }
body.sh-tr .etv-wk:hover { box-shadow: 0 0 0 1px #b9d3e6, 0 26px 44px -30px rgba(12, 34, 54, .6) !important; }
body.sh-tr .etv-wk:focus-visible { outline: 3px solid var(--tr-blue); outline-offset: 2px; }
body.sh-tr .etv-pips { display: inline-flex !important; align-items: flex-end !important; gap: 3px !important; height: 14px; }
body.sh-tr .etv-pips i { width: 5px !important; height: 6px !important; border-radius: 2px !important; background: var(--tr-rule) !important; }
body.sh-tr .etv-pips i:nth-child(2) { height: 8px !important; } body.sh-tr .etv-pips i:nth-child(3) { height: 10px !important; } body.sh-tr .etv-pips i:nth-child(4) { height: 12px !important; } body.sh-tr .etv-pips i:nth-child(5) { height: 14px !important; }
body.sh-tr .etv-pips i.on { background: var(--tr-blue) !important; }
body.sh-tr .etv-wk .etv-mins b { font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
body.sh-tr .etv-wk .etv-pre { color: var(--sl-muted) !important; }

/* Workout page: block heads as a training log; sets as stat chips. */
body.sh-tr .etv-block { scroll-margin-top: 90px; }
body.sh-tr .etv-b-title { letter-spacing: -.03em !important; }
body.sh-tr .etv-b-facts > span { padding: 6px 12px; border-radius: 999px; background: var(--tr-chalk); color: var(--sl-ink) !important; font-weight: 700; }
body.sh-tr .etv-b-facts .sl-i { color: var(--tr-ink) !important; }
body.sh-tr .etv-ex { border: 0 !important; box-shadow: 0 0 0 1px var(--tr-rule) !important; }
body.sh-tr .etv-ex-num { background: var(--tr-deep) !important; color: #fff !important; font-variant-numeric: tabular-nums; }
body.sh-tr .etv-reps span { font-variant-numeric: tabular-nums; }
body.sh-tr .etv-prep { border: 0 !important; box-shadow: 0 0 0 1px var(--tr-rule) !important; }

@media (max-width: 560px) {
	body.sh-tr .etv-b-facts { gap: 6px !important; }
	body.sh-tr .etv-b-facts > span { padding: 5px 10px; font-size: 13px; }
}

/* =====================================================================================================================
 * The session (owner feedback, 17 Oct 2026): plain-language sets, a sticky "Your session" rail, the exercise popup
 * and the floating timer (eat-train/render/workout.php Train branch + train-workout.js).
 * ================================================================================================================== */
body.sh-tr .trw { padding-block: clamp(36px, 5vw, 72px) clamp(48px, 6vw, 96px); background: var(--tr-chalk); border-top: 1px solid var(--tr-rule); }
body.sh-tr .trw-head .tr-head { grid-template-columns: minmax(0, 1fr); margin-bottom: clamp(18px, 2.4vw, 28px); }
body.sh-tr .trw-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(18px, 2.4vw, 32px); align-items: start; }
@media (min-width: 1100px) { body.sh-tr .trw-layout { grid-template-columns: 270px minmax(0, 1fr); } }

/* The rail: a sticky map of the session that follows the set on screen. */
body.sh-tr .trw-rail { min-width: 0; }
body.sh-tr .trw-rail-in { display: grid; gap: 12px; padding: 18px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px var(--tr-rule), 0 24px 48px -40px rgba(12, 34, 54, .55); }
@media (min-width: 1100px) { body.sh-tr .trw-rail { position: sticky; top: calc(var(--sh-header-bottom, 64px) + 16px); } }
body.sh-tr .trw-rail-h { display: flex; justify-content: space-between; align-items: baseline; margin: 0; padding-bottom: 10px; border-bottom: 2px solid var(--sl-ink); font: 800 12px/1.2 var(--sl-text); letter-spacing: .14em; text-transform: uppercase; color: var(--sl-ink); }
body.sh-tr .trw-rail-h b { font: 800 1.05rem/1 var(--sl-display); letter-spacing: -.01em; text-transform: none; font-variant-numeric: tabular-nums; }
body.sh-tr .trw-rail-list { position: relative; display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
body.sh-tr .trw-rail-list::before { content: ""; position: absolute; left: 19px; top: 22px; bottom: 22px; width: 2px; background: var(--tr-rule); }
body.sh-tr .trw-rail-item a { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; align-items: center; min-height: 48px; padding: 6px 8px 6px 0; border-radius: 14px; color: var(--sl-ink); text-decoration: none; transition: background-color .2s var(--tr-ease); }
body.sh-tr .trw-rail-item a:hover { background: var(--tr-chalk); }
body.sh-tr .trw-rail-item a:focus-visible { outline: 3px solid var(--tr-blue); outline-offset: 2px; }
body.sh-tr .trw-rail-n { position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--tr-rule); background: #fff; font: 800 13px/1 var(--sl-display); font-variant-numeric: tabular-nums; color: var(--sl-copy); box-sizing: border-box; transition: background-color .2s, border-color .2s, color .2s; }
body.sh-tr .trw-rail-t { display: grid; gap: 2px; min-width: 0; }
body.sh-tr .trw-rail-t b { font: 800 15px/1.2 var(--sl-text); }
body.sh-tr .trw-rail-t small { font-size: 12.5px; line-height: 1.3; color: var(--sl-muted); }
body.sh-tr .trw-rail-item.is-past .trw-rail-n { border-color: var(--tr-deep); background: var(--tr-deep); color: #fff; }
body.sh-tr .trw-rail-item.is-active a { background: var(--tr-wash); }
body.sh-tr .trw-rail-item.is-active .trw-rail-n { border-color: var(--tr-ink); background: var(--tr-ink); color: #fff; box-shadow: 0 0 0 5px rgba(43, 143, 214, .18); }
body.sh-tr .trw-rail-item.is-active .trw-rail-t b { color: var(--tr-ink); }
body.sh-tr .trw-rail-go { justify-self: stretch; }
/* Below 1100px the rail is a sticky strip of set chips under the header. */
@media (max-width: 1099px) {
	body.sh-tr .trw-rail { position: sticky; top: var(--sh-header-bottom, 64px); z-index: 20; margin-inline: calc(-1 * var(--sl-gutter, 20px)); }
	body.sh-tr .trw-rail-in { gap: 0; padding: 8px var(--sl-gutter, 20px); border-radius: 0; background: rgba(255, 255, 255, .96); box-shadow: 0 1px 0 var(--tr-rule), 0 12px 24px -20px rgba(12, 34, 54, .5); -webkit-backdrop-filter: saturate(1.4) blur(8px); backdrop-filter: saturate(1.4) blur(8px); }
	body.sh-tr .trw-rail-h, body.sh-tr .trw-rail-go, body.sh-tr .trw-rail-t small { display: none !important; }
	body.sh-tr .trw-rail-list { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
	body.sh-tr .trw-rail-list::-webkit-scrollbar { display: none; }
	body.sh-tr .trw-rail-list::before { content: none; }
	body.sh-tr .trw-rail-item { flex: 0 0 auto; }
	body.sh-tr .trw-rail-item a { grid-template-columns: 30px auto; gap: 8px; min-height: 44px; padding: 4px 14px 4px 5px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--tr-rule); }
	body.sh-tr .trw-rail-n { width: 30px; height: 30px; font-size: 12px; border-width: 0; background: var(--tr-chalk); }
	body.sh-tr .trw-rail-t b { font-size: 14px; white-space: nowrap; }
	body.sh-tr .trw-rail-item.is-active a { box-shadow: inset 0 0 0 1.5px var(--tr-ink); }
}

/* A set: one card that says what to do, then the moves round by round. */
body.sh-tr .trw-sets { display: grid; gap: clamp(16px, 2vw, 22px); min-width: 0; }
body.sh-tr .trw-set { scroll-margin-top: calc(var(--sh-header-bottom, 64px) + 70px); border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px var(--tr-rule); overflow: hidden; transition: box-shadow .25s var(--tr-ease); }
@media (min-width: 1100px) { body.sh-tr .trw-set { scroll-margin-top: calc(var(--sh-header-bottom, 64px) + 18px); } }
body.sh-tr .trw-set.is-current { box-shadow: 0 0 0 2px var(--tr-ink), 0 30px 60px -44px rgba(12, 34, 54, .6); }
body.sh-tr .trw-set-head { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px 18px; padding: clamp(18px, 2.4vw, 26px) clamp(18px, 2.4vw, 28px) 16px; }
@media (min-width: 900px) { body.sh-tr .trw-set-head { grid-template-columns: 56px minmax(0, 1fr) auto; align-items: start; } }
body.sh-tr .trw-set-badge { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--tr-deep); color: #fff; font: 800 1.3rem/1 var(--sl-display); font-variant-numeric: tabular-nums; }
body.sh-tr .trw-set--wu .trw-set-badge, body.sh-tr .trw-set--cd .trw-set-badge { background: var(--tr-wash); color: var(--tr-ink); font-size: 1rem; }
body.sh-tr .trw-set-t { display: grid; gap: 6px; min-width: 0; }
body.sh-tr .trw-set-kicker { margin: 0; font: 800 12px/1.2 var(--sl-text); letter-spacing: .14em; text-transform: uppercase; color: var(--tr-ink); }
body.sh-tr .trw-set-h { margin: 0; font: 800 clamp(1.45rem, 1.1rem + 1vw, 1.9rem)/1.08 var(--sl-display); letter-spacing: -.03em; color: var(--sl-ink); }
body.sh-tr .trw-set-how { max-width: 60ch; margin: 2px 0 0; font-size: 16px; line-height: 1.55; color: var(--sl-copy); }
body.sh-tr .trw-set-stats { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 0; padding: 0; list-style: none; }
@media (min-width: 900px) { body.sh-tr .trw-set-stats { grid-column: auto; justify-content: flex-end; margin: 0; } }
body.sh-tr .trw-set-stats li { display: grid; gap: 2px; min-width: 76px; padding: 8px 12px; border-radius: 14px; background: var(--tr-chalk); text-align: center; }
body.sh-tr .trw-set-stats b { font: 800 1.25rem/1 var(--sl-display); font-variant-numeric: tabular-nums; color: var(--sl-ink); }
body.sh-tr .trw-set-stats span { font-size: 12px; line-height: 1.25; color: var(--sl-muted); }

/* The round grid: moves down, rounds across, every figure exactly as stored. */
body.sh-tr .trw-grid { width: 100%; margin: 0; border-collapse: collapse; border: 0; border-top: 1px solid var(--tr-rule); font-variant-numeric: tabular-nums; }
body.sh-tr .trw-grid thead th { padding: 10px 12px; background: var(--tr-chalk); font: 800 12px/1.2 var(--sl-text); letter-spacing: .12em; text-transform: uppercase; color: var(--sl-muted); text-align: center; border: 0; }
body.sh-tr .trw-grid thead th:first-child { padding-left: clamp(18px, 2.4vw, 28px); text-align: left; }
body.sh-tr .trw-grid tbody tr { border: 0; border-top: 1px solid var(--tr-rule); background: #fff; }
body.sh-tr .trw-grid td { padding: 12px; text-align: center; vertical-align: middle; border: 0; background: none; color: var(--sl-ink); white-space: nowrap; }
body.sh-tr .trw-grid td b { font: 800 1.15rem/1 var(--sl-display); letter-spacing: -.01em; }
body.sh-tr .trw-grid td small { display: block; margin-top: 3px; font-size: 12px; color: var(--sl-muted); }
body.sh-tr .trw-move-cell { width: 55%; padding: 10px 12px 10px clamp(10px, 1.6vw, 18px); border: 0; background: none; text-align: left; font-weight: inherit; }
body.sh-tr .trw-move { display: grid; grid-template-columns: 26px 96px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 54px; padding: 4px 8px 4px 4px; border-radius: 14px; color: var(--sl-ink); text-decoration: none; transition: background-color .2s var(--tr-ease); }
body.sh-tr .trw-move:hover { background: var(--tr-chalk); }
body.sh-tr .trw-move:focus-visible { outline: 3px solid var(--tr-blue); outline-offset: 2px; }
body.sh-tr .trw-move-n { justify-self: center; font: 800 13px/1 var(--sl-display); color: var(--sl-muted); }
body.sh-tr .trw-move-img { position: relative; display: block; width: 96px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; background: var(--tr-deep); }
body.sh-tr .trw-move-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
body.sh-tr .trw-move-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: linear-gradient(0deg, rgba(12, 34, 54, .45), rgba(12, 34, 54, .05)); }
body.sh-tr .trw-move-play .sl-i { width: 14px; height: 14px; padding: 7px; border-radius: 50%; background: rgba(12, 34, 54, .7); box-sizing: content-box; }
body.sh-tr .trw-move-t { display: grid; gap: 3px; min-width: 0; }
body.sh-tr .trw-move-t b { font: 800 1rem/1.25 var(--sl-text); white-space: normal; }
body.sh-tr .trw-move-t small { font-size: 12.5px; color: var(--tr-ink); font-weight: 700; }
body.sh-tr .trw-move:hover .trw-move-t b { text-decoration: underline; text-decoration-color: rgba(27, 111, 174, .5); text-underline-offset: 3px; }
/* The theme's table defaults (dark heading cells, striped rows) do not apply to the round grid. */
body.sh-tr.sh-tr-workout .trw-grid :is(th, td) { background: transparent !important; border: 0 !important; }
body.sh-tr.sh-tr-workout .trw-grid thead th { background: var(--tr-chalk) !important; color: var(--sl-muted) !important; }
body.sh-tr .trw-grid tbody tr, body.sh-tr .trw-grid tbody tr:nth-child(odd), body.sh-tr .trw-grid tbody tr:nth-child(even) { background: #fff !important; }
body.sh-tr .trw-grid tbody tr { border-top: 1px solid var(--tr-rule) !important; }
body.sh-tr .trw-grid tbody th, body.sh-tr .trw-grid tbody th * { color: var(--sl-ink); }
body.sh-tr .trw-grid tbody th .trw-move-t small { color: var(--tr-ink); }
body.sh-tr .trw-grid tbody th .trw-move-n { color: var(--sl-muted); }
body.sh-tr .trw-grid tbody th .trw-move-play { color: #fff; }
body.sh-tr.sh-tr-workout .trw-set.is-current .trw-grid thead th { background: var(--tr-wash) !important; color: var(--tr-ink) !important; }
@media (max-width: 700px) { body.sh-tr.sh-tr-workout .trw-grid td { background: var(--tr-chalk) !important; } }
/* Phones: each move becomes a row with its rounds as small cells underneath. */
@media (max-width: 700px) {
	body.sh-tr .trw-grid, body.sh-tr .trw-grid tbody, body.sh-tr .trw-grid tr { display: block; }
	body.sh-tr .trw-grid thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	body.sh-tr .trw-grid tbody tr { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 6px; padding: 10px 14px 14px; }
	body.sh-tr .trw-move-cell { grid-column: 1 / -1; display: block; width: auto; padding: 0; }
	body.sh-tr .trw-move { grid-template-columns: 22px 84px minmax(0, 1fr); padding: 2px 0; }
	body.sh-tr .trw-move-img { width: 84px; }
	body.sh-tr .trw-grid td { display: grid; gap: 2px; padding: 8px 6px; border-radius: 12px; background: var(--tr-chalk); }
	body.sh-tr .trw-grid td::before { content: attr(data-round); font: 800 12px/1.2 var(--sl-text); letter-spacing: .06em; text-transform: uppercase; color: var(--sl-muted); }
	body.sh-tr .trw-grid td b { font-size: 1.05rem; }
	body.sh-tr .trw-grid td small { margin-top: 0; }
	/* The round cells share the row evenly, however many rounds the set has. */
	body.sh-tr .trw-grid--r1 tbody tr { grid-template-columns: minmax(0, 1fr); }
	body.sh-tr .trw-grid--r2 tbody tr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	body.sh-tr .trw-grid--r3 tbody tr { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	body.sh-tr .trw-grid--r4 tbody tr { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	body.sh-tr :is(.trw-grid--r5, .trw-grid--r6) tbody tr { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
body.sh-tr .trw-set-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 14px clamp(18px, 2.4vw, 28px) 18px; border-top: 1px solid var(--tr-rule); }
body.sh-tr .trw-next, body.sh-tr .trw-next:visited { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-left: auto; padding: 0 18px; border-radius: 999px; background: var(--tr-deep); color: #fff; font: 800 15px/1 var(--sl-text); text-decoration: none; }
body.sh-tr .trw-next:hover { background: var(--tr-ink); color: #fff; }
body.sh-tr .trw-next:focus-visible { outline: 3px solid var(--tr-blue); outline-offset: 2px; }
body.sh-tr .trw-next .sl-i { width: 18px; height: 18px; }
body.sh-tr .trw-done { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; font-weight: 800; color: var(--sl-teal, #246b5f); }
body.sh-tr .trw-done .sl-i { width: 20px; height: 20px; }
body.sh-tr .trw-rest-btn .sl-i { color: var(--tr-ink); }

/* The exercise popup: a dark stage (video, this move's rounds, previous / next by name) beside a clean details panel;
 * a full-screen sheet on phones with the previous / next bar pinned to the bottom. */
html.trx-locked { overflow: hidden; }
body.sh-tr .trx-dialog { width: min(1080px, 100vw - 48px); max-width: none; height: min(720px, 100vh - 64px); max-height: none; margin: auto; padding: 0; border: 0; border-radius: 28px; background: #fff; color: var(--sl-ink); box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .75); overflow: hidden; }
body.sh-tr .trx-dialog::backdrop { background: rgba(6, 18, 30, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
body.sh-tr .trx-frame { position: relative; display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; grid-template-areas: "stage info" "nav info"; height: 100%; }
body.sh-tr .trx-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The stage. */
body.sh-tr .trx-stage { grid-area: stage; position: relative; isolation: isolate; display: grid; grid-template-rows: auto auto 1fr; align-content: start; gap: 18px; min-height: 0; padding: 26px 28px 8px; color: #fff; overflow-y: auto;
	background: radial-gradient(70% 60% at 85% 0%, rgba(43, 143, 214, .4), rgba(43, 143, 214, 0) 70%), linear-gradient(165deg, #0b1f32 0%, #0f2c47 60%, #123b5f 100%); }
body.sh-tr .trx-stage::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: repeating-linear-gradient(104deg, rgba(255, 255, 255, .05) 0 1px, rgba(255, 255, 255, 0) 1px 64px); pointer-events: none; }
body.sh-tr .trx-stage-top { display: flex; align-items: center; gap: 10px; min-height: 28px; padding-right: 0; }
body.sh-tr .trx-count { font: 800 12px/1.2 var(--sl-text); letter-spacing: .16em; text-transform: uppercase; color: var(--tr-sky); }
body.sh-tr .trx-ctx:not(:empty) { padding: 5px 10px; border-radius: 999px; background: rgba(143, 208, 255, .14); font: 800 12px/1 var(--sl-text); color: #fff; }
body.sh-tr .trx-media { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 18px; background: #081624; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .08); }
body.sh-tr .trx-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .3s var(--tr-ease), transform .5s var(--tr-ease); }
body.sh-tr .trx-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 22, 36, .55), rgba(8, 22, 36, 0) 55%); pointer-events: none; }
body.sh-tr .trx-media.is-playing::after { content: none; }
body.sh-tr .trx-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
body.sh-tr .trx-play, body.sh-tr .trx-play:is(:hover, :focus, :active) { position: relative; z-index: 1; display: grid; justify-items: center; gap: 12px; padding: 0; border: 0; background: none; color: #fff; font: 800 15px/1.2 var(--sl-text); cursor: pointer; box-shadow: none; }
body.sh-tr .trx-play-ic { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: #fff; color: var(--tr-deep); box-shadow: 0 0 0 10px rgba(255, 255, 255, .16), 0 24px 40px -16px rgba(0, 0, 0, .8); transition: transform .25s var(--tr-ease), box-shadow .25s var(--tr-ease); }
body.sh-tr .trx-play-ic .sl-i { width: 30px; height: 30px; margin-left: 4px; }
body.sh-tr .trx-play-l { padding: 6px 12px; border-radius: 999px; background: rgba(8, 22, 36, .6); }
body.sh-tr .trx-play:hover .trx-play-ic { transform: scale(1.06); box-shadow: 0 0 0 14px rgba(255, 255, 255, .2), 0 24px 40px -16px rgba(0, 0, 0, .8); }
body.sh-tr .trx-play:hover ~ img, body.sh-tr .trx-media:hover img { opacity: .95; }
body.sh-tr .trx-play:focus-visible .trx-play-ic { outline: 3px solid var(--tr-sky); outline-offset: 6px; }
body.sh-tr .trx-novideo { position: relative; z-index: 1; margin: 0; padding: 8px 14px; border-radius: 999px; background: rgba(8, 22, 36, .7); font-weight: 700; }
/* This move's rounds in the set it was opened from. */
body.sh-tr .trx-rx { display: grid; gap: 10px; align-content: start; }
body.sh-tr .trx-rx[hidden] { display: none; }
body.sh-tr .trx-rx-l { margin: 0; font: 800 12px/1.2 var(--sl-text); letter-spacing: .14em; text-transform: uppercase; color: var(--tr-muted-d); }
body.sh-tr .trx-rx-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
body.sh-tr .trx-rx-list li { display: grid; gap: 2px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(143, 208, 255, .2); }
body.sh-tr .trx-rx-list small { font: 800 12px/1.2 var(--sl-text); letter-spacing: .06em; text-transform: uppercase; color: var(--tr-sky); }
body.sh-tr .trx-rx-list b { font: 800 1.5rem/1.05 var(--sl-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: #fff; }
body.sh-tr .trx-rx-list span { font-size: 12.5px; color: var(--tr-copy-d); }

/* Previous / next, by name, at the foot of the stage. */
body.sh-tr .trx-nav { grid-area: nav; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 28px 24px; background: #0f2c47; background: linear-gradient(165deg, #0f2c47, #123b5f); }
body.sh-tr .trx-navbtn, body.sh-tr .trx-navbtn:is(:hover, :focus, :active) { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; min-height: 56px; margin: 0; padding: 8px 16px 8px 8px; border: 0; border-radius: 16px; background: rgba(255, 255, 255, .08); color: #fff; text-align: left; font: inherit; text-transform: none; letter-spacing: 0; white-space: normal; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
body.sh-tr .trx-navbtn--next, body.sh-tr .trx-navbtn--next:is(:hover, :focus, :active) { grid-template-columns: minmax(0, 1fr) auto; padding: 8px 8px 8px 16px; text-align: right; }
body.sh-tr .trx-navbtn:hover:not(:disabled) { background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(143, 208, 255, .45); }
body.sh-tr .trx-navbtn:focus-visible { outline: 3px solid var(--tr-sky); outline-offset: 2px; }
body.sh-tr .trx-navbtn:disabled { opacity: .45; cursor: default; }
body.sh-tr .trx-navbtn-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(143, 208, 255, .16); color: var(--tr-sky); }
body.sh-tr .trx-navbtn--prev .trx-navbtn-ic svg { transform: rotate(180deg); }
body.sh-tr .trx-navbtn-ic svg { width: 20px; height: 20px; }
body.sh-tr .trx-navbtn-t { display: grid; gap: 2px; min-width: 0; }
body.sh-tr .trx-navbtn-t small { font: 800 12px/1.2 var(--sl-text); letter-spacing: .12em; text-transform: uppercase; color: var(--tr-sky); }
body.sh-tr .trx-navbtn-t b { overflow: hidden; font: 800 15px/1.25 var(--sl-text); white-space: nowrap; text-overflow: ellipsis; }

/* The details. */
body.sh-tr .trx-info { grid-area: info; min-height: 0; overflow-y: auto; overscroll-behavior: contain; background: #fff; }
body.sh-tr .trx-body { display: grid; gap: 18px; padding: 34px 32px 30px; }
body.sh-tr .trx-head { display: grid; gap: 8px; padding-right: 44px; }
body.sh-tr .trx-kicker { margin: 0; font: 800 12px/1.2 var(--sl-text); letter-spacing: .16em; text-transform: uppercase; color: var(--tr-ink); }
body.sh-tr .trx-title { margin: 0; font: 800 clamp(1.7rem, 1.2rem + 1.4vw, 2.3rem)/1.04 var(--sl-display); letter-spacing: -.035em; color: var(--sl-ink); text-wrap: balance; outline: none; }
body.sh-tr .trx-facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 0; padding: 0; list-style: none; }
body.sh-tr .trx-facts li { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--tr-chalk); }
body.sh-tr .trx-fact-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #fff; color: var(--tr-ink); box-shadow: 0 0 0 1px var(--tr-rule); }
body.sh-tr .trx-fact-ic .sl-i { width: 20px; height: 20px; }
body.sh-tr .trx-fact-t { display: grid; gap: 2px; min-width: 0; }
body.sh-tr .trx-fact-t small { font: 800 12px/1.2 var(--sl-text); letter-spacing: .12em; text-transform: uppercase; color: var(--sl-muted); }
body.sh-tr .trx-fact-t b { font: 700 15px/1.4 var(--sl-text); color: var(--sl-ink); }
body.sh-tr .trx-levels { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 2px 2px 0; }
body.sh-tr .trx-sec { display: grid; gap: 12px; padding-top: 18px; border-top: 1px solid var(--tr-rule); }
body.sh-tr .trx-h { margin: 0; font: 800 1.15rem/1.2 var(--sl-display); letter-spacing: -.01em; color: var(--sl-ink); }
body.sh-tr .trx-tips { counter-reset: trx; position: relative; display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
body.sh-tr .trx-tips::before { content: ""; position: absolute; left: 14px; top: 14px; bottom: 14px; width: 2px; background: var(--tr-rule); }
body.sh-tr .trx-tips li { counter-increment: trx; position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 15.5px; line-height: 1.5; color: var(--sl-ink); }
body.sh-tr .trx-tips li::before { content: counter(trx); position: relative; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--tr-deep); color: #fff; font: 800 13px/1 var(--sl-display); box-shadow: 0 0 0 4px #fff; }
body.sh-tr .trx-summary { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--sl-copy); }
body.sh-tr .trx-caution { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; margin: 0; padding: 14px 16px; border-radius: 16px; background: #fdf4f8; box-shadow: inset 0 0 0 1px #eccbdb; color: #4a1730; font-size: 14.5px; line-height: 1.5; }
body.sh-tr .trx-caution-ic .sl-i { width: 20px; height: 20px; color: #7b244b; }
body.sh-tr .trx-more, body.sh-tr .trx-more:visited { display: inline-flex; align-items: center; justify-self: start; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--tr-rule); color: var(--sl-ink); font: 800 15px/1 var(--sl-text); text-decoration: none; }
body.sh-tr .trx-more:hover { box-shadow: inset 0 0 0 1.5px var(--tr-ink); color: var(--tr-ink); }
body.sh-tr .trx-more:focus-visible { outline: 3px solid var(--tr-blue); outline-offset: 2px; }
body.sh-tr .trx-more .sl-i { width: 18px; height: 18px; }

/* Close: a clean disc in the dialog's corner. */
body.sh-tr .trx-close, body.sh-tr .trx-close:is(:hover, :focus, :active) { position: absolute; top: 18px; right: 18px; z-index: 5; display: grid; place-items: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: var(--tr-chalk); color: var(--sl-ink); cursor: pointer; box-shadow: 0 0 0 1px var(--tr-rule); }
body.sh-tr .trx-close::before, body.sh-tr .trx-close::after { content: ""; position: absolute; width: 18px; height: 2.5px; border-radius: 2px; background: currentColor; transform: rotate(45deg); }
body.sh-tr .trx-close::after { transform: rotate(-45deg); }
body.sh-tr .trx-close:hover { background: var(--tr-deep); color: #fff; box-shadow: none; }
body.sh-tr .trx-close:focus-visible { outline: 3px solid var(--tr-blue); outline-offset: 2px; }

@media (prefers-reduced-motion: no-preference) {
	body.sh-tr .trx-dialog[open] { animation: trx-in .32s var(--tr-ease) both; }
	body.sh-tr .trx-dialog[open]::backdrop { animation: trx-fade .32s ease both; }
}
@keyframes trx-in { from { opacity: 0; transform: translateY(16px) scale(.985); } }
@keyframes trx-fade { from { opacity: 0; } }

/* Tablets: stack the stage over the details, the nav at the bottom. */
@media (max-width: 899px) {
	body.sh-tr .trx-dialog { width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
	body.sh-tr .trx-frame { display: flex; flex-direction: column; height: 100%; overflow-y: auto; overscroll-behavior: contain; }
	body.sh-tr .trx-stage { flex: 0 0 auto; gap: 14px; padding: 16px 16px 18px; overflow: visible; }
	body.sh-tr .trx-stage-top { padding-right: 56px; }
	body.sh-tr .trx-info { flex: 1 0 auto; overflow: visible; }
	body.sh-tr .trx-body { padding: 22px 18px 24px; }
	body.sh-tr .trx-head { padding-right: 0; }
	body.sh-tr .trx-nav { position: sticky; bottom: 0; z-index: 4; flex: 0 0 auto; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -12px 24px -16px rgba(0, 0, 0, .6); }
	body.sh-tr .trx-navbtn, body.sh-tr .trx-navbtn:is(:hover, :focus, :active) { min-height: 52px; gap: 8px; padding: 6px 10px 6px 6px; }
	body.sh-tr .trx-navbtn--next, body.sh-tr .trx-navbtn--next:is(:hover, :focus, :active) { padding: 6px 6px 6px 10px; }
	body.sh-tr .trx-navbtn-ic { width: 36px; height: 36px; }
	body.sh-tr .trx-navbtn-t b { font-size: 13.5px; }
	body.sh-tr .trx-close, body.sh-tr .trx-close:is(:hover, :focus, :active) { position: fixed; top: 12px; right: 12px; background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
	body.sh-tr .trx-play-ic { width: 64px; height: 64px; }
}
@media (prefers-reduced-motion: reduce) { body.sh-tr :is(.trx-play-ic, .trx-media img) { transition: none !important; } }

@media (prefers-reduced-motion: reduce) {
	body.sh-tr :is(.trw-rail-item a, .trw-rail-n, .trw-set, .trw-move) { transition: none !important; }
}
@media print { body.sh-tr :is(.trw-rail, .trx-dialog) { display: none !important; } }
