/* Keep each demonstration and its caption on the same baseline as its neighbor. */
.motion-showcase .motion-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}
.motion-showcase .motion-pair > figure {
  margin: 0;
  min-width: 0;
}
.motion-showcase .motion-pair > figure:first-child { margin-top: 0; }
@media (max-width: 960px) {
  .motion-showcase { grid-template-columns: minmax(0, 1fr); }
  .motion-showcase h2 { margin-bottom: 0; }
}
@media (max-width: 480px) {
  .motion-showcase .motion-pair { grid-template-columns: minmax(0, 1fr); }
}

.st-file-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem 1.15rem;
  max-width: 100%;
}
.st-file-actions a, .qr-downloads .st-view-pdf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  font: 700 1rem/1.35 Arial, sans-serif;
  text-align: center;
  overflow-wrap: anywhere;
}
.st-file-actions a, .st-file-actions a:visited {
  color: #193b5a;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.st-file-actions a:hover { color: #79551c; }
.st-file-actions a:focus-visible, .qr-downloads a:focus-visible {
  outline: 3px solid #996b25;
  outline-offset: 3px;
}
.resource-grid .st-file-actions { margin-top: auto; }
.resource-grid .st-file-actions .st-view-pdf,
.qr-downloads .st-view-pdf {
  padding: .55rem 1rem;
  border: 1px solid #193b5a;
  background: #193b5a;
  color: #fff;
  text-decoration: none;
}
.resource-grid .st-file-actions .st-view-pdf:hover,
.qr-downloads .st-view-pdf:hover { background: #102c45; }
.resource-grid article .st-file-language, .service .st-file-language {
  display: block;
  font-size: .875rem;
  font-weight: 500;
  color: #47586b;
  margin: .25rem 0 0;
}
.qr-card.st-resource-document {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.qr-card.st-resource-document strong { text-decoration: none; }
.qr-card .st-file-actions { margin-top: auto; padding-top: .5rem; }
.qr-downloads { align-items: stretch; }
.qr-downloads a { white-space: normal; }
#service-options > .service > .st-file-actions { margin: 0; }
@media (min-width: 701px) {
  #service-options > .service { grid-row: span 6; grid-template-columns: minmax(0, 1fr); }
  #service-options > .service > .st-file-actions { grid-row: 5; }
  #service-options > .service > :is(details, .st-transfer-detail-link, .st-terms-link) { grid-row: 6; }
}

/* Each packaging photo fits its own tile, including inside the materials figure. */
.actual-packaging-grid > figure { min-width: 0; }
.materials-figure .actual-packaging-grid img {
  min-width: 0;
  max-width: 100%;
}
@media (max-width: 480px) {
  .materials-figure .actual-packaging-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .mobile-nav-row .mobile-page-title { min-width: 0; overflow-wrap: anywhere; }
  .mobile-nav-row .mobile-menu-toggle { flex: none; }
  .st-service-models { white-space: normal; }
}

/* Put the two inquiry actions directly after the figures on the single-column hero. */
@media (max-width: 1000px) {
  html #home .hero .hero-copy > .st-capacity-intro + .st-line-metrics { order: 2; }
  html #home .hero .hero-copy > .actions { order: 3; margin-block: .35rem .65rem; }
  html #home .hero .hero-copy > p.st-capacity-intro:not(.eyebrow):not(.hero-subtitle),
  html #home .hero .hero-copy > p.lead:not(.eyebrow):not(.hero-subtitle) { order: 4; }
  html #home .hero .hero-grid #home-overview { order: 5; }
}
@media (max-width: 600px) {
  #home .hero .hero-copy > .actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .45rem;
  }
  #home .hero .hero-copy > .actions > .btn {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    margin: 0;
    padding: .55rem .4rem;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.2;
    text-align: center;
  }
  .qr-downloads { display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem; }
  .qr-downloads > a:is(.st-view-pdf, .btn) { width: 100%; min-height: 52px; margin: 0; box-sizing: border-box; }

  /* The welcome uses the space beside the logo and scrolls away with the page. */
  body:has(#home) > #guide-welcome {
    position: absolute;
    inset: 12px 12px auto auto;
    width: max-content;
    max-width: calc(100% - 144px);
    display: flex;
    align-items: center;
    padding: 0 2px 0 .65rem;
    border-radius: 6px;
    box-shadow: none;
    gap: .25rem;
  }
  #guide-welcome p { display: none; }
  #guide-welcome [data-guide-open] { order: 0; max-width: 100%; min-height: 44px; line-height: 1.15; }
  #guide-welcome [data-guide-dismiss] { position: static; flex: 0 0 36px; height: 44px; order: 1; }
}
@media (max-width: 600px) {
  #home .hero .hero-copy > .st-home-offers {
    width: 100%;
    max-width: none;
    font-size: .9rem;
  }
  #home .hero .hero-copy > .st-line-metrics {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    align-items: center;
    column-gap: .65rem;
  }
  #home .hero .st-line-metrics > div { min-width: 0; }
  #home .hero .st-line-metrics .st-annual-capacity dd { font-size: clamp(1.35rem, 6.2vw, 1.9rem); }
}
