/* Padel Studio pages. Colours follow the site's own (start page), with light and dark. */
:root{--bg:#fbfaf7;--fg:#1d1d1b;--muted:#5d5c57;--accent:#2f6b4f;--line:#e4e1d8;--card:#ffffff;--btn:#2f6b4f;--btn-ink:#fff;--soft:rgba(127,127,127,.1)}
@media (prefers-color-scheme:dark){:root{--bg:#141513;--fg:#ecebe6;--muted:#a8a69e;--accent:#7fc3a0;--line:#2c2d29;--card:#1b1c1a;--btn:#7fc3a0;--btn-ink:#10140f}}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--fg);font:17px/1.6 system-ui,-apple-system,Segoe UI,sans-serif}
main{max-width:64rem;margin:0 auto;padding:2rem 1rem 4rem}
main.narrow{max-width:44rem}
.skip{position:absolute;left:-999px}.skip:focus{left:1rem;top:1rem;background:var(--bg);padding:.3rem .6rem;z-index:60}
.mark{font-size:.8rem;letter-spacing:.12em;text-transform:uppercase;color:var(--accent);font-weight:600}
h1{font-size:clamp(1.8rem,5vw,2.6rem);line-height:1.1;margin:.4rem 0 1rem}
h2{font-size:1.25rem;margin:2rem 0 .5rem}h3{font-size:1.05rem;margin:1.2rem 0 .3rem}
p{margin:0 0 1rem}.muted{color:var(--muted)}a{color:var(--accent)}
main a,main code{overflow-wrap:anywhere}
code{font-size:.9em;background:var(--soft);padding:.05rem .3rem;border-radius:4px}
pre{background:var(--soft);padding:.8rem 1rem;border-radius:6px;overflow:auto;font-size:.85rem}
ul.plain{padding-left:1.2rem}li{margin:.3rem 0}
.note{border-left:3px solid var(--accent);padding:.4rem .9rem;background:var(--soft);border-radius:0 6px 6px 0;font-size:.95rem;color:var(--muted)}
/* header and footer, as on the site's other pages */
.top{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem 1.5rem;max-width:64rem;margin:0 auto;padding:2.2rem 1rem 0}
.top .name{font-weight:600;color:var(--fg);text-decoration:none}
.own{display:flex;flex-wrap:wrap;gap:.3rem 1rem;margin-left:auto;font-size:.95rem}
.own a{color:var(--accent);font-weight:600}.own a[aria-current="page"]{color:var(--fg);text-decoration:none}
@media (max-width:40rem){.own{margin:0;width:100%}}
footer{margin-top:3rem;padding-top:1rem;border-top:1px solid var(--line);font-size:.85rem;color:var(--muted)}
.site-links{display:flex;flex-wrap:wrap;gap:.25rem 1.25rem;margin-bottom:.8rem;font-size:.95rem}.site-links a{color:var(--accent);font-weight:600}
/* the Sovereign Website credit (the same as the site's other pages) */
.family-credit{--fam-fg:var(--family-fg,#5a5a5a);--fam-strong:var(--family-fg-strong,#111);--fam-bg:var(--family-bg,#fff);position:absolute;top:var(--family-top,.4rem);right:var(--family-right,.75rem);z-index:50;font-size:.75rem;line-height:1.4}
@media (prefers-color-scheme:dark){.family-credit{--fam-fg:var(--family-fg,#b5b5b5);--fam-strong:var(--family-fg-strong,#fff);--fam-bg:var(--family-bg,#1c1c1c)}}
.family-credit summary{display:inline-flex;align-items:center;gap:.3rem;cursor:pointer;color:var(--fam-fg);list-style:none;min-height:24px;padding:.15rem .3rem;border-radius:4px}
.family-credit summary::-webkit-details-marker{display:none}
.family-credit summary::after{content:"";width:.35rem;height:.35rem;border:solid currentColor;border-width:0 1px 1px 0;transform:rotate(45deg) translateY(-2px)}
.family-credit summary:hover,.family-credit summary:focus-visible,.family-credit[open] summary{color:var(--fam-strong)}
.family-credit ul{position:absolute;right:0;top:100%;margin:.25rem 0 0;padding:.35rem 0;list-style:none;min-width:11rem;background:var(--fam-bg);border:1px solid rgba(127,127,127,.3);border-radius:6px;box-shadow:0 4px 16px rgba(0,0,0,.12)}
.family-credit a{display:block;padding:.3rem .8rem;min-height:24px;color:var(--fam-fg);text-decoration:none}
.family-credit a:hover,.family-credit a:focus-visible{color:var(--fam-strong);background:rgba(127,127,127,.1)}
.family-credit .family-gap{border-bottom:1px solid rgba(127,127,127,.25);padding-bottom:.3rem;margin-bottom:.3rem}
[data-family-credit="off"] .family-credit{display:none}
@media print{.family-credit{display:none}}
@media (max-width:599px){footer,.family-credit,.site-links{font-size:15px}}
/* the stage: canvas and its controls */
.stage{background:#0d1b24;border-radius:10px;overflow:hidden;border:1px solid var(--line)}
.stage canvas{display:block;width:100%;height:auto;aspect-ratio:16/9;touch-action:none}
.controls{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem .6rem;padding:.6rem 0}
.controls .grow{flex:1 1 12rem;display:flex;align-items:center;gap:.5rem}
.controls input[type=range]{width:100%;accent-color:var(--accent)}
button,.btn,select,input[type=text],input[type=number],textarea{font:inherit;font-size:.92rem}
button,.btn{min-height:36px;padding:.3rem .8rem;border-radius:6px;border:1px solid var(--line);background:var(--card);color:var(--fg);cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;gap:.3rem}
button:hover,.btn:hover{border-color:var(--accent)}
button.primary,.btn.primary{background:var(--btn);color:var(--btn-ink);border-color:var(--btn);font-weight:600}
button:focus-visible,.btn:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible,canvas:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
button[disabled]{opacity:.5;cursor:not-allowed}
select,input[type=text],input[type=number],textarea{min-height:36px;padding:.25rem .45rem;border-radius:6px;border:1px solid var(--line);background:var(--card);color:var(--fg)}
textarea{width:100%;min-height:5rem}
label{font-size:.92rem}
.time{font:1rem/1.2 ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--muted);min-width:6.5rem;text-align:right}
.caption{min-height:1.6em;color:var(--muted);font-size:1rem}
.status{font-size:1rem;color:var(--muted);min-height:1.4em}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* cards */
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(15rem,100%),1fr));gap:1rem;margin:1rem 0;padding:0;list-style:none}
.card{background:var(--card);border:1px solid var(--line);border-radius:10px;padding:1rem;margin:0;display:flex;flex-direction:column;gap:.4rem}
.card h2,.card h3{margin:0;font-size:1.08rem}.card p{margin:0;color:var(--muted);font-size:.95rem}
.card .meta{font-size:1rem;color:var(--muted);text-transform:uppercase;letter-spacing:.08em}
.card a.go{margin-top:auto;font-weight:600}
.two{display:grid;grid-template-columns:minmax(0,1fr);gap:1.2rem}
@media (min-width:60rem){.two{grid-template-columns:minmax(0,1.7fr) minmax(0,1fr)}}
.panel{background:var(--card);border:1px solid var(--line);border-radius:10px;padding:.9rem 1rem}
.panel h2{margin-top:0;font-size:1.05rem}
.row{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;margin:.4rem 0}
.keys{list-style:none;padding:0;margin:.4rem 0;display:flex;flex-wrap:wrap;gap:.35rem}
button[aria-pressed="true"]{background:var(--btn);color:var(--btn-ink);border-color:var(--btn)}
fieldset{border:1px solid var(--line);border-radius:8px;padding:.5rem .8rem;margin:.6rem 0}
legend{font-size:.85rem;color:var(--muted);padding:0 .3rem}
table{border-collapse:collapse;font-size:.9rem;margin:.6rem 0 1rem}th,td{border:1px solid var(--line);padding:.35rem .5rem;text-align:left;vertical-align:top}
.card.current{border-color:var(--accent)}
/* the session sheet */
.sgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(14rem,100%),1fr));gap:.8rem;margin:.6rem 0}
.sgrid figure{margin:0}.sgrid img{width:100%;height:auto;border:1px solid var(--line);border-radius:4px;display:block}
.sgrid figcaption{font-size:.85rem;color:var(--muted);margin-top:.2rem}
.splay{break-inside:avoid;margin-top:1.4rem}.ssource{font-size:.8rem;color:var(--muted)}
.sheet-paper{background:#fff;color:#111;padding:1rem 1.2rem;border:1px solid var(--line);border-radius:8px}
.sheet-paper h2{color:#111}.sheet-paper .muted,.sheet-paper figcaption,.sheet-paper .ssource{color:#444}
@media print{.top,.family-credit,.no-print,footer,.skip,.sws-version{display:none!important}main{padding:0;max-width:none}.sheet-paper{border:0;padding:0}.sgrid{grid-template-columns:repeat(2,1fr)}body{background:#fff}}
.steps{padding-left:0;list-style:none;display:grid;gap:.35rem}.steps li{color:var(--muted)}
.steps .steplink{min-height:30px;padding:.1rem .5rem;font:1rem ui-monospace,SFMono-Regular,Menlo,monospace}
.steps .steplink[aria-current="step"]{background:var(--btn);color:var(--btn-ink);border-color:var(--btn)}
/* the switcher between designs, on each design page */
.d-switch{display:flex;flex-wrap:wrap;gap:.3rem .8rem;align-items:center;font:600 .9rem/1.4 system-ui,sans-serif;margin:0 0 .4rem}
.d-switch a[aria-current="page"]{text-decoration:none;border-bottom:2px solid currentColor}
.d-draft{font:.85rem/1.4 system-ui,sans-serif;margin:0 0 1rem}
/* a film in portrait (9:16), as film4.js draws it */
.stage.portrait{max-width:24rem;margin:0 auto}
.stage.portrait canvas{aspect-ratio:9/16}
.controls button,.controls .time{white-space:nowrap}
/* Play/Pause on the drawing itself (ui.js) */
.stage.has-toggle{position:relative}.stage.has-toggle .stage-toggle{position:absolute;margin:0;width:auto;height:auto;max-width:none;text-transform:none;letter-spacing:normal;box-shadow:none;text-shadow:none;top:.5rem;right:.5rem;min-height:32px;padding:.15rem .6rem;border-radius:6px;border:1px solid rgba(255,255,255,.55);background:rgba(5,10,20,.78);color:#fff;font:600 1rem/1.2 system-ui,sans-serif;cursor:pointer;z-index:2}.stage.has-toggle .stage-toggle:focus-visible{outline:3px solid #fff;outline-offset:2px}

/* the play's own controls at 1rem or more (design.b round 10, low vision) */
.controls button,.controls select,.controls label,.controls .btn{font-size:1rem}
/* Nothing on a Studio page under 1rem (design.b round 14, for the low-vision reader): kickers, notes, footer, menus,
   form labels and buttons, tables and code all read at 16 px or more. Code stays monospace. */
html body :is(.mark,.meta,.note,.muted,.d-draft,.ssource,footer,.site-links a,.own a,.family-credit summary,.family-credit a,.d-switch,.d-switch a,.d-switch span,.card p,label,button,.btn,select,input,textarea,legend,th,td,figcaption,pre,.steplink,.d-bug span,p code,li code,td code,pre code,code a){font-size:1rem}
/* the build's version stamp at 1rem on Studio pages (design.b round 15) */
html body .sws-version{font-size:1rem}
/* the on-drawing Play/Pause keeps one width when it switches, and on a phone the time line gets a row of its own (design.b round 18) */
.stage.has-toggle .stage-toggle{min-width:6.8em;text-align:center;white-space:nowrap}
@media (max-width:400px){.controls .grow{flex-basis:100%}.controls{row-gap:.6rem}}
/* top view: the Play/Pause in a strip above the court (design.b, coach sites round 2) */
.stage.has-toggle.view-top{padding-top:2.6rem}.stage.has-toggle.toggle-moved{padding-top:0!important}.stage.has-toggle.view-top .stage-toggle{top:0;right:0}
audio{max-width:100%}
/* The hub's designs 2 to 5 on Studio pages. The hub's build adds body class dN and links site/assets/designs/dN.css before
   this file on its /designs/N/ copies (agreed with cl-8.padel.hub, 4 Dec 2026). These map each design's own tokens onto the
   Studio's names; with no dN class (every plain Studio page) nothing here applies. Court canvases keep their own themes. */
body.d2{--btn:var(--accent);--btn-ink:#05080a}
body.d3{--accent:#17457f;--btn:#17457f;--btn-ink:#fff}
body.d4{--bg:var(--paper);--card:var(--paper);--fg:var(--ink);--line:var(--rule);--accent:var(--red);--btn:var(--red);--btn-ink:#fff;--muted:#5a5447}
body.d5{--card:var(--bg);--btn:var(--accent);--btn-ink:#fff}
@media (prefers-color-scheme:light){body.d2{--btn-ink:#fff}}
@media (prefers-color-scheme:dark){body.d3{--accent:#bcd7f2;--btn:#bcd7f2;--btn-ink:#123866}body.d4{--btn-ink:#16140f;--muted:#b9b09e}body.d5{--btn-ink:#111}}
details.more{margin:.4rem 0 .8rem}
details.more>summary{cursor:pointer;color:var(--accent);font-weight:600;min-height:44px;display:flex;align-items:center;text-decoration:underline;text-underline-offset:3px}
.panel{min-width:0}.row>:is(input,select,textarea){min-width:0;max-width:100%}
/* The session sheet is paper: white in every theme and design, so its ink is fixed dark too (d4 dark had light ink on it). */
html body .sheet-paper :is(p,li,h2,h3,h4,td,th,dt,dd,span,strong,em,b,figcaption){color:#111}
html body .sheet-paper :is(.muted,figcaption,.ssource){color:#444}
html body .sheet-paper a{color:#1a4f8a}
.sheet-paper{overflow-wrap:anywhere}
