/* =========================================================
   ESG COMMITMENTS PAGE — esg-commitments.html
   Add this entire block to the END of style.scss
   (Compiled separately as css/esg.css for development use)
   ========================================================= */

/* ── shared section spacing ── */
.esg-section {
  padding: 10px 0 60px;
}

/* ── section rule / heading line ── */
.esg-sec-rule {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 30px 0 28px;
}
.esg-sec-rule h2 {
  font-size: clamp(17px, 1.9vw, 23px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: nowrap;
}
.esg-rule-line {
  flex: 1;
  height: 1.5px;
  background: var(--border);
}

/* ════════════════════════════════════
   TRACKING TABLE
════════════════════════════════════ */
.esg-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
}
.esg-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  font-size: 13px;
}
.esg-table thead th {
  background: #eaf6f1;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  padding: 10px 12px;
  text-align: left;
  border: 1px solid var(--border);
  vertical-align: bottom;
  line-height: 1.3;
}
.esg-table td {
  border: 1px solid var(--border);
  background: #eaf6f1;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text);
  vertical-align: top;
  line-height: 1.5;

  &:nth-child(5) {
    background-color: #FFFFFF;
  }
}
.esg-table tbody tr:nth-child(even) td {
  background: #eaf6f1;
}
.esg-cat-row td {
  padding: 0 !important;
  border-left: none !important;
  border-right: none !important;
}
.esg-cat-row span {
  display: block;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.esg-env-row span   { background: #00944a; }
.esg-social-row span { background: #f5a81d; color: #fff; }
.esg-gov-row span   { background: #622d91; }
.esg-table-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  font-style: italic;
}

/* ════════════════════════════════════
   ESG APPROACH SECTION
════════════════════════════════════ */
.esg-approach-bg { background: var(--surface-2); }

/* top reference cards */
.esg-top-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.esg-ref-card {
  background: #e7f6fd;
  border: 1.5px solid var(--border);
  padding: 14px 20px;
  display: block;
  /* align-items: center;
  justify-content: space-between; */
  /* gap: 12px; */
}
.esg-ref-card h3 {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}
.esg-pg-ref {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color:#000;
  white-space: nowrap;
  flex-shrink: 0;
}

/* sustainability governance framework box */
.esg-gov-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
  border: 1.5px solid #b5d5c0;
  background: var(--surface);
  padding: 26px 28px;
  margin-bottom: 12px;
}
.esg-gov-box-text h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px;
}
.esg-gov-box-text p {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--text);
  opacity: 0.85;
  margin: 0;
}

