/*---*\
Page Header
Breadcrumbs, H1, and intro for Flexible Content pages (e.g. Resource Library).

KEY FEATURES:
- Mobile: compact type and 22px side padding
- Desktop (1200px+): large H1, 64px side padding, intro capped at 1000px
- Breadcrumb links use brand blue; current page is body text color

IMPLEMENTATION NOTES:
- Renders from template-parts/page-header.php when Show Page Header is on
- Uses a div (not header) so global base.css header { position: fixed } and
  myscript.js $('header').addClass('hdr-ini') do not pull it over the site nav
- Title selectors beat the global base.css h1 { color: white } rule
\*---*/

.page-header-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin: 0;
  padding: 24px 22px 0;
}

.page-header-block__breadcrumbs {
  max-width: 100%;
  overflow: hidden;
}

.page-header-block__crumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: AeonikMedium, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}

.page-header-block__crumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-header-block__crumb-link {
  color: var(--blue);
  text-decoration: none;
}

.page-header-block__crumb-link:hover,
.page-header-block__crumb-link:focus-visible {
  text-decoration: underline;
}

.page-header-block__crumb-link:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.page-header-block__crumb-sep {
  color: var(--blue);
}

.page-header-block__crumb-current {
  color: var(--black);
}

.page-header-block h1.page-header-block__title {
  margin: 0;
  color: var(--black);
  font-family: AeonikMedium, sans-serif;
  font-size: 36px;
  font-weight: 500;
  line-height: 1;
}

.page-header-block p.page-header-block__intro {
  margin: 0;
  max-width: 100%;
  color: var(--black);
  font-family: AeonikMedium, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .page-header-block {
    gap: 16px;
    padding-top: 36px;
  }

  .page-header-block h1.page-header-block__title {
    font-size: clamp(48px, 8vw, 80px);
  }

  .page-header-block p.page-header-block__intro {
    font-size: 18px;
  }
}

@media (min-width: 1200px) {
  .page-header-block {
    gap: 20px;
    padding: 52px 64px 0;
  }

  .page-header-block__crumb-list {
    gap: 12px;
    font-size: 20px;
    line-height: 1.6;
  }

  .page-header-block__crumb {
    gap: 12px;
  }

  .page-header-block h1.page-header-block__title {
    font-size: clamp(80px, 6.25vw, 120px);
  }

  .page-header-block p.page-header-block__intro {
    max-width: 1000px;
    font-size: 22px;
  }
}
