﻿@import url("../rahmah.css");

:root {
    --committees-teal: #0f8f89;
    --committees-cyan: #46d7cf;
    --committees-ink: #153c3a;
    --committees-soft: #edf9f7;
    --committees-gold: #d7ad52;
}

.committees-shell {
    display: grid;
    gap: 28px;
    margin-top: 28px;
}

.committees-hero {
    position: relative;
    overflow: hidden;
    padding: 38px 34px 34px;
    border-radius: 34px;
    background:
        radial-gradient(circle at top right, rgba(70, 215, 207, 0.14), transparent 30%),
        radial-gradient(circle at bottom left, rgba(15, 143, 137, 0.14), transparent 32%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 249, 247, 0.98));
    border: 1px solid rgba(15, 143, 137, 0.12);
    box-shadow: 0 26px 60px rgba(10, 70, 67, 0.12);
}

.committees-hero::before {
    content: "";
    position: absolute;
    inset: 14px;
    border-radius: 28px;
    border: 1px dashed rgba(70, 215, 207, 0.24);
    pointer-events: none;
}

.committees-hero-copy {
    position: relative;
    z-index: 1;
    max-width: 1040px;
    margin: 0 auto;
}

.committees-hero-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.committees-title {
    margin: 0;
    color: var(--committees-ink);
    font-size: clamp(3rem, 5vw, 4.8rem);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.committees-export-note {
    margin: 14px 0 0;
    max-width: 580px;
    color: #5a716d;
    font-size: 1rem;
    line-height: 1.9;
}

.committees-export-button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 22px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, #0f8f89, #46d7cf);
    color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 18px 30px rgba(15, 143, 137, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.committees-export-button:hover,
.committees-export-button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 20px 34px rgba(15, 143, 137, 0.28);
    filter: saturate(1.05);
}

.committees-export-button:focus-visible {
    outline: 3px solid rgba(70, 215, 207, 0.28);
    outline-offset: 3px;
}

.pdf-print-header {
    display: none;
}

.committees-grid {
    display: grid;
    gap: 26px;
}

.committee-card {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 22px;
    padding: 28px;
    border-radius: 34px;
    background:
        radial-gradient(circle at top right, rgba(70, 215, 207, 0.18), transparent 24%),
        radial-gradient(circle at bottom left, rgba(215, 173, 82, 0.1), transparent 24%),
        linear-gradient(145deg, #ffffff 0%, #eefaf8 100%);
    border: 1px solid rgba(15, 143, 137, 0.12);
    box-shadow: 0 28px 48px rgba(10, 70, 67, 0.12);
    break-inside: avoid;
}

.committee-card::before {
    content: "";
    position: absolute;
    inset: 14px;
    border-radius: 26px;
    border: 1px solid rgba(70, 215, 207, 0.18);
    pointer-events: none;
}

.committee-card-topline {
    position: absolute;
    inset: 0 0 auto;
    height: 6px;
    background: linear-gradient(90deg, #0f8f89, #46d7cf, #d7ad52);
}

.committee-header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.committee-badge {
    flex: 0 0 auto;
    width: 68px;
    height: 68px;
    border-radius: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f8f89, #3ecdc5);
    color: #fff;
    font-size: 1.7rem;
    box-shadow: 0 18px 30px rgba(15, 143, 137, 0.2);
}

.committee-title {
    margin: 0;
    color: var(--committees-ink);
    font-size: clamp(1.5rem, 2.4vw, 2.1rem);
    line-height: 1.2;
}

.committee-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.committee-chip {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(15, 143, 137, 0.08);
    border: 1px solid rgba(15, 143, 137, 0.12);
    color: #0d6964;
    font-size: 0.88rem;
    font-weight: 800;
}

.committee-members-wrap {
    position: relative;
    z-index: 1;
    overflow-x: auto;
    padding-bottom: 4px;
}

.committee-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: inset 0 0 0 1px rgba(15, 143, 137, 0.08);
}

.committee-table th,
.committee-table td {
    padding: 14px 16px;
    text-align: center;
    border-bottom: 1px solid rgba(15, 143, 137, 0.08);
    color: #244c49;
    font-size: 0.94rem;
}

.committee-table th {
    background: linear-gradient(180deg, rgba(15, 143, 137, 0.14), rgba(70, 215, 207, 0.08));
    color: #0f514d;
    font-weight: 900;
    white-space: nowrap;
}

.committee-table tbody tr:last-child td {
    border-bottom: none;
}

.committee-table tbody tr:nth-child(even) td {
    background: rgba(15, 143, 137, 0.025);
}

.committee-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(72, 189, 120, 0.14);
    color: #2e9b5b;
    font-size: 1rem;
}

.committee-mission {
    position: relative;
    z-index: 1;
    padding: 20px 22px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(123, 33, 49, 0.06), rgba(255, 255, 255, 0.92));
    border: 1px solid rgba(123, 33, 49, 0.08);
}

