/*
  Banner highlight. Text on the left, image on the right, with hand-drawn
  underlines or circles around the words the editor picks in the title.
*/
.banner-highlight__inner {
  display: grid;
  gap: var(--spacing-larger, 2rem);
  padding-block: var(--spacing-larger, 2rem);
}

@media (min-width: 768px) {
  .banner-highlight__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
  }
}

.banner-highlight__title {
  margin: 0 0 1.5rem;
  font-family: var(--font-heading-1);
  font-size: var(--font-size-h1);
  font-weight: var(--heading-1-font-weight);
  line-height: var(--heading-1-line-height);
}

.banner-highlight .field--name-localgov-subsites-banner-text {
  font-size: 1.5rem;
  line-height: 1.4;
}

.banner-highlight__image img {
  display: block;
  width: 100%;
  height: auto;
}

/*
  Underlines are a background so they follow the words when they wrap onto
  more than one line.
*/
.banner-highlight__mark--blue-line,
.banner-highlight__mark--pink-line {
  padding-bottom: 0.15em;
  background-position: left bottom;
  background-repeat: no-repeat;
  background-size: 100% 0.2em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.banner-highlight__mark--blue-line {
  background-image: url("../../assets/blue-line.svg");
}

.banner-highlight__mark--pink-line {
  background-image: url("../../assets/pink-line.svg");
}

/* A circle can't wrap, so keep the circled words together. */
.banner-highlight__mark--blue-circle,
.banner-highlight__mark--pink-circle {
  position: relative;
  white-space: nowrap;
}

.banner-highlight__mark--blue-circle::after,
.banner-highlight__mark--pink-circle::after {
  content: "";
  position: absolute;
  inset: -0.25em -0.4em;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
}

.banner-highlight__mark--blue-circle::after {
  background-image: url("../../assets/blue-circle.svg");
}

.banner-highlight__mark--pink-circle::after {
  background-image: url("../../assets/pink-circle.svg");
}

/* Banner */
.field--name-field-lbhf-buttons a {
  background-color: #fa2cde;
  padding: 0.5rem;
  display: inline-block;
  position: relative;
  margin: 1rem 0;
}

.field--name-field-lbhf-buttons a::after {
  content: '';
  position: absolute;
  right: -43px;
  top: 0;
  width: 0;
  height: 100%;
  border-left: 21px solid transparent;
  border-right: 21px solid transparent;
  border-top: 20px solid #fa2cde;
  clear: both;
  rotate: 270deg;
}
