/* =============================================
   Single Person Profile – styles
   ============================================= */

*, *::before, *::after { box-sizing: border-box; }

/* =============================================
   HERO
   ============================================= */
.sp-hero {
    position: relative;
    overflow: hidden;
    background: #0f172a;
    min-height: 340px;
    display: flex;
    align-items: flex-end;
}

.sp-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    filter: blur(18px) brightness(.35) saturate(.6);
    transform: scale(1.08);
    z-index: 0;
}

.sp-hero__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 32px 44px;
    display: flex;
    align-items: flex-end;
    gap: 32px;
}

/* Photo circle */
.sp-hero__photo {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,.25);
    overflow: hidden;
    background: #1e293b;
    box-shadow: 0 8px 32px rgba(0,0,0,.5);
}
.sp-hero__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.sp-hero__photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: rgba(255,255,255,.35);
    font-weight: 700;
    letter-spacing: -2px;
}

/* Text */
.sp-hero__text { flex: 1; min-width: 0; }

.sp-hero__name {
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px;
    line-height: 1.15;
    text-shadow: 0 2px 8px rgba(0,0,0,.4);
}

.sp-hero__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.sp-hero__pill {
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: .03em;
    background: rgba(255,255,255,.12);
    color: rgba(255,255,255,.9);
    border: 1px solid rgba(255,255,255,.2);
    backdrop-filter: blur(4px);
}
.sp-hero__pill--red {
    background: rgba(239,68,68,.2);
    border-color: rgba(239,68,68,.4);
    color: #fca5a5;
}

.sp-hero__date {
    font-size: 0.9rem;
    color: rgba(255,255,255,.55);
    display: flex;
    align-items: center;
    gap: 7px;
}
.sp-hero__date svg { flex-shrink: 0; opacity: .7; }

/* =============================================
   PAGE BODY  (left column)
   ============================================= */
.sp-body {
    min-width: 0;
    padding: 36px 0 64px;
}

/* =============================================
   OUTER TWO-COLUMN WRAPPER
   ============================================= */
.sp-outer {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    width: 100%;
    align-items: start;
}

/* =============================================
   PROFILE HEADER CARD  (photo + name + facts)
   Always fills the full column width.
   ============================================= */
.sp-profile-card {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 8px rgba(0,0,0,.05);
    width: 100%;
}

.sp-profile-card__photo {
    flex-shrink: 0;
    width: 160px;
    height: 180px;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}
.sp-profile-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.sp-profile-card__photo--default img {
    padding: 12px;
    filter: opacity(.45);
}

.sp-profile-card__info {
    flex: 1;
    min-width: 0;
}

.sp-profile-card__name {
    font-size: clamp(1.3rem, 3vw, 2rem);
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 8px;
    line-height: 1.2;
}

.sp-profile-card__reason {
    display: inline-block;
    padding: 4px 12px;
    background: #fee2e2;
    color: #b91c1c;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.sp-profile-card__facts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 10px 16px;
}

.sp-profile-card__fact {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
}

.sp-profile-card__fact-label {
    font-size: 0.67rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #94a3b8;
}

.sp-profile-card__fact-val {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
}


/* =============================================
   CARDS (generic)
   ============================================= */
.sp-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 8px rgba(0,0,0,.05);
    margin-bottom: 24px;
}
.sp-card:last-child { margin-bottom: 0; }

.sp-card__head {
    padding: 16px 22px 14px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 10px;
}
.sp-card__head-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.sp-card__head-icon--blue   { background: #dbeafe; }
.sp-card__head-icon--red    { background: #fee2e2; }
.sp-card__head-icon--purple { background: #f3e8ff; }
.sp-card__head-icon--amber  { background: #fef3c7; }
.sp-card__head-icon--slate  { background: #f1f5f9; }

.sp-card__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}
.sp-card__body { padding: 20px 22px; }
.sp-card__body p {
    margin: 0 0 14px;
    font-size: 0.97rem;
    line-height: 1.75;
    color: #374151;
}
.sp-card__body p:last-child { margin-bottom: 0; }

/* read-more toggle */
.sp-readmore-wrap { position: relative; }
.sp-readmore-extra {
    overflow: hidden;
    max-height: 0;
    transition: max-height .4s ease;
}
.sp-readmore-extra.is-open { max-height: 2000px; }
.sp-readmore-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 12px;
    padding: 6px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    background: #f8fafc;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .14s, border-color .14s, color .14s;
}
.sp-readmore-btn:hover { background: #eff6ff; border-color: #93c5fd; color: #1d4ed8; }
.sp-readmore-btn svg { transition: transform .25s; }
.sp-readmore-btn.is-open svg { transform: rotate(180deg); }

/* pleas card – clamp long text, expand on toggle */
.sp-card--pleas .sp-card__head-icon--purple { background: #f3e8ff; }
.sp-pleas__text {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    transition: all .3s ease;
    white-space: pre-line;
}
.sp-pleas__text.is-expanded {
    display: block;
    -webkit-line-clamp: unset;
}

/* =============================================
   SIDEBAR META LIST
   ============================================= */
.sp-meta-list { list-style: none; margin: 0; padding: 0; }
.sp-meta-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.88rem;
}
.sp-meta-list li:last-child { border-bottom: none; padding-bottom: 0; }
.sp-meta-list__icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    margin-top: 1px;
}
.sp-meta-list__label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #94a3b8;
    line-height: 1;
    margin-bottom: 3px;
}
.sp-meta-list__val {
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
}

/* =============================================
   CAUSE OF DEATH  (full-width alert style)
   ============================================= */
.sp-cause {
    background: #fff5f5;
    border: 1px solid #fecaca;
    border-left: 4px solid #ef4444;
    border-radius: 12px;
    padding: 22px 26px;
    margin-bottom: 24px;
}
.sp-cause__heading {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #b91c1c;
    margin-bottom: 8px;
}
.sp-cause__value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #991b1b;
    margin: 0 0 10px;
}
.sp-cause__detail {
    font-size: 0.92rem;
    color: #7f1d1d;
    line-height: 1.7;
    margin: 0;
}

/* =============================================
   RESPONSIBLE PARTY
   ============================================= */
.sp-party {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 4px solid #f59e0b;
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.sp-party__icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}
.sp-party__label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #92400e;
    margin-bottom: 3px;
}
.sp-party__value {
    font-size: 1rem;
    font-weight: 700;
    color: #78350f;
}

