:root {
    --content-max-width: 1320px;
}

.nav-chapters {
    display: none;
}

#language-switcher {
    display: inline-block;
}

@media (max-width: 600px) {
    .language-switcher-label {
        display: none;
    }
}

/* ── Member Card Grid ── */
.member-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.member-card {
    flex: 1;
    min-width: 280px;
}

/* Tablet: exactly 2 cards per row */
@media (min-width: 768px) and (max-width: 1099px) {
    .member-card {
        min-width: calc(50% - 12px);
        max-width: calc(50% - 12px);
    }
}

/* Mobile: 1 card per row */
@media (max-width: 767px) {
    .member-card {
        min-width: 100%;
    }
}

/* ── Announcement Card ── */
.announcement-card {
    background: linear-gradient(135deg, #f8fafe 0%, #f0f6fc 100%);
    border: 1px solid #d4e2f0;
    border-left: 4px solid #2b5b84;
    border-radius: 10px;
    padding: 20px 24px;
    margin: 8px 0 4px;
    transition: box-shadow 0.2s;
}
.announcement-card:hover {
    box-shadow: 0 2px 12px rgba(43, 91, 132, 0.10);
}
.announcement-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.announcement-date {
    font-size: 1.35rem;
    color: #6b8299;
    font-weight: 500;
}
.announcement-tag {
    font-size: 1.25rem;
    color: #2b5b84;
    background: #e8f0f8;
    border-radius: 4px;
    padding: 2px 8px;
    font-weight: 600;
}
.announcement-card h4 {
    margin: 0 0 6px;
    font-size: 1.8rem;
}
.announcement-card h4 a {
    color: #1a4b6e;
    text-decoration: none;
}
.announcement-card h4 a:hover {
    color: #0d3b5c;
    text-decoration: underline;
}
.announcement-card p {
    margin: 0;
    color: #3c5068;
    font-size: 1.6rem;
    line-height: 1.55;
}

/* ── Unified Blue Theme ── */

/* Section heading accent */
main h2 {
    border-left: 4px solid #2b5b84;
    padding-left: 16px;
    margin-top: 2rem;
}
main h2:after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: #2d7ea0;
    border-radius: 3px;
    margin-top: 6px;
}

/* Content links */
main a {
    color: #1f6e8c;
    border-bottom: 1px solid #bfd9e8;
    text-decoration: none;
}
main a:hover {
    color: #0c4a62;
    border-bottom-color: #0c4a62;
}

/* Section dividers */
main hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, #cbdde9, transparent);
    margin: 2rem 0;
}

/* Bold text accent */
main strong {
    color: #1a4b6e;
}

/* ── Bio Card ── */
.bio-card {
    display: flex;
    gap: 28px;
    background: linear-gradient(135deg, #f8fafe 0%, #ffffff 100%);
    border: 1px solid #d4e2f0;
    border-radius: 12px;
    padding: 28px 32px;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}
.bio-photo {
    flex: 0 0 180px;
}
.bio-photo img {
    width: 180px;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10);
    display: block;
}
.bio-text {
    flex: 1;
    min-width: 0;
}
.bio-subtitle {
    font-size: 1.6rem;
    color: #2b5b84;
    font-weight: 600;
    margin-bottom: 14px;
}
.bio-text p {
    margin: 0 0 12px;
    line-height: 1.75;
    color: #3c5068;
    font-size: 1.6rem;
}
.bio-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 14px;
    font-size: 1.45rem;
    color: #5a7090;
    line-height: 1.55;
}
@media (max-width: 700px) {
    .bio-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .bio-photo {
        flex: 0 0 auto;
    }
    .bio-meta {
        align-items: center;
    }
}

/* ── Alternating Section Backgrounds ── */
.section {
    padding: 20px 24px;
    border-radius: 10px;
    margin-bottom: 8px;
}
.section.section-alt {
    background: #f4f7fc;
}
