/* Temporary document-library redesign preview. Keep all styling scoped so the
   production documents archive and other custom pages remain unchanged. */
.hpm-documents-new__banner {
  min-height: 330px;
  background-position: center 45%;
  position: relative;
}

.hpm-documents-new__banner::before {
  background: linear-gradient(115deg, rgba(24, 30, 27, .86), rgba(24, 30, 27, .54) 62%, rgba(24, 30, 27, .3));
  content: "";
  inset: 0;
  position: absolute;
}

.hpm-documents-new__banner .banner__content {
  position: relative;
  z-index: 1;
}

.hpm-documents-new__eyebrow,
.hpm-documents-new__results-kicker {
  color: #17b7b0;
  display: inline-block;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1.3;
  text-transform: uppercase;
}

.hpm-documents-new__banner h1 {
  margin-bottom: .8rem;
}

.hpm-documents-new__intro {
  color: rgba(255,255,255,.86);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0 auto 1.25rem;
  max-width: 720px;
}

.hpm-documents-new__summary {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: center;
  margin: 0 0 1rem;
}

.hpm-documents-new__summary span {
  align-items: center;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: .85rem;
  gap: .35rem;
  padding: .45rem .9rem;
}

.hpm-documents-new__summary strong {
  color: #fff;
  font-size: 1rem;
}

.hpm-documents-new {
  background: #f7f6f2;
  padding: 2.5rem 0 4.5rem;
}

.hpm-documents-new__section {
  padding-bottom: 0;
  padding-top: 0;
}

.hpm-documents-new__note {
  align-items: center;
  background: #e7f7f5;
  border: 1px solid #cdece8;
  border-radius: 14px;
  color: #315b58;
  display: flex;
  gap: .8rem;
  margin-bottom: 1.25rem;
  padding: .85rem 1.1rem;
}

.hpm-documents-new__note-icon {
  align-items: center;
  background: #fff;
  border-radius: 50%;
  color: #00aaa6;
  display: inline-flex;
  flex: 0 0 2.35rem;
  font-size: 1.25rem;
  height: 2.35rem;
  justify-content: center;
}

.hpm-documents-new__note p {
  line-height: 1.5;
  margin: 0;
}

.hpm-documents-new__filters {
  align-items: end;
  background: #fff;
  border: 1px solid #e5e1d9;
  border-radius: 20px;
  box-shadow: 0 12px 34px rgba(40, 35, 26, .06);
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(240px, 2fr) minmax(175px, 1fr) minmax(145px, .8fr) auto;
  margin-bottom: 2.5rem;
  padding: 1.25rem;
}

.hpm-documents-new__search,
.hpm-documents-new__select {
  display: grid;
  gap: .45rem;
  margin: 0;
  min-width: 0;
}

.hpm-documents-new__search > span,
.hpm-documents-new__select > span {
  color: #29261f;
  font-size: .82rem;
  font-weight: 700;
}

.hpm-documents-new__search input,
.hpm-documents-new__select select {
  background-color: #fff;
  border: 1px solid #dcd8d0;
  border-radius: 9px;
  color: #29261f;
  font: inherit;
  height: 48px;
  min-width: 0;
  padding: 0 .9rem;
  width: 100%;
}

.hpm-documents-new__search input:focus,
.hpm-documents-new__select select:focus {
  border-color: #00aaa6;
  box-shadow: 0 0 0 3px rgba(0,170,166,.14);
  outline: none;
}

.hpm-documents-new__filter-actions {
  align-items: center;
  display: flex;
  gap: .8rem;
  white-space: nowrap;
}

.hpm-documents-new__filter-actions .btn {
  min-height: 48px;
  padding-left: 1.15rem;
  padding-right: 1.15rem;
}

.hpm-documents-new__reset {
  color: #4c5654;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
}

.hpm-documents-new__reset:hover,
.hpm-documents-new__reset:focus-visible {
  color: #008f8a;
  text-decoration: underline;
}

