/**
    RMK accordion
 */

details {
  margin-bottom: 1.25rem;
}

.wp-block-details summary {
  color: var(--rmk-green);
  font-size: 1.25rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: end;
}

summary::-webkit-details-marker {
  display: none;
}

summary {
  padding: 0 0 0.5rem 0;
  border-bottom: solid 2px var(--rmk-green);
  font-family: var(--font-geogrotesque), sans-serif;
}

details[open] {
  summary::after {
    content: url("../svg/chevron-down.svg");
    transform: rotate(180deg);
  }
  p {
    color: var(--gray-1);
    line-height: 20px;
  }
}

summary::after {
  content: url("../svg/chevron-down.svg");
}

:where(.wp-block-columns) {
  margin-top: 1.5em;
  margin-bottom: 1.5em;
}

/**
    RMK green double tile
 */

.double-tile {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  max-width: var(--max-width);
  margin: 1.5rem auto;
}

.tile {
  font-family: var(--font-geogrotesque), sans-serif;
  color: var(--white);
  background-color: var(--rmk-green);
  padding: 3rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1 1 calc(40% - 1.5rem);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.tile-spacer {
  height: 1px;
  flex: 1 1 calc(40% - 1.5rem);
  padding: 3rem 4rem;
}

.tile:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.double-tile .tile {
  align-self: stretch;
}

.tile__header {
  color: var(--white);
}

h2.tile__title {
  margin: 0;
  display: inline-block !important;
  font-family: var(--font-geogrotesque), sans-serif !important;
  color: var(--white);
  font-size: 3em;
  text-transform: uppercase;
  line-height: 125%;
  font-style: normal;
  border-top: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  padding: 0.5rem 0;
}

.tile__intro {
  font-size: 1.5em;
  font-family: inherit;
  color: inherit;
  font-weight: 400;
  line-height: 140%;
}

.tile__button {
  text-decoration: none;
  display: inline-block;
  transition: color 0.3s;
  text-align: left;
  margin-top: auto;
  width: auto !important;
  align-self: flex-start;
  font-size: 1.25em;
  font-weight: normal;
  font-family: inherit;
  color: var(--white);
  padding: 0.5rem 1.75rem 0.5rem 0;
  background: url(../svg/arrow-forward.svg) no-repeat right center;
  text-transform: uppercase;
}

.tile__button:hover {
  color: var(--rmk-green-hele);
}

@media (max-width: 1200px) {
  .tile-spacer {
    display: none;
  }
}

@media (max-width: 920px) {
  .double-tile {
    flex-direction: column;
  }

  .tile {
    flex: 1 1 100%;
    padding: 2.5rem 3.5rem;
  }

  h2.tile__title {
    font-size: 2em;
  }

  .wp-block-spacer {
    display: none;
  }
}

@media (max-width: 420px) {
  h2.tile__title {
    font-size: 1.5em;
  }

  .tile {
    padding: 2.2rem 2.5rem;
  }

  .tile__intro {
    font-size: 1em;
  }
}
