/* ============ INVESTOR RELATIONS ACCORDION (light theme) ============ */
.ir-page {
    padding: 70px 0 90px;
    background: #fff
}

.ir-container {
    width: min(1100px,calc(100% - 40px));
    margin: 0 auto
}

.ir-head {
    margin-bottom: 40px
}

.ir-eyebrow {
    display: inline-block;
    color: var(--blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.ir-head h1 {
    font-family: Manrope,sans-serif;
    font-size: clamp(30px,4vw,44px);
    letter-spacing: -1px;
    line-height: 1.1;
    color: var(--navy);
}

.ir-head p {
    margin-top: 12px;
    max-width: 620px;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.7;
}

/* top-level accordion */
.ir-accordion {
    border-top: 1px solid var(--line)
}

.ir-item {
    border-bottom: 1px solid var(--line)
}

.ir-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 4px;
    background: none;
    border: 0;
    cursor: pointer;
    text-align: left;
    color: var(--navy);
    font-family: Inter,sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    transition: color .2s ease;
}

    .ir-toggle:hover {
        color: var(--blue)
    }

.ir-item.open > .ir-toggle {
    color: var(--blue)
}

.ir-toggle .ir-icon {
    flex: 0 0 auto;
    font-size: 13px;
    color: var(--navy);
    transition: color .2s ease;
}

.ir-item.open > .ir-toggle .ir-icon {
    color: var(--blue)
}

.ir-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height .22s ease;
}

.ir-panel-inner {
    padding: 4px 4px 26px
}

.ir-placeholder {
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.8;
    max-width: 640px;
    padding: 6px 0 18px;
}

/* nested sub-accordion (Board of Directors) */
.ir-subaccordion {
    border-top: 1px solid var(--line)
}

.ir-subitem {
    border-bottom: 1px solid var(--line)
}

.ir-subtoggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 4px 16px 22px;
    background: none;
    border: 0;
    cursor: pointer;
    text-align: left;
    color: #315574;
    font-family: Inter,sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    transition: color .2s ease;
}

    .ir-subtoggle:hover {
        color: var(--red)
    }

.ir-subitem.open > .ir-subtoggle {
    color: var(--red)
}

.ir-subtoggle .ir-icon {
    flex: 0 0 auto;
    font-size: 12px;
    color: #315574;
    transition: color .2s ease;
}

.ir-subitem.open > .ir-subtoggle .ir-icon {
    color: var(--red)
}

.ir-subpanel {
    max-height: 0;
    overflow: hidden;
    transition: max-height .22s ease;
}

.ir-subpanel-inner {
    padding: 4px 4px 28px 22px
}

/* director profile cards */
.director-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 16px;
}

.director-card {
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 22px 16px 20px;
    text-align: center;
}

.director-avatar {
    width: 52px;
    height: 52px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: #e3ecf3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7c8ea0;
    font-size: 26px;
}

.director-name {
    font-size: 13px;
    font-weight: 700;
    color: #004c7d;
    margin-bottom: 5px;
}

.director-role {
    font-size: 11.5px;
    line-height: 1.5;
    font-weight: 600;
}

.role-independent {
    color: var(--blue)
}

.role-executive {
    color: var(--red)
}

.role-nonindependent {
    color: var(--muted)
}

/* board composition table */
.board-table-wrap {
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
}

.board-table {
    width: 100%;
    border-collapse: collapse;
}

    .board-table th {
        text-align: left;
        padding: 16px 20px;
        font-size: 10.5px;
        font-weight: 800;
        letter-spacing: 1px;
        text-transform: uppercase;
        color: var(--muted);
        border-bottom: 1px solid var(--line);
    }

    .board-table td {
        padding: 15px 20px;
        font-size: 12.5px;
        color: var(--ink);
        border-bottom: 1px solid var(--line);
        white-space: nowrap;
    }

    .board-table tr:last-child td {
        border-bottom: 0
    }

    .board-table td.name-cell {
        color: var(--navy);
        font-weight: 700
    }

    .board-table td.date-cell {
        color: var(--blue);
        font-weight: 600
    }

    /* keep the Name column visible while the table scrolls sideways on narrow screens */
    .board-table th:first-child,
    .board-table td.name-cell {
        position: sticky;
        left: 0;
        z-index: 1;
        background: var(--soft);
    }

    .board-table th:first-child {
        z-index: 2
    }

@media(max-width:800px) {
    .director-grid {
        grid-template-columns: repeat(2,1fr)
    }

    .board-table-wrap {
        overflow-x: auto
    }

    .board-table {
        min-width: 560px
    }
}

@media(max-width:520px) {
    .director-grid {
        grid-template-columns: 1fr
    }
}

/* document sub-items with download buttons (Annual Report) */
.doc-item-body {
    padding: 2px 0 20px;
}

