/* ── Header logo: tema CSS’inde dark:* varyantları yok; html.dark ile seç ── */
img.s4e-doc-logo-dark,
span.s4e-doc-logo-dark {
  display: none !important;
}
html.dark img.s4e-doc-logo-light,
html.dark span.s4e-doc-logo-light {
  display: none !important;
}
html.dark img.s4e-doc-logo-dark {
  display: block !important;
}
html.dark span.s4e-doc-logo-dark.s4e-doc-logo-iconify {
  display: inline-flex !important;
}

/* ── Hide sidebar top gradient/shadow ── */
[data-slot="sidebar"] > div:nth-child(2) {
  display: none !important;
}

/* ── Card Grid ── */
.grid.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
  padding: 0;
}

.grid.cards > ul {
  display: contents;
  list-style: none;
  margin: 0;
  padding: 0;
}

.grid.cards > ul > li,
.grid.cards > :not(ul) {
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius, 0.5rem);
  padding: 1.25rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.grid.cards > ul > li:hover,
.grid.cards > :not(ul):hover {
  border-color: hsl(var(--ring));
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.grid.cards > ul > li > strong:first-child,
.grid.cards > ul > li > p:first-child > strong {
  font-size: 1rem;
  display: block;
  margin-bottom: 0.25rem;
}

.grid.cards > ul > li hr {
  border: none;
  border-top: 1px solid hsl(var(--border));
  margin: 0.75rem 0;
}

.grid.cards > ul > li p {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin: 0 0 0.5rem;
  flex: 1;
}

.grid.cards > ul > li a {
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  margin-top: auto;
}
