/*
Theme Name: MinnPace
Text Domain: spm
Version: 2025
Description: A block-based theme for MinnPace.
Author: Saint Paul Media
Author URI: https://stpaulmedia.com/
*/

/*
 * Bootstrap
 */

.row {
  --bs-gutter-x: 30px;
}

.g-0 {
  --bs-gutter-x: 0;
}

@media (min-width: 992px) {
  .row {
    --bs-gutter-x: 40px;
  }
}

/*
 * Reset
 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;

  /* Prevent font size inflation */
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

* {
  margin: 0;
}

body {
  /* Improve text rendering */
  -webkit-font-smoothing: antialiased;
}

/* Improve media defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  height: auto;
  max-width: 100%;
}

/* Remove built-in form typography styles */
input,
button,
textarea,
select {
  font: inherit;
}

/* Style form fields */
button[type="submit"],
input[type="text"],
input[type="number"],
input[type="tel"],
input[type="email"],
input[type="url"],
input[type="file"],
textarea,
select {
  background-color: var(--wp--preset--color--background);
  border: 1px solid var(--wp--preset--color--primary);
  color: var(--wp--preset--color--foreground);
  font-size: 1rem;
  line-height: 1.125;
  padding: 13px 10px;
  width: 100%;
}

button[type="submit"] {
  cursor: pointer;
  width: unset;
}

select {
  appearance: none;
  background-image: url("assets/img/arrow_filter.svg"),
    linear-gradient(
      to bottom,
      var(--wp--preset--color--background) 0%,
      var(--wp--preset--color--background) 100%
    );
  background-position: right 10px top 50%, 0 0;
  background-repeat: no-repeat, repeat;
  background-size: 20px, 100%;
  font-weight: var(--wp--custom--font-weight--medium);
  padding-right: 40px;
}

select::-ms-expand {
  display: none;
}

select[multiple="multiple"] {
  background: none;
  background-color: var(--wp--preset--color--background);
  padding-right: 12px;
}

/*
 * Typography
 */

address {
  font-style: normal;
  margin-bottom: 1rem;
}

dl {
  line-height: 1.2222222222;
  margin-bottom: 0;
}

dl div {
  border-bottom: 1px solid var(--wp--preset--color--neutral-alt);
  margin-bottom: 10px;
  padding-bottom: 10px;
}

dl div:last-child {
  margin-bottom: 0;
}

dt {
  color: var(--wp--preset--color--primary);
  font-weight: var(--wp--custom--font-weight--bold);
  margin-bottom: 5px;
}

dd > :last-child {
  margin-bottom: 0;
}

hr {
  background: linear-gradient(
    to right,
    var(--wp--preset--color--secondary) 0%,
    var(--wp--preset--color--secondary) 40%,
    var(--wp--preset--color--tertiary) 40%,
    var(--wp--preset--color--tertiary) 65%,
    var(--wp--preset--color--quaternary) 65%,
    var(--wp--preset--color--quaternary) 85%,
    var(--wp--preset--color--neutral-alt) 85%,
    var(--wp--preset--color--neutral-alt) 100%
  );
  border: 0;
  height: 9px;
}

time {
  font-style: italic;
}

h2,
.bar {
  position: relative;
  padding-bottom: 16px;
}

h2::after,
.bar::after {
  position: absolute;
  bottom: 0;
  left: 0;
  background-color: var(--wp--preset--color--secondary);
  content: "";
  display: block;
  height: 6px;
  width: 50px;
}

.bar--centered::after {
  left: 50%;
  transform: translateX(-50%);
}

@media (min-width: 768px) {
  dt,
  dd {
    display: inline;
  }
}

@media (min-width: 992px) {
  h1 {
    line-height: 1.075;
  }

  h2 {
    line-height: 1.15;
  }
}

/*
 * Link effects
 */

a:not(.wp-element-button) {
  text-decoration-color: var(--wp--preset--color--secondary);
  text-underline-offset: 0.25em;
  text-decoration-thickness: 3px;
}

*:focus {
  position: relative;
  z-index: 99;
  outline: 3px solid var(--wp--preset--color--focus);
  outline-offset: 3px;
  transition: none !important;
}

