/* Strength standards (T67 stream S). Tokens only, phone first.
   Every class is prefixed sst- or sits under .sst. */

.sst { display: grid; gap: 28px; }
.sst-defs { position: absolute; }

/* ---- lift links */
.sst-lifts { display: grid; gap: 10px; }
.sst-lifts .chip { display: inline-flex; align-items: center; text-decoration: none; }
.sst-lifts .chip[aria-current] { background: var(--chalk); color: var(--on-chalk); }

/* ---- who is lifting */
.sst-form { display: grid; gap: 24px; }
.sst-controls { gap: 14px 28px; align-items: flex-end; }
.sst-pick { display: grid; gap: 8px; }
.sst-units a { display: inline-grid; place-items: center; min-width: 64px; min-height: 44px; border-radius: var(--r-button); color: var(--chalk-dim); font: 700 18px/1 var(--f-display); letter-spacing: .5px; text-transform: uppercase; text-decoration: none; }
.sst-units a[aria-current] { background: var(--chalk); color: var(--on-chalk); }
.sst-hint { flex-basis: 100%; margin: -4px 0 0; }

.sst-fields { display: grid; gap: 24px; }
.sst-field { display: grid; gap: 10px; min-width: 0; }
.sst-set-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.sst .pm-weight input { font-size: clamp(52px, 14vw, 92px); min-width: 44px; }
.sst .pm-weight .unit { font-size: clamp(20px, 4.2vw, 32px); }
.sst .pm-roll { font: 700 clamp(52px, 14vw, 92px)/.95 var(--f-display); letter-spacing: -.5px; }
.sst-for { font: 700 clamp(20px, 4.2vw, 32px)/1 var(--f-display); letter-spacing: .5px; text-transform: uppercase; color: var(--chalk-dim); }
.no-js .sst [data-sst-step], .no-js .sst-slide-row { display: none; }
.js .sst-go { display: none; }
.sst-go { justify-self: start; }
@media (max-width: 420px) { .sst .step-btn { width: 48px; height: 48px; } }
@media (min-width: 1000px) {
  .sst-fields { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 64px; align-items: start; }
}

/* the bodyweight slider: one plate on a bar */
.sst-slide-row { max-width: 560px; }
.sst-slide { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 44px; margin: 0; padding: 0; background: transparent; cursor: pointer; touch-action: pan-y; }
.sst-slide::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: var(--steel); }
.sst-slide::-moz-range-track { height: 6px; border-radius: 3px; background: var(--steel); }
.sst-slide::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 36px; margin-top: -15px; border: 0; border-radius: 6px; background: var(--chalk); }
.sst-slide::-moz-range-thumb { width: 18px; height: 36px; border: 0; border-radius: 6px; background: var(--chalk); }
.sst-slide:focus-visible { outline: 2px solid var(--chalk); outline-offset: 2px; border-radius: 8px; }

/* ---- the answer */
.sst-result { display: grid; gap: 10px; padding-top: 24px; border-top: 1px solid var(--hairline); }
.sst-tag { display: inline-block; margin-left: 6px; padding: 3px 8px; border-radius: 6px; background: var(--iron-raised); color: var(--chalk); letter-spacing: 1.2px; }
.sst-level { margin: 0; font: 700 clamp(64px, 19vw, 168px)/.88 var(--f-display); letter-spacing: -.5px; text-transform: uppercase; overflow-wrap: anywhere; }
.sst-ratio { margin: 0; font: 700 clamp(30px, 6vw, 48px)/1 var(--f-display); }
.sst-ratio span { font-size: .58em; letter-spacing: .5px; text-transform: uppercase; color: var(--chalk-dim); }
.sst-gauge { display: grid; gap: 8px; max-width: 560px; margin-top: 4px; }
.sst-gauge[hidden] { display: none; }
.sst-track { height: 8px; border-radius: 4px; background: var(--steel); overflow: hidden; }
.sst-track i { display: block; height: 100%; border-radius: 4px; background: var(--chalk); transform-origin: 0 50%; transition: transform 260ms cubic-bezier(.2, .8, .2, 1); }
.sst-gauge-t { margin: 0; font-size: 13px; color: var(--chalk-dim); }
.sst-say { max-width: 40em; margin: 6px 0 0; font-size: 17px; line-height: 1.5; }
.sst-thumb { position: relative; max-width: 40em; margin: 4px 0 0; padding: 14px 16px 14px 28px; border-radius: var(--r-surface); background: var(--iron-plate); font-size: 15px; line-height: 1.5; }
.sst-thumb::before { content: ""; position: absolute; left: 12px; top: 14px; bottom: 14px; width: 5px; border-radius: 3px; background: var(--steel-light); }

