/* The lab keeps the same readable light experience as the rest of the site.
   Apply after shared theme styles so card surfaces and type switch together. */
html[data-theme="light"]{
  color-scheme:light;
  --bg:#fff7fc;
  --panel:#fffafd;
  --ink:#382441;
  --muted:#594361;
  --pink:#85446e;
}
html[data-theme="light"] body{
  color:var(--ink);
  background:radial-gradient(ellipse at 85% 8%,#edd8f3,transparent 57%),radial-gradient(ellipse at 8% 42%,#f6dce9,transparent 60%),#fff9fd;
}
html[data-theme="light"] main,
html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] .hero-demo strong{color:var(--ink)}
html[data-theme="light"] main h1 em{color:#85446e!important}
html[data-theme="light"] .eyebrow{color:#82456d}
html[data-theme="light"] .lead,
html[data-theme="light"] .foot,
html[data-theme="light"] .component p,
html[data-theme="light"] .lab-note p{color:#594361}
html[data-theme="light"] .lab-note{
  color:#382441;
  background:linear-gradient(125deg,#f3e3ef,#ebdbee 75%,#fff7fc);
  border:1px solid #b18aa9;
  box-shadow:0 8px 26px #5b3b5b12;
}
html[data-theme="light"] .lab-note strong{color:#49254f}
html[data-theme="light"] .lab-note a{color:#642e62;font-weight:700}
html[data-theme="light"] .component{
  background:linear-gradient(145deg,#fffafd,#f6ebf7);
  border:1px solid #bc94b7;
  color:#392441;
  box-shadow:0 10px 26px #6e3c5f12;
}
html[data-theme="light"] .demo{
  background:#f4eaf5;
  border:1px solid #bd9aba;
  color:#392441;
}
html[data-theme="light"] .demo details{
  border-color:#b28eaf;
}
html[data-theme="light"] .demo summary,
html[data-theme="light"] .code summary{color:#562e5b}
html[data-theme="light"] .code details{border-color:#c9a9c6}
html[data-theme="light"] .code pre{
  background:#35233f;
  border:1px solid #52335b;
  color:#fff2fc;
}
html[data-theme="light"] .slide{
  color:#35213c;
  background:radial-gradient(circle at 80% 20%,#ebc8e7,transparent 62%),#e6d7ed;
  border-color:#b38cb2;
}
html[data-theme="light"] .pill,
html[data-theme="light"] .action{
  color:#4e2854;
  background:#fff9fdeb;
  border-color:#945a92;
}
html[data-theme="light"] .pill:hover,
html[data-theme="light"] .action:hover{background:#ead8eb}
html[data-theme="light"] .crumb,
html[data-theme="light"] .crumb a{color:#552858}
html[data-theme="light"] .crumb a{text-decoration:underline;text-underline-offset:3px}
html[data-theme="light"] .stars path{stroke:#794377}
html[data-theme="light"] .stars circle{fill:#66336f;filter:drop-shadow(0 0 4px #a567a1a3)}
html[data-theme="light"] .hero-demo{
  color:#392441;
  background:radial-gradient(circle at 60% 20%,#f5d8f0,transparent 68%),#eee0f2;
}
html[data-theme="light"] .hero-demo strong{color:#45274c}
html[data-theme="light"] main :focus-visible{outline:3px solid #864278;outline-offset:3px}
@media(prefers-reduced-motion:reduce){
  html[data-theme="light"] .stars path{animation:none}
}
