/* calServer Documentation - Custom Styles */

/* Tighter table styling for field reference tables */
.md-typeset table:not([class]) th,
.md-typeset table:not([class]) td {
  padding: 0.5em 0.75em;
  font-size: 0.8rem;
}

/* Code in tables: smaller */
.md-typeset table:not([class]) code {
  font-size: 0.75rem;
}

/* Status badge styling for admonitions */
.md-typeset .admonition.info .admonition-title::before,
.md-typeset details.info summary::before {
  mask-image: var(--md-admonition-icon--info);
}

/* Grid cards: consistent height */
.md-typeset .grid.cards > ul > li {
  min-height: 12rem;
}

/* Navigation: slightly wider sidebar on desktop */
@media screen and (min-width: 76.25em) {
  .md-sidebar--primary {
    width: 13rem;
  }
}

/* Checklist styling for setup checklists */
.md-typeset .task-list-indicator::before {
  background-color: var(--md-primary-fg-color);
}

/* Print: hide navigation */
@media print {
  .md-sidebar,
  .md-header,
  .md-footer {
    display: none;
  }
}

/* ============================================================
   Changelog filter toolbar
   ============================================================ */

.changelog-filter-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.changelog-filter-toolbar button {
  padding: 0.35rem 0.9rem;
  border: 2px solid var(--md-primary-fg-color);
  border-radius: 2rem;
  background: transparent;
  color: var(--md-primary-fg-color);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.changelog-filter-toolbar button:hover {
  background: rgba(63, 81, 181, 0.1);
}

.changelog-filter-toolbar button.changelog-filter--active {
  background: var(--md-primary-fg-color);
  color: var(--md-primary-bg-color);
}

/* ============================================================
   Changelog entries
   ============================================================ */

.changelog-entry {
  border-left: 3px solid var(--md-primary-fg-color);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  background: var(--md-code-bg-color);
  border-radius: 0 0.3rem 0.3rem 0;
}

/* Category badge */
.changelog-badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  vertical-align: middle;
  margin-right: 0.3rem;
}

.changelog-badge--feat {
  background: #e8f5e9;
  color: #2e7d32;
}

.changelog-badge--fix {
  background: #fff3e0;
  color: #e65100;
}

.changelog-badge--docs {
  background: #e3f2fd;
  color: #1565c0;
}

/* Dark mode overrides */
[data-md-color-scheme="slate"] .changelog-badge--feat {
  background: #1b5e20;
  color: #a5d6a7;
}

[data-md-color-scheme="slate"] .changelog-badge--fix {
  background: #bf360c;
  color: #ffccbc;
}

[data-md-color-scheme="slate"] .changelog-badge--docs {
  background: #0d47a1;
  color: #90caf9;
}

/* Version badge */
.changelog-version {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  background: var(--md-primary-fg-color);
  color: var(--md-primary-bg-color);
  border-radius: 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--md-code-font-family);
  vertical-align: middle;
  margin-right: 0.3rem;
}

/* Timestamp */
.changelog-date {
  font-size: 0.78rem;
  color: var(--md-default-fg-color--light);
  vertical-align: middle;
}
