/* Brand accent #00E575 (D-025). Remove the /palette.css link in index.html to fall back
   to the original colors in styles.css. Rules here are unlayered on purpose, so they
   override the layered color rules in styles.css. */
:root {
  --accent-text: #00e575;
  --accent-button: #00e575;
  --on-accent: #14291a;
  --green: var(--accent-text);
}

/* Accent text. Body copy and captions keep their neutral colors. */
.subtle-button,
.subtle-button:hover,
.text-link,
.text-link:hover,
.card-link,
.bottom-note a,
.primary-stat > span:first-child,
.result-number,
.technical-details summary,
.mode-switch button[aria-pressed="true"] {
  color: var(--accent-text);
}

/* Primary button: dark label on green so it stays readable. */
.button.primary {
  background: var(--accent-button);
  border-color: var(--accent-button);
  color: var(--on-accent);
}
.button.primary:hover:not(:disabled) {
  background: var(--accent-button);
  border-color: var(--accent-button);
  box-shadow: inset 0 0 0 2px var(--on-accent);
}
/* Keep the old hover color from changing disabled buttons. */
.button.primary:disabled:hover {
  background: var(--accent-button);
}
.button.secondary,
.button.secondary:hover:not(:disabled) {
  color: var(--accent-text);
  border-color: var(--accent-button);
}

.favorite.selected .icon { fill: var(--accent-text); }
