/* Shared Should I Blanket web palette.
   Recommendation-state colors remain intentionally distinct in the calculator. */
:root {
  --sib-forest: #214f41;
  --sib-forest-dark: #17382f;
  --sib-gold: #b3874c;
  --sib-cream: #f5f3eb;
  --sib-paper: #fffdf7;
  --sib-ink: #24342c;
  --sib-muted: #53645a;
  --sib-line: #d8d5c8;
  --sib-soft: #eff3eb;
  --sib-danger: #8a3c32;
}

body.sib-theme,
body:has(.sib-theme-root),
body:has(.support-page),
body:has(.account-page),
body:has(.stable-page) {
  color: var(--sib-ink);
  background: var(--sib-cream);
}

.sib-theme-root,
.support-page,
.account-page,
.stable-page {
  color: var(--sib-ink);
}

.sib-theme-root a,
.support-page a,
.account-page a,
.stable-page a {
  color: var(--sib-forest);
}

.sib-theme-root a:hover,
.support-page a:hover,
.account-page a:hover,
.stable-page a:hover {
  color: var(--sib-forest-dark);
}

.sib-theme-root .card,
.support-page .card,
.account-page .card,
.stable-page .horse-card,
.stable-page .horse-edit,
.stable-page .horse-add,
.stable-page .horse-care-panel {
  background: var(--sib-paper);
  border-color: var(--sib-line);
  color: var(--sib-ink);
  box-shadow: 0 8px 24px rgba(35, 53, 42, .07);
}

.sib-theme-root .card h1,
.sib-theme-root .card h2,
.support-page h1,
.support-page h2,
.account-page h1,
.account-page h2,
.stable-page h1,
.stable-page h2,
.stable-page h3 {
  color: var(--sib-forest-dark);
}

.sib-theme-root .lede,
.sib-theme-root .muted,
.support-page .muted,
.support-page footer,
.account-page .muted,
.stable-page .stable-lede,
.stable-page .horse-nickname,
.stable-page .horse-meta,
.stable-page .horse-private-note,
.stable-page .stable-footer {
  color: var(--sib-muted);
}

.sib-theme-root .cta,
.support-page .btn.primary,
.account-page .btn.primary,
.stable-page .stable-button {
  background: var(--sib-forest);
  border-color: var(--sib-forest);
  color: var(--sib-paper);
}

.sib-theme-root .cta:hover,
.support-page .btn.primary:hover,
.account-page .btn.primary:hover,
.stable-page .stable-button:hover {
  background: var(--sib-forest-dark);
  color: var(--sib-paper);
}

.sib-theme-root .card,
.support-page .card,
.account-page .card,
.stable-page .horse-card {
  border-radius: 16px;
}

.support-page header {
  background: var(--sib-paper);
  border-bottom-color: var(--sib-line);
}

.support-page .card {
  background: var(--sib-paper);
}

.support-page code {
  background: var(--sib-soft);
  border-color: var(--sib-line);
}

.account-page .topnav {
  background: var(--sib-paper);
  border-bottom-color: var(--sib-line);
}

.account-page .card {
  background: var(--sib-paper);
}

.account-page .btn {
  border-color: var(--sib-line);
  background: var(--sib-paper);
  color: var(--sib-forest);
}

.stable-page .stable-back,
.stable-page .stable-kicker,
.stable-page .stable-toolbar strong,
.stable-page .horse-details > summary,
.stable-page .horse-edit > summary,
.stable-page .horse-add > summary,
.stable-page .horse-care-panel > summary {
  color: var(--sib-forest);
}

.stable-page .stable-toolbar,
.stable-page .horse-edit,
.stable-page .horse-add,
.stable-page .horse-care-panel {
  background: var(--sib-soft);
}

.stable-page .stable-toolbar,
.stable-page .horse-details,
.stable-page .horse-edit,
.stable-page .horse-add,
.stable-page .horse-care-panel,
.stable-page .stable-footer {
  border-color: var(--sib-line);
}

.stable-page .stable-button:focus-visible,
.stable-page .lookup-button:focus-visible,
.stable-page .horse-delete:focus-visible,
.stable-page .stable-back:focus-visible {
  outline-color: var(--sib-gold);
}

.stable-page .horse-delete {
  color: var(--sib-danger);
}
