@media only screen and (min-width: 2000px) {
  .md-main__inner {
    max-width: 1700px;
  }
  .md-sidebar--primary {
    left: 0;
  }
  .md-sidebar--secondary {
    right: 0;
    margin-left: 0;
    -webkit-transform: none;
    transform: none;   
  }
}

@font-face { font-family: 'Magistral Book'; src: url('../fonts/GXbxDfUq2AHfpZTx99Myb2IULA.woff2'); font-display: block }

/* General font and text */
:root [data-md-color-scheme="default"] {
  --md-primary-fg-color: #0a0f3c; /* Deep blue */
  --md-accent-fg-color: #F5D0BA;  /* Warm accent (orange-ish) */
  --md-default-bg-color: #FFF4ED; /* Cream background for sections */
  --md-typeset-font-family: 'Magistral Book', 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --md-text-font: 'Inter', sans-serif;
  --md-code-font: 'Fira Code', monospace;
}

/* Hero section styling */
.md-header {
  background: linear-gradient(120deg, #09090B, #1919C5);
  color: white;
  text-align: center;
  padding: 2rem 1rem;
  box-shadow: none;
  font-family: 'Magistral Book';
}

.md-header__inner {
  justify-content: center;
}

.md-header a,
.md-header .md-logo,
.md-header .md-nav__title {
  color: white !important;
}

.md-typeset h1 {
  font-family: 'Magistral Book', sans-serif;
  font-size: 48px;
  line-height: 106%;
  color: #09090B;
  letter-spacing: -4%;
  margin-bottom: 0.8em;
}

.md-typeset h2 {
  font-family: 'Magistral Book', sans-serif;
  font-size: 26px;
  line-height: 110%;
  letter-spacing: -4%;
}

.md-typeset h3 {
  font-family: 'Magistral Book', sans-serif;
  font-size: 22px;
  line-height: 110%;
  letter-spacing: -4%;
}

.md-typeset h4 {
  font-family: 'Magistral Book', sans-serif;
  line-height: 110%;
  letter-spacing: -4%;
}

/* Buttons */
.md-button {
  background: var(--md-accent-fg-color);
  color: #09090B;
  border-radius: 9999px;
  font-weight: 600;
  padding: 0.6em 1.5em;
  transition: all 0.2s ease;
  text-decoration: none;
}

.md-button:hover {
  background: #ff9800;
  transform: translateY(-2px);
}

/* Card-like containers */
.md-typeset .admonition,
.md-typeset details {
  border-radius: 1.25rem;
  padding: 1.2em;
  background: #F3F5FF;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border: none;
}

/* Hero-like banner section */
.hero {
  background: linear-gradient(120deg, #09090B, #1919C5);
  color: #F3F5FF;
  text-align: center;
  padding: 6rem 2rem;
  border-radius: 1.5rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Hero-like "Back to Top" button */
.md-top {
  background: linear-gradient(120deg, #0a0f3c, #0041a8);
  color: #F3F5FF;
  padding: 0.5rem 1rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.md-top:hover {
  box-shadow: 0 6px 10px rgba(0,0,0,0.25);
}

/* Section backgrounds */
.section-light {
  background: #FFF4ED;
  padding: 4rem 2rem;
  border-radius: 1.25rem;
}

/* Images in cards */
.md-typeset img {
  border-radius: 1rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* Links */
.md-typeset a {
  color: #1319C9; /* vivid blue */
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 87, 255, 0.4); /* subtle underline */
  transition: color 0.2s ease, border-color 0.2s ease;
}

.md-typeset a:hover {
  color: #1A2075; /* darker blue on hover */
  border-bottom-color: #003bb5;
  text-decoration: none;
}

.md-typeset a:focus {
  outline: 2px solid #003bb5;
  outline-offset: 2px;
  border-radius: 2px;
}




/* Admonition container */
.md-typeset .admonition,
.md-typeset details {
  border-radius: 1rem;
  padding: 0; /* remove default padding, handled by title/body */
  border: none;
  background: #f3f4ff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  margin: 1.5em 0;
  overflow: hidden; /* keeps rounded corners clean */
}

/* Admonition title/header */
.md-typeset .admonition > .admonition-title,
.md-typeset details > summary {
  background: #448aff1a; /* light blue for note */
  color: #0a0f3c;
  font-weight: 600;
  border-radius: 1rem 1rem 0 0;
  padding: 0.75em 1em 0.75em 3.5em; /* extra left padding for icon */
  margin: 0;
  position: relative;
}

/* Admonition icon — prevent overlap */
.md-typeset .admonition > .admonition-title::before,
.md-typeset details > summary::before {
  position: absolute;
  left: 1em; /* place icon inside padding */
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  font-size: 1.1em;
  opacity: 0.9;
}

/* Admonition body */
.md-typeset .admonition > *:not(.admonition-title),
.md-typeset details > *:not(summary) {
  padding: 0.75em 1.2em 1em 1.2em;
  margin: 0;
}


/* Warning admonitions */
.md-typeset .admonition.warning,
.md-typeset details.warning {
  border-radius: 1rem;
  border: none;
  background: #ffe3cc; /* soft warm background */
  box-shadow: 0 6px 18px rgba(255, 111, 0, 0.2); /* orange glow */
  overflow: hidden;
}

/* Warning title/header */
.md-typeset .admonition.warning > .admonition-title,
.md-typeset details.warning > summary {
  background: #fdcaa5; /* pastel orange */
  color: #7a2d00; /* strong brownish-red text */
  font-weight: 700;
  border-radius: 1rem 1rem 0 0;
  padding: 0.75em 1em 0.75em 3.5em;
  margin: 0;
  position: relative;
}

/* Warning icon */
.md-typeset .admonition.warning > .admonition-title::before,
.md-typeset details.warning > summary::before {
  position: absolute;
  left: 1em;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2em;
  color: #d84315; /* darker orange/red */
  opacity: 1;
}

/* Warning body */
.md-typeset .admonition.warning > *:not(.admonition-title),
.md-typeset details.warning > *:not(summary) {
  padding: 0.75em 1.2em 1em 1.2em;
  margin: 0;
}



/* Tip admonitions */
.md-typeset .admonition.tip,
.md-typeset details.tip {
  border-radius: 1rem;
  border: none;
  background: #f3fbf6; /* very soft green */
  box-shadow: 0 6px 18px rgba(0, 150, 50, 0.15); /* green glow */
  overflow: hidden;
}

/* Tip title/header */
.md-typeset .admonition.tip > .admonition-title,
.md-typeset details.tip > summary {
  background: #d9f2e4; /* pastel green */
  color: #0d4620; /* deep forest green text */
  font-weight: 700;
  border-radius: 1rem 1rem 0 0;
  padding: 0.75em 1em 0.75em 3.5em;
  margin: 0;
  position: relative;
}

/* Tip icon */
.md-typeset .admonition.tip > .admonition-title::before,
.md-typeset details.tip > summary::before {
  position: absolute;
  left: 1em;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2em;
  color: #1b8a4b; /* strong green */
  opacity: 1;
}

/* Tip body */
.md-typeset .admonition.tip > *:not(.admonition-title),
.md-typeset details.tip > *:not(summary) {
  padding: 0.75em 1.2em 1em 1.2em;
  margin: 0;
}



/* Tab headers (inactive) */
.md-typeset .tabbed-labels > label {
  background: #F3F5FF; /* light neutral background */
  color: #333;         /* darker text */
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

/* Hover */
.md-typeset .tabbed-labels > label:hover {
  background: #e0e0e6; /* slightly darker neutral */
  color: #111;
}

/* Content area */
.md-typeset .tabbed-content {
  background: #F3F5FF;
  padding: 1em;
  border-radius: 0rem 0rem 1rem 1rem;
}


/* Content area */
.md-typeset .code-content {
  background: #F3F5FF;
}



/* Tables */
.md-typeset table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.5em 0;
  border: 1px solid #e0e0e0;
  font-size: 0.95rem;
}

/* Table header */
.md-typeset table th {
  background: #F3F5FF; /* slightly darker for contrast */
  font-weight: 600;
  color: #111;
  padding: 0.6em 0.8em;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

/* Table header */
.md-typeset .tabbed-content table th {
  background: #FFF4ED; /* slightly darker for contrast */
  font-weight: 600;
  color: #111;
  padding: 0.6em 0.8em;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

.md-typeset .tabbed-content .md-typeset__scrollwrap:has(table) {
  overflow: hidden;
}


.md-typeset .tabbed-content .md-typeset__scrollwrap .md-typeset__table {
  max-width: 100%;
}


/* Table body cells */
.md-typeset table td {
  padding: 0.6em 0.8em;
  border-bottom: 1px solid #eee;
}

/* Zebra striping for rows */
.md-typeset table tr:nth-child(odd) td {
  background: #ffffff; /* white rows */
}

.md-typeset table tr:nth-child(even) td {
  background: #f9f9fb; /* light gray rows */
}


/* Prevent fixed header from covering section anchors */
.md-typeset h1[id],
.md-typeset h2[id],
.md-typeset h3[id] {
  scroll-margin-top: 8rem; /* adjust based on header height */
}


.md-typeset h4[id],
.md-typeset h5[id],
.md-typeset h6[id] {
  scroll-margin-top: 7.2rem; /* adjust based on header height */
}
