/* EKA Documentation: left side panel (see pkgdown/templates/layout.html) */
.eka-layout { display: flex; align-items: flex-start; }
.eka-sidebar {
  flex: 0 0 250px; position: sticky; top: 4.5rem; max-height: calc(100vh - 5rem);
  overflow-y: auto; padding: 1rem 0.75rem 2rem 1.25rem; font-size: 0.92rem;
  border-right: 1px solid var(--bs-border-color);
}
.eka-sidebar summary { display: none; }
.eka-sidebar h2 {
  font-size: 0.85rem; font-weight: 700;
  margin: 1.25rem 0 0.35rem; color: var(--bs-secondary-color);
}
.eka-sidebar ul { list-style: none; padding-left: 0; margin: 0; }
.eka-sidebar ul ul { padding-left: 0.8rem; margin: 0.15rem 0 0.2rem; border-left: 1px solid var(--bs-border-color); }
.eka-sidebar li { margin: 0.1rem 0; }
.eka-sidebar .eka-group { color: var(--bs-secondary-color); margin-top: 0.3rem; }
.eka-sidebar a { display: block; padding: 0.15rem 0.5rem; border-radius: 0.3rem; text-decoration: none; color: var(--bs-body-color); }
.eka-sidebar a:hover { background: var(--bs-tertiary-bg); }
.eka-sidebar a.active { background: rgba(96, 138, 200, 0.15); color: var(--bs-primary); font-weight: 600; }
.eka-sidebar .eka-home { font-weight: 600; }
.eka-main { flex: 1 1 auto; min-width: 0; }

@media (max-width: 991.98px) {
  .eka-layout { display: block; }
  .eka-sidebar { position: static; max-height: none; border-right: none; border-bottom: 1px solid var(--bs-border-color); padding: 0.75rem 1rem; }
  .eka-sidebar summary { display: list-item; cursor: pointer; font-weight: 600; }
}

/* Home page cards */
.eka-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.eka-card { border: 1px solid var(--bs-border-color); border-radius: 0.5rem; padding: 1rem 1.1rem; }
.eka-card h2 { font-size: 1.15rem; margin-top: 0; }
.eka-card p { margin-bottom: 0.5rem; }

/* Screenshots in the EKA2 guide */
img.eka-shot { border: 1px solid var(--bs-border-color); border-radius: 0.4rem; max-width: 100%; height: auto; }

/* Plots have transparent backgrounds: keep them readable in dark mode */
[data-bs-theme="dark"] main img:not(.logo) { background-color: #fff; border-radius: 0.3rem; }

/* Captions under single screenshots and figures */
.float .figcaption { font-size: 0.875rem; color: var(--bs-secondary-color); margin: 0.35rem 0 1.25rem; }
