/* Example-platform showcase (shared engine). Avoid class names containing -card/-item/-block/-tile/-tier/-panel (shared.css glass rule). */
.sx{margin-top:4px;}
.sx-label{display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:12px; font-size:13px; color:var(--muted);}
.sx-label b{font:700 11.5px 'Inter',sans-serif; letter-spacing:.08em; text-transform:uppercase; color:#fff; background:var(--accent-gradient); padding:5px 11px; border-radius:999px;}
.sx-tabs{display:flex; gap:6px; flex-wrap:wrap; margin-bottom:12px;}
.sx-tabs button{border:1px solid var(--line); background:#fff; color:var(--ivory); font:600 14px 'Inter',sans-serif; padding:10px 18px; border-radius:999px; cursor:pointer; transition:all .18s ease;}
.sx-tabs button:hover{border-color:var(--accent-dim);}
.sx-tabs button[aria-selected="true"]{background:var(--green); color:var(--on-accent); border-color:var(--green);}
.sx-tabs button:focus-visible,.sx-hot:focus-visible,.sx-chips button:focus-visible,.sx-site button:focus-visible,.sx-site select:focus-visible,.sx-site a:focus-visible{outline:2px solid #6366f1; outline-offset:2px;}
.sx-browser{border:1px solid var(--line); border-radius:16px; overflow:hidden; background:#fff; box-shadow:0 34px 64px -38px rgba(40,30,90,.42);}
.sx-bar{display:flex; align-items:center; gap:7px; padding:10px 14px; background:#f1eff7; border-bottom:1px solid var(--line);}
.sx-bar i{width:9px; height:9px; border-radius:50%; background:#d9d5e6; flex:none;}
.sx-url{margin-left:8px; flex:1; max-width:380px; background:#fff; border:1px solid var(--line); border-radius:999px; padding:4px 12px; font-size:12px; color:#6b6880; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.sx-demo{margin-left:auto; font:700 10.5px 'Inter',sans-serif; letter-spacing:.06em; text-transform:uppercase; color:#8a4b00; background:#fff3dc; border:1px solid #f0cf94; border-radius:999px; padding:3px 9px; white-space:nowrap;}
.sx-site{container-type:inline-size; container-name:site; position:relative;}
.sx-view{animation:sxIn .35s ease;} .sx-view[hidden]{display:none;}
@keyframes sxIn{from{opacity:0; transform:translateY(8px)}to{opacity:1; transform:none}}
[data-pane][hidden]{display:none;}
.sx-reg{position:relative; border-radius:14px; transition:box-shadow .25s ease;}
.sx-reg.sx-flash{box-shadow:0 0 0 3px rgba(99,102,241,.55), 0 0 0 8px rgba(99,102,241,.14);}
.sx-hot{position:absolute; top:10px; right:10px; z-index:5; width:26px; height:26px; border-radius:50%; border:2px solid #fff; background:#6366f1; color:#fff; font:700 13px/1 'Space Grotesk',sans-serif; cursor:pointer; box-shadow:0 4px 12px -2px rgba(40,30,120,.45); display:grid; place-items:center; padding:0;}
.sx-hot:hover{transform:scale(1.1);} .sx-hot[aria-pressed="true"]{background:#16142a;}
.sx-hint{font-size:12.5px; color:var(--muted); margin:10px 2px 0; display:flex; gap:8px; align-items:center;}
.sx-hint i{display:inline-grid; place-items:center; width:18px; height:18px; border-radius:50%; background:#6366f1; color:#fff; font:700 11px 'Space Grotesk',sans-serif; font-style:normal;}

.sx-perf{margin-top:18px; border:1px solid var(--line); border-radius:16px; background:var(--forest-2);}
.sx-perf>summary{cursor:pointer; padding:16px 22px; font:600 15px 'Inter',sans-serif; list-style:none; display:flex; justify-content:space-between; align-items:center; gap:12px;}
.sx-perf>summary::-webkit-details-marker{display:none;}
.sx-perf>summary::after{content:'+'; font:500 22px/1 'Inter',sans-serif; color:var(--muted);}
.sx-perf[open]>summary::after{content:'–';}
.sx-perf>summary small{display:block; font-weight:400; color:var(--muted); font-size:13px; margin-top:2px;}
.sx-perf-in{padding:0 14px 16px;}

/* ===== Shared website-preview building blocks (themed per site via CSS variables) ===== */
.sxs{--bg:#fff; --ink:#1b2230; --soft:#5b6579; --line2:#e3e8f0; --brand:#2a6f9e; --brand-ink:#fff; --tint:#eef4fa; --serif:'Fraunces',Georgia,'Times New Roman',serif; background:var(--bg); color:var(--ink); font-family:'Inter',system-ui,sans-serif; font-size:15px; line-height:1.55;}
.sxs *{box-sizing:border-box;}
.sxs h1,.sxs h2,.sxs h3,.sxs h4,.sxs p,.sxs ul,.sxs ol{margin:0; padding:0; letter-spacing:normal; text-transform:none; background:none; color:inherit; -webkit-text-fill-color:currentColor;}
.sxs h1,.sxs h2,.sxs h3{font-family:var(--serif); font-weight:600; line-height:1.12; letter-spacing:-.015em;}
.sxs ul,.sxs ol{list-style:none;}
.sxs button{font-family:inherit;}
.sxs-wrap{padding:0 clamp(16px,4cqi,44px);}
.sxs-head{display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px clamp(16px,4cqi,44px); border-bottom:1px solid var(--line2); flex-wrap:wrap;}
.sxs-logo{display:flex; align-items:center; gap:9px; font:600 18px var(--serif); color:var(--ink);}
.sxs-links{display:flex; gap:18px; font-size:13.5px; color:var(--soft);}
@container site (max-width:560px){ .sxs-links span:not(.keep){display:none;} }
.sxs-btn{display:inline-flex; align-items:center; justify-content:center; gap:8px; border:1.5px solid var(--brand); background:var(--brand); color:var(--brand-ink); font:600 14.5px 'Inter',sans-serif; padding:12px 20px; border-radius:10px; cursor:pointer; transition:transform .15s ease, filter .15s ease;}
.sxs-btn:hover{filter:brightness(1.07); transform:translateY(-1px);}
.sxs-btn.ghost{background:transparent; color:var(--brand);}
.sxs-btn.sm{padding:8px 14px; font-size:13px; border-radius:9px;}
.sxs-btn[disabled]{opacity:.5; cursor:default; transform:none; filter:none;}
.sxs-eyebrow{font:700 11.5px 'Inter',sans-serif; letter-spacing:.12em; text-transform:uppercase; color:var(--brand);}
.sxs-chip{display:inline-flex; align-items:center; gap:6px; font-size:12.5px; background:var(--tint); color:var(--ink); border-radius:999px; padding:5px 11px;}
.sxs-sec{padding:clamp(22px,4cqi,40px) 0;}
.sxs-sec+.sxs-sec{border-top:1px solid var(--line2);}
.sxs-sec h2{font-size:clamp(22px,3.4cqi,30px); margin-bottom:14px;}
.sxs-box{background:#fff; border:1px solid var(--line2); border-radius:14px; padding:18px;}
.sxs-row2{display:grid; grid-template-columns:1fr; gap:22px;}
@container site (min-width:760px){ .sxs-row2{grid-template-columns:1.15fr 1fr; gap:36px; align-items:center;} .sxs-row2.top{align-items:start;} }
.sxs-grid2{display:grid; grid-template-columns:1fr; gap:12px;}
@container site (min-width:620px){ .sxs-grid2{grid-template-columns:1fr 1fr;} }
.sxs-fine{font-size:12px; color:var(--soft);}
.sxs-prog{height:9px; border-radius:99px; background:var(--line2); overflow:hidden;} .sxs-prog i{display:block; height:100%; width:0; border-radius:99px; background:var(--brand); transition:width .45s ease;}
.sxs-acc{width:100%; display:flex; align-items:center; justify-content:space-between; gap:12px; text-align:left; background:#fff; border:1px solid var(--line2); border-radius:12px; padding:13px 16px; font:600 15px 'Inter',sans-serif; color:var(--ink); cursor:pointer;}
.sxs-acc[aria-expanded="true"]{border-color:var(--brand); border-bottom-left-radius:0; border-bottom-right-radius:0; background:var(--tint);}
.sxs-acc .pl{font:500 20px/1 'Inter',sans-serif; color:var(--soft); transition:transform .2s ease;} .sxs-acc[aria-expanded="true"] .pl{transform:rotate(45deg);}
.sxs-accbody{border:1px solid var(--brand); border-top:none; border-radius:0 0 12px 12px; padding:10px 16px 14px; background:#fff;}
.sxs-accbody[hidden]{display:none;}
.sxs-stack{display:grid; gap:8px;}
.sxs-stack>div{margin:0;}
@media (prefers-reduced-motion:reduce){ .sx-view,.sx-reg{animation:none; transition:none;} .sxs-prog i,.sxs-btn,.sxs-acc .pl{transition:none;} .sxs-btn:hover{transform:none;} }
@media (max-width:820px){ .sx-tabs button{flex:1 1 auto; padding:10px 12px; font-size:13px;} .sx-cta{padding:18px;} }

/* Explore example (full-screen view of the same live concept) */
.sx-explore{margin-left:auto; display:inline-flex; align-items:center; gap:7px; font:600 13px 'Inter',sans-serif; color:var(--ivory); background:#fff; border:1px solid var(--line); border-radius:999px; padding:7px 14px; cursor:pointer; transition:border-color .18s ease, transform .18s ease;}
.sx-explore:hover{border-color:var(--accent-dim); transform:translateY(-1px);}
.sx-explore:focus-visible,.sx-close:focus-visible{outline:2px solid #6366f1; outline-offset:2px;}
.sx-fullbar{display:none;}
.sx-stage.sx-full{position:fixed; inset:0; z-index:99999; overflow-y:auto; overscroll-behavior:contain; background:var(--black); padding:0 clamp(12px,3vw,32px) 40px;}
.sx-stage.sx-full > *{max-width:1240px; margin-left:auto; margin-right:auto;}
.sx-stage.sx-full .sx-fullbar{display:flex; align-items:center; justify-content:space-between; gap:12px; position:sticky; top:0; z-index:5; padding:12px 0; background:var(--black); font-size:13px; color:var(--muted);}
.sx-fullbar b{color:var(--ivory);}
.sx-close{font:600 13px "Inter",sans-serif; background:var(--green); color:var(--black); border:0; border-radius:999px; padding:8px 16px; cursor:pointer;}
html.sx-lock,html.sx-lock body{overflow:hidden;}
@media (max-width:820px){ .sx-explore{margin-left:0;} .sx-stage.sx-full{padding:0 10px 32px;} .sx-stage.sx-full .sx-browser{border-radius:12px;} }
@media (prefers-reduced-motion:reduce){ .sx-explore{transition:none;} }

.sxs-nl{font:inherit; color:inherit; background:none; border:0; padding:4px 2px; cursor:pointer; border-bottom:2px solid transparent;} .sxs-nl:hover{border-bottom-color:currentColor;} .sxs-nl[aria-current="page"]{border-bottom-color:currentColor; font-weight:600;}
button.sxs-logo{background:none; border:0; padding:0; font:inherit; color:inherit; cursor:pointer; text-align:left;}
@container site (max-width:560px){ .sxs-links .sxs-nl:not(.keep){display:none;} }

.sx-browser{position:relative;} .sx-toast{position:absolute; left:50%; bottom:16px; transform:translate(-50%,12px); background:#1b1b24; color:#fff; font:500 13px 'Inter',sans-serif; padding:9px 16px; border-radius:999px; opacity:0; pointer-events:none; transition:opacity .2s ease, transform .2s ease; z-index:6; max-width:90%; text-align:center;} .sx-toast.on{opacity:1; transform:translate(-50%,0);}
@media (prefers-reduced-motion:reduce){.sx-toast{transition:none;}}


/* v8: fixed-height scrolling preview keeps the page short; full size shows everything */
.sx-stage:not(.sx-full) .sx-site{max-height:min(84vh,840px); overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain; scrollbar-width:thin;}
.sx-stage.sx-full .sx-site{max-height:none; overflow:visible;}
.sx-site .sxs-head{position:sticky; top:0; z-index:6;}
@media (max-width:820px){ .sx-stage:not(.sx-full) .sx-site{max-height:min(78vh,660px);} }


/* v10: preview + information panel, side by side */
.sx-label{display:flex; align-items:center; gap:8px 12px; flex-wrap:wrap; margin-bottom:14px; font-size:14px; color:var(--muted);}
.sx-label b{font-size:12px; letter-spacing:.06em;}
.sx-label span{flex:1 1 320px; max-width:62ch; line-height:1.45;}
.sx-lay{display:grid; grid-template-columns:minmax(0,2fr) minmax(0,1fr); gap:22px; align-items:start;}
.sx-main{min-width:0;}
.sx-browser{border-radius:16px; box-shadow:0 34px 64px -38px rgba(40,30,90,.42);}
.sx-info{position:sticky; top:96px; border:1px solid var(--line); border-radius:18px; background:var(--forest-2); box-shadow:var(--card-shadow); padding:18px 18px 8px; max-height:calc(100vh - 116px); overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin;}
.sx-info .sx-chips{display:flex; gap:6px; flex-wrap:wrap; align-items:center; margin:0 0 12px;}
.sx-chips-l{flex:0 0 100%; font:700 11px 'Inter',sans-serif; letter-spacing:.09em; text-transform:uppercase; color:var(--muted); margin-bottom:2px;}
.sx-chips button{border:1px solid var(--line); background:#fff; color:var(--ivory); font:600 12.5px 'Inter',sans-serif; padding:6px 12px; border-radius:999px; cursor:pointer;}
.sx-chips button:hover{border-color:var(--accent-dim);}
.sx-chips button[aria-pressed="true"]{background:var(--green); color:var(--on-accent); border-color:var(--green);}
.sx-chips button:focus-visible,.sx-ish:focus-visible{outline:2px solid #6366f1; outline-offset:2px;}
.sx-ititle{font:700 19px/1.25 'Space Grotesk',sans-serif; letter-spacing:-.01em; margin:4px 0 10px; color:var(--ivory);}
.sx-isec{border-top:1px solid var(--line);}
.sx-isec h4{margin:0; background:none; -webkit-text-fill-color:currentColor;}
.sx-ish{width:100%; display:flex; align-items:center; justify-content:space-between; gap:10px; background:none; border:0; padding:12px 0; cursor:default; font:700 11.5px 'Inter',sans-serif; letter-spacing:.09em; text-transform:uppercase; color:var(--accent-dim,#4f46e5); text-align:left;}
.sx-ish i{display:none; width:9px; height:9px; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(45deg); transition:transform .18s ease; margin-right:4px;}
.sx-ish[aria-expanded="true"] i{transform:rotate(-135deg);}
.sx-isb{padding:0 0 14px;}
.sx-isb[hidden]{display:block;}
.sx-ilist{list-style:none; padding:0; margin:0; display:grid; gap:8px;}
.sx-ilist li{position:relative; padding-left:20px; font-size:13.5px; line-height:1.45; color:var(--ivory);}
.sx-ilist li::before{content:''; position:absolute; left:0; top:6px; width:8px; height:8px; border-radius:50%; background:var(--accent-gradient);}
.sx-itrack{list-style:none; padding:0; margin:0; display:grid; gap:8px;}
.sx-itrack li{background:#fff; border:1px solid var(--line); border-radius:11px; padding:9px 12px;}
.sx-itrack b{display:block; font:600 13.5px 'Inter',sans-serif; color:var(--ivory);}
.sx-itrack span{display:block; font-size:12.5px; line-height:1.45; color:var(--muted); margin-top:2px;}
.sx-stage:not(.sx-full) .sx-site{max-height:min(80vh,820px);}

/* Full size: preview left, panel right */
.sx-stage.sx-full > *{max-width:1480px;}
.sx-stage.sx-full .sx-lay{grid-template-columns:minmax(0,1fr) 340px; gap:20px;}
.sx-stage.sx-full .sx-info{top:64px; max-height:calc(100vh - 84px);}

/* Tablet and phone: panel sits directly under the preview as compact expandable sections */
@media (max-width:1000px){
  .sx-lay,.sx-stage.sx-full .sx-lay{grid-template-columns:minmax(0,1fr); gap:14px;}
  .sx-info,.sx-stage.sx-full .sx-info{position:static; max-height:none; overflow:visible; padding:14px 14px 4px; border-radius:16px;}
  .sx-ish{cursor:pointer; padding:13px 0; min-height:44px;}
  .sx-ish i{display:block;}
  .sx-isb[hidden]{display:none;}
  .sx-ititle{font-size:17px;}
  .sx-stage:not(.sx-full) .sx-site{max-height:min(74vh,640px);}
}
@media (prefers-reduced-motion:reduce){ .sx-ish i{transition:none;} }
