/* Match the editorial sections that sit above and below ESG on the impact page. */
.esg-story.section {
  margin-top: var(--space-section, clamp(88px, 9vw, 156px));
  padding-top: 0;
  color: var(--ink);
}

.esg-story-intro-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
  align-items: end;
  gap: 6%;
  margin-bottom: clamp(34px, 4.5vw, 68px);
}

.esg-story-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--blue);
  font: 600 14px/1.5 Manrope, Pretendard, sans-serif;
  letter-spacing: .05em;
}

.esg-story-kicker img {
  width: clamp(108px, 9vw, 128px);
  height: auto;
}

.esg-story-kicker-label {
  border-inline-start: 1px solid var(--line);
  padding-inline-start: 12px;
}

.esg-story-intro h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 3.5vw, 54px);
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -.047em;
  text-wrap: balance;
  overflow-wrap: break-word;
  word-break: keep-all;
}

.esg-story-lead, .esg-story-copy p {
  margin: 0;
  color: var(--muted);
  font-size: var(--type-body, 17px);
  line-height: 1.8;
  overflow-wrap: break-word;
  word-break: keep-all;
}

/* Let narrow columns use the available width without splitting words. */
html:is([lang="ko"], [lang="en"]) .esg-story p .typo-unit.typo-unit {
  display: inline !important;
}

.esg-story-lead { max-width: 37em; }

.esg-story-media {
  position: relative;
  display: block;
  overflow: hidden;
  min-width: 0;
  border-radius: 18px;
  background: #edf2f7;
  aspect-ratio: 3 / 2;
}

.esg-story-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.esg-story-grid {
  display: grid;
  gap: clamp(28px, 4.5vw, 68px);
}

.esg-story-card {
  display: grid;
  min-width: 0;
  align-items: center;
  gap: clamp(22px, 5vw, 86px);
  padding-top: clamp(24px, 3.2vw, 46px);
  border-top: 1px solid var(--line);
}

.esg-story-copy { min-width: 0; max-width: 37em; }

.esg-story-meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-bottom: clamp(12px, 1.4vw, 20px);
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
}

.esg-story-index {
  font: 600 clamp(20px, 2vw, 28px)/1 Manrope, Pretendard, sans-serif;
  letter-spacing: -.03em;
}

.esg-story-copy h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -.035em;
  text-wrap: pretty;
  overflow-wrap: break-word;
  word-break: keep-all;
}

.esg-story-copy p { font-size: clamp(16px, 1.25vw, 18px); }
.esg-story-bottom { display: flex; justify-content: flex-end; margin-top: clamp(26px, 3.2vw, 46px); }

.esg-story-bottom a {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 44px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  color: var(--blue);
  font-size: var(--type-control, 15px);
  font-weight: 600;
}

.esg-story-bottom a span { font-size: 18px; transition: transform .24s ease; }
.esg-story-bottom a:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; }
@media (hover: hover) { .esg-story-bottom a:hover span { transform: translate(2px, -2px); } }

@media (min-width: 1024px) {
  .esg-story-card { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .esg-story-card:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .esg-story-card:nth-child(even) .esg-story-media { grid-area: 1 / 2; }
  .esg-story-card:nth-child(even) .esg-story-copy { grid-area: 1 / 1; }
}

@media (max-width: 1023px) {
  .esg-story-intro-copy { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .esg-story-card { gap: 22px; }
}

@media (max-width: 599px) {
  .esg-story.section { margin-top: 64px; }
  .esg-story-intro h2 { font-size: 32px; line-height: 1.3; }
  .esg-story-kicker { margin-bottom: 12px; font-size: 12px; }
  .esg-story-lead, .esg-story-copy p { font-size: 15px; }
  .esg-story-media { border-radius: 14px; }
  .esg-story-copy h3 { font-size: 23px; margin-bottom: 8px; }
  .esg-story-meta { margin-bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .esg-story-bottom a span { transition: none; }
}
