/* T131 social-a chapter fixes: /page/social2 (Human Rights Issues Management) and /page/social3 (Talent Cultivation and Diversity & Inclusion).
   Production (T127) is the base; this file only carries what the client's revision deck asked for:
   topic icons with spacing (slides 81, 84-85, 88-89, 91-93), centred tables (slides 82, 88, 93), heading spacing (slide 85),
   the SDG strip beside the page title (slide 79) and the employee-survey layout (slide 92). */

/* ---- Module heading icons: one Tabler glyph per topic, replacing the shared "people" sprite. ---- */
body.heritage-page-slug--social2 .page_main .report-module__title > svg.climate-context__icon,
body.heritage-page-slug--social3 .page_main .report-module__title > svg.climate-context__icon { display: none !important; }
body.heritage-page-slug--social2 .page_main :is([data-report-module="ppt-2025-slide-68-table-1"], [data-report-module="ppt-2025-slide-68-actions"], [data-report-module="ppt-2025-slide-69-table-1"], [data-report-module="ppt-2025-slide-69-table-2"], [data-report-module="ppt-2025-slide-70-copy"]) > .report-module__header > .report-module__title::before,
body.heritage-page-slug--social3 .page_main :is([data-report-module="r0912-workforce"], [data-report-module="ppt-2025-slide-71-table-1"], [data-report-module="original-people-workforce-history"], [data-report-module="report-2025-page-71-workforce-growth"], [data-report-module="ppt-2025-slide-72-copy"], [data-report-module="r0912-workforce-turnover"], [data-report-module="ppt-2025-slide-72-table-1"], [data-report-module="ppt-2025-slide-72-table-2"], [data-report-module="original-people-pay-policy-1"], [data-report-module="ppt-2025-slide-73-table-1"], [data-report-module="ppt-2025-slide-73-table-2"], [data-report-module="original-people-incentives"], [data-report-module="ppt-2025-slide-73-table-3"], [data-report-module="ppt-2025-slide-74-copy"], [data-report-module="ppt-2025-slide-75-training-types"], [data-report-module="ppt-2025-slide-75-table-1"], [data-report-module="ppt-2025-slide-76-copy"], [data-report-module="ppt-2025-slide-77-copy"], [data-report-module="ppt-2025-slide-78-table-1"], [data-report-module="report-2025-page-82-employee-experience"], [data-report-module="ppt-2025-slide-79-copy"]) > .report-module__header > .report-module__title::before {
    display: inline-block !important;
    position: static !important;
    flex: 0 0 auto;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    color: var(--t131-accent, #d97a2b);
    font-family: "tabler-icons" !important;
    font-size: 1.1em;
    font-style: normal;
    font-weight: 400;
    line-height: 1;
    speak: never;
    -webkit-font-smoothing: antialiased;
}
body.heritage-page-slug--social2 .page_main [data-report-module="ppt-2025-slide-68-table-1"] > .report-module__header > .report-module__title::before { content: "\f51a"; } /* target-arrow */
body.heritage-page-slug--social2 .page_main [data-report-module="ppt-2025-slide-68-actions"] > .report-module__header > .report-module__title::before { content: "\ea67"; } /* circle-check */
body.heritage-page-slug--social2 .page_main [data-report-module="ppt-2025-slide-69-table-1"] > .report-module__header > .report-module__title::before { content: "\ea59"; } /* chart-bar */
body.heritage-page-slug--social2 .page_main [data-report-module="ppt-2025-slide-69-table-2"] > .report-module__header > .report-module__title::before { content: "\eb6a"; } /* list-check */
body.heritage-page-slug--social2 .page_main [data-report-module="ppt-2025-slide-70-copy"] > .report-module__header > .report-module__title::before { content: "\eb54"; } /* world */
body.heritage-page-slug--social3 .page_main [data-report-module="r0912-workforce"] > .report-module__header > .report-module__title::before { content: "\fa21"; } /* users-group */
body.heritage-page-slug--social3 .page_main [data-report-module="ppt-2025-slide-71-table-1"] > .report-module__header > .report-module__title::before { content: "\ebf2"; } /* users */
body.heritage-page-slug--social3 .page_main [data-report-module="original-people-workforce-history"] > .report-module__header > .report-module__title::before { content: "\ea5c"; } /* chart-line */
body.heritage-page-slug--social3 .page_main [data-report-module="report-2025-page-71-workforce-growth"] > .report-module__header > .report-module__title::before { content: "\f0e3"; } /* gender-bigender */
body.heritage-page-slug--social3 .page_main [data-report-module="ppt-2025-slide-72-copy"] > .report-module__header > .report-module__title::before { content: "\f0f3"; } /* heart-handshake */
body.heritage-page-slug--social3 .page_main [data-report-module="r0912-workforce-turnover"] > .report-module__header > .report-module__title::before { content: "\f1f4"; } /* arrows-exchange */
body.heritage-page-slug--social3 .page_main [data-report-module="ppt-2025-slide-72-table-1"] > .report-module__header > .report-module__title::before { content: "\eb4b"; } /* user-plus */
body.heritage-page-slug--social3 .page_main [data-report-module="ppt-2025-slide-72-table-2"] > .report-module__header > .report-module__title::before { content: "\eb4a"; } /* user-minus */
body.heritage-page-slug--social3 .page_main [data-report-module="original-people-pay-policy-1"] > .report-module__header > .report-module__title::before { content: "\eae3"; } /* magnet */
body.heritage-page-slug--social3 .page_main [data-report-module="ppt-2025-slide-73-table-1"] > .report-module__header > .report-module__title::before { content: "\ea55"; } /* cash */
body.heritage-page-slug--social3 .page_main [data-report-module="ppt-2025-slide-73-table-2"] > .report-module__header > .report-module__title::before { content: "\ebc2"; } /* scale */
body.heritage-page-slug--social3 .page_main [data-report-module="original-people-incentives"] > .report-module__header > .report-module__title::before { content: "\eb68"; } /* gift */
body.heritage-page-slug--social3 .page_main [data-report-module="ppt-2025-slide-73-table-3"] > .report-module__header > .report-module__title::before { content: "\f05d"; } /* baby-carriage */
body.heritage-page-slug--social3 .page_main [data-report-module="ppt-2025-slide-74-copy"] > .report-module__header > .report-module__title::before { content: "\ed51"; } /* seedling */
body.heritage-page-slug--social3 .page_main [data-report-module="ppt-2025-slide-75-training-types"] > .report-module__header > .report-module__title::before { content: "\eff2"; } /* books */
body.heritage-page-slug--social3 .page_main [data-report-module="ppt-2025-slide-75-table-1"] > .report-module__header > .report-module__title::before { content: "\f319"; } /* clock-hour-4 */
body.heritage-page-slug--social3 .page_main [data-report-module="ppt-2025-slide-76-copy"] > .report-module__header > .report-module__title::before { content: "\ecf7"; } /* school */
body.heritage-page-slug--social3 .page_main [data-report-module="ppt-2025-slide-77-copy"] > .report-module__header > .report-module__title::before { content: "\eb6c"; } /* messages */
body.heritage-page-slug--social3 .page_main [data-report-module="ppt-2025-slide-78-table-1"] > .report-module__header > .report-module__title::before { content: "\eecb"; } /* report-analytics */
body.heritage-page-slug--social3 .page_main [data-report-module="report-2025-page-82-employee-experience"] > .report-module__header > .report-module__title::before { content: "\ea59"; } /* chart-bar */
body.heritage-page-slug--social3 .page_main [data-report-module="ppt-2025-slide-79-copy"] > .report-module__header > .report-module__title::before { content: "\eb90"; } /* headset */

/* ---- Numeric tables: every cell centred (client: 表格內容置中對齊). ---- */
body.heritage-page-slug--social2 .page_main :is([data-report-module="ppt-2025-slide-68-table-1"], [data-report-module="ppt-2025-slide-69-table-1"]) .social-register__table :is(th, td),
body.heritage-page-slug--social3 .page_main :is([data-report-module="ppt-2025-slide-73-table-1"], [data-report-module="ppt-2025-slide-78-table-1"]) .social-register__table :is(th, td) {
    text-align: center !important;
    vertical-align: middle !important;
}
body.heritage-page-slug--social3 .page_main :is([data-report-module="ppt-2025-slide-72-table-1"], [data-report-module="ppt-2025-slide-72-table-2"], [data-report-module="ppt-2025-slide-75-table-1"]) .table-v2-cell { text-align: center; }

/* ---- Topic modules whose body is empty: keep the major heading close to its first sub-section. ---- */
body.heritage-page-slug--social3 .page_main :is(#r0912-workforce, #r0912-workforce-turnover) { margin-bottom: -30px; }
body.heritage-page-slug--social3 .page_main :is([data-report-module="r0912-workforce"], [data-report-module="r0912-workforce-turnover"]) > .report-module__header { margin-bottom: 0 !important; }
body.heritage-page-slug--social3 .page_main :is([data-report-module="r0912-workforce"], [data-report-module="r0912-workforce-turnover"]) > .report-module__body:empty { display: none; }

/* ---- SDG goals beside the page title (desktop); directly under it on small screens. ---- */
body.heritage-page-slug--social2 .page_main [data-report-module="t131-social2-sdg-strip"] { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; }
body.heritage-page-slug--social2 .page_main .t131-sa-sdgs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
body.heritage-page-slug--social2 .page_main .t131-sa-sdgs img { display: block; width: 52px; height: 52px; margin: 0; object-fit: contain; }
@media (min-width: 992px) {
    body.heritage-page-slug--social2 .page_main { position: relative; }
    body.heritage-page-slug--social2 .page_main .page-title-row { min-height: 52px; padding-right: 250px; }
    body.heritage-page-slug--social2 .page_main :is(.page_con, .report-module-list) { position: static !important; }
    /* Out of the module grid: the strip sits on the right end of the page-title row, as in the client's slide. */
    body.heritage-page-slug--social2 .page_main #t131-social2-sdg-strip { position: absolute; top: 0; right: 0; z-index: 1; }
}
@media (max-width: 991.98px) {
    body.heritage-page-slug--social2 .page_main #t131-social2-sdg-strip { margin: -12px 0 -22px; }
}

/* ---- Production editorial blocks on /page/social2: sub-heading icons aligned with their text (slide 81). ---- */
body.heritage-page-slug--social2 .page_main .report-template--ppt-social-copy .ppt-editorial__grid > :is(.r0912-subsection-heading, .t131-impact) { grid-column: 1 / -1; }
body.heritage-page-slug--social2 .page_main .ppt-editorial__block > h4:not([class]) { display: flex; align-items: center; gap: 10px; }
body.heritage-page-slug--social2 .page_main .ppt-editorial__block > h4:not([class]) > i { flex: 0 0 auto; margin: 0; color: var(--t131-accent, #d97a2b); font-size: 1.1em; line-height: 1; }

/* ---- Employee opinion survey (slide 92 "此段排版請協助優化"): facts as stat cards, findings and actions side by side. ---- */
body.heritage-page-slug--social3 .page_main .t131-sa { color: #425964; }
body.heritage-page-slug--social3 .page_main .t131-sa p { margin: 0 0 10px; line-height: 1.8; }
body.heritage-page-slug--social3 .page_main .t131-sa-card p:last-child { margin-bottom: 0; }
body.heritage-page-slug--social3 .page_main .t131-sa-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 32px; align-items: start; }
body.heritage-page-slug--social3 .page_main .t131-sa-points { margin: 0; padding: 0; list-style: none; }
body.heritage-page-slug--social3 .page_main .t131-sa-points > li { position: relative; margin: 0 0 10px; padding-left: 18px; line-height: 1.8; }
body.heritage-page-slug--social3 .page_main .t131-sa-points > li::before { content: ""; position: absolute; top: .72em; left: 2px; width: 7px; height: 7px; border-radius: 50%; background: var(--t131-accent, #d97a2b); }
body.heritage-page-slug--social3 .page_main ol.t131-sa-points { counter-reset: t131sa; }
body.heritage-page-slug--social3 .page_main ol.t131-sa-points > li { padding-left: 32px; counter-increment: t131sa; }
body.heritage-page-slug--social3 .page_main ol.t131-sa-points > li::before { content: counter(t131sa); top: .2em; left: 0; display: grid; width: 22px; height: 22px; place-items: center; color: #fff; font-size: 12px; font-weight: 700; line-height: 1; }
body.heritage-page-slug--social3 .page_main .t131-sa-points strong { color: var(--t131-ink, #294653); }
body.heritage-page-slug--social3 .page_main .t131-sa-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 28px; }
body.heritage-page-slug--social3 .page_main .t131-sa-stats > .t131-sa-stats__item { min-width: 0; padding: 14px 16px; border: 1px solid var(--t131-line, #f1dcc8); border-top: 4px solid var(--t131-accent, #d97a2b); border-radius: 8px; background: linear-gradient(160deg, var(--t131-soft, #fdf1e6) 0%, #fff 75%); }
body.heritage-page-slug--social3 .page_main .t131-sa-stats__label { margin: 0 0 6px; color: var(--t131-copy, #4d6670); font-size: 14px; font-weight: 700; }
body.heritage-page-slug--social3 .page_main .t131-sa-stats__value { margin: 0; color: var(--t131-ink, #294653); font-size: 17px; font-weight: 700; line-height: 1.5; }
body.heritage-page-slug--social3 .page_main .t131-sa-stats .t131-sa-stats__score .t131-sa-stats__value { font-size: 13px; font-weight: 400; line-height: 1.6; color: var(--t131-copy, #4d6670); }
body.heritage-page-slug--social3 .page_main .t131-sa-stats .t131-sa-stats__score .t131-sa-stats__value strong { display: block; margin-bottom: 2px; color: var(--t131-accent-dark, #9a5423); font-size: 22px; line-height: 1.3; }
body.heritage-page-slug--social3 .page_main .t131-sa-card { min-width: 0; padding: 18px 20px; border: 1px solid var(--t131-line, #f1dcc8); border-top: 4px solid var(--t131-accent, #d97a2b); border-radius: 8px; background: #fff; box-shadow: 0 8px 20px rgb(31 73 91 / 6%); }
html body.heritage-page-slug--social3 .page_main .t131-sa-card > h4.drive-heading--secondary { margin: 0 0 12px !important; }
body.heritage-page-slug--social3 .page_main .t131-sa-card .t131-sa-lead { margin: 0 0 12px; padding: 0 0 12px; border-bottom: 1px dashed var(--t131-line, #f1dcc8); }

/* Benefits (slide 89): the eight items as a plain list, label in bold. */
body.heritage-page-slug--social3 .page_main .t131-sa-benefits { margin: 0; padding-left: 1.2em; }
body.heritage-page-slug--social3 .page_main .t131-sa-benefits > li { margin: 0 0 6px; line-height: 1.8; }

@media (max-width: 767px) {
    body.heritage-page-slug--social3 .page_main .t131-sa-pair { grid-template-columns: minmax(0, 1fr); }
    body.heritage-page-slug--social3 .page_main .t131-sa-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.heritage-page-slug--social3 .page_main .t131-sa-stats .t131-sa-stats__score { grid-column: 1 / -1; }
    body.heritage-page-slug--social2 .page_main .t131-sa-sdgs img { width: 48px; height: 48px; }
}
