/* Startpage and footer corrections from the November marketing review. */
.home .news-card {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--white);
}

.home .news-card::after { display: none; }

.home .news-card__picture {
  margin: -32px -32px 24px;
}

.home .product-grid,
.home .solution-grid {
  align-items: stretch;
}

.home .product-card,
.home .solution-card,
.home .section-heading > div { min-width: 0; }

.home .product-card__body,
.home .solution-card__content { overflow-wrap: anywhere; }

.home-editorial-image, .page-editorial-image { display: block; width: auto; max-width: 100%; height: auto; margin-block: 20px; }
.page-editorial-image { max-height: 360px; object-fit: contain; }
.production-editorial-image { min-width: 0; }
.home-rich-copy > :last-child, .editorial-card-copy > :last-child { margin-bottom: 0; }
.home-rich-copy { margin-bottom: 1.5rem; }
.home-rich-copy img, .editorial-card-copy img { max-width: 100%; height: auto; }
.solution-card__image { max-width: 100%; width: auto; height: auto; max-height: 170px; object-fit: contain; grid-column: 1 / -1; }
.solution-card:has(.solution-card__image) > a { align-content: start; }
.ds-hero__details--editorial { display: block; }
.ds-hero__details--editorial ul, .ds-hero__details--editorial ol { padding-left: 1.25em; }
.ds-hero__details--editorial li { padding-left: 0; }
.ds-hero__details--editorial li::before { display: none; }
.ds-hero__details--editorial p { margin-block: 0 12px; }
.ds-hero__details--editorial a { color: inherit; text-decoration: underline; }
.ds-hero__details--editorial img { max-width: 100%; height: auto; max-height: 180px; object-fit: contain; }

@media (min-width: 1100px) {
  .home .solution-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.footer-grid.footer-grid--marketing {
  grid-template-columns: minmax(190px, .85fr) minmax(0, 3fr);
  gap: clamp(24px, 4vw, 64px);
}

.footer-navigation {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 32px 28px;
}

.footer-navigation__group { min-width: 0; }
.site-footer .footer-navigation h2 { margin-bottom: 14px; }
.site-footer .footer-navigation h2 a { color: var(--blue); }
.site-footer .footer-navigation li { margin-block: 4px; }
.footer-navigation li > a { display: inline-block; padding-block: 5px; }
.footer-navigation .footer-subnav { margin-block: 2px 9px; }

.footer-subnav > summary {
  padding: 7px 0;
  color: var(--blue);
  cursor: pointer;
  font-size: .8rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.footer-subnav > ul {
  padding-left: 14px;
  border-left: 1px solid #c4cbd1;
}

.footer-subnav > summary:focus-visible,
.footer-navigation a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

/* The arrow occupies its own place on narrow screens, keeping PDF links clear. */
.back-to-top.back-to-top--floating {
  display: flex;
  width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  margin: 16px 16px 16px auto;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  box-shadow: 0 3px 12px #0002;
}

.back-to-top.back-to-top--floating[hidden] { display: none; }

@media (min-width: 1640px) {
  .back-to-top.back-to-top--floating {
    position: fixed;
    z-index: 30;
    right: max(16px, calc((100vw - 1472px) / 2 - 64px));
    bottom: 24px;
    margin: 0;
  }
}

@media (max-width: 1000px) {
  .footer-grid.footer-grid--marketing { grid-template-columns: 1fr; }
  .footer-brand { max-width: 32rem; }
  .footer-navigation { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .footer-navigation { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .footer-navigation a,
  .footer-subnav > summary { min-height: 44px; padding-block: 11px; }
  .home .section-heading { align-items: flex-start; }
}

@media (max-width: 420px) {
  .footer-navigation { grid-template-columns: minmax(0, 1fr); }
}

@media print {
  .back-to-top.back-to-top--floating { display: none; }
  .footer-navigation { display: block; }
  .footer-navigation__group { break-inside: avoid; }
}
