/* One shared style for every trainer page. The trainers were ported from separate artifacts, so
   each brought its own fonts, buttons and spacing. This file and fitTrainerStyle() in
   trainer-bar.js put them on the site's look. Both are shared files the artifact sync never
   writes, so a re-port keeps the style:
   - this sheet is linked by the port scripts (SITE_SCRIPTS) and the site-built trainer pages
   - trainer-bar.js swaps each trainer's own fonts for the site's (Source Sans 3, Barlow Semi
     Condensed, JetBrains Mono) and squares off rounded buttons to the site's 8 px corners
   - trainer-bar.js also folds a long intro under the title into one line plus "How it works"
   Colours stay each trainer's own. Nothing here touches saved progress. */
@import url("https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:wght@500;600;700&family=Source+Sans+3:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap");

:root{--mts-body:"Source Sans 3","Segoe UI",system-ui,sans-serif;--mts-display:"Barlow Semi Condensed","Arial Narrow",Arial,sans-serif;--mts-mono:"JetBrains Mono",ui-monospace,Menlo,monospace;--mts-accent:#c2410c}
@media (prefers-color-scheme:dark){:root{--mts-accent:#f07a45}}
h1,h2,h3{font-family:var(--mts-display);letter-spacing:.005em}
button,input,select,textarea{font-family:inherit}
button{font-weight:600}
:focus-visible{outline:2px solid var(--mts-accent);outline-offset:2px}

/* a long intro becomes its first sentence plus this fold-out */
.mt-how{margin:6px 0 0;font-size:15px;line-height:1.5}
.mt-how>summary{display:inline-flex;align-items:center;gap:6px;min-height:32px;cursor:pointer;font-weight:600;color:inherit;opacity:.85;list-style:none;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.mt-how>summary::-webkit-details-marker{display:none}
.mt-how>summary::before{content:"";width:7px;height:7px;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(-45deg);transition:transform .15s}
.mt-how[open]>summary::before{transform:rotate(45deg)}
.mt-how>summary:hover{opacity:1}
.mt-how>div{margin:4px 0 0;max-width:62ch}

/* a gentle cross-fade between pages (browsers without it just change page as before) */
@media (prefers-reduced-motion:no-preference){
@view-transition{navigation:auto}
::view-transition-old(root),::view-transition-new(root){animation-duration:.22s;animation-timing-function:ease-out}
}
@media (prefers-reduced-motion:reduce){.mt-how>summary::before{transition:none}}