/* =============================================
   NEWS SOURCES
   ============================================= */
.sp-sources { margin-bottom: 0; }

.sp-sources__list {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 22px 4px;
}

.sp-source-card {
    padding: 18px 0;
    border-bottom: 1px solid #f1f5f9;
}
.sp-source-card:last-child { border-bottom: none; }

/* Quoted excerpt */
.sp-source-card__quote {
    margin: 0 0 12px;
    padding: 12px 16px;
    background: #f8fafc;
    border-left: 3px solid #3b82f6;
    border-radius: 0 8px 8px 0;
    font-size: 0.93rem;
    line-height: 1.7;
    color: #374151;
    font-style: italic;
}

/* Link row */
.sp-source-card__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    transition: opacity .14s;
}
.sp-source-card__link:hover { opacity: .8; }

.sp-source-card__num {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #3b82f6;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.74rem;
    font-weight: 700;
}

.sp-source-card__domain {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 500;
}

.sp-source-card__open {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    transition: background .14s;
}
.sp-source-card__link:hover .sp-source-card__open { background: #dbeafe; }


/* =============================================
   NATIONAL ANTHEM EMBED
   ============================================= */
.sp-anthem {
    background: #0f172a;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,.18);
}

.sp-anthem__head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.sp-anthem__icon { font-size: 1.6rem; flex-shrink: 0; }

.sp-anthem__label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #64748b;
    margin-bottom: 2px;
}
.sp-anthem__country {
    font-size: 1rem;
    font-weight: 700;
    color: #f1f5f9;
}

.sp-anthem__unmute {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 20px;
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
    white-space: nowrap;
}
.sp-anthem__unmute:hover {
    background: rgba(59,130,246,.2);
    border-color: rgba(59,130,246,.4);
    color: #93c5fd;
}

.sp-anthem__embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
}
.sp-anthem__embed iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
    display: block;
}

/* =============================================
   BACK LINK
   ============================================= */
.sp-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    margin-bottom: 28px;
    padding: 7px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 7px;
    background: #fff;
    transition: background .14s, color .14s, border-color .14s;
}
.sp-back:hover { background: #f1f5f9; color: #1e293b; border-color: #cbd5e1; }

/* =============================================
   SIDEBAR
   ============================================= */
.sp-sidebar {
    padding: 36px 0 64px;
}

.sp-sidebar__inner {
    position: sticky;
    top: 90px;
}

.sp-sidebar__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #475569;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}
.sp-sidebar__title svg { color: #3b82f6; flex-shrink: 0; }

.sp-related-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sp-related-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: background .15s, transform .15s;
    border: 1px solid transparent;
}
.sp-related-card:hover {
    background: #f8fafc;
    border-color: #e2e8f0;
    transform: translateX(3px);
}

.sp-related-card__photo {
    flex-shrink: 0;
    width: 56px;
    height: 64px;
    border-radius: 6px;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}
.sp-related-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.sp-related-card__photo--default img {
    padding: 6px;
    filter: opacity(.5);
}

.sp-related-card__info { flex: 1; min-width: 0; }

.sp-related-card__name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.35;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sp-related-card:hover .sp-related-card__name { color: #2563eb; }

.sp-related-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 4px;
}
.sp-related-card__meta span {
    font-size: 0.7rem;
    padding: 2px 7px;
    background: #f1f5f9;
    border-radius: 10px;
    color: #64748b;
    font-weight: 500;
}

.sp-related-card__dod {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    color: #94a3b8;
}

.sp-sidebar__view-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    padding: 9px 16px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    transition: background .14s, border-color .14s, color .14s;
}
.sp-sidebar__view-all:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
}

.sp-sidebar__empty {
    font-size: 0.85rem;
    color: #94a3b8;
    text-align: center;
    padding: 20px 0;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
    .sp-outer { grid-template-columns: 1fr; }
    .sp-sidebar { padding: 0 0 48px; }
    .sp-sidebar__inner { position: static; }
}

@media (max-width: 600px) {
    .sp-profile-card { flex-direction: column; }
    .sp-profile-card__photo { width: 100%; height: 200px; }
    .sp-profile-card__facts { grid-template-columns: 1fr 1fr; }
}
