/* Shared styles for secondary public pages */

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 48px;
}

.section-card {
    background: #fff;
    border: 1px solid #e4ebf5;
    border-radius: 14px;
    padding: 22px 24px;
    box-shadow: var(--shadow-sm, 0 2px 10px rgba(20,35,63,0.08));
}

/* ===== MEETINGS ===== */
.page-header {
    text-align: center;
    margin-bottom: 36px;
    padding-bottom: 18px;
}

.page-title {
    color: var(--clan-navy, #1E3C72);
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 72px;
    height: 4px;
    background: var(--clan-gold, #FFD700);
    border-radius: 2px;
}

.page-subtitle {
    color: #5b6b86;
    font-size: 1rem;
    max-width: 720px;
    margin: 18px auto 0;
    line-height: 1.6;
}

/* ===== MEMBER PROFILE ===== */
.member-profile-page .container {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e4ebf5;
    box-shadow: var(--shadow-md, 0 10px 28px rgba(20,35,63,0.12));
    padding: 28px;
    animation: clanSlideUp 0.5s ease both;
}

.member-profile-page .member-header {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e4ebf5;
}

.member-profile-page .member-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--clan-gold);
    box-shadow: var(--shadow-sm, 0 2px 10px rgba(20,35,63,0.08));
}

.member-profile-page .print-button {
    background: var(--clan-blue);
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    border: 0;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.member-profile-page .print-button:hover {
    background: var(--clan-navy);
    transform: translateY(-2px);
}

.member-profile-page .detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.member-profile-page .detail-item {
    background: #f4f7fc;
    border-radius: 10px;
    padding: 12px 14px;
    transition: background 0.2s ease;
}

.member-profile-page .detail-item:hover {
    background: #eaf1fb;
}

.member-profile-page .detail-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--clan-blue);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

/* ===== HISTORY / ABOUT ===== */
.history-prose {
    background: #fff;
    border: 1px solid #e4ebf5;
    border-radius: 14px;
    padding: 28px 32px;
    line-height: 1.75;
    box-shadow: var(--shadow-sm, 0 2px 10px rgba(20,35,63,0.08));
}

.history-prose h3 {
    color: var(--clan-navy);
    margin-top: 1.6em;
}

.history-prose a {
    color: var(--clan-blue);
    font-weight: 600;
}

.history-prose a:hover {
    color: var(--clan-navy);
}

/* ===== PERSON DETAIL PAGE ===== */
.person-details-container {
    background: #fff;
    border: 1px solid #e4ebf5;
    border-radius: 16px;
    padding: 28px 32px;
    box-shadow: var(--shadow-md, 0 10px 28px rgba(20,35,63,0.12));
}

.person-details-container h1 {
    color: var(--clan-navy, #1E3C72);
    margin: 0 0 20px;
}

.person-details-container .info-row {
    padding: 10px 12px;
    border-radius: 8px;
    background: #f4f7fc;
    margin-bottom: 8px;
    transition: background 0.2s ease;
}

.person-details-container .info-row:hover {
    background: #eaf1fb;
}

.person-details-container a {
    color: var(--clan-blue);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.person-details-container a:hover {
    color: var(--clan-navy);
}

@media (max-width: 720px) {
    .container { width: calc(100% - 20px); padding: 16px 0 36px; }
    .member-profile-page .member-header { flex-direction: column; text-align: center; }
}
