/* ESG14 page-specific styles. Shared ESG layout and table utilities live in ../esg-theme.css. */
.esg14-page {
    background: var(--esg-color-white);
}

.esg14-page .esg14-page-title {
    padding-top: 20px;
}

.esg14-page .esg14-row-lg {
    padding-top: 30px;
}

.esg14-page .esg14-row-sm {
    padding-top: 5px;
}

.esg14-page .esg14-text-block {
    line-height: 30px;
}

.esg14-page .esg14-heading-col {
    font-size: large;
}

.esg14-page .esg14-section-title {
    color: #1f3864;
}

.esg14-page .esg14-gri-code {
    color: #d71920;
}

.esg14-page .esg14-image-col {
    text-align: center;
}

.esg14-page .esg14-figure-image {
    width: 100%;
    height: auto;
}

.esg14-page .esg14-process-flow {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    border: 1px solid #4069b7;
    background: var(--esg-color-white);
}

.esg14-page .esg14-process-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 12px;
    background: #4069b7;
    color: var(--esg-color-white);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 4px;
    line-height: 1.8;
    text-align: center;
    text-indent: 0;
    writing-mode: vertical-rl;
}

.esg14-page .esg14-stage-identify {
    grid-row: span 2;
}

.esg14-page .esg14-stage-analysis {
    grid-row: span 3;
}

.esg14-page .esg14-stage-confirm {
    grid-row: span 1;
}

.esg14-page .esg14-process-step {
    --step-color: #4069b7;
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) 230px;
    gap: 22px;
    align-items: center;
    min-height: 132px;
    padding: 20px 22px;
    border-bottom: 1px solid #4069b7;
}

.esg14-page .esg14-process-step:last-child {
    border-bottom: none;
}

.esg14-page .esg14-step-label,
/*.esg14-page .esg14-step-result {
color: var(--step-color);
font-weight: 700;
text-indent: 0;
}*/
.esg14-page .esg14-step-result {
    position: relative;
    padding-left: 54px;
    font-size: 21px;
    line-height: 1.4;
    color: var(--step-color);
    font-weight: 700;
    text-indent: 0;
}


.esg14-page .esg14-step-label {
    font-size: 22px;
    line-height: 1.45;
    text-align: center;
}

.esg14-page .esg14-step-body {
    color: #333;
    font-size: 18px;
    line-height: 1.75;
    text-indent: 0;
}

/*.esg14-page .esg14-step-result {
    position: relative;
    padding-left: 54px;
    font-size: 21px;
    line-height: 1.4;
}

.esg14-page .esg14-step-result::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 42px;
    height: 22px;
    transform: translateY(-50%);
    background: var(--step-color);
    clip-path: polygon(0 0, 72% 0, 72% 18%, 100% 50%, 72% 82%, 72% 100%, 0 100%);
}*/
/* 左方柱子 */
.esg14-page .esg14-step-result::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px; /* 柱子寬度，可自行調整 */
    height: 13px;
    background: var(--step-color);
}

/* 右方箭頭 */
.esg14-page .esg14-step-result::after {
    content: "";
    position: absolute;
    left: 24px; /* 等於柱子的寬度 */
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    border-left: 18px solid var(--step-color);
}

