/* T131 social-b chapter fixes: /page/social4 (Occupational Health and Safety) and /page/social5 (Social Care). */

/* ---- Heading icons: each heading gets a Tabler glyph that matches its topic (replaces the shared helmet / gift sprite). ---- */
body.heritage-page-slug--social4 .page_main .report-module__title > svg.climate-context__icon,
body.heritage-page-slug--social5 .page_main .report-module__title > svg.climate-context__icon { display: none !important; }
body.heritage-page-slug--social4 .page_main .report-module__title::before,
body.heritage-page-slug--social5 .page_main .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--social4 .page_main [data-report-module="ppt-2025-slide-80-copy"] .report-module__title::before { content: "\eb9d"; }
body.heritage-page-slug--social4 .page_main [data-report-module="ppt-2025-slide-81-copy"] .report-module__title::before { content: "\eb22"; }
body.heritage-page-slug--social4 .page_main [data-report-module="ppt-2025-slide-81-table-1"] .report-module__title::before { content: "\f51a"; }
body.heritage-page-slug--social4 .page_main [data-report-module="ppt-2025-slide-82-copy"] .report-module__title::before { content: "\eea9"; }
body.heritage-page-slug--social4 .page_main [data-report-module="ppt-2025-slide-83-table-1"] .report-module__title::before { content: "\ea06"; }
body.heritage-page-slug--social4 .page_main [data-report-module="ppt-2025-slide-83-copy"] .report-module__title::before { content: "\eb6a"; }
body.heritage-page-slug--social4 .page_main [data-report-module="ppt-2025-slide-84-copy"] .report-module__title::before { content: "\f7d0"; }
body.heritage-page-slug--social4 .page_main [data-report-module="ppt-2025-slide-85-copy"] .report-module__title::before { content: "\ecf7"; }
body.heritage-page-slug--social4 .page_main [data-report-module="ppt-2025-slide-85-table-1"] .report-module__title::before { content: "\ea59"; }
body.heritage-page-slug--social4 .page_main [data-report-module="ppt-2025-slide-86-copy"] .report-module__title::before { content: "\eb48"; }
body.heritage-page-slug--social4 .page_main [data-report-module="report-2025-page-91-accident-flow"] .report-module__title::before { content: "\ef5f"; }
body.heritage-page-slug--social4 .page_main [data-report-module="ppt-2025-slide-87-table-1"] .report-module__title::before { content: "\eecc"; }
body.heritage-page-slug--social4 .page_main [data-report-module="ppt-2025-slide-88-copy"] .report-module__title::before { content: "\f7b6"; }
body.heritage-page-slug--social4 .page_main [data-report-module="r0912-health-events-1"] .report-module__title::before { content: "\ea97"; }
body.heritage-page-slug--social4 .page_main [data-report-module="r0912-health-events-2"] .report-module__title::before { content: "\ec82"; }
body.heritage-page-slug--social4 .page_main [data-report-module="r0912-health-support-1"] .report-module__title::before { content: "\ef92"; }
body.heritage-page-slug--social4 .page_main [data-report-module="r0912-health-support-2"] .report-module__title::before { content: "\eb64"; }
body.heritage-page-slug--social5 .page_main [data-report-module="ppt-2025-slide-90-table-1"] .report-module__title::before { content: "\f0f3"; }
body.heritage-page-slug--social5 .page_main [data-report-module="ppt-2025-slide-91-copy"] .report-module__title::before { content: "\eabe"; }
body.heritage-page-slug--social5 .page_main [data-report-module="r0912-community-care-1"] .report-module__title::before { content: "\edbe"; }
body.heritage-page-slug--social5 .page_main [data-report-module="r0912-community-care-2"] .report-module__title::before { content: "\eb68"; }
body.heritage-page-slug--social5 .page_main [data-report-module="ppt-2025-slide-92-copy"] .report-module__title::before { content: "\ecf7"; }
body.heritage-page-slug--social5 .page_main [data-report-module="r0912-community-education-1"] .report-module__title::before { content: "\ef64"; }
body.heritage-page-slug--social5 .page_main [data-report-module="r0912-community-education-2"] .report-module__title::before { content: "\ec28"; }
body.heritage-page-slug--social5 .page_main [data-report-module="r0912-community-education-3"] .report-module__title::before { content: "\ea39"; }