.hpm-documents-new__results-head {
  align-items: end;
  border-bottom: 1px solid #dedbd4;
  display: flex;
  justify-content: space-between;
  margin: 0 0 1rem;
  padding: 0 0 .9rem;
}

.hpm-documents-new__results-head h2 {
  color: #29261f;
  font-family: var(--heading-font);
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  line-height: 1.2;
  margin: .35rem 0 0;
}

.hpm-documents-new__result-count {
  align-items: center;
  background: #fff;
  border: 1px solid #dedbd4;
  border-radius: 999px;
  color: #5b625f;
  display: inline-flex;
  font-size: .85rem;
  font-weight: 700;
  height: 2.4rem;
  justify-content: center;
  min-width: 2.4rem;
  padding: 0 .75rem;
}

.hpm-documents-new__list {
  display: grid;
  gap: .9rem;
}

.hpm-documents-new__card {
  background: #fff;
  border: 1px solid #e5e1d9;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(40, 35, 26, .035);
  padding: 1.25rem 1.4rem;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.hpm-documents-new__card:hover {
  border-color: #b8e3df;
  box-shadow: 0 12px 28px rgba(40, 35, 26, .075);
  transform: translateY(-1px);
}

.hpm-documents-new__card-top {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  justify-content: space-between;
  margin-bottom: .75rem;
}

.hpm-documents-new__type,
.hpm-documents-new__version-count {
  border-radius: 999px;
  display: inline-flex;
  font-size: .73rem;
  font-weight: 750;
  line-height: 1.35;
  padding: .35rem .7rem;
}

.hpm-documents-new__type {
  background: #e5f6f4;
  color: #008d88;
}

.hpm-documents-new__version-count {
  background: #f4f2ed;
  color: #66645d;
}

.hpm-documents-new__card-main {
  display: grid;
  gap: 1rem;
}

.hpm-documents-new__card-copy h3 {
  color: #29261f;
  font-family: var(--heading-font);
  font-size: 1.22rem;
  line-height: 1.35;
  margin: 0;
}

.hpm-documents-new__card-copy p {
  color: #69716e;
  font-size: .9rem;
  line-height: 1.55;
  margin: .45rem 0 0;
}

.hpm-documents-new__group-link {
  align-items: center;
  color: #008d88;
  display: inline-flex;
  font-size: .84rem;
  font-weight: 750;
  gap: .45rem;
  margin-top: .8rem;
  text-decoration: none;
}

.hpm-documents-new__group-link:hover,
.hpm-documents-new__group-link:focus-visible {
  color: #006e6a;
  text-decoration: underline;
}

.hpm-document-family-new__back {
  align-items: center;
  color: #008d88;
  display: inline-flex;
  font-size: .9rem;
  font-weight: 750;
  gap: .45rem;
  margin-bottom: 1rem;
  text-decoration: none;
}

.hpm-document-family-new__back:hover,
.hpm-document-family-new__back:focus-visible {
  color: #006e6a;
  text-decoration: underline;
}

.hpm-document-family-new__editor-tools {
  align-items: center;
  display: flex;
  gap: .85rem;
  margin: 0 0 1.25rem;
}

.hpm-document-family-new__editor-tools > span {
  color: #626864;
  font-size: .78rem;
  line-height: 1.5;
}

.hpm-document-family-new__editor-tools form {
  margin: 0;
}

.hpm-document-family-new__edit-version {
  color: #008d88;
  font-size: .82rem;
  font-weight: 750;
  text-decoration: none;
}

.hpm-document-family-new__edit-version:hover,
.hpm-document-family-new__edit-version:focus-visible {
  color: #006e6a;
  text-decoration: underline;
}

.hpm-document-family-new__card {
  margin-top: .25rem;
  padding: clamp(1.25rem, 3vw, 2.25rem);
}

.hpm-document-family-new__excerpt {
  color: #626864;
  font-size: 1rem;
  line-height: 1.7;
  margin: .75rem 0 1.5rem;
  max-width: 75ch;
}

.hpm-document-family-new__versions-heading {
  color: #29261f;
  font-family: var(--heading-font);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  line-height: 1.25;
  margin: 1.25rem 0 .8rem;
}

.hpm-document-family-new__versions {
  border-top: 0;
  padding-top: 0;
}

.hpm-documents-new__versions {
  border-top: 1px solid #eeece7;
  display: grid;
  gap: .55rem;
  padding-top: .7rem;
}

.hpm-documents-new__version {
  align-items: center;
  background: #faf9f6;
  border: 1px solid #f0eee8;
  border-radius: 10px;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  min-width: 0;
  padding: .7rem .8rem .7rem .95rem;
}

.hpm-documents-new__version-copy {
  display: grid;
  gap: .2rem;
  min-width: 0;
}

.hpm-documents-new__version-date {
  color: #008d88;
  font-size: .77rem;
  font-weight: 750;
}

.hpm-documents-new__version-title {
  color: #626864;
  font-size: .85rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.hpm-documents-new__download {
  align-items: center;
  background: #fff;
  border: 1px solid #b9e2de;
  border-radius: 8px;
  color: #008d88;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: .8rem;
  font-weight: 750;
  gap: .45rem;
  justify-content: center;
  min-height: 38px;
  padding: .4rem .7rem;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.hpm-documents-new__download i {
  font-size: 1rem;
  transform: rotate(45deg);
}

.hpm-documents-new__download:hover,
.hpm-documents-new__download:focus-visible {
  background: #00aaa6;
  border-color: #00aaa6;
  color: #fff;
}

.hpm-documents-new__pagination {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.75rem;
}

.hpm-documents-new__pagination > span {
  color: #68706d;
  font-size: .9rem;
}

.hpm-documents-new__page-link {
  background: #fff;
  border: 1px solid #dedbd4;
  border-radius: 8px;
  color: #008d88;
  font-size: .88rem;
  font-weight: 700;
  padding: .55rem .85rem;
  text-decoration: none;
}

.hpm-documents-new__page-link:hover,
.hpm-documents-new__page-link:focus-visible {
  background: #00aaa6;
  border-color: #00aaa6;
  color: #fff;
}

.hpm-documents-new__empty {
  background: #fff;
  border: 1px dashed #d6d1c7;
  border-radius: 16px;
  padding: 3rem 1.25rem;
  text-align: center;
}

.hpm-documents-new__empty > span {
  align-items: center;
  background: #e5f6f4;
  border-radius: 50%;
  color: #008d88;
  display: inline-flex;
  font-size: 1.45rem;
  height: 3.4rem;
  justify-content: center;
  margin-bottom: .65rem;
  width: 3.4rem;
}

.hpm-documents-new__empty h3 {
  color: #29261f;
  font-family: var(--heading-font);
  font-size: 1.25rem;
  margin: 0 0 .35rem;
}

.hpm-documents-new__empty p {
  color: #69716e;
  margin: 0;
}

@media (max-width: 991.98px) {
  .hpm-documents-new__filters {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .hpm-documents-new__search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 575.98px) {
  .hpm-documents-new__banner {
    min-height: 320px;
  }

  .hpm-documents-new__intro {
    font-size: .95rem;
  }

  .hpm-documents-new__filters {
    border-radius: 15px;
    gap: .8rem;
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .hpm-documents-new__search {
    grid-column: auto;
  }

  .hpm-documents-new__filter-actions {
    justify-content: space-between;
  }

  .hpm-documents-new__card {
    padding: 1rem;
  }

  .hpm-documents-new__version {
    align-items: flex-start;
    flex-direction: column;
    gap: .65rem;
  }

  .hpm-document-family-new__editor-tools {
    flex-direction: column;
    align-items: flex-start;
  }

  .hpm-document-family-new__editor-tools form,
  .hpm-document-family-new__editor-tools .btn {
    width: 100%;
  }

  .hpm-documents-new__download {
    width: 100%;
  }
}