a,
button,
input:focus,
input[type="button"],
input[type="submit"],
textarea:focus,
.wp-element-button {
  transition: all 0.2s ease-in-out;
}

h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
}

/*
 * Admin bar
 */

@media only screen and (max-width: 782px) {
  #wpadminbar {
    display: none !important;
  }
}

@media only screen and (min-width: 782px) {
  .admin-bar .site-container {
    padding-top: 32px;
  }
}

/*
 * Universal site elements
 */

.skip-link {
  position: absolute;
  top: -9999px;
  left: -9999px;
  display: block;
}

.skip-link:focus {
  top: 8px;
  left: 8px;
  background-color: var(--wp--preset--color--primary);
  border-radius: 10px;
  color: var(--wp--preset--color--background);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.1111;
  padding: 15px 30px;
  text-decoration: none;
  z-index: 99999;
}

.skip-link:hover {
  background-color: var(--wp--preset--color--secondary);
}

.site-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-header {
  background-color: var(--wp--preset--color--neutral);
  padding: 15px 0 25px;
}

@media (min-width: 768px) {
  .site-header {
    padding: 20px 0 40px;
  }
}

@media (min-width: 992px) {
  .site-header .logo {
    margin-bottom: 20px;
  }
}

.logo .logo__link {
  display: block;
}

.logo .logo__link:hover {
  opacity: 0.5;
}

.logo .logo__image {
  width: 100%;
}

.logo--footer {
  margin-bottom: 1rem;
}

.menu {
  display: flex;
  list-style: none;
  margin-bottom: 0;
  padding-left: 0;
}

.menu-header-secondary {
  align-items: center;
  display: none;
  justify-content: flex-end;
  margin: 0 -15px 20px -15px;
}

.menu-header-secondary > li {
  padding: 0 15px;
}

.menu-header-secondary a {
  color: var(--wp--preset--color--primary);
  font-weight: var(--wp--custom--font-weight--regular);
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
}

.menu-header-secondary a:hover {
  color: var(--wp--preset--color--tertiary);
}

.menu-header-secondary .current-menu-item a,
.menu-header-secondary .current-menu-ancestor a,
.menu-header-secondary .current-page-ancestor a {
  text-decoration: underline;
  text-decoration-color: var(--wp--preset--color--secondary);
  text-decoration-thickness: 3px;
  text-underline-offset: 10px;
}

@media (min-width: 992px) {
  .menu-header-secondary {
    display: flex;
  }
}

.site-content {
  flex: 1;
}

.header {
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--background);
}

.header .header__image {
  width: 100%;
}

.header .header__content {
  padding-top: 35px;
  padding-bottom: 30px;
}

.header .header__row {
  align-items: flex-end;
}

.header .header__title {
  color: var(--wp--preset--color--background);
  margin-bottom: 0;
}

.header .header__icon-col {
  text-align: right;
}

.header .header__icon {
  aspect-ratio: 1 / 1;
  background-color: var(--wp--preset--color--background);
  border: 3px solid var(--wp--preset--color--neutral-alt);
  border-radius: 100%;
  max-width: 100%;
  width: 82px;
}

.header--archive .header__content {
  padding: 30px 0;
}

@media (min-width: 768px) {
  .header .header__content {
    padding-bottom: 40px;
  }

  .header .header__icon {
    width: 112px;
  }

  .header--archive .header__content {
    padding: 50px 0 60px 0;
  }
}

@media (min-width: 992px) {
  .header {
    position: relative;
  }

  .header .header__image {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    object-fit: cover;
    width: 41.6667%;
  }

  .header .header__content {
    padding-bottom: 35px;
  }

  .header .header__icon {
    position: relative;
    left: -41px;
    z-index: 1;
  }

  .header--archive .header__content {
    padding: 75px 0 40px 0;
  }

  .header.header--without-breadcrumbs .header__content {
    padding-top: 131px;
  }
}

.site-footer {
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--background);
  font-size: 1.3125rem;
  line-height: 1.4762;
  padding: 30px 0;
}

