:root > * {
  --md-primary-fg-color: #627f40;
  --md-primary-fg-color--light: #9cc666;
  --md-primary-fg-color--dark: #545f71;
  --md-accent-fg-color: #2f8f7f;
}

[data-md-color-scheme="slate"] {
  --md-hue: 92;
  --md-primary-fg-color: #9cc666;
  --md-accent-fg-color: #56beac;
}

.md-grid {
  max-width: 1480px;
}

.md-header {
  box-shadow: none;
}

/* Acceso a la guía (PWA) desde la cabecera; lo añade javascripts/acceso-guia.js. */
.acceso-guia {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0.4rem;
  padding: 0.25rem 0.8rem 0.25rem 0.3rem;
  border-radius: 999px;
  background: #fff;
  color: #323232;
  font-weight: 700;
  font-size: 0.75rem;
  line-height: 1;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.md-header .acceso-guia:hover,
.md-header .acceso-guia:focus-visible {
  color: #323232;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgb(0 0 0 / 0.25);
}

.acceso-guia img {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

@media screen and (max-width: 44.984375em) {
  .acceso-guia {
    padding: 0.25rem;
  }

  .acceso-guia span {
    display: none;
  }
}

.md-main__inner {
  margin-top: 1.4rem;
}

.hero-copy {
  max-width: 760px;
  margin: 0.5rem 0 1.75rem;
  color: var(--md-default-fg-color--light);
  font-size: 1.2rem;
  line-height: 1.65;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 3rem 0;
}

.process-card {
  padding: 1.25rem 1.4rem;
  border: 1px solid color-mix(in srgb, var(--md-primary-fg-color) 24%, transparent);
  border-radius: 0.8rem;
  background: color-mix(in srgb, var(--md-primary-fg-color) 5%, transparent);
}

.process-card h3 {
  margin-top: 0;
  color: var(--md-primary-fg-color);
}

.process-card p:last-child {
  margin-bottom: 0;
}

.md-typeset .md-button {
  border-radius: 2rem;
}

.md-typeset .mermaid {
  margin: 1.5rem 0;
  padding: 1rem;
  border-radius: 0.8rem;
  background: color-mix(in srgb, var(--md-default-bg-color) 94%, var(--md-primary-fg-color));
}

/* Mermaid's dark theme can override classDef label colors. */
.md-typeset .mermaid .reject :is(.label, .nodeLabel, p, span, text, tspan) {
  color: #58151c !important;
  fill: #58151c !important;
}

.md-typeset .mermaid .ok :is(.label, .nodeLabel, p, span, text, tspan) {
  color: #0a3622 !important;
  fill: #0a3622 !important;
}

.md-typeset .mermaid .checkpoint :is(.label, .nodeLabel, p, span, text, tspan) {
  color: #664d03 !important;
  fill: #664d03 !important;
}

.md-typeset .mermaid .dh :is(.label, .nodeLabel, p, span, text, tspan) {
  color: #052c65 !important;
  fill: #052c65 !important;
}

.md-typeset .mermaid .newstate :is(.label, .nodeLabel, p, span, text, tspan) {
  color: #2f1c6a !important;
  fill: #2f1c6a !important;
}

@media screen and (max-width: 44.984375em) {
  .process-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    font-size: 1.05rem;
  }
}