/* ---- Vertical rhythm: a section heading with no body of its own sits close to its first sub-heading. ---- */
body.heritage-page-slug--social4 .page_main [data-report-module="ppt-2025-slide-85-copy"] > .report-module__body:empty,
body.heritage-page-slug--social4 .page_main [data-report-module="ppt-2025-slide-88-copy"] > .report-module__body:empty,
body.heritage-page-slug--social5 .page_main [data-report-module="ppt-2025-slide-91-copy"] > .report-module__body:empty,
body.heritage-page-slug--social5 .page_main [data-report-module="ppt-2025-slide-92-copy"] > .report-module__body:empty { display: none; }
body.heritage-page-slug--social4 .page_main [data-report-module="ppt-2025-slide-85-copy"] > .report-module__header,
body.heritage-page-slug--social4 .page_main [data-report-module="ppt-2025-slide-88-copy"] > .report-module__header,
body.heritage-page-slug--social5 .page_main [data-report-module="ppt-2025-slide-91-copy"] > .report-module__header,
body.heritage-page-slug--social5 .page_main [data-report-module="ppt-2025-slide-92-copy"] > .report-module__header { margin-bottom: 0 !important; }
/* Hazard process: the lead sentence sits right above its figure; the hierarchy figure follows directly. */
body.heritage-page-slug--social4 .page_main [data-report-module="ppt-2025-slide-82-copy"] .report-module__body p:last-child { margin-bottom: 0; }
body.heritage-page-slug--social4 .page_main [data-report-module="ppt-2025-slide-82-copy"] .ppt-editorial__grid { padding-bottom: 0; margin-bottom: 0; }
body.heritage-page-slug--social4 .page_main [data-report-module="report-2025-page-86-hazard-flow"],
body.heritage-page-slug--social4 .page_main [data-report-module="report-2025-page-86-control-hierarchy"] { margin-top: 0 !important; }

/* ---- Governance, impact and on-site measures: tighter line and paragraph spacing (slide 96 "文字行距間隔太寬"). ---- */
body.heritage-page-slug--social4 .page_main [data-report-module="ppt-2025-slide-80-copy"] .report-module__body p,
body.heritage-page-slug--social4 .page_main [data-report-module="ppt-2025-slide-81-copy"] .report-module__body p,
body.heritage-page-slug--social4 .page_main [data-report-module="ppt-2025-slide-83-copy"] .report-module__body p { margin: 0 0 4px !important; line-height: 1.75; }
body.heritage-page-slug--social4 .page_main [data-report-module="ppt-2025-slide-80-copy"] .report-module__body p + h4.drive-heading--secondary,
body.heritage-page-slug--social4 .page_main [data-report-module="ppt-2025-slide-81-copy"] .report-module__body p + h4.drive-heading--secondary,
body.heritage-page-slug--social4 .page_main [data-report-module="ppt-2025-slide-83-copy"] .report-module__body p + h4.drive-heading--secondary { margin-top: 16px !important; }
body.heritage-page-slug--social4 .page_main [data-report-module="ppt-2025-slide-80-copy"] .report-module__body h4.drive-heading--secondary:first-child,
body.heritage-page-slug--social4 .page_main [data-report-module="ppt-2025-slide-81-copy"] .report-module__body h4.drive-heading--secondary:first-child,
body.heritage-page-slug--social4 .page_main [data-report-module="ppt-2025-slide-83-copy"] .report-module__body h4.drive-heading--secondary:first-child { margin-top: 0 !important; }

/* Impact cards (slide 21 site-wide style): the zero-accident lead sits clear of the cards. */
body.heritage-page-slug--social4 .page_main [data-report-module="ppt-2025-slide-81-copy"] .report-module__body .t131-impact + p { margin-top: 14px !important; }

