/* Microsoft Learn inspired styles */

:root {
  /* Microsoft Learn color palette */
  --ms-blue: #0078d4;
  --ms-blue-dark: #005a9e;
  --ms-blue-light: #50e6ff;
  --ms-gray-50: #faf9f8;
  --ms-gray-100: #f3f2f1;
  --ms-gray-200: #e1dfdd;
  --ms-gray-300: #d2d0ce;
  --ms-gray-400: #b3b0ad;
  --ms-gray-500: #8a8886;
  --ms-gray-600: #605e5c;
  --ms-gray-700: #3b3a39;
  --ms-gray-800: #323130;
  --ms-gray-900: #201f1e;
  --ms-white: #ffffff;
}

/* General body and typography improvements */
.md-main {
  background-color: var(--ms-gray-50);
}

.md-content {
  background-color: var(--ms-white);
  box-shadow: 0 1.6px 3.6px 0 rgba(0,0,0,.132), 0 0.3px 0.9px 0 rgba(0,0,0,.108);
  border-radius: 0;
  padding: 2.5rem !important;
  max-width: none;
}

.md-typeset {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ms-gray-900);
}

/* Headers with Microsoft Learn style */
.md-typeset h1 {
  font-weight: 600;
  color: var(--ms-gray-900);
  border-bottom: 1px solid var(--ms-gray-200);
  padding-bottom: 0.75rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 2.25rem;
  line-height: 1.2;
}

.md-typeset h2 {
  font-weight: 600;
  color: var(--ms-gray-800);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.75rem;
  line-height: 1.3;
}

.md-typeset h3 {
  font-weight: 600;
  color: var(--ms-gray-700);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.375rem;
  line-height: 1.4;
}

.md-typeset h4 {
  font-weight: 600;
  color: var(--ms-gray-700);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
  line-height: 1.4;
}

/* Links */
.md-typeset a {
  color: var(--ms-blue);
  text-decoration: none;
}

.md-typeset a:hover {
  color: var(--ms-blue-dark);
  text-decoration: underline;
}

/* Code blocks with Microsoft Learn styling */
.md-typeset code {
  background-color: var(--ms-gray-100);
  color: var(--ms-gray-900);
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-size: 0.85em;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.md-typeset pre {
  background-color: var(--ms-gray-100);
  border-left: 3px solid var(--ms-blue);
  border-radius: 4px;
  padding: 1rem;
}

.md-typeset pre code {
  background-color: transparent;
  padding: 0;
  font-size: 0.85rem;
}

/* Tables */
.md-typeset table:not([class]) {
  border: 1px solid var(--ms-gray-200);
  border-radius: 4px;
  font-size: 0.85rem;
}

.md-typeset table:not([class]) th {
  background-color: var(--ms-gray-100);
  color: var(--ms-gray-900);
  font-weight: 600;
  padding: 0.75rem;
  border-bottom: 2px solid var(--ms-gray-300);
}

.md-typeset table:not([class]) td {
  padding: 0.75rem;
  border-top: 1px solid var(--ms-gray-200);
}

/* Blockquotes / Admonitions */
.md-typeset blockquote {
  border-left: 4px solid var(--ms-blue);
  background-color: var(--ms-gray-50);
  padding: 0.5rem 1rem;
  margin: 1rem 0;
  color: var(--ms-gray-800);
}

.md-typeset .admonition {
  border-radius: 4px;
  border-left: 4px solid var(--ms-blue);
  box-shadow: 0 0.2px 0.6px rgba(0,0,0,.1);
}

/* Navigation improvements */
.md-nav__link {
  font-size: 0.85rem;
}

.md-nav__link--active {
  color: var(--ms-blue);
  font-weight: 600;
}

/* Search */
.md-search__input {
  background-color: var(--ms-gray-100);
  border-radius: 4px;
}

.md-search__input:focus {
  background-color: var(--ms-white);
  border: 1px solid var(--ms-blue);
}

/* Header bar */
.md-header {
  background-color: var(--ms-blue);
  box-shadow: 0 1.6px 3.6px 0 rgba(0,0,0,.132), 0 0.3px 0.9px 0 rgba(0,0,0,.108);
}

/* Lists */
.md-typeset ul,
.md-typeset ol {
  margin-left: 0.5rem;
}

.md-typeset li {
  margin: 0.5rem 0;
}

.md-typeset p {
  margin: 1rem 0;
}

/* Horizontal rules */
.md-typeset hr {
  border-bottom: 1px solid var(--ms-gray-200);
}

/* Mermaid diagrams */
.mermaid {
  background-color: transparent;
  text-align: center;
  margin: 1.5rem 0;
}

/* Responsive improvements */
@media screen and (max-width: 76.1875em) {
  .md-content {
    padding: 2rem !important;
  }
}

@media screen and (max-width: 44.9375em) {
  .md-content {
    padding: 1.5rem !important;
  }
  
  .md-typeset {
    font-size: 0.9375rem;
  }
  
  .md-typeset h1 {
    font-size: 1.875rem;
  }
  
  .md-typeset h2 {
    font-size: 1.5rem;
  }
  
  .md-typeset h3 {
    font-size: 1.25rem;
  }
}
