/*
 * mcmc-search — the DIRECTORY-CONTROL half of `custom_css` post 362, moved out of the
 * Customizer's Additional CSS field on 8 Sept 2026 (owner directive, same day) and
 * reproduced here VERBATIM: same declarations, same order, no class renamed.
 *
 * ⛔ THIS FILE IS A SEPARATE STYLESHEET FROM `mcmc-search.css` AND THAT IS A CASCADE
 * REQUIREMENT, NOT A FILING PREFERENCE. Measured in the rendered <head> of
 * /find-your-cause/ before the move: `mcmc-search-css` is stylesheet **4 of 27** and
 * `wp-custom-css` — post 362 — is **27 of 27**, dead last, after `elementor-frontend`
 * (8) and after every `elementor-post-*` (9, 21, 22, 23). Appending these rules to
 * `mcmc-search.css` would have moved them 23 places EARLIER and put Elementor's whole
 * frontend and per-post CSS on top of them. So this file is enqueued on its own at
 * `wp_enqueue_scripts` priority 999, which is what puts it back after Elementor.
 *
 * ⛔ WHAT IS NOT HERE, AND THE ABSENCE IS MEASURED RATHER THAN EDITORIAL. Thirteen of
 * post 362's 37 selectors match ZERO elements and were dropped; the other nine of the
 * thirteen that belong to this half are named in `docs/css-cutover.md` with their
 * counts. Two censuses agree entry for entry — MCMC-BUILD-C's over HOME and the
 * directory (FacetWP still driving, 7 Sept) and this seat's over five pages at two
 * widths (8 Sept) — and a selector was dropped only where BOTH read zero.
 *
 * ⚠ ONE OF THE THIRTEEN IS DEAD FOR A DIFFERENT REASON AND IS WORTH THE LINE:
 * `.mcmc-facet-btn .facetwp-dropdown:` — a trailing colon where `:hover` was meant.
 * It is not "a rule that matches nothing", it is a rule the CSS parser DISCARDS, and
 * it has therefore never applied since the day it was typed.
 *
 * ⚠ AND ONE IS A STATE CLASS, WHICH A PAGE-LOAD CENSUS IS STRUCTURALLY BLIND TO.
 * `.mcmc-results.is-visible` was kept under review rather than dropped on the count
 * alone, because a class added by script matches zero at load and everything at the
 * moment that matters — the trap `mcmc-search.css` names for `.fcomplete-result`.
 * It was dropped only after THREE routes agreed nothing anywhere adds it:
 * `mcmc-search.js`'s own note, `src/Query/LoopGrid.php`'s, and a host scan finding
 * `is-visible` in no theme, plugin or `_elementor_data` row on staging.
 * Its partner `.mcmc-results { display: none !important }` matches one element on
 * HOME and IS KEPT, so that block stays hidden exactly as it is today.
 */

/*
 * ⛔⛔ RESTATED, SEAT REFACTOR-R7 — THE CLEAR BUTTON'S OWN CUSTOM CSS, WHICH LIVED IN FOUR GENERATED
 * STYLESHEETS UNDER A CLASS THIS UNIT RENAMES. Elementor wrote the `mcmc-reset` widget's custom CSS
 * into the per-document sheets — `post-40.css` twice (6d63057, 7e8a2e3), `post-1292.css` once
 * (a5165d0), and `pro-derived-40.css` / `pro-derived-1292.css` the same — as three rules keyed on
 * `.mcmc-reset .facetwp-reset`, with bodies BYTE-IDENTICAL once the element-id comment is set aside
 * (measured). The button is `.mc-facet__reset` now, so they match nothing; the generated files are not
 * edited and the three rules are restated here once.
 * ⛔ AT THE TOP OF THIS FILE AND NOT THE BOTTOM, AND THE POSITION IS THE POINT. Those sheets come BEFORE
 * this one (head 17/18 on HOME, 15/16 on the directory) and post 362's own `.mcmc-reset` rules below
 * override them where they collide. Restating them here, above post 362's, keeps that order; appending
 * them would have let the generated block win over post 362 on every property both state.
 */
.mcmc-reset .mc-facet__reset {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 230px;
  max-width: 100%;
  height: 40px; /* matches typical SEARCH button height */
  padding: 0 15px;
  background: #ffffff;
  color: #000000;
  font-family: "AllProDisplay", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 24px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  box-shadow: none;
}

.mcmc-reset .mc-facet__reset:hover {
  background: #111;
  color: #fff;
}

@media (min-width: 778px) {
  .mcmc-reset .mc-facet__reset {
    margin: 0 !important;
    display: flex !important;
    justify-content: center !important; /* centers text inside */
    align-items: center !important;
    text-align: center !important;       /* centers text horizontally */
  }
}

/* MCMC Filters & Search — Flexible Version */

/* Dropdowns (Filters) */

.mc-facet-btn {
  display: flex;
  width: 100%; 
  justify-content: left;   
}

