/* T131 gov-b: /page/governance4, governance5, governance6 (zh + en). Production layout; only the client's requests below. */

/* zh slides 23 / 27: KPI numbers centred inside their cards (prefix and unit travel with the number). */
body.heritage-page-slug--governance4 .page_main [data-report-module="ppt-2025-slide-27-copy"] .ppt-editorial__block--metric > p,
body.heritage-page-slug--governance5 .page_main [data-report-module="ppt-2025-slide-30-copy"] .ppt-editorial__block--metric > p {
    justify-content: center;
    width: 100%;
    text-align: center;
}

/* zh slide 23: "產品及營業占比" is a secondary heading under "公司營運績效概況" (no primary left bar). */
body.heritage-page-slug--governance4 .page_main [data-report-module="ppt-2025-slide-27-copy"] .ppt-editorial__grid > .ppt-editorial__block--heading:has(> .drive-heading--secondary) {
    margin-top: 1.25rem;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
}
body.heritage-page-slug--governance4 .page_main [data-report-module="ppt-2025-slide-27-copy"] .ppt-editorial__grid > .ppt-editorial__block--heading:has(> .drive-heading--secondary) > h4 { margin: 0 !important; }

/* zh slide 24: product revenue table - amounts right, percentages centred. */
body.heritage-page-slug--governance4 .page_main [data-report-module="ppt-2025-slide-27-table-1"] .social-register__table tbody td { font-variant-numeric: tabular-nums; }
body.heritage-page-slug--governance4 .page_main [data-report-module="ppt-2025-slide-27-table-1"] .social-register__table tbody td:nth-child(even) { text-align: right; }
body.heritage-page-slug--governance4 .page_main [data-report-module="ppt-2025-slide-27-table-1"] .social-register__table tbody td:nth-child(odd) { text-align: center; }

/* zh slide 25: financial report summary - item column centred, amounts right. */
body.heritage-page-slug--governance4 .page_main [data-report-module="ppt-2025-slide-28-table-1"] .social-register__table tbody th { text-align: center; }
body.heritage-page-slug--governance4 .page_main [data-report-module="ppt-2025-slide-28-table-1"] .social-register__table tbody td { text-align: right; font-variant-numeric: tabular-nums; }

/* zh slide 23 (X): the product revenue chart has no heading of its own, so its empty header takes no space. */
body.heritage-page-slug--governance4 .page_main [data-report-module="report-2025-page-13-product-revenue-chart"] > .report-module__header:not(:has(*)) { display: none; }

/* English headers wrap between words only ("Completion Rate", not "Completio/n Rate"). */
body.heritage-page-slug--governance4 .page_main .social-register__table thead th,
body.heritage-page-slug--governance5 .page_main .social-register__table thead th,
body.heritage-page-slug--governance6 .page_main .social-register__table thead th { overflow-wrap: normal; word-break: normal; hyphens: none; }

/* zh slide 28: training table - plant column and the three figures centred (topic stays left). */
body.heritage-page-slug--governance5 .page_main [data-report-module="ppt-2025-slide-30-table-1"] .social-register__table tbody th,
body.heritage-page-slug--governance5 .page_main [data-report-module="ppt-2025-slide-30-table-1"] .social-register__table tbody td { text-align: center; font-variant-numeric: tabular-nums; }
body.heritage-page-slug--governance5 .page_main [data-report-module="ppt-2025-slide-30-table-1"] .social-register__table tbody td:nth-child(2):nth-last-child(4) { text-align: left; }

/* en deck slide 65: "Onboarding Date" / "Signing Timing" never break inside a word. */
body.heritage-page-slug--governance5 .page_main [data-report-module="ppt-2025-slide-31-table-1"] .social-register__table tr > :nth-child(2) { white-space: nowrap; overflow-wrap: normal; word-break: keep-all; }

/* zh slide 30 (X): the channels heading no longer has a paragraph below it. */
body.heritage-page-slug--governance5 .page_main [data-report-module="original-ethics-reporting"] > .report-module__body:empty { display: none; }
body.heritage-page-slug--governance5 .page_main .report-module[data-report-module="original-ethics-reporting"]:has(> .report-module__body:empty) { margin-bottom: 0; padding-bottom: 0; }

/* English compliance introduction is pending (EN-069-1): its empty placeholder row renders nothing. */
body.heritage-page-slug--governance6 .page_main .report-module[data-report-module="original-compliance-context"]:not(:has(> .report-module__header)):has(> .report-module__body:empty) { display: none; }

/* zh slide 32: the metrics table now carries the production "指標目標" heading, which has no icon in production. */
body.heritage-page-slug--governance6 .page_main [data-report-module="ppt-2025-slide-34-table-1"] > .report-module__header .climate-context__icon { display: none; }

/* zh slide 21 (site-wide): impact-assessment heading sits at the same level as the page's other section headings,
   followed by the shared red/green impact cards (t131-unify.css). */
html body.heritage-page-slug--governance6 .page_main [data-report-module="ppt-2025-slide-33-copy"] .ppt-editorial > h4.drive-heading--primary { margin: 2rem 0 1.25rem !important; }

/* zh slide 5 (site-wide): KPI cards follow the sustainable-supply-chain KPI design (coloured top rule, soft gradient,
   white round icon, coloured figures); zh slides 23 / 27: figures centred, units smaller. */
