/*----------------ESG----------------*/
.ESGBlock .TabFlex{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap:20px;
  flex-direction: column;
  margin-bottom: 10rem;
}
.ESGBlock .WordContentList li .ListNumber{color:#FFF}
.ESGBlock .WordContentList{margin-right: 0;width: auto;flex: 1 1 0;min-width: 0;}
.ESGBlock .ImgBlock{width: 100%; text-align: center;}
.ESGBlock .ImgBlock img{width: 100%;height: auto;max-height: 600px;object-fit: contain;}
.ESGBlock .WordContentList .ListDesc{overflow-wrap: anywhere;word-break: break-word;}
.ButtonGroup ul{display: flex;padding-left: 0;justify-content: center;width: 30%;margin: auto;}
.ButtonGroup ul li{text-align: center;width: 100%;}
.ButtonGroup{width: 100%;}
.btn-moBlue{min-width: 156px;}
.ESGContentArea{margin:0 auto;width: 100%;max-width: 1100px;padding: 0 3%;}
@media (max-width: 1550px) {

}
@media (max-width: 1200px) {
  .ESGContentArea{margin: 15px auto;width: 100%;padding: 0 3%;}
  .ESGBlock .TabFlex{margin-bottom: 3rem;flex-direction: column;}
  .ESGBlock .WordContentList{width: 100%;margin: auto;}
  .ESGBlock .ImgBlock{width: 100%;}
  .ESGBlock .ImgBlock img{width: 100%;height: auto;}
}
@media (max-width: 991px) {
  .ButtonGroup ul{width: 70%;}
  .ButtonGroup ul li{margin: 0 1%; width: 100%;}


}
@media (max-width: 768px) {
  .WordContentList li .ListNumber{width: 12%;}
  .ButtonGroup{margin-bottom: 3rem;}

}
@media (max-width: 480px) {
  .ButtonGroup ul{width: 100%;}
  .btn-moBlue{padding: 2% 15%;}

}

/* -------------------------------------------------------
   RWD fix for injected ESG content (DB HTML)
   - handles inline flex layouts + fixed image widths
   - scoped to ESG page content to avoid side effects
-------------------------------------------------------- */
.ESGBlock .ListDesc img{
  max-width: 100% !important;
  height: auto !important;
}

/* Some injected links use display:contents; which is fragile on mobile */
.ESGBlock .ListDesc a[style*="display:contents"]{
  display: inline !important;
}

/* Target the injected "card list" that uses <ul style="list-style: none;"> */
.ESGBlock .ListDesc ul[style*="list-style: none"],
.ESGBlock .ListDesc ul[style*="list-style:none"]{
  margin: 0 !important;
  padding: 0 !important;
}
.ESGBlock .ListDesc ul[style*="list-style: none"] > li,
.ESGBlock .ListDesc ul[style*="list-style:none"] > li{
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 18px;
  line-height: 1.8;
  border: 0 none;
  margin: 0 0 2rem;
  padding: 0 0 2rem;
}
.ESGBlock .ListDesc ul[style*="list-style: none"] > li > div,
.ESGBlock .ListDesc ul[style*="list-style:none"] > li > div{
  min-width: 0;
  flex: 1 1 320px !important; /* overrides inline flex:0 0 48% */
  margin-left: 0 !important;
  margin-right: 0 !important;
}

@media (max-width: 768px){
  .ESGBlock .ListDesc ul[style*="list-style: none"] > li,
  .ESGBlock .ListDesc ul[style*="list-style:none"] > li{
    flex-direction: column !important;
    gap: 12px;
  }
  .ESGBlock .ListDesc ul[style*="list-style: none"] > li > div,
  .ESGBlock .ListDesc ul[style*="list-style:none"] > li > div{
    flex: 0 0 100% !important; /* hard override inline flex:0 0 48% */
    max-width: 100% !important;
    width: 100% !important;
  }
  /* prevent images from looking too tall/wide with fixed attributes */
  .ESGBlock .ListDesc ul[style*="list-style: none"] img,
  .ESGBlock .ListDesc ul[style*="list-style:none"] img{
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
}

.esg-section {
  padding: 0
}
.esg-container {
  width: min(980px, 100% - 32px);
  margin: 0 auto;
}
.esg-lead {
  margin: 0 0 16px;
  line-height: 1.9;
}
.esg-h2 {
  margin: 24px 0 12px;
  font-size: clamp(20px, 2.2vw, 26px);
}
.esg-h3 {
  margin: 20px 0 10px;
  font-size: clamp(16px, 1.8vw, 20px);
}
.esg-list,
.rwd-table ul {
  margin: 0;
  padding-left: 1.2em;
}
.rwd-table li {
  margin: 6px 0;
}

/* Table (desktop) */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #ddd;
  border-radius: 10px;
  margin: 10px 0 18px;
}
.rwd-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px; /* enables horizontal scroll when needed */
}
.rwd-table th,
.rwd-table td {
  border-top: 1px solid #eee;
  padding: 14px 16px;
  vertical-align: middle;
  text-align: center;
}
.rwd-table thead th {
  border-top: none;
  background: #f6f6f6;
}
.rwd-table tbody th[scope="row"] {
  width: 160px;
  background: #fafafa;
  font-weight: 600;
}

