/* ===========================
   Our Mediators Page Styles — The ADR Initiative
   =========================== */

/* ============================================================
   SECTION 1 — HERO
   Same pattern as .med-hero / .people-hero
   ============================================================ */

.mdr-hero {
    background-color: var(--color-white);
    padding: 80px 0;
    text-align: center;
}

.mdr-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 500;
    color: var(--color-black);
    line-height: 1.2;
    max-width: 800px;
    margin: 0 auto 20px;
}

.mdr-hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(15px, 2vw, 17px);
    color: var(--color-black);
    line-height: 1.7;
    max-width: 680px;
    margin: 0 auto;
}

/* ============================================================
   SECTION 2 — INFO CARDS
   ============================================================ */

.mdr-cards {
    background-color: var(--color-bg-light);
    padding: 80px 0;
}

.mdr-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* Prevent orphaned single card on tablet */
@media (max-width: 1024px) and (min-width: 769px) {
    .mdr-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mdr-cards-grid .mdr-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        max-width: calc(50% - 14px);
        margin: 0 auto;
    }
}

.mdr-card {
    background: var(--color-white);
    border-radius: 14px;
    padding: 32px 28px 28px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.mdr-card-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 20px;
    line-height: 1.3;
}

.mdr-card-list {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    flex: 1;
}

.mdr-card-list li {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--color-black);
    line-height: 1.65;
    padding: 7px 0 7px 20px;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}

.mdr-card-list li:last-child {
    border-bottom: none;
}

.mdr-card-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-primary);
    flex-shrink: 0;
}

.mdr-card-btn {
    align-self: flex-start;
    margin-top: auto;
}

/* ============================================================
   SECTION 3 — THE ROSTER
   ============================================================ */

.mdr-roster {
    background-color: var(--color-white);
    padding: 80px 0;
    text-align: center;
}

.mdr-roster-title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 700;
    color: var(--color-black);
    margin: 0 0 16px;
}

.mdr-roster-subtitle {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--color-text);
    line-height: 1.75;
    max-width: 680px;
    margin: 0 auto 56px;
}

.mdr-roster-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    text-align: left;
}

.mdr-roster-item {
    background: var(--color-bg-light);
    border-radius: 14px;
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Icon circles */
.mdr-roster-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--color-primary);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.mdr-roster-icon::after {
    content: '';
    display: block;
    width: 22px;
    height: 22px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: brightness(0) invert(1);
}

/* Unique icon per item using mask */
.mdr-icon-pick::after {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
    mask-size: contain;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-position: center;
    background-color: white;
}

.mdr-icon-guide::after {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14,2 14,8 20,8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14,2 14,8 20,8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3C/svg%3E");
    mask-size: contain;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-position: center;
    background-color: white;
}

.mdr-icon-help::after {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E");
    mask-size: contain;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-position: center;
    background-color: white;
}

.mdr-icon-probono::after {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E");
    mask-size: contain;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-position: center;
    background-color: white;
}

.mdr-roster-item-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-black);
    margin: 0;
    line-height: 1.3;
}

.mdr-roster-item-desc {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--color-text);
    line-height: 1.7;
    margin: 0;
    flex: 1;
}

/* ============================================================
   SECTION 4 — MEET OUR MEDIATORS
   Reuses .ppl-masters-grid + .ppl-master-card from people.css
   ============================================================ */

.mdr-meet {
    background-color: var(--color-bg-light);
    padding: 80px 0;
}

/* ============================================================
   RESPONSIVE — MOBILE (max 768px)
   ============================================================ */

@media (max-width: 768px) {
    .mdr-hero,
    .mdr-cards,
    .mdr-roster,
    .mdr-meet {
        padding: 60px 0;
    }

    .mdr-cards-grid {
        grid-template-columns: 1fr;
    }

    /* Remove orphan fix — single column needs no override */
    .mdr-cards-grid .mdr-card:last-child:nth-child(odd) {
        grid-column: auto;
        max-width: 100%;
        margin: 0;
    }

    .mdr-roster-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .mdr-roster-subtitle {
        margin-bottom: 36px;
    }

    .mdr-roster-item-title {
        font-size: 18px;
    }

    .btn-primary-pill {
        width: 100%;
        text-align: center;
    }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (max 480px)
   ============================================================ */

@media (max-width: 480px) {
    .mdr-hero,
    .mdr-cards,
    .mdr-roster,
    .mdr-meet {
        padding: 48px 0;
    }

    .mdr-card {
        padding: 24px 20px 22px;
    }

    .mdr-roster-item {
        padding: 24px 18px;
    }

    .mdr-card-btn {
        width: 100%;
        text-align: center;
    }
}