.site-footer a:not(.wp-element-button) {
  color: inherit;
  font-weight: inherit;
  text-decoration: inherit;
}

.site-footer a:not(.wp-element-button):focus {
  outline-color: var(--wp--preset--color--background);
}

.site-footer a:not(.wp-element-button):hover {
  color: var(--wp--preset--color--neutral-alt);
}

.site-footer .logo--footer {
  margin-bottom: 25px;
  max-width: 75%;
}

.site-footer .site-footer__address {
  margin-bottom: 15px;
}

.site-footer .site-footer__contact {
  display: flex;
  flex-direction: column;
  margin-bottom: 30px;
}

.menu-footer-primary {
  border-top: 3px solid var(--wp--preset--color--secondary);
  flex-direction: column;
  font-size: 1.125rem;
  margin-bottom: 30px;
  padding-top: 30px;
}

.menu-footer-primary a {
  font-weight: 600 !important;
}

.menu-footer-primary > li + li {
  margin-top: 15px;
}

.footer-cta {
  border-top: 3px solid var(--wp--preset--color--secondary);
  padding-top: 30px;
}

.footer-cta .footer-cta__heading {
  color: var(--wp--preset--color--background);
  margin-bottom: 0;
}

.footer-cta .footer-cta__copy {
  margin-top: 15px;
  margin-bottom: 0;
}

.footer-cta .footer-cta__link {
  margin-top: 20px;
}

.site-footer .site-footer__statement {
  font-size: 0.875rem;
  line-height: 1.5715;
  margin-top: 30px;
}

.site-footer .site-footer__colophon {
  display: flex;
  font-size: 0.875rem;
  gap: 10px;
  line-height: 1.5715;
  margin-top: 20px;
}

.site-footer .site-footer__attribution {
  color: var(--wp--preset--color--neutral-alt);
}

@media (min-width: 768px) {
  .site-footer {
    padding-top: 60px;
  }

  .site-footer .logo--footer {
    max-width: 41.6667%;
  }

  .site-footer .menu-footer-primary {
    margin-bottom: 0;
  }

  .footer-cta {
    border-top: 3px solid var(--wp--preset--color--secondary);
    padding-top: 30px;
  }

  .footer-cta .footer-cta__heading {
    color: var(--wp--preset--color--background);
    margin-bottom: 0;
  }

  .footer-cta .footer-cta__copy {
    margin-top: 15px;
    margin-bottom: 0;
  }

  .footer-cta .footer-cta__link {
    margin-top: 20px;
  }

  .site-footer .site-footer__statement {
    font-size: 0.875rem;
    line-height: 1.5715;
    margin-top: 30px;
  }

  .site-footer .site-footer__colophon {
    font-size: 0.875rem;
    line-height: 1.5715;
    margin-top: 20px;
  }

  .site-footer .site-footer__attribution {
    color: var(--wp--preset--color--neutral-alt);
  }
}

@media (min-width: 992px) {
  .site-footer .logo--footer {
    max-width: 100%;
  }

  .site-footer .site-footer__contact {
    margin-bottom: 0;
  }

  .site-footer .site-footer__statement {
    margin-top: 70px;
  }
}

/*
 * Commonly used elements
 */

.block-header {
  margin-bottom: 25px;
}

.block-header .block-header__heading {
  margin-bottom: 0;
}

.block-header .block-header__heading + .block-header__description {
  margin-top: 25px;
}

.block-header .block-header__link {
  margin-top: 20px;
}

.block-header--centered .block-header__row {
  justify-content: center;
  text-align: center;
}

@media (min-width: 992px) {
  .block-header--feed .block-header__row {
    align-items: flex-end;
    justify-content: space-between;
  }
}

.has-bg--primary .block-header .block-header__heading {
  color: var(--wp--preset--color--background);
}

.has-bg--neutral-alt .block-header .block-header__heading::after,
.has-bg--quaternary .block-header .block-header__heading::after {
  background-color: var(--wp--preset--color--background);
}

.excerpt-success-story .excerpt-success-story__image,
.excerpt-success-story .excerpt-success-story__video {
  border-radius: 20px;
  margin-bottom: 20px;
}