.esg14-page .esg14-step-blue { --step-color: #4069b7; }
.esg14-page .esg14-step-orange { --step-color: #ffa32f; }
.esg14-page .esg14-step-teal { --step-color: #47b8b8; }
.esg14-page .esg14-step-lime { --step-color: #b8d322; }
.esg14-page .esg14-step-purple { --step-color: #6f4598; }
.esg14-page .esg14-step-gray { --step-color: #b9becf; }

.esg14-page .esg14-topic-wrap {
    max-width: 1100px;
}

.esg14-page .esg14-topic-table,
.esg14-page .esg14-boundary-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    background: var(--esg-color-white);
    color: #555;
}

.esg14-page .esg14-topic-table th,
.esg14-page .esg14-topic-table td,
.esg14-page .esg14-boundary-table th,
.esg14-page .esg14-boundary-table td {
    border: 1px solid #6d8fc4;
    text-indent: 0;
}

.esg14-page .esg14-topic-table th,
.esg14-page .esg14-boundary-table th {
    background: #3f6db5;
    color: var(--esg-color-white);
    font-weight: 700;
    text-align: center;
}

.esg14-page .esg14-topic-table th {
    background: #446fb8;
    border-color: #7ea0d6;
    padding: 10px 8px;
    font-size: 20px;
}

.esg14-page .esg14-topic-table td {
    border-color: #7ea0d6;
    padding: 8px;
}

.esg14-page .esg14-topic-table .aspect-col { width: 11%; }
.esg14-page .esg14-topic-table .num-col { width: 4%; }
.esg14-page .esg14-topic-table .impact-col { width: 15%; }
.esg14-page .esg14-topic-table .issue-col { width: 25%; }
.esg14-page .esg14-topic-table .material-col { width: 45%; }

.esg14-page .esg14-center-cell {
    text-align: center;
}

.esg14-page .esg14-aspect-cell {
    --aspect-color: #4069b7;
    vertical-align: middle;
    text-align: center;
}

.esg14-page .esg14-aspect-env,
.esg14-page .esg14-major-env {
    --aspect-color: #43bebe;
    background: #edf6f5;
}

.esg14-page .esg14-aspect-social,
.esg14-page .esg14-major-social {
    --aspect-color: #f4a232;
    background: #fbf4eb;
}

.esg14-page .esg14-aspect-governance,
.esg14-page .esg14-major-governance {
    --aspect-color: #4069b7;
    background: #f1f3f8;
}

.esg14-page .esg14-aspect-letter {
    color: var(--aspect-color);
    font-size: 54px;
    font-weight: 700;
    line-height: 1;
}

.esg14-page .esg14-aspect-name {
    margin-top: 8px;
    color: var(--aspect-color);
    font-size: 26px;
    font-weight: 700;
}

.esg14-page .esg14-major-cell {
    padding: 10px 18px;
    vertical-align: middle;
    line-height: 1.9;
}

.esg14-page .esg14-major-cell-large {
    padding: 14px 18px;
}

.esg14-page .esg14-topic-item {
    margin: 10px 0;
}

.esg14-page .esg14-topic-item-spaced {
    margin: 14px 0;
}

.esg14-page .esg14-topic-badge {
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 4px;
    border-radius: 50%;
    background: var(--aspect-color);
    color: var(--esg-color-white);
    font-size: 15px;
    font-weight: 700;
    line-height: 24px;
    text-align: center;
    vertical-align: middle;
}

.esg14-page .esg14-table-note {
    margin-top: 12px;
    padding: 0 2px;
    color: #666;
    font-size: 14px;
    line-height: 1.9;
}

.esg14-page .esg14-boundary-wrap {
    overflow-x: auto;
}

.esg14-page .esg14-boundary-table {
    width: 1180px;
    min-width: 1180px;
    font-size: 12px;
    line-height: 1.55;
}

.esg14-page .esg14-boundary-table th {
    padding: 8px 4px;
}

.esg14-page .esg14-boundary-table td {
    padding: 8px 6px;
    vertical-align: middle;
}

.esg14-page .esg14-boundary-table .head-row th {
    padding: 6px 4px;
}

.esg14-page .esg14-boundary-table tr.env-row { background: #dfe8e6; }
.esg14-page .esg14-boundary-table tr.social-row { background: #eee7df; }
.esg14-page .esg14-boundary-table tr.governance-row { background: #dfe4eb; }

.esg14-page .esg14-boundary-table th:nth-child(1),
.esg14-page .esg14-boundary-table td:nth-child(1) { width: 34px; text-align: center; }
.esg14-page .esg14-boundary-table th:nth-child(2),
.esg14-page .esg14-boundary-table td:nth-child(2) { width: 76px; text-align: center; font-weight: 700; }
.esg14-page .esg14-boundary-table th:nth-child(3),
.esg14-page .esg14-boundary-table td:nth-child(3) { width: 220px; }
.esg14-page .esg14-boundary-table th:nth-child(4),
.esg14-page .esg14-boundary-table td:nth-child(4) { width: 120px; }
.esg14-page .esg14-boundary-table th:nth-child(5),
.esg14-page .esg14-boundary-table td:nth-child(5) { width: 220px; }
.esg14-page .esg14-boundary-table th:nth-child(6),
.esg14-page .esg14-boundary-table td:nth-child(6),
.esg14-page .esg14-boundary-table th:nth-child(7),
.esg14-page .esg14-boundary-table td:nth-child(7),
.esg14-page .esg14-boundary-table th:nth-child(8),
.esg14-page .esg14-boundary-table td:nth-child(8) { width: 48px; text-align: center; }
.esg14-page .esg14-boundary-table th:nth-child(9),
.esg14-page .esg14-boundary-table td:nth-child(9) { width: 92px; }
.esg14-page .esg14-boundary-table th:nth-child(10),
.esg14-page .esg14-boundary-table td:nth-child(10),
.esg14-page .esg14-boundary-table th:nth-child(11),
.esg14-page .esg14-boundary-table td:nth-child(11),
.esg14-page .esg14-boundary-table th:nth-child(12),
.esg14-page .esg14-boundary-table td:nth-child(12) { width: 72px; }
.esg14-page .esg14-boundary-table th:nth-child(13),
.esg14-page .esg14-boundary-table td:nth-child(13) { width: 82px; }

@media (max-width: 900px) {
    .esg14-page .esg14-process-flow {
        grid-template-columns: 1fr;
    }

    .esg14-page .esg14-process-stage {
        writing-mode: horizontal-tb;
    }

    .esg14-page .esg14-stage-identify,
    .esg14-page .esg14-stage-analysis,
    .esg14-page .esg14-stage-confirm {
        grid-row: auto;
    }

    .esg14-page .esg14-process-step {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .esg14-page .esg14-step-label,
    .esg14-page .esg14-step-result {
        text-align: left;
    }
}