/* ── Pyramid ── */
.esg-pyramid-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}
.esg-pyramid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 100%;
}
.esg-py {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  padding: 8px 12px;
  min-height: 42px;
}
.esg-py-1 { background: #1b4429; width: 32%; clip-path: polygon(14% 0%, 86% 0%, 100% 100%, 0% 100%); font-size: 10.5px; }
.esg-py-2 { background: #29683d; width: 50%; clip-path: polygon(9%  0%, 91% 0%, 100% 100%, 0% 100%); }
.esg-py-3 { background: #459453; width: 67%; clip-path: polygon(5%  0%, 95% 0%, 100% 100%, 0% 100%); }
.esg-py-4 { background: #78be44; color: #1a2a10; width: 84%; clip-path: polygon(3%  0%, 97% 0%, 100% 100%, 0% 100%); }
.esg-py-5 { background: #1268b3; width: 100%; clip-path: none; }

/* ── Three pillars ── */
.esg-pillars {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  margin-bottom: 14px;
  column-gap: 16px;
  border: none !important;
}
.esg-pillar {
  background: #d8eee8;
  /* border: 1.5px solid var(--border); */
  border:none;
  padding: 13px 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  text-align: center;
  line-height: 1.3;
}
.esg-pillar + .esg-pillar { border-left: none; border: none }
.esg-pillar--accent {
  /* background: var(--blue); */
  /* color: #fff; */
  /* border-color: var(--blue); */
  padding-left: 24px;
  padding-right: 24px;
}

/* ── Two column: leadership + initiatives ── */
.esg-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 12px;
}
.esg-leadership {
  background: #005351;
  color: #fff;
  padding: 24px 22px;
}
.esg-leadership h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 18px;
}
.esg-ldr-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.esg-ldr-item:last-child { margin-bottom: 0; }
.esg-ldr-ic {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  /* border: 1.5px solid rgba(255, 255, 255, 0.4); */
  /* border-radius: 50%; */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.esg-ldr-ic svg { width: 17px; height: 17px; }
.esg-ldr-item strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 5px;
}
.esg-ldr-item ul {
  margin: 0;
  padding-left: 16px;
}
.esg-ldr-item ul li {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 3px;
  line-height: 1.4;
}
.esg-initiatives {
  background: #fdf6e0;
  padding: 24px 22px;
}
.esg-initiatives h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1a2a10;
  margin: 0 0 14px;
  line-height: 1.3;
}
.esg-init-item {
  padding: 11px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.esg-init-item:first-of-type { border-top: none; padding-top: 0; }
.esg-init-item p {
  font-size: 16px;
  font-weight: 300;
  color: #2a2a18;
  margin: 0;
  line-height: 1.55;
}

/* ── Approach footer row ── */
.esg-approach-foot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 14px;
  /* border: 1.5px solid var(--border); */
  /* background: var(--surface); */
  column-gap: 16px;
  border:none;
}
.esg-apfoot-item {
  padding: 13px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  text-align: center;
  line-height: 1.3;
  /* border-right: 1.5px solid var(--border); */
  border:none;
  background: #d8eee8;
}
.esg-apfoot-item:last-child { border-right: none; }

/* ── Legend ── */
.esg-legend {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text);
  flex-wrap: wrap;
  opacity: 0.85;
}
.esg-legend-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}
.esg-ldot-green { background: #005351; }
.esg-ldot-amber { background: #ffeebf; }

/* ════════════════════════════════════
   EMBEDDING ESG FACTORS
════════════════════════════════════ */
.esg-embed-lead {
  font-size: 16px;
  font-weight: 400;
  color: #000;
  margin: 0 0 20px;
}
.esg-priority-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.esg-pcard {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  background: var(--surface);
}
.esg-pcard-head {
  background: #1c3d2e;
  color: #fff;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}
.esg-pcard-body {
  padding: 14px 16px;
  flex: 1;
}
.esg-action-lbl {
  font-size: 11px;
  font-weight: 700;
  color: #000000;
  /* text-transform: uppercase; */
  letter-spacing: 0.06em;
  margin: 0 0 8px !important;
  display: block;
}
.esg-pcard-body > p:not(.esg-action-lbl) {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--text);
  margin: 0;
}
.esg-pcard-body ul {
  margin: 0;
  padding-left: 16px;
}
.esg-pcard-body ul li {
  font-size: 16px;
  font-weight: 300;
  color: var(--text);
  margin-bottom: 5px;
  line-height: 1.45;
}

/* ════════════════════════════════════
   UN SDGs
════════════════════════════════════ */
.esg-sdg-bg { background: var(--surface-2); }
.esg-sdg-block { margin-bottom: 32px; }
.esg-sdg-block-head {
  display: block;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  border-bottom: 2.5px solid var(--blue);
  margin-bottom: 14px;
}
.esg-sdg-block-head h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  white-space: nowrap;
}
.esg-sdg-block-head p {
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  opacity: 0.75;
  margin: 0;
}
.esg-sdg-csr-head { border-bottom-color: var(--orange); }
.esg-sdg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  background: var(--surface);
}
.esg-sdg-col {
  padding: 18px 22px;
  border-right: 1px solid var(--border);
}
.esg-sdg-col:last-child { border-right: none; }
.esg-sdg-col h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}
.esg-sdg-col p,
.esg-sdg-col li {
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  opacity: 0.85;
  line-height: 1.5;
  margin: 0 0 4px;
}
.esg-sdg-col ul {
  margin: 0;
  padding-left: 16px;
}
.esg-sdg-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 12px;
}
.esg-sdg-icons img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