.excerpt-success-story .excerpt-success-story__image {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}

.excerpt-success-story .excerpt-success-story__title {
  margin-bottom: 0;
}

.excerpt-success-story .excerpt-success-story__copy {
  margin-top: 10px;
  margin-bottom: 0;
}

.excerpt-success-story .excerpt-success-story__details {
  margin-top: 20px;
  margin-bottom: 0;
}

.result {
  border-bottom: 1px solid var(--wp--preset--color--neutral-alt);
  margin-bottom: 30px;
  padding-bottom: 30px;
}

.result:last-child {
  margin-bottom: 0;
}

.result .result__title {
  margin-bottom: 0;
}

.result .result__excerpt {
  margin-top: 10px;
}

.single .wp-post-image {
  margin-bottom: 1rem;
}

.pagination {
  align-items: center;
  display: flex;
  flex: 1 0 100% !important;
  font-size: 1.25rem;
  font-weight: var(--wp--custom--font-weight--semi-bold);
  gap: 20px;
  justify-content: center;
  line-height: 1.1;
  margin-top: 30px;
}

.pagination a {
  font-weight: inherit;
  text-decoration: none;
}

.pagination .prev,
.pagination .next {
  background-repeat: no-repeat;
  background-size: 24px 24px;
  display: block;
  height: 24px;
  width: 24px;
}

.pagination .prev {
  background-image: url("assets/img/arrow_left.svg");
  background-position: center left;
}

.pagination .prev:hover {
  background-image: url("assets/img/arrow_left_hover.svg");
}

.pagination .next {
  background-image: url("assets/img/arrow_right.svg");
  background-position: center right;
}

.pagination .next:hover {
  background-image: url("assets/img/arrow_right_hover.svg");
}

.pagination .current {
  background-color: var(--wp--preset--color--tertiary);
  border-radius: 4px;
  color: var(--wp--preset--color--background);
  display: block;
  padding: 10px;
}

.post-categories {
  list-style: none;
  margin-bottom: 0;
  padding-left: 0;
}

.post-categories li {
  display: inline-block;
  margin-right: 1em;
}

.post-categories li:last-child {
  margin-right: 0;
}

.wp-element-button {
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wp-element-button.is-style-reverse {
  background-color: var(--wp--preset--color--secondary);
  color: var(--wp--preset--color--primary);
}

.wp-element-button.is-style-reverse:focus {
  outline-color: var(--wp--preset--color--background);
}

.wp-element-button.is-style-reverse:hover {
  background-color: var(--wp--preset--color--background);
}

.wp-element-button.is-style-secondary {
  background-color: transparent;
  border: 2px solid var(--wp--preset--color--primary);
  color: var(--wp--preset--color--primary);
}

.wp-element-button.is-style-secondary:hover {
  background-color: var(--wp--preset--color--secondary);
  border-color: var(--wp--preset--color--secondary);
}

/*
 * Plugin styles
 */

/*
 * Gravity Forms
 */

.gfield {
  border: 0;
  margin: 0 0 30px 0;
  padding: 0;
}

.gfield_label {
  color: var(--wp--preset--color--foreground);
  display: block;
  font-size: var(--wp--preset--font-size--x-large);
  font-weight: var(--wp--custom--font-weight--semi-bold);
  line-height: 1.25;
  margin-bottom: 8px;
  padding: 0 !important;
}

.gfield_description,
.gform-field-label--type-sub {
  display: block;
  font-size: 1.125rem;
  line-height: 1.1667;
  margin: 12px 0;
}

.field_description_above .gfield_description {
  margin-top: 0;
}

/* Hidden labels */
.gform_wrapper .hidden_label .gfield_label,
.gform_wrapper label.hidden_sub_label,
.gform_wrapper label.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  overflow: hidden;
  width: 1px;
}

.gform_wrapper li.hidden_label input {
  margin-top: 8px;
}

.gform_wrapper
  .field_sublabel_hidden_label
  .ginput_complex.ginput_container
  input[type="text"],
.gform_wrapper
  .field_sublabel_hidden_label
  .ginput_complex.ginput_container
  select {
  margin-bottom: 8px;
}

