/* T131 stakeholders chapter (/page/stakeholders, /page/stakeholders2): production layout plus the revision requests only. */

/* ---------- /page/stakeholders ---------- */
/* ZH deck slide 10: the heading block above the stakeholder ring is crossed out (titles are empty in the CMS). */
body.heritage-page-slug--stakeholders .stakeholder-profiles__heading:not(:has(h3, p)) { display: none; }

/* EN deck slide 17: no "Shared sustainable value" line; the ring centre carries the TA-I Technology logo
   (left part of the site logo, without the ESG badge). */
html[lang="en"] body.heritage-page-slug--stakeholders .stakeholder-orbit__core { padding: 8px; }
html[lang="en"] body.heritage-page-slug--stakeholders .stakeholder-orbit__core > * { display: none; }
html[lang="en"] body.heritage-page-slug--stakeholders .stakeholder-orbit__core::before {
    content: "";
    display: block;
    width: 113px;
    height: 31px;
    background: url("../img/logo.png") no-repeat left center / 154px 31px;
}

/* English group names and descriptions are longer than the Chinese ones: a taller ring keeps the production
   layout without overlapping cards. */
@media (min-width: 768px) {
    html[lang="en"] body.heritage-page-slug--stakeholders .stakeholder-orbit__stage { min-height: 860px; }
    html[lang="en"] body.heritage-page-slug--stakeholders .stakeholder-orbit__copy strong { font-size: 15px; }
    html[lang="en"] body.heritage-page-slug--stakeholders .stakeholder-orbit__copy small { font-size: 11.5px; }
}
@media (min-width: 768px) and (max-width: 1199px) {
    html[lang="en"] body.heritage-page-slug--stakeholders .stakeholder-orbit__stage { min-height: 940px; }
}

/* ---------- /page/stakeholders2 ---------- */
/* ZH deck slide 11 "刪除": the "▼永續議題" list under the materiality matrix. */
body.heritage-page-slug--stakeholders2 .materiality-map__list { display: none; }

/* English matrix (EN deck slide 30): labels are longer than the Chinese ones, so a smaller label size. */
html[lang="en"] body.heritage-page-slug--stakeholders2 .materiality-map__label { font-size: 9.5px; }
/* ZH deck slide 12 "標題與內文的空格太大": title-only modules sit directly above their table. */
body.heritage-page-slug--stakeholders2 .page_main .report-module-list { --t131sh-gap: clamp(32px, 4vw, 56px); row-gap: var(--t131sh-gap); }
@media (max-width: 575.98px) {
    body.heritage-page-slug--stakeholders2 .page_main .report-module-list { --t131sh-gap: 30px; }
}
body.heritage-page-slug--stakeholders2 .page_main .report-module-list > #ppt-2025-slide-13-copy,
body.heritage-page-slug--stakeholders2 .page_main .report-module-list > #ppt-2025-slide-14-copy { margin-bottom: calc(-1 * var(--t131sh-gap)); }
body.heritage-page-slug--stakeholders2 [data-report-module="ppt-2025-slide-13-copy"] > .report-module__body:empty,
body.heritage-page-slug--stakeholders2 [data-report-module="ppt-2025-slide-14-copy"] > .report-module__body:empty,
body.heritage-page-slug--stakeholders2 [data-report-module="ppt-2025-slide-13-table-1"] > .report-module__header:not(:has(*)) { display: none; }

/* 2025 Sustainability Topics legend: EN deck wording "Material Topic". */
html[lang="en"] body.heritage-page-slug--stakeholders2 .materiality-topics__legend span { text-transform: capitalize; }

/* Value chain table (English): first column wide enough for "Environment" / "Governance". */
@media (min-width: 768px) {
    html[lang="en"] body.heritage-page-slug--stakeholders2 [data-report-module="ppt-2025-slide-13-table-1"] colgroup col:first-child { width: 112px !important; }
    html[lang="en"] body.heritage-page-slug--stakeholders2 [data-report-module="ppt-2025-slide-13-table-1"] td[data-column-key="col_1"],
    html[lang="en"] body.heritage-page-slug--stakeholders2 [data-report-module="ppt-2025-slide-13-table-1"] th[data-column-key="col_1"] { min-width: 112px; overflow: visible; text-overflow: clip; }
}