html body.heritage-page-slug--governance4 .page_main [data-report-module="ppt-2025-slide-27-copy"] .ppt-editorial__block.ppt-editorial__block--metric-card,
html body.heritage-page-slug--governance5 .page_main [data-report-module="ppt-2025-slide-30-copy"] .ppt-editorial__block.ppt-editorial__block--metric-card {
    --t131-card: var(--t131-k4);
    --t131-card-soft: var(--t131-k4-soft);
    gap: 12px;
    min-height: 168px;
    padding: 20px 18px;
    border: 1px solid color-mix(in srgb, var(--t131-card) 35%, #fff);
    border-top: 6px solid var(--t131-card);
    border-radius: 9px;
    background: linear-gradient(155deg, var(--t131-card-soft) 0%, #fff 88%);
    box-shadow: 0 10px 22px rgb(31 73 91 / 8%);
}
html body.heritage-page-slug--governance4 .page_main [data-report-module="ppt-2025-slide-27-copy"] .ppt-editorial__block--metric-card:nth-child(2),
html body.heritage-page-slug--governance5 .page_main [data-report-module="ppt-2025-slide-30-copy"] .ppt-editorial__block--metric-card:nth-child(1) { --t131-card: var(--t131-k1); --t131-card-soft: var(--t131-k1-soft); }
html body.heritage-page-slug--governance4 .page_main [data-report-module="ppt-2025-slide-27-copy"] .ppt-editorial__block--metric-card:nth-child(3),
html body.heritage-page-slug--governance5 .page_main [data-report-module="ppt-2025-slide-30-copy"] .ppt-editorial__block--metric-card:nth-child(2) { --t131-card: var(--t131-k2); --t131-card-soft: var(--t131-k2-soft); }
html body.heritage-page-slug--governance4 .page_main [data-report-module="ppt-2025-slide-27-copy"] .ppt-editorial__block--metric-card:nth-child(4),
html body.heritage-page-slug--governance5 .page_main [data-report-module="ppt-2025-slide-30-copy"] .ppt-editorial__block--metric-card:nth-child(3) { --t131-card: var(--t131-k3); --t131-card-soft: var(--t131-k3-soft); }
html body.heritage-page-slug--governance4 .page_main [data-report-module="ppt-2025-slide-27-copy"] .ppt-editorial__block--metric-card > h4,
html body.heritage-page-slug--governance5 .page_main [data-report-module="ppt-2025-slide-30-copy"] .ppt-editorial__block--metric-card > h4 {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-height: 0;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    color: var(--t131-ink);
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.55;
}
html body.heritage-page-slug--governance4 .page_main [data-report-module="ppt-2025-slide-27-copy"] .ppt-editorial__block--metric-card > h4 > i,
html body.heritage-page-slug--governance5 .page_main [data-report-module="ppt-2025-slide-30-copy"] .ppt-editorial__block--metric-card > h4 > i {
    display: grid;
    width: 44px;
    height: 44px;
    margin: 0 !important;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: var(--t131-card);
    font-size: 24px;
    box-shadow: 0 5px 13px color-mix(in srgb, var(--t131-card) 20%, transparent);
}
html body.heritage-page-slug--governance4 .page_main [data-report-module="ppt-2025-slide-27-copy"] .ppt-editorial__block--metric-card > p,
html body.heritage-page-slug--governance5 .page_main [data-report-module="ppt-2025-slide-30-copy"] .ppt-editorial__block--metric-card > p {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin: auto 0 0;
    color: var(--t131-card);
    font-weight: 800;
    line-height: 1.15;
}
html body.heritage-page-slug--governance4 .page_main [data-report-module="ppt-2025-slide-27-copy"] .ppt-editorial__metric-value strong,
html body.heritage-page-slug--governance5 .page_main [data-report-module="ppt-2025-slide-30-copy"] .ppt-editorial__metric-value strong {
    color: var(--t131-card);
    font-size: clamp(1.65rem, 1.35rem + .65vw, 2.05rem);
    font-weight: 800;
    white-space: nowrap;
}
html body.heritage-page-slug--governance4 .page_main [data-report-module="ppt-2025-slide-27-copy"] .ppt-editorial__metric-prefix,
html body.heritage-page-slug--governance5 .page_main [data-report-module="ppt-2025-slide-30-copy"] .ppt-editorial__metric-prefix { color: var(--t131-card); font-size: 1.25rem; font-weight: 800; }
html body.heritage-page-slug--governance4 .page_main [data-report-module="ppt-2025-slide-27-copy"] .ppt-editorial__metric-unit,
html body.heritage-page-slug--governance5 .page_main [data-report-module="ppt-2025-slide-30-copy"] .ppt-editorial__metric-unit { color: var(--t131-card); font-size: 15px; font-weight: 600; }
@media (max-width: 575.98px) {
    html body.heritage-page-slug--governance4 .page_main [data-report-module="ppt-2025-slide-27-copy"] .ppt-editorial__block.ppt-editorial__block--metric-card,
    html body.heritage-page-slug--governance5 .page_main [data-report-module="ppt-2025-slide-30-copy"] .ppt-editorial__block.ppt-editorial__block--metric-card { min-height: 0; padding: 16px 14px; }
    html body.heritage-page-slug--governance4 .page_main [data-report-module="ppt-2025-slide-27-copy"] .ppt-editorial__metric-value strong,
    html body.heritage-page-slug--governance5 .page_main [data-report-module="ppt-2025-slide-30-copy"] .ppt-editorial__metric-value strong { font-size: 1.5rem; white-space: normal; }
}
