/* Local PDF previews, restored map and partner graphics. */
.video-embed {
  position: relative;
  min-height: 200px;
  background: #111;
}

.video-embed iframe, .video-launch {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-launch {
  display: grid;
  place-items: center;
  text-decoration: none;
  background: #fff;
}

.video-launch > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-play {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  padding-left: 4px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #292929;
  color: #fff;
  box-shadow: 0 0 0 7px #ffffff90;
  transition: transform .2s;
}

.video-launch:hover .video-play {
  transform: scale(1.08);
}

.video-launch:focus-visible {
  outline: 3px solid #292929;
  outline-offset: -6px;
}

.video-label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 1;
  padding: 6px 12px;
  background: #fff;
  color: #292929;
  border: 1px solid #ddd;
  font-size: 11px;
}

.video-caption {
  text-align: center;
  padding: 12px;
  margin: 0;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

.social-links svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.contact-social {
  margin: 10px 0 20px;
}

.contact-map {
  margin-top: 20px;
}

.contact-map iframe {
  width: 100%;
  height: 410px;
  border: 0;
  background: #efefed;
  display: block;
}

.contact-map .button {
  margin-top: 18px;
}

.contact-map > .text-link {
  margin: 12px 14px;
}

.footer-partners {
  margin: 48px auto 0;
  max-width: var(--site-max-width);
}

.footer-partner-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-partner-grid li {
  position: relative;
  min-height: 0;
  min-width: 0;
  aspect-ratio: 3/2;
  display: grid;
  place-items: center;
}

.footer-partner-grid img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: 85px;
  object-fit: contain;
}

.document-viewer {
  border: 1px solid #c9c9c7;
  background: #f4f4f1;
  color: #202020;
  width: 100%;
  min-width: 0;
}

.document-print-note {
  display: none;
}

.document-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 14px;
  background: #fff;
  border-bottom: 1px solid #d4d4d2;
}

.document-pages {
  display: flex;
  align-items: center;
  gap: 14px;
}

.document-pages output {
  white-space: nowrap;
  font-size: .85rem;
}

.document-pages button {
  color: #272727;
  background: #eee;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.document-pages button:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.document-zoom {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: .85rem;
}

.document-zoom select {
  min-height: 44px;
  padding: 6px;
  border: 1px solid var(--control-border, #858580);
  background: #fff;
  color: #222;
  max-width: 130px;
}

.document-actions {
  display: flex;
  gap: 10px;
  margin-left: auto;
  flex-wrap: wrap;
}

.document-file-details {
  flex-basis: 100%;
  font-size: .875rem;
}

.document-actions .button {
  font-size: .82rem;
  padding: 12px 16px;
  min-height: 44px;
  background: var(--button);
  color: #fff;
}

.document-stage {
  padding: 12px;
  height: min(75vh, 720px);
  overflow: auto;
  min-height: 180px;
  scrollbar-gutter: stable;
}

.document-stage:focus-visible {
  outline-offset: -4px;
}

.document-stage canvas {
  display: block;
  background: white;
  margin: 0 auto;
  max-width: none;
  box-shadow: 0 1px 5px #0002;
}

.document-stage canvas[hidden], .document-status[hidden], .document-text[hidden], [data-pdf-retry][hidden] {
  display: none;
}

.document-status {
  padding: 28px 12px;
  text-align: center;
}

.document-text {
  background: #fff;
  border-top: 1px solid #ddd;
  padding: 14px;
}

.document-text summary {
  font-weight: 500;
  padding: 5px 0;
}

.document-text p {
  white-space: pre-line;
  text-align: left;
  margin: 20px 0 0;
}

.grid-item > .document-viewer {
  height: auto;
}

@media (max-width: 899px) {
  .footer-partner-grid {
    grid-template-columns: repeat(4,minmax(0,1fr));
  }

}

@media (max-width: 600px) {
  .footer-partner-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 18px;
  }

  .document-toolbar {
    gap: 12px;
    padding: 10px;
  }

  .document-pages {
    justify-content: space-between;
    width: 100%;
    gap: 8px;
  }

  .document-pages button {
    padding: 8px;
    flex-shrink: 0;
  }

  /* Loading and error messages are longer than a page number on small phones. */
  .document-pages output {
    flex: 1;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
  }

  .document-actions {
    margin-left: 0;
    width: 100%;
  }

  .document-zoom select {
    /* Match form inputs so choosing a zoom level does not zoom the page on iOS. */
    font-size: 1rem;
  }

  .document-actions .button {
    flex: 1;
  }

  .document-stage {
    padding: 8px;
    height: min(70vh, 620px);
  }

  .contact-map iframe {
    height: 320px;
  }

}
