.examples-page main {
  width: min(1100px, calc(100% - 2rem));
}

.examples-hero {
  position: relative;
  overflow: hidden;
  padding: 2.6rem 2rem;
  background:
    radial-gradient(circle at top right, rgba(121, 82, 179, 0.18), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
  border: 1px solid rgba(222, 226, 230, 0.92);
  border-radius: 1.4rem;
  box-shadow: 0 1rem 3rem rgba(33, 37, 41, 0.08);
  margin-bottom: 1.75rem;
}

.examples-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: #7952b3;
  background: rgba(121, 82, 179, 0.1);
  border: 1px solid rgba(121, 82, 179, 0.16);
  margin-bottom: 0.95rem;
}

.examples-hero h1 {
  margin-bottom: 0.75rem;
  border-bottom: none;
}

.examples-hero p {
  margin: 0;
  color: #495057;
  max-width: 760px;
}

.examples-index {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.25rem;
}

.examples-index a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  color: #212529;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(222, 226, 230, 0.95);
  font-weight: 600;
  transition: all 0.18s ease;
}

.examples-index a:hover {
  color: #6741a4;
  border-color: rgba(121, 82, 179, 0.2);
  background: #fff;
  transform: translateY(-1px);
}

.examples-section-title {
  margin: 2rem 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid #dee2e6;
  color: #212529;
  letter-spacing: -0.02em;
}

.example-card {
  background: #fff;
  border: 1px solid rgba(222, 226, 230, 0.9);
  border-left: 4px solid #7952b3;
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 0.75rem 2rem rgba(33, 37, 41, 0.06);
  margin-bottom: 1.2rem;
}

.example-subtitle {
  margin: 0 0 0.75rem;
  color: #343a40;
  font-size: 1rem;
}

.example-preview {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.9rem;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}

.example-code {
  margin: 0;
  background: #212529;
  color: #f8f9fa;
  padding: 1rem 1.1rem;
  border-radius: 0.9rem;
  overflow-x: auto;
  border: 1px solid #343a40;
  white-space: pre-wrap;
}

.example-code code {
  color: inherit;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.95rem;
}

.example-preview img,
.example-preview video,
.example-preview object,
.example-preview canvas {
  max-width: 100%;
}

.example-preview table {
  border-collapse: collapse;
}

.example-preview table,
.example-preview th,
.example-preview td {
  border: 1px solid #adb5bd;
}

.example-preview th,
.example-preview td {
  padding: 0.4rem 0.55rem;
}

.preview-muted-box {
  padding: 0.7rem;
  background: #eee;
}

.preview-canvas {
  border: 1px solid #333;
  margin-top: 0.65rem;
}

.preview-noscript {
  display: block;
  margin-top: 0.65rem;
  color: #c92a2a;
}

@media (max-width: 768px) {
  .examples-hero {
    padding: 2rem 1.2rem;
    border-radius: 1.05rem;
  }

  .examples-index {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
