/* T131 home-about chapter fixes: homepage (scoped by its home-only .kv / .home-esg-* blocks; the homepage
   body carries no page-slug class), /page/about, /page/about2, /page/about3. */

/* ZH-001-1  Homepage banner: a soft light veil behind the caption so the title never sits on the photo's objects. */
@media (min-width: 768px) {
    .kv.kv--still-life .kvs_item { position: relative; }
    .kv.kv--still-life .kvs_item::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        pointer-events: none;
        background: linear-gradient(90deg, rgba(244, 249, 250, .92) 0%, rgba(244, 249, 250, .82) 28%, rgba(244, 249, 250, .5) 40%, rgba(244, 249, 250, 0) 56%);
    }
    .kv.kv--still-life .kvs_caption { z-index: 2; }
    html[lang="en"] .kv.kv--still-life .kv_con { max-width: 400px; }
    html[lang="en"] .kv.kv--still-life .kv_title { font-size: 34px; line-height: 1.3; text-wrap: balance; }
}
@media (min-width: 768px) and (max-width: 1199.98px) {
    html[lang="en"] .kv.kv--still-life .kv_title { font-size: 30px; }
}

/* ZH-003-1  Homepage E/G indicator cards: no reserved empty subtitle row, compact heading block,
   values share one baseline at the bottom of equal-height cards. */
.home-esg-metrics--e .home-esg-item,
.home-esg-metrics--g .home-esg-item { grid-template-rows: minmax(0, 1fr); }
.home-esg-metrics--e .home-esg-shape,
.home-esg-metrics--g .home-esg-shape {
    height: 100%;
    min-height: 0;
    justify-content: flex-start;
    gap: 8px;
    padding: 22px 18px 24px;
}
.home-esg-metrics--e .home-esg-heading,
.home-esg-metrics--g .home-esg-heading { gap: 10px; }
.home-esg-metrics--e .home-esg-title,
.home-esg-metrics--g .home-esg-title { min-height: 0; line-height: 1.45; }
.home-esg-metrics--e .home-esg-subtitle,
.home-esg-metrics--g .home-esg-subtitle { min-height: 0; font-size: 14px; line-height: 1.45; }
.home-esg-metrics--e .home-esg-subtitle--empty,
.home-esg-metrics--g .home-esg-subtitle--empty { display: none; }
.home-esg-metrics--e .home-esg-values,
.home-esg-metrics--g .home-esg-values { min-height: 0; margin-top: auto; padding-top: 4px; }
.home-esg-metrics--e .home-esg-value,
.home-esg-metrics--g .home-esg-value { min-height: 0; line-height: 1.15; }
.home-esg-metrics--g .home-esg-shape { padding-inline: 22px; }
@media (max-width: 599px) {
    .home-esg-metrics--e .home-esg-shape,
    .home-esg-metrics--g .home-esg-shape { min-height: 0; padding: 22px 20px 24px; }
    .home-esg-metrics--e .home-esg-values,
    .home-esg-metrics--g .home-esg-values { margin-top: 6px; }
}

/* EN-005-2  Chairman letter: production box layout in both languages; English paragraphs are not first-line indented. */
html[lang="en"] body.heritage-page-slug--about .page_main .about1b_text { text-indent: 0; }

/* ZH-005-1  about2 KPI cards: text values ("NT$1.447 billion", "Approximately 1,500") wrap between words. */
body.heritage-page-slug--about2 .page_main .report-module--kpi .report-kpi__value strong:not([data-kpi-counter]) {
    font-size: 24px;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
}
@media (max-width: 575.98px) {
    body.heritage-page-slug--about2 .page_main .report-module--kpi .report-kpi__value strong:not([data-kpi-counter]) { font-size: 18px; }
}

/* ZH-004-1 / ZH-006-1  about2: every section heading uses the same primary heading (no stray header icons). */
html body.heritage-page-slug--about2 .page_main .social-groups > .report-module__header .report-module__title > .climate-context__icon { display: none !important; }

/* about2: "2025 Operational Performance" continues the milestone timeline as its last stop. */
html body.heritage-page-slug--about2 .page_main #ppt-2025-history + #ppt-2025-milestones .report-module > .report-module__header {
    position: relative;
    min-height: 48px;
    margin: 0 0 18px !important;
    padding: 8px 0 0 var(--history-gutter) !important;
    border: 0 !important;
    background: none !important;
}
html body.heritage-page-slug--about2 .page_main #ppt-2025-history + #ppt-2025-milestones .report-module > .report-module__header > h3.report-module__title {
    display: block !important;
    color: #225e8b !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.55 !important;
}
html body.heritage-page-slug--about2 .page_main #ppt-2025-history + #ppt-2025-milestones .report-module__title > .climate-context__icon {
    position: absolute;
    top: 0;
    left: calc(var(--history-axis) - 24px);
    box-sizing: border-box;
    width: 48px !important;
    height: 48px !important;
    padding: 10px;
    border: 3px solid #0f75bb;
    border-radius: 50%;
    background: #fff;
    color: #225e8b !important;
    font-size: inherit !important;
}
@media (max-width: 767.98px) {
    html body.heritage-page-slug--about2 .page_main #ppt-2025-history + #ppt-2025-milestones .report-module > .report-module__header > h3.report-module__title { font-size: 19px !important; }
    html body.heritage-page-slug--about2 .page_main #ppt-2025-history + #ppt-2025-milestones .report-module__title > .climate-context__icon { left: 0; width: 44px !important; height: 44px !important; padding: 9px; }
}