.doc-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.doc-meta-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: var(--muted);
}

    .doc-meta-label i {
        color: var(--blue);
        font-size: 13px
    }

.doc-meta-value {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--navy);
}

.doc-item-note {
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.7;
    margin-bottom: 14px;
}

.doc-download-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.doc-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--soft);
    color: var(--navy);
    font-size: 12px;
    font-weight: 700;
    transition: .2s ease;
}

    .doc-download-btn i {
        font-size: 14px;
        color: var(--blue)
    }

    .doc-download-btn:hover {
        border-color: var(--blue);
        color: var(--blue);
        transform: translateY(-1px)
    }

    .doc-download-btn.is-disabled {
        color: var(--muted);
        cursor: not-allowed;
        pointer-events: none;
        opacity: .65;
    }

        .doc-download-btn.is-disabled i {
            color: var(--muted)
        }


/* =====================================================================
   MOBILE (≤ 640px): tables become "label : value" cards
   Labels come from the table header (added by JS as data-label).
   ===================================================================== */
@media (max-width:640px) {

    .ir-page {
        padding: 44px 0 64px
    }

    .ir-container {
        width: calc(100% - 28px)
    }

    .ir-head {
        margin-bottom: 28px
    }

        .ir-head p {
            font-size: 14px
        }

    .ir-toggle {
        padding: 18px 2px;
        font-size: 11.5px;
        gap: 14px
    }

    .ir-subtoggle {
        padding: 15px 2px 15px 10px;
        font-size: 12.5px;
        line-height: 1.45;
        gap: 14px
    }

    .ir-subpanel-inner {
        padding: 6px 0 22px 0
    }

    .ir-panel-inner {
        padding: 2px 0 20px
    }

    /* ---- table -> card list ---- */
    .board-table-wrap {
        background: transparent;
        border: 0;
        border-radius: 0;
        overflow: visible;
    }

    .board-table {
        min-width: 0 !important;
        border-collapse: separate
    }

        .board-table thead {
            display: none
        }

        .board-table,
        .board-table tbody,
        .board-table tr,
        .board-table td {
            display: block;
            width: 100%
        }

            .board-table tr {
                background: #ffffff;
                border: 1px solid var(--line);
                border-radius: 12px;
                padding: 6px 16px;
                margin-bottom: 12px;
                box-shadow: 0 6px 16px -12px rgba(11,51,80,.35);
            }

                .board-table tr:last-child {
                    margin-bottom: 0
                }

            .board-table td,
            .board-table td.name-cell {
                position: static; /* cancel sticky column */
                display: flex;
                align-items: center;
                justify-content: space-between;
                gap: 16px;
                padding: 11px 0;
                background: transparent;
                border-bottom: 1px solid #f1f4f7;
                white-space: normal;
                text-align: right;
                font-size: 13px;
                font-weight: 700;
                color: var(--navy);
                line-height: 1.4;
            }

            .board-table tr td:last-child {
                border-bottom: 0
            }

            /* left-side label */
            .board-table td::before {
                content: attr(data-label);
                flex: 0 0 auto;
                max-width: 48%;
                text-align: left;
                font-size: 12.5px;
                font-weight: 500;
                letter-spacing: 0;
                text-transform: none;
                color: var(--muted);
            }

            /* designation colours stay, but softer weight */
            .board-table td.role-independent {
                color: var(--blue)
            }

            .board-table td.role-executive {
                color: var(--red)
            }

            .board-table td.role-nonindependent {
                color: var(--muted)
            }

            /* "Position in committee" as a status pill (like the photo) */
            .board-table td.pos-cell > .pos-pill {
                display: inline-block;
                padding: 3px 10px;
                border-radius: 999px;
                font-size: 11.5px;
                font-weight: 700;
            }

            .board-table td.pos-chair > .pos-pill {
                background: #fde8e9;
                color: #e0474c
            }

            .board-table td.pos-member > .pos-pill {
                background: #e8f2fa;
                color: var(--blue)
            }

    /* ---- director cards: 2-up compact ---- */
    .director-grid {
        grid-template-columns: repeat(2,1fr);
        gap: 12px
    }

    .director-card {
        padding: 18px 12px 16px;
        border-radius: 10px
    }

    .director-name {
        font-size: 12.5px
    }

    .director-role {
        font-size: 11px
    }

    /* ---- download buttons: full width, easy to tap ---- */
    .doc-download-row {
        display: block
    }

    .doc-download-btn {
        display: flex;
        justify-content: center;
        width: 100%;
        padding: 12px 16px;
        font-size: 12.5px;
    }

    .doc-item-body {
        padding: 2px 0 14px
    }
}

@media (max-width:380px) {
    .director-grid {
        grid-template-columns: 1fr
    }

    .board-table td::before {
        max-width: 44%
    }
}
