/*
 * Compatibility styles for content written for the former HazDev template.
 * Remove this stylesheet after legacy content classes have been migrated.
 *
 * Updated: 2026-07-28 ehunter
 */
/* Legacy tab controls used the former template's Material Icons font. */
.tablist-backward-button > .material-icons,
.tablist-forward-button > .material-icons {
  background-position: center;
  background-repeat: no-repeat;
  background-size: 24px 24px;
  font-size: 0;
  height: 40px;
}

.tablist-backward-button > .material-icons {
  background-image: url('/theme/hazdev/assets/img/usa-icons/chevron_left.svg');
}

.tablist-forward-button > .material-icons {
  background-image: url('/theme/hazdev/assets/img/usa-icons/chevron_right.svg');
}

.feature-main > a {
  display: block;
  position: relative;
  width: 100%;
}

.feature-main > a > .feature-image {
  background-repeat: no-repeat;
  background-size: 100%;
  padding-bottom: 65%;
  width: 100%;
}

.feature-subfeatures,
.feature-subfeatures > .feature-item {
  margin-top: 0;
  padding-top: 0;
}

.feature-image {
  width: 300px;
}

figure {
  display: block;
  margin: 1em 0;
}

figure > img {
  border: 1px solid #ddd;
  padding: 0.5em;
}

figure > figcaption {
  display: block;
  font-size: 0.75em;
  margin-top: 1em;
}

@media screen and (min-width: 560px) {
  figure.right {
    float: right;
    margin-left: 1em;
    max-width: 50%;
  }

  figure.left {
    float: left;
    margin-right: 1em;
    max-width: 50%;
  }
}

.row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  margin-left: -1em;
}

.column {
  flex-basis: auto;
  padding-left: 1em;
}

.column,
.mobile-one-of-one {
  width: 100%;
}

.mobile-one-of-two,
.mobile-two-up > .column {
  width: 50%;
}

.mobile-one-of-three,
.mobile-three-up > .column {
  width: 33.33333%;
}

.mobile-two-of-three {
  width: 66.66667%;
}

.mobile-four-up > .column,
.mobile-one-of-four {
  width: 25%;
}

.mobile-two-of-four {
  width: 50%;
}

.mobile-three-of-four {
  width: 75%;
}

.mobile-five-up > .column,
.mobile-one-of-five {
  width: 20%;
}

.mobile-two-of-five {
  width: 40%;
}

.mobile-three-of-five {
  width: 60%;
}

.mobile-four-of-five {
  width: 80%;
}

@media print, screen and (min-width: 560px) {
  .row.right-to-left {
    flex-direction: row-reverse;
  }

  .one-of-one {
    width: 100%;
  }

  .one-of-two,
  .two-up > .column {
    width: 50%;
  }

  .one-of-three,
  .three-up > .column {
    width: 33.33333%;
  }

  .two-of-three {
    width: 66.66667%;
  }

  .four-up > .column,
  .one-of-four {
    width: 25%;
  }

  .two-of-four {
    width: 50%;
  }

  .three-of-four {
    width: 75%;
  }

  .five-up > .column,
  .one-of-five {
    width: 20%;
  }

  .two-of-five {
    width: 40%;
  }

  .three-of-five {
    width: 60%;
  }

  .four-of-five {
    width: 80%;
  }
}

ol.no-style,
ul.no-style {
  list-style: none;
  padding: 0;
}

ol.separator > li,
ul.separator > li {
  border-top: 1px solid #ddd;
  padding: 1em 0;
}

ol.separator > li:first-child,
ul.separator > li:first-child {
  border-top: none;
}

.linklist {
  margin-top: 0;
  padding: 0;
}

ul.no-style.linklist {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(
    auto-fit,
    minmax(min(100%, max(15rem, calc((100% - 2rem) / 3))), 1fr)
  );
}

.linklist > li {
  max-width: none;
  overflow: auto;
  padding: 1rem 0;
}

.linklist > li h2,
.linklist > li h3,
.linklist > li h4 {
  color: #0071bc;
  font-size: 1.125em;
  line-height: 1.3;
  margin: 0 0 -0.5rem;
  padding: 0;
}

.linklist > li h2:active,
.linklist > li h3:active,
.linklist > li h4:active {
  color: #205493;
}

.linklist > li a > img {
  float: left;
  margin: 0 1em 1em 0;
  padding-top: 1.3em;
}

.linklist > li:last-child {
  padding-bottom: 1rem;
}

li > ol,
li > ul {
  margin: 0;
}

dl {
  margin: 1em 0;
}

dl > dt {
  font-weight: 700;
}

dl.horizontal > dd,
dl.vertical > dd {
  margin: 0;
}

@media screen and (min-width: 560px) {
  dl.horizontal > dt {
    clear: left;
    float: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 10em;
  }

  dl.horizontal > dd {
    margin-left: 11em;
  }
}