/* ---- the ladder and the next level */
.sst-more { display: grid; gap: clamp(44px, 7vw, 72px); margin-top: clamp(44px, 7vw, 72px); }
.sst-sec { min-width: 0; }
@media (min-width: 1000px) {
  .sst-more { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 64px; align-items: start; }
  .sst-next { position: sticky; top: 96px; }
}

.sst-ladder { list-style: none; display: grid; margin: 18px 0 0; padding: 0; }
.sst-row { display: grid; gap: 6px; padding: 14px 0 12px; border-top: 1px solid var(--hairline); }
.sst-row:last-child { border-bottom: 1px solid var(--hairline); }
.sst-row-head { display: flex; align-items: baseline; gap: 10px; }
.sst-row-name { font: 700 24px/1 var(--f-display); letter-spacing: .5px; text-transform: uppercase; color: var(--chalk-dim); }
.sst-row.is-you .sst-row-name { color: var(--chalk); }
.sst-row-you { padding: 3px 8px; border-radius: 6px; background: var(--chalk); color: var(--on-chalk); font: 600 11px/1.2 var(--f-body); letter-spacing: 1.2px; text-transform: uppercase; }
.sst-row-under:empty, .sst-add-line[hidden] { display: none; }
.sst-row-at { margin-left: auto; font: 700 24px/1 var(--f-display); white-space: nowrap; }
.sst-row-bar { padding: 2px 0; }
.sst-bar { display: block; width: 100%; height: auto; overflow: visible; }
.sst-row-meta { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 0; font-size: 13px; line-height: 1.4; color: var(--chalk-dim); }
.sst-note { max-width: 40em; margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: var(--chalk-dim); }

.sst-next-line { max-width: 22em; margin: 14px 0 0; font: 700 clamp(26px, 4.4vw, 34px)/1.08 var(--f-display); letter-spacing: .3px; }
.sst-hero { margin-top: 22px; }
.sst-on, .sst-add-line { max-width: 40em; margin: 12px 0 0; font-size: 15px; line-height: 1.5; }
.sst-on { color: var(--chalk-dim); }
.sst-add-line { margin-top: 4px; font-weight: 600; }
.sst-actions { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 18px; }
.sst-actions [hidden] { display: none; }

/* plates still to load: an outline, lit only when the page says it is the live thing */
.sst-add { fill: none; stroke: var(--steel-light); stroke-width: 1.5; stroke-dasharray: 4 3; transition: stroke 360ms ease; }
.ember-able.is-live .sst-add { stroke: var(--ember); }

/* a plate arriving on a bar */
.sst-p { transform-box: fill-box; }
.sst-p.is-in { animation: sst-rack 420ms cubic-bezier(.2, .9, .3, 1.15) backwards; animation-delay: var(--d, 0ms); }
.sst-p.is-in[data-d="-1"] { --from: -28px; }
.sst-p.is-in[data-d="1"] { --from: 28px; }
@keyframes sst-rack {
  from { opacity: 0; transform: translateX(var(--from, 0)); }
  to { opacity: 1; transform: translateX(0); }
}

/* tables in the explainer */
.prose-a .sst-cap { margin: 1.7em 0 0; font-size: 13px; line-height: 1.4; color: var(--chalk-dim); }
.prose-a .sst-cap + .tbl-wrap { margin-top: 12px; }
.sst-tbl th[scope="row"] { padding: 13px 18px 13px 0; border-bottom: 1px solid var(--hairline); font: 600 15.5px/1.45 var(--f-body); letter-spacing: 0; text-transform: none; color: var(--chalk); white-space: nowrap; vertical-align: top; }
.sst-tbl td { white-space: nowrap; }
.sst-tbl tbody tr:last-child th { border-bottom-color: var(--steel-light); }
.sst-sources li { overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) {
  .sst-track i, .sst-add { transition: none; }
  .sst-p.is-in { animation: none; }
}

/* without the script the field is the number: no rolling twin, and a line to type on */
.sst:not(.has-roll) .pm-roll { display: none; }
.no-js .sst .pm-weight input { border-bottom-color: var(--steel-light); }
