/* Examples site styles: sidebar layout, transitions, and small utilities */
:root {
  --ex-sidebar-width: 17.5rem; /* 280px */
}

html {
  overflow-x: hidden;
  height: 100%;
}

body.ex-body {
  min-height: 100vh;
  background: var(--color-surface-neutral-50, #f8f9fb);
  overflow-x: hidden;
  max-width: 100vw;
  height: 100%;
}

.ex-layout {
  display: grid;
  grid-template-columns: var(--ex-sidebar-width) 1fr;
  gap: var(--space-l);
  max-width: 100vw;
  min-height: 100vh;
  align-items: start;
}
@media (max-width: 960px) {
  .ex-layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 3.5rem;
  }
}

/* Sidebar */
.ex-sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: var(--space-l) var(--space-m);
  background: var(--color-card-bg, #fff);
  border-right: var(--border-width-thin) solid var(--color-card-border, #e5e7eb);
}
@media (max-width: 960px) {
  .ex-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100dvh;
    width: min(84vw, 20rem);
    transform: translateX(-100%);
    transition: transform 240ms ease;
    z-index: 1000;
    border-right: var(--border-width-thin) solid var(--color-card-border, #e5e7eb);
    border-bottom: none;
    overflow-y: auto;
    overflow-x: hidden;
  }
}

body.ex-mobile-open .ex-sidebar {
  transform: translateX(0);
}

.ex-brand {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  margin-bottom: var(--space-l);
}

.ex-nav {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}
.ex-nav h4 {
  margin: var(--space-m) 0 var(--space-xs);
  font-size: var(--font-size-s);
  color: var(--color-text-neutral-600, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ex-nav h4.ex-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}
.ex-nav h4.ex-toggle::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.875em;
  color: var(--color-text-neutral-500, #94a3b8);
  transition: transform 200ms ease;
}
.ex-nav h4.ex-toggle[aria-expanded=false]::after {
  transform: rotate(-90deg);
}
.ex-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ex-nav ul.ex-collapsible {
  overflow: hidden;
  max-height: 50rem;
  transition: max-height 240ms ease;
}
.ex-nav ul.ex-collapsible.is-collapsed {
  max-height: 0;
}
.ex-nav li {
  margin-bottom: var(--space-2xs);
}
.ex-nav a {
  display: block;
  padding: var(--space-xs) var(--space-s);
  border-radius: var(--radius-m);
  color: var(--color-text-neutral-800, #1f2937);
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
  text-decoration: none !important;
}
.ex-nav a:hover, .ex-nav a.ex-active {
  background: var(--color-surface-primary-50);
  color: var(--color-text-primary-700);
}

.ex-content {
  position: relative;
  padding: var(--space-l) var(--space-l);
  max-width: 100%;
  overflow-x: hidden;
  min-width: 0;
}
.ex-content:before {
  content: "";
  position: fixed;
  display: block;
  width: 100vw;
  height: 100vh;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  filter: blur(3.5rem) saturate(120%);
  background: radial-gradient(37.5rem 22.5rem at 38% 0%, rgba(123, 47, 247, 0.2) 0%, transparent 50%), radial-gradient(26.25rem 16.25rem at 70% 55%, rgba(0, 201, 255, 0.1) 0%, transparent 100%), radial-gradient(22.5rem 12.5rem at 29% 99%, rgba(184, 146, 255, 0.1) 0%, transparent 100%), radial-gradient(22.5rem 12.5rem at 89% 100%, rgba(146, 255, 195, 0.3) 0%, transparent 100%), radial-gradient(37.5rem 22.5rem at 28% 101%, rgba(123, 47, 247, 0.1) 0%, transparent 100%), radial-gradient(26.25rem 16.25rem at 100% 0%, rgba(0, 201, 255, 0.3) 0%, transparent 100%);
}
.ex-content .cover-wrap {
  min-height: 30vh;
  display: grid;
  place-items: center;
  position: relative;
  padding-bottom: var(--space-l);
}
.ex-content .cover-hero {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 68.75rem;
  padding: 8vh 1.75rem;
  box-sizing: border-box;
}
.ex-content .cover-content {
  position: relative;
  z-index: 3;
  text-align: center;
}
.ex-content .cover-title {
  font-size: clamp(2.25rem, 8.25vw, 5.25rem);
  line-height: 0.95;
  margin: 0 0 0.625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--color-primary-700, #7a2ff7), var(--color-primary-500, #4fb0ff));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  padding: 0 0.375rem;
}
.ex-content .cover-underline {
  height: 0.375rem;
  width: 44%;
  margin: 1.125rem auto;
  border-radius: 0.375rem;
  background: linear-gradient(90deg, rgba(122, 47, 247, 0.95), rgba(79, 176, 255, 0.95));
  box-shadow: 0 0.375rem 1.125rem rgba(79, 176, 255, 0.08);
}
.ex-content .cover-sub {
  color: var(--color-neutral-600, #64748b);
  font-size: 1.05rem;
  margin: 3rem;
  max-width: 42.5rem;
  margin-left: auto;
  margin-right: auto;
}
.ex-content .cover-dots {
  display: flex;
  gap: 1.125rem;
  justify-content: center;
  align-items: center;
  margin-top: 2.125rem;
}
.ex-content .cover-dots .dot {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  box-shadow: 0 0.5rem 1.125rem rgba(0, 0, 0, 0.12);
  border: 0.125rem solid rgba(255, 255, 255, 0.9);
}
.ex-content .dot.p1 {
  background: linear-gradient(180deg, #6e33d8, #7b2ff7);
}
.ex-content .dot.p2 {
  background: linear-gradient(180deg, #9a63ff, #b892ff);
  width: 4rem;
  height: 4rem;
}
.ex-content .dot.p3 {
  background: linear-gradient(180deg, #12c2e9, #3dd7d0);
  width: 3.375rem;
  height: 3.375rem;
}
.ex-content .dot.p4 {
  background: linear-gradient(180deg, #08b06d, #31d4a0);
}
.ex-content .dot.p5 {
  background: linear-gradient(180deg, #03b4d6, #2ad1e6);
  width: 2.125rem;
  height: 2.125rem;
}
@media (max-width: 900px) {
  .ex-content .cover-title {
    font-size: 14vw;
  }
  .ex-content .cover-underline {
    width: 60%;
  }
  .ex-content .dot {
    width: 2.25rem;
    height: 2.25rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ex-content .nebula {
    animation: none;
  }
}

.ex-reveal {
  opacity: 0;
  transform: translateY(0.5rem);
}
.ex-reveal.ex-in {
  opacity: 1;
  transform: none;
  transition: opacity 300ms ease, transform 300ms ease;
}

.ex-section,
.ex-hero {
  margin-bottom: var(--space-2xl);
}

.ex-hero {
  padding: var(--space-xl);
  border-radius: var(--radius-l);
  background: linear-gradient(135deg, var(--color-primary-50, #eef6ff), var(--color-white, #fff));
  border: var(--border-width-thin) solid var(--color-card-border, #e5e7eb);
}

.ex-grid {
  display: grid;
  gap: var(--gap-m, var(--space-m));
}
@media (min-width: 960px) {
  .ex-grid.ex-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
  .ex-grid.ex-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ex-demo-card {
  border-radius: var(--radius-l);
  background: var(--color-card-bg, #fff);
  border: var(--border-width-thin) solid var(--color-card-border, #e5e7eb);
  padding: var(--inset-m, var(--space-m));
  transition: box-shadow 160ms ease, transform 160ms ease;
}
.ex-demo-card:hover {
  box-shadow: var(--shadow-l);
  transform: translateY(-0.125rem);
}
.ex-demo-card .code-block,
.ex-demo-card pre {
  max-width: 100%;
  overflow-x: auto;
}

.code-block,
pre {
  max-width: 100%;
  overflow-x: auto;
  box-sizing: border-box;
  word-wrap: normal;
  word-break: normal;
}

.token-card {
  min-width: 0;
  overflow: hidden;
}
.token-card .code-block,
.token-card pre {
  max-width: 100%;
  overflow-x: auto;
}

.an-table caption {
  caption-side: top;
  text-align: left;
  padding-bottom: var(--space-s);
  color: var(--color-text-neutral-600, #64748b);
  font-size: var(--font-size-s);
}

.ex-theme {
  margin-top: var(--space-l);
  padding-top: var(--space-m);
  border-top: var(--border-width-thin) solid var(--color-card-border, #e5e7eb);
}

.ex-theme-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xs);
}
.ex-theme-row .an-toggle-wrapper {
  margin-bottom: 0;
}

.ex-theme-label {
  font-size: var(--font-size-s);
  color: var(--color-text-neutral-600, #64748b);
}

.ex-topbar {
  display: none;
}
@media (max-width: 960px) {
  .ex-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1100;
    height: 3.5rem;
    padding: 0 var(--space-m);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--color-card-bg, #fff);
    border-bottom: var(--border-width-thin) solid var(--color-card-border, #e5e7eb);
  }
}

@media (max-width: 960px) {
  .ex-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius-full);
    border: var(--border-width-thin) solid var(--color-card-border, #e5e7eb);
    background: var(--color-surface-white, #fff);
    color: var(--color-text-neutral-700, #334155);
  }
  .ex-burger i {
    font-size: 1rem;
  }
}

@media (max-width: 960px) {
  .ex-backdrop {
    display: none;
  }
}
@media (max-width: 960px) {
  body.ex-mobile-open .ex-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: saturate(120%) blur(0.125rem);
    z-index: 900;
  }
}

/* ==================== DESIGN SYSTEM PLAYGROUND ==================== */
.ds-playground body {
  transition: background 0.3s ease, color 0.3s ease;
}
.ds-playground .explorer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-l);
}
.ds-playground {
  /* Hero Section */
}
.ds-playground .explorer-hero {
  text-align: center;
  padding: var(--space-4xl) var(--space-l);
  background: linear-gradient(135deg, var(--color-primary-700) 0%, var(--color-primary-500) 50%, var(--color-info-500) 100%);
  color: var(--color-text-white);
  margin-bottom: var(--space-4xl);
  position: relative;
  overflow: hidden;
}
.ds-playground .explorer-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}
.ds-playground .explorer-hero h1 {
  font-size: var(--font-size-5xl);
  margin: 0 0 var(--space-m);
  font-weight: var(--font-weight-bold);
  position: relative;
  z-index: 1;
}
.ds-playground .explorer-hero p {
  font-size: var(--font-size-xl);
  opacity: 0.95;
  max-width: 700px;
  margin: 0 auto var(--space-xl);
  position: relative;
  z-index: 1;
}
.ds-playground .theme-toggle-container {
  position: relative;
  z-index: 1;
  display: inline-flex;
  gap: var(--space-s);
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  padding: var(--space-s) var(--space-m);
  border-radius: var(--radius-full);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-neutral-300);
}
.ds-playground .theme-toggle-container label {
  font-size: var(--font-size-s);
  font-weight: var(--font-weight-semibold);
  margin-bottom: 0;
}
.ds-playground {
  /* Section Styles */
}
.ds-playground .explorer-section {
  background: var(--color-surface-white);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  margin-bottom: var(--space-2xl);
  box-shadow: var(--shadow-m);
  border: var(--border-width-thin) solid var(--color-border-neutral-100);
  transition: all 0.3s ease;
}
.ds-playground .section-header {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-l);
  border-bottom: var(--border-width-medium) solid var(--color-border-primary-500);
}
.ds-playground .section-header h2 {
  margin: 0 0 var(--space-s);
  color: var(--color-text-primary-700);
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
}
.ds-playground .section-header p {
  margin: 0;
  color: var(--color-text-neutral-600);
  font-size: var(--font-size-l);
}
.ds-playground {
  /* Hidden radio buttons */
}
.ds-playground input[type=radio] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.ds-playground {
  /* Label styles for all controls */
}
.ds-playground label {
  cursor: pointer;
}
.ds-playground {
  /* Unified Pill Label Component */
}
.ds-playground .pill-label {
  display: inline-block;
  padding: var(--space-xs) var(--space-m);
  background: var(--color-surface-neutral-100);
  border: var(--border-width-thin) solid var(--color-border-neutral-200);
  border-radius: var(--radius-m);
  transition: all 0.2s ease;
  font-family: var(--font-family-base);
  font-size: var(--font-size-s);
  font-weight: var(--font-weight-semibold);
  text-transform: capitalize;
  margin-right: var(--space-xs);
  margin-bottom: var(--space-s);
}
.ds-playground .pill-label:hover {
  background: var(--color-surface-neutral-200);
}
.ds-playground input[type=radio]:checked + .pill-label {
  background: var(--color-surface-primary-600);
  color: var(--color-text-white);
  border-color: var(--color-border-primary-700);
}
.ds-playground input[type=radio]:checked + .pill-label:hover {
  background: var(--color-surface-primary-700);
}
.ds-playground .color-demo-area {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
  margin-top: var(--space-2xl);
}
@media (max-width: 900px) {
  .ds-playground .color-demo-area {
    grid-template-columns: 1fr;
  }
}
.ds-playground .color-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: var(--space-m);
}
.ds-playground .color-swatch {
  aspect-ratio: 1;
  border-radius: var(--radius-m);
  border: var(--border-width-thin) solid var(--color-border-neutral-200);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.ds-playground .color-swatch:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-l);
  z-index: 10;
}
.ds-playground .color-swatch:hover::after {
  opacity: 1;
}
.ds-playground .color-swatch::after {
  content: attr(data-label);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-2xs);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: var(--font-size-xs);
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.ds-playground {
  /* Primary Palette Colors */
}
.ds-playground .primary-50 {
  background: var(--color-primary-50);
}
.ds-playground .primary-100 {
  background: var(--color-primary-100);
}
.ds-playground .primary-200 {
  background: var(--color-primary-200);
}
.ds-playground .primary-300 {
  background: var(--color-primary-300);
}
.ds-playground .primary-400 {
  background: var(--color-primary-400);
}
.ds-playground .primary-500 {
  background: var(--color-primary-500);
}
.ds-playground .primary-600 {
  background: var(--color-primary-600);
}
.ds-playground .primary-700 {
  background: var(--color-primary-700);
}
.ds-playground .primary-800 {
  background: var(--color-primary-800);
}
.ds-playground .primary-900 {
  background: var(--color-primary-900);
}
.ds-playground {
  /* Success Palette Colors */
}
.ds-playground .success-100 {
  background: var(--color-success-100);
}
.ds-playground .success-400 {
  background: var(--color-success-400);
}
.ds-playground .success-500 {
  background: var(--color-success-500);
}
.ds-playground .success-600 {
  background: var(--color-success-600);
}
.ds-playground .success-700 {
  background: var(--color-success-700);
}
.ds-playground {
  /* Error Palette Colors */
}
.ds-playground .error-100 {
  background: var(--color-error-100);
}
.ds-playground .error-400 {
  background: var(--color-error-400);
}
.ds-playground .error-500 {
  background: var(--color-error-500);
}
.ds-playground .error-600 {
  background: var(--color-error-600);
}
.ds-playground .error-700 {
  background: var(--color-error-700);
}
.ds-playground {
  /* Warning Palette Colors */
}
.ds-playground .warning-100 {
  background: var(--color-warning-100);
}
.ds-playground .warning-400 {
  background: var(--color-warning-400);
}
.ds-playground .warning-500 {
  background: var(--color-warning-500);
}
.ds-playground .warning-600 {
  background: var(--color-warning-600);
}
.ds-playground .warning-700 {
  background: var(--color-warning-700);
}
.ds-playground {
  /* Info Palette Colors */
}
.ds-playground .info-100 {
  background: var(--color-info-100);
}
.ds-playground .info-400 {
  background: var(--color-info-400);
}
.ds-playground .info-500 {
  background: var(--color-info-500);
}
.ds-playground .info-600 {
  background: var(--color-info-600);
}
.ds-playground .info-700 {
  background: var(--color-info-700);
}
.ds-playground {
  /* Button colors for each palette */
}
.ds-playground #success:checked ~ .color-demo-area .demo-btn-primary {
  background: var(--color-btn-filled-bg-success);
  color: var(--color-btn-filled-text-success);
  border-color: var(--color-btn-filled-border-success);
}
.ds-playground #success:checked ~ .color-demo-area .demo-btn-primary:hover {
  background: var(--color-btn-filled-bg-success-hover);
  border-color: var(--color-btn-filled-border-success-hover);
  box-shadow: var(--shadow-m);
}
.ds-playground #error:checked ~ .color-demo-area .demo-btn-primary {
  background: var(--color-btn-filled-bg-danger);
  color: var(--color-btn-filled-text-danger);
  border-color: var(--color-btn-filled-border-danger);
}
.ds-playground #error:checked ~ .color-demo-area .demo-btn-primary:hover {
  background: var(--color-btn-filled-bg-danger-hover);
  border-color: var(--color-btn-filled-border-danger-hover);
  box-shadow: var(--shadow-m);
}
.ds-playground .demo-card {
  background: var(--color-surface-white);
  border-radius: var(--radius-l);
  padding: var(--space-xl);
  border: var(--border-width-thin) solid var(--color-border-neutral-200);
}
.ds-playground .demo-card-header {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-m);
  color: var(--color-text-neutral-900);
}
.ds-playground .demo-card-body {
  color: var(--color-text-neutral-700);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-l);
}
.ds-playground .demo-buttons {
  display: flex;
  gap: var(--space-m);
  flex-wrap: wrap;
}
.ds-playground .demo-btn {
  display: inline-block;
  padding: var(--padding-block-btn) var(--padding-inline-btn);
  font-family: var(--font-family-base);
  font-size: var(--font-size-m);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  text-align: center;
  text-decoration: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}
.ds-playground .demo-btn-primary {
  background: var(--color-btn-filled-bg);
  color: var(--color-btn-filled-text);
  border: var(--border-width-thin) solid var(--color-btn-filled-bg);
}
.ds-playground .demo-btn-primary:hover {
  background: var(--color-btn-filled-bg-hover);
  border-color: var(--color-btn-filled-bg-hover);
  box-shadow: var(--shadow-m);
}
.ds-playground .demo-btn-secondary {
  background: var(--color-btn-outline-bg);
  color: var(--color-btn-outline-text);
  border: var(--border-width-thin) solid var(--color-btn-outline-border);
}
.ds-playground .demo-btn-secondary:hover {
  background: var(--color-btn-outline-bg-hover);
}
.ds-playground {
  /* Alerts Explorer */
}
.ds-playground .alert-demo-area {
  margin-top: var(--space-xl);
}
.ds-playground {
  /* Form Elements Explorer */
}
.ds-playground .form-controls-group {
  display: flex;
  gap: var(--space-2xl);
  margin-bottom: var(--space-l);
  flex-wrap: wrap;
}
.ds-playground .form-control-section {
  flex: 1;
  min-width: 250px;
}
.ds-playground .form-control-title {
  font-size: var(--font-size-s);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-s);
}
.ds-playground .form-demo-area {
  margin-top: var(--space-xl);
  max-width: 500px;
}
.ds-playground {
  /* Spacing Explorer */
}
.ds-playground .spacing-demo-container {
  margin-top: var(--space-xl);
}
.ds-playground .spacing-demo-box {
  background: var(--color-surface-primary-100);
  border: var(--border-width-medium) dashed var(--color-border-primary-500);
  border-radius: var(--radius-m);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary-700);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.ds-playground {
  /* Spacing value transitions */
}
.ds-playground #space-2xs:checked ~ .spacing-demo-container .spacing-demo-box {
  padding: 0.25rem !important;
}
.ds-playground #space-xs:checked ~ .spacing-demo-container .spacing-demo-box {
  padding: 0.5rem !important;
}
.ds-playground #space-s:checked ~ .spacing-demo-container .spacing-demo-box {
  padding: 0.75rem !important;
}
.ds-playground #space-m:checked ~ .spacing-demo-container .spacing-demo-box {
  padding: 1rem !important;
}
.ds-playground #space-l:checked ~ .spacing-demo-container .spacing-demo-box {
  padding: 1.25rem !important;
}
.ds-playground #space-xl:checked ~ .spacing-demo-container .spacing-demo-box {
  padding: 1.5rem !important;
}
.ds-playground #space-2xl:checked ~ .spacing-demo-container .spacing-demo-box {
  padding: 2rem !important;
}
.ds-playground #space-3xl:checked ~ .spacing-demo-container .spacing-demo-box {
  padding: 2.5rem !important;
}
.ds-playground {
  /* Typography Explorer */
}
.ds-playground .typography-demo-container {
  margin-top: var(--space-xl);
}
.ds-playground .typography-demo-text {
  background: var(--color-surface-neutral-100);
  padding: var(--space-xl);
  border-radius: var(--radius-m);
  color: var(--color-text-neutral-900);
  transition: font-size 0.3s ease;
  line-height: var(--line-height-normal);
}
.ds-playground {
  /* Font size transitions */
}
.ds-playground #size-xs:checked ~ .typography-demo-container .typography-demo-text {
  font-size: var(--font-size-xs);
}
.ds-playground #size-s:checked ~ .typography-demo-container .typography-demo-text {
  font-size: var(--font-size-s);
}
.ds-playground #size-m:checked ~ .typography-demo-container .typography-demo-text {
  font-size: var(--font-size-m);
}
.ds-playground #size-l:checked ~ .typography-demo-container .typography-demo-text {
  font-size: var(--font-size-l);
}
.ds-playground #size-xl:checked ~ .typography-demo-container .typography-demo-text {
  font-size: var(--font-size-xl);
}
.ds-playground #size-2xl:checked ~ .typography-demo-container .typography-demo-text {
  font-size: var(--font-size-2xl);
}
.ds-playground #size-3xl:checked ~ .typography-demo-container .typography-demo-text {
  font-size: var(--font-size-3xl);
}
.ds-playground #size-4xl:checked ~ .typography-demo-container .typography-demo-text {
  font-size: var(--font-size-4xl);
}
.ds-playground {
  /* Radius Explorer */
}
.ds-playground .radius-demo-container {
  margin-top: var(--space-xl);
}
.ds-playground .radius-demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-l);
}
.ds-playground .radius-demo-card {
  background: linear-gradient(135deg, var(--color-primary-500), var(--color-info-500));
  padding: var(--space-2xl);
  color: white;
  text-align: center;
  font-weight: var(--font-weight-bold);
  transition: border-radius 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-m);
}
.ds-playground {
  /* Radius transitions */
}
.ds-playground #radius-s:checked ~ .radius-demo-container .radius-demo-card {
  border-radius: var(--radius-s);
}
.ds-playground #radius-m:checked ~ .radius-demo-container .radius-demo-card {
  border-radius: var(--radius-m);
}
.ds-playground #radius-l:checked ~ .radius-demo-container .radius-demo-card {
  border-radius: var(--radius-l);
}
.ds-playground #radius-xl:checked ~ .radius-demo-container .radius-demo-card {
  border-radius: var(--radius-xl);
}
.ds-playground #radius-2xl:checked ~ .radius-demo-container .radius-demo-card {
  border-radius: var(--radius-2xl);
}
.ds-playground #radius-full:checked ~ .radius-demo-container .radius-demo-card {
  border-radius: var(--radius-full);
}
.ds-playground {
  /* Shadow Explorer */
}
.ds-playground .shadow-demo-container {
  margin-top: var(--space-xl);
}
.ds-playground .shadow-demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-2xl);
  padding: var(--space-2xl);
}
.ds-playground .shadow-demo-card {
  background: var(--color-surface-white);
  padding: var(--space-xl);
  border-radius: var(--radius-l);
  text-align: center;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-neutral-900);
  transition: box-shadow 0.4s ease;
}
.ds-playground .shadow-icon {
  font-size: 2em;
  margin-bottom: var(--space-m);
}
.ds-playground {
  /* Shadow transitions */
}
.ds-playground #shadow-xs:checked ~ .shadow-demo-container .shadow-demo-card {
  box-shadow: var(--shadow-xs);
}
.ds-playground #shadow-s:checked ~ .shadow-demo-container .shadow-demo-card {
  box-shadow: var(--shadow-s);
}
.ds-playground #shadow-m:checked ~ .shadow-demo-container .shadow-demo-card {
  box-shadow: var(--shadow-m);
}
.ds-playground #shadow-l:checked ~ .shadow-demo-container .shadow-demo-card {
  box-shadow: var(--shadow-l);
}
.ds-playground {
  /* Component Showcase */
}
.ds-playground .component-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}
.ds-playground .component-card {
  background: var(--color-surface-white);
  border: var(--border-width-thin) solid var(--color-border-neutral-200);
  border-radius: var(--radius-l);
  padding: var(--space-xl);
  transition: all 0.3s ease;
}
.ds-playground .component-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-l);
}
.ds-playground .component-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-m);
  color: var(--color-text-primary-700);
}
.ds-playground .component-description {
  color: var(--color-text-neutral-600);
  margin-bottom: var(--space-l);
  line-height: var(--line-height-relaxed);
}
.ds-playground .token-badge {
  display: inline-block;
  padding: var(--space-2xs) var(--space-xs);
  background: var(--color-surface-primary-50);
  color: var(--color-text-primary-700);
  border-radius: var(--radius-s);
  font-size: var(--font-size-s);
  font-family: "Courier New", monospace;
  margin: 0 var(--space-2xs) var(--space-2xs) 0;
}
.ds-playground {
  /* Responsive */
}
@media (max-width: 768px) {
  .ds-playground .explorer-hero h1 {
    font-size: var(--font-size-3xl);
  }
  .ds-playground .explorer-hero p {
    font-size: var(--font-size-l);
  }
  .ds-playground .explorer-section {
    padding: var(--space-l);
  }
  .ds-playground .component-grid {
    grid-template-columns: 1fr;
  }
}
.ds-playground h3 {
  margin-bottom: var(--space-m);
  color: var(--color-text-neutral-800);
}

