.digital-library {
  max-width: 1200px;
  margin: 0 auto;
  padding: 42px 24px 80px;
  color: #0d3047;
  font-family: "Inter Tight", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.5;
}
.digital-library * {
  box-sizing: border-box;
}
.digital-library h1 {
  font-family: Gelasio, Georgia, serif;
  font-weight: 600;
  font-size: clamp(36px, 4.5vw, 52px);
  line-height: 1.15;
  margin: 28px 0 16px;
  color: #101516;
}
.library-breadcrumb {
  font-size: 17px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.digital-library a {
  color: #0d3047;
}
.library-intro {
  margin: 0 0 24px;
  font-size: 20px;
}
.library-notice {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  justify-content: space-between;
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid #b53a2f;
  margin-bottom: 24px;
  font-size: 17px;
}
.library-search {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0;
}
.library-query {
  flex: 1 1 420px;
}
.library-format {
  flex: 0 1 240px;
}
.library-search label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}
.digital-library input[type="search"],
.digital-library select {
  appearance: auto;
  width: 100%;
  height: 48px;
  border: 1px solid #b6c0c5;
  border-radius: 4px;
  padding: 10px 12px;
  background: #f5f5f5;
  color: #172c37;
  font: inherit;
}
.library-search button {
  min-height: 48px;
  border: 0;
  border-radius: 3px;
  padding: 10px 22px;
  background: #0d3047;
  color: white;
  font: inherit;
  cursor: pointer;
}
.library-clear {
  padding: 12px 4px;
  text-decoration: underline;
}
.library-count {
  margin: 12px 0 28px;
  font-size: 17px;
}
.digital-library .library-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px 28px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.digital-library .library-card {
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.library-card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
.digital-library .library-card h2 {
  font:
    600 20px / 1.3 "Inter Tight",
    Arial,
    sans-serif;
  color: #0d3047;
  margin: 0 0 14px;
  min-height: 2.6em;
  overflow-wrap: anywhere;
}
.library-card-link:hover h2 {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.library-cover {
  aspect-ratio: 1;
  background: #f1f3f4;
  display: grid;
  place-items: center;
  padding: 8px;
}
.library-cover img {
  width: 100%;
  height: 100%;
  max-height: 260px;
  object-fit: contain;
}
.library-placeholder {
  display: grid;
  justify-items: center;
  gap: 16px;
  color: #526977;
  font-size: 16px;
}
.library-availability {
  font-size: 16px;
  font-weight: 600;
  margin: 12px 0 6px;
}
.library-excerpt {
  font-size: 16px;
  line-height: 1.55;
  color: #43545e;
  margin: 0;
}
.digital-library [hidden] {
  display: none !important;
}
.digital-library :is(a, button, input, select):focus-visible {
  outline: 3px solid #20679b;
  outline-offset: 4px;
}
@media (max-width: 1000px) {
  .digital-library .library-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .digital-library .library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
  }
  .library-query {
    flex-basis: 100%;
  }
}
@media (max-width: 480px) {
  .digital-library {
    padding: 24px 20px 48px;
  }
  .digital-library .library-grid {
    grid-template-columns: 1fr;
  }
  .library-card h2 {
    min-height: 0 !important;
  }
  .library-cover {
    aspect-ratio: 6 / 5;
  }
  .library-cover img {
    max-height: 280px;
  }
  .library-format {
    flex: 1 1 100%;
  }
}
