/*
Theme Name: SPM Mid-Minnesota Legal Aid
Text Domain: spm
Version: 2023
Description: A theme for Mid-Minnesota Legal Aid.
Author: Saint Paul Media
Author URI: https://stpaulmedia.com/
*/

/*
 * Reset
 */

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

html {
  scroll-behavior: smooth;

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

* {
  margin: 0;
}

body {
  overflow-x: hidden;

  /* 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;
}

/* Basic form styles */
input,
button,
textarea,
select {
  border: 1px solid rgba(46, 61, 74, 0.5);
  border-radius: 3px;
  font-size: 0.875rem;
  line-height: 1.15;
  padding: 6px 11px;
  width: 100%;
}

::placeholder {
  font-style: italic;
}

input[type="checkbox"],
input[type="submit"] {
  width: auto;
}

label {
  display: block;
  font-size: var(--wp--preset--font-size--medium);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 8px;
}

select {
  appearance: none;
  background-image: url("assets/img/icon_arrow_down.svg"),
    linear-gradient(
      to bottom,
      var(--wp--preset--color--background) 0%,
      var(--wp--preset--color--background) 100%
    );
  background-position: right 11px top 50%, 0 0;
  background-repeat: no-repeat, repeat;
  background-size: 14px, 100%;
  display: block;
  padding-right: 36px;
}

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

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

/* Plugin-specific form styles */

input.sf-input-text {
  background-image: url("assets/img/search.svg");
  background-position: right 11px top 50%;
  background-repeat: no-repeat;
  background-size: 14px;
  padding-right: 36px;
}

/*
 * Typography
 */

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

dl div {
  margin-bottom: 0.25rem;
}

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

dt {
  font-weight: 600;
}

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

time {
  font-style: italic;
}

/*
 * Focus effects
 */

*:focus {
  position: relative;
  z-index: 1;
  outline: 2px solid var(--wp--preset--color--quaternary);
  outline-offset: 2px;
}

/*
 * Link effects
 */

a,
a h3,
a img,
a .card,
button,
input:focus,
input[type="button"],
input[type="submit"],
textarea:focus,
.wp-element-button {
  transition-property: color, background-color, border-color, opacity, transform;
  transition-duration: 0.2s;
  transition-timing-function: ease-in-out;
}

.button {
  display: inline-block;
}

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

.button--reverse:focus {
  outline-color: var(--wp--preset--color--tertiary);
}

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

/*
 * Universal site elements
 */

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

.site-header__exit--mobile {
  position: fixed;
  z-index: 9999;
  text-align: center;
  width: 100%;
}

.site-header__exit--mobile a {
  border-radius: 0;
  display: block;
  padding-top: 10px;
  padding-bottom: 10px;
}

.site-header__row {
  align-items: center;
  padding-top: 50px;
}

.site-header__upper {
  display: none;
}

.site-header__tertiary {
  position: relative;
  align-items: center;
  background-color: var(--wp--custom--color--neutral-100);
  border-radius: 0 0 0 10px;
  display: inline-flex;
  font-size: 0.95rem;
  justify-content: flex-end;
  line-height: 1.0625;
  margin-bottom: 15px;
  padding-left: 15px;
}

.site-header__tertiary::after {
  position: absolute;
  top: 0;
  left: 100%;
  background-color: inherit;
  content: "";
  display: block;
  height: 100%;
  width: 100vw;
}

.site-header__tertiary .phone-numbers {
  display: flex;
  justify-content: flex-end;
  margin: 0;
}

.site-header__tertiary .phone-numbers div {
  border-right: 1px solid var(--wp--preset--color--background);
  padding: 10px 15px;
}

.site-header__tertiary .phone-numbers div:first-child {
  padding-left: 0;
}

.site-header__tertiary .phone-numbers div:last-child {
  border-right: 0;
  padding-right: 0;
}

.site-header__tertiary .phone-numbers dt,
.site-header__tertiary .phone-numbers dd {
  display: inline;
  white-space: nowrap;
}

.site-header__tertiary .phone-numbers dt {
  background-image: url("assets/img/icon_phone.svg");
  background-position: left center;
  background-repeat: no-repeat;
  background-size: 15px;
  padding-left: 20px;
}

.site-header__tertiary .exit-now {
  margin-left: 25px;
}

.site-header__translate--mobile {
  margin-top: 15px;
  padding-bottom: 15px;
}

@media (min-width: 992px) {
  .site-header__row {
    align-items: flex-start;
    padding-top: 0;
  }

  .site-header__logo {
    margin-top: 15px;
  }

  .site-header__logo-link {
    max-width: 261px;
  }

  .site-header__upper {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
  }

  .site-header__secondary {
    align-items: center;
    display: flex;
    margin: 0 -12.5px;
  }

  .site-header__secondary > * {
    padding: 0 12.5px;
  }

  .site-header__search form {
    align-items: center;
    display: flex;
  }

  .site-header__search label {
    margin-bottom: 0;
  }

  .site-header__search input[type="search"] {
    border-radius: 3px 0 0 3px;
    border-right: 0;
  }

  .site-header__search input[type="submit"] {
    border-radius: 0 3px 3px 0;
    flex: 1 0 25%;
    padding: 4px 14px;
  }

  .site-header__lower {
    margin-top: 15px;
  }

  .site-header__exit--mobile,
  .site-header__translate--mobile {
    display: none;
  }
}

.exit-now {
  background-color: var(--wp--preset--color--quaternary);
  border-radius: 3px;
  color: var(--wp--preset--color--background);
  font-weight: 700;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.15;
  padding-top: 5px;
  padding-right: 12px;
  padding-bottom: 5px;
  padding-left: 12px;
  text-align: center;
  text-decoration: none;
}

.exit-now span {
  background-image: url("assets/img/exit_now.svg");
  background-position: center right;
  background-repeat: no-repeat;
  background-size: 15px;
  display: inline-block;
  padding-right: 20px;
}

.exit-now:hover {
  background-color: var(--wp--preset--color--foreground);
}

.site-footer {
  background-color: var(--wp--preset--color--foreground);
  color: var(--wp--preset--color--background);
  padding-bottom: 20px;
}

.site-footer a {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

.site-footer a:focus {
  outline-color: var(--wp--preset--color--tertiary);
}

.site-footer a:hover {
  color: var(--wp--preset--color--tertiary);
}

.site-footer__primary {
  position: relative;
  background-color: var(--wp--custom--color--neutral-100);
  color: var(--wp--preset--color--foreground);
  font-size: 1rem;
  line-height: 1.1875;
  margin-bottom: 30px;
  padding-top: 30px;
  padding-bottom: 25px;
}

.site-footer__primary::after {
  position: absolute;
  top: 0;
  right: 50%;
  left: 50%;
  background-color: inherit;
  content: "";
  display: block;
  height: 100%;
  margin-right: -50vw;
  margin-left: -50vw;
  max-width: 100vw;
  width: 100vw;
}

.site-footer__primary a {
  color: var(--wp--preset--color--primary);
}

.site-footer__primary a:focus {
  outline-color: var(--wp--preset--color--quaternary);
}

.site-footer__primary a:hover {
  color: var(--wp--preset--color--foreground);
}

.site-footer__primary__inner {
  position: relative;
  z-index: 1;
}

.site-footer__logo {
  margin-bottom: 30px;
  max-width: 75%;
}

.site-footer__phones {
  margin-bottom: 25px;
}

.site-footer__phones div,
.site-footer__emails div {
  margin-bottom: 25px;
}

.site-footer__phones dt,
.site-footer__emails dt {
  margin-bottom: 5px;
}

.site-footer__emails {
  margin-bottom: 35px;
}

.site-footer__social-media .social-media {
  margin: 0 -10px;
}

.site-footer__social-media .social-media li {
  padding: 0 10px;
}

.site-footer__social-media .social-media img {
  max-height: 30px;
}

.site-footer__secondary {
  margin-bottom: 40px;
}

.site-footer__newsletter,
.site-footer__disclaimer {
  border-bottom: 1px solid var(--wp--custom--color--neutral-400);
  margin-bottom: 25px;
  padding-bottom: 25px;
}

body .site-footer__newsletter form {
  align-items: flex-start;
  display: flex;
}

body .site-footer__newsletter input:focus {
  box-shadow: none !important;
  outline: 2px solid var(--wp--preset--color--tertiary) !important;
  outline-offset: 2px !important;
}

body .site-footer__newsletter .gform_body {
  flex: 1;
}

body .site-footer__newsletter .gfield--type-email {
  display: flex;
  flex-direction: column;
}

body .site-footer__newsletter .ginput_container_email {
  order: 1 !important;
}

body .site-footer__newsletter input[type="email"] {
  border: 1px solid var(--wp--preset--color--background) !important;
  border-radius: 3px 0 0 3px !important;
  border-right: 0 !important;
  padding-top: 19.5px !important;
  padding-bottom: 19.5px !important;
}

body .site-footer__newsletter .gfield_label {
  color: var(--wp--custom--color--neutral-100) !important;
  font-size: 1rem !important;
  font-style: italic !important;
  font-weight: 400 !important;
  line-height: 1.1875 !important;
  margin-top: 10px !important;
  margin-bottom: 0 !important;
  order: 2 !important;
}

body .site-footer__newsletter .gform_footer {
  margin-top: 0;
}

body .site-footer__newsletter input[type="submit"] {
  background-color: var(--wp--preset--color--primary) !important;
  border-color: var(--wp--preset--color--background) !important;
  border-radius: 0 3px 3px 0 !important;
  border-style: solid !important;
  border-width: 1px 1px 1px 0 !important;
  color: var(--wp--preset--color--background) !important;
  display: inline-block !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  line-height: 1.4375 !important;
  padding: 8px 17px !important;
  transition: none !important;
}

body .site-footer__newsletter input[type="submit"]:hover {
  background-color: var(--wp--preset--color--quaternary) !important;
}

.site-footer__disclaimer {
  font-size: 1rem;
  font-style: italic;
  line-height: 1.4375;
}

.site-footer .menu {
  font-size: 1rem;
  line-height: 1.0625;
  margin-bottom: -20px;
}

.site-footer .menu li {
  margin-bottom: 20px;
}

.site-footer .menu a {
  font-weight: 500;
}

.site-footer__seals ul {
  align-items: center;
  display: flex;
  list-style: none;
  margin: 0 -15px 30px;
  padding-left: 0;
}

.site-footer__seals li {
  flex: 0 1 37.5%;
  margin-bottom: 0;
  padding: 0 15px;
}

.site-footer__colophon {
  display: flex;
  flex-direction: column;
  font-size: 0.75rem;
  line-height: 1.4167;
}

.site-footer__colophon span {
  display: block;
  margin-bottom: 6px;
}

.site-footer__colophon span:last-child {
  margin-bottom: 0;
}

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

  .site-footer__primary {
    border-radius: 0 10px 10px 0;
    padding-top: 35px;
    padding-bottom: 75px;
  }

  .site-footer__primary::after {
    right: unset;
    left: 0;
    margin-right: unset;
    margin-left: -100vw;
  }

  .site-footer__secondary {
    margin-bottom: 30px;
  }

  .site-footer__newsletter,
  .site-footer__disclaimer {
    margin-bottom: 30px;
    padding-bottom: 30px;
  }

  .site-footer__newsletter {
    margin-top: 10px;
  }

  .site-footer__newsletter form {
    max-width: 85.715%;
  }

  .site-footer .menu {
    columns: 2;
    column-gap: 30px;
  }

  .site-footer .menu li {
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .site-footer__seals ul {
    margin-bottom: 0;
  }

  .site-footer__colophon {
    flex-direction: row;
    justify-content: space-between;
  }

  .site-footer__colophon span {
    margin-bottom: 0;
  }
}

@media (min-width: 992px) {
  .site-footer__primary {
    padding-bottom: 50px;
  }

  .site-footer__secondary {
    padding-left: 20px;
  }

  .site-footer__newsletter form {
    max-width: 62.5%;
  }
}

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

#menu-header-secondary {
  margin: 0 -5px;
}

#menu-header-secondary li {
  padding: 0 5px;
  margin-bottom: 0;
}

#exit-now {
  position: sticky;
}

