/* Org Chart Styles */
.org-tabs {
    display: flex;
    justify-content: center;
    gap: 4px;
    padding: 16px 20px;
    background: #1E293B;
}

.org-tab {
    padding: 10px 24px;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.5);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s;
}

.org-tab:hover { color: white; }
.org-tab.active { background: var(--accent); color: white; }

.org-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 20px;
}

/* PM / Leader Card */
.leader-card {
    background: linear-gradient(135deg, #0F172A, #1E293B);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    color: white;
    margin-bottom: 32px;
    border: 1px solid rgba(255,255,255,0.1);
}

.leader-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent);
    margin-bottom: 16px;
}

.leader-name {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 4px;
}

.leader-title {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.leader-party {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

/* Branch Section */
.branch-section {
    margin-bottom: 32px;
}

.branch-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Minister / MP Cards */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.member-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    transition: all 0.2s;
}

.member-card:hover {
    border-color: var(--accent);
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
}

.member-name {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.member-role {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 4px;
}

.member-riding {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.member-party {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    margin-top: 6px;
}

.party-liberal { background: #FEE2E2; color: #DC2626; }
.party-conservative { background: #DBEAFE; color: #2563EB; }
.party-ndp { background: #FFE4C4; color: #D97706; }
.party-bloc { background: #E0E7FF; color: #4338CA; }
.party-green { background: #D1FAE5; color: #059669; }
.party-other { background: #F3F4F6; color: #6B7280; }

/* Opposition */
.opposition-section {
    background: #F8FAFC;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

/* Province Grid */
.prov-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin: 24px 0;
}

.prov-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.prov-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.prov-flag { font-size: 2rem; margin-bottom: 8px; }
.prov-name { font-weight: 700; font-size: 0.95rem; }
.prov-premier { font-size: 0.8rem; color: var(--text-light); margin-top: 4px; }

/* Explainer */
.explainer-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
}

.explainer-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--accent);
}

.explainer-card p, .explainer-card li {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text);
}

.coming-soon {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.coming-soon h2 { margin-bottom: 12px; }

@media (max-width: 768px) {
    .members-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .org-tabs { flex-wrap: wrap; }
    .org-tab { font-size: 0.85rem; padding: 8px 16px; }
    .leader-name { font-size: 1.4rem; }
}
