/* Homepage compact solutions rack — Stanvac_Homepage_Compact_Solutions.pdf */
#documents {
  scroll-margin-top: 90px;
  background: #fff;
}

#documents [hidden] {
  display: none !important;
}

#documents .compact-solutions,
#documents .compact-resources {
  background: #fff;
  padding: 58px 0 12px;
}

#documents .compact-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 22px;
}

#documents .compact-section-head h2 {
  margin: 0;
  color: #182320;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 36px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.02em;
}

#documents .compact-section-head p {
  margin: 0 0 4px;
  color: #66716c;
  font-size: 15px;
  line-height: 1.4;
}

#documents .compact-rule {
  height: 1px;
  margin-bottom: 30px;
  background: #d5dcda;
}

#documents .compact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

#documents .compact-card {
  min-width: 0;
  min-height: 548px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d5dcda;
  border-top: 3px solid #174c46;
  transition: border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}

#documents .compact-figure {
  position: relative;
  flex: none;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #e9eeeb;
}

#documents .compact-figure picture,
#documents .compact-figure img {
  display: block;
  width: 100%;
  height: 100%;
}

#documents .compact-figure img {
  object-fit: cover;
  transition: transform .55s cubic-bezier(.16, .84, .44, 1);
}

#documents .compact-no {
  position: absolute;
  z-index: 2;
  inset-block-start: 0;
  inset-inline-end: 0;
  min-width: 40px;
  min-height: 36px;
  padding: 0 10px;
  display: grid;
  place-items: center;
  background: #174c46;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1;
  font-weight: 800;
}

#documents .compact-badge {
  position: absolute;
  z-index: 2;
  inset-block-start: 0;
  inset-inline-start: 12px;
  min-height: 42px;
  padding: 8px 12px 7px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #f0b52b;
  color: #102523;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
}

#documents .compact-badge.is-world {
  background: #d32631;
  color: #fff;
}

#documents .compact-body {
  flex: 1;
  min-width: 0;
  padding: 20px 20px 16px;
  display: flex;
  flex-direction: column;
}

#documents .compact-kicker {
  color: #225c57;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 800;
}

#documents .compact-card h3 {
  margin: 12px 0 0;
  color: #182320;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 23px;
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: -.015em;
}

#documents .compact-copy {
  margin: 15px 0 24px;
  color: #66716c;
  font-size: 15px;
  line-height: 1.48;
}

#documents .compact-industry-links {
  margin: -8px 0 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
}

#documents .compact-industry-links a {
  color: #225c57;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 800;
  border-bottom: 1px solid #c9d3d0;
}

#documents .compact-links {
  margin-top: auto;
}

#documents .compact-link {
  min-height: 44px;
  padding: 11px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #225c57;
  border-top: 1px solid #d5dcda;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 800;
  text-decoration: none;
}

#documents .compact-link::after {
  content: ">";
  flex: none;
}

#documents .compact-link .pdf {
  display: none;
}

#documents .compact-resources {
  padding-top: 64px;
  padding-bottom: 54px;
}

#documents .compact-resource {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 24px;
  padding: 4px 0 30px;
}

#documents .compact-resource + .compact-resource {
  padding-top: 30px;
  border-top: 1px solid #d5dcda;
}

#documents .compact-resource-no {
  width: 48px;
  min-height: 42px;
  display: grid;
  place-items: center;
  align-self: start;
  background: #174c46;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1;
  font-weight: 800;
}

#documents .compact-resource-kicker {
  color: #655536;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 800;
}

#documents .compact-resource-kicker.is-world {
  color: #d32631;
}

#documents .compact-resource h3 {
  margin: 10px 0 22px;
  color: #182320;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 26px;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -.01em;
}

#documents .compact-document-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

#documents .compact-document-link {
  min-height: 82px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #225c57;
  border: 1px solid #d5dcda;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 800;
  text-decoration: none;
}

#documents .compact-document-link .pdf {
  flex: none;
  color: #655536;
  font-size: 12px;
  white-space: nowrap;
}

#documents .survival-table {
  margin-top: 6px;
}

#documents .survival-row {
  min-height: 44px;
  padding: 8px 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px 180px;
  align-items: center;
  gap: 22px;
  border-bottom: 1px solid #d5dcda;
  color: #182320;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 800;
}

#documents .survival-row.is-alive {
  background: #e7f3ef;
  color: #15564f;
}

#documents .survival-time {
  font-size: 20px;
}

#documents .survival-state {
  color: #a94139;
  font-size: 12px;
  text-align: end;
}

#documents .survival-row.is-alive .survival-state {
  color: #15564f;
}

#documents .survival-note {
  margin: 12px 0 0;
  color: #66716c;
  font-size: 14px;
  line-height: 1.4;
}

#documents .survival-actions {
  margin-top: 20px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid #d5dcda;
  border-inline-start: 4px solid #a94139;
  background: #fff;
}

