/* The working pieces of Amble at the end of pages, and the strip after the short answer (phase 3, 18 Nov 2026).
   One look for every family: a hairline card, the visitor's answers on the left, the piece on the right, one button.
   Colour only with meaning: run and easy sessions green, a hard session the app's warm tone, strength and race day ink. */

/* ---------- the block ---------- */
.cta-live{padding-block:clamp(40px,6vw,80px)}
.lv{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:22px clamp(28px,4vw,56px);background:var(--card);border:1px solid var(--line);border-radius:22px;padding:clamp(20px,3.4vw,40px)}
.lv-head{grid-column:1/-1}
.lv-k{font-family:var(--mono);font-size:11.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--mut)}
.lv-h{margin:10px 0 6px;font-size:clamp(28px,3.4vw,42px);line-height:1.06;letter-spacing:-.03em;font-weight:500;max-width:22ch}
.lv-subh{color:var(--mut);max-width:58ch}
.lv-body{display:contents}
.lv-ctl{display:flex;flex-direction:column;gap:16px;align-self:start}
.lv-out{min-width:0;display:flex;flex-direction:column;gap:14px}
.lv-out.lv-in>*{animation:lv-rise .42s var(--ease-out) both}
.lv-out.lv-in>*:nth-child(2){animation-delay:.05s}.lv-out.lv-in>*:nth-child(3){animation-delay:.1s}.lv-out.lv-in>*:nth-child(4){animation-delay:.15s}
@keyframes lv-rise{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.lv-act{grid-column:1/-1;display:flex;align-items:center;gap:14px 20px;flex-wrap:wrap;padding-top:20px;border-top:1px solid var(--line)}
.lv-btn{min-height:52px;padding-inline:24px;font-size:16px}
.lv-act .cta-trust{font-size:13.5px;color:var(--mut);max-width:46ch}
@media (max-width:900px){.lv{grid-template-columns:minmax(0,1fr)}}

/* answers: segmented pills and small number fields, the app's own controls */
.lv-f{display:flex;flex-direction:column;gap:8px}
.lv-fl{font-size:13px;font-weight:600;color:var(--ink)}
.lv-seg{display:flex;flex-wrap:wrap;gap:4px;padding:4px;border-radius:14px;background:var(--chip)}
.lv-seg label{flex:1 1 auto;position:relative;cursor:pointer}
.lv-seg input{position:absolute;inset:0;opacity:0;margin:0;cursor:pointer}
.lv-seg span{display:flex;align-items:center;justify-content:center;min-height:40px;padding:0 12px;border-radius:10px;font-size:14.5px;font-weight:500;color:var(--mut);transition:background .2s var(--ease-out),color .2s var(--ease-out);white-space:nowrap}
.lv-seg input:checked+span{background:var(--act);color:var(--on)}
.lv-seg input:focus-visible+span{outline:2px solid var(--ink);outline-offset:2px}
.lv-nums{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.lv-n input{height:44px;padding:0 12px;border:1px solid var(--line);border-radius:12px;background:var(--bg);font:inherit;font-size:16px;color:var(--ink);width:100%;font-variant-numeric:tabular-nums}

/* the piece */
.lv-big{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.lv-big b{font-size:clamp(48px,5.4vw,72px);line-height:.95;letter-spacing:-.045em;font-weight:500;font-variant-numeric:tabular-nums}
.lv-big span{font-size:16px;color:var(--mut)}
.lv-sub2{margin-top:-6px;color:var(--mut)}.lv-sub2 b{color:var(--ink);font-variant-numeric:tabular-nums}
.lv-note{font-size:13.5px;line-height:1.5;color:var(--mut)}
.lv-note b{color:var(--ink);font-weight:600}
.lv-note a{color:var(--ink)}
.lv-card{border:1px solid var(--line);border-radius:16px;padding:14px;background:var(--bg)}
.lv-ch{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;font-size:14px;font-weight:600}
.lv-tag{font-family:var(--mono);font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--mut);font-weight:500}

/* weeks to go: one square per week, the plan window filled */
.lv-sq{display:grid;grid-template-columns:repeat(var(--c,13),minmax(0,1fr));gap:4px;max-width:420px}
.lv-sq i{aspect-ratio:1;border-radius:28%;background:var(--chip)}
.lv-sq i.p{background:var(--sage)}
.lv-sq i.now{box-shadow:inset 0 0 0 1.5px var(--ink)}
.lv-sq i.race{background:var(--ink)}

/* a week as seven days */
.lv-week{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.lv-week li{display:flex;flex-direction:column;gap:6px;min-width:0;padding:10px 6px;border-radius:12px;background:var(--card);border:1px solid var(--line);text-align:center}
.lv-week .lv-dn{font-size:12px;color:var(--mut)}
.lv-week i{align-self:center;width:18px;height:18px;border-radius:5.4px;background:var(--chip)}
.lv-week b{font-size:12px;line-height:1.25;font-weight:600;overflow-wrap:break-word;hyphens:auto;-webkit-hyphens:auto}
.lv-week small{font-size:11.5px;color:var(--mut);font-variant-numeric:tabular-nums}
.lv-week .k-easy i{background:color-mix(in srgb,var(--sage) 45%,var(--card))}
.lv-week .k-long i{background:var(--sage)}
.lv-week .k-hard i{background:var(--warm)}
.lv-week .k-str i{background:var(--ink)}
.lv-week .k-race{background:var(--act);border-color:var(--act)}
.lv-week .k-race i{background:var(--on)}.lv-week .k-race b,.lv-week .k-race .lv-dn{color:var(--on)}
.lv-week .k-rest b{color:var(--mut);font-weight:500}
@media (max-width:520px){.lv-week{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* the builder's sessions */
.lv-sess{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px}
.lv-s ol{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.lv-s li{display:flex;justify-content:space-between;gap:10px;padding:7px 0;border-top:1px solid var(--line);font-size:13.5px}
.lv-s li:first-child{border-top:0}
.lv-s li a{text-decoration:none;color:var(--ink);min-width:0;overflow-wrap:break-word;hyphens:auto;-webkit-hyphens:auto}
.lv-s li a:hover{text-decoration:underline}
.lv-s li small{color:var(--mut);white-space:nowrap;font-variant-numeric:tabular-nums}
.lv-s li.pin a{font-weight:600}
.lv-s li.pin a::before{content:"";display:inline-block;width:8px;height:8px;margin-right:7px;border-radius:2.4px;background:var(--sage);vertical-align:1px}

/* meals or parts filling against the day */
.lv-meals{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.lv-meals li{display:grid;grid-template-columns:96px minmax(0,1fr) auto;grid-template-rows:auto auto;align-items:center;gap:2px 12px}
.lv-meals li>span{font-size:14px}
.lv-meals li i{height:10px;border-radius:5px;background:var(--chip);position:relative;overflow:hidden}
.lv-meals li i::after{content:"";position:absolute;inset:0;border-radius:5px;background:var(--warm);transform-origin:0 50%;transform:scaleX(var(--v,0));animation:lv-fill .9s calc(var(--i,0)*.12s) var(--ease-out) both}
.lv-tool .lv-meals li i::after,.lv-race .lv-meals li i::after{background:var(--ink)}
.lv-meals li b{font-size:16px;font-variant-numeric:tabular-nums;text-align:right}
.lv-meals li small{grid-column:2/-1;font-size:12px;color:var(--mut)}
@keyframes lv-fill{from{transform:scaleX(0)}}

/* a study applied to a week */
.lv-rows{list-style:none;margin:0;padding:0}
.lv-rows li{display:grid;grid-template-columns:64px minmax(0,1fr) auto;gap:4px 10px;align-items:center;padding:10px 0;border-top:1px solid var(--line)}
.lv-rows li:first-child{border-top:0}
.lv-rows .lv-dn{font-size:13px;color:var(--mut)}
.lv-rows b{font-size:14.5px;font-weight:500}
.lv-rows li.hit b{font-weight:600}
.lv-rows .lv-why{grid-column:2/-1;margin:4px 0 0;padding:10px 12px;border-radius:12px;background:var(--card);border:1px solid var(--line);font-size:13.5px;line-height:1.5;color:var(--ink)}
.lv-rows .lv-why a{color:var(--ink)}

/* the switch */
.lv-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.lv-l{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:8px}
.lv-l li{position:relative;padding-left:20px;font-size:14px;line-height:1.45}
.lv-l li::before{content:"";position:absolute;left:2px;top:.45em;width:9px;height:9px;border-radius:2.7px;background:var(--ink)}
@media (max-width:520px){.lv-two{grid-template-columns:minmax(0,1fr)}}

/* ---------- the strip after the short answer ---------- */
.cta-inline{display:flex;align-items:center;justify-content:space-between;gap:14px 20px;flex-wrap:wrap;margin:18px 0 var(--s6);padding:14px 16px 14px 18px;border:1px solid var(--line);border-radius:16px;background:var(--card);max-width:var(--w-read,760px)}
.cti-l{display:flex;align-items:center;gap:14px;min-width:0;flex:1 1 260px}
.cti-n{font-size:34px;line-height:1;letter-spacing:-.04em;font-weight:500;font-variant-numeric:tabular-nums}
.cti-nl{font-family:var(--mono);font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--mut);max-width:7ch;line-height:1.25}
.cti-t{font-size:15.5px;line-height:1.4;font-weight:500;min-width:0}
.cti-go{flex:none}

/* German, Norwegian and Danish pages show the starting view (their words come from the page); the answers stay hidden */
html:not([lang="en"]):not([lang="sv"]) .lv-ctl{display:none}
html:not([lang="en"]):not([lang="sv"]) .lv{grid-template-columns:minmax(0,1fr)}

@media (prefers-reduced-motion:reduce){.lv-out.lv-in>*,.lv-meals li i::after{animation:none}}
/* race: the answers and the weeks to go share the left column, the two weeks sit on the right */
@media (min-width:901px){
  .lv-race .lv-out{display:contents}
  .lv-race .lv-ctl{grid-column:1;grid-row:2}
  .lv-race .lv-left{grid-column:1;grid-row:3;align-self:start;display:flex;flex-direction:column;gap:14px}
  .lv-race .lv-right{grid-column:2;grid-row:2/span 2;display:flex;flex-direction:column;gap:14px;min-width:0}
}
@media (max-width:900px){.lv-race .lv-left,.lv-race .lv-right{display:flex;flex-direction:column;gap:14px}}
.lv-side{margin-top:6px;padding-top:14px;border-top:1px solid var(--line);font-size:14px;line-height:1.5;color:var(--mut);max-width:44ch}
/* blocks without answers to give use the whole width */
.lv-tool .lv-out,.lv-compare .lv-out{grid-column:1/-1}
/* a page that ends on a working piece of Amble does not repeat the footer's launch-list row under it */
body:has(.cta-live) footer .fsign{display:none}
@media (min-width:901px){
  .lv-tool .lv-out{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:14px 48px;align-items:center}
  .lv-tool .lv-out .lv-note{grid-column:1/-1}
}
/* race pages: the strip is the side panel, stacked, sticky beside the text on wide screens and first on phones */
.ev-side .cta-inline{flex-direction:column;align-items:stretch;margin:0;padding:20px}
.ev-side .cti-l{flex-direction:column;align-items:flex-start;gap:6px}
.ev-side .cti-n{font-size:56px}
.ev-side .cti-nl{max-width:none}
.ev-side .cti-go{justify-content:center}
.ev-side .cti-go{background:var(--act);color:var(--on);border-color:var(--act);min-height:48px}
.ev-side .cti-l{flex:none}
.cti-sq{margin:10px 0 4px;max-width:none;width:100%}

/* units ride on the number as an attribute (so a number and its unit are never one sentence to translate) */
[data-u]::after{content:" " attr(data-u);font-size:.85em;font-weight:400;color:var(--mut)}
.lv-meals small[data-n]::before{content:attr(data-n) " "}
.lv-nm{margin-top:10px;font-size:15px;font-weight:600;color:var(--ink)}
.lv-nm+.lv-h{margin-top:2px}
/* the page's extras under the builder: race reminder and related links */
.cta-live .lv-more{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:6px 24px;align-items:center;margin-top:4px}
.cta-live .lv-more p{margin:0}
/* long button labels ("Let Ami apply the research to your week") wrap on phones instead of running off the card */
.lv-act .lv-btn{white-space:normal;max-width:100%;text-align:left;line-height:1.3}
/* long words (Långpass, Skivstångsrodd) hyphenate at a syllable instead of breaking at the last letter */
.lv-week li,.lv-s li a{hyphens:auto;-webkit-hyphens:auto;overflow-wrap:normal;word-break:normal}
@media (max-width:420px){.lv-week li{padding:10px 2px}.lv-week li b{font-size:11px;letter-spacing:-.02em}}

/* ---------- phase 4: one field or one tap, and the desktop path ---------- */
.lv-act{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:16px 28px}
.lv-cap{display:flex;flex-direction:column;gap:8px;min-width:0;max-width:560px;margin:0}
.lv-cap-row{display:flex;gap:8px;flex-wrap:wrap}
.lv-cap-row input{flex:1 1 220px;min-width:0;min-height:48px;padding:0 14px;border:1px solid var(--line);border-radius:12px;background:var(--card);color:var(--ink);font:inherit;font-size:16px}
.lv-cap-row input:focus{outline:2px solid var(--ink);outline-offset:1px}
.lv-cap-row .btn{flex:0 1 auto;min-height:48px;white-space:normal;text-align:center;line-height:1.25}
.lv-cap-note{margin:0;font-size:13px;line-height:1.45;color:var(--mut)}
.lv-cap-note a{color:inherit}
.lv-cap .fsign-msg{margin:0;font-size:14px}
.lv-cap.done .lv-cap-row{display:none}
.lv-qr{display:none}
@media (min-width:901px){.lv-qr{display:flex;flex-direction:column;align-items:center;gap:6px;width:132px;text-decoration:none;color:var(--ink)}.lv-qr svg{display:block;border:1px solid var(--line);border-radius:10px;padding:4px;background:#fff}.lv-qr span{font-size:12px;line-height:1.35;color:var(--mut);text-align:center}}
:lang(de) .lv-qr,:lang(nb) .lv-qr,:lang(no) .lv-qr,:lang(da) .lv-qr{display:none}
@media (max-width:900px){.lv-act{grid-template-columns:minmax(0,1fr)}}
.lv-opt{grid-column:1/-1;border-top:1px solid var(--line);padding-top:10px}
.lv-opt summary{cursor:pointer;font-size:14px;font-weight:500;color:var(--mut);list-style:none;display:flex;align-items:center;gap:6px;min-height:36px}
.lv-opt summary::-webkit-details-marker{display:none}
.lv-opt summary::before{content:"+";font-size:16px;line-height:1;width:16px;text-align:center}
.lv-opt[open] summary::before{content:"−"}
.lv-opt[open]{display:grid;gap:14px}
/* the strip: offer line, then the field under it */
.cta-inline{flex-direction:column;align-items:stretch}
.cta-inline .lv-cap{max-width:none}
.ev-side .cta-inline .lv-cap-row .btn{background:var(--act);color:var(--on);border-color:var(--act)}
.cta-inline .cti-l{flex:none}
/* a calculator's block sits inside the content column: no second set of side margins */
.cta-live.lv-tool{margin:28px 0}
.cta-live.lv-tool > .in{padding-left:0;padding-right:0;max-width:none}
.lv-cap-row .btn{flex:none}
.cta-live.lv-tool{padding-block:0}
.lv-cap-row .btn{flex:0 1 auto;max-width:100%}
@media (max-width:560px){.lv-cap-row{flex-direction:column}.lv-cap-row input,.lv-cap-row .btn{flex:none;width:100%}}
