.ap-document-trigger {
  cursor: pointer;
}

#site-footer .ap-footer-brand-name.ap-document-trigger {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: .18em;
  transition: text-decoration-color 160ms ease;
}

#site-footer .ap-footer-brand-name.ap-document-trigger:hover,
#site-footer .ap-footer-brand-name.ap-document-trigger:focus-visible {
  text-decoration-color: currentColor;
}

.ap-page-footer-index .ap-footer-brand-name.ap-document-trigger {
  color: inherit;
  text-decoration: none;
}

.ap-home-entrance__brand-mark.ap-document-trigger {
  color: inherit;
  text-decoration: none;
}

.ap-copyright.ap-document-trigger {
  color: inherit;
  text-decoration: none;
}

.ap-document-modal {
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #101b35;
}

.ap-document-modal::backdrop {
  background: rgba(16, 27, 53, .56);
}

.ap-document-modal__panel {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background: transparent;
}

.ap-document-modal--trademark {
  width: min(calc(100vw - 32px), 65vh);
  height: 92vh;
}

.ap-document-modal--california {
  width: min(calc(100vw - 32px), 71vh);
  height: 92vh;
}

.ap-document-modal__viewer {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 640px) {
  .ap-document-modal {
    width: calc(100vw - 20px);
    height: auto;
  }

  .ap-document-modal--trademark {
    aspect-ratio: 595.275 / 841.875;
  }

  .ap-document-modal--california {
    aspect-ratio: 612 / 792;
  }

}
