/*
 * 지속가능경영(esg.html) — 티머니 지속가능경영 페이지의 짜임을 참고했다.
 *  - 첫 화면: 연회색 바탕 위에 둥근 큰 카드를 격자(벤토)로 — 큰 사진 카드 + E·S·G 바로가기 카드 3장
 *  - 다짐 문구: 가운데 정렬의 큰 한 문장
 *  - 영역(E·S·G): 사진(관제 지도) 배너 카드 한 장 + 핵심 추진 과제 카드 3장
 *  - 장식(노선선·큰 글자)은 두지 않고 여백·모서리·사진으로만 정리한다.
 *  - 글꼴은 Pretendard 두 종(400·600)만 쓴다. 영문 꼬리표(.section-label)만 Archivo Expanded.
 */
:root { --esg-radius: 24px; }
/* 배경: 다른 상세화면과 같게 흰 바탕 + 관제 지도·동심원(theme-navy.css)을 그대로 쓴다.
   회색 구간은 theme-navy.css 의 회색 구간과 같은 비치는 회색(#142b430d)이라 무늬가 구간 경계에서 잘리지 않는다. */

/* ── 첫 화면: 벤토 격자 ── */
.esg-hero { background-color: #142b430d; padding: 40px max(32px, calc((100% - var(--page-width)) / 2)) 28px; }
.esg-bento { display: grid; grid-template-columns: 1.5fr 1fr 1fr; grid-template-rows: repeat(2, 250px); gap: 16px; }
.esg-hero-card { position: relative; grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; padding: 44px; border-radius: var(--esg-radius); overflow: hidden; color: #fff;
  background: linear-gradient(180deg, #0a1b2d33 0%, #0a1b2dcc 100%), url(../images/esg-hero.jpg) 60% center / cover; }
.esg-pill { align-self: flex-start; margin-bottom: 22px; padding: 7px 16px; border: 1px solid #ffffff99; border-radius: 999px; font-size: 13px; }
.esg-hero-card h2 { font-size: clamp(26px, 2.5vw, 36px); font-weight: 400; line-height: 1.4; letter-spacing: -.035em; }
.esg-hero-card h2 strong { display: block; font-weight: 600; }
.esg-tile { position: relative; display: flex; flex-direction: column; padding: 30px 32px; border-radius: var(--esg-radius); background: #fff; color: var(--tn-ink); transition: transform .3s, box-shadow .3s; }
.esg-tile:hover, .esg-tile:focus-visible { transform: translateY(-4px); box-shadow: 0 14px 36px #1428421a; }
.esg-tile.is-wide { grid-column: span 2; background: var(--tn-navy); color: #fff; }
.esg-tile-chip { align-self: flex-start; padding: 6px 14px; border-radius: 999px; background: var(--tn-mist); color: var(--tn-ink); font-size: 13px; font-weight: 600; }
.esg-tile.is-wide .esg-tile-chip { background: #ffffff1f; color: #fff; }
.esg-tile strong { margin-top: auto; font-size: 26px; font-weight: 600; letter-spacing: -.035em; }
.esg-tile p { margin-top: 8px; color: var(--tn-muted); font-size: 14px; line-height: 1.6; }
.esg-tile.is-wide p { color: var(--tn-on-navy); }
.esg-tile-go { position: absolute; top: 28px; right: 30px; font-size: 22px; }

/* ── 다짐 문구 ── */
.esg-statement { padding: 130px 32px 120px; text-align: center; }
.esg-statement h2 { margin-top: 18px; font-size: clamp(26px, 3vw, 40px); font-weight: 400; line-height: 1.5; letter-spacing: -.04em; color: var(--tn-ink); }
.esg-statement h2 strong { font-weight: 600; }

/* ── 영역(E·S·G) ── */
.esg-areas { background-color: #142b430d; padding: 40px max(32px, calc((100% - var(--page-width)) / 2)) 110px; }
.esg-area { padding-top: 70px; scroll-margin-top: 60px; }
.esg-banner { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 350px; padding: 44px; border-radius: var(--esg-radius); overflow: hidden; color: #fff; background: var(--tn-navy); }
.esg-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0a1b2de6 0%, #0a1b2d99 55%, #0a1b2d33 100%), var(--esg-photo) var(--esg-pos, center) / cover; }
.esg-banner.is-map::before { background: none; }
.esg-banner.is-map::after { content: ""; position: absolute; top: -20%; right: -8%; width: 70%; aspect-ratio: 940 / 700; background: url(../images/control-map.svg?v=2) center / contain no-repeat; filter: invert(1); opacity: .5; }
.esg-banner > * { position: relative; z-index: 1; }
.esg-banner .esg-pill { margin-bottom: 16px; }
.esg-banner h2 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 600; letter-spacing: -.035em; }
.esg-banner p { max-width: 520px; margin-top: 12px; color: var(--tn-on-navy); font-size: 16px; line-height: 1.7; }

/* 수치 카드 — 김해시 친환경 버스 전환 현황 (티머니의 '활동 효과' 수치 카드처럼) */
.esg-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.esg-stat { display: flex; flex-direction: column; justify-content: space-between; min-height: 190px; padding: 28px 28px 26px; border-radius: var(--esg-radius); background: #fff; color: var(--tn-ink); }
.esg-stat.is-first { background: #17334f; color: #fff; }
.esg-stat strong { font-size: clamp(34px, 3.2vw, 46px); font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.esg-stat strong small { margin-left: 4px; font-size: .4em; font-weight: 600; letter-spacing: 0; }
.esg-stat p { margin-top: 28px; color: var(--tn-muted); font-size: 14px; line-height: 1.6; }
.esg-stat.is-first p { color: var(--tn-on-navy); }
.esg-stats-note { grid-column: 1 / -1; color: var(--tn-muted); font-size: 12px; }

/* 과제 카드 */
.esg-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.esg-task { display: flex; flex-direction: column; padding: 34px 32px; border-radius: var(--esg-radius); background: #fff; }
.esg-task-num { align-self: flex-start; padding: 5px 12px; border-radius: 999px; background: var(--tn-mist); color: var(--tn-muted); font-size: 12px; }
.esg-task h3 { margin-top: 22px; font-size: 22px; font-weight: 600; line-height: 1.4; letter-spacing: -.035em; color: var(--tn-ink); }
.esg-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.esg-tags span { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--tn-line); color: var(--tn-muted); font-size: 12px; }
.esg-task ul { display: block; text-align: left; margin-top: auto; padding-top: 28px; }
.esg-task li { display: block; list-style: none; text-align: left; position: relative; padding: 14px 0 14px 16px; border-top: 1px solid var(--tn-line); color: var(--tn-ink); font-size: 14px; line-height: 1.7; }
.esg-task li::before { content: ''; position: absolute; left: 0; top: 1.5em; width: 5px; height: 5px; border-radius: 50%; background: var(--tn-red); }

/* ── 반응형 ── */
@media (max-width: 1000px) {
  .esg-bento { grid-template-columns: 1fr 1fr; grid-template-rows: 380px 200px 200px; }
  .esg-hero-card { grid-row: auto; grid-column: 1 / -1; }
  .esg-tile.is-wide { grid-column: 1 / -1; }
  .esg-stats { grid-template-columns: repeat(2, 1fr); }
  .esg-card-grid { grid-template-columns: 1fr; }
  .esg-task ul { padding-top: 22px; }
}
@media (max-width: 640px) {
  .esg-hero { padding: 16px; }
  .esg-bento { grid-template-columns: 1fr; grid-template-rows: 360px repeat(3, 170px); gap: 12px; }
  .esg-hero-card { padding: 28px; }
  .esg-tile { padding: 24px; }
  .esg-statement { padding: 80px 24px; }
  .esg-areas { padding: 12px 16px 70px; }
  .esg-area { padding-top: 44px; }
  .esg-banner { min-height: 280px; padding: 28px; }
  .esg-task { padding: 28px 24px; }
  .esg-stats { gap: 12px; }
  .esg-stat { min-height: 170px; padding: 22px 20px; }
}