/* Case Study Page Styles - keeping existing styles */
.case-study-page {
  position: relative;
  min-height: 100vh;
}
.case-study-page::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.08) 0%, transparent 50%), radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.case-study-page .hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f1626 100%);
  color: var(--color-text-neutral-900);
  padding: var(--space-4xl) var(--space-m);
  text-align: center;
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
}
.case-study-page .hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 40%, rgba(139, 92, 246, 0.15) 0%, transparent 50%), radial-gradient(circle at 70% 60%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
  pointer-events: none;
}
.case-study-page .hero .container {
  position: relative;
  z-index: 1;
}
.case-study-page .hero h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: var(--font-weight-bold);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 0;
}
.case-study-page .hero-title-gradient {
  background: linear-gradient(90deg, #b892ff 0%, #9a63ff 50%, #4fb0ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}
.case-study-page .hero-underline {
  height: 0.375rem;
  width: clamp(200px, 44%, 450px);
  margin: var(--space-l) auto;
  border-radius: 0.375rem;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.95), rgba(79, 176, 255, 0.95));
  box-shadow: var(--shadow-m);
}
.case-study-page .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-m);
}
.case-study-page .section {
  padding: var(--space-4xl) var(--space-m);
  position: relative;
}
.case-study-page .section-alt {
  background: linear-gradient(135deg, var(--color-neutral-900) 0%, var(--color-neutral-800) 50%, var(--color-neutral-900) 100%);
  position: relative;
}
.case-study-page .section-alt::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 40%, var(--color-primary-500) 0%, transparent 50%), radial-gradient(circle at 70% 60%, var(--color-info-500) 0%, transparent 50%);
  opacity: 0.2;
  pointer-events: none;
}
.case-study-page .section-alt .container {
  position: relative;
  z-index: 1;
}
.case-study-page .section-alt h2,
.case-study-page .section-alt h3,
.case-study-page .section-alt h4,
.case-study-page .section-alt p,
.case-study-page .section-alt li {
  color: rgba(255, 255, 255, 0.95);
}
.case-study-page .section-alt .an-text-muted {
  color: rgba(255, 255, 255, 0.7) !important;
}
.case-study-page .section-alt .an-card {
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(10px);
  border: var(--border-width-thin) solid rgba(255, 255, 255, 0.1) !important;
}
.case-study-page .section-alt .an-card h4,
.case-study-page .section-alt .an-card .an-text-xl,
.case-study-page .section-alt .an-card .an-font-semibold {
  color: var(--color-white) !important;
}
.case-study-page .section-alt .card-error {
  background: rgba(220, 38, 38, 0.15) !important;
  border: var(--border-width-thin) solid var(--color-error-500) !important;
  border-left: var(--border-width-thick) solid var(--color-error-500) !important;
  opacity: 0.9;
}
.case-study-page .section-alt .card-info {
  background: rgba(59, 130, 246, 0.15) !important;
  border: var(--border-width-thin) solid var(--color-info-500) !important;
  border-left: var(--border-width-thick) solid var(--color-info-500) !important;
  opacity: 0.9;
}
.case-study-page .section-alt .an-text-primary {
  color: var(--color-primary-300) !important;
}
.case-study-page .section-alt .timeline-title {
  color: var(--color-primary-300) !important;
}
.case-study-page .timeline {
  position: relative;
  padding-left: var(--space-xl);
  margin: var(--space-4xl) 0;
}
.case-study-page .timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--border-width-medium);
  background: linear-gradient(180deg, var(--color-primary-600), var(--color-info-500));
}
.case-study-page .timeline-item {
  position: relative;
  margin-bottom: var(--space-xl);
}
.case-study-page .timeline-item::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--space-xl) - var(--space-xs));
  top: var(--space-xs);
  width: var(--space-m);
  height: var(--space-m);
  border-radius: var(--radius-full);
  background: var(--color-primary-600);
  border: var(--border-width-medium) solid var(--color-white);
  box-shadow: 0 0 0 var(--border-width-medium) var(--color-primary-600);
}
.case-study-page .footer-cta {
  background: linear-gradient(135deg, var(--color-neutral-900) 0%, var(--color-neutral-800) 50%, var(--color-neutral-900) 100%);
  color: var(--color-text-white);
  padding: var(--space-4xl) var(--space-m);
  text-align: center;
  position: relative;
}
.case-study-page .footer-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 40%, var(--color-primary-500) 0%, transparent 50%), radial-gradient(circle at 70% 60%, var(--color-info-500) 0%, transparent 50%);
  opacity: 0.2;
  pointer-events: none;
}
.case-study-page .footer-cta .container {
  position: relative;
  z-index: 1;
}
.case-study-page .image-container {
  margin: var(--space-xl) 0;
  border-radius: var(--radius-m);
  overflow: hidden;
  background-color: var(--color-surface-white);
  box-shadow: var(--shadow-l);
  max-width: 100%;
}
.case-study-page .image-container img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.case-study-page .image-caption {
  text-align: center;
  font-size: var(--font-size-s);
  color: var(--color-text-neutral-700);
  margin-block: var(--space-m);
  font-style: italic;
}
.case-study-page p[style*=line-height],
.case-study-page li[style*=line-height] {
  line-height: 1.8 !important;
}

