/**
 * marnamic interaction hierarchy
 *
 * This is the final visual contract for actions across WordPress, HivePress
 * and platform add-ons. Lime is reserved for a single conversion action in
 * the current decision context. Teal communicates a primary task, dark
 * surfaces carry secondary actions and danger is never encoded as lime.
 */

body.wp-child-theme-marnamic,
body.hp-theme--listinghive {
  --marnamic-action-accent: var(--marnamic-lime, #e7fd87);
  --marnamic-action-accent-hover: var(--marnamic-lime-hover, #dffc5f);
  --marnamic-action-accent-text: var(--marnamic-dark, #132124);
  --marnamic-action-primary: var(--marnamic-teal, #61a5ac);
  --marnamic-action-primary-hover: #78b8be;
  --marnamic-action-primary-text: var(--marnamic-dark, #132124);
  --marnamic-action-secondary: rgba(15, 25, 27, 0.86);
  --marnamic-action-secondary-hover: rgba(32, 51, 55, 0.98);
  --marnamic-action-secondary-text: var(--marnamic-cream, #f1e9dd);
  --marnamic-action-secondary-border: rgba(161, 192, 195, 0.34);
  --marnamic-action-secondary-border-hover: rgba(97, 165, 172, 0.78);
  --marnamic-action-outline: transparent;
  --marnamic-action-outline-text: var(--marnamic-cream, #f1e9dd);
  --marnamic-action-outline-border: rgba(161, 192, 195, 0.52);
  --marnamic-action-outline-hover: rgba(97, 165, 172, 0.16);
  --marnamic-action-outline-hover-text: var(--marnamic-cream, #f1e9dd);
  --marnamic-action-outline-border-hover: var(--marnamic-teal, #61a5ac);
  --marnamic-action-outline-focus: var(--marnamic-action-focus, rgba(231, 253, 135, 0.78));
  --marnamic-action-selected: var(--marnamic-teal, #61a5ac);
  --marnamic-action-selected-text: var(--marnamic-dark, #132124);
  --marnamic-action-danger: var(--marnamic-danger, #ff7b7b);
  --marnamic-action-disabled: rgba(161, 192, 195, 0.16);
  --marnamic-action-focus: rgba(231, 253, 135, 0.78);
  --marnamic-action-focus-light: rgba(97, 165, 172, 0.48);
  --marnamic-action-text-line-height: 1.25;
}

body.wp-child-theme-marnamic .marnamic-surface--light,
body.hp-theme--listinghive .marnamic-surface--light {
  --marnamic-action-outline-text: var(--marnamic-dark, #132124);
  --marnamic-action-outline-border: rgba(19, 33, 36, 0.52);
  --marnamic-action-outline-hover: rgba(97, 165, 172, 0.18);
  --marnamic-action-outline-hover-text: var(--marnamic-dark, #132124);
  --marnamic-action-outline-border-hover: var(--marnamic-teal-dark, #05717c);
  --marnamic-action-outline-focus: var(--marnamic-action-focus-light, rgba(97, 165, 172, 0.48));
}

/*
 * Specificity fence:
 * Legacy component contracts use !important together with up to four :not()
 * clauses. Repeating the stable body class lets this final semantic layer
 * retire that old hierarchy without IDs or additional markup.
 */

/* Text controls need enough internal line box for descenders such as g, p,
 * q and y. Flex alignment still centers the label inside fixed-height buttons. */
html body.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic :is(
  .button,
  .hp-button,
  .hp-form__button,
  .hp-field__button,
  .wp-element-button,
  .wp-block-button__link,
  .marnamic-button,
  .marnamic-card__cta,
  .marnamic-archive-filter-button,
  .marnamic-archive-map-toggle,
  button[type="submit"]:not(.gm-control-active),
  input[type="submit"]
) {
  line-height: var(--marnamic-action-text-line-height) !important;
}

/* Base and secondary actions: navigation, reveal, filter and supporting task. */
html body.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic :is(
  .button,
  .hp-button,
  .hp-form__button,
  .hp-field__button,
  .wp-element-button,
  .wp-block-button__link,
  .marnamic-button,
  .marnamic-archive-filter-button,
  .marnamic-archive-map-toggle,
  .marnamic-action--secondary
) {
  color: var(--marnamic-action-secondary-text) !important;
  -webkit-text-fill-color: var(--marnamic-action-secondary-text) !important;
  background-color: var(--marnamic-action-secondary) !important;
  border-color: var(--marnamic-action-secondary-border) !important;
  box-shadow: none !important;
}

html body.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic :is(
  .button,
  .hp-button,
  .hp-form__button,
  .hp-field__button,
  .wp-element-button,
  .wp-block-button__link,
  .marnamic-button,
  .marnamic-archive-filter-button,
  .marnamic-archive-map-toggle,
  .marnamic-action--secondary
):is(:hover, :focus-visible) {
  color: var(--marnamic-action-secondary-text) !important;
  -webkit-text-fill-color: var(--marnamic-action-secondary-text) !important;
  background-color: var(--marnamic-action-secondary-hover) !important;
  border-color: var(--marnamic-action-secondary-border-hover) !important;
  box-shadow: none !important;
}

/* Explicit danger roles must not inherit the generic submit color. */
/* Primary task: search, save, apply, continue, authenticate and publish. */
html body.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic :is(
  .button--primary,
  .button-primary,
  .hp-button--primary,
  .hp-form__button,
  .wp-element-button,
  .wp-block-button__link,
  .marnamic-button--primary,
  .marnamic-action--primary,
  .marnamic-air-search__filter-apply,
  .marnamic-air-search__mobile-primary,
  .marnamic-listing-search__mobile-primary,
  .hp-membership-plan__select-button,
  button[type="submit"]:not(.gm-control-active),
  input[type="submit"]
):not(:where(.marnamic-action--danger, .button--danger, .hp-button--danger)) {
  color: var(--marnamic-action-primary-text) !important;
  -webkit-text-fill-color: var(--marnamic-action-primary-text) !important;
  background-color: var(--marnamic-action-primary) !important;
  border-color: var(--marnamic-action-primary) !important;
}

html body.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic :is(
  .button--primary,
  .button-primary,
  .hp-button--primary,
  .hp-form__button,
  .wp-element-button,
  .wp-block-button__link,
  .marnamic-button--primary,
  .marnamic-action--primary,
  .marnamic-air-search__filter-apply,
  .marnamic-air-search__mobile-primary,
  .marnamic-listing-search__mobile-primary,
  .hp-membership-plan__select-button,
  button[type="submit"]:not(.gm-control-active),
  input[type="submit"]
):not(:where(.marnamic-action--danger, .button--danger, .hp-button--danger)):is(:hover, :focus-visible) {
  color: var(--marnamic-action-primary-text) !important;
  -webkit-text-fill-color: var(--marnamic-action-primary-text) !important;
  background-color: var(--marnamic-action-primary-hover) !important;
  border-color: var(--marnamic-action-primary-hover) !important;
  box-shadow: none !important;
}

/*
 * Search submits have high-specificity geometry guards in the archive layer.
 * Only their semantic color changes here; the round icon layout stays intact.
 */
body.wp-child-theme-marnamic.wp-child-theme-marnamic
  .hp-form--vendor-search.marnamic-air-search
  :is(.hp-form__button, button[type="submit"], input[type="submit"]),
body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-vendor-discovery
  .hp-form--vendor-search
  :is(.hp-form__button, button[type="submit"], input[type="submit"]),
body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results
  .hp-page__header
  .hp-form--vendor-search.marnamic-air-search
  :is(.hp-form__button, button[type="submit"], input[type="submit"]),
body.wp-child-theme-marnamic.wp-child-theme-marnamic.hp-template--vendors-view-page
  form.hp-form--vendor-search.marnamic-air-search
  > .hp-form__footer
  > :is(
    button.hp-form__button.hp-field.hp-field--submit.button[type="submit"],
    input.hp-form__button.hp-field.hp-field--submit[type="submit"]
  ),
body.wp-child-theme-marnamic.marnamic-styleguide
  .styleguide-demo
  .hp-form--vendor-search.marnamic-air-search
  :is(.hp-form__button, button[type="submit"], input[type="submit"]) {
  background-color: var(--marnamic-action-primary) !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic
  .hp-form--vendor-search.marnamic-air-search
  :is(.hp-form__button, button[type="submit"], input[type="submit"]):is(:hover, :focus-visible),
body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-vendor-discovery
  .hp-form--vendor-search
  :is(.hp-form__button, button[type="submit"], input[type="submit"]):is(:hover, :focus-visible),
body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results
  .hp-page__header
  .hp-form--vendor-search.marnamic-air-search
  :is(.hp-form__button, button[type="submit"], input[type="submit"]):is(:hover, :focus-visible),
body.wp-child-theme-marnamic.wp-child-theme-marnamic.hp-template--vendors-view-page
  form.hp-form--vendor-search.marnamic-air-search
  > .hp-form__footer
  > :is(
    button.hp-form__button.hp-field.hp-field--submit.button[type="submit"],
    input.hp-form__button.hp-field.hp-field--submit[type="submit"]
  ):is(:hover, :focus-visible),
body.wp-child-theme-marnamic.marnamic-styleguide
  .styleguide-demo
  .hp-form--vendor-search.marnamic-air-search
  :is(.hp-form__button, button[type="submit"], input[type="submit"]):is(:hover, :focus-visible) {
  background-color: var(--marnamic-action-primary-hover) !important;
  box-shadow: 0 0 0 4px rgba(97, 165, 172, 0.22) !important;
}

/* Supporting controls remain dark even when legacy classes call them primary. */
html body.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic :is(
  .button--secondary,
  .hp-button--secondary,
  .marnamic-button--secondary,
  .marnamic-action--secondary,
  .marnamic-archive-filter-button,
  .marnamic-archive-map-toggle,
  .combined-map-wrapper .map-filter-btn,
  .marnamic-air-search__filter-reset,
  .marnamic-air-search__mobile-reset,
  .marnamic-listing-search__mobile-reset,
  .marnamic-card__cta,
  .hp-page__sidebar .hp-vendor__action--message,
  .hp-page__sidebar .hp-vendor__action--review,
  .hp-page__sidebar .hp-listing__action--review
) {
  color: var(--marnamic-action-secondary-text) !important;
  -webkit-text-fill-color: var(--marnamic-action-secondary-text) !important;
  background-color: var(--marnamic-action-secondary) !important;
  border-color: var(--marnamic-action-secondary-border) !important;
}

html body.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic :is(
  .button--secondary,
  .hp-button--secondary,
  .marnamic-button--secondary,
  .marnamic-action--secondary,
  .marnamic-archive-filter-button,
  .marnamic-archive-map-toggle,
  .combined-map-wrapper .map-filter-btn,
  .marnamic-air-search__filter-reset,
  .marnamic-air-search__mobile-reset,
  .marnamic-listing-search__mobile-reset,
  .marnamic-card__cta,
  .hp-page__sidebar .hp-vendor__action--message,
  .hp-page__sidebar .hp-vendor__action--review,
  .hp-page__sidebar .hp-listing__action--review
):is(:hover, :focus-visible) {
  color: var(--marnamic-action-secondary-text) !important;
  -webkit-text-fill-color: var(--marnamic-action-secondary-text) !important;
  background-color: var(--marnamic-action-secondary-hover) !important;
  border-color: var(--marnamic-action-secondary-border-hover) !important;
  box-shadow: none !important;
}

/* Hovering anywhere on a vendor card shows "Profil ansehen" in its hover state,
 * because the whole card opens the profile. */
html body.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-vendor--view-block.marnamic-card:hover .marnamic-card__cta--profile {
  color: var(--marnamic-action-secondary-text) !important;
  -webkit-text-fill-color: var(--marnamic-action-secondary-text) !important;
  background-color: var(--marnamic-action-secondary-hover) !important;
  border-color: var(--marnamic-action-secondary-border-hover) !important;
}

/* Outline actions share one transparent contract on dark and light surfaces.
 * Legacy Ghost classes remain aliases for backwards-compatible markup. */
html body.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic :is(
  .button--outline,
  .hp-button--outline,
  .marnamic-button--outline,
  .marnamic-action--outline,
  .button--ghost,
  .hp-button--ghost,
  .marnamic-button--ghost,
  .marnamic-action--ghost,
  .mn-home-button--secondary,
  .mn-lex-btn--ghost,
  .mn-btn--ghost,
  .wp-block-button.is-style-outline > .wp-block-button__link,
  .wp-block-button__link.is-style-outline
) {
  display: inline-flex !important;
  min-height: var(--marnamic-ui-control-height, 44px) !important;
  align-items: center !important;
  justify-content: center !important;
  padding-inline: var(--marnamic-ui-button-padding-x, 16px) !important;
  color: var(--marnamic-action-outline-text) !important;
  -webkit-text-fill-color: var(--marnamic-action-outline-text) !important;
  background-color: var(--marnamic-action-outline) !important;
  border: 1px solid var(--marnamic-action-outline-border) !important;
  border-radius: var(--marnamic-ui-radius-md, 8px) !important;
  box-shadow: none !important;
  text-decoration: none !important;
  transition:
    background-color var(--marnamic-ui-transition, 160ms ease),
    border-color var(--marnamic-ui-transition, 160ms ease),
    color var(--marnamic-ui-transition, 160ms ease) !important;
}

html body.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic :is(
  .button--outline,
  .hp-button--outline,
  .marnamic-button--outline,
  .marnamic-action--outline,
  .button--ghost,
  .hp-button--ghost,
  .marnamic-button--ghost,
  .marnamic-action--ghost,
  .mn-home-button--secondary,
  .mn-lex-btn--ghost,
  .mn-btn--ghost,
  .wp-block-button.is-style-outline > .wp-block-button__link,
  .wp-block-button__link.is-style-outline
):is(:hover, :focus-visible) {
  color: var(--marnamic-action-outline-hover-text) !important;
  -webkit-text-fill-color: var(--marnamic-action-outline-hover-text) !important;
  background-color: var(--marnamic-action-outline-hover) !important;
  border-color: var(--marnamic-action-outline-border-hover) !important;
}

html body.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic :is(
  .button--outline,
  .hp-button--outline,
  .marnamic-button--outline,
  .marnamic-action--outline,
  .button--ghost,
  .hp-button--ghost,
  .marnamic-button--ghost,
  .marnamic-action--ghost,
  .mn-home-button--secondary,
  .mn-lex-btn--ghost,
  .mn-btn--ghost,
  .wp-block-button.is-style-outline > .wp-block-button__link,
  .wp-block-button__link.is-style-outline
):focus-visible {
  outline: 2px solid var(--marnamic-action-outline-focus) !important;
  outline-offset: 3px !important;
}

/* On listing details the direct reply is the main task, but not a conversion. */
body.wp-child-theme-marnamic.hp-template--listing-view-page
  .hp-page__sidebar
  :is(.hp-listing__action--message, .hp-listing__action--reply) {
  color: var(--marnamic-action-primary-text) !important;
  -webkit-text-fill-color: var(--marnamic-action-primary-text) !important;
  background-color: var(--marnamic-action-primary) !important;
  border-color: var(--marnamic-action-primary) !important;
}

body.wp-child-theme-marnamic.hp-template--listing-view-page
  .hp-page__sidebar
  :is(.hp-listing__action--message, .hp-listing__action--reply):is(:hover, :focus-visible) {
  color: var(--marnamic-action-primary-text) !important;
  -webkit-text-fill-color: var(--marnamic-action-primary-text) !important;
  background-color: var(--marnamic-action-primary-hover) !important;
  border-color: var(--marnamic-action-primary-hover) !important;
}

/* Header marketplace routes are persistent navigation, not page conversions. */
body.wp-child-theme-marnamic.wp-child-theme-marnamic
  .site-header.site-header
  .header-navbar.header-navbar
  .header-navbar__actions.header-navbar__actions
  .hp-menu.hp-menu--site-header
  :is(
    .hp-menu__item--listing-submit.button.button--secondary,
    .hp-menu__item--request-submit.hp-link
  ),
body.wp-child-theme-marnamic.wp-child-theme-marnamic
  .header-navbar__burger
  :is(.hp-menu__item--listing-submit, .hp-menu__item--request-submit) {
  color: var(--marnamic-action-secondary-text) !important;
  -webkit-text-fill-color: var(--marnamic-action-secondary-text) !important;
  background-color: var(--marnamic-action-secondary) !important;
  border-color: var(--marnamic-action-secondary-border) !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic
  .site-header.site-header
  .header-navbar.header-navbar
  .header-navbar__actions.header-navbar__actions
  .hp-menu.hp-menu--site-header
  :is(
    .hp-menu__item--listing-submit.button.button--secondary,
    .hp-menu__item--request-submit.hp-link
  ):is(:hover, :focus-visible),
body.wp-child-theme-marnamic.wp-child-theme-marnamic
  .header-navbar__burger
  :is(.hp-menu__item--listing-submit, .hp-menu__item--request-submit):is(:hover, :focus-visible) {
  color: var(--marnamic-action-secondary-text) !important;
  -webkit-text-fill-color: var(--marnamic-action-secondary-text) !important;
  background-color: var(--marnamic-action-secondary-hover) !important;
  border-color: var(--marnamic-action-secondary-border-hover) !important;
}

/* Selected is a state, not a conversion: filters, map toggles, tabs and chips. */
html body.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic :is(
  .button,
  .hp-button,
  .marnamic-button,
  .marnamic-archive-map-toggle,
  .combined-map-wrapper .map-filter-btn
):is([aria-pressed="true"], [data-state="active"], .is-active, .active),
html body.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic
  .gtt-category-filter__button.is-active {
  color: var(--marnamic-action-selected-text) !important;
  -webkit-text-fill-color: var(--marnamic-action-selected-text) !important;
  background-color: var(--marnamic-action-selected) !important;
  border-color: var(--marnamic-action-selected) !important;
}

html body.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic
  .gtt-category-filter__button:is(:hover, :focus-visible) {
  color: var(--marnamic-action-secondary-text) !important;
  -webkit-text-fill-color: var(--marnamic-action-secondary-text) !important;
  background-color: var(--marnamic-action-secondary-hover) !important;
  border-color: var(--marnamic-action-secondary-border-hover) !important;
}

html body.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic
  .gtt-category-filter__button.is-active:is(:hover, :focus-visible) {
  color: var(--marnamic-action-selected-text) !important;
  -webkit-text-fill-color: var(--marnamic-action-selected-text) !important;
  background-color: var(--marnamic-action-primary-hover) !important;
  border-color: var(--marnamic-action-primary-hover) !important;
}

body.wp-child-theme-marnamic .marnamic-purpose-option.is-checked {
  background: rgba(97, 165, 172, 0.22) !important;
}

body.wp-child-theme-marnamic input:is([type="checkbox"], [type="radio"]) {
  accent-color: var(--marnamic-action-selected) !important;
}

/* Card and contact icon actions use mint at rest and teal for interaction. */
body.wp-child-theme-marnamic .marnamic-card :is(
  .hp-vendor__action,
  .hp-listing__action,
  .hp-vendor__actions .hp-link,
  .hp-listing__actions .hp-link
),
body.wp-child-theme-marnamic:is(
  .hp-template--vendor-view-page,
  .hp-template--listing-view-page
) .hp-page__sidebar :is(
  .hp-social-links__item,
  .marnamic-vendor-contact__action
) {
  color: var(--marnamic-mint, #a1c0c3) !important;
  -webkit-text-fill-color: var(--marnamic-mint, #a1c0c3) !important;
  background-color: var(--marnamic-action-secondary) !important;
  border-color: var(--marnamic-action-secondary-border) !important;
}

body.wp-child-theme-marnamic .marnamic-card :is(
  .hp-vendor__action,
  .hp-listing__action,
  .hp-vendor__actions .hp-link,
  .hp-listing__actions .hp-link
):is(:hover, :focus-visible, :active, [aria-pressed="true"], [data-state="active"], .is-active, .active),
body.wp-child-theme-marnamic:is(
  .hp-template--vendor-view-page,
  .hp-template--listing-view-page
) .hp-page__sidebar :is(
  .hp-social-links__item,
  .marnamic-vendor-contact__action
):is(
  :hover,
  :focus-visible,
  :active,
  [aria-pressed="true"],
  [data-state="active"],
  .is-active
) {
  color: var(--marnamic-action-selected-text) !important;
  -webkit-text-fill-color: var(--marnamic-action-selected-text) !important;
  background-color: var(--marnamic-action-selected) !important;
  border-color: var(--marnamic-action-selected) !important;
}

/* Destructive or cautionary actions are explicit and never reuse lime. */
html body.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic :is(
  .button--danger,
  .hp-button--danger,
  .marnamic-action--danger,
  .hp-listing__action--report,
  .hp-vendor__action--report,
  .hp-message__action--delete,
  .hp-listing__action--delete,
  .hp-vendor__action--delete
) {
  color: var(--marnamic-action-danger) !important;
  -webkit-text-fill-color: var(--marnamic-action-danger) !important;
  background-color: transparent !important;
  border-color: rgba(255, 123, 123, 0.52) !important;
}

html body.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic :is(
  .button--danger,
  .hp-button--danger,
  .marnamic-action--danger,
  .hp-listing__action--report,
  .hp-vendor__action--report,
  .hp-message__action--delete,
  .hp-listing__action--delete,
  .hp-vendor__action--delete
):is(:hover, :focus-visible) {
  color: var(--marnamic-dark, #132124) !important;
  -webkit-text-fill-color: var(--marnamic-dark, #132124) !important;
  background-color: var(--marnamic-action-danger) !important;
  border-color: var(--marnamic-action-danger) !important;
}

/* Cookie consent: accept is primary, reject secondary and configure tertiary. */
body.wp-child-theme-marnamic #cr-banner :is(
  .cr-btn-reject
) {
  color: var(--marnamic-action-secondary-text) !important;
  -webkit-text-fill-color: var(--marnamic-action-secondary-text) !important;
  background: var(--marnamic-action-secondary) !important;
  border-color: var(--marnamic-action-secondary-border) !important;
}

body.wp-child-theme-marnamic #cr-banner :is(
  .cr-btn-reject
):is(:hover, :focus-visible) {
  color: var(--marnamic-action-secondary-text) !important;
  -webkit-text-fill-color: var(--marnamic-action-secondary-text) !important;
  background: var(--marnamic-action-secondary-hover) !important;
  border-color: var(--marnamic-action-secondary-border-hover) !important;
}

body.wp-child-theme-marnamic #cr-banner :is(
  .cr-btn-config,
  .cr-btn-configure
) {
  color: var(--marnamic-action-secondary-text) !important;
  -webkit-text-fill-color: var(--marnamic-action-secondary-text) !important;
  background: transparent !important;
  border-color: var(--marnamic-action-secondary-border) !important;
}

body.wp-child-theme-marnamic #cr-banner :is(
  .cr-btn-config,
  .cr-btn-configure
):is(:hover, :focus-visible) {
  color: var(--marnamic-action-secondary-text) !important;
  -webkit-text-fill-color: var(--marnamic-action-secondary-text) !important;
  background: rgba(32, 51, 55, 0.62) !important;
  border-color: var(--marnamic-action-secondary-border-hover) !important;
}

body.wp-child-theme-marnamic #cr-banner .cr-btn-accept,
body.wp-child-theme-marnamic #cr-modal-accept-all {
  color: var(--marnamic-action-primary-text) !important;
  -webkit-text-fill-color: var(--marnamic-action-primary-text) !important;
  background: var(--marnamic-action-primary) !important;
  border-color: var(--marnamic-action-primary) !important;
}

body.wp-child-theme-marnamic #cr-banner .cr-btn-accept:is(:hover, :focus-visible),
body.wp-child-theme-marnamic #cr-modal-accept-all:is(:hover, :focus-visible) {
  color: var(--marnamic-action-primary-text) !important;
  -webkit-text-fill-color: var(--marnamic-action-primary-text) !important;
  background: var(--marnamic-action-primary-hover) !important;
  border-color: var(--marnamic-action-primary-hover) !important;
}

/* The floating help launcher is persistent utility UI, not a conversion. */
html body.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic .mn-support__launcher {
  color: var(--marnamic-action-secondary-text) !important;
  -webkit-text-fill-color: var(--marnamic-action-secondary-text) !important;
  background: var(--marnamic-action-secondary) !important;
  border-color: var(--marnamic-action-secondary-border) !important;
}

html body.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic .mn-support__launcher:is(:hover, :focus-visible) {
  color: var(--marnamic-action-primary-text) !important;
  -webkit-text-fill-color: var(--marnamic-action-primary-text) !important;
  background: var(--marnamic-action-primary) !important;
  border-color: var(--marnamic-action-primary) !important;
}

/*
 * Accent/conversion actions. These selectors deliberately come after every
 * state family so a Matching CTA cannot be demoted by a generic active rule.
 */
html body.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic :is(
  .marnamic-action--accent,
  .button--accent,
  .marnamic-card__matching-cta,
  .marnamic-vendor-matching-cta
),
html body.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic .marnamic-request-matching__form.marnamic-request-matching__form .hp-form__button,
html body.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-membership-plan--primary.hp-membership-plan--primary .hp-membership-plan__select-button {
  color: var(--marnamic-action-accent-text) !important;
  -webkit-text-fill-color: var(--marnamic-action-accent-text) !important;
  background-color: var(--marnamic-action-accent) !important;
  border-color: var(--marnamic-action-accent) !important;
}

html body.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic :is(
  .marnamic-action--accent,
  .button--accent,
  .marnamic-card__matching-cta,
  .marnamic-vendor-matching-cta
):is(:hover, :focus-visible, :active),
html body.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic .marnamic-request-matching__form.marnamic-request-matching__form .hp-form__button:is(:hover, :focus-visible, :active),
html body.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-membership-plan--primary.hp-membership-plan--primary .hp-membership-plan__select-button:is(:hover, :focus-visible, :active) {
  color: var(--marnamic-action-accent-text) !important;
  -webkit-text-fill-color: var(--marnamic-action-accent-text) !important;
  background-color: var(--marnamic-action-accent-hover) !important;
  border-color: var(--marnamic-action-accent-hover) !important;
}

/*
 * Template-level contract
 *
 * These selectors cover actions whose markup is supplied by page content or
 * a legacy component and therefore cannot carry the semantic helper class.
 * They intentionally sit behind the generic families in this final layer.
 */

/* Equivalent conversion actions use lime in both dark landing-page heroes.
 * Light surfaces redefine the same accent variables to teal further below. */
html body.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic :is(
  .mn-home-hero .mn-home-button--primary,
  .mn-info .mn-hero .mn-btn--primary
) {
  color: var(--marnamic-action-accent-text) !important;
  -webkit-text-fill-color: var(--marnamic-action-accent-text) !important;
  background-color: var(--marnamic-action-accent) !important;
  border-color: var(--marnamic-action-accent) !important;
}

html body.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic :is(
  .mn-home-hero .mn-home-button--primary,
  .mn-info .mn-hero .mn-btn--primary
):is(:hover, :focus-visible, :active) {
  color: var(--marnamic-action-accent-text) !important;
  -webkit-text-fill-color: var(--marnamic-action-accent-text) !important;
  background-color: var(--marnamic-action-accent-hover) !important;
  border-color: var(--marnamic-action-accent-hover) !important;
}

/* A card conversion must win over the generic card CTA selector above. */
html body.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic
  .marnamic-card__cta.marnamic-card__matching-cta.marnamic-action--accent {
  color: var(--marnamic-action-accent-text) !important;
  -webkit-text-fill-color: var(--marnamic-action-accent-text) !important;
  background-color: var(--marnamic-action-accent) !important;
  border-color: var(--marnamic-action-accent) !important;
}

html body.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic
  .marnamic-card__cta.marnamic-card__matching-cta.marnamic-action--accent:is(:hover, :focus-visible, :active) {
  color: var(--marnamic-action-accent-text) !important;
  -webkit-text-fill-color: var(--marnamic-action-accent-text) !important;
  background-color: var(--marnamic-action-accent-hover) !important;
  border-color: var(--marnamic-action-accent-hover) !important;
}

/* Repeated icon utilities are mint at rest and teal when used or selected. */
html body.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic
  .marnamic-card.marnamic-card :is(
    .hp-vendor__action--message,
    .hp-vendor__action--favorite,
    .hp-listing__action--message,
    .hp-listing__action--favorite,
    .hp-vendor__actions .hp-link,
    .hp-listing__actions .hp-link
  ) {
  color: var(--marnamic-mint, #a1c0c3) !important;
  -webkit-text-fill-color: var(--marnamic-mint, #a1c0c3) !important;
  background-color: var(--marnamic-action-secondary) !important;
  border-color: var(--marnamic-action-secondary-border) !important;
}

html body.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic
  .marnamic-card.marnamic-card :is(
    .hp-vendor__action--message,
    .hp-vendor__action--favorite,
    .hp-listing__action--message,
    .hp-listing__action--favorite,
    .hp-vendor__actions .hp-link,
    .hp-listing__actions .hp-link
  ):is(:hover, :focus-visible, :active, [aria-pressed="true"], [data-state="active"], .is-active, .active) {
  color: var(--marnamic-action-selected-text) !important;
  -webkit-text-fill-color: var(--marnamic-action-selected-text) !important;
  background-color: var(--marnamic-action-selected) !important;
  border-color: var(--marnamic-action-selected) !important;
}

/* Current navigation and tab state uses teal, never the conversion accent. */
html body.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-page__topbar .hp-menu--tabbed :is(.current-menu-item, .hp-menu__item--current) > a {
  color: var(--marnamic-action-selected-text) !important;
  -webkit-text-fill-color: var(--marnamic-action-selected-text) !important;
  background-color: var(--marnamic-action-selected) !important;
  border-color: var(--marnamic-action-selected) !important;
}

/* Content-authored hero companions remain visually subordinate. */
html body.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic
  .mn-home-button.mn-home-button--secondary {
  color: var(--marnamic-action-outline-text) !important;
  -webkit-text-fill-color: var(--marnamic-action-outline-text) !important;
  background-color: var(--marnamic-action-outline) !important;
  border-color: var(--marnamic-action-outline-border) !important;
}

html body.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic
  .mn-home-button.mn-home-button--secondary:is(:hover, :focus-visible) {
  color: var(--marnamic-action-outline-hover-text) !important;
  -webkit-text-fill-color: var(--marnamic-action-outline-hover-text) !important;
  background-color: var(--marnamic-action-outline-hover) !important;
  border-color: var(--marnamic-action-outline-border-hover) !important;
}

html body.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic :is(
  .mn-lex-btn--ghost,
  .mn-btn--ghost
) {
  color: var(--marnamic-action-outline-text) !important;
  -webkit-text-fill-color: var(--marnamic-action-outline-text) !important;
  background-color: var(--marnamic-action-outline) !important;
  border-color: var(--marnamic-action-outline-border) !important;
}

html body.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic :is(
  .mn-lex-btn--ghost,
  .mn-btn--ghost
):is(:hover, :focus-visible) {
  color: var(--marnamic-action-outline-hover-text) !important;
  -webkit-text-fill-color: var(--marnamic-action-outline-hover-text) !important;
  background-color: var(--marnamic-action-outline-hover) !important;
  border-color: var(--marnamic-action-outline-border-hover) !important;
}

/* Blog navigation is neutral; the repeated content action is a primary task. */
html body.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic
  .post--archive .post__categories a {
  color: var(--marnamic-text-muted, rgba(241, 233, 221, 0.72)) !important;
  -webkit-text-fill-color: var(--marnamic-text-muted, rgba(241, 233, 221, 0.72)) !important;
  background-color: rgba(161, 192, 195, 0.12) !important;
  border-color: rgba(161, 192, 195, 0.24) !important;
}

html body.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic
  .post--archive .post__categories a:is(:hover, :focus-visible) {
  color: var(--marnamic-action-selected-text) !important;
  -webkit-text-fill-color: var(--marnamic-action-selected-text) !important;
  background-color: var(--marnamic-action-selected) !important;
  border-color: var(--marnamic-action-selected) !important;
}

html body.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic
  .post--archive .post__readmore {
  color: var(--marnamic-action-primary-text) !important;
  -webkit-text-fill-color: var(--marnamic-action-primary-text) !important;
  background-color: var(--marnamic-action-primary) !important;
  border-color: var(--marnamic-action-primary) !important;
}

html body.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic
  .post--archive .post__readmore:is(:hover, :focus-visible) {
  color: var(--marnamic-action-primary-text) !important;
  -webkit-text-fill-color: var(--marnamic-action-primary-text) !important;
  background-color: var(--marnamic-action-primary-hover) !important;
  border-color: var(--marnamic-action-primary-hover) !important;
}

/* Icons and labels inherit their control; the filter counter has its own
 * contrasting surface and foreground, defined by the archive workspace. */
html body.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic :is(
  .button,
  .hp-button,
  .hp-form__button,
  .hp-field__button,
  .wp-element-button,
  .wp-block-button__link,
  .marnamic-button,
  .marnamic-card__cta,
  .hp-listing__action,
  .hp-vendor__action
) :is(i, i::before, .hp-icon, .hp-icon::before, span, svg, svg *):not(.marnamic-archive-filter-count) {
  color: currentColor !important;
  fill: currentColor !important;
  stroke: currentColor !important;
  -webkit-text-fill-color: currentColor !important;
}

/* Focus is a temporary accessibility signal. The yellow ring belongs to dark
 * surfaces; light search and filter surfaces use the platform teal instead. */
html body.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic :is(
  a,
  button,
  input,
  select,
  textarea,
  [role="button"]
):focus-visible {
  outline: 2px solid var(--marnamic-action-focus) !important;
  outline-offset: 3px !important;
}

/* Search controls sit on cream/light surfaces. Never draw the global lime
 * focus rectangle on the text input itself; the rounded field owner carries
 * a teal focus state instead. Keep the same specificity fence as the global
 * rule so this exception also wins over legacy !important declarations. */
html body.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic
  .hp-form--vendor-search.marnamic-air-search
  :is(input[type="text"], input[type="search"], select, textarea):is(:focus, :focus-visible) {
  outline: 0 !important;
  outline-offset: 0 !important;
}

/* Select2's inline search is part of a multi-select, not a second control.
 * Keep the focus ring on the selection shell instead of drawing a lime box
 * around the caret between selected chips. */
html body.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic
  .select2-container--default .select2-selection--multiple
  .select2-search--inline .select2-search__field:is(:focus, :focus-visible) {
  outline: 0 !important;
  outline-offset: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

@media (min-width: 981px) {
  html body.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic
    .hp-form--vendor-search.marnamic-air-search
    .hp-form__field:is(.is-open, :focus-within)::after {
    box-shadow:
      0 0 0 3px var(--marnamic-action-focus-light),
      0 4px 14px rgba(19, 33, 36, 0.18) !important;
  }
}

@media (max-width: 980px) {
  html body.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic
    .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open
    .marnamic-air-mobile-card
    :is(a, button, input, select, textarea, [role="button"]):focus-visible {
    outline: 3px solid rgba(97, 165, 172, 0.48) !important;
    outline-offset: 2px !important;
  }

  /* The mobile vendor search is one modal interaction surface. Lock both
   * document scroll roots, hide persistent utilities and keep one scrolling
   * owner (.hp-form__fields) for the complete WAS content. */
  html.marnamic-air-search-mobile-open,
  html.marnamic-air-search-mobile-open body.wp-child-theme-marnamic {
    overflow: hidden !important;
    overscroll-behavior: none !important;
  }

  html.marnamic-air-search-mobile-open body.wp-child-theme-marnamic .mn-support {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  html body.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic
    .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open
    .marnamic-air-search__filter-actions {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  html body.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic
    .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open
    .marnamic-air-search__popover--roles {
    grid-template-rows: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  html body.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic
    .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open
    :is(.marnamic-hybrid-search__body, .marnamic-hybrid-search > .marnamic-role-groups) {
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    overscroll-behavior: auto !important;
  }

  /* Light form surfaces use teal. The input itself has no rectangular ring;
   * the rounded location control owns the visible focus state. */
  html body.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic
    .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open
    .marnamic-mobile-location__source
    > input[name="location"]:is(:focus, :focus-visible) {
    border: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
    outline-offset: 0 !important;
  }

  html body.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic
    .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open
    .marnamic-mobile-location__control:focus-within {
    border-color: rgba(97, 165, 172, 0.88) !important;
    box-shadow: 0 0 0 3px rgba(97, 165, 172, 0.28) !important;
    outline: 0 !important;
  }

  html body.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic
    .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open
    input.marnamic-hybrid-search__input[type="search"]:is(:focus, :focus-visible) {
    border-color: #61a5ac !important;
    box-shadow: 0 0 0 3px rgba(97, 165, 172, 0.24) !important;
    outline: 0 !important;
  }
}

body.wp-child-theme-marnamic .marnamic-role-option.is-disabled {
  opacity: 0.48 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

body.wp-child-theme-marnamic.marnamic-archive-empty-results .marnamic-archive-map-shell,
body.wp-child-theme-marnamic.marnamic-archive-empty-results .marnamic-archive-map-toggle {
  display: none !important;
}

@media (min-width: 981px) {
  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results.marnamic-archive-empty-results
    .hp-page__header
    > :is(.marnamic-archive-filter-button--vendor, .hp-button--vendor-filter) {
    position: absolute !important;
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

body.wp-child-theme-marnamic .hp-no-results .marnamic-archive-empty-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  justify-content: flex-start !important;
  margin-top: 24px !important;
}

body.wp-child-theme-marnamic .hp-no-results .marnamic-archive-empty-actions .button {
  min-height: 48px !important;
  padding: 0 22px !important;
}

body.wp-child-theme-marnamic .hp-no-results .marnamic-archive-empty-unfiltered {
  display: inline-flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  max-width: min(100%, 420px) !important;
  margin-top: 18px !important;
  padding: 16px 18px !important;
  color: #d7e8dc !important;
  text-decoration: none !important;
  background: rgba(215, 232, 220, 0.06) !important;
  border: 1px solid rgba(215, 232, 220, 0.2) !important;
  border-radius: 8px !important;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease !important;
}

body.wp-child-theme-marnamic .hp-no-results .marnamic-archive-empty-unfiltered:is(:hover, :focus-visible) {
  color: #d7e8dc !important;
  background: rgba(215, 232, 220, 0.1) !important;
  border-color: rgba(207, 246, 118, 0.72) !important;
  outline: 0 !important;
  transform: translateY(-1px) !important;
}

body.wp-child-theme-marnamic .hp-no-results .marnamic-archive-empty-unfiltered__title {
  color: #cff676 !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
}

body.wp-child-theme-marnamic .hp-no-results .marnamic-archive-empty-unfiltered__meta {
  color: rgba(215, 232, 220, 0.78) !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
}

@media (max-width: 640px) {
  body.wp-child-theme-marnamic .hp-no-results .marnamic-archive-empty-actions {
    width: 100% !important;
  }

  body.wp-child-theme-marnamic .hp-no-results .marnamic-archive-empty-actions .button {
    flex: 1 1 100% !important;
    justify-content: center !important;
    width: 100% !important;
  }

  body.wp-child-theme-marnamic .hp-no-results .marnamic-archive-empty-unfiltered {
    width: 100% !important;
  }
}

body.wp-child-theme-marnamic.marnamic-archive-search-loading::before {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  left: 0 !important;
  z-index: 2147483000 !important;
  height: 4px !important;
  background: linear-gradient(90deg, #61a5ac 0 35%, #a1c0c3 50%, #61a5ac 65% 100%) !important;
  background-size: 200% 100% !important;
  content: "" !important;
  animation: marnamic-search-progress 900ms linear infinite !important;
}

@keyframes marnamic-search-progress {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

/* Light surfaces never pair a cream panel with the lime conversion fill.
 * Primary and accent actions use teal there while dark surfaces retain the
 * normal hierarchy above. Keep this after component-specific contracts. */
html body.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic
  .marnamic-surface--light :is(
    .button--primary,
    .button-primary,
    .hp-button--primary,
    .marnamic-button--primary,
    .marnamic-action--primary,
    .marnamic-action--accent,
    .button--accent,
    .mn-home-button--primary,
    .mn-btn--primary,
    .mn-lex-btn--primary
  ) {
  color: var(--marnamic-action-primary-text, var(--marnamic-dark, #132124)) !important;
  -webkit-text-fill-color: var(--marnamic-action-primary-text, var(--marnamic-dark, #132124)) !important;
  background-color: var(--marnamic-action-primary, var(--marnamic-teal, #61a5ac)) !important;
  border-color: var(--marnamic-action-primary, var(--marnamic-teal, #61a5ac)) !important;
}

html body.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic
  .marnamic-surface--light :is(
    .button--primary,
    .button-primary,
    .hp-button--primary,
    .marnamic-button--primary,
    .marnamic-action--primary,
    .marnamic-action--accent,
    .button--accent,
    .mn-home-button--primary,
    .mn-btn--primary,
    .mn-lex-btn--primary
  ):is(:hover, :focus-visible, :active) {
  color: var(--marnamic-action-primary-text, var(--marnamic-dark, #132124)) !important;
  -webkit-text-fill-color: var(--marnamic-action-primary-text, var(--marnamic-dark, #132124)) !important;
  background-color: var(--marnamic-action-primary-hover, #78b8be) !important;
  border-color: var(--marnamic-action-primary-hover, #78b8be) !important;
}

/* Disabled wins except for the explicit search-progress treatment below. */
html body.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic :is(
  .button,
  .hp-button,
  .hp-form__button,
  .hp-field__button,
  .wp-element-button,
  .wp-block-button__link,
  .marnamic-button,
  .marnamic-card__cta,
  .hp-membership-plan__select-button,
  button,
  input[type="submit"]
):is(
  :disabled,
  [disabled],
  [aria-disabled="true"],
  [data-disabled="true"],
  .disabled,
  .is-disabled,
  .hp-state--disabled,
  .hp-button--disabled,
  .button--disabled
) {
  color: var(--marnamic-control-muted, rgba(241, 233, 221, 0.58)) !important;
  -webkit-text-fill-color: var(--marnamic-control-muted, rgba(241, 233, 221, 0.58)) !important;
  background: var(--marnamic-action-disabled) !important;
  border-color: rgba(161, 192, 195, 0.24) !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  opacity: 1 !important;
  pointer-events: none !important;
}

/* Shared multi-select tiles: selection is persistent; hover is mouse-only.
 * Native checkbox activation intentionally remains responsible for touch so
 * a scrolling gesture never selects on touchstart/pointerdown. */
body.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic :is(
  .marnamic-filter-lifecycle__choice, .marnamic-filter-lifecycle__cross,
  .marnamic-filter-hoai__choice, .marnamic-filter-building-choices label,
  .marnamic-filter-volume-choices label, .marnamic-profile-icon-choices label
) {
  background: #0f1c1e !important;
  border-color: rgba(161, 192, 195, 0.48) !important;
  box-shadow: none !important;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic :is(
  .marnamic-filter-lifecycle__choice, .marnamic-filter-lifecycle__cross,
  .marnamic-filter-hoai__choice, .marnamic-filter-building-choices label,
  .marnamic-filter-volume-choices label, .marnamic-profile-icon-choices label
):has(input:checked) {
  background: #315b60 !important;
  border-color: #8cc6cb !important;
  box-shadow: inset 3px 0 0 #e7fd87 !important;
}

@media (hover: hover) and (pointer: fine) {
  body.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic :is(
    .marnamic-filter-lifecycle__choice, .marnamic-filter-lifecycle__cross,
    .marnamic-filter-hoai__choice, .marnamic-filter-building-choices label,
    .marnamic-filter-volume-choices label, .marnamic-profile-icon-choices label
  ):hover:not(:has(input:checked)) {
    background: #20383c !important;
    border-color: #61a5ac !important;
  }
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic :is(
  .marnamic-filter-lifecycle__choice, .marnamic-filter-lifecycle__cross,
  .marnamic-filter-hoai__choice, .marnamic-filter-building-choices label,
  .marnamic-filter-volume-choices label, .marnamic-profile-icon-choices label
):active {
  border-color: #e7fd87 !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic :is(
  .marnamic-filter-lifecycle__choice, .marnamic-filter-lifecycle__cross,
  .marnamic-filter-hoai__choice, .marnamic-filter-building-choices label,
  .marnamic-filter-volume-choices label, .marnamic-profile-icon-choices label
):has(input:focus-visible) {
  outline: 2px solid #8cc6cb !important;
  outline-offset: 3px !important;
}

/* Project-size choices use a bottom selection edge, matching their row layout. */
body.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic
  :is(.marnamic-filter-volume-choices label, .marnamic-profile-icon-choices--volume label):has(input:checked) {
  box-shadow: inset 0 -3px 0 #e7fd87 !important;
}

/* HivePress disables the submit button while navigating. Keep its footprint
 * and action surface; a busy button is not an unavailable search action. */
html body.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic.wp-child-theme-marnamic
  .hp-form--vendor-search.marnamic-air-search button.hp-form__button:is([data-state="loading"], [aria-busy="true"]) {
  position: relative !important;
  visibility: visible !important;
  opacity: 1 !important;
  background: var(--marnamic-action-primary, #61a5ac) !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  cursor: progress !important;
}

body.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search
  button.hp-form__button:is([data-state="loading"], [aria-busy="true"])::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  margin: auto !important;
  width: 24px !important;
  height: 24px !important;
  box-sizing: border-box !important;
  border: 3px solid rgba(19, 33, 36, 0.25) !important;
  border-top-color: #132124 !important;
  border-radius: 50% !important;
  background: none !important;
  animation: marnamic-search-submit-spin 0.8s linear infinite !important;
}

@keyframes marnamic-search-submit-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  body.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search
    button.hp-form__button:is([data-state="loading"], [aria-busy="true"])::after {
    animation: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.wp-child-theme-marnamic :is(
    .button,
    .hp-button,
    .hp-form__button,
    .marnamic-button,
    .marnamic-card__cta,
    .hp-listing__action,
    .hp-vendor__action
  ) {
    transition-duration: 0.01ms !important;
  }
}
