/* ESG31 page-specific styles. Shared colors and spacing live in ../esg-theme.css. */

.esg31-page {
    /* Page-owned structural colors retained for this board / table family. */
    --esg31-grid: #f7a24a;
    --esg31-fill: #fff8ef;
}

.esg31-page .esg31-wrap-plain {
    border: none;
}

.esg31-page .esg31-wrap-scroll {
    overflow-x: auto;
}

.esg31-page .esg31-board-highlight-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.esg31-page .esg31-board-highlight-card {
    text-align: center;
}

.esg31-page .esg31-board-highlight-card h4 {
    margin: 0 0 14px;
    padding: 12px 16px;
    background: #ebbf67;
    color: #1f1f1f;
    font-size: 22px;
    font-weight: 700;
    text-indent: 0;
}

.esg31-page .esg31-board-highlight-card p {
    margin: 0 0 6px;
    font-size: 17px;
    line-height: 1.6;
    text-indent: 0;
    text-align: center !important;
}

.esg31-page .esg31-side-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.esg31-page .esg31-side-table th,
.esg31-page .esg31-side-table td {
    border: 2px solid var(--esg31-grid);
    text-indent: 0;
}

.esg31-page .esg31-side-table th {
    width: 15%;
    background: var(--esg-color-chart-orange);
    color: var(--esg-color-white);
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    vertical-align: middle;
    padding: 16px 12px;
}

.esg31-page .esg31-side-table td {
    background: var(--esg31-fill);
    padding: 18px 22px;
    font-size: 17px;
    line-height: 1.75;
    text-align: left;
    vertical-align: middle;
}

.esg31-page .esg31-side-table td p {
    margin: 0 0 12px;
    text-indent: 0;
    text-align: left;
}

.esg31-page .esg31-side-table td p:last-child {
    margin-bottom: 0;
}

.esg31-page .esg31-flow-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.45fr 1.35fr;
    gap: 18px;
    align-items: stretch;
}

.esg31-page .esg31-flow-card {
    padding: 26px 36px;
    color: var(--esg-color-white);
    clip-path: polygon(0 0, 88% 0, 100% 50%, 88% 100%, 0 100%, 9% 50%);
}

.esg31-page .esg31-flow-card h5,
.esg31-page .esg31-flow-card p {
    margin: 0;
    text-indent: 0;
    text-align: center;
    padding: 0 1vw;
}

.esg31-page .esg31-flow-card h5 {
    margin-bottom: 18px;
    font-size: 22px;
    font-weight: 700;
}

.esg31-page .esg31-flow-card p {
    font-size: 17px;
    line-height: 1.8;
}

.esg31-page .esg31-flow-card.flow-blue {
    background: var(--esg-color-blue);
}

.esg31-page .esg31-flow-card.flow-orange {
    background: var(--esg-color-chart-orange);
}

.esg31-page .esg31-flow-card.flow-teal {
    background: var(--esg-color-teal);
}

.esg31-page .esg31-capability-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 38px;
    align-items: start;
}

.esg31-page .esg31-capability-grid p {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 16px;
    font-size: 22px;
    line-height: 1.4;
    text-indent: 0;
}

.esg31-page .esg31-capability-grid p:last-child {
    margin-bottom: 0;
}

