.documents {
  min-width: 0;
}

.document-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  margin: 0 0 0.8rem;
}

.document-toolbar .document-toolbar__title {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 1.05rem;
  line-height: 1.4;
}

.document-toolbar__links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
}

.documents a {
  color: var(--site-link, #8fbcd6);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.documents a:focus-visible {
  outline: 2px solid var(--site-link, #8fbcd6);
  outline-offset: 4px;
}

.documents a.document-toolbar__download {
  display: inline-block;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--site-border, #43474e);
  border-radius: 0.25rem;
  font-weight: 600;
  text-decoration: none;
}

.documents a.document-toolbar__download:hover {
  background: var(--site-surface, #27292d);
}

.document-frame {
  display: block;
  width: 100%;
  height: 75vh;
  min-height: 440px;
  max-height: 1050px;
  margin: 0;
  border: 1px solid var(--site-border, #43474e);
  border-radius: 0.2rem;
  background: #fff;
  color-scheme: light;
}

.documents__help {
  color: var(--site-muted, #aab0b7);
  font-size: 0.85em;
  line-height: 1.6;
  margin-top: 0.8rem;
}

@media (max-width: 480px) {
  .document-frame {
    height: 65vh;
    min-height: 380px;
  }
}

@media print {
  .document-frame {
    display: none;
  }
}
