/* Readable text everywhere (loaded last).
   Found with an automated contrast audit of every public page in light and dark
   mode on desktop and mobile. Colours here are pinned (not theme vars) where the
   background is pinned, so dark mode cannot turn text the same colour as its
   background. Target: WCAG AA (4.5:1 body text, 3:1 large text). */

:root {
    --sb-ink-accent: #B54708;
    /* saffron text on light backgrounds: 5.6:1 on white */
    --sb-ink-muted: #6B5D50;
    /* secondary text on light backgrounds */
}

[data-theme="dark"] {
    --sb-ink-accent: #FFA45C;
    /* saffron text on dark backgrounds */
    --sb-ink-muted: #C4B8A8;
}

/* Saffron labels, kickers and text links (#FF6B00 was 2.9:1 on white). */
.sb-section-label,
.sb-project-kicker,
.sb-project-hindi,
.sb-project-link,
.sb-text-link,
.sb-platform-link,
.sb-platform-domain,
.sb-contact-alt-email,
.sb-bk-ch-n,
.sb-bk-more,
.sb-bk-badge,
.sb-ln-kicker,
.sb-sg-leaf small,
.sb-main :is(p, li, td, dd)>a:not([class*="btn"]):not(:is(.sb-cta, .sb-hero, .sb-page-header, .sb-hs-panchang, .sb-hs-live, .sb-dark-band) *) {
    color: var(--sb-ink-accent) !important;
}

.sb-section-desc {
    color: var(--sb-ink-muted);
}

/* Skip link (white on #FF6B00 was 2.9:1). */
.sb-skip-link,
.sb-skip-link:focus {
    background: #A33633;
    color: #fff;
}

/* "White" buttons stay white in dark mode; they sit on dark bands. */
[data-theme="dark"] .sb-btn-white {
    background: #fff;
    color: #8B1A1A;
}

/* Contact page cards: maroon headings were 2:1 on the dark card. */
[data-theme="dark"] .sb-main h3 {
    color: var(--sb-gray-800);
}

/* Home sections with pinned light backgrounds: keep dark ink in both modes. */
.sb-hs-books,
.sb-hs-quiz,
.sb-hs-camp,
.sb-hs-store,
.sb-hs-books :is(h2, h3, p, span, small),
.sb-hs-quiz :is(h2, h3, p, li, span):not(.sb-hs-card *),
.sb-hs-camp :is(h2, h3, p):not(.sb-hs-live *),
.sb-hs-store :is(h2, h3, p, small) {
    color: #30292A;
}

.sb-hs-books .sb-hs-eyebrow,
.sb-hs-quiz .sb-hs-eyebrow,
.sb-hs-camp .sb-hs-eyebrow,
.sb-hs-store .sb-hs-eyebrow {
    color: #A33633;
}

.sb-hs-rules span,
.sb-hs-steps p,
.sb-hs-book p,
.sb-hs-product small {
    opacity: 1;
    color: #5C4F42;
}

.sb-hs-rules b,
.sb-hs-price {
    color: #8B1A1A;
}

.sb-hs-book-blank {
    color: #ECE7D5;
}

/* Decorative big numbers are not content. */
.sb-project-number {
    color: rgba(139, 26, 26, .18);
}
/* Remaining audit fixes (v2.14.0). */
.sb-branch-explainer a, .sb-contact-methods a[href^="mailto:"], .sb-main a[href="mailto:hi@shivbodhtrust.org"] { color: var(--sb-ink-accent) !important; }
.sb-section-label { color: #9A3C06; }
[data-theme="dark"] .sb-section-label { color: var(--sb-ink-accent); }
.sb-hs-store h3, .sb-hs-store .sb-hs-product h3 { color: #30292A !important; }
.sb-sg-leaf small, .sb-sg-nav small { color: var(--sb-ink-accent) !important; }
.sb-br-page .sb-gallery-title, .sb-br-band--alt .sb-gallery-title { color: var(--br-alt-ink) !important; }
html:not([data-theme="dark"]) .sb-section-label { color: #9A3C06 !important; }
[data-theme="dark"] .sb-sg-read small, [data-theme="dark"] .sb-sg-pager small, [data-theme="dark"] .sb-main small { color: #FFA45C !important; }
