/*
##  Hero section
*/
.hero {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background-repeat: no-repeat;
  background-size: cover;
  width: 100%;
  max-width: 1500px;
  margin: auto;
  /* min-height: 400px; */
}

.hero .inner {
  padding: var(--p-xsml);
  position: absolute;
  width: 81%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: hsl(var(--clr-neutral) / 67%);
}

.hero .inner h1 {
  font-size: var(--fs-600);
  margin-bottom: 0;
  letter-spacing: var(--ls-2);
  text-align: center;
}

.hero .inner h2 {
  font-size: var(--fs-400);
  letter-spacing: var(--ls-2);
  text-align: center;
}

.hero .inner h3 {
  font-size: var(--fs-400);
  text-align: center;
}


.hero.support {
    max-width: 1500px;
    max-width: var(--viewportLarge);
    margin: auto;
    background-size: contain;
    background-color: #fff;
    background-position: center center;
    background-size: contain;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.hero.support > * {
    text-align: center;
}
.hero__text-container.opacity {
    background-color: hsl(var(--clr-neutral) / 90%);
    width: 100%;
    max-width: 800px;
}

.hero__text-container.learning.opacity {
    background-color: hsl(var(--clr-neutral) / 85%);
}

.hero__text-container {
    padding-left: 2rem;
    max-width: 60ch;
    text-wrap: balance;
}
.hero__title {
    margin-bottom: var(--mb-xsml);
}

.hero__title,
.hero__subtitle {
    line-height: 1.2;
    font-size: var(--fs-hero-heading);
    letter-spacing: var(--ls-1);
    font-weight: var(--fw-700);
    color: hsl(var(--clr-darkBlue));
}

.hero__subtitle {
    font-size: var(--fs-hero-subtitle);
    font-weight: var(--fw-400);
}

@media (min-width: 700px) {
    .hero {
        background-position: 30% center;
    }

    /* item type tab menu */
    .subthemes {
        margin-top: var(--mt-med);
    }

    .hero .inner {
        padding: var(--p-sml) 0;
    }

    .hero .inner h1 {
        font-size: var(--fs-600);
    }

    .hero .inner h3 {
        margin-top: var(--mt-sml);
        margin-bottom: var(--mb-sml);
    }

    .hero .inner {
        padding: var(--p-sml) 0;
    }

    .hero .inner h1 {
        font-size: var(--fs-600);
    }

    .hero .inner h3 {
        margin-top: var(--mt-sml);
        margin-bottom: var(--mb-sml);
    }
}

@media (min-width: 800px) {
    .hero {
        /* background-size: contain; */
    }
    .hero.support {
        background-size: cover;
    }
}

@media (min-width: 1200px) {
    .hero {
        background-position: center center;
        min-height: 450px;
    }

    .hero__text-container {
        padding-left: 3rem;
        max-width: 52ch;
    }
}

/*
##  Theme landing hero (template-parts/collection/hero.php)
    Height, type and spacing scale with the viewport; the title and tagline
    bars sit bottom-left so they don't cover the middle of the photo.
*/
.hero.hero--theme {
  position: relative;
  align-items: flex-end;
  min-height: 0;
  padding: clamp(1rem, 3vw, 3rem);
  background-position: 20% 40%;
}

.hero--theme.hero--has-image {
  min-height: clamp(260px, 30vw + 120px, 520px);
}

.hero--theme .hero__text-container {
  padding: 0;
  max-width: min(100%, 36rem);
}

/* Inline so each wrapped line gets its own snug bar */
.hero--theme .theme.page-title {
  display: inline;
  margin: 0;
  padding: 0.1em 0.45em;
  font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.75rem);
  line-height: 1.4;
  letter-spacing: clamp(1px, 0.25vw, 4px);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero--theme .theme-tagline.subtheme {
  display: block;
  width: fit-content;
  max-width: calc(100% - clamp(0.75rem, 3vw, 2.5rem));
  margin: 0 0 0 clamp(0.75rem, 3vw, 2.5rem);
  padding: 0.3em 0.75em;
  font-size: clamp(0.95rem, 0.85rem + 0.35vw, 1.15rem);
  letter-spacing: var(--ls-1);
  line-height: 1.35;
}
