/* Simply Bake v1.1.118 — context-aware ink for filled Blackberry controls.
 * A button's text echoes the ACTUAL adjacent surface, rather than one
 * universal Buttercream token. Examples: the home hero search uses #FFFDF9
 * (the search field); the Recipe Index CTA/sticker uses #FBF5EB (Buttercream).
 * No generic button, plugin, or ad selectors. Unlisted buttons retain their
 * existing component-specific colours. Do not change focus or hover surfaces.
 */

/* Navigation CTA and recipe-box badge sit against Buttercream. */
.sb-menu > li.sb-recipe-index-cta > a,
.sb-menu > li.sb-recipe-index-cta > a:is(:hover,:focus-visible),
.sb-homehero__sticker,
.sb-category-card--no-bake {
  color:#FBF5EB !important;
}

/* The hero search button is inset into an #FFFDF9 search field. */
.sb-homehero__search button,
.sb-homehero__search button:is(:hover,:focus-visible) {
  color:#FFFDF9 !important;
}

/* The header search field uses the site's warmer #FFFCF7 surface. */
.sb-search-form button,
.sb-search-form button:is(:hover,:focus-visible) {
  color:#FFFCF7 !important;
}

/* These search controls are inset into WHITE input rows. */
.sb-search-input-row button,
.sb-search-input-row button:is(:hover,:focus-visible),
.sb-lib-search button,
.sb-lib-search button:is(:hover,:focus-visible),
.sb-sidebar-search button,
.sb-sidebar-search button:is(:hover,:focus-visible),
.sb-404-form button,
.sb-404-form button:is(:hover,:focus-visible) {
  color:#FFFFFF !important;
}

/* The recipe library's apply control sits on the #FFFCF7 paper panel. */
.sb-lib-apply,
.sb-lib-apply:is(:hover,:focus-visible) {
  color:#FFFCF7 !important;
}

/* The homepage/recipe newsletter submit is inset in the #FFFCF7 card.
 * The stricter selector beats the late-loading provider button stylesheet. */
html body .sb-newsletter .sb-newsletter-embed :is(button[type="submit"],input[type="submit"]),
html body .sb-newsletter .sb-newsletter-embed :is(button[type="submit"],input[type="submit"]):is(:hover,:focus-visible),
.sb-newsletter-preview-button,
.sb-newsletter-preview-button:is(:hover,:focus-visible) {
  color:#FFFCF7 !important;
}

/* Category card's circular arrow starts #FFFDF8, so match its fill on hover. */
.sb-category-card:is(:hover,:focus-visible) .sb-category-card__arrow {
  color:#FFFDF8 !important;
}

/* Other filled buttons keep their existing per-component colours unless
 * a documented local surface exists. No blanket recolour of outlined links,
 * decorative badges, third-party widgets or controls in dynamic states. */


/* v1.1.119 — owner-supplied filled buttons, each matched to the actual
 * surface directly behind it. We preserve the approved 50px shape, fill,
 * hover, focus and motion. Color only; no structural or plugin changes. */

/* Recipe hero is Buttercream, #FBF5EB. */
.sb-folio-article .sb-folio-hero .sb-folio-action-main,
.sb-folio-article .sb-folio-hero .sb-folio-action-main:is(:hover,:focus-visible) {
  color:#FBF5EB !important;
}

/* WPRM Recipe Sheet paper is #FFFCF7; plugin shortcode and CSS
 * can supply their own white text styles, so scope an explicit override. */
.sb-wprm-sheet .sb-wprm-actions a.wprm-recipe-print,
.sb-wprm-sheet .sb-wprm-actions a.wprm-recipe-print:is(:hover,:focus-visible) {
  color:#FFFCF7 !important;
}

/* Both sidebar cards (author + Latest recipes) are #FFFCF7. */
.sb-recipe-sidebar .sb-sidebar-author .sb-sidebar-author-cta,
.sb-recipe-sidebar .sb-sidebar-author .sb-sidebar-author-cta:is(:hover,:focus-visible),
.sb-recipe-sidebar .sb-sidebar-more .sb-sidebar-browse,
.sb-recipe-sidebar .sb-sidebar-more .sb-sidebar-browse:is(:hover,:focus-visible) {
  color:#FFFCF7 !important;
}

/* About Me and Work With Me hero CTAs sit on Buttercream #FBF5EB. */
.sb-about-page .sb-about-hero .sb-about-main-cta,
.sb-about-page .sb-about-hero .sb-about-main-cta:is(:hover,:focus-visible),
.sb-work-page .sb-work-hero .sb-work-button--primary,
.sb-work-page .sb-work-hero .sb-work-button--primary:is(:hover,:focus-visible) {
  color:#FBF5EB !important;
}

/* Contact CTA sits inside the #FFFCF7 warm-white contact note. */
.sb-contact-page .sb-contact-hero-note .sb-contact-button,
.sb-contact-page .sb-contact-hero-note .sb-contact-button:is(:hover,:focus-visible) {
  color:#FFFCF7 !important;
}