/* ════════════════════════════════════
   DARK MODE
════════════════════════════════════ */
html[data-theme='dark'] .esg-approach-bg,
html[data-theme='dark'] .esg-sdg-bg {
  background: var(--surface-2);
}
html[data-theme='dark'] .esg-ref-card,
html[data-theme='dark'] .esg-gov-box,
html[data-theme='dark'] .esg-pcard,
html[data-theme='dark'] .esg-sdg-grid,
html[data-theme='dark'] .esg-approach-foot {
  background: var(--surface);
  border-color: var(--border);
}
html[data-theme='dark'] .esg-pillar {
  background: #d8eee8;
color: #000;
}
/* html[data-theme='dark'] .esg-pillar--accent {
  background: var(--blue);
  border-color: var(--blue);
} */
html[data-theme='dark'] .esg-table thead th {
  background: var(--surface);
}
html[data-theme='dark'] .esg-table td,
html[data-theme='dark'] .esg-table thead th {
  border-color: var(--border);
  background: transparent !important;
}
html[data-theme='dark'] .esg-pg-ref {
  color: #FFFFFF !important;
}

html[data-theme='dark'] .esg-action-lbl, html[data-theme='dark'] .esg-embed-lead {
  color: #FFFFFF !important;
}
html[data-theme='dark'] .esg-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.03);
}
/* html[data-theme='dark'] .esg-initiatives {
  background: #1a1500;
} */
/* html[data-theme='dark'] .esg-initiatives h3    { color: #e8ddb5; }
html[data-theme='dark'] .esg-init-item p       { color: #bfb99a; } */
html[data-theme='dark'] .esg-init-item         { border-top-color: rgba(255, 255, 255, 0.1); }
html[data-theme='dark'] .esg-apfoot-item       { border-color: var(--border); color: #000; }
html[data-theme='dark'] .esg-sdg-col           { border-right-color: var(--border); }
html[data-theme='dark'] .esg-pcard-body > p:not(.esg-action-lbl),
html[data-theme='dark'] .esg-pcard-body ul li,
html[data-theme='dark'] .esg-sdg-col p,
html[data-theme='dark'] .esg-sdg-col li        { color: #aab4c5; opacity: 1; }
html[data-theme='dark'] .esg-gov-box           { border-color: var(--border); }

/* ════════════════════════════════════
   RESPONSIVE
════════════════════════════════════ */
@media (max-width: 991px) {
  .esg-priority-grid   { grid-template-columns: repeat(2, 1fr); }
  .esg-gov-box         { grid-template-columns: 1fr; }
  .esg-two-col         { grid-template-columns: 1fr; }
  .esg-sdg-grid        { grid-template-columns: 1fr; }
  .esg-sdg-col         { border-right: none; border-bottom: 1px solid var(--border); }
  .esg-sdg-col:last-child { border-bottom: none; }
}
@media (max-width: 767px) {
  .esg-top-cards       { grid-template-columns: 1fr; }
  .esg-priority-grid   { grid-template-columns: 1fr; }
  .esg-pillars         { grid-template-columns: 1fr; }
  .esg-pillar + .esg-pillar { border-left: 1.5px solid var(--border); border-top: none; }
  .esg-pillar--accent  { border-left: 1.5px solid var(--blue) !important; }
  .esg-approach-foot   { grid-template-columns: 1fr; }
  .esg-apfoot-item     { border-right: none !important; border-bottom: 1.5px solid var(--border); }
  .esg-apfoot-item:last-child { border-bottom: none; }
  .esg-sec-rule        { flex-direction: column; align-items: flex-start; gap: 6px; }
  .esg-sec-rule h2     { white-space: normal; }
  .esg-rule-line       { width: 100%; }
  .esg-sdg-block-head  { flex-direction: column; gap: 4px; }
}