/* Table (mobile): stack rows with labels */
@media (max-width: 768px) {
  .rwd-table {
    min-width: 0;
    background-color: #FFFFFF;
  }
  .rwd-table thead {
    display: none;
  }
  .rwd-table,
  .rwd-table tbody,
  .rwd-table tr {
    display: block;
    width: 100%;
  }
  .rwd-table tr {
    border-top: 1px solid #eee;
    padding: 10px 0;
  }
  .rwd-table tr:first-child {
    border-top: none;
  }
  .rwd-table th[scope="row"],
  .rwd-table td {
    display: block;
    width: 100%;
    border: none;
    padding: 8px 14px;
    background: transparent;
  }
  .rwd-table th[scope="row"]::before,
  .rwd-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    opacity: 0.75;
    margin-bottom: 4px;
  }
  .rwd-table th[scope="row"] {
    font-size: 16px;
    font-weight: 700;
  }
}
.WordContentList ul > li{
  margin-bottom: 0.5rem;
}

.WordContentList ul > li:last-child {
  margin-bottom: 0;
}

/* -------------------------------------------------------
   Visibility helpers for "injected" ESG content
   - requested: mobile-only / desktop-only
   - scoped to ESG page to avoid side effects
-------------------------------------------------------- */
.ESGBlock .desktop-only { display: block; }
.ESGBlock .mobile-only { display: none; }
@media (max-width: 768px) {
  .ESGBlock .desktop-only { display: none; }
  .ESGBlock .mobile-only { display: block; }
}

/* Mobile-friendly rendering for wide ESG tables (generated by JS or manual) */
.ESGBlock .esg-table-mobile {
  margin: 10px 0 18px;
}
.ESGBlock .esg-table-card {
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0 0 12px;
}
.ESGBlock .esg-table-card:last-child {
  margin-bottom: 0;
}
.ESGBlock .esg-table-card-title {
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}
.ESGBlock .esg-table-card-section {
  margin-bottom: 12px;
}
.ESGBlock .esg-table-card-section-title {
  font-size: 13px;
  color: #666;
  font-weight: 600;
  margin-bottom: 6px;
}
.ESGBlock .esg-table-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
.ESGBlock .esg-table-card .esg-table-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.ESGBlock .esg-table-card dt {
  margin: 0;
  font-size: 14px;
  color: #333;
  flex: 1 1 auto;
}
.ESGBlock .esg-table-card dd {
  margin: 0;
  font-weight: 600;
  flex: 0 0 auto;
  text-align: right;
  color: #000;
}

/* Collapse Toggle Styles */
.esg-collapse-toggle {
  cursor: pointer;
  display: flex !important;
  justify-content: flex-start;
  gap: 8px;
  align-items: center;
  width: 100%;
}
.esg-collapse-toggle:hover {
  text-decoration: none;
  opacity: 0.9;
}
.esg-collapse-toggle .esg-icon {
  font-weight: bold;
  font-size: 1.2em;
  line-height: 1;
  color: #fff;
}
.esg-collapse-toggle .esg-icon::after {
  content: '+';
}
.esg-collapse-toggle[aria-expanded="true"] .esg-icon::after {
  content: '-';
}