.gform_wrapper .left_label li.hidden_label input,
.gform_wrapper .right_label li.hidden_label input {
  margin-left: 3.7%;
}

.gform_wrapper .hidden_label input.large,
.gform_wrapper .hidden_label select.large,
.gform_wrapper .top_label input.large,
.gform_wrapper .top_label select.large {
  width: 100%;
}

/* Sections */
.gsection_title {
  margin-bottom: 0;
}

/* Fields with choices */
.gchoice,
.gfield-image-choice-wrapper-inner,
.ginput_container_consent {
  align-items: center;
  display: flex;
}

.gfield-choice-input,
.ginput_container_consent input[type="checkbox"] {
  margin-right: 10px;
}

.gchoice + .gchoice {
  margin-top: 3px;
}

.gfield-choice-image-wrapper {
  margin-bottom: 15px;
}

/* List fields */
.gfield_list_icons {
  margin-top: 15px;
}

.gfield_list_group + .gfield_list_group {
  margin-top: 15px;
}

.add_list_item,
.delete_list_item {
  display: none;
}

/* Upload fields */
.gform_fileupload_rules {
  margin-top: 15px;
  margin-bottom: 0;
}

/* Complex fields */
.ginput_container--name {
  display: flex;
  margin: 0 -15px;
}

.ginput_container--name > span {
  flex: 1;
  padding: 0 15px;
}

.ginput_container_address {
  display: flex;
  flex-direction: column;
}

.ginput_container_address > span + span {
  margin-top: 15px;
}

.gfield--type-time .ginput_complex {
  align-items: center;
  display: flex;
  margin: 0 0.125em;
}

.gfield--type-time .ginput_complex > div {
  padding: 0 0.125em;
}

/*Datepicker*/
.gform-theme-datepicker:not(.gform-legacy-datepicker) {
  background-color: var(--wp--preset--color--background);
  border: 0;
  padding: 10px;
}

.ui-datepicker-prev,
.ui-datepicker-next {
  display: inline-block;
  margin-bottom: 10px;
  width: 50%;
}

.ui-datepicker-next {
  text-align: right;
}

.ui-datepicker-month {
  margin-bottom: 10px;
}

.ui-datepicker-year {
  margin-bottom: 10px;
}

/* Messages */
.gform_validation_errors,
.gfield_validation_message {
  background-color: var(--wp--preset--color--neutral);
  font-style: italic;
  padding: 10px;
}

.validation_message--hidden-on-empty {
  padding: 0;
}

/* Hide icons */
.gform_save_link svg {
  display: none;
}

/* Required fields */
.gfield_required {
  color: var(--wp--preset--color--tertiary);
}

.gfield_required:before {
  content: " ";
}

/*
 * Search and Filter
 */

.searchandfilter ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 768px) {
  .searchandfilter ul {
    flex-direction: row;
    gap: 30px;
  }

  .searchandfilter ul > * {
    flex: 1;
  }
}

/*
 * Block spacing - outer blocks
 */

.spm-blocks > * + * {
  margin-top: 40px;
}

.spm-blocks > *:not(.has-bg):first-child {
  margin-top: 40px;
}

.spm-blocks > *:not(.has-bg):last-child {
  margin-bottom: 40px;
}

.has-bg {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 40px 0;
}

.has-bg--primary {
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--background);
}

.has-bg--neutral {
  background-color: var(--wp--preset--color--neutral);
}

.has-bg--neutral-alt {
  background-color: var(--wp--preset--color--neutral-alt);
}

.has-bg--quaternary {
  background-color: var(--wp--preset--color--quaternary);
}

.has-bg + .has-bg {
  margin-top: 0;
}

.has-bg--primary + .has-bg--primary,
.has-bg--neutral + .has-bg--neutral,
.has-bg--neutral-alt + .has-bg--neutral-alt,
.has-bg--quaternary + .has-bg--quaternary {
  padding-top: 0;
}

@media (min-width: 992px) {
  .spm-blocks > * + * {
    margin-top: 60px;
  }

  .spm-blocks > *:not(.has-bg):first-child {
    margin-top: 60px;
  }

  .spm-blocks > *:not(.has-bg):last-child {
    margin-bottom: 60px;
  }

  .has-bg {
    padding: 60px 0;
  }
}

