/* DRAIN24 R2: 홈 압축, 상세 포스터, 관련 글 카드만 담당한다. */

.d24-home.he-main > .he-section {
  padding-block: clamp(72px, 7vw, 88px) !important;
}

.d24-equipment__steps li span {
  line-height: 1.35;
}

.d24-equipment__steps li strong,
.d24-equipment__steps li small {
  display: block;
}

.d24-equipment__steps li strong {
  color: inherit;
  font-size: 14px;
  font-weight: 800;
}

.d24-equipment__steps li small {
  margin-top: 4px;
  color: rgba(255, 255, 255, .74);
  font-size: 11px;
  font-weight: 500;
}

.d24-r2-channel-note {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
}

.d24-mag-poster--no-checks {
  grid-template-areas: "copy visual";
}

.d24-mag-poster h1 {
  font-size: clamp(40px, 3.55vw, 52px);
  line-height: 1.16;
}

.d24-mag-poster .d24-mag-single__summary {
  font-size: 18px;
  line-height: 1.62;
}

.d24-mag-poster__channel-note {
  display: block;
  margin-top: 12px;
  color: #bdd2df;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.55;
}

.d24-related-posts {
  width: 100%;
  margin: 64px 0 0;
  padding: 38px;
  border: 1px solid rgba(151, 190, 211, .45);
  border-radius: 26px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 18px 46px rgba(20, 61, 86, .07);
}

.d24-related-posts__head {
  margin-bottom: 24px;
}

.d24-related-posts__head p {
  margin: 0 0 8px;
  color: #0878d1;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
}

.d24-related-posts__head h2 {
  margin: 0;
  color: #071f32;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.035em;
}

.d24-related-posts__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.d24-related-card {
  min-width: 0;
}

.d24-related-card > a {
  height: 100%;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid #dce8ef;
  border-radius: 18px;
  color: #173349;
  background: #fff;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.d24-related-card > a:hover,
.d24-related-card > a:focus-visible {
  transform: translateY(-3px);
  border-color: #65bfe8;
  box-shadow: 0 16px 28px rgba(12, 79, 119, .12);
}

.d24-related-card > a:focus-visible {
  outline: 3px solid #0b72d0;
  outline-offset: 3px;
}

.d24-related-card__visual {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, #e7f2f8, #d8e9f2);
}

.d24-related-card__visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.d24-related-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.d24-related-card__body small {
  color: #0878d1;
  font-size: 12px;
  font-weight: 800;
}

.d24-related-card__body strong {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 8px;
  color: #071f32;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.d24-related-card__body > span {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 10px;
  color: #536d7e;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.d24-related-card__body em {
  margin-top: auto;
  padding-top: 16px;
  color: #086ec5;
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
}

@media (max-width: 1120px) {
  .d24-mag-poster--no-checks {
    grid-template-areas: "copy" "visual";
  }

  .d24-related-posts__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .d24-home.he-main > .he-section {
    padding-block: 44px !important;
  }

  .d24-mag-poster,
  .d24-mag-poster--no-checks {
    grid-template-areas: "copy" "checks" "visual";
  }

  .d24-mag-poster--no-checks {
    grid-template-areas: "copy" "visual";
  }

  .d24-mag-poster__copy {
    padding: 28px 22px !important;
  }

  .d24-mag-poster h1 {
    font-size: clamp(30px, 8.8vw, 34px);
    line-height: 1.25;
  }

  .d24-mag-poster .d24-mag-single__summary {
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.65;
  }

  .d24-mag-poster .d24-mag-single__meta {
    margin-top: 16px;
  }

  .d24-mag-poster__actions {
    margin-top: 20px;
  }

  .d24-related-posts {
    margin-top: 42px;
    padding: 24px 18px;
    border-radius: 20px;
  }

  .d24-related-posts__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .d24-related-card > a {
    min-height: 112px;
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .d24-related-card__visual {
    height: 100%;
    min-height: 112px;
    aspect-ratio: auto;
  }

  .d24-related-card__body {
    padding: 14px 15px;
  }

  .d24-related-card__body strong {
    font-size: 16px;
    -webkit-line-clamp: 3;
  }

  .d24-related-card__body > span {
    display: none;
  }

  .d24-related-card__body em {
    padding-top: 10px;
    font-size: 13px;
  }
}

@media (max-width: 359px) {
  .d24-related-card > a {
    grid-template-columns: 88px minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .d24-related-card > a {
    transition: none;
  }
}
