.report-library-page {
  margin: 0;
  color: #0a0a0a;
  background: #fff;
  font-family: var(--atiemppo-sans);
  line-height: 1.6;
}

.report-wrap {
  width: min(1232px, calc(100% - 64px));
  margin-inline: auto;
}

.report-library-intro {
  padding-block: clamp(24px, 4vw, 40px) 20px;
}

.report-library-intro h1 {
  margin: 0 0 12px;
  color: #0a0a0a;
  font: 500 clamp(2.25rem, 5vw, 4.25rem)/1.02 var(--atiemppo-sans);
  letter-spacing: -.045em;
}

.report-library-intro p {
  max-width: 68ch;
  margin: 0;
  color: #6b6b6b;
  font-size: 17px;
}

.report-library-links,
.report-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
  margin-top: 12px;
}

.report-library-page .report-text-link {
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  min-height: 44px;
  color: #0a0a0a;
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.report-viewer {
  overflow: hidden;
  border: 1px solid #dadada;
  border-radius: 12px;
  background: #f5f5f5;
}

.report-viewer-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid #dadada;
}

.report-viewer-select {
  flex: 1 1 420px;
  max-width: 590px;
  min-width: 0;
}

.report-viewer-select label,
.report-sort label {
  display: block;
  margin-bottom: 4px;
  color: #333;
  font-size: 14px;
  font-weight: 600;
}

.report-viewer-select select,
.report-sort select {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #888;
  border-radius: 8px;
  background: #fff;
  color: #0a0a0a;
  font: inherit;
}

.report-library-page .report-button {
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid #888;
  border-radius: 999px;
  background: #fff;
  color: #0a0a0a;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.report-library-page .report-button--primary {
  margin-left: auto;
  border-color: #0a0a0a;
  background: #0a0a0a;
  color: #fff;
}

.report-library-page .report-button:hover,
.report-library-page .report-text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.report-library-page main :is(a, select, iframe):focus-visible {
  outline: 2px solid #0a0a0a;
  outline-offset: 3px;
}

.report-frame {
  display: block;
  width: 100%;
  height: clamp(460px, 62vh, 620px);
  border: 0;
  background: #fff;
}

.report-library-page main .report-frame:focus-visible {
  outline-offset: -4px;
}

.report-viewer-copy {
  padding: 20px 24px;
  border-top: 1px solid #dadada;
}

.report-viewer-copy h2,
.report-catalog h2 {
  margin: 0 0 6px;
  color: #0a0a0a;
  font: 500 clamp(1.55rem, 3vw, 2.25rem)/1.15 var(--atiemppo-sans);
  letter-spacing: -.03em;
}

.report-catalog {
  padding-block: 48px 64px;
}

.report-count {
  color: #6b6b6b;
  font-size: .68em;
}

.report-viewer-copy p,
.report-catalog p {
  margin: 0;
  color: #6b6b6b;
}

.report-catalog-toolbar {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px 24px;
  margin-top: 16px;
}

.report-catalog-toolbar .report-library-links {
  margin-top: 0;
}

.report-sort {
  min-width: min(200px, 100%);
}

.report-catalog-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.report-catalog-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 24px;
  border: 1px solid #dadada;
  border-radius: 12px;
  background: #fff;
}

.report-catalog-card:has([aria-current="true"]) {
  border-color: #0a0a0a;
  background: #f5f5f5;
}

.report-catalog-card h3 {
  margin: 0;
  font: 600 21px/1.25 var(--atiemppo-sans);
}

.report-catalog-card .report-card-category {
  font-size: 14px;
  font-weight: 600;
}

.report-card-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 4px 0 0;
  font-size: 14px;
}

.report-card-dates dt {
  color: #6b6b6b;
}

.report-card-dates dd {
  margin: 0;
  color: #0a0a0a;
  font-weight: 600;
}

.report-card-actions {
  flex: 1;
  align-content: end;
  margin-top: 8px;
}

.report-library-page .report-about {
  padding-block: 48px;
  background: #151515;
  color: #fff;
}
.report-about h2 {
  margin: 0 0 12px;
  font: 500 clamp(1.65rem, 4vw, 3rem)/1.12 var(--atiemppo-sans);
}
.report-about p {
  max-width: 65ch;
  margin: 0 0 18px;
  color: #ddd;
}

.report-library-page .report-about a:focus-visible {
  outline-color: #fff;
}

@media (max-width: 680px) {
  .report-wrap {
    width: calc(100% - 32px);
  }

  .report-library-intro {
    padding-block: 20px 12px;
  }

  .report-library-intro p {
    font-size: 16px;
  }

  .report-viewer-heading {
    gap: 8px;
    padding: 12px 16px;
  }

  .report-viewer-copy,
  .report-catalog-card {
    padding: 16px;
  }

  .report-viewer-heading .report-button--primary {
    margin-left: 0;
  }

  .report-frame {
    height: 440px;
  }

  .report-catalog-list {
    grid-template-columns: minmax(0, 1fr);
  }
}