.site-content {
  flex: 1;
}

.header {
  background-color: var(--wp--custom--color--neutral-100);
  padding-top: 40px;
  padding-bottom: 15px;
}

.header--index {
  padding-bottom: 25px;
}

.header__intro {
  margin-top: 15px;
}

.header__filters {
  margin-top: 25px;
}

.header--with-image {
  position: relative;
  padding-top: 0;
}

.header--post {
  padding-top: 15px;
  padding-bottom: 20px;
}

.header--post .header__breadcrumbs {
  position: relative;
  top: 0;
  display: inline-block;
  margin-bottom: 20px;
}

.header--post .header__title {
  margin-bottom: 15px;
}

.header--post .header__date {
  font-size: var(--wp--preset--font-size--medium);
  font-style: normal;
  line-height: 1.25;
}

.header--post img {
  border-radius: 10px;
  margin-top: 20px;
}

.header__image {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 0;
  margin-bottom: 15px;
  padding-top: calc(120 / 320 * 100%);
}

.header__breadcrumbs {
  margin-bottom: 15px;
}

.header__breadcrumbs--with-image {
  position: absolute;
  top: 20px;
  margin-bottom: 0;
  padding: 15px 15px 15px 0;
}

.header__breadcrumbs--with-image::after {
  position: absolute;
  top: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 0 10px 10px 0;
  content: "";
  display: block;
  height: 100%;
  width: 100vw;
}