/*
 * Block spacing - inner blocks
 */

.spm-inner-blocks-row {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.spm-inner-blocks-row > * + * {
  margin-block-start: 30px;
}

@media (min-width: 992px) {
  .spm-inner-blocks-row {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 -15px;
  }

  .spm-inner-blocks-row > * + * {
    margin-block-start: unset;
  }

  /* Default: 1 item, 3 items or 5+ items */
  .spm-inner-blocks-row > * {
    flex: 0 1 33.3333%;
    padding: 0 15px;
  }

  .spm-inner-blocks-row > *:not(:nth-child(-n + 3)) {
    margin-block-start: 30px;
  }

  /* Special case: exactly 2 items */
  .spm-inner-blocks-row:has(> :nth-child(2):last-child) > * {
    flex: 0 1 50%;
  }

  /* Special case: exactly 4 items */
  .spm-inner-blocks-row:has(> :nth-child(4):last-child) > * {
    flex: 0 1 25%;
    margin-block-start: 0;
  }
}

/*
 * Utility classes
 */

.embed-container {
  position: relative;
  padding-bottom: 56.25%;
  overflow: hidden;
  max-width: 100%;
  height: auto;
}

.embed-container iframe,
.embed-container object,
.embed-container embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.link-has-image:hover {
  opacity: 0.5;
}

.text-large {
  font-size: var(--wp--preset--font-size--large);
  line-height: 1.4761904762;
}

.text-medium {
  font-size: var(--wp--preset--font-size--medium);
}

.text-small {
  font-size: var(--wp--preset--font-size--small);
}

.wysiwyg h2 {
  margin-bottom: 25px;
}

.wysiwyg h3,
.wysiwyg h4,
.wysiwyg h5,
.wysiwyg h6 {
  margin-bottom: 12px;
}

.wysiwyg li + li {
  margin-top: 10px;
}

.wysiwyg ol,
.wysiwyg ul {
  margin-bottom: 15px;
  padding-left: 1em;
}

.wysiwyg ol ol,
.wysiwyg ul ul {
  margin-top: 10px;
  margin-bottom: 0;
}

.wysiwyg :has(+ h2),
.wysiwyg :has(+ h3) {
  margin-bottom: 30px;
}

.wysiwyg > :last-child {
  margin-bottom: 0;
}

/*
 * WordPress image classes
 */

img.alignright {
  float: right;
  margin: 0 0 1em 1em;
}

img.alignleft {
  float: left;
  margin: 0 1em 1em 0;
}

img.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.alignright {
  float: right;
}

.alignleft {
  float: left;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.spm-archive {
  padding: 40px 0;
}

.spm-archive .spm-archive__posts {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

@media (min-width: 768px) {
  .spm-archive .spm-archive__posts > * {
    flex: 0 0 calc((100% - 1 * 30px) / 2); /* exactly 2-up with 30px gap */
  }
}

@media (min-width: 992px) {
  .spm-archive {
    padding: 60px 0;
  }

  .spm-archive .spm-archive__posts {
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 30px;
    row-gap: 40px;
  }

  .spm-archive .spm-archive__posts > * {
    flex: 0 0 calc((100% - 2 * 30px) / 3); /* exactly 3-up with 30px gap */
  }
}

.back {
  font-size: 1.125rem;
  line-height: 1.3889;
  margin-top: 30px;
}

@media (min-width: 768px) {
  .back {
    font-size: 1.3125rem;
    line-height: 1.4761904762;
  }
}

/*
 * WordPress search form
 */

.search-form {
  border: 1px solid var(--wp--preset--color--primary);
  border-radius: 100px;
  display: flex;
}

.search-form .search-field {
  border: 0;
  border-radius: 100px 0 0 100px;
  font-size: 1rem;
  height: 38px;
  line-height: 1.125;
  padding: 10px 15px;
}

.search-form .search-submit {
  background-color: var(--wp--preset--color--background);
  border: 0;
  border-radius: 0 100px 100px 0;
  color: var(--wp--preset--color--primary);
  font-size: 1rem;
  line-height: 1.125;
  padding: 10px 15px;
}

.search-form .search-submit:hover {
  color: var(--wp--preset--color--secondary);
}

.breadcrumbs {
  color: inherit;
  font-weight: var(--wp--custom--font-weight--semi-bold);
  font-size: 1.125rem;
  line-height: 1.1667;
  margin-bottom: 40px;
  padding-left: 30px;
}

.breadcrumbs {
  position: relative;
}

.breadcrumbs::after {
  position: absolute;
  top: 50%;
  left: 0;
  background-color: var(--wp--preset--color--secondary);
  content: "";
  display: block;
  height: 6px;
  transform: translateY(-50%);
  width: 17px;
}

.breadcrumbs a {
  color: inherit;
  font-weight: inherit;
  text-decoration: inherit;
}

.breadcrumbs a:hover {
  color: var(--wp--preset--color--neutral-alt);
}

.header-post .breadcrumbs,
.header-success-story .breadcrumbs {
  color: var(--wp--preset--color--tertiary);
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .breadcrumbs {
    margin-bottom: 95px;
  }

  .header-post .breadcrumbs {
    margin-bottom: 30px;
  }
}

@media (min-width: 992px) {
  .breadcrumbs {
    margin-bottom: 110px;
  }

  .header-post .breadcrumbs {
    margin-bottom: 30px;
  }
}

.excerpt-resource {
  background-color: var(--wp--preset--color--background);
  border: 2px solid var(--wp--preset--color--neutral-alt);
  border-radius: 13px;
  padding: 20px;
}

.excerpt-resource .excerpt-resource__terms {
  color: var(--wp--preset--color--neutral-alt);
  font-size: 1rem;
  font-weight: var(--wp--preset--font-size--regular);
  line-height: 1.25;
  margin-bottom: 10px;
}

.excerpt-resource .excerpt-resource__terms a {
  color: var(--wp--preset--color--tertiary);
  font-weight: inherit;
  text-decoration: none;
}

.excerpt-resource .excerpt-resource__terms a:hover {
  color: var(--wp--preset--color--secondary);
}

.excerpt-resource .excerpt-resource__title {
  margin-bottom: 0;
}

.tax-resource_audience .excerpt-resource,
.tax-resource_category .excerpt-resource,
.post-type-archive-resource .excerpt-resource {
  background-color: var(--wp--preset--color--neutral);
}

.filters {
  margin-top: 30px;
}

.filters button,
.filters input,
.filters select {
  box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.15);
}

.excerpt-post {
  display: flex;
  flex-direction: column;
}

.excerpt-post .excerpt-post__header {
  margin-bottom: 20px;
}

.excerpt-post .excerpt-post__image {
  border-radius: 20px;
}

.excerpt-post .excerpt-post__title {
  margin-bottom: 10px;
}

.excerpt-post .excerpt-post__date {
  color: var(--wp--preset--color--primary);
  display: block;
  font-size: 1rem;
  font-style: normal;
  font-weight: var(--wp--custom--font-weight--medium);
  line-height: 1.75;
  margin-bottom: 10px;
}

.excerpt-post p {
  margin-bottom: 0;
}

.excerpt-post--row .excerpt-post__image {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

@media (min-width: 768px) {
  .excerpt-post .excerpt-post__header {
    margin-bottom: 30px;
  }

  .excerpt-post .excerpt-post__image {
    max-width: 66.6667%;
  }
}

@media (min-width: 992px) {
  .excerpt-post .excerpt-post__header {
    margin-bottom: 20px;
  }

  .excerpt-post .excerpt-post__image {
    max-width: 100%;
  }

  .excerpt-post--row {
    align-items: center;
    column-gap: 30px;
    flex-direction: row;
  }

  .excerpt-post--row .excerpt-post__header {
    flex: 1 0 33.3333%;
    margin-bottom: 0;
  }
}

.spm-index .spm-index__posts {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.spm-index .spm-index__post {
  border-bottom: 1px solid var(--wp--preset--color--neutral-alt);
  padding-bottom: 30px;
}

.header-post {
  background-color: var(--wp--preset--color--neutral);
  padding-top: 40px;
  padding-bottom: 30px;
}

.header-post .header-post__image {
  border-radius: 20px;
}

.spm-single {
  padding: 30px 0;
}

.spm-single--success-story {
  padding-bottom: 40px;
}

.spm-single .spm-single__date {
  color: var(--wp--preset--color--primary);
  display: block;
  font-size: 1.3125rem;
  font-style: normal;
  line-height: 1.4761904762;
  margin-bottom: 20px;
}

.spm-single .spm-single__video {
  margin-bottom: 30px;
}

.spm-single .spm-single__sidebar {
  background-color: var(--wp--preset--color--neutral);
  border-radius: 20px;
  margin-bottom: 30px;
  padding: 25px;
}

@media (min-width: 768px) {
  .header-post {
    padding-bottom: 40px;
  }

  .spm-single {
    padding: 40px 0;
  }

  .spm-single .spm-single__title {
    margin-bottom: 25px;
  }

  .spm-single .spm-single__date {
    margin-bottom: 25px;
  }

  .spm-single .spm-single__sidebar {
    margin-bottom: 40px;
  }

  .spm-single--success-story {
    padding-bottom: 60px;
  }
}

@media (min-width: 992px) {
  .header-post .header-post__image {
    margin-bottom: -205px;
  }

  .spm-single--with-image {
    padding-top: 205px;
  }

  .spm-single .spm-single__title {
    margin-bottom: 20px;
  }

  .spm-single--success-story {
    padding-top: 60px;
  }
}

@media (min-width: 1200px) {
  .header-post .header-post__image {
    margin-bottom: -237px;
  }

  .spm-single--with-image {
    padding-top: 237px;
  }
}

@media (min-width: 1400px) {
  .header-post .header-post__image {
    margin-bottom: -270px;
  }

  .spm-single--with-image {
    padding-top: 270px;
  }
}

.header-success-story {
  background-color: var(--wp--preset--color--neutral);
  padding-top: 40px;
  padding-bottom: 30px;
}

.header-success-story .header-success-story__title {
  margin-bottom: 0;
}

.header-success-story .header-success-story__image {
  display: none;
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .header-success-story {
    padding-bottom: 40px;
  }

  .header-success-story .header-success-story__image {
    border-radius: 20px;
    display: block;
    margin-top: 40px;
  }
}

@media (min-width: 992px) {
  .header-success-story {
    padding-top: 35px;
    padding-bottom: 45px;
  }

  .header-success-story .header-success-story__row {
    align-items: flex-end;
  }

  .header-success-story .header-success-story__image {
    margin-top: 0;
  }
}

.title {
  padding-bottom: 40px;
}

.title .title__heading {
  margin-bottom: 0;
}

.title .title__description {
  margin-top: 15px;
}

@media (min-width: 768px) {
  div.title {
    padding: 30px 0 50px;
    text-align: center;
  }

  .title .title__heading::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .title .title__description {
    margin-top: 25px;
  }
}

@media (min-width: 992px) {
  div.title {
    padding: 30px 0 80px;
  }
}

div.header-search {
  padding: 0;
}

.fancybox {
  position: relative;
  display: block;
}

.fancybox::after {
  position: absolute;
  top: 0;
  left: 0;
  background-image: url("assets/img/play.svg");
  background-position: right 10px bottom 10px;
  background-repeat: no-repeat;
  content: "";
  display: block;
  height: 100%;
  width: 100%;
}

.fancybox:hover::after {
  background-image: url("assets/img/play_hover.svg");
}

.wp-block-table {
  background-color: var(--wp--preset--color--background);
}

.wp-block-table th {
  border-color: var(--wp--preset--color--tertiary);
  font-size: var(--wp--preset--font-size--x-large);
  font-weight: var(--wp--custom--font-weight--semi-bold);
  line-height: 1.25;
  text-align: left;
}

.wp-block-table tfoot,
.wp-block-table thead {
  background-color: var(--wp--preset--color--neutral-alt);
  border-width: 1px;
}