#documents .survival-actions strong {
  margin-inline-end: auto;
  color: #8e342d;
  font-size: 21px;
  line-height: 1.3;
  font-weight: 900;
  letter-spacing: .025em;
  text-transform: uppercase;
}

#documents .survival-video {
  min-width: 160px;
  min-height: 48px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 2px solid #a94139;
  background: #a94139;
  font-size: 17px;
  font-weight: 900;
  text-decoration: none;
}

body.survival-video-open {
  overflow: hidden;
}

.survival-video-modal[hidden] {
  display: none;
}

.survival-video-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  padding: 28px;
  display: grid;
  place-items: center;
  background: rgba(8, 18, 16, .82);
}

.survival-video-dialog {
  width: min(960px, 100%);
  max-height: calc(100dvh - 56px);
  overflow: hidden;
  background: #101513;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .38);
}

.survival-video-dialog-head {
  min-height: 58px;
  padding: 12px 14px 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #174c46;
  color: #fff;
}

.survival-video-dialog-head h2 {
  margin: 0;
  color: inherit;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.25;
}

.survival-video-close {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .45);
  background: transparent;
  color: #fff;
  font: 400 30px/36px Arial, Helvetica, sans-serif;
  cursor: pointer;
}

.survival-video-close:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.survival-video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background: #000;
}

.survival-video-player video {
  width: 100%;
  height: 100%;
  max-height: calc(100dvh - 114px);
  display: block;
  object-fit: contain;
  background: #000;
}

.compact-contact {
  padding: 42px 0;
  background: #174c46;
  color: #fff;
}

.compact-contact .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.compact-contact-eyebrow {
  margin-bottom: 16px;
  color: #b7cfca;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.compact-contact h2 {
  margin: 0;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 34px;
  line-height: 1.15;
  font-weight: 800;
}

.compact-contact p {
  margin: 18px 0 0;
  color: #fff;
  font-size: 16px;
  line-height: 1.45;
}

.compact-contact-button {
  flex: 0 0 245px;
  min-height: 56px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #078b84;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

@media (hover: hover) {
  #documents .compact-card:hover {
    border-color: #174c46;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(20, 50, 45, .09);
  }

  #documents .compact-card:hover .compact-figure img {
    transform: scale(1.04);
  }

  #documents .compact-link:hover,
  #documents .compact-industry-links a:hover,
  #documents .compact-document-link:hover,
  #documents .survival-video:hover,
  .compact-contact-button:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}

@media (max-width: 900px) {
  #documents .compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #documents .compact-card {
    min-height: 520px;
  }

  #documents .compact-document-links {
    grid-template-columns: minmax(0, 1fr);
  }

  #documents .survival-row {
    grid-template-columns: minmax(0, 1fr) 130px 130px;
  }
}

@media (max-width: 640px) {
  .survival-video-modal {
    padding: 12px;
  }

  .survival-video-dialog {
    max-height: calc(100dvh - 24px);
  }

  .survival-video-dialog-head {
    min-height: 52px;
    padding: 8px 8px 8px 14px;
  }

  .survival-video-dialog-head h2 {
    font-size: 16px;
  }

  .survival-video-player video {
    max-height: calc(100dvh - 76px);
  }

  #documents .compact-solutions,
  #documents .compact-resources {
    padding-top: 44px;
  }

  #documents .compact-resources {
    padding-bottom: 0;
  }

  #documents .compact-section-head {
    display: block;
    margin-bottom: 16px;
  }

  #documents .compact-section-head h2 {
    font-size: 28px;
  }

  #documents .compact-section-head p {
    margin-top: 9px;
  }

  #documents .compact-rule {
    margin-bottom: 22px;
  }

  #documents .compact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  #documents .compact-card {
    min-height: 0;
  }

  #documents .compact-card h3 {
    font-size: 24px;
  }

  #documents .compact-resource {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
  }

  #documents .compact-resource-no {
    width: 40px;
    min-height: 36px;
    font-size: 14px;
  }

  #documents .compact-resource h3 {
    font-size: 23px;
  }

  #documents .survival-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 14px;
    padding: 11px 10px;
  }

  #documents .survival-time {
    font-size: 18px;
    text-align: end;
  }

  #documents .survival-state {
    grid-column: 1 / -1;
    text-align: start;
  }

  #documents .survival-actions {
    align-items: stretch;
    flex-wrap: wrap;
    gap: 8px;
  }

  #documents .survival-actions strong {
    flex: 0 0 100%;
  }

  #documents .survival-video {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: 8px;
    font-size: 14px;
    font-weight: 900;
    white-space: nowrap;
  }

  .compact-contact {
    padding: 36px 0;
  }

  .compact-contact .wrap {
    display: block;
  }

  .compact-contact h2 {
    font-size: 29px;
  }

  .compact-contact-button {
    width: 100%;
    margin-top: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #documents .compact-card,
  #documents .compact-figure img {
    transition: none;
  }
}
