/* PDF access in the specification reader; download URLs stay native links. */
.home-download-pdf {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid #bd0028;
  border-radius: 7px;
  background: #c9002e;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 3px 9px #73051c16;
  transition: background-color .15s, box-shadow .15s;
}
.home-download-pdf svg { width: 18px; height: 18px; flex: 0 0 18px; }
.home-download-pdf:hover { background: #af0029; box-shadow: 0 4px 12px #73051c23; }
.home-download-pdf:focus-visible { outline: 2px solid #97102a; outline-offset: 4px; }

/* Below this width, reserve a row so the button cannot collide with the title. */
@media (max-width: 1000px) {
  .spec-home {
    grid-template-rows: auto auto auto minmax(0, 1fr) auto;
    min-height: 636px;
  }
  .home-download-pdf {
    position: static;
    justify-self: end;
    align-self: start;
    margin: -7px -5px 0 0;
  }
}
@media (min-width: 1600px) {
  .home-download-pdf { top: 24px; right: 40px; }
}
@media (max-width: 800px) {
  .home-download-pdf { min-height: 44px; font-size: 13px; padding: 10px 14px; }
  .reader-sidebar .sidebar-secondary > [data-pdf-download] { min-height: 44px; display: flex; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  .home-download-pdf { transition: none; }
}
@media print {
  [data-pdf-download] { display: none !important; }
}
