/* Improve list readabilty */
.md-typeset ul li,
.md-typeset ol li {
  margin-bottom: 0.5em;
  /* Add space between list items */
  line-height: 1.6;
}

/* Ensure checklists render cleanly */
.task-list-item {
  list-style-type: none;
}

.task-list-item input[type="checkbox"] {
  margin-right: 0.5em;
}

/* Add breathing room for headers */
.md-typeset h2 {
  margin-top: 1.5em;
  font-weight: 600;
}

/* --- Entheory Branding Overrides --- */

/* Header: Clean White with subtle border */
.md-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  color: #0f172a;
}

/* Fix header text contrast on white background */
.md-header__title,
.md-tabs__link {
  color: #334155 !important;
  font-weight: 500;
}

.md-header__button {
  color: #475569 !important;
}

/* Active tab indication */
.md-tabs__link--active {
  color: #0f172a !important;
  font-weight: 700;
  border-bottom: 2px solid #6366f1;
  /* Indigo accent */
}

/* Typography refinements */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3 {
  color: #0f172a;
  /* Slate 900 */
  letter-spacing: -0.025em;
  /* Tighter tracking for modern look */
}

/* Admonitions: Softer, clean borders */
.md-typeset .admonition,
.md-typeset details {
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  border-radius: 0.5rem;
}

.md-typeset .admonition-title,
.md-typeset summary {
  background-color: #f8fafc;
  /* Very light slate */
  border-bottom: 1px solid #e2e8f0;
  font-weight: 600;
}

/* Tables: Modern clean lines */
.md-typeset table:not([class]) {
  font-size: 0.9em;
  border-radius: 0.375rem;
  box-shadow: none;
  border: 1px solid #e2e8f0;
}

.md-typeset table:not([class]) th {
  background-color: #f8fafc;
  color: #475569;
  font-weight: 600;
}