/**
 *	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.

*/
.header-nav-actions a, .mobile-nav-actions .menu a, .mobile-nav-actions .menu > ul a {
  border-radius: 999px;
  background-color: var(--wp--context--button-base-color);
  color: var(--wp--context--button-text-color);
}
.header-nav-actions a:hover, .mobile-nav-actions .menu a:hover {
  background-color: var(--wp--context--button-hover-color);
  color: var(--wp--context--button-text-color);
}
.header-nav-actions a, .mobile-nav-actions .menu a, .mobile-nav-actions .menu > ul a {
  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) {
  .header-nav-actions a, .mobile-nav-actions .menu a, .mobile-nav-actions .menu > ul a {
    transform: scale(1);
  }
  .header-nav-actions a:hover, .mobile-nav-actions .menu a:hover {
    transform: scale(1.05);
  }
  .header-nav-actions a, .mobile-nav-actions .menu a, .mobile-nav-actions .menu > ul a {
    transition: transform 0.2s;
  }
}
.is-style-outline .header-nav-actions a, .header-nav-actions .is-style-outline a, .is-style-outline .mobile-nav-actions .menu a, .mobile-nav-actions .menu .is-style-outline a {
  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);
}

.header-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;
}

.header-container {
  position: sticky;
  top: 0;
  z-index: var(--wp--custom--z--header-nav);
  box-shadow: var(--wp--preset--shadow--light);
}

.header {
  --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);
  --wp--context--link-text-color: var(--wp--custom--color--contrast);
  --wp--context--link-text-decoration: none;
  display: block;
  width: 100%;
}

.header-inner {
  max-width: var(--wp--style--global--wide-size);
  padding: 1rem;
}

.header-columns {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--wp--context--gap);
}

.header-image a {
  display: block;
}
.header-image img {
  display: block;
  height: 4rem;
  -o-object-fit: contain;
     object-fit: contain;
}

.header-spacer {
  flex: 1;
}
@media screen and (min-width: 981px) {
  .header-spacer {
    display: none;
  }
}

.header-title {
  display: none;
}

@media screen and (max-width: 500px) {
  .header-nav-actions {
    display: none;
  }
}
.header-nav-actions .menu, .header-nav-actions .menu > ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: var(--wp--context--gap);
}
.header-nav-actions a {
  background-color: var(--wp--context--button-base-color);
  position: relative;
  display: inline-block;
  font-size: var(--wp--preset--font-size--40);
}

.header-nav-main {
  --nav-submenu-width: 14rem;
  --nav-hover-background-color-passive: var(--wp--custom--context--primary--background-color);
  flex: 1;
  font-size: var(--wp--preset--font-size--40);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
@media screen and (max-width: 980px) {
  .header-nav-main {
    display: none;
  }
}
.header-nav-main > div,
.header-nav-main .menu,
.header-nav-main .menu > ul {
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1;
  display: flex;
  justify-content: space-around;
}
.header-nav-main .menu-item {
  position: relative;
  padding: 0.5rem 1rem;
}
.header-nav-main a {
  --wp--context--link-text-color: var(--wp--custom--color--blue);
  --wp--context--link-hover-color: var(--wp--custom--color--green);
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
}
.header-nav-main .sub-menu {
  opacity: 0;
  pointer-events: none;
  top: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  position: absolute;
  left: 0;
  min-width: var(--nav-submenu-width);
  z-index: var(--wp--custom--z--header-nav-dropdown);
  background-color: white;
  border-radius: 4px;
  transition: opacity 0.2s, top 0.2s;
  box-shadow: var(--wp--preset--shadow--light);
}
.header-nav-main .menu > .menu-item:last-child > .sub-menu,
.header-nav-main .menu > ul > .menu-item:last-child > .sub-menu {
  left: auto;
  right: 0;
}
.header-nav-main .menu > .menu-item.open > .sub-menu,
.header-nav-main .menu > ul > .menu-item.open > .sub-menu {
  opacity: 1;
  pointer-events: all;
  top: 100%;
}
.header-nav-main .sub-menu a {
  justify-content: flex-start;
  font-weight: 400;
  font-size: smaller;
}

@media screen and (min-width: 981px) {
  .header-controls {
    font-size: var(--wp--preset--font-size--60);
  }
}
@media screen and (max-width: 980px) {
  .header-controls {
    font-size: var(--wp--preset--font-size--80);
  }
}
.header-controls .menu, .header-controls .menu > ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: flex-end;
  gap: 0;
}
.header-controls a {
  padding: 0.5em 0.5em 0.5em;
}

@media screen and (min-width: 981px) {
  .header-menu-button {
    display: none;
  }
}

