/* Studio Fyn: the preview studio on its own page, and the quick "taste" of it on the home page. Loaded last. */

/* Home page: quick choices inside the black block beside the live sample */
.slab-side{align-content:start;gap:22px}
.slab-side .go{align-self:end;margin-top:auto}
.quick{display:grid;gap:18px;--bg:var(--slab);--ink:var(--slab-hi);--line:color-mix(in srgb,var(--slab-ink) 34%,var(--slab));--accent:var(--slab-hi)}
.quick legend{font-family:var(--f-mono);font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--slab-ink);margin-bottom:10px}
.quick .opt span{color:var(--slab-ink);font-size:13px;padding:6px 10px}
.quick .opt:hover span{border-color:var(--slab-hi)}
.quick .opt input:checked + span{color:var(--slab);background:var(--slab-hi);border-color:var(--slab-hi)}
.quick .field{display:grid;gap:10px}
.quick .field label{font-family:var(--f-mono);font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--slab-ink);font-weight:400}
.quick input[type=text]{background:transparent;color:var(--slab-hi);border:1px solid var(--line);font-size:16px;padding:10px 12px}
.quick input[type=text]::placeholder{color:color-mix(in srgb,var(--slab-ink) 55%,var(--slab))}
.quick input[type=text]:focus{outline:2px solid var(--slab-hi);outline-offset:1px}
/* colours: the round swatch alone, with its name kept for screen readers */
.quick [data-key=colour] .opts{gap:8px}
.quick [data-key=colour] .opt span{font-size:0;gap:0;padding:3px;border-radius:50%;background:transparent;border-color:transparent}
.quick [data-key=colour] .sw{width:24px;height:24px;border-color:color-mix(in srgb,var(--slab-ink) 40%,var(--slab))}
.quick [data-key=colour] .opt input:checked + span{background:transparent;border-color:var(--slab-hi)}
/* "My colour" needs the colour picker, which lives in the full studio */
.quick .opt:has(#opt-colour-custom){display:none}

/* Studio page */
.studio-page .tw-bar,.studio-page .tw-tab{display:none}
.top nav a[aria-current]{text-decoration:underline;text-underline-offset:4px}
.studio-page .studio{border-top:0;padding-top:44px}
.studio-page .wa{bottom:20px!important}
/* the live sample fills the full height of the black block, so there is never an empty strip under it */
.slab .fyn-shot{aspect-ratio:auto;align-self:stretch;min-height:clamp(240px,30vw,460px)}
.slab .fyn-shot{position:relative}
.slab .fyn-shot>*{position:absolute;top:0;left:0}
/* Phone and narrow screens: the sample sits on top at full width, the quick choices right under it */
@media (max-width:900px){
  html .slab,html[data-tw-slabside] .slab{grid-template-columns:minmax(0,1fr)}
  html .slab .fyn-shot,html[data-tw-slabside] .slab .fyn-shot{order:0;min-height:56vw}
  .slab-side{padding:22px 18px;gap:18px}
  .slab-side h2{font-size:1.45rem}
  .quick{gap:14px}
  /* bigger targets for thumbs; colours sit eight to a row so no dot is left alone on a line */
  .quick .opt span{font-size:14px;padding:10px 12px}
  .quick [data-key=colour] .opts{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:4px 0;justify-items:start}
  .quick [data-key=colour] .opt span{padding:4px}
  .quick [data-key=colour] .sw{width:28px;height:28px}
}

/* Studio on a phone: only the sample itself stays pinned to the top, and it is shorter, so most of the
   screen is left for the choices. The summary line, the buttons and the note move to the end of the choices. */
@media (max-width:900px){
  .stage{display:contents}
  .stage-bar{order:-3}
  .builder .frame{order:-2;position:sticky;top:0;z-index:5}
  .builder .scroller{height:min(34vh,300px)}
  .builder .summary{order:1}
  .builder .stage-actions{order:2}
  .builder #sampleNote{order:3}
  .preset,.builder .opt span{padding-block:10px}
}

/* Phone menu: the four page links behind a small "Menu" button, shown only where the full menu is hidden */
.m-menu{display:none;position:relative}
.m-menu summary{list-style:none;cursor:pointer;font:600 15px var(--f-body);padding:10px 14px;border:var(--bw,2px) solid var(--ink);border-radius:999px;user-select:none}
.m-menu summary::-webkit-details-marker{display:none}
.m-menu[open] summary{background:var(--ink);color:var(--bg)}
.m-links{position:absolute;right:0;top:calc(100% + 10px);z-index:70;min-width:220px;display:grid;background:var(--slab);border:1px solid var(--slab-hi);box-shadow:0 14px 30px rgba(0,0,0,.35)}
@media (max-width:900px){
  .m-menu{display:block}
  .top nav{gap:8px}
  .top nav .m-links a{display:block;padding:15px 18px;color:var(--slab-hi);font-size:16px;font-weight:600;text-decoration:none;border-top:1px solid color-mix(in srgb,var(--slab-ink) 22%,var(--slab))}
  .top nav .m-links a:first-child{border-top:0}
  .top nav .m-links a[aria-current]{text-decoration:underline;text-underline-offset:4px}
}
@media (max-width:900px){
  .brand,.top nav .btn,.m-menu summary{white-space:nowrap}
}
@media (max-width:420px){
  .top{gap:8px}
  .brand{font-size:1.25rem}
  .top nav .btn{padding:10px 13px;font-size:13.5px}
  .m-menu summary{padding:9px 12px;font-size:13.5px}
}

/* Web address check in the studio */
.dom-row{display:flex;align-items:center;gap:8px}
.dom-www{font-family:var(--f-mono);font-size:14px;color:var(--muted)}
.dom-row input{flex:1;min-width:0}
.dom-row .btn{padding:9px 16px;font-size:14px;white-space:nowrap;box-shadow:none}
.dom-res{display:grid;gap:6px;margin-top:8px}
.dom-res:empty{display:none}
.dom-opt{position:relative;cursor:pointer}
.dom-opt input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}
.dom-opt span{display:flex;justify-content:space-between;align-items:baseline;gap:10px;padding:9px 12px;border:1px solid var(--line);border-radius:var(--r-ctl);background:var(--bg);font-size:14px}
.dom-opt b{font-weight:600;overflow-wrap:anywhere}
.dom-opt small{font-size:12px;white-space:nowrap;font-weight:600}
.dom-opt.is-free small{color:#1a6b3c}
.dom-opt.is-taken,.dom-opt.is-unknown,.dom-opt.is-wait{cursor:default}
.dom-opt.is-taken span{opacity:.55}
.dom-opt.is-taken b{text-decoration:line-through}
.dom-opt input:checked + span{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.dom-opt input:checked + span small{color:inherit}
.dom-opt input:focus-visible + span{outline:2px solid var(--accent);outline-offset:2px}
.dom-own{display:flex;align-items:center;gap:8px;font-size:14px;margin-top:6px;cursor:pointer}
.dom [hidden]{display:none}

/* the first section after the black block (home) and after the top of the pricing page: less space above, since the block above already leaves its own (17 Nov) */
#services,#sizes{padding-top:24px}

/* colours: vermilion only on big things on the dark blocks; small accent writing there is bone (18 Nov) */
:root{--slab-big:#E8392B}
.slab-side h2,.talk .h2,.work .h2,.sum h3,.sum .big b,.tier.pick h3,.tier.pick .fee b{color:var(--slab-big)}
