/* --- CHARTER PAGE STYLES --- */

.charter-page-container {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.charter-section-header {
    text-align: center;
    margin-bottom: 8px;
}

.charter-section-header h2 {
    color: var(--heading-color);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.charter-sebi-link {
    color: var(--accent-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.charter-sebi-link:hover {
    color: var(--heading-color);
}

/* --- Charter Cards --- */
.charter-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 28px 32px;
}

.charter-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.charter-card-header h3 {
    color: var(--heading-color);
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.charter-icon {
    font-size: 24px;
    line-height: 1;
}

.charter-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-color);
    margin: 0;
}

/* --- Charter Lists --- */
.charter-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.charter-list li {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-color);
    padding-left: 24px;
    position: relative;
}

.charter-list li::before {
    content: '›';
    position: absolute;
    left: 4px;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 18px;
    line-height: 1.5;
}

.charter-list li strong {
    color: var(--heading-color);
}

/* --- Do's & Don'ts Grid --- */
.charter-dos-donts-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.charter-dos {
    border-top: 3px solid var(--accent-color);
}

.charter-donts {
    border-top: 3px solid var(--warning-color);
}

.charter-icon-do {
    color: var(--accent-color);
}

.charter-icon-dont {
    color: var(--warning-color);
}

/* --- Escalation (Numbered) List --- */
.charter-escalation-list {
    list-style: none;
    counter-reset: escalation;
}

.charter-escalation-list li {
    counter-increment: escalation;
}

.charter-escalation-list li::before {
    content: counter(escalation) '.';
    font-weight: 700;
    color: var(--accent-color);
    font-size: 15px;
}

.charter-inline-link {
    color: var(--accent-color);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.charter-inline-link:hover {
    color: var(--heading-color);
}

/* --- Grievance Card --- */
.charter-grievance-card {
    border-left: 4px solid var(--accent-color);
    background: rgba(16, 185, 129, 0.03);
}

/* --- Complaints Data Tables --- */
.charter-table-card {
    overflow: hidden;
}

.charter-table-card h3 {
    color: var(--heading-color);
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px 0;
}

.charter-date-highlight {
    color: var(--accent-color);
    font-weight: 700;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.charter-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.charter-table thead {
    background: rgba(16, 185, 129, 0.08);
}

.charter-table th {
    color: var(--heading-color);
    font-weight: 600;
    font-size: 13px;
    text-align: left;
    padding: 12px 14px;
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

.charter-table td {
    padding: 10px 14px;
    color: var(--text-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.charter-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.charter-total-row {
    background: rgba(16, 185, 129, 0.05) !important;
    border-top: 2px solid var(--border-color);
}

.charter-total-row td {
    border-bottom: none;
}

.charter-table-notes {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 12px;
    opacity: 0.8;
}

/* --- Disclaimer Footer --- */
.charter-disclaimer {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px 24px;
    margin-top: 8px;
}

.charter-disclaimer p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

.charter-last-updated {
    margin-top: 8px !important;
    font-style: italic;
    opacity: 0.7;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .charter-page-container {
        gap: 16px;
    }

    .charter-card {
        padding: 20px;
    }

    .charter-dos-donts-container {
        grid-template-columns: 1fr;
    }

    .charter-table th,
    .charter-table td {
        padding: 8px 10px;
        font-size: 12px;
    }
}
