/* =========================================================
   🧭 Dhanman Docs – Unified Styling for Product & Tech Docs
   ========================================================= */

/* --- Landing Page Feature Grid --- */
:root {
  --md-primary-fg-color: #F25C1C;   /* main orange from logo */
  --md-primary-fg-color--light: #F79D1A;
  --md-primary-fg-color--dark: #C64914;
  --md-accent-fg-color: #F79D1A;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--md-default-bg-color);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
  transition: all 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.1);
  border-color: var(--md-primary-fg-color);
}

.feature-card i[data-lucide] {
  width: 42px;
  height: 42px;
  stroke-width: 1.7;
  color: var(--md-primary-fg-color);
  margin-bottom: 0.6rem;
}

/* --- Quick Links Buttons --- */
.quick-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 2rem;
}

.quick-link {
  background: var(--md-default-bg-color);
  border: 1px solid rgba(0,0,0,0.08);
  padding: 1rem 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s ease;
}

.quick-link:hover {
  background: var(--md-primary-fg-color);
  color: white;
}

/* =========================================================
   🧱 Typography & Layout Adjustments
   ========================================================= */

/* --- Override Default Material Scaling --- */
:root {
  --md-typeset-font-size: 0.84rem !important; /* ≈13.5px */
  --md-typeset-line-height: 1.55;
}

/* Prevent responsive scaling beyond our control */
@media screen and (min-width: 76.25em) {
  :root {
    --md-typeset-font-size: 0.85rem !important;
  }
}
@media screen and (max-width: 45em) {
  :root {
    --md-typeset-font-size: 0.9rem !important; /* slightly bigger for mobile */
  }
}

/* --- Base Text --- */
.md-typeset {
  font-size: var(--md-typeset-font-size);
  line-height: var(--md-typeset-line-height);
  font-weight: 400;
  color: var(--md-typeset-color);
}

/* --- Headings --- */
.md-typeset h1 {
  font-size: 1.45rem !important; /* ≈23px */
  font-weight: 600;
  margin-top: 1.2rem;
  margin-bottom: 0.6rem;
}
.md-typeset h2 {
  font-size: 1.15rem !important; /* ≈18.5px */
  font-weight: 600;
  margin-top: 1.1rem;
  margin-bottom: 0.5rem;
}
.md-typeset h3 {
  font-size: 1rem !important; /* ≈16px */
  font-weight: 500;
  margin-top: 0.9rem;
  margin-bottom: 0.4rem;
}
.md-typeset h4 {
  font-size: 0.95rem !important; /* ≈15px */
  font-weight: 500;
  margin-top: 0.8rem;
  margin-bottom: 0.4rem;
}

/* --- Paragraph Spacing --- */
.md-typeset p {
  margin-bottom: 0.7rem;
}

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

/* --- Code Blocks --- */
.md-typeset code,
.md-typeset pre code {
  font-size: 0.78rem !important; /* ≈12.5px */
  font-family: "JetBrains Mono", monospace;
  background-color: rgba(0,0,0,0.04);
  border-radius: 4px;
  padding: 0.1rem 0.3rem;
}

/* --- Sidebar & Navigation --- */
.md-nav,
.md-nav__item,
.md-nav__title {
  font-size: 0.8rem !important;
}

/* --- Table of Contents --- */
.md-nav__link {
  padding: 0.3rem 0.4rem;
}

/* --- Page Padding --- */
.md-content {
  padding: 0.8rem 1.6rem !important;
}

/* --- Tables --- */
.md-typeset table {
  font-size: 0.8rem;
  border-collapse: collapse;
}
.md-typeset table th, .md-typeset table td {
  padding: 0.4rem 0.6rem;
}

/* --- Mermaid Diagrams --- */
.mermaid {
  background: #fafafa;
  border-radius: 10px;
  padding: 1rem;
  margin: 1rem 0;
}

/* --- Subtle Card Shadows --- */
.md-typeset .admonition {
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
