/* Paginated protected-vulnerability library. Common layout, type, navigation,
   hero, CTA, and footer styles come from the enterprise stylesheets. */

.cve-library-hero {
  padding-bottom: 76px;
}

.cve-library-hero .docs-hero-grid {
  align-items: center;
  margin-bottom: 58px;
}

.cve-library-hero h1 {
  max-width: 820px;
}

.library-count {
  display: block;
  margin-bottom: 7px;
  color: var(--mint);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.cve-library-hero .hero-recommendation h2 {
  margin-bottom: 10px;
}

.library-proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid rgba(167, 210, 233, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.library-proof-strip span {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 19px 22px;
  color: #b8cbd7;
  border-right: 1px solid rgba(167, 210, 233, 0.12);
  font-weight: 750;
}

.library-proof-strip span:last-child {
  border-right: 0;
}

.library-proof-strip .icon {
  width: 18px;
  flex: 0 0 auto;
  color: #63dc91;
}

.cve-library {
  padding: 104px 0 118px;
  color: var(--text-dark);
  background: var(--paper);
}

.library-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 42px;
}

.library-heading h2 {
  max-width: 760px;
  margin: 0;
  font-weight: 790;
  letter-spacing: -0.055em;
  line-height: 1;
}

.library-heading > p {
  flex: 0 0 auto;
  margin: 0 0 5px;
  color: #6d808d;
}

.library-scope-note {
  display: grid;
  grid-template-columns: 25px 1fr;
  gap: 14px;
  align-items: start;
  margin-bottom: 28px;
  padding: 19px 21px;
  border: 1px solid #c9e1ec;
  border-radius: 15px;
  color: #466476;
  background: #edf7fb;
}

.library-scope-note .icon {
  width: 22px;
  margin-top: 2px;
  color: #218bc9;
}

.library-scope-note p {
  margin: 0;
}

.library-scope-note strong {
  color: #173d54;
}

.vulnerability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.vulnerability-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid #d9e3e9;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(7, 19, 34, 0.055);
  transition: border-color 170ms ease, box-shadow 170ms ease, transform 170ms ease;
}

.vulnerability-card:hover {
  border-color: #b8d8e7;
  box-shadow: 0 25px 62px rgba(7, 19, 34, 0.09);
  transform: translateY(-2px);
}

.vulnerability-card-top,
.vulnerability-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
}

.vulnerability-card-top {
  align-items: center;
  margin-bottom: 23px;
}

.vulnerability-card-top time {
  color: #71848f;
  font-weight: 700;
}

.severity-label {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.severity-critical {
  color: #a73531;
  background: #ffe4e2;
}

.severity-high {
  color: #96570e;
  background: #ffefd4;
}

.severity-medium {
  color: #776000;
  background: #fff6c8;
}

.severity-low,
.severity-unrated {
  color: #356474;
  background: #e4f2f7;
}

.cve-number {
  display: block;
  margin-bottom: 6px;
  color: #218bc9;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.vulnerability-card h2 {
  margin: 0;
  color: #132e41;
  font-weight: 790;
  letter-spacing: -0.035em;
  line-height: 1.18;
}

.vulnerability-card h2 a:hover {
  color: #1475a8;
}

.cvss-chip {
  min-width: 68px;
  flex: 0 0 auto;
  padding: 8px 10px;
  border: 1px solid #efd1cf;
  border-radius: 12px;
  color: #8e302d;
  background: #fff6f5;
  text-align: center;
}

.cvss-chip small,
.cvss-chip strong {
  display: block;
}

.cvss-chip small {
  margin-bottom: 2px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.cvss-chip strong {
  line-height: 1;
}

.vulnerability-summary {
  margin: 24px 0;
  color: #536a79;
  line-height: 1.72;
}

.vulnerability-facts {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  margin: 0 0 20px;
  border: 1px solid #e0e8ed;
  border-radius: 13px;
  background: #f8fafc;
}

.vulnerability-facts div {
  min-width: 0;
  padding: 14px 16px;
  border-right: 1px solid #e0e8ed;
}

.vulnerability-facts div:last-child {
  border-right: 0;
}

.vulnerability-facts dt {
  margin-bottom: 3px;
  color: #7c8e99;
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.vulnerability-facts dd {
  margin: 0;
  color: #2f4b5d;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.protection-summary {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: center;
  margin-top: auto;
  padding: 15px 17px;
  border: 1px solid #c7e6d3;
  border-radius: 14px;
  color: #194d38;
  background: #effaf3;
}

.protection-summary > .icon {
  width: 25px;
  color: #15915b;
}

.protection-summary small,
.protection-summary strong {
  display: block;
}

.protection-summary small {
  margin-bottom: 2px;
  color: #4a7d67;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.card-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 7px;
  margin-top: 20px;
  color: #1475a8;
  font-weight: 850;
}

.card-link .icon {
  width: 16px;
  transition: transform 160ms ease;
}

.card-link:hover .icon {
  transform: translateX(3px);
}

.pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 46px;
}

.page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.page-number,
.page-direction {
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d6e1e7;
  border-radius: 999px;
  color: #385567;
  background: #fff;
  font-weight: 800;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.page-direction {
  min-width: 112px;
  padding: 0 17px;
}

.page-direction:last-child {
  justify-self: end;
}

.page-number:hover,
.page-direction:hover,
.page-number.is-current {
  color: #fff;
  border-color: #167bb3;
  background: #167bb3;
}

.page-number.is-current {
  pointer-events: none;
}

.page-direction.is-disabled {
  color: #9aa8b0;
  background: #edf1f4;
  pointer-events: none;
}

.page-status {
  margin: 12px 0 0;
  color: #7b8c97;
  text-align: center;
}

@media (max-width: 900px) {
  .library-heading {
    display: block;
  }

  .library-heading > p {
    margin-top: 18px;
  }

  .vulnerability-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .library-proof-strip {
    grid-template-columns: 1fr;
  }

  .library-proof-strip span,
  .library-proof-strip span:last-child {
    border-right: 0;
    border-bottom: 1px solid rgba(167, 210, 233, 0.12);
  }

  .library-proof-strip span:last-child {
    border-bottom: 0;
  }

  .pagination {
    grid-template-columns: 1fr 1fr;
  }

  .page-numbers {
    grid-column: 1 / -1;
    grid-row: 1;
  }
}

@media (max-width: 560px) {
  .cve-library-hero {
    padding-bottom: 58px;
  }

  .cve-library-hero .docs-hero-grid {
    margin-bottom: 40px;
  }

  .cve-library {
    padding: 72px 0 80px;
  }

  .vulnerability-card {
    padding: 23px 20px;
    border-radius: 18px;
  }

  .vulnerability-card-heading {
    gap: 13px;
  }

  .cvss-chip {
    min-width: 60px;
  }

  .vulnerability-facts {
    grid-template-columns: 1fr;
  }

  .vulnerability-facts div,
  .vulnerability-facts div:last-child {
    border-right: 0;
    border-bottom: 1px solid #e0e8ed;
  }

  .vulnerability-facts div:last-child {
    border-bottom: 0;
  }

  .page-direction {
    min-width: 0;
  }
}
