/* 2 September 2026 — gold on hover, on every button, as a rule for the site.
 *
 * Beth's rule, passed on by Amanda: "all buttons to be gold on hover". It extends a decision already
 * made rather than starting a new one. On 30 August Amanda asked for gold on the press of the
 * booking button in the header, because Warm Gold means readiness in the palette and pressing is the
 * moment of readiness. This says the same thing about reaching for it.
 *
 * TWO THINGS THAT ARE NOT NEGOTIABLE HERE.
 *
 * The text is Ink, never white. Warm Gold is a light colour: Ink on it is 7.2:1 and white on it is
 * 2.1:1, which fails at any size. Several buttons on the site carry white text by default, so the
 * colour has to be set in the same rule as the background or the hover state is the one state a
 * button cannot be read in. This is the same pairing rule Milk Teal already follows.
 *
 * It covers hover, focus and press together. A hover-only rule is a rule only a mouse can see, and
 * the keyboard reaches the same buttons.
 *
 * The selectors repeat .obc-mv three times on purpose. !important and load order are not enough on
 * their own: several cards restyle the label inside them on their own hover, and
 * `.mv-team-grid .mv-lc-card:hover .mv-lc-link .wp-block-button__link` is five classes deep, so it
 * beat a shorter rule and left gold grounds under grey and white text. Repeating a class the element
 * already has raises the weight without changing what is matched. The alternative was editing every
 * card in the site, and then the next card would have the same argument again.
 *
 * Loaded last, and with !important, because it has to beat per-component hovers written before there
 * was a site rule: the referral actions, the profile choices and the header's own navy. Those were
 * each right on their own page and are now one thing.
 *
 * ONE EXCLUSION, AND IT IS NOT AN EXCEPTION TO THE RULE. The two "Explore" labels inside the milk
 * jars are colostrum text on a dark green card, approved by name in BRAND.md, and the card itself is
 * the thing that responds: it fills with colostrum when you reach for it. Giving them a gold ground
 * puts gold text on gold, which is a button nobody can read, and it fights the card's own answer.
 * They are a label on a hoverable card rather than a button, whatever block they are built from.
 */

:not(.mv-jar-link):not(.obc-nav-book):not(.mv-cta):not(.mv-ref-action) > .wp-block-button__link:hover,
:not(.mv-jar-link):not(.obc-nav-book):not(.mv-cta):not(.mv-ref-action) > .wp-block-button__link:focus-visible,
:not(.mv-jar-link):not(.obc-nav-book):not(.mv-cta):not(.mv-ref-action) > .wp-block-button__link:active,
.obc-mv.obc-mv.obc-mv :not(.mv-jar-link):not(.obc-nav-book):not(.mv-cta):not(.mv-ref-action) > .wp-block-button__link:hover,
.obc-mv.obc-mv.obc-mv :not(.mv-jar-link):not(.obc-nav-book):not(.mv-cta):not(.mv-ref-action) > .wp-block-button__link:focus-visible,
.obc-mv.obc-mv.obc-mv :not(.mv-jar-link):not(.obc-nav-book):not(.mv-cta):not(.mv-ref-action) > .wp-block-button__link:active,
html body .obc-finder-lab .fl-go:hover,
html body .obc-finder-lab .fl-go:focus-visible,
html body .obc-finder-lab .fl-go:active,
html body .obc-finder-lab .fl-book:hover,
html body .obc-finder-lab .fl-book:focus-visible,
html body .obc-finder-lab .fl-book:active {
  background: #d7b47a !important;
  background-color: #d7b47a !important;
  background-image: none !important;
  border-color: #d7b47a !important;
  color: #1f2c31 !important;
}

/* 5 September 2026 — the header's Book Support Now is the one exception, and it is the rule rather
 * than a break from it. Amanda set that button to Warm Gold at rest, which is where every other
 * button on the site arrives on hover. A button already gold cannot answer by going gold: it would
 * be the only control here that does nothing when you reach for it, which is the same complaint she
 * made about a pill that looked like a control and was not.
 *
 * So it moves the other way, to Deep Green with Ivory on it, in replica.css beside its resting
 * colour. Gold still means readiness on this button; it means it before the pointer arrives rather
 * than after.
 *
 * 5 September 2026 — and of .mv-ref-action, which Amanda made colostrum as a theme rather than a
 * page at a time. What is left in the list is the buttons that are not gold at rest, which is what
 * this rule was always about.
 *
 * 5 September 2026 — and the same is now true of every .mv-cta pill on the site, for the same
 * reason: Amanda made them all colostrum gold. What is left in the list below is the buttons that
 * are not gold at rest, which is what the rule was always about.
 *
 * It is excluded with :not() on the parent rather than overridden further down, because
 * two rules arguing with !important is how the next person loses an afternoon. Note WHERE the
 * exclusion had to go: taking this button's three named selectors off the list below changed
 * nothing at all, because the first selector in it is bare — `:not(.mv-jar-link) > .wp-block-button
 * __link:hover` matches every button on the site whatever else it is inside. Half an hour went on
 * a hover that was already covered twice. */

/* an outline button has no fill to change, so it gains one. Its own border colour is overridden
   above, so the shape stays and only the ground moves. */
.obc-mv.obc-mv.obc-mv .is-style-outline .wp-block-button__link:hover,
.obc-mv.obc-mv.obc-mv .is-style-outline .wp-block-button__link:focus-visible,
.obc-mv.obc-mv.obc-mv .is-style-outline .wp-block-button__link:active {
  background: #d7b47a !important;
  color: #1f2c31 !important;
}

/* anything a button draws inside itself follows the text rather than keeping its own colour: an
   arrow that stays ivory on gold is the one part of the button nobody can see. */
html body :not(.mv-jar-link) > .wp-block-button__link:hover *,
html body :not(.mv-jar-link) > .wp-block-button__link:focus-visible *,
html body :not(.mv-jar-link) > .wp-block-button__link:active *,
html body .obc-finder-lab .fl-go:hover *,
html body .obc-finder-lab .fl-book:hover * {
  color: inherit !important;
}
