/**
 *	MIXIN: RANGE
 *
 *	@version 1.1
 *	@date    2026-03-11
 *	@author  michael@mdg.agency
 *
 *	This SASS mixin creates a media query for one or more predefined ranges of
 *	screen widths. It requires a map of named ranges with min and/or max values (in
 *	pixels). Example:
 *
 *		$ranges: (
 *			small:   (max: 500),
 *			medium:  (min: 501, max: 768),
 *			large:   (min: 769)
 *		);
 *
 *	Bootstrap ranges are created by default, but may be overwritten in your
 *	stylesheet after this file is included. It was designed to be used on documents
 *	with at least one finite range (with both min and max), but should work equally
 *	well with a mobile-first design.
 *
 *	Use examples:
 *
 *		@include range.query(small) { ... }
 *
 *		@include range.query(small, medium) { ... }
 *
 *		@include range.query(medium, large) { ... }
 *
 *		@include range.query(alpha, bravo, charlie) { ... }
 *
 *	Argument order does not matter. The ranges are merged inclusively, meaning each
 *	included range can only expand the total scope of the final media query, not
 *	contract it. This means that if ANY included range has a "null" max or min, the
 *	final media query will not have a max-width or min-width constraint,
 *	respectively. It also means that if there are gaps between the included ranges,
 *	they will be ignored, since both min and max will have been provided.
 *
 *	A more sophisticated version of this mixin would detect gaps in the included
 *	ranges and output multiple media queries.

*/
.searchform .searchform-submit {
  border-radius: 999px;
  background-color: var(--wp--context--button-base-color);
  color: var(--wp--context--button-text-color);
}
.searchform .searchform-submit:hover {
  background-color: var(--wp--context--button-hover-color);
  color: var(--wp--context--button-text-color);
}
.searchform .searchform-submit {
  font-family: inherit;
  font-size: 1em;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  padding-block: 0.75em;
  padding-inline: 2em;
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: none;
  outline: none;
  cursor: pointer;
}
@media screen and (min-width: 768px) {
  .searchform .searchform-submit {
    transform: scale(1);
  }
  .searchform .searchform-submit:hover {
    transform: scale(1.05);
  }
  .searchform .searchform-submit {
    transition: transform 0.2s;
  }
}
.is-style-outline .searchform .searchform-submit, .searchform .is-style-outline .searchform-submit {
  border: 2px solid currentColor;
  background-color: transparent;
  --wp--context--button-text-color: var(--wp--context--foreground-color);
  --wp--context--button-hover-color: var(--wp--context--foreground-color);
  --wp--context--button-base-color: var(--wp--context--foreground-color);
}

.search-modal-inner {
  max-width: var(--wp--style--global--content-size);
  margin-left: auto;
  margin-right: auto;
  padding-block: calc(2 * var(--wp--context--gap));
  padding-inline: var(--wp--context--gap);
  container-type: inline-size;
}

.searchform {
  display: flex;
  align-items: stretch;
  width: 100%;
}
.searchform .searchform-input-container {
  --wp--context--background-color: var(--wp--custom--context--default--background-color);
  --wp--context--foreground-color: var(--wp--custom--context--default--foreground-color);
  --wp--context--muted-color: color-mix( in srgb, var(--wp--context--foreground-color), var(--wp--context--background-color) 33% );
  --wp--context--faint-color: color-mix( in srgb, var(--wp--context--foreground-color), var(--wp--context--background-color) 80% );
  --wp--context--heading-text-color: var(--wp--custom--context--default--heading-text-color);
  --wp--context--link-text-color: var(--wp--custom--context--default--link-text-color);
  --wp--context--link-hover-color: var(--wp--custom--context--default--link-hover-color);
  --wp--context--link-text-decoration: var(--wp--custom--context--default--link-text-decoration);
  --wp--context--button-base-color: var(--wp--custom--context--default--button-base-color);
  --wp--context--button-hover-color: var(--wp--custom--context--default--button-hover-color);
  --wp--context--button-text-color: var(--wp--custom--context--default--button-text-color);
  --wp--context--button-hover-text-color: var(--wp--custom--context--default--button-hover-text-color);
  --wp--context--input-background-color: var(--wp--custom--context--default--input-background-color);
  --wp--context--input-foreground-color: var(--wp--custom--context--default--input-foreground-color);
  --wp--context--input-border-color: var(--wp--custom--context--default--input-border-color);
  background-color: var(--wp--context--background-color);
  color: var(--wp--context--foreground-color);
  flex: 1;
  position: relative;
  padding: 0.5em;
  border-radius: var(--wp--custom--spacing--corner);
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  display: flex;
  align-items: stretch;
}
.search-inline .searchform .searchform-input-container {
  border: 1px solid var(--wp--custom--color--primary);
}
.searchform .searchform-input {
  width: 100%;
  border: none;
  outline: none;
  padding: 0.5em;
  background: transparent;
  font-size: var(--wp--preset--font-size--70);
}
.search-inline .searchform .searchform-input {
  font-size: var(--wp--preset--font-size--50);
}
.searchform .searchform-submit-container {
  background-color: var(--wp--custom--color--green);
  color: var(--wp--custom--color--base);
  border-radius: var(--wp--custom--spacing--corner);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  display: flex;
  align-items: stretch;
}
.searchform .searchform-submit {
  --wp--context--link-inner-color: var(--wp--custom--color--base);
  font-size: var(--wp--preset--font-size--60);
}
.search-inline .searchform .searchform-submit {
  font-size: var(--wp--preset--font-size--50);
}
.searchform .searchform-submit {
  padding: 0.5em 1em;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-modal-veil {
  position: fixed;
  z-index: var(--wp--custom--z--modal-veil);
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--wp--custom--color--contrast);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
body.search-open .search-modal-veil {
  opacity: 0.75;
  pointer-events: all;
  cursor: pointer;
}

.search-modal {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  right: 0;
  z-index: var(--wp--custom--z--modal);
  padding: var(--wp--context--gap);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
body.search-open .search-modal {
  opacity: 1;
  pointer-events: all;
}

.search-modal-inner {
  position: relative;
  box-shadow: var(--wp--preset--shadow--light);
  padding: 0;
}

.search-inline {
  max-width: 40em;
  margin-left: auto;
  margin-right: auto;
}

.editor-styles-wrapper .search-inline {
  margin-block-start: var(--wp--context--gap);
}