/* Case Study Semantic Classes */
/* Icon colors for impact cards */
.icon-warning {
  color: var(--color-warning-500);
}

.icon-error {
  color: var(--color-error-500);
}

.icon-info {
  color: var(--color-info-500);
}

.icon-success {
  color: var(--color-success-500);
}

.icon-primary {
  color: var(--color-primary-500);
}

.timeline-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-m);
  color: var(--color-primary-600);
}

.case-study-stat-card {
  border-left: 4px solid var(--color-primary-600);
}

.case-study-section-heading {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-m);
  margin-top: var(--space-xl);
  color: var(--color-primary-600);
}

.case-study-subsection-heading {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-l);
}

.case-study-card-heading {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-m);
  margin-top: 0;
}

.case-study-text-body {
  font-size: var(--font-size-l);
  line-height: 1.8;
  margin-bottom: var(--space-l);
}

.case-study-list-item {
  font-size: var(--font-size-l);
  margin-bottom: var(--space-m);
  line-height: 1.8;
}

.case-study-card-text {
  font-size: var(--font-size-l);
  margin-bottom: 0;
}

.case-study-list {
  margin-left: var(--space-l);
  margin-bottom: var(--space-2xl);
}

.case-study-quote-item {
  margin-bottom: var(--space-s);
}

.case-study-timeline-text {
  font-size: var(--font-size-l);
}

.case-study-hero-subtitle {
  font-size: var(--font-size-xl);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-2xl);
  opacity: 0.85;
}

.case-study-meta-label {
  font-size: var(--font-size-s);
  margin-bottom: var(--space-xs);
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

.case-study-cta-subtitle {
  opacity: 0.9;
}

.case-study-roadmap-intro {
  line-height: 1.8;
  opacity: 0.9;
}

.case-study-heading {
  color: var(--color-primary-600);
}

.case-study-text-relaxed {
  line-height: 1.8;
}

.case-study-heading-xl {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-m);
}

.case-study-heading-l {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-m);
}

.case-study-intro-text {
  font-size: var(--font-size-xl);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2xl);
}

.case-study-stat-number {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary-600);
  margin-bottom: var(--space-s);
}

.case-study-stat-label {
  font-size: var(--font-size-l);
  color: var(--color-text-muted);
}

.case-study-meta-item {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--font-size-s);
  line-height: 1.6;
}

.case-study-meta-value {
  font-size: var(--font-size-l);
  font-weight: var(--font-weight-semibold);
  color: rgba(255, 255, 255, 0.9);
}

/*# sourceMappingURL=examples.css.map */