.committee-mission-label {
    margin-bottom: 8px;
    color: #7b2131;
    font-size: 0.9rem;
    font-weight: 900;
}

.committee-mission p {
    margin: 0;
    color: #6a3f47;
    font-size: 0.98rem;
    line-height: 1.9;
}

@media (max-width: 768px) {
    .committees-hero {
        padding: 24px 22px;
        border-radius: 26px;
    }

    .committees-hero-head {
        flex-direction: column;
        align-items: stretch;
    }

    .committees-export-button {
        width: 100%;
    }

    .committee-card {
        padding: 22px 18px;
        border-radius: 26px;
    }

    .committee-header {
        flex-direction: column;
        gap: 14px;
    }

    .committee-badge {
        width: 60px;
        height: 60px;
        border-radius: 20px;
    }

    .committee-table th,
    .committee-table td {
        padding: 12px 14px;
        font-size: 0.88rem;
    }
}

@page {
    size: A4;
    margin: 12mm;
}

@media print {
    body {
        background: #ffffff !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .top-bar,
    .sidebar,
    .site-footer,
    .committees-hero,
    .page-transition-overlay,
    .committees-export-button {
        display: none !important;
    }

    .content-shell,
    .main-wrapper,
    main,
    .committees-shell {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .committees-shell {
        padding: 10mm 0 0 !important;
    }

    .pdf-print-header {
        display: flex !important;
        align-items: flex-end;
        justify-content: space-between;
        gap: 24px;
        margin-bottom: 18px;
        padding: 18px 22px;
        border: 1px solid rgba(15, 143, 137, 0.18);
        border-radius: 24px;
        background: linear-gradient(135deg, rgba(237, 249, 247, 0.92), rgba(255, 255, 255, 1));
        break-inside: avoid;
    }

    .pdf-print-brand {
        display: flex;
        align-items: center;
        gap: 18px;
    }

    .pdf-print-logo {
        width: 74px;
        height: 74px;
        object-fit: contain;
        border-radius: 18px;
        background: #ffffff;
        padding: 8px;
        box-shadow: inset 0 0 0 1px rgba(15, 143, 137, 0.08);
    }

    .pdf-print-kicker {
        color: #0f8f89;
        font-size: 0.9rem;
        font-weight: 900;
    }

    .pdf-print-title {
        margin: 4px 0 6px;
        color: #153c3a;
        font-size: 1.8rem;
    }

    .pdf-print-subtitle {
        margin: 0;
        color: #5a716d;
        font-size: 0.94rem;
        line-height: 1.8;
    }

    .pdf-print-meta {
        display: grid;
        gap: 6px;
        text-align: left;
        color: #244c49;
        font-size: 0.9rem;
        font-weight: 800;
    }

    .committees-grid {
        gap: 16px;
    }

    .committee-card {
        box-shadow: none !important;
        border-radius: 24px;
        padding: 20px;
        background: #ffffff;
        border: 1px solid rgba(15, 143, 137, 0.14);
        page-break-inside: avoid;
    }

    .committee-card::before {
        inset: 10px;
        border-radius: 18px;
    }

    .committee-card-topline {
        height: 4px;
    }

    .committee-header,
    .committee-members-wrap,
    .committee-mission {
        z-index: auto;
    }

    .committee-badge {
        box-shadow: none;
    }

    .committee-title {
        font-size: 1.35rem;
    }

    .committee-chip {
        min-height: 34px;
        font-size: 0.8rem;
    }

    .committee-members-wrap {
        overflow: visible;
    }

    .committee-table {
        min-width: 0;
        width: 100%;
        table-layout: fixed;
        border-radius: 16px;
        box-shadow: inset 0 0 0 1px rgba(15, 143, 137, 0.12);
    }

    .committee-table th,
    .committee-table td {
        padding: 10px 8px;
        font-size: 0.8rem;
        word-break: break-word;
    }

    .committee-check {
        width: 24px;
        height: 24px;
    }

    .committee-mission {
        padding: 16px 18px;
        border-radius: 18px;
    }
}