/* ---- Tables: centred values (training and injury statistics). ---- */
body.heritage-page-slug--social4 .page_main [data-report-module="ppt-2025-slide-85-table-1"] .social-register__table tbody td,
body.heritage-page-slug--social4 .page_main [data-report-module="ppt-2025-slide-85-table-1"] .social-register__table tbody th,
body.heritage-page-slug--social4 .page_main [data-report-module="ppt-2025-slide-87-table-1"] .social-register__table tbody td { text-align: center !important; font-variant-numeric: tabular-nums; }
body.heritage-page-slug--social4 .page_main [data-report-module="ppt-2025-slide-87-copy"] .report-module__body p { margin: 0 0 2px !important; color: var(--t131-copy, #4d6670); font-size: 14px !important; line-height: 1.6 !important; }

/* ---- Emergency drills: one card per plant with a total badge (2 x 2 on desktop). ---- */
body.heritage-page-slug--social4 .page_main .t131-drills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, auto); grid-auto-flow: column; gap: 16px 18px; }
body.heritage-page-slug--social4 .page_main .t131-drill { min-width: 0; padding: 16px 18px 14px; border: 1.5px solid #f0a46a; border-radius: 14px; background: #fff; box-shadow: 0 6px 16px rgb(217 122 43 / 8%); }
body.heritage-page-slug--social4 .page_main .t131-drill__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
body.heritage-page-slug--social4 .page_main .t131-drill__name { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; border: 0; background: none; color: var(--t131-ink, #294653); font-size: 17px; font-weight: 700; line-height: 1.4; }
body.heritage-page-slug--social4 .page_main .t131-drill__name i { color: var(--t131-accent, #d97a2b); font-size: 1.1em; }
body.heritage-page-slug--social4 .page_main .t131-drill__total { flex: 0 0 auto; padding: 4px 14px; border-radius: 6px; background: #ef7d32; color: #fff; font-size: 15px; font-weight: 700; line-height: 1.5; white-space: nowrap; }
body.heritage-page-slug--social4 .page_main .t131-drill__list { margin: 0; padding-left: 1.2em; list-style: disc; }
body.heritage-page-slug--social4 .page_main .t131-drill__list li { margin: 0 0 4px; color: var(--t131-copy, #4d6670); line-height: 1.7; }
body.heritage-page-slug--social4 .page_main .t131-drill__list li::marker { color: #ef7d32; }
body.heritage-page-slug--social4 .page_main .t131-drill__list strong { color: #e0641c; font-weight: 700; }

/* ---- Activity photos: no grey letterbox frame, one crop size for every photo. ---- */
body.heritage-page-slug--social4 .page_main .revision-0912--photos-2 .report-gallery__item,
body.heritage-page-slug--social4 .page_main .revision-0912--photos-3 .report-gallery__item,
body.heritage-page-slug--social5 .page_main .revision-0912--photos-2 .report-gallery__item { margin: 0; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; overflow: hidden; border-radius: 6px; }
body.heritage-page-slug--social4 .page_main .revision-0912--photos-2 .report-gallery img,
body.heritage-page-slug--social4 .page_main .revision-0912--photos-3 .report-gallery img,
body.heritage-page-slug--social5 .page_main .revision-0912--photos-2 .report-gallery img { display: block; width: 100% !important; height: auto !important; aspect-ratio: 4 / 3; object-fit: cover !important; background: none !important; border: 0 !important; border-radius: 6px; padding: 0 !important; }

/* ---- social5 performance cards: SROI keeps its "1 :" ratio prefix while 9.69 counts up. ---- */
body.heritage-page-slug--social5 .page_main [data-report-module="ppt-2025-slide-90-copy"] .report-kpi__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.heritage-page-slug--social5 .page_main [data-report-module="ppt-2025-slide-90-copy"] .report-kpi__item:nth-child(3) .report-kpi__value strong::before { content: "1 : "; }

/* ---- social5 core project table: words never split mid-word; beneficiaries column centred. ---- */
body.heritage-page-slug--social5 .page_main [data-report-module="ppt-2025-slide-90-table-1"] .table-v2-cell { word-break: normal !important; overflow-wrap: normal !important; hyphens: manual; }
body.heritage-page-slug--social5 .page_main [data-report-module="ppt-2025-slide-90-table-1"] .table-v2-cell[data-column-key="col_4"] { text-align: center !important; }

@media (max-width: 991.98px) {
    body.heritage-page-slug--social5 .page_main [data-report-module="ppt-2025-slide-90-copy"] .report-kpi__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    body.heritage-page-slug--social4 .page_main .t131-drills { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; }
    body.heritage-page-slug--social5 .page_main [data-report-module="ppt-2025-slide-90-table-1"] .table-v2-cell[data-column-key="col_4"] { text-align: left !important; }
}

/* ---- Hierarchy-of-controls figure: its labels reach the top-right corner, so the zoom control sits below the figure. ---- */
body.heritage-page-slug--social4 .page_main [data-report-module="report-2025-page-86-control-hierarchy"] .drive-source-figure { display: flex; flex-direction: column; }
body.heritage-page-slug--social4 .page_main [data-report-module="report-2025-page-86-control-hierarchy"] .drive-source-figure__zoom { position: static; align-self: flex-end; margin: 6px 0 0; padding: 5px 7px; font-size: 18px; }


/* ---- Module spacing (the module list is a grid: 56px gap on desktop, 30px on phones). ---- */
@media (min-width: 768px) {
body.heritage-page-slug--social4 .page_main #ppt-2025-slide-85-table-1,
body.heritage-page-slug--social4 .page_main #r0912-health-events-1,
body.heritage-page-slug--social5 .page_main #r0912-community-care-1,
body.heritage-page-slug--social5 .page_main #r0912-community-education-1 { margin-top: -32px; }
/* Sub-headings inside one topic sit closer (slides 101, 107, 108 "標題間隔太寬"); the drill photos follow their cards (slide 101). */
body.heritage-page-slug--social4 .page_main #report-2025-page-91-accident-flow,
body.heritage-page-slug--social5 .page_main #r0912-community-care-2,
body.heritage-page-slug--social5 .page_main #r0912-community-education-2,
body.heritage-page-slug--social5 .page_main #r0912-community-education-3 { margin-top: -20px; }
body.heritage-page-slug--social4 .page_main #report-2025-page-90-emergency-drill-gallery { margin-top: -36px; }
body.heritage-page-slug--social4 .page_main #report-2025-page-86-hazard-flow { margin-top: -40px; }
body.heritage-page-slug--social4 .page_main #report-2025-page-86-control-hierarchy { margin-top: -32px; }
/* Injury-statistics notes: smaller, tight, directly under the table. */
body.heritage-page-slug--social4 .page_main #ppt-2025-slide-87-copy { margin-top: -44px; }
}
@media (max-width: 767px) {
body.heritage-page-slug--social4 .page_main #ppt-2025-slide-85-table-1,
body.heritage-page-slug--social4 .page_main #r0912-health-events-1,
body.heritage-page-slug--social5 .page_main #r0912-community-care-1,
body.heritage-page-slug--social5 .page_main #r0912-community-education-1 { margin-top: -16px; }
/* Sub-headings inside one topic sit closer (slides 101, 107, 108 "標題間隔太寬"); the drill photos follow their cards (slide 101). */
body.heritage-page-slug--social4 .page_main #report-2025-page-91-accident-flow,
body.heritage-page-slug--social5 .page_main #r0912-community-care-2,
body.heritage-page-slug--social5 .page_main #r0912-community-education-2,
body.heritage-page-slug--social5 .page_main #r0912-community-education-3 { margin-top: -10px; }
body.heritage-page-slug--social4 .page_main #report-2025-page-90-emergency-drill-gallery { margin-top: -18px; }
body.heritage-page-slug--social4 .page_main #report-2025-page-86-hazard-flow { margin-top: -20px; }
body.heritage-page-slug--social4 .page_main #report-2025-page-86-control-hierarchy { margin-top: -16px; }
/* Injury-statistics notes: smaller, tight, directly under the table. */
body.heritage-page-slug--social4 .page_main #ppt-2025-slide-87-copy { margin-top: -22px; }
}
