/* Header */
.brand-header {
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 101;
}
body.admin-bar .brand-header {
  top: var(--wp-admin--admin-bar--height);
}
.brand-header .wp-block-columns {
  flex-wrap: nowrap !important;
}
.site-header {
  position: relative;
}
.site-header .header-layer-0 {
  bottom: 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 91%);
  display: block;
  height: 100%;
  left: 0;
  margin: 0;
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  z-index: 0;
}
.site-header .header-layer-1 {
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
  position: relative;
  z-index: 1;
}
@media (min-width: 782px) {
  .site-header .header-layer-0 {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 82%);
  }
  .site-header .header-layer-1 {
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
  }
}
.site-header .header-layer-1.has-background[style*="background-image"]::before,
.site-header .header-layer-1.has-background[style*="background-image"]::after {
  background: rgba(0, 0, 0, 0.5);
  bottom: 0;
  content: "";
  height: 100%;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
}
.site-header .header-layer-1.has-background[style*="background-image"]::before {
  background-color: var(--wp--preset--color--primary-600);
  mix-blend-mode: multiply;
}
.site-header .header-layer-1.has-background[style*="background-image"]::after {
  background-color: var(--wp--preset--color--primary-900);
  mix-blend-mode: lighten;
}
.site-header .site-title-box {
  position: relative;
  z-index: 2;
}

/* Sidebar */
@media (min-width: 600px) {
  .sticky-sidebar {
    top: calc(5rem + var(--wp-admin--admin-bar--height, 0px));
    position: sticky;
    z-index: 10;
  }
}
@media (max-width: 599.98px) {
  .primary-sidebar .wp-block-site-title {
    display: none;
  }
  .primary-sidebar .sidebar-nav-group {
    align-items: center;
    flex-direction: row;
  }
  .primary-sidebar .sidebar-nav-group .wp-block-social-links {
    margin-left: auto;
  }
}
.wp-block-navigation__responsive-container-close svg,
.wp-block-navigation__responsive-container-open svg {
  height: 2.25rem;
  width: 2.25rem;
}
.wp-block-navigation__responsive-container.is-menu-open {
  padding: clamp(1rem, var(--wp--preset--spacing--50), 20rem)
    clamp(1rem, var(--wp--preset--spacing--50), 20rem)
    clamp(1rem, var(--wp--preset--spacing--50), 20rem)
    clamp(1rem, var(--wp--preset--spacing--50), 20rem);
}
.wp-block-navigation__responsive-container-content
  .wp-block-navigation-item__content {
  font-size: var(--wp--preset--font-size--paragraph);
}
.sidebar-search {
  max-width: 100%;
}

/* Footer */
.site-footer {
  position: relative;
}
.site-footer .footer-layer-0 {
  bottom: 0;
  clip-path: polygon(66% 10%, 100% 10%, 100% 100%, 0 100%, 0 0);
  display: block;
  height: 100%;
  left: 0;
  margin: 0;
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  z-index: 0;
}
.site-footer .footer-layer-1 {
  clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 10%);
  position: relative;
  z-index: 1;
}
@media (min-width: 782px) {
  .site-footer .footer-layer-0 {
    clip-path: polygon(50% 12%, 100% 12%, 100% 100%, 0 100%, 0 0);
  }
  .site-footer .footer-layer-1 {
    clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 15%);
  }
}
@media (min-width: 960px) {
  .site-footer .footer-layer-0 {
    clip-path: polygon(50% 16%, 100% 16%, 100% 100%, 0 100%, 0 0);
  }
  .site-footer .footer-layer-1 {
    clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 20%);
  }
}

/* Headings */
.wp-block-heading.is-style-zigzag,
.wp-block-heading.is-style-zigzag,
.wp-block-post-title.is-style-zigzag,
.wp-block-query-title.is-style-zigzag {
  margin-bottom: var(--wp--preset--spacing--60);
}
.wp-block-heading.is-style-zigzag::after,
.wp-block-heading.is-style-zigzag::after,
.wp-block-post-title.is-style-zigzag::after,
.wp-block-query-title.is-style-zigzag::after {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20150%2018%22%3E%3Cpath%20style%3D%22fill%3Anone%3Bstroke%3A%2300c78a%3Bstroke-linecap%3Around%3Bstroke-linejoin%3Around%3Bstroke-width%3A5px%22%20d%3D%22m5%2012.4%2017.5-6.8L40%2012.4l17.5-6.8L75%2012.4l17.5-6.8%2017.5%206.8%2017.5-6.8%2017.5%206.8%22%2F%3E%3C%2Fsvg%3E");
  content: "";
  display: block;
  height: 18px;
  margin: 1.25rem 0;
  width: 150px;
}
/* hide zigzag if heading has no content */
.wp-block-heading.is-style-zigzag:empty::after,
.wp-block-heading.is-style-zigzag:empty::after,
.wp-block-post-title.is-style-zigzag:empty::after,
.wp-block-query-title.is-style-zigzag:empty::after {
  content: none;
}
/* change zigzag margin for different alignments */
.wp-block-heading.has-text-align-center.is-style-zigzag::after,
.wp-block-heading.has-text-align-center.is-style-zigzag::after,
.wp-block-post-title.has-text-align-center.is-style-zigzag::after,
.wp-block-query-title.has-text-align-center.is-style-zigzag::after {
  margin: 1.25rem auto;
}
.wp-block-heading.has-text-align-right.is-style-zigzag::after,
.wp-block-heading.has-text-align-right.is-style-zigzag::after,
.wp-block-post-title.has-text-align-right.is-style-zigzag::after,
.wp-block-query-title.has-text-align-right.is-style-zigzag::after {
  margin-left: auto;
}
.rtl .wp-block-heading.has-text-align-left.is-style-zigzag::after,
.rtl .wp-block-heading.has-text-align-left.is-style-zigzag::after,
.rtl .wp-block-post-title.has-text-align-left.is-style-zigzag::after,
.rtl .wp-block-query-title.has-text-align-left.is-style-zigzag::after {
  margin-right: auto;
}

/* Fix for non-responsive images from classic editor */
figure.wp-caption {
  max-width: 100%;
}

/* General fix for non-responsive iframes */
:where(iframe) {
  max-width: 100%;
}

/* Display utilities */
@media (min-width: 782px) {
  .hidden-md-up {
    display: none !important;
  }
}
@media (max-width: 781.98px) {
  .hidden-md-down {
    display: none !important;
  }
}
.visually-hidden,
.visually-hidden-focusable:not(:focus):not(:focus-within) {
  border: 0 !important;
  clip: rect(0, 0, 0, 0) !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  white-space: nowrap !important;
  width: 1px !important;
}
