/* Make text smaller and lighter */
.md-typeset {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.7;
}

/* Cleaner headings */
.md-typeset h1 {
  font-size: 24px;
  font-weight: 400;
}

.md-typeset h2 {
  font-size: 20px;
  font-weight: 400;
}

.md-typeset h3 {
  font-size: 16px;
  font-weight: 400;
}

/* Softer background */
.md-main {
  background-color: #f5f7fa;
}

/* Content card style */
.md-content {
  background: #ffffff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

/* Code blocks (very clean dev style) */
.md-typeset pre {
  background-color: #0f172a;
  color: #e5e7eb;
  border-radius: 8px;
  font-size: 12px;
}

/* Inline code */
.md-typeset code {
  background: #eef2f7;
  border-radius: 5px;
  padding: 2px 5px;
  font-size: 12px;
}



.md-typeset img {
  max-width: 100%;       /* never overflow container */
  height: auto;          /* maintain aspect ratio */
  width: 480px;          /* professional, moderate size */
  display: block;
  margin: 20px auto;     /* center image with space above/below */
  border-radius: 10px;   /* soft, clean corners */
  box-shadow: 0 3px 10px rgba(0,0,0,0.07); /* subtle shadow for depth */
}

/* Reduce boldness globally */
body {
  font-weight: 300;
}

/* ===== HEADER (TOP BAR) ===== */

/* ===== GLASS / MINIMAL HEADER ===== */
.md-header {
  background: rgba(255, 255, 255, 0.75) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  transition: all 0.3s ease;
}

/* Title */
.md-header__title {
  color: #1e293b !important;
  font-weight: 500;
  transition: color 0.3s ease;
}

/* Icons */
.md-header__button {
  color: #475569 !important;
  transition: all 0.3s ease;
}

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

/* ===== NAV TABS (clean + blended) ===== */
.md-tabs {
  background: rgba(255, 255, 255, 0.6) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* Tabs */
.md-tabs__link {
  color: #64748b !important;
  font-weight: 400;
  position: relative;
  transition: all 0.3s ease;
}

/* Smooth underline animation */
.md-tabs__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: #0ea5e9;
  transition: width 0.3s ease;
}

/* Hover effect */
.md-tabs__link:hover {
  color: #0f172a !important;
}

.md-tabs__link:hover::after {
  width: 100%;
}

/* Active tab */
.md-tabs__link--active {
  color: #0f172a !important;
  font-weight: 500;
}

.md-tabs__link--active::after {
  width: 100%;
}

.md-typeset p {
  text-align: justify;
  line-height: 1.8;
}

/* Add spacing between paragraphs */
.md-typeset p + p {
  margin-top: 12px;
}