/* Control Alt Access resource library additions */
.resources-intro,
.resource-main {
  max-width: 72rem;
  margin-inline: auto;
}

.resource-library {
  max-width: 72rem;
  margin: 2rem auto;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.resource-card,
.coming-soon,
.resource-toc,
.alternate-formats,
.related-resources {
  border: 1px solid currentColor;
  border-radius: 1rem;
  padding: 1rem;
  background: color-mix(in srgb, Canvas 92%, currentColor 8%);
}

.resource-card h3 {
  margin-top: 0;
}

.resource-card-meta,
.resource-meta,
.eyebrow,
.breadcrumb {
  font-size: 0.95rem;
}

.resource-card-meta,
.resource-meta,
.eyebrow {
  font-weight: 700;
}

.resource-article {
  max-width: 65rem;
  margin: 2rem auto;
  padding-inline: 1rem;
}

.resource-header {
  margin-bottom: 2rem;
}

.resource-summary {
  font-size: 1.15rem;
}

.resource-content {
  line-height: 1.65;
}

.resource-content table {
  width: 100%;
  border-collapse: collapse;
  margin-block: 1rem 2rem;
}

.resource-content th,
.resource-content td {
  border: 1px solid currentColor;
  padding: 0.6rem;
  vertical-align: top;
}

.resource-content th {
  font-weight: 700;
}

.resource-content code {
  overflow-wrap: anywhere;
}

.resource-toc {
  margin-bottom: 2rem;
}

.resource-actions {
  margin-top: 1rem;
}

.print-button {
  font: inherit;
  cursor: pointer;
  border: 0;
}

.alternate-formats,
.related-resources {
  margin-top: 2rem;
}

@media print {
  .site-header,
  .site-footer,
  .skip-link,
  .resource-actions,
  .breadcrumb,
  .resource-toc,
  .related-resources {
    display: none !important;
  }

  body {
    background: #fff !important;
    color: #000 !important;
  }

  .resource-article {
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .resource-card,
  .coming-soon,
  .alternate-formats {
    border: 1px solid #000;
    background: #fff !important;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.9em;
  }

  h1, h2, h3 {
    break-after: avoid;
  }

  table {
    break-inside: avoid;
  }
}