/* ZH-006-3  Four sustainability goals: 2 x 2 colour-coded cards, no dead "-" toggle. */
body.heritage-page-slug--about2 .page_main [data-report-module="ppt-2025-sustainability-goals"] .social-groups__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
body.heritage-page-slug--about2 .page_main [data-report-module="ppt-2025-sustainability-goals"] .social-groups__item {
    --goal: #c99a12;
    --goal-ink: #8a6a0c;
    --goal-soft: #fff8df;
    min-width: 0;
    padding: 20px 22px 22px;
    border: 1px solid color-mix(in srgb, var(--goal) 32%, #fff);
    border-top: 5px solid var(--goal);
    border-radius: 10px;
    background: linear-gradient(160deg, var(--goal-soft) 0%, #fff 78%);
    box-shadow: 0 10px 22px rgb(31 73 91 / 7%);
}
body.heritage-page-slug--about2 .page_main [data-report-module="ppt-2025-sustainability-goals"] .social-groups__item:nth-child(4n+2) { --goal: #3f8f55; --goal-ink: #2d6a3e; --goal-soft: #eaf5ec; }
body.heritage-page-slug--about2 .page_main [data-report-module="ppt-2025-sustainability-goals"] .social-groups__item:nth-child(4n+3) { --goal: #d97a2b; --goal-ink: #9a5423; --goal-soft: #fdf1e6; }
body.heritage-page-slug--about2 .page_main [data-report-module="ppt-2025-sustainability-goals"] .social-groups__item:nth-child(4n+4) { --goal: #0f75bb; --goal-ink: #174d7c; --goal-soft: #edf5fb; }
body.heritage-page-slug--about2 .page_main [data-report-module="ppt-2025-sustainability-goals"] .social-groups__item summary {
    display: flex;
    align-items: center;
    gap: 14px;
    pointer-events: none;
    cursor: default;
}
body.heritage-page-slug--about2 .page_main [data-report-module="ppt-2025-sustainability-goals"] .social-groups__item summary::after { content: none; display: none; }
body.heritage-page-slug--about2 .page_main [data-report-module="ppt-2025-sustainability-goals"] .social-groups__icon {
    box-sizing: border-box;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    padding: 11px;
    border-radius: 50%;
    background: #fff;
    color: var(--goal);
    box-shadow: 0 5px 13px color-mix(in srgb, var(--goal) 24%, transparent);
}
body.heritage-page-slug--about2 .page_main [data-report-module="ppt-2025-sustainability-goals"] .social-groups__item h4 {
    margin: 0;
    color: var(--goal-ink);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
}
body.heritage-page-slug--about2 .page_main [data-report-module="ppt-2025-sustainability-goals"] .social-groups__item p {
    margin: 16px 0 0;
    padding-top: 14px;
    border-top: 1px dashed color-mix(in srgb, var(--goal) 40%, #fff);
    color: #4d6670;
    font-size: 15px;
    line-height: 1.95;
}
/* Each goal point gets its own small gap, so wrapped lines never read as a new point. */
body.heritage-page-slug--about2 .page_main [data-report-module="ppt-2025-sustainability-goals"] .social-groups__item p br { display: block; content: ""; margin-top: 8px; }
@media (max-width: 767.98px) {
    body.heritage-page-slug--about2 .page_main [data-report-module="ppt-2025-sustainability-goals"] .social-groups__list { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    body.heritage-page-slug--about2 .page_main [data-report-module="ppt-2025-sustainability-goals"] .social-groups__item { padding: 18px 18px 20px; }
}

/* ZH-009-1  about3: the highlights table heading matches "Governance Oversight" (same primary heading, no icon). */
html body.heritage-page-slug--about3 .page_main [data-report-module="ppt-2025-slide-8-table-1"] .report-module__title > .climate-context__icon { display: none !important; }

/* download: the report cards keep production's top accent bar (drive-review.css hid it; ZH slide 109 only asked
   for a tighter frame around the cover). */
html body.heritage-page-slug--download .download-section--reports .download-card::before { display: block; }
