/* ===== Ultra-Clean Flat Theme (GitHub-like) ===== */
/* Minimal styling - just typography and spacing */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Roboto+Mono:wght@400;500&display=swap');

/* ===== Remove ALL backgrounds and effects ===== */
.md-header {
  background: #ffffff !important;
  box-shadow: none !important;
  border-bottom: 1px solid #d0d7de;
}

[data-md-color-scheme="slate"] .md-header {
  background: #0d1117 !important;
  border-bottom: 1px solid #30363d;
}

.md-tabs {
  background: #ffffff !important;
  box-shadow: none !important;
  border-bottom: 1px solid #d0d7de;
}

[data-md-color-scheme="slate"] .md-tabs {
  background: #0d1117 !important;
  border-bottom: 1px solid #30363d;
}

.md-footer {
  background: #ffffff !important;
  border-top: 1px solid #d0d7de;
}

[data-md-color-scheme="slate"] .md-footer {
  background: #0d1117 !important;
  border-top: 1px solid #30363d;
}

/* ===== Footer Copyright - Centered and Styled ===== */
.md-footer-copyright {
  text-align: center;
  padding: 1rem 0;
  width: 100%;
}

.md-footer-copyright a {
  color: #0969da;
  text-decoration: none;
  font-weight: 500;
}

.md-footer-copyright a:hover {
  text-decoration: underline;
}

[data-md-color-scheme="slate"] .md-footer-copyright a {
  color: #58a6ff;
}

/* ===== Typography - GitHub style ===== */
.md-typeset {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #24292f;
}

[data-md-color-scheme="slate"] .md-typeset {
  color: #c9d1d9;
}

/* ===== Headings - Simple and Clean ===== */
.md-typeset h1 {
  font-size: 2em;
  font-weight: 600;
  padding-bottom: 0.3em;
  border-bottom: 1px solid #d0d7de;
  margin-top: 24px;
  margin-bottom: 16px;
}

[data-md-color-scheme="slate"] .md-typeset h1 {
  border-bottom-color: #21262d;
}

.md-typeset h2 {
  font-size: 1.5em;
  font-weight: 600;
  padding-bottom: 0.3em;
  border-bottom: 1px solid #d0d7de;
  margin-top: 24px;
  margin-bottom: 16px;
}

[data-md-color-scheme="slate"] .md-typeset h2 {
  border-bottom-color: #21262d;
}

.md-typeset h3 {
  font-size: 1.25em;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 16px;
}

.md-typeset h4 {
  font-size: 1em;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 16px;
}

/* ===== Links - Simple Blue ===== */
.md-typeset a {
  color: #0969da;
  text-decoration: none;
  font-weight: normal;
}

.md-typeset a:hover {
  text-decoration: underline;
}

[data-md-color-scheme="slate"] .md-typeset a {
  color: #58a6ff;
}

/* ===== Code - Flat Gray Background ===== */
.md-typeset code {
  background: #f6f8fa;
  padding: 0.2em 0.4em;
  margin: 0;
  font-size: 85%;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  border: none;
}

[data-md-color-scheme="slate"] .md-typeset code {
  background: #161b22;
  color: #e6edf3;
}

.md-typeset pre {
  background: #f6f8fa;
  padding: 16px;
  overflow: auto;
  font-size: 85%;
  line-height: 1.45;
  border-radius: 6px;
  border: 1px solid #d0d7de;
}

[data-md-color-scheme="slate"] .md-typeset pre {
  background: #161b22;
  border-color: #30363d;
}

.md-typeset pre code {
  background: transparent;
  padding: 0;
  border-radius: 0;
}

/* ===== Lists - Simple ===== */
.md-typeset ul,
.md-typeset ol {
  padding-left: 2em;
}

.md-typeset li {
  margin-top: 0.25em;
}

/* ===== Tables - Clean Lines ===== */
.md-typeset table:not([class]) {
  display: block;
  width: max-content;
  max-width: 100%;
  overflow: auto;
  border-spacing: 0;
  border-collapse: collapse;
  margin-top: 0;
  margin-bottom: 16px;
  border: 1px solid #d0d7de;
  border-radius: 6px;
}

[data-md-color-scheme="slate"] .md-typeset table:not([class]) {
  border-color: #30363d;
}

.md-typeset table:not([class]) th {
  padding: 6px 13px;
  border: 1px solid #d0d7de;
  font-weight: 600;
  background: #f6f8fa;
}

[data-md-color-scheme="slate"] .md-typeset table:not([class]) th {
  border-color: #30363d;
  background: #161b22;
}

.md-typeset table:not([class]) td {
  padding: 6px 13px;
  border: 1px solid #d0d7de;
}

[data-md-color-scheme="slate"] .md-typeset table:not([class]) td {
  border-color: #30363d;
}

/* ===== Blockquotes - Simple Gray Bar ===== */
.md-typeset blockquote {
  padding: 0 1em;
  color: #57606a;
  border-left: 0.25em solid #d0d7de;
  margin: 0 0 16px 0;
  background: transparent;
}

[data-md-color-scheme="slate"] .md-typeset blockquote {
  color: #8b949e;
  border-left-color: #3b434b;
}

/* ===== Horizontal Rules ===== */
.md-typeset hr {
  height: 0.25em;
  padding: 0;
  margin: 24px 0;
  background-color: #d0d7de;
  border: 0;
}

[data-md-color-scheme="slate"] .md-typeset hr {
  background-color: #21262d;
}

/* ===== Navigation - Minimal ===== */
.md-nav__link {
  margin: 0;
  padding: 0.4em 0.8em;
  transition: none;
}

.md-nav__link:hover {
  background: #f6f8fa;
}

[data-md-color-scheme="slate"] .md-nav__link:hover {
  background: #161b22;
}

.md-nav__link--active {
  font-weight: 600;
  background: transparent;
  color: #0969da !important;
}

[data-md-color-scheme="slate"] .md-nav__link--active {
  color: #58a6ff !important;
}

/* ===== Admonitions - Subtle ===== */
.md-typeset .admonition {
  padding: 0.6em 0.8em;
  margin: 1em 0;
  border-left: 4px solid #0969da;
  background: #ddf4ff;
  border-radius: 0;
}

[data-md-color-scheme="slate"] .md-typeset .admonition {
  background: #0d1117;
  border-left-color: #1f6feb;
}

/* ===== Remove ALL Shadows and Transitions ===== */
* {
  box-shadow: none !important;
  transition: none !important;
}

/* ===== Search - Minimal ===== */
.md-search__form {
  background: #f6f8fa;
  border: 1px solid #d0d7de;
  border-radius: 6px;
}

[data-md-color-scheme="slate"] .md-search__form {
  background: #0d1117;
  border-color: #30363d;
}

/* ===== Content Width ===== */
.md-content {
  max-width: 1012px;
}

/* ===== Remove Material Design Effects ===== */
.md-tabs__link {
  opacity: 1;
  font-weight: normal;
}

.md-tabs__link--active {
  font-weight: 600;
}