/**
 * Any CSS included here will be global. The classic template
 * bundles Infima by default. Infima is a CSS framework designed to
 * work well for content-centric websites.
 */

/* You can override the default Infima variables here. */
:root {
  --ifm-color-primary: #25c2a0;
  --ifm-color-primary-dark: #21af90;
  --ifm-color-primary-darker: #1fa588;
  --ifm-color-primary-darkest: #1a8870;
  --ifm-color-primary-light: #29d5b0;
  --ifm-color-primary-lighter: #32d8b4;
  --ifm-color-primary-lightest: #4fddbf;
  --ifm-code-font-size: 95%;
  --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);
}

/* For readability concerns, you should choose a lighter palette in dark mode. */
[data-theme='dark'] {
  --ifm-color-primary: #25c2a0;
  --ifm-color-primary-dark: #21af90;
  --ifm-color-primary-darker: #1fa588;
  --ifm-color-primary-darkest: #1a8870;
  --ifm-color-primary-light: #29d5b0;
  --ifm-color-primary-lighter: #32d8b4;
  --ifm-color-primary-lightest: #4fddbf;
  --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
}

/* Adjust hero banner for better contrast in dark mode */
[data-theme='dark'] .hero--primary {
  --ifm-hero-background-color: color-mix(in srgb, var(--ifm-color-primary) 90%, transparent);
}

/* Style buttons in hero banner (both modes) */
.hero--primary .button--secondary {
  --ifm-button-background-color: #fff;
  --ifm-button-border-color: #fff;
  color: var(--ifm-color-primary);
}

.hero--primary .button--secondary:hover {
  --ifm-button-background-color: rgba(255, 255, 255, 0.8);
}

.hero--primary .button--link {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.hero--primary .button--link:hover {
  border-color: #fff;
  background-color: rgba(255, 255, 255, 0.2);
}

/* Light mode adjustments for hero banner */
[data-theme='light'] .hero--primary {
  --ifm-hero-background-color: var(--ifm-color-primary);
  --ifm-hero-text-color: #fff;
}
