/**
 * Governance member profile detail page
 */

.usl-gov-detail {
    --gov-navy: #002147;
    --gov-blue: #003366;
    --gov-gold: #c9a227;
    --gov-surface: #f1f5f9;
    --gov-muted: #64748b;
    --gov-border: rgba(0, 33, 71, 0.1);
    color: #0f172a;
}

/* Compact hero */
.gov-detail-hero {
    position: relative;
    padding: 2.5rem 0 5.5rem;
    color: #fff;
    background: linear-gradient(135deg, #002147 0%, #003366 55%, #1e3a8a 100%);
    overflow: hidden;
}

.gov-detail-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.07;
    background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0);
    background-size: 28px 28px;
    pointer-events: none;
}

.gov-detail-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.gov-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 9999px;
    transition: background 0.15s ease, color 0.15s ease;
}

.gov-detail-back:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
}

.gov-detail-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.gov-detail-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.75rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 9999px;
}

.gov-detail-badge--type {
    color: #0f172a;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.gov-detail-badge--active {
    color: #065f46;
    background: #d1fae5;
}

.gov-detail-badge--past {
    color: #475569;
    background: rgba(255, 255, 255, 0.85);
}

.gov-detail-hero__title {
    margin: 0 0 0.35rem;
    font-size: clamp(1.75rem, 4vw, 2.65rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.gov-detail-hero__role {
    margin: 0;
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
}

/* Main layout */
.gov-detail-main {
    margin-top: -3.5rem;
    padding: 0 0 4rem;
    position: relative;
    z-index: 2;
}

.gov-detail-container {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.gov-detail-grid {
    display: grid;
    grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
    gap: 1.75rem;
    align-items: start;
}

/* Photo card */
.gov-detail-photo-card {
    background: #fff;
    border: 1px solid var(--gov-border);
    border-radius: 1.1rem;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 33, 71, 0.12);
}

.gov-detail-photo {
    aspect-ratio: 4 / 5;
    background: linear-gradient(160deg, #e2e8f0, #f8fafc);
    overflow: hidden;
}

.gov-detail-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.gov-detail-photo-card__body {
    padding: 1.15rem 1.25rem 1.35rem;
}

.gov-detail-photo-card__name {
    margin: 0 0 0.2rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--gov-navy);
    line-height: 1.3;
}

.gov-detail-photo-card__role {
    margin: 0;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--gov-blue);
}

/* Sidebar panels */
.gov-detail-panel {
    background: #fff;
    border: 1px solid var(--gov-border);
    border-radius: 1rem;
    padding: 1.25rem;
    margin-top: 1rem;
    box-shadow: 0 8px 24px rgba(0, 33, 71, 0.05);
}

.gov-detail-panel__title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 1rem;
    padding-bottom: 0.65rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gov-navy);
    border-bottom: 2px solid #f1f5f9;
}

.gov-detail-panel__title i {
    color: var(--gov-gold);
}

.gov-detail-fact {
    display: flex;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.gov-detail-fact:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.gov-detail-fact__icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: #eff6ff;
    color: var(--gov-blue);
    font-size: 0.8rem;
}

.gov-detail-fact__label {
    margin: 0 0 0.15rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gov-muted);
}

.gov-detail-fact__value {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
}

.gov-detail-contact {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem;
    margin-bottom: 0.65rem;
    border-radius: 0.65rem;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gov-detail-contact:last-child {
    margin-bottom: 0;
}

.gov-detail-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 33, 71, 0.08);
}

.gov-detail-contact--email {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.gov-detail-contact--phone {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}

.gov-detail-contact__icon {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    font-size: 0.9rem;
}

.gov-detail-contact--email .gov-detail-contact__icon { color: #1d4ed8; }
.gov-detail-contact--phone .gov-detail-contact__icon { color: #059669; }

.gov-detail-contact__label {
    margin: 0 0 0.15rem;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gov-muted);
}

.gov-detail-contact__value {
    margin: 0;
    font-size: 0.86rem;
    font-weight: 600;
    color: #0f172a;
    word-break: break-word;
}

.gov-detail-empty {
    text-align: center;
    padding: 1.25rem 0.5rem;
    font-size: 0.84rem;
    color: var(--gov-muted);
}

.gov-detail-empty i {
    display: block;
    font-size: 1.5rem;
    color: #cbd5e1;
    margin-bottom: 0.5rem;
}

/* Content column */
.gov-detail-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.gov-detail-card {
    background: #fff;
    border: 1px solid var(--gov-border);
    border-radius: 1.1rem;
    padding: 1.75rem;
    box-shadow: 0 12px 32px rgba(0, 33, 71, 0.06);
}

.gov-detail-card__head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 2px solid #f1f5f9;
}

.gov-detail-card__head i {
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.55rem;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: var(--gov-navy);
    font-size: 0.95rem;
}

.gov-detail-card__head h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--gov-navy);
    letter-spacing: -0.01em;
}

.gov-detail-bio {
    font-size: 0.95rem;
    line-height: 1.75;
    color: #475569;
}

.gov-detail-bio p {
    margin: 0 0 1rem;
}

.gov-detail-bio p:last-child {
    margin-bottom: 0;
}

.gov-detail-bio a {
    color: #1d4ed8;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.gov-detail-bio a:hover {
    color: var(--gov-navy);
}

.gov-detail-term {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #a7f3d0;
    border-radius: 0.75rem;
}

.gov-detail-term__icon {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.65rem;
    background: #fff;
    color: #059669;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.15);
}

.gov-detail-term__label {
    margin: 0 0 0.2rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #047857;
}

.gov-detail-term__value {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #064e3b;
}

.gov-detail-footer-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.gov-detail-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.15rem;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.6rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gov-detail-btn:hover {
    transform: translateY(-1px);
}

.gov-detail-btn--primary {
    color: #fff;
    background: linear-gradient(135deg, var(--gov-navy), var(--gov-blue));
    box-shadow: 0 4px 14px rgba(0, 33, 71, 0.2);
}

.gov-detail-btn--ghost {
    color: var(--gov-navy);
    background: #fff;
    border: 1px solid var(--gov-border);
}

@media (max-width: 900px) {
    .gov-detail-grid {
        grid-template-columns: 1fr;
    }

    .gov-detail-photo-card {
        max-width: 340px;
        margin: 0 auto;
    }

    .gov-detail-main {
        margin-top: -2.5rem;
    }
}

@media (max-width: 640px) {
    .gov-detail-hero {
        padding: 2rem 0 4.5rem;
    }

    .gov-detail-card {
        padding: 1.25rem;
    }
}
