/* ── Demo 1: card grid ── */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 720px) {
  .card-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.mini-card {
  padding: 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  background: #dbeafe;
  color: #1e40af;
  border: 1.5px solid #93c5fd;
}

/* ── Demo 2: nav ── */
.demo-nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

@media (min-width: 540px) {
  .demo-nav {
    flex-direction: row;
    gap: 0;
  }
}

.demo-nav-link {
  padding: 0.55rem 1rem;
  background: #1e1e2e;
  color: #cdd6f4;
  text-decoration: none;
  font-size: 0.88rem;
  border-radius: 4px;
  transition: background 0.15s;
}

@media (min-width: 540px) {
  .demo-nav-link               { border-radius: 0; }
  .demo-nav-link:first-child   { border-radius: 4px 0 0 4px; }
  .demo-nav-link:last-child    { border-radius: 0 4px 4px 0; }
}

.demo-nav-link:hover { background: #2d2d44; }

/* ── Demo 3: show / hide ── */
.show-hide-layout {
  display: flex;
  gap: 0.75rem;
}

.main-content {
  flex: 1;
  padding: 1rem;
  background: #dbeafe;
  border-radius: 6px;
  font-size: 0.88rem;
  color: #1e40af;
  text-align: center;
}

.sidebar {
  display: none;
  width: 150px;
  flex-shrink: 0;
  padding: 1rem;
  background: #fef9c3;
  border-radius: 6px;
  font-size: 0.85rem;
  color: #713f12;
  text-align: center;
}

@media (min-width: 600px) {
  .sidebar { display: block; }
}
