/* Shared public color roles, including standalone login/account and store cards. */
:root {
  --rr-color-text: #45346f;
  --rr-color-muted: #6b6b73;
  --rr-color-white: #ffffff;
  --rr-color-orange: #ffad16;
  --rr-color-purple: #6d4bb2;
  --ink: var(--rr-color-text);
  --ink-soft: var(--rr-color-muted);
  --rrf-ink: var(--rr-color-text);
  --rrf-ink-soft: var(--rr-color-muted);
}
body, body.login, body.rrm-account-page { color: var(--rr-color-text); }
body .single-material__author a { color: var(--rr-color-purple) !important; }
body :is(h1, h2, h3, h4, h5, h6, p, li, dt, dd, a, b, strong, input, textarea, select):where(:not(#wpadminbar *)):where(:not(.rrm-richtext *)),
.single-material__terms .single-material__term, .error-page__code,
.account-field label, .login label, .download-access__registration label,
.side-catalog__toggle, .faq__item summary, .game-navigator__filters button {
  color: var(--rr-color-text) !important;
}
/* Author-selected colors remain available inside explicitly editable rich text. */
:is(.entry-content, .single-material__instructions-content) :is(span, font, em, i):where(:not(.rrm-richtext *)),
.game-navigator__search-icon, .days-calendar__arrow, .contacts-channel__arrow {
  color: var(--rr-color-text) !important;
}
input::placeholder, textarea::placeholder { color: var(--rr-color-muted); opacity: 1; }
body small:where(:not(.rrm-richtext *)), .eyebrow, .single-material__kicker, .single-material__terms small,
.header-carousel__eyebrow, .header-carousel__cta, .header-account__welcome,
.home-store-products__header > span, .catalog-toolbar__count,
.material-card__meta, .material-card__meta a, .material-card__carousel-hint,
.material-card__free, .home-catalog__intro p, .archive-hero__copy > p,
.home-info__facts span, .home-catalog__counter span, .browse-card__number,
.rr-ad, .home-ad-card__label, .activity-sheet__label, .hero-note,
.brand__copy small, .footer-brand > p, .footer-note p, .site-footer__bottom,
.contacts-owner__role, .contacts-channel small, .contacts-legal dt,
.contacts-channels__description, .contacts-section-heading > p,
.days-calendar__date, .side-catalog__plus, .game-navigator__result,
.material-rating-summary > span, .material-reviews__summary > span,
.material-review__header time, .material-review__pending,
.material-review-form .comment-notes, .material-reviews__login p,
.account-sidebar__title, .account-hint, .account-footer, .account-footer a,
.account-statistics span, .account-payments th, .account-cancel p,
.account-offer-price del, .account-badge,
.rrm-subscription__eyebrow, .rrm-subscription__hero p, .rrm-plan__period,
.rrm-plan__price del, .rrm-subscription__note, .rrm-legal-document__version,
.download-access__intro, .download-access__eyebrow, .download-access__notice,
.download-access__art-copy span,
.download-access__confirmation, .download-access__free, .download-access__login,
.download-access__registration .rrm-registration-display-name__hint,
.download-access__registration :is(.rrm-registration-consent, .rrm-marketing-consent) label,
.download-access__registration .rrm-marketing-consent label::after,
.login :is(.rrm-registration-display-name__hint, .rrm-registration-consent, .rrm-marketing-consent) {
  color: var(--rr-color-muted) !important;
}
/* Store headings/links follow the main catalog; its prices use the banner accent. */
.home-store-products :is(h2, h3, a),
.home-store-products :is(h3, a):is(:hover, :focus-visible) {
  color: var(--rr-color-text) !important;
}
.store-product-card__footer strong { color: var(--rr-color-orange) !important; }
.home-store-products a.home-store-products__all,
.home-store-products a.home-store-products__all:is(:hover, :focus-visible) {
  color: var(--rr-color-white) !important;
}
.premium-banner__cta { background: var(--rr-color-orange); }
/* White type on colored buttons and selected controls, including child spans. */
body :is(.button--primary, .button--download, .header-account__link--primary, .rrm-plan__button,
 .author-card, .contacts-owner__identity,
 .material-card__actions > a.button, .account-button:not(.account-button--secondary),
 .site-promo__cta, .premium-banner__copy, .premium-banner__cta,
 .side-catalog__heading, .site-header__utility,
 .pagination .page-numbers.current, .pagination a.page-numbers:hover,
 .quick-filters a.is-active, .quick-filters a:hover,
 .days-calendar__months a.is-current, .days-calendar__months a:hover,
 .days-calendar__months a:focus-visible, .game-navigator__filters button.is-active,
 .game-navigator__group h2, .faq__contact h2,
 .game-navigator__alphabet a:hover, .game-navigator__alphabet a:focus-visible,
 .account-sidebar nav > a[aria-current="page"], .account-pagination .current,
 .game-navigator__filters button[aria-pressed="true"], .login .button-primary),
body :is(.button--primary, .button--download, .header-account__link--primary, .rrm-plan__button,
 .author-card, .contacts-owner__identity,
 .material-card__actions > a.button, .account-button:not(.account-button--secondary),
 .site-promo__cta, .premium-banner__copy, .premium-banner__cta,
 .side-catalog__heading, .site-header__utility,
 .quick-filters a.is-active, .quick-filters a:hover,
 .days-calendar__months a.is-current, .days-calendar__months a:hover,
 .days-calendar__months a:focus-visible,
 .account-sidebar nav > a[aria-current="page"]) * {
  color: var(--rr-color-white) !important;
}
body :is(.button--ghost, .account-button--secondary, .rrm-plan__button--secondary),
body :is(.button--ghost, .account-button--secondary, .rrm-plan__button--secondary):is(:hover, :focus-visible) {
  color: var(--rr-color-text) !important;
}
body :is(.button--disabled, .rrm-plan__button--disabled) { color: var(--rr-color-muted) !important; }
/* The FAQ contact button has a white background inside the purple help panel. */
body .faq__contact a.button.button--primary { color: var(--rr-color-text) !important; }
/* Premium remains identifiable in the same two-line button as free materials. */
body a.material-download.material-download--premium .material-download__access { color: #fff0b3 !important; }
body a.material-download.material-download--free .material-download__access { color: #f0e4fa !important; }
/* Rating glyphs remain visual accents rather than paragraph text. */
.rating-stars { color: var(--rr-color-orange); }