.esg31-page .esg31-capability-grid .check {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--esg-color-chart-orange);
    color: var(--esg-color-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.esg31-page .esg31-matrix-table,
.esg31-page .esg31-orange-table,
.esg31-page .esg31-performance-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.esg31-page .esg31-matrix-table th,
.esg31-page .esg31-matrix-table td,
.esg31-page .esg31-orange-table th,
.esg31-page .esg31-orange-table td,
.esg31-page .esg31-performance-table th,
.esg31-page .esg31-performance-table td {
    border: 2px solid var(--esg31-grid);
    text-indent: 0;
}

.esg31-page .esg31-matrix-table th,
.esg31-page .esg31-orange-table th,
.esg31-page .esg31-performance-table th {
    background: var(--esg-color-chart-orange);
    color: var(--esg-color-white);
    font-weight: 700;
    text-align: center;
    vertical-align: middle;
}

.esg31-page .esg31-matrix-table th {
    padding: 14px 10px;
    font-size: 16px;
}

.esg31-page .esg31-matrix-table td {
    background: #fffdf9;
    padding: 14px 8px;
    font-size: 15px;
    text-align: center;
    vertical-align: middle;
}

.esg31-page .esg31-matrix-table tbody tr:nth-child(even) td {
    background: var(--esg31-fill);
}

.esg31-page .esg31-matrix-table td:first-child {
    width: 10%;
}

.esg31-page .esg31-matrix-table td:nth-child(2) {
    width: 6%;
}

.esg31-page .esg31-matrix-table .mark {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--esg-color-chart-orange);
    color: var(--esg-color-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
}

.esg31-page .esg31-note-list {
    margin-top: 14px;
}

.esg31-page .esg31-conflict-table th,
.esg31-page .esg31-committee-table th,
.esg31-page .esg31-comp-table th {
    padding: 14px 12px;
    font-size: 20px;
}

.esg31-page .esg31-conflict-table td,
.esg31-page .esg31-committee-table td,
.esg31-page .esg31-comp-table td {
    background: #fffdf9;
    padding: 16px 14px;
    font-size: 16px;
    line-height: 1.7;
    text-align: center;
    vertical-align: middle;
}

.esg31-page .esg31-conflict-table tbody tr:nth-child(even) td,
.esg31-page .esg31-committee-table tbody tr:nth-child(even) td,
.esg31-page .esg31-comp-table tbody tr:nth-child(even) td {
    background: var(--esg31-fill);
}

.esg31-page .esg31-performance-block {
    margin-top: 26px;
}

.esg31-page .esg31-performance-block:first-child {
    margin-top: 0;
}

.esg31-page .esg31-performance-block h4 {
    margin: 0 0 16px;
    color: #1f1f1f;
    font-size: 24px;
    font-weight: 400;
    text-indent: 0;
}

.esg31-page .esg31-performance-table th {
    padding: 16px 16px;
    font-size: 20px;
}

.esg31-page .esg31-performance-table td {
    background: #fffdf9;
    padding: 18px 18px;
    font-size: 17px;
    line-height: 1.7;
    vertical-align: middle;
}

.esg31-page .esg31-performance-table .score {
    width: 12%;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.esg31-page .esg31-performance-table .result {
    width: 33%;
    font-size: 17px;
}

.esg31-page .esg31-performance-table .accent {
    color: var(--esg-color-orange-text);
    font-weight: 700;
}

.esg31-page .esg31-comp-table td:first-child {
    width: 18%;
}

.esg31-page .esg31-comp-table td:nth-child(2) {
    width: 32%;
}

.esg31-page .esg31-comp-table td:nth-child(3) {
    width: 50%;
}

.esg-process-container {
    max-width: 800px;
    margin: 0 auto;
    font-family: sans-serif;
}

.esg-process-title {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    text-align: center;
    margin-bottom: 25px;
}

.esg-process-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.esg-process-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.esg-chevron {
    width: 140px;
    height: 120px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    clip-path: polygon(0% 0%, 100% 0%, 100% 80%, 50% 100%, 0% 80%, 50% 60%, 0% 80%);
    padding-bottom: 15px;
    box-sizing: border-box;
}

.esg-process-item:first-child .esg-chevron {
    clip-path: polygon(0% 0%, 100% 0%, 100% 80%, 50% 100%, 0% 80%);
}

.chevron-blue {
    background-color: #4db3ca;
}

.chevron-teal {
    background-color: #2ca58d;
}

.chevron-orange {
    background-color: #f1a851;
}

.step-num {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.step-name {
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    line-height: 1.25;
}

.esg-process-content {
    flex-grow: 1;
    min-height: 90px;
    border-radius: 16px;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    font-size: 16px;
    line-height: 1.6;
    color: #222;
    box-sizing: border-box;
}

.content-blue {
    background-color: #f0f9fa;
}

.content-teal {
    background-color: #edf8f5;
}

.content-orange {
    background-color: #fdf6ed;
}

@media (max-width: 600px) {
    .esg-process-item {
        flex-direction: column;
        align-items: stretch;
    }

    .esg-chevron {
        width: 100%;
        height: 100px;
    }

    .esg-process-content {
        min-height: auto;
    }
}

@media (max-width: 991px) {
    .esg31-page .esg31-board-highlight-grid,
    .esg31-page .esg31-capability-grid {
        grid-template-columns: 1fr;
    }

    .esg31-page .esg31-flow-grid {
        grid-template-columns: 1fr;
    }

    .esg31-page .esg31-flow-card {
        clip-path: none;
        border-radius: 18px;
    }
}

@media (max-width: 768px) {
    .esg31-page .esg31-board-highlight-card h4,
    .esg31-page .esg31-flow-card h5,
    .esg31-page .esg31-performance-table th,
    .esg31-page .esg31-conflict-table th,
    .esg31-page .esg31-committee-table th,
    .esg31-page .esg31-comp-table th {
        font-size: 18px;
    }

    .esg31-page .esg31-capability-grid p,
    .esg31-page .esg31-performance-block h4 {
        font-size: 20px;
    }

    .esg31-page .esg31-side-table th {
        width: 20%;
        font-size: 17px;
    }

    .esg31-page .esg31-side-table td,
    .esg31-page .esg31-board-highlight-card p,
    .esg31-page .esg31-flow-card p,
    .esg31-page .esg31-conflict-table td,
    .esg31-page .esg31-committee-table td,
    .esg31-page .esg31-comp-table td,
    .esg31-page .esg31-performance-table td {
        font-size: 15px;
    }

    .esg31-page .esg31-matrix-table {
        min-width: 980px;
    }
}