.mc-facet-btn .mc-facet__select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;              
  max-width: 100%;
  height: 45px;
  padding: 0 55px 0 22px;
  border: 2px solid #D5D2CD;
  border-radius: 0px;
  background: #F2F1EE;
  color: #000;
  font-family: "AllProDisplay", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 45px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .15s, border-color .15s, box-shadow .15s;
  box-shadow: none;

  background-image: url("data:image/svg+xml,%3Csvg width='18' height='12' viewBox='0 0 18 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.5 3l7.5 6 7.5-6' stroke='%23111' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px 12px;
}

.mc-facet-btn .mc-facet__select option[value=""] {
  color: #8A8A8A;
}

/* Search Bar */

.mcmc-search input[type="text"] {
  border: 2px solid #CBCBCB;
  background: #F5F3F1;
  border-radius: 0px;
  font-family: "AllProDisplay", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #8A8A8A;
  transition: border-color .18s, background .18s;
}

.mcmc-search input:focus {
  outline: none;
  border-color: #111;
  background: #fff;
}


/* Hide Go buttons by default */
.facetwp-autocomplete-update,
.mcmc-search .facetwp-autocomplete-update {
  display: none !important;
}

/* RESET BUTTON — TEXT ONLY + TIGHT SPACING */
.mcmc-reset {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}

.mcmc-reset .mc-facet__reset {
  display: inline-block !important;
  background: none !important;
  border: none !important;
  color: #000 !important;
  font-family: "AllProDisplay", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.15s ease;
  text-align: center;
  padding: 0 !important;
  margin: 0 !important;
  height: auto !important;
  box-shadow: none !important;
  line-height: 1 !important;
}

.mcmc-reset .mc-facet__reset:hover {
  color: #555 !important;
}

/* Kill default spacing from FacetWP and Elementor around the facet wrapper */
.mc-facet[data-name="reset"],
.elementor-widget .mc-facet[data-name="reset"] {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}


/* Breakpoints */

/* Tablet (up to 1024px) */
@media (max-width: 1024px) {
  .mc-facet-btn,
  .mcmc-search,
	.mcmc-button,
  .mcmc-reset .mc-facet__reset {
    width: 100%;               
  }
}

/* Mobile (600px) */

@media (max-width: 600px) {
 /* Center dropdown containers on mobile */
  .mc-facet-btn {
    justify-content: center !important;
    width: 100% !important;
  }
	
  /* Make all elements same width and centered */
	
  .mc-facet-btn .mc-facet__select,
  .mcmc-search,
  .facetwp-autocomplete-update,
  .mcmc-reset .mc-facet__reset,
	.mcmc-button {
    width: 230px !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    display: block;
    box-sizing: border-box;
  }
}

/* Remove Elementor/FWP default spacing and enforce tight vertical alignment */

.mcmc-search,
.mcmc-search .mc-facet,
.mc-facet-btn,
.mc-facet-btn .mc-facet {
  margin-top: 5px !important;
  margin-bottom: 5px !important;
  padding: 0 !important;
}

/* Hide results initially */
.mcmc-results {
  display: none !important;
  visibility: hidden;
  opacity: 0;
}

/*
 * ⛔⛔ RESTATED, SEAT REFACTOR-R7 — THE GO BUTTON'S KIT GENERIC, WHICH LIVED IN TWO GENERATED
 * STYLESHEETS UNDER A CLASS THIS UNIT RENAMES. `post-40.css` and `post-1292.css` each carry
 * `.elementor-widget-mcmc-go .elementor-button` in three media buckets with identical bodies — the
 * accent background and the accent typography of every GO button's anchor. The GO buttons now carry
 * `mc-go` instead (and `mcmc-search.js` reads it), so those rules match nothing; the two files are the
 * frozen record of what Elementor generated and are not edited, and the three rules are restated
 * here, declaration for declaration, in the same three buckets.
 * ⚠ THIS FILE IS LATER IN THE CASCADE THAN THE TWO IT RESTATES (head 23 against 17 on HOME, 21
 * against 15 on the directory), at the same (0,2,0) specificity. That is only safe if no rule in
 * between states one of these seven properties on the anchor at (0,2,0) or lower, and it is
 * MEASURED rather than argued: every computed property of every node under every `mcmc-*` widget on
 * both pages, at twelve widths, before and after.
 */
.mc-go .elementor-button{background-color:var( --e-global-color-accent );font-family:var( --e-global-typography-accent-font-family ), Sans-serif;font-size:var( --e-global-typography-accent-font-size );font-weight:var( --e-global-typography-accent-font-weight );font-style:var( --e-global-typography-accent-font-style );line-height:var( --e-global-typography-accent-line-height );letter-spacing:var( --e-global-typography-accent-letter-spacing );}
@media(max-width:1024px){.mc-go .elementor-button{font-size:var( --e-global-typography-accent-font-size );line-height:var( --e-global-typography-accent-line-height );letter-spacing:var( --e-global-typography-accent-letter-spacing );}}
@media(max-width:767px){.mc-go .elementor-button{font-size:var( --e-global-typography-accent-font-size );line-height:var( --e-global-typography-accent-line-height );letter-spacing:var( --e-global-typography-accent-letter-spacing );}}
