/* Clinic template. Colours come from config.js (theme) and fall back to these. */
:root {
  --primary: #0E7490;
  --primary-deep: #155E75;
  --accent: #047857;
  --bg: #F4FBFC;
  --tint: #E6F6F8;
  --card: #FFFFFF;
  --ink: #12323D;
  --muted: #475569;
  --line: #C7E4EA;
  --danger: #B91C1C;
  --wa: #0B6B3A;
  --dark: #12323D;
  --dark-text: #CFE7EC;
  --dark-muted: #9FC3CB;
  --field: #8FB8C2;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(18, 50, 61, .06), 0 8px 24px rgba(18, 50, 61, .08);
  --font: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--bg); overflow-wrap: anywhere; }
img, svg, iframe { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5.2vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
a { color: var(--primary-deep); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.vh, .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 50; background: #fff; padding: 10px 14px; border-radius: 8px; }

.demo-bar { background: var(--dark); color: #E6F6F8; font-size: .9rem; padding: 8px 20px; text-align: center; }
.demo-bar strong { background: #FDE68A; color: #12323D; border-radius: 4px; padding: 1px 8px; margin-right: 8px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.15rem; min-width: 0; }
.brand-mark { flex: none; width: 38px; height: 38px; border-radius: 11px; background: var(--primary); display: grid; place-items: center; }
.brand-mark svg { width: 22px; height: 22px; fill: #fff; }
.brand-mark.line svg { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav { display: none; gap: 24px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; padding: 10px 2px; }
.nav a:hover { color: var(--primary-deep); text-decoration: underline; text-underline-offset: 6px; }
.top-cta { display: none; gap: 10px; margin-left: auto; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 18px; border-radius: 999px; border: 2px solid transparent; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: background-color .18s ease, border-color .18s ease, transform .12s ease; white-space: nowrap; }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-deep); }
.btn-ghost { background: #fff; color: var(--primary-deep); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #095730; }
.btn-lg { min-height: 54px; padding: 12px 24px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* hero */
.hero { background: linear-gradient(180deg, #fff 0%, var(--tint) 100%); padding: 44px 0 52px; border-bottom: 1px solid var(--line); }
.hero-in { display: grid; gap: 32px; align-items: center; }
.eyebrow { color: var(--primary-deep); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .85rem; margin-bottom: 12px; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 20px; }
.badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.badges li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .92rem; }
.rating-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.donut { position: relative; width: min(100%, 230px); aspect-ratio: 1; margin: 0 auto 18px; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; display: block; }
.seg { stroke-dasharray: 0 var(--c); transition: stroke-dasharray .9s cubic-bezier(.2, .7, .2, 1) var(--d), opacity .18s ease, stroke-width .18s ease; cursor: pointer; }
.drawn .seg { stroke-dasharray: var(--len) var(--c); }
.has-active .seg { opacity: .3; }
.has-active .seg.on { opacity: 1; stroke-width: 30; }
.donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none; padding: 0 34px; }
.dc-num { font-size: 2.6rem; font-weight: 700; line-height: 1.05; }
.dc-label { font-size: .9rem; color: var(--muted); font-weight: 700; }
.dc-sub { font-size: .88rem; color: var(--muted); }
.stars { display: inline-block; font-size: 1.15rem; letter-spacing: 2px; color: transparent; background: linear-gradient(90deg, #B45309 var(--fill, 100%), #D5DEE2 var(--fill, 100%)); -webkit-background-clip: text; background-clip: text; }
.rlegend { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--line); }
.rlegend li { display: grid; grid-template-columns: 14px 1fr auto 44px; gap: 10px; align-items: center; min-height: 40px; padding: 4px 8px; border-radius: 8px; cursor: default; font-size: .95rem; transition: background-color .15s ease; }
.rlegend li.on, .rlegend li:hover { background: var(--tint); }
.rlegend .sw { width: 12px; height: 12px; border-radius: 50%; }
.rlegend .pc { text-align: right; color: var(--muted); }
.rating-link { display: inline-block; margin-top: 12px; font-weight: 700; padding: 8px 0; }

/* sections */
.sec { padding: 56px 0; }
.sec-tint { background: var(--tint); border-block: 1px solid var(--line); }
.sub { color: var(--muted); max-width: 62ch; }
.grid { display: grid; gap: 14px; margin-top: 24px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }
.card .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--tint); display: grid; place-items: center; margin-bottom: 12px; color: var(--primary-deep); }
.card .ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sample { margin-top: 16px; font-size: .9rem; color: var(--muted); border-left: 3px solid #FDE68A; padding-left: 12px; }
.docs { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 24px; }
.doc { display: flex; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.avatar { flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1.3rem; }
.doc h3 { margin: 0 0 2px; }
.doc p { margin: 0; color: var(--muted); }
.why { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.why li { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; padding: 14px 16px; }

/* visit */
.visit { display: grid; gap: 28px; }
.open { display: inline-block; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: #D1FAE5; color: #065F46; }
.open.closed { background: #FEE2E2; color: #991B1B; }
.hours { border-collapse: collapse; width: 100%; max-width: 420px; margin: 8px 0 20px; }
.hours th, .hours td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); font-weight: 400; vertical-align: top; }
.hours th { padding-right: 16px; }
.hours tr.today th, .hours tr.today td { font-weight: 700; }
address { font-style: normal; margin-bottom: 16px; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 320px; background: #fff; }
.map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* form */
.form-wrap { display: grid; gap: 28px; }
.steps { padding-left: 1.2em; color: var(--muted); }
.steps li { margin: 6px 0; }
form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.field { margin-bottom: 16px; }
label { display: block; font-weight: 700; margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--muted); }
input:not([type=checkbox]), select, textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--field); border-radius: 10px; padding: 12px 14px; min-height: 48px; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(14, 116, 144, .35); border-color: var(--primary); }
[aria-invalid=true] { border-color: var(--danger) !important; }
.hint { font-size: .9rem; color: var(--muted); margin: 6px 0 0; }
.err { font-size: .92rem; color: var(--danger); margin: 6px 0 0; font-weight: 700; }
.err:empty { display: none; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; }
.check input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--primary); }
.check label { font-weight: 400; margin: 0; font-size: .95rem; }
.check .err { grid-column: 2; }
.form-msg { margin: 14px 0 0; }
.form-msg:empty { display: none; }
.form-msg.ok { background: #D1FAE5; color: #065F46; border-radius: 10px; padding: 12px 14px; }
.form-msg.bad { background: #FEE2E2; color: #991B1B; border-radius: 10px; padding: 12px 14px; }
.form-msg pre { white-space: pre-wrap; font: inherit; font-size: .92rem; margin: 8px 0 0; }

/* booking */
.book { background: #fff; border-bottom: 1px solid var(--line); }
.book-grid { display: grid; gap: 28px; margin-top: 24px; }
.book-grid > * { min-width: 0; }
.step { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.step span { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: .95rem; }
.picker .step:not(:first-child) { margin-top: 24px; }
.days { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x proximity; }
.day { flex: none; min-width: 78px; min-height: 60px; padding: 8px 10px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: inherit; cursor: pointer; scroll-snap-align: start; transition: background-color .15s ease, border-color .15s ease; }
.day b, .day span { display: block; line-height: 1.25; }
.day span { font-size: .88rem; color: var(--muted); }
.day:hover { border-color: var(--primary); }
.day[aria-pressed=true] { background: var(--primary); border-color: var(--primary); color: #fff; }
.day[aria-pressed=true] span { color: #E6F6F8; }
.grp { font-weight: 700; margin: 14px 0 8px; font-size: .95rem; color: var(--muted); }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.slot { min-height: 46px; border-radius: 10px; border: 1.5px solid var(--primary); background: #fff; color: var(--primary-deep); font: inherit; font-weight: 700; cursor: pointer; transition: background-color .15s ease; }
.slot:hover:not([disabled]) { background: var(--tint); }
.slot[aria-pressed=true] { background: var(--primary); color: #fff; }
.slot[disabled] { border-color: #D5DEE2; background: #EEF2F4; color: #64748B; text-decoration: line-through; cursor: not-allowed; font-weight: 400; }
.slot-status { min-height: 1.6em; margin: 0; color: var(--muted); font-size: .95rem; }
.legend { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .9rem; color: var(--muted); margin: 16px 0 0; }
.lg { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--primary); background: #fff; }
.lg-taken { border-color: #D5DEE2; background: #EEF2F4; margin-left: 12px; }
.chosen { background: var(--tint); border: 1.5px dashed var(--line); border-radius: 10px; padding: 12px 14px; color: var(--muted); margin-bottom: 8px; }
.chosen.on { border-style: solid; border-color: var(--primary); color: var(--ink); font-weight: 700; }
#e-slot { margin-bottom: 12px; }
@media (min-width: 860px) { .book-grid { grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; } }
@media (prefers-reduced-motion: reduce) { .day, .slot { transition: none; } }

/* footer + mobile dock */
.foot { background: var(--dark); color: var(--dark-text); padding: 28px 0 96px; font-size: .95rem; }
.foot p { margin: 0 0 4px; }
.foot #foot-name { color: #fff; font-weight: 700; }
.foot .credit { margin-top: 12px; font-size: .88rem; color: var(--dark-muted); }
.dock { position: fixed; inset: auto 0 0 0; z-index: 30; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); }
.dock .btn { padding: 8px 6px; }
.dock.two { grid-template-columns: 1fr 1fr; }

@media (min-width: 860px) {
  .nav, .top-cta { display: flex; }
  .top-cta { margin-left: 0; }
  .hero { padding: 72px 0 80px; }
  .hero-in { grid-template-columns: 1.35fr .9fr; gap: 48px; }
  .visit, .form-wrap { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
  .sec { padding: 80px 0; }
  .dock { display: none; }
  .foot { padding-bottom: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .seg { transition: none; stroke-dasharray: var(--len) var(--c); }
}

/* ---------- skin: studio (SITE.skin = 'studio' in config.js) ----------
   Centred bold hero with pill buttons, the booking shown as a showcase card on blue arches,
   a wave into tinted feature cards. Every rule is scoped, so clients without the skin are untouched. */
.skin-studio { --pop: #D6F25A; --radius: 20px; --shadow: 0 2px 4px rgba(20, 23, 31, .04), 0 24px 60px rgba(29, 78, 216, .14); }
.skin-studio body { background: #fff; font-size: 16.5px; }
.skin-studio h1, .skin-studio h2 { font-weight: 700; letter-spacing: -.02em; }
.skin-studio h1 { font-size: clamp(2.1rem, 6.2vw, 4.1rem); line-height: 1.12; max-width: 17ch; margin-inline: auto; }
.skin-studio h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
.skin-studio h3 { font-weight: 600; }
.skin-studio .sec > .wrap > h2, .skin-studio .sec > .wrap > .sub { text-align: center; margin-inline: auto; }
.skin-studio .sec > .wrap > .sample { max-width: 70ch; }

.skin-studio .top { border-bottom: 0; background: rgba(255, 255, 255, .92); }
.skin-studio .top-in { min-height: 76px; }
.skin-studio .brand-mark { background: var(--ink); border-radius: 12px; }
.skin-studio .brand-mark.line svg { stroke: var(--pop); }
.skin-studio .nav { margin-inline: auto; gap: 32px; }
.skin-studio .nav a { font-weight: 500; }

.skin-studio .btn { font-weight: 600; }
.skin-studio .btn-primary { background: var(--ink); color: #fff; }
.skin-studio .btn-primary:hover { background: #000; }
.skin-studio .btn-ghost, .skin-studio .btn-wa { background: #fff; color: var(--ink); border-color: var(--ink); border-width: 1.5px; }
.skin-studio .btn-ghost:hover, .skin-studio .btn-wa:hover { background: var(--tint); border-color: var(--ink); }
.skin-studio .btn-wa svg { color: var(--wa); }
.skin-studio .top .btn-ghost { border-color: transparent; background: transparent; }
.skin-studio .top .btn-ghost:hover { border-color: var(--line); }

.skin-studio .hero { background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); border-bottom: 0; padding: 44px 0 24px; text-align: center; position: relative; overflow: hidden; }
.skin-studio .hero-in { grid-template-columns: 1fr; position: relative; z-index: 1; }
.skin-studio .eyebrow { display: inline-block; background: var(--tint); color: var(--primary-deep); border-radius: 999px; padding: 6px 16px; letter-spacing: .01em; text-transform: none; font-weight: 600; font-size: .9rem; margin-bottom: 20px; }
.skin-studio .lede { margin-inline: auto; max-width: 54ch; font-size: 1.1rem; }
.skin-studio .hero-actions { justify-content: center; margin: 28px 0 22px; }
.skin-studio .hero .btn-primary { background: var(--pop); color: var(--ink); }
.skin-studio .hero .btn-primary:hover { background: #C5E53F; }
.skin-studio .badges { justify-content: center; }
.skin-studio .badges li { border-color: var(--line); color: var(--muted); font-size: .9rem; }
.hero-art { display: none; }
.hero-art i { position: absolute; width: 68px; height: 68px; border-radius: 20px; background: #fff; color: var(--primary); box-shadow: var(--shadow); display: grid; place-items: center; }
.hero-art svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hero-art i:nth-child(1) { left: 6%; top: 20%; transform: rotate(-8deg); }
.hero-art i:nth-child(2) { left: 11%; top: 58%; transform: rotate(6deg); background: var(--pop); color: var(--ink); }
.hero-art i:nth-child(3) { right: 6%; top: 18%; transform: rotate(8deg); background: var(--ink); color: var(--pop); }
.hero-art i:nth-child(4) { right: 11%; top: 60%; transform: rotate(-6deg); }

/* booking as the showcase: a white card sitting on two arches */
.skin-studio .book { background: var(--bg); border: 0; position: relative; overflow: hidden; padding: 48px 0 130px; }
.skin-studio .book::before, .skin-studio .book::after { content: ""; position: absolute; bottom: 0; width: 44%; max-width: 400px; border-radius: 999px 999px 0 0; background: linear-gradient(180deg, #9CC4FF 0%, var(--primary) 100%); }
.skin-studio .book::before { top: 0; left: max(-60px, calc(50% - 660px)); }
.skin-studio .book::after { top: 110px; right: max(-60px, calc(50% - 660px)); }
.skin-studio .book > .wrap { position: relative; z-index: 1; width: calc(100% - 24px); max-width: 1080px; background: #fff; border-radius: 28px; padding: 28px 16px; box-shadow: var(--shadow); }
.skin-studio form { box-shadow: none; border: 0; background: var(--bg); border-radius: 20px; }
.skin-studio input:focus, .skin-studio select:focus, .skin-studio textarea:focus { outline-color: color-mix(in srgb, var(--primary) 35%, transparent); }
.skin-studio .day[aria-pressed=true] span { color: #fff; }

/* wave into the feature cards */
.skin-studio .glance { background: #fff; position: relative; padding-top: 28px; }
.skin-studio .glance::before, .skin-studio .glance::after { content: ""; position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: 90px; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0 90V38c190 52 430 62 730 22s550-50 710-12v42z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0 90V38c190 52 430 62 730 22s550-50 710-12v42z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.skin-studio .glance::before { background: #fff; z-index: 1; }
.skin-studio .glance::after { background: var(--tint); z-index: 0; transform: translateY(-14px); }
.feats { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 28px; }
.feat { background: var(--tint); border-radius: 20px; padding: 32px 28px; }
.feat svg { width: 44px; height: 44px; fill: none; stroke: var(--primary); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; display: block; margin-bottom: 16px; }
.feat h3 { font-size: 1.35rem; font-weight: 500; }
.feat p { color: var(--muted); margin: 0; }
.rating-slot { margin-top: 20px; }
.skin-studio .rating-card { box-shadow: none; border-radius: 24px; padding: 28px; }

.skin-studio .card { border: 0; background: var(--tint); border-radius: 20px; padding: 28px; }
.skin-studio .card .ico { background: #fff; color: var(--primary); width: 46px; height: 46px; border-radius: 14px; }
.skin-studio .sec-tint { background: var(--bg); border: 0; }
.skin-studio .doc { border: 0; border-radius: 20px; box-shadow: 0 1px 2px rgba(20, 23, 31, .05), 0 10px 30px rgba(29, 78, 216, .08); }
.skin-studio .avatar { background: var(--ink); color: var(--pop); }
.skin-studio .why li { border: 0; background: var(--tint); border-radius: 16px; padding: 16px 20px; }
.skin-studio .map { border: 0; border-radius: 24px; box-shadow: var(--shadow); }
.skin-studio .dock { border-top: 0; box-shadow: 0 -8px 24px rgba(20, 23, 31, .08); }

@media (min-width: 720px) {
  .skin-studio .rating-card { display: grid; grid-template-columns: 230px 1fr; column-gap: 40px; align-items: center; padding: 32px 40px; }
  .skin-studio .donut { grid-row: 1 / 3; margin: 0; }
  .skin-studio .rlegend { border-top: 0; padding-top: 0; }
}
@media (min-width: 860px) {
  .skin-studio .hero { padding: 72px 0 36px; }
  .skin-studio .book { padding: 56px 0 150px; }
  .skin-studio .book > .wrap { padding: 44px 44px 48px; border-radius: 32px; }
}
@media (min-width: 1100px) { .skin-studio .hero-art { display: block; } }
.skin-studio .nav a, .skin-studio .brand-name { white-space: nowrap; }
.skin-studio .top-cta { margin-left: auto; }
@media (min-width: 860px) and (max-width: 1039px) { .skin-studio .nav { display: none; } }

/* studio skin: community block (SITE.community) */
.cm-badge { width: fit-content; margin: 0 auto 20px; background: var(--tint); color: var(--ink); border-radius: 999px; padding: 5px 16px; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.skin-studio .cm-title { max-width: 22ch; font-size: clamp(1.6rem, 4.2vw, 2.9rem); line-height: 1.3; font-weight: 600; }
.cm-pill { position: relative; display: inline-block; vertical-align: middle; }
.cm-pill button { display: grid; place-items: center; width: 60px; height: 48px; border-radius: 999px; border: 2px solid #fff; background: var(--ink); color: var(--pop); box-shadow: 0 4px 14px rgba(20, 23, 31, .18); cursor: pointer; transition: width .3s ease; }
.cm-pill:nth-of-type(even) button { background: var(--pop); color: var(--ink); }
.cm-pill svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cm-tip { position: absolute; z-index: 5; top: calc(100% + 10px); left: 50%; width: min(280px, 72vw); transform: translate(-50%, 6px); background: #fff; color: var(--ink); border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow); font-size: .9rem; font-weight: 400; line-height: 1.5; letter-spacing: 0; text-align: left; opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s; }
.cm-pill:hover .cm-tip, .cm-pill:focus-within .cm-tip { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.cm-stats { list-style: none; margin: 20px 0 0; padding: 20px 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 0; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; }
.cm-stats li { position: relative; display: grid; place-items: center; min-height: 84px; padding: 0 14px; text-align: center; overflow: hidden; border-radius: 10px; }
.cm-face, .cm-num { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.cm-face { display: none; color: var(--muted); font-weight: 500; }
.cm-face svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cm-num b { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 600; line-height: 1.1; }
.cm-num span { font-size: .88rem; color: var(--muted); }
@media (min-width: 720px) {
  .cm-stats { grid-template-columns: repeat(4, 1fr); padding: 24px 16px; }
  .cm-stats li + li::before { content: ""; position: absolute; left: 0; top: 50%; height: 36px; margin-top: -18px; border-left: 2px dashed var(--line); }
  .cm-pill button:hover, .cm-pill button:focus-visible { width: 120px; }
}
/* with a mouse: the icon shows first and the figure slides in on hover or focus; on touch the figures are always shown */
@media (hover: hover) and (min-width: 720px) {
  .cm-face { display: flex; transition: transform .3s ease-out, opacity .3s ease-out; }
  .cm-num { opacity: 0; transform: translateY(28px); transition: transform .3s ease-out, opacity .3s ease-out; }
  .cm-stats li:hover .cm-face, .cm-stats li:focus-visible .cm-face { opacity: 0; transform: translateY(-36px); }
  .cm-stats li:hover .cm-num, .cm-stats li:focus-visible .cm-num { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .cm-pill button, .cm-tip, .cm-face, .cm-num { transition: none; } }
