@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

/* Base font for body */
body {
    font-family: 'Montserrat', sans-serif !important;
}

/* Headings without bold, consistent font */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: normal !important; /* Remove bold from all headings */
}

/* Title color (h1) in light mode */
h1 {
    color: #e84328 !important;
}

/* Subheadings (h2–h6) color in light mode */
h2, h3, h4, h5, h6 {
    color: #000000 !important;
}

/* Subheadings (h2–h6) color in dark mode */
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: #ffffff !important;
}

/* Font for common elements */
a, p, li, .wy-menu-vertical .caption, .highlight {
    font-family: 'Montserrat', sans-serif !important;
}

/* Light mode text color */
:root {
    --color-text: #000000;
}

/* Dark mode text color */
[data-theme="dark"] {
    --color-text: #ffffff;
}

/* Intro card styling (used in landing pages/features) */
.intro-card {
  padding: 30px 10px 20px 10px;
}

.intro-card .sd-card-img-top {
  margin: 10px;
  height: 52px;
  background: none !important;
}

.intro-card .sd-card-title {
  color: #e84328;
  font-size: var(--pst-font-size-h5);
  padding: 1rem 0rem 0.5rem 0rem;
}

.intro-card .sd-card-footer {
  border: none !important;
}

.intro-card .sd-card-footer p.sd-card-text {
  max-width: 220px;
  margin-left: auto;
  margin-right: auto;
}

.intro-card .sd-btn-secondary {
  background-color: #e84328 !important;
  border-color: #e84328 !important;
}

.intro-card .sd-btn-secondary:hover {
  background-color: #e84328 !important;
  border-color: #e84328 !important;
}

/* === RTD flyout customization === */
#rtd-footer-container {
  bottom: 2rem;
  right: 2rem;
  z-index: 5000;
  font-size: 0.8rem;
  font-family: 'Montserrat', sans-serif !important;
  color: #000000 !important;
}

#rtd-footer-container .rst-versions {
  background-color: #f5f5f5 !important;
  border: 1px solid #cccccc !important;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  padding: 8px;
}

#rtd-footer-container .rst-current-version {
  font-weight: bold;
  color: #e84328 !important;
}

#rtd-footer-container .rst-other-versions {
  max-height: 200px;
  overflow-y: auto;
}

[data-theme="dark"] #rtd-footer-container .rst-versions {
  background-color: #2a2a2a !important;
  border: 1px solid #444 !important;
  color: #f0f0f0 !important;
}

[data-theme="dark"] #rtd-footer-container .rst-current-version {
  color: #e84328 !important;
}

#rtd-footer-container {
  display: none !important;
}