.mobile-nav {
  --wp--context--background-color: var(--wp--custom--context--neutral--background-color);
  --wp--context--foreground-color: var(--wp--custom--context--neutral--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--neutral--heading-text-color);
  --wp--context--link-text-color: var(--wp--custom--context--neutral--link-text-color);
  --wp--context--link-hover-color: var(--wp--custom--context--neutral--link-hover-color);
  --wp--context--link-text-decoration: var(--wp--custom--context--neutral--link-text-decoration);
  --wp--context--button-base-color: var(--wp--custom--context--neutral--button-base-color);
  --wp--context--button-hover-color: var(--wp--custom--context--neutral--button-hover-color);
  --wp--context--button-text-color: var(--wp--custom--context--neutral--button-text-color);
  --wp--context--button-hover-text-color: var(--wp--custom--context--neutral--button-hover-text-color);
  --wp--context--input-background-color: var(--wp--custom--context--neutral--input-background-color);
  --wp--context--input-foreground-color: var(--wp--custom--context--neutral--input-foreground-color);
  --wp--context--input-border-color: var(--wp--custom--context--neutral--input-border-color);
  background-color: var(--wp--context--background-color);
  color: var(--wp--context--foreground-color);
  --wp--context--link-text-decoration: none;
  margin: 0;
  position: fixed;
  z-index: var(--wp--custom--z--mobile-nav);
  overflow-y: scroll;
  top: 0;
  bottom: 0;
  left: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  opacity: 0;
  transition: opacity 0.2s, left 0.2s;
  box-shadow: 0 1px 1em 0 rgba(0, 0, 0, 0.4);
}
body.mobile-nav-open .mobile-nav {
  opacity: 1;
  left: 0;
}
@media screen and (min-width: 981px) {
  .mobile-nav {
    display: none;
  }
}
@media screen and (max-width: 782px) {
  body.admin-bar .mobile-nav {
    border-top: var(--wp-admin-bar-height) solid #1d2327;
  }
}

.mobile-nav-main, .mobile-nav-utility {
  font-size: var(--wp--preset--font-size--70);
}
.mobile-nav-main .menu, .mobile-nav-utility .menu, .mobile-nav-main .menu > ul, .mobile-nav-utility .menu > ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.mobile-nav-main .menu a, .mobile-nav-utility .menu a, .mobile-nav-main .menu > ul a {
  display: block;
  padding: 0.75rem var(--wp--context--gap);
  white-space: nowrap;
  position: relative;
  z-index: var(--wp--custom--z--mobile-nav-hover);
  transition: color 0.2s, background-color 0.2s;
  --wp--context--link-text-color: var(--wp--custom--color--blue-dark);
  --wp--context--link-hover-color: var(--wp--custom--color--green);
  text-transform: uppercase;
  font-weight: 600;
  text-align: center;
}
.mobile-nav-main .menu .sub-menu, .mobile-nav-utility .menu .sub-menu, .mobile-nav-main .menu > ul .sub-menu {
  margin: 0;
  padding: 0;
  list-style: none;
  display: block;
}
.mobile-nav-main .menu .sub-menu a, .mobile-nav-utility .menu .sub-menu a, .mobile-nav-main .menu > ul .sub-menu a {
  font-weight: 400;
  font-size: smaller;
}
.mobile-nav-main .menu .menu-item.open > .sub-menu, .mobile-nav-utility .menu .menu-item.open > .sub-menu, .mobile-nav-main .menu > ul .menu-item.open > .sub-menu {
  display: block;
}
.mobile-nav-main .menu .menu-item.menu-item-has-children > a, .mobile-nav-utility .menu .menu-item.menu-item-has-children > a, .mobile-nav-main .menu > ul .menu-item.menu-item-has-children > a {
  font-weight: bold;
}
.mobile-nav-main .menu .menu-item.menu-item-has-children > a::after, .mobile-nav-utility .menu .menu-item.menu-item-has-children > a::after, .mobile-nav-main .menu > ul .menu-item.menu-item-has-children > a::after {
  display: none;
  content: "\f105";
  font: var(--fa-font-solid);
  position: absolute;
  right: var(--wp--context--gap);
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  transition: transform 0.2s;
}
.mobile-nav-main .menu .menu-item.menu-item-has-children.open > a::after, .mobile-nav-utility .menu .menu-item.menu-item-has-children.open > a::after, .mobile-nav-main .menu > ul .menu-item.menu-item-has-children.open > a::after {
  transform: translateY(-50%) rotate(90deg);
}

.mobile-nav-utility {
  margin-block-start: var(--wp--context--gap);
  font-size: var(--wp--preset--font-size--50);
}

.mobile-nav-actions {
  margin-block-end: var(--wp--context--gap);
}
.mobile-nav-actions .menu, .mobile-nav-actions .menu > ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.mobile-nav-actions .menu li, .mobile-nav-actions .menu > ul li {
  padding: 0.5em var(--wp--context--gap);
}
.mobile-nav-actions .menu a, .mobile-nav-actions .menu > ul a {
  display: block;
  text-align: center;
}

.mobile-nav-controls {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
}

.mobile-nav-close {
  font-size: var(--wp--preset--font-size--80);
  color: inherit;
  padding: 1em;
  cursor: pointer;
  background: transparent;
  outline: none;
  border: 0;
}