/* v1.1.120 — complete first-party filled-control colour audit.
 * Each ink colour is matched to the local surface immediately underneath
 * the filled control; states with insufficient contrast use the approved
 * contrasting colour instead. Strictly scoped: never a generic button/a
 * override, nor a third-party ad, cookie banner or generic WPRM control.
 * Repeat explicit hover/focus selectors so state changes do not turn white.
 */

/* The 404 home CTA is in the #FBF5EB hero, unlike its Search button
 * which is IN the #FFFFFF search field (already handled above). */
.sb-404-page .sb-404-actions .sb-404-primary,
.sb-404-page .sb-404-actions .sb-404-primary:is(:hover,:focus-visible) {
  color:#FBF5EB!important;
}

/* Real WordPress comment submit sits in its #FFFBF6 form card. */
.sb-notes .sb-notes-form .sb-notes-submit,
.sb-notes .sb-notes-form .sb-notes-submit:is(:hover,:focus-visible) {
  color:#FFFBF6!important;
}

/* Recipe-post author CTA is on a soft blush-to-cream gradient. The centre
 * of its own content panel is #F8EDE7; this preserves legible contrast. */
.sb-post-author .sb-post-author__link,
.sb-post-author .sb-post-author__link:is(:hover,:focus-visible) {
  color:#F8EDE7!important;
}

/* Work With Me lower CTA is inside its #FFFCF7 paper box, not the
 * Blackberry section behind that paper. */
.sb-work-page .sb-work-inbox-cta a.sb-work-write,
.sb-work-page .sb-work-inbox-cta a.sb-work-write:is(:hover,:focus-visible) {
  color:#FFFCF7!important;
}

/* Empty search state: first (filled) action sits in #FFFCF7 paper. */
.sb-search-page .sb-search-empty .sb-search-empty-actions a:first-child,
.sb-search-page .sb-search-empty .sb-search-empty-actions a:first-child:is(:hover,:focus-visible) {
  color:#FFFCF7!important;
}

/* Category archive discovery CTA sits in Buttercream results section. */
.sb-category-archive .sb-cat-results .sb-cat-explore-all,
.sb-category-archive .sb-cat-results .sb-cat-explore-all:is(:hover,:focus-visible) {
  color:#FBF5EB!important;
}

/* The seasonal selected pill is in a #FFFBF6 postcard/navigation surface. */
.sb-seasons__nav a[aria-current="true"],
.sb-seasons__nav a[aria-current="true"]:is(:hover,:focus-visible) {
  color:#FFFBF6!important;
}

/* Active page-number pill in pagination: same paper ink as the other
 * pager controls, not global pure-white. Dynamic disabled/other states stay. */
.sb-lib-pager .sb-lib-pager-number.is-current,
.sb-lib-pager.sb-content-pager .post-page-numbers.current {
  color:#FFFCF7!important;
}

/* The ordinary shared/basic search submit lives in the warm-white header
 * field; its surrounding input is not the hero's #FFFDF9 or library white. */
.sb-basic-search button,
.sb-basic-search button:is(:hover,:focus-visible) {
  color:#FFFCF7!important;
}

/* Two first-party decorative labels complete the filled-ink inventory.
 * Category's feature ribbon overlays #FFFCF7; Contact's note tab overlays
 * the card's var(--sb-surface), which resolves to the same warm white. */
.sb-category-archive .sb-cat-feature-ribbon { color:#FFFCF7!important; }
.sb-contact-page .sb-contact-hero-note .sb-contact-note-tab { color:#FFFCF7!important; }

/* The comment-author's circular SB initial sits inside the #F4E7DD
 * author-comment surface. Other author badges/identities are unaltered. */
.sb-notes li.sb-note-is-author .sb-note-avatar--author { color:#F4E7DD!important; }

/* Custom WPRM servings/scaling: preserve selected background, border,
 * accessibility state and plugin handlers. The toggle bar itself is
 * #FBF5EB, so selected labels should echo that cream. WPRM's own
 * template can load later with !important rules, hence stronger scope. */
html body .sb-wprm-sheet .sb-wprm-servings-controls button.wprm-toggle-active,
html body .sb-wprm-sheet .sb-wprm-servings-controls button.wprm-toggle-active:is(:hover,:focus-visible),
html body .sb-wprm-sheet .sb-wprm-servings-controls button[aria-pressed="true"],
html body .sb-wprm-sheet .sb-wprm-servings-controls button[aria-pressed="true"]:is(:hover,:focus-visible),
html body .sb-wprm-sheet .sb-wprm-servings-controls .sb-wprm-scale-button[aria-pressed="true"],
html body .sb-wprm-sheet .sb-wprm-servings-controls .sb-wprm-scale-button[aria-pressed="true"]:is(:hover,:focus-visible) {
  color:#FBF5EB!important;
}