.header__breadcrumbs--with-image .breadcrumbs {
  position: relative;
  z-index: 1;
}

.header__title {
  margin-bottom: 0;
}

.header.header--taxonomy {
  border-top: 5px solid var(--wp--preset--color--secondary);
  color: var(--wp--preset--color--background);
  padding-top: 0;
  padding-bottom: 0;
  text-align: left;
}

.header.header--taxonomy .container {
  padding-top: 85px;
  padding-bottom: 15px;
}

.header.header--taxonomy p {
  font-style: italic;
  margin-top: 10px;
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .header {
    padding-top: 60px;
    padding-bottom: 60px;
    text-align: center;
  }

  .header--index {
    padding-bottom: 50px;
  }

  .header__intro {
    margin-top: 20px;
  }

  .header__filters {
    margin-top: 50px;
  }

  .header--post {
    padding-top: 30px;
    padding-bottom: 35px;
    text-align: left;
  }

  .header--post.header--with-image {
    background: linear-gradient(
      to bottom,
      #dce7ee 0%,
      #dce7ee 70%,
      #fff 70%,
      #fff 100%
    );
    padding-top: 30px;
    padding-bottom: 0;
  }

  .header--post .header__breadcrumbs {
    margin-bottom: 25px;
  }

  .header--post .header__title {
    margin-bottom: 20px;
  }

  .header--post img {
    margin-top: 30px;
  }

  .header--with-image {
    padding-top: 175px;
    padding-bottom: 30px;
  }

  .header__image {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    margin-bottom: 0;
    padding-top: 0;
    width: 100%;
  }

  .header__breadcrumbs--with-image {
    top: 30px;
  }

  .header__title--with-image {
    position: relative;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    display: inline-block;
    padding: 15px 50px;
  }

  .header.header--taxonomy .container {
    position: relative;
    padding-top: 70px;
    padding-bottom: 30px;
  }

  .header.header--taxonomy p {
    line-height: 1.4444;
    margin-top: 12px;
  }

  .header.header--taxonomy .container::after {
    position: absolute;
    left: 0;
    bottom: -45px;
    background-image: url("assets/img/mmla_symbol_white_impact_tablet.svg");
    background-position: bottom left;
    background-repeat: no-repeat;
    background-size: contain;
    content: "";
    display: block;
    height: calc(100% + 30px);
    width: 100%;
  }
}

