/* Clave Social Studio theme — dark plum, peach accent, serif headings.
   Loaded last: re-maps the original variables and restyles components. */
:root {
  --surface: #1d131a; --panel: #251820; --panel-bright: #2c1b25; --cs-line: #49313e;
  --text: #fff1e6; --cs-muted: #c9b4bd; --gold: #f6ac7e; --peach: #ffccaa; --pink: #e697ad; --success: #aedeae;
  --serif: Georgia, "Times New Roman", serif;
  /* original variables, re-mapped */
  --blue: #ffccaa; --blue-2: #ffd9bf; --blue-soft: #33202b;
  --red: #f6ac7e; --red-2: #ffbe94; --red-soft: rgba(246, 172, 126, .14);
  --white: #251820; --paper: #1d131a; --ink: #fff1e6; --muted: #c9b4bd; --line: #49313e;
  --radius: 17px; --shadow: 0 10px 30px rgba(0, 0, 0, .25);
  color-scheme: dark;
}
html { background: #170f15; }
body { background: #170f15 radial-gradient(80% 528px at 49% 5%, #281722 0%, transparent 100%) no-repeat; color: var(--text); }
a { color: var(--gold); }
h1, h2, h3, .give h3, .bookcover b, .brand b { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }
h2, h3 { color: var(--text); }
h1 em, h2 em, h3 em, .brand b em, .hero-tag em { font-style: italic; color: var(--gold); background: none !important; padding: 0 !important; }
h4 { color: var(--peach); }
.eyebrow { color: var(--gold); letter-spacing: 2.5px; }
.eyebrow::before { content: ""; display: inline-block; width: 22px; height: 1px; background: currentColor; vertical-align: middle; margin-right: 10px; }
.muted { color: var(--cs-muted); }

/* header */
header.top { background: #1a1017; border-bottom: 1px solid #392633; }
.flagbar, .flagbar.r { display: none; }
.brand { color: var(--text); }
.brand b { font-size: 1.45rem; }
.brand small { color: var(--cs-muted); letter-spacing: 3px; font-weight: 700; font-size: .62rem; }
.brand-mark { width: 36px; height: 36px; border-radius: 9px; background: var(--gold); display: inline-flex; align-items: center; justify-content: center; gap: 3px; flex: none; }
.brand-mark i { display: block; width: 3px; border-radius: 2px; background: #2a161d; }
.brand-mark i:nth-child(1) { height: 10px; } .brand-mark i:nth-child(2) { height: 18px; } .brand-mark i:nth-child(3) { height: 13px; } .brand-mark i:nth-child(4) { height: 7px; }
nav.main a { color: var(--cs-muted); opacity: 1; font-weight: 600; }
nav.main a:hover { color: var(--text); background: rgba(255, 241, 230, .06); }
nav.main a.active { background: rgba(246, 172, 126, .16); color: var(--peach); }
.acct, .langpick { border-color: #4a3240; color: var(--text); }
.langpick button { color: var(--cs-muted); }
.langpick button.on { background: var(--gold); color: #2a161d; }
.acct.in { background: var(--gold); color: #2a161d; border-color: var(--gold); }
.studio-btn { border-radius: 999px; padding: 7px 14px; font-weight: 600; background: transparent; }
.studio-btn.in { width: auto; height: auto; padding: 7px 14px; font-size: .82rem; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.rolepick { background: rgba(255, 241, 230, .06); }
.rolepick button { color: var(--cs-muted); }
.rolepick button.on { background: var(--gold); color: #2a161d; }
.gueststrip { background: #221520; color: var(--text); border-bottom-color: #392633; }
.gueststrip button { background: var(--gold); color: #2a161d; }

/* hero: full-bleed photo like the reference */
.hero { background: #1d131a url("media/social-dance.webp") 72% 35% / cover no-repeat; border: 1px solid #3b2632; border-radius: 22px; grid-template-columns: 1fr; min-height: 440px; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23, 15, 21, .94) 0%, rgba(23, 15, 21, .78) 42%, rgba(23, 15, 21, .1) 75%); }
.hero .art, .hero .ritmo-couple { display: none !important; }
.hero .txt { max-width: 620px; padding: 64px 44px; }
.hero h1 { font-size: 3.6rem; line-height: 1.02; color: var(--text); }
.hero h1 em { display: block; }
.hero .eyebrow { color: var(--gold) !important; opacity: 1 !important; }
.hero-tag { font-family: var(--serif); font-size: 1.35rem; margin: .3em 0 .7em; opacity: 1 !important; }
.hero p { color: #e9d8cf; opacity: 1; }
.hero .verse { border-color: var(--gold); }
.hero .btn.ghost { border-color: #6a4a5a !important; color: var(--text) !important; background: rgba(29, 19, 26, .6) !important; }
@media (max-width: 820px) { .hero { background-position: 70% 20%; min-height: 0; } .hero::before { background: linear-gradient(180deg, rgba(23, 15, 21, .55) 0%, rgba(23, 15, 21, .95) 55%); } .hero .txt { padding: 180px 22px 28px; } .hero h1 { font-size: 2.6rem; } }

/* surfaces */
.card, .lesson, .mbox, .badge, .st-ev, .cb-item { background: var(--panel); border-color: #3b2632; color: var(--text); box-shadow: none; }
.card { border-radius: 17px; }
.tile:hover { box-shadow: 0 12px 30px rgba(0, 0, 0, .35); border-color: #5a3d4c; }
.ico.b, .ico.r { background: rgba(246, 172, 126, .14); }
.stat { background: var(--panel-bright); }
.stat b { color: var(--peach); }
.tips { background: rgba(246, 172, 126, .1); color: var(--text); }
.tips b { color: var(--peach); }
.phrase { background: var(--panel-bright); }
.quote, .give, footer { background: linear-gradient(135deg, #2c1b25, #1d131a); border: 1px solid #3b2632; }
.give::after { background: var(--gold); opacity: .16; }
.give h3 em { background: none; color: var(--gold); font-style: italic; }
footer { border-width: 1px 0 0; color: var(--cs-muted); }
footer a { color: var(--peach) !important; }
.motto span:nth-child(1), .motto span:nth-child(3) { background: var(--panel-bright); color: var(--peach); }
.motto span:nth-child(2) { background: var(--gold); color: #2a161d; }
.lesson .lh:hover { background: var(--panel-bright); }
.lesson .num { background: var(--panel-bright); color: var(--peach); }
.lesson.done .num { background: var(--gold); color: #2a161d; }
.lb ol li { border-left-color: #4a3240; }
.bookcover { background: linear-gradient(160deg, #3a2230 0 58%, var(--gold) 58%); }
.av { background: var(--gold); color: #2a161d; }
.av.g { background: var(--panel-bright); }
.pill.b { background: rgba(255, 204, 170, .12); color: var(--peach); }
.pill.r { background: rgba(246, 172, 126, .2); color: var(--gold); }
.pill.g { background: rgba(174, 222, 174, .15); color: var(--success); }
.pill:not(.b):not(.r):not(.g) { background: var(--panel-bright); color: var(--cs-muted); }

/* buttons & controls */
.btn { border-radius: 9px; font-weight: 700; }
.btn.red { background: var(--gold); color: #2a161d; }
.btn.red:hover { background: var(--peach); }
.btn.blue { background: var(--panel-bright); color: var(--peach); border: 1px solid #5a3d4c; }
.btn.blue:hover { background: #3a2430; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid #5a3d4c; }
.btn.ghost:hover { background: rgba(255, 241, 230, .06); }
.seg { background: var(--panel); border: 1px solid #4a3240; }
.seg button { color: var(--cs-muted); }
.seg button.on, .seg.redseg button.on { background: rgba(246, 172, 126, .22); color: var(--peach); box-shadow: inset 0 0 0 1px #8a5f4a; }
.opt { background: var(--panel); color: var(--text); border-color: #4a3240; }
.opt:hover { border-color: var(--gold); }
.opt.right { background: rgba(174, 222, 174, .12); border-color: var(--success); color: var(--success); }
.opt.wrong { background: rgba(230, 151, 173, .12); border-color: var(--pink); color: var(--pink); }
.playbtn { background: var(--gold); color: #2a161d; box-shadow: 0 6px 18px rgba(246, 172, 126, .3); }
.tappad { background: var(--panel-bright); border: 1px solid #5a3d4c; color: var(--peach); }
.tappad.flash-good { background: #4a3040; }
.tappad.flash-off { background: #6b2c3d; }
.count .n { background: var(--panel-bright); color: var(--text); border-color: transparent; }
.count.step .n { border-color: #8a5f4a; }
.count.tap .n { border-color: var(--pink); }
.count.on .n { background: var(--gold); color: #2a161d; }
.cell { background: #2a1a24; } .cell.q { background: #321f2b; }
.cell.hit { background: var(--peach); } .cell.hit.acc { background: var(--gold); }
.ms { background: var(--panel); border-color: #4a3240; color: var(--cs-muted); }
.ms.s.on { background: var(--gold); border-color: var(--gold); color: #2a161d; }
.seqrow .inst { background: var(--panel) !important; }
.seqrow.head > div:first-child { background: var(--panel) !important; }
.progressbar { background: var(--panel-bright); }
.progressbar i { background: linear-gradient(90deg, var(--pink), var(--gold)); }
.video { background: #120b10; }
input, select, textarea, .st-in, #dance-groups input { background: #1d131a !important; color: var(--text) !important; border: 1px solid #4a3240 !important; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(246, 172, 126, .5); outline-offset: 1px; }
input[type=range] { accent-color: var(--gold); }
input[type=checkbox], input[type=radio] { accent-color: var(--gold); }
.modal { background: rgba(10, 5, 9, .7); }
.mbox { border-top: 4px solid var(--gold); }
.toast { background: var(--gold); color: #2a161d; }

/* footwork & studios */
.mv-strip span { background: var(--panel-bright); color: var(--text); }
.mv-strip span.x { background: transparent; border-color: var(--pink); color: var(--pink); }
.mv-strip span.on { background: var(--gold); color: #2a161d; }
.mv-card.done { border-color: #8a5f4a; }
.st-table th { color: var(--cs-muted); border-bottom-color: #4a3240; }
.st-table td { border-bottom-color: #3b2632; }
.st-class { border-left-color: var(--gold); }
.st-ev { border-left-color: var(--pink); }
.st-bill { border-left-color: var(--gold); }
.st-bill.locked { background: rgba(230, 151, 173, .1); border-left-color: var(--pink); }
.st-sess { background: var(--panel-bright); }
.st-day-h { color: var(--peach); }
.st-gate { border-left: 5px solid var(--gold); }
.st-days { border-color: #4a3240; }
.st-kiosk { background: #170f15; }
.st-k-top { border-bottom-color: var(--gold); }
.st-k-code { background: #fff1e6 !important; color: #2a161d !important; }
.st-k-pad button { background: rgba(255, 241, 230, .08); }
.st-k-pad button:active, .st-k-pad button[type=submit] { background: var(--gold); color: #2a161d; }
.st-k-item { background: var(--panel); color: var(--text); border: 1px solid #3b2632; }
.st-k-big { background: var(--gold); color: #2a161d; }
.st-k-big.out { background: var(--pink); color: #2a161d; }
.st-k-ok { background: rgba(174, 222, 174, .18); color: var(--success); }

/* mobile bottom nav */
@media (max-width: 760px) {
  nav.main { background: #1a1017; border-top: 1px solid #392633; }
  nav.main a.active { background: rgba(246, 172, 126, .16); color: var(--peach); }
  .studio-btn { padding: 5px 10px; font-size: .75rem; }
  .brand b { font-size: 1.15rem; }
}
@media (max-width: 420px) { .studio-btn { font-size: 0; padding: 6px 9px; } .studio-btn::first-letter { font-size: .9rem; } }

/* socials in your city */
.st-ev.soc { border-left-color: var(--gold); }
.soc-date { width: 48px; text-align: center; background: var(--panel-bright); border-radius: 10px; padding: 4px 0; flex: none; }
.soc-date b { display: block; font-family: var(--serif); font-size: 1.35rem; font-weight: 400; color: var(--peach); line-height: 1.1; }
.soc-date small { text-transform: uppercase; letter-spacing: 1px; font-size: .62rem; color: var(--cs-muted); font-weight: 700; }

/* ticket types */
.st-tix { border: 1px solid var(--cs-line); border-radius: 12px; padding: 6px 10px 10px; margin: 0; }
.st-tix legend { font-size: .85rem; font-weight: 600; padding: 0 4px; }
.st-tix-row { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-bottom: 1px solid #3b2632; cursor: pointer; }
.st-tix-row:last-child { border-bottom: 0; }
.st-tix-row span { flex: 1; }
.st-tix-row small { display: block; color: var(--cs-muted); }
tr.st-off { opacity: .5; }

/* partner skills */
.ps-panel details { border-top: 1px solid #3b2632; padding: 10px 0; }
.ps-panel details:first-of-type { border-top: 0; }
.ps-panel summary { cursor: pointer; font-weight: 700; color: var(--peach); list-style: none; display: flex; justify-content: space-between; }
.ps-panel summary::after { content: "+"; color: var(--gold); font-weight: 800; }
.ps-panel details[open] summary::after { content: "–"; }
.ps-panel details p { margin: 8px 0 0; color: var(--cs-muted); }
.ps-choices { flex-direction: column; }
.ps-choices .opt { text-align: left; }
.feedback.ok { color: var(--success); }

/* footer heritage links (UNESCO) */
footer .heritage { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin: 4px 0 10px; }
footer .heritage a { font-weight: 700; text-decoration: none; border-bottom: 1px solid currentColor; }

/* FAQ */
.faq-cat { margin-bottom: 20px; }
.faq-item { background: var(--panel); border: 1px solid #3b2632; border-radius: 12px; padding: 12px 16px; margin-top: 8px; }
.faq-item summary { cursor: pointer; font-weight: 700; color: var(--text); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-item summary::after { content: "+"; color: var(--gold); font-weight: 800; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 10px 0 0; color: var(--cs-muted); }

/* school subscription payment */
.st-subpay { background: var(--panel-bright); border-radius: 12px; padding: 12px 14px; }
.st-subpay .ppwrap { max-width: 360px; margin: 10px 0; }
.st-subpay .ppbtn { display: inline-flex; }

/* chat */
.chat-card .seg { margin-left: auto; }
.chat-body { height: min(55vh, 520px); overflow-y: auto; background: #1d131a; border: 1px solid #3b2632; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 78%; background: var(--panel-bright); border-radius: 12px 12px 12px 4px; padding: 8px 12px; }
.chat-msg.mine { align-self: flex-end; background: rgba(246, 172, 126, .18); border-radius: 12px 12px 4px 12px; }
.chat-msg.assistant { border-left: 3px solid var(--gold); }
.chat-msg.school { border-left: 3px solid var(--success); }
.chat-meta { font-size: .78rem; margin-bottom: 2px; }
.chat-text { white-space: normal; overflow-wrap: anywhere; }
.chat-acts { display: flex; gap: 10px; margin-top: 4px; }
.chat-acts button { background: none; border: 0; padding: 0; color: var(--cs-muted); font-size: .72rem; cursor: pointer; }
.chat-acts button:hover { color: var(--gold); }
.chat-send { display: flex; gap: 10px; margin-top: 12px; align-items: flex-end; }
.chat-send textarea { flex: 1; resize: vertical; }
.chat-thread { display: grid; gap: 2px; text-align: left; width: 100%; background: var(--panel-bright); border: 1px solid #3b2632; color: var(--text); border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.chat-thread:hover { border-color: var(--gold); }
.chat-thread small { color: var(--cs-muted); }
/* plan choice (school vs socials only) and promo videos */
.st-plan { border: 1px solid var(--cs-line); border-radius: 12px; padding: 6px 10px 10px; margin: 10px 0; }
.st-plan legend { font-size: .85rem; font-weight: 600; padding: 0 4px; }
.st-plan-opt { display: flex; gap: 10px; align-items: flex-start; padding: 8px 6px; cursor: pointer; border-bottom: 1px solid #3b2632; }
.st-plan-opt:last-child { border-bottom: 0; }
.st-plan-opt small { display: block; color: var(--cs-muted); font-weight: 400; }
.soc-video { display: block; width: 100%; max-height: 360px; margin-top: 10px; border-radius: 12px; background: #000; }
.soc-video.sm { width: 220px; max-height: 140px; margin: 0; }
@media (max-width: 600px) { .soc-video.sm { width: 100%; } }

/* tickets */
.tk-card { text-align: center; border: 2px dashed var(--cs-line); border-radius: 16px; padding: 16px 14px; background: rgba(246, 172, 126, .06); }
.tk-code { font: 700 2.4rem/1.1 ui-monospace, "DejaVu Sans Mono", monospace; letter-spacing: .28em; margin: 14px 0 10px; padding: 10px; border-radius: 12px; background: #fff1e6; color: #2a161d; }