@media (min-width: 992px) {
  .header--post img {
    margin-top: 20px;
  }

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

.excerpt {
  background-color: white;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.excerpt--open {
  outline: 1px solid green;
  outline-offset: -1px;
}

.excerpt--closed {
  outline: 1px solid red;
  outline-offset: -1px;
}

.excerpt__content {
  flex: 1;
  padding: 20px;
}

.excerpt p {
  margin-bottom: 0;
}

.excerpt__footer {
  font-size: 0.875rem;
  padding: 0 20px 20px 20px;
}

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

.excerpt--event .excerpt__content p {
  margin-bottom: 1rem;
}

.excerpt--event dl {
  margin-bottom: 0;
}

.excerpt--event dt,
.excerpt--event dd {
  display: inline;
}

.excerpt__link {
  margin-top: 1rem;
}

.excerpt__tax + .excerpt__tax {
  margin-top: 0.25rem;
}

/*
 * 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;
  }
}

.pagination {
  margin-top: 25px;
}

@media (min-width: 768px) {
  .pagination {
    margin-top: 40px;
  }
}

.searchandfilter ul {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin-bottom: 0;
  padding-left: 0;
}

.searchandfilter li {
  margin-bottom: 20px;
}

.searchandfilter .sf-input-select,
.searchandfilter .sf-input-text {
  background-size: 20px;
  border-color: #000;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  padding: 11px 42px 11px 11px;
}

.searchandfilter li.sf-field-reset {
  text-align: right;
}

.searchandfilter a.search-filter-reset {
  color: var(--wp--preset--color--primary);
  font-style: italic;
  font-weight: 700;
  text-decoration: none;
}

.searchandfilter a.search-filter-reset:hover {
  color: var(--wp--preset--color--quaternary);
}

.searchandfilter li:last-child {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .searchandfilter ul {
    flex-direction: row;
    flex-wrap: wrap;
    margin: 0 -7.5px;
  }

  .searchandfilter li {
    flex: 1 0 50%;
    margin-bottom: 12px;
    padding: 0 7.5px;
  }

  .searchandfilter li.sf-field-reset {
    text-align: right;
  }

  .searchandfilter a.search-filter-reset {
    color: var(--wp--preset--color--primary);
    font-style: italic;
    font-weight: 700;
    text-decoration: none;
  }

  .searchandfilter li:last-child {
    margin-bottom: 0;
  }
}

.share {
  margin-top: 25px;
}

.share .share__heading {
  margin-bottom: 8px;
}

.share .share__list {
  display: flex;
  list-style: none;
  padding-left: 0;
  margin: 0 -7.5px;
}

.share .share__item {
  padding: 0 7.5px;
}

.share .share__link {
  background-position: center;
  background-repeat: no-repeat;
  background-size: 35px;
  display: block;
  height: 35px;
  width: 35px;
}

.share .share__link:hover {
  opacity: 0.5;
}

.share .share__link--facebook {
  background-image: url("assets/img/share-icons/fb.svg");
}

.share .share__link--linkedin {
  background-image: url("assets/img/share-icons/linkedin.svg");
}

.share .share__link--twitter {
  background-image: url("assets/img/share-icons/twitter.svg");
}

.share .share__link--email {
  background-image: url("assets/img/share-icons/email.svg");
}

.share .share__link--print {
  background-image: url("assets/img/share-icons/print.svg");
}

.share .share__link--bluesky {
  background-image: url("assets/img/share-icons/bluesky.svg");
}

.share .share__link--instagram {
  background-image: url("assets/img/share-icons/instagram.svg");
}

@media (min-width: 768px) {
  .share {
    align-items: center;
    display: flex;
    margin-top: 30px;
  }

  .share .share__heading {
    margin-right: 15px;
    margin-bottom: 0;
  }
}

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

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

@media (min-width: 768px) {
  .spm-inner-blocks-row {
    flex-direction: row;
    flex-wrap: wrap;
    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: 40px;
  }

  /* 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;
  }
}

.spm-inner-block-content-wrap {
  background-color: white;
  padding: 15px;
}

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

.wp-element-caption {
  margin-right: 0.5em;
  margin-left: 0.5em;
}

.spm-single__inner {
  padding-top: 20px;
  padding-bottom: 30px;
}

.spm-single-meta div {
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .spm-single__inner {
    padding-top: 30px;
    padding-bottom: 50px;
  }
}

.staff-authors__author__title,
.outside-contributors__contributor__title {
  display: block;
  font-style: italic;
}

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

.wysiwyg a:not(.button),
.widget_text a:not(.button),
.spm-block-header a:not(.button) {
  color: var(--wp--preset--color--primary);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
}

.wysiwyg a:not(.button):hover,
.widget_text a:not(.button):hover,
.spm-block-header a:not(.button):hover {
  color: var(--wp--preset--color--quaternary);
}

.wysiwyg a.wp-element-button {
  color: var(--wp--preset--color--background) !important;
  text-decoration: none !important;
}

/* Spacing between headings and other elements */

.wysiwyg *:has(+ h2) {
  margin-bottom: 20px;
}

.wysiwyg *:has(+ h3) {
  margin-bottom: 15px;
}

.wysiwyg *:has(+ h4) {
  margin-bottom: 15px;
}

.wysiwyg *:has(+ h5) {
  margin-bottom: 15px;
}

.wysiwyg *:has(+ h6) {
  margin-bottom: 15px;
}

/* Spacing between headings and headings */

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

.wysiwyg :where(h3):has(+ h4) {
  margin-bottom: 8px;
}

.wysiwyg :where(h4):has(+ h5) {
  margin-bottom: 8px;
}

.wysiwyg :where(h5):has(+ h6) {
  margin-bottom: 8px;
}

.wysiwyg blockquote,
.wysiwyg ol,
.wysiwyg p,
.wysiwyg ul,
.wysiwyg .wp-block-image,
.wysiwyg .wp-block-gallery,
.wysiwyg .wp-block-buttons,
.wysiwyg .wp-block-table,
.wysiwyg .wp-block-embed {
  margin-bottom: 15px;
}

.wysiwyg *:has(+ ol),
.wysiwyg *:has(+ ul) {
  margin-bottom: 10px;
}

.wysiwyg blockquote {
  border-left: 5px solid var(--wp--custom--color--neutral-100);
  color: var(--wp--preset--color--secondary);
  font-weight: 500;
  font-size: var(--wp--preset--font-size--x-large);
  line-height: 1.4;
  padding-left: 12px;
  text-align: left;
}

.wysiwyg .wp-block-pullquote {
  padding: 0;
}

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

.wysiwyg--reverse a:not(.button) {
  color: var(--wp--preset--color--background);
}

.wysiwyg--reverse a:not(.button):focus {
  outline-color: var(--wp--preset--color--tertiary);
}

.wysiwyg--reverse a:not(.button):hover {
  color: var(--wp--preset--color--tertiary);
}

@media (min-width: 768px) {
  /* Spacing between headings and other elements */

  .wysiwyg *:has(+ h2) {
    margin-bottom: 25px;
  }

  .wysiwyg *:has(+ h3) {
    margin-bottom: 20px;
  }

  .wysiwyg *:has(+ h4) {
    margin-bottom: 20px;
  }

  .wysiwyg *:has(+ h5) {
    margin-bottom: 20px;
  }

  .wysiwyg *:has(+ h6) {
    margin-bottom: 20px;
  }

  .wysiwyg blockquote,
  .wysiwyg ol,
  .wysiwyg p,
  .wysiwyg ul,
  .wysiwyg .wp-block-image,
  .wysiwyg .wp-block-gallery,
  .wysiwyg .wp-block-buttons,
  .wysiwyg .wp-block-table,
  .wysiwyg .wp-block-embed {
    margin-bottom: 20px;
  }

  .wysiwyg *:has(+ ol),
  .wysiwyg *:has(+ ul) {
    margin-bottom: 15px;
  }

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

.spm-blocks > :first-child:not(.bg),
.spm-blocks > * + * {
  margin-top: 30px;
}

.spm-blocks > .bg + .bg {
  margin-top: 0;
}

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

@media (min-width: 768px) {
  .spm-blocks > :first-child:not(.bg),
  .spm-blocks > * + * {
    margin-top: 50px;
  }

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

.social-media {
  align-items: center;
  display: flex;
  list-style: none;
  padding-left: 0;
  margin: 0 -5px;
}

.social-media li {
  padding: 0 5px;
}

.social-media a {
  display: block;
}

.social-media img {
  max-height: 15px;
}

.social-media--newsletters {
  justify-content: center;
  margin: 50px -10px 0 -10px;
}

.social-media--newsletters li {
  padding: 0 10px;
}

.social-media--newsletters img {
  max-height: 65px;
}

.links-blend-in a:not(.button) {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
}

.links-blend-in a:not(.button):hover {
  color: var(--wp--preset--color--quaternary);
}

.link-has-image {
  display: inline-block;
}

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

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

.skip-link:focus {
  top: 4px;
  left: 4px;
  background-color: var(--wp--preset--color--foreground);
  color: var(--wp--preset--color--background);
  font-weight: 700;
  padding: 5px;
  text-decoration: none;
  z-index: 9999;
}

.phone-numbers,
.emails {
  margin-bottom: 0;
}

.repeater-links {
  display: flex;
  flex-wrap: wrap;
}

.repeater-links__link {
  margin-top: 20px;
  margin-right: 20px;
}

.repeater-links__link:last-child {
  margin-right: 0;
}

.row-event {
  background-color: var(--wp--preset--color--background);
  border: 2px solid var(--wp--custom--color--neutral-400);
  border-radius: 10px;
  padding: 20px;
}

.row-event .row-event__title {
  margin-bottom: 8px;
}

.row-event .row-event__excerpt {
  margin-bottom: 0;
}

.row-event .row-event__details {
  margin-top: 20px;
}

.row-event .row-event__detail {
  margin-bottom: 15px;
}

.row-event .row-event__detail:last-child {
  margin-bottom: 0;
}

.row-event .row-event__term {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.2222;
  margin-bottom: 3px;
}

.row-event .row-event__def {
  font-size: 1rem;
  line-height: 1.25;
}

.row-event .row-event__links {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
}

.row-event .row-event__links > * + * {
  margin-top: 20px;
}

.row-event .row-event__links--phone {
  margin-top: 20px;
}

.row-event .row-event__links--tablet {
  display: none;
}

@media (min-width: 768px) {
  .row-event {
    padding: 30px;
  }

  .row-event .row-event__details {
    border-left: 1px solid var(--wp--custom--color--neutral-400);
    height: 100%;
    margin-top: 0;
    padding-left: 30px;
  }

  .row-event .row-event__detail {
    margin-bottom: 20px;
  }

  .row-event .row-event__links--phone {
    display: none;
  }

  .row-event .row-event__links--tablet {
    display: flex;
    margin-top: 15px;
  }

  .row-event .row-event__links > * + * {
    margin-top: 15px;
  }
}

.row-post .row-post__image {
  border: 2px solid var(--wp--custom--color--neutral-400);
  border-radius: 10px;
  margin-bottom: 20px;
}

.row-post .row-post__title {
  color: var(--wp--preset--color--primary);
  margin-bottom: 0;
}

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

.row-post .row-post__date {
  display: block;
  font-size: var(--wp--preset--font-size--small);
  line-height: 1.215;
  margin-bottom: 10px;
}

.row-post .row-post__excerpt {
  margin-bottom: 0;
}

.row-post .row-post__terms {
  font-size: var(--wp--preset--font-size--small);
  line-height: 1.215;
  margin-top: 15px;
}

.row-post .row-post__terms a {
  color: var(--wp--preset--color--primary);
  font-weight: 700;
  text-decoration: none;
}

.row-post .row-post__terms a:hover {
  color: var(--wp--preset--color--quaternary);
}

@media (min-width: 768px) {
  .row-post--detailed .row-post__image {
    margin-bottom: 0;
  }
}

@media (min-width: 992px) {
  .row-post--detailed .row-post__title--with-image {
    margin-top: 13px;
  }

  .row-post .row-post__date {
    margin-bottom: 20px;
  }

  .row-post .row-post__terms {
    margin-top: 20px;
  }
}

h2 a,
h3 a,
h4 a,
h5 a,
h6 a {
  color: var(--wp--preset--color--primary);
  font-weight: inherit !important;
  text-decoration: none !important;
}

h2 a:hover,
h3 a:hover,
h4 a:hover,
h5 a:hover,
h6 a:hover {
  color: var(--wp--preset--color--quaternary) !important;
}

.clickable-div {
  color: inherit;
  display: block;
  font-weight: inherit;
  height: 100%;
  text-decoration: none;
}

.clickable-div h3 {
  color: var(--wp--preset--color--primary);
}

.clickable-div:hover h3 {
  color: var(--wp--preset--color--quaternary);
}

.clickable-div:hover .card {
  border-color: var(--wp--preset--color--primary);
}

.spm-block-header {
  margin-bottom: 20px;
}

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

.spm-block-header__heading + .spm-block-header__description {
  margin-top: 10px;
}

@media (min-width: 768px) {
  .spm-block-header__heading + .spm-block-header__description {
    margin-top: 13px;
  }
}

.spm-archive .spm-archive__posts {
  padding-top: 20px;
  padding-bottom: 30px;
}

.spm-archive .spm-archive__post + .spm-archive__post {
  margin-top: 25px;
}

.spm-index.spm-index--staff {
  background-color: var(--wp--preset--color--background);
  padding-top: 30px;
}

.spm-index.spm-index--taxonomy {
  background-color: var(--wp--preset--color--background);
  padding-top: 0;
  padding-bottom: 0;
}

.spm-index.spm-index--taxonomy .spm-index__posts {
  background-color: var(--wp--custom--color--neutral-100);
  padding-top: 30px;
  padding-bottom: 30px;
}

.spm-index__divider-wrap {
  text-align: center;
}

.spm-index__divider-image {
  border-radius: 10px;
}

.spm-index__divider-image + .spm-index__divider {
  background-color: var(--wp--preset--color--background);
  border-radius: 10px;
  display: inline-block;
  margin-top: -35px;
  padding: 15px 40px;
}

.spm-index__divider {
  margin-bottom: 20px;
}

.spm-index__post + .spm-index__divider {
  margin-top: 30px;
}

.spm-index.spm-index--vol_opp .spm-index__divider {
  flex: 1 0 100%;
  padding: 0 15px;
}

.spm-index.spm-index--vol_opp .spm-index__post + .spm-index__divider {
  margin-top: 10px;
}

@media (min-width: 768px) {
  .spm-archive .spm-archive__posts {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .spm-archive .spm-archive__post + .spm-archive__post {
    margin-top: 30px;
  }

  .spm-index--staff .spm-index__posts {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px -50px -15px;
  }

  .spm-index--staff .spm-index__post {
    flex: 0 1 33.3333%;
    margin-bottom: 50px;
    padding: 0 15px;
  }

  .spm-index--staff .spm-index__post + .spm-index__post {
    margin-top: 0;
  }

  .spm-index.spm-index--staff {
    padding-top: 50px;
  }

  .spm-index__post + .spm-index__divider {
    margin-top: 40px;
  }

  .spm-index.spm-index--taxonomy .spm-index__posts {
    padding-top: 40px;
    padding-bottom: 50px;
  }
}

@media (min-width: 992px) {
  .spm-index--staff .spm-index__posts {
    margin-bottom: -40px;
  }

  .spm-index--staff .spm-index__post {
    margin-bottom: 40px;
  }
}

.back {
  margin-top: 25px;
}

.back a {
  background-image: url("assets/img/back.svg");
  background-position: center left;
  background-repeat: no-repeat;
  background-size: 30px;
  color: var(--wp--preset--color--primary);
  display: inline-block;
  font-weight: 700;
  font-size: 1.125rem;
  height: 30px;
  line-height: 1.6667;
  padding-left: calc(30px + 15px);
  text-decoration: none;
}

.back a:hover {
  background-image: url("assets/img/back_hover.svg");
  color: var(--wp--preset--color--quaternary);
}

@media (min-width: 768px) {
  .back {
    margin-top: 30px;
  }
}

.spm-index {
  background-color: var(--wp--custom--color--neutral-100);
  padding-bottom: 30px;
}

.spm-index--event {
  padding-top: 30px;
}

.spm-index__post + .spm-index__post {
  margin-top: 30px;
}

.spm-index--litigation {
  background-color: var(--wp--preset--color--background);
}

.spm-index--litigation .spm-index__posts {
  margin-top: 30px;
}

.spm-index--search {
  background-color: var(--wp--preset--color--background);
}

.spm-index--search .spm-index__posts {
  margin-top: 20px;
}

.spm-index--search .spm-index__post {
  border-bottom: 2px solid var(--wp--custom--color--neutral-400);
  padding-bottom: 25px;
}

@media (min-width: 768px) {
  .spm-index {
    padding-bottom: 50px;
  }

  .spm-index--event {
    padding-top: 50px;
  }

  .spm-index__post + .spm-index__post {
    margin-top: 40px;
  }

  .spm-index--litigation .spm-index__posts {
    margin-top: 50px;
  }

  .spm-index--search .spm-index__posts {
    margin: 50px auto 0;
    max-width: 66.6667%;
  }

  .spm-index--vol_opp .spm-index__posts {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px -30px;
  }

  .spm-index--vol_opp .spm-index__post {
    flex: 0 1 50%;
  }

  .spm-index--vol_opp .spm-index__post + .spm-index__post {
    margin-top: 0;
  }

  .spm-index--vol_opp .spm-index__post {
    margin-bottom: 30px;
    padding: 0 15px;
  }
}

.page-numbers {
  align-items: center;
  display: flex;
  font-size: 1.125rem;
  font-weight: 700;
  justify-content: center;
  line-height: 1.4444;
  list-style: none;
  margin: 0 -12.5px;
  padding-left: 0;
}

.page-numbers li {
  margin-bottom: 0;
  padding: 0 12.5px;
}

.page-numbers a {
  color: var(--wp--preset--color--primary);
  font-weight: inherit;
  text-decoration: none;
}

.page-numbers a:hover {
  color: var(--wp--preset--color--quaternary);
}

a.prev,
a.next {
  background-position: center;
  background-repeat: no-repeat;
  background-size: 30px;
  display: block;
  height: 30px;
  width: 30px;
}

a.prev {
  background-image: url("assets/img/pagination_left.svg");
  margin-right: 1px;
}

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

a.next {
  background-image: url("assets/img/pagination_right.svg");
  margin-left: 1px;
}

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

.row-litigation {
  border: 2px solid var(--wp--custom--color--neutral-400);
  border-radius: 10px;
  padding: 20px;
}

.row-litigation .row-litigation__title {
  color: var(--wp--preset--color--primary);
  margin-bottom: 8px;
}

.row-litigation .row-litigation__date {
  display: block;
  font-size: var(--wp--preset--font-size--small);
  line-height: 1.215;
  margin-bottom: 12px;
}

.row-litigation .row-litigation__excerpt {
  margin-bottom: 0;
}

.row-litigation .row-litigation__terms {
  font-size: var(--wp--preset--font-size--small);
  line-height: 1.215;
  margin-top: 20px;
}

.row-litigation .row-litigation__terms a {
  color: var(--wp--preset--color--primary);
  font-weight: 700;
  text-decoration: none;
}

.row-litigation .row-litigation__terms a:hover {
  color: var(--wp--preset--color--quaternary);
}

@media (min-width: 768px) {
  .row-litigation {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .row-litigation .row-litigation__excerpt {
    flex: 1;
  }
}

.row-vol_opp {
  background-color: var(--wp--preset--color--background);
  border: 2px solid var(--wp--custom--color--neutral-400);
  border-radius: 10px;
  padding: 20px;
}

.row-vol_opp .row-vol_opp__status {
  border-radius: 0 5px 5px 0;
  display: inline-block;
  font-size: var(--wp--preset--font-size--medium);
  line-height: 1.1875;
  margin-bottom: 20px;
  margin-left: -20px;
  padding: 13px 20px;
}

.row-vol_opp .row-vol_opp__status--open {
  background-color: var(--wp--custom--color--neutral-100);
}

.row-vol_opp .row-vol_opp__status--closed {
  background-color: var(--wp--preset--color--foreground);
  color: var(--wp--preset--color--background);
}

.row-vol_opp .row-vol_opp__title {
  margin-bottom: 8px;
}

.row-vol_opp .row-vol_opp__tax {
  display: block;
  font-size: var(--wp--preset--font-size--medium);
  font-style: italic;
  font-weight: 600;
  line-height: 1.375;
  margin-bottom: 8px;
}

.row-vol_opp .row-vol_opp__excerpt {
  margin-bottom: 15px;
}

.row-vol_opp .row-vol_opp__details {
  margin-bottom: 0;
}

.row-vol_opp .row-vol_opp__detail {
  margin-bottom: 15px;
}

.row-vol_opp dt {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 3px;
}

.row-vol_opp dd {
  font-size: var(--wp--preset--font-size--medium);
  line-height: 1.25;
}

.row-vol_opp .row-vol_opp__link {
  margin-top: 20px;
}

@media (min-width: 768px) {
  .row-vol_opp {
    padding: 15px 30px 30px 30px;
  }

  .row-vol_opp .row-vol_opp__status {
    margin-left: -30px;
    padding: 13px 20px 13px 30px;
  }
}

.row-staff {
  text-align: center;
}

.row-staff img {
  border-radius: 10px;
  display: inline-block;
  margin-bottom: 15px;
  max-width: 165px;
}

.row-staff .row-staff__name {
  margin-bottom: 0;
}

.row-staff .row-staff__excerpt {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.1667;
  margin-top: 5px;
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .row-staff img {
    max-width: 100%;
  }
}

.staff-header {
  background-color: var(--wp--custom--color--neutral-100);
  padding-top: 15px;
  padding-bottom: 20px;
}

.staff-header .staff-header__breadcrumbs {
  position: relative;
  display: inline-block;
  margin-bottom: 30px;
  padding: 15px 15px 15px 0;
}

.staff-header .staff-header__breadcrumbs::after {
  position: absolute;
  top: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 0 10px 10px 0;
  content: "";
  display: block;
  height: 100%;
  width: 100vw;
}

.staff-header .staff-header__breadcrumbs .breadcrumbs {
  position: relative;
  z-index: 1;
}

.staff-header .staff-header__headshot {
  border-radius: 10px;
}

.staff-header .staff-header__headshot--phone {
  margin-bottom: 20px;
  max-width: 50%;
}

.staff-header .staff-header__headshot--tablet {
  display: none;
}

.staff-header .staff-header__title {
  margin-bottom: 0;
}

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

  .staff-header .staff-header__left {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
  }

  .staff-header .staff-header__headshot--phone {
    display: none;
  }

  .staff-header .staff-header__headshot--tablet {
    display: block;
  }
}

@media (min-width: 992px) {
  .staff-header {
    padding-top: 30px;
    padding-bottom: 35px;
  }

  .staff-header .staff-header__left {
    display: block;
    height: unset;
  }

  .staff-header .staff-header__right {
    position: relative;
  }

  .staff-header .staff-header__headshot--tablet {
    position: absolute;
  }
}

/* Print Styles */
@media print {
  body {
    background: var(--wp--preset--color--background);
    color: #000;
    margin: 0;
  }

  .container {
    max-width: 100%;
  }

  .site-header,
  .site-footer,
  .back {
    display: none;
  }

  .header .header__image,
  .spm-cta-single__image {
    display: none;
  }

  .spm-carousel,
  .spm-form {
    display: none;
  }

  .js-accordion-copy {
    display: block !important;
  }

  .wp-element-button {
    border: 1px solid var(--wp--preset--color--primary);
    color: var(--wp--preset--color--primary);
  }

  .wysiwyg--reverse {
    color: #000;
  }

  .wysiwyg--reverse a:not(.button) {
    color: var(--wp--preset--color--primary);
  }

  .spm-accordion,
  .spm-client-quote-and-data,
  .spm-cta-single,
  .spm-intake-numbers {
    color: #000;
  }
}

.row-search .row-search__title {
  margin-bottom: 0;
}

.row-search .row-search__excerpt {
  margin-top: 8px;
  margin-bottom: 0;
}

.wysiwyg .wp-block-gallery .wp-element-caption {
  position: static !important;
  background: none !important;
  color: var(--wp--preset--color--foreground) !important;
  max-height: unset !important;
}
