
   /*PAGE 1: MAIN SEARCH DIRECTORY & LISTINGS
    */

/* Layout Container Baseline */
.victims-container {
    padding: 2.5em 0;
    font-family: "Source Serif 4", serif;
}

/* Page Title Spec Scale */
.page-title, 
h1.page-title {
    font-size: 1em; 
    color: #cbd5e1; /* Brand Dark Blue */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--brand-accent); /* Brand Maroon */
    padding-bottom: 0.5em;
    display: inline-block;
    margin-bottom: 1.875em;
}

/* Advanced Search Sidebar Structural Panel */
.search-sidebar {
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 0.75em;
    padding: 1.5em;
    padding-right: 0.5em;
    box-shadow: 0 4px 12px rgba(16, 34, 77, 0.03);
    margin-bottom: 1.5em;
}

.search-sidebar h3,
.search-sidebar .sidebar-title {
    font-size: 1rem;
    font-weight: 400;
    color: #cbd5e1;
    margin-bottom: 1.25em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Form Group Controls & Text Inputs */
.search-sidebar label,
.search-sidebar .form-label {
    font-size: 1em; 
    color: #666666;
    font-weight: 600;
    margin-bottom: 0.375em;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: block;
}

.search-sidebar input,
.search-sidebar select,
.search-sidebar .form-control,
.search-sidebar .form-select {
    font-size: 1em;
    border: 1px solid #CBD5E1;
    border-radius: 0.375em;
    padding: 0.625em 0.75em;
    color: #334155;
    background-color: #F8FAFC;
    width: 100%;
    margin-bottom: 1em;
    box-sizing: border-box;
    transition: all 0.2s ease-in-out;
}

.search-sidebar input:focus,
.search-sidebar select:focus,
.search-sidebar .form-control:focus,
.search-sidebar .form-select:focus {
    border-color: #cbd5e1;
    background-color: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(16, 34, 77, 0.1);
    outline: none;
}

/* Search Database Submission Button */
.btn-search-victims,
.search-sidebar button[type="submit"] {
    background-color: var(--brand-accent); /* Brand Maroon */
    color: #FFFFFF;
    font-size: 1em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    padding: 0.75em;
    border: none;
    border-radius: 0.375em;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 0.625em;
    display: block;
    text-align: center;
}

.btn-search-victims:hover,
.search-sidebar button[type="submit"]:hover {
    background-color: var(--brand-accent-dark);
}

/* Row Summary Cards for Each Victim Entry */
.victim-summary-card {
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 0.75em;
    padding: 1.5em;
    margin-bottom: 1em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5em;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    position: relative;
    z-index: 2;
    min-height: 9.5em;
}

.victim-summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 34, 77, 0.06);
    border-color: #CBD5E1;
}

/* Small Dynamic Directory Avatar Container */
.victim-avatar-wrapper {
    width: 6em;
    height: 6em;
    border-radius: 50%;
    background-color: #ECEDEE; /* Brand Light Gray */
    border: 2px solid rgba(var(--brand-accent-rgb), 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    color: #cbd5e1;
}

.victim-details-content {
    flex-grow: 1;
}

.victim-name {
    font-size: 1em;
    font-weight: 700;
    color: #cbd5e1;
    margin: 0 0 0.375em 0;
}

.victim-meta-text {
    font-size: 1rem;
    color: #666666;
    line-height: 1.7;
    margin-bottom: 0.25em;
    max-height: 3.4em;
    overflow: hidden;
}

.victim-meta-text strong {
    color: #cbd5e1;
}

/* Action Link Ribbons inside Cards */

@media (max-width: 768px) {
    .victim-summary-card {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        gap: 16px;
        overflow: hidden;
        text-align: center;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        min-height: 14em;
    }

    .victim-avatar-wrapper {
        width: 64px;
        height: 64px;
        margin: 0 auto;
    }

    .victim-details-content {
        display: block !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 10px;
    }

    .victim-name {
        font-size: 15px;
        text-align: center;
    }

    .victim-meta-text {
        font-size: 11px;
        text-align: center;
    }
}

/* Results toolbar above the directory list */
.results-toolbar {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.5em;
    padding-bottom: 0.625em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.results-toolbar-title {
    font-size: 1em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--brand-accent);
}

.results-count {
    font-size: 1em;
    font-weight: 400;
    color: #64748B;
    background-color: #F1F5F9;
    border-radius: 1.25em;
    padding: 0.25em 0.75em;
}

/* Category eyebrow inside a victim/perpetrator card */
.victim-eyebrow {
    display: inline-block;
    font-size: 0.625em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--brand-accent);
    margin-bottom: 0.25em;
}

.victim-eyebrow--muted {
    color: #64748B;
}

/* Perpetrator placeholder divider (was inline-styled) */
.perpetrator-divider {
    height: 0.25em;
    background-color: #ECEDEE;
    width: 40%;
    border-radius: 2px;
    margin-top: 0.625em;
}

/* ==========================================================================
   EXPLORE — faceted thesaurus explorer
   ========================================================================== */

/* Left sidebar panel holding the facet axes */
.explore-sidebar-panel {
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 0.75em;
    padding: 1.25em;
}

.explore-sidebar-head {
    font-size: 1em;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #ffffff;
    margin-bottom: 2px;
}

.explore-sidebar-rule {
    width: 2em;
    height: 2px;
    border-radius: 2px;
    background: var(--brand-accent);
    margin-bottom: 1em;
}

.explore-sidebar-sub {
    font-size: 1em;
    color: #64748B;
    margin-bottom: 0.875em;
}

.axis-soon-tag {
    display: inline-block;
    font-size: 1em;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0.4px;
    color: #64748B;
    background-color: rgba(var(--brand-accent-rgb), 0.06);
    border: 1px solid rgba(var(--brand-accent-rgb), 0.15);
    border-radius: 0.5em;
    padding: 1px 0.5em;
    margin-left: 0.312em;
    vertical-align: middle;
}

.explore-axis-group + .explore-axis-group {
    border-top: 1px solid #ECEDEE;
    padding-top: 1.25em;
    margin-top: 1.25em;
}

.explore-axis-title {
    font-size: 1em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--brand-accent);
    margin-bottom: 0.75em;
}

.explore-axis-title.text-muted {
    color: #94A3B8;
}

/* Facet pill buttons (label + count) */
.btn-facet-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5em;
    width: 100%;
    background-color: transparent;
    border: none;
    border-left: 3px solid transparent;
    border-radius: 0;
    padding: 1.125em 0.75em;
    margin-bottom: 0.125em;
    font-size: 1em;
    color: #94A3B8;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.btn-facet-pill:hover {
    color: #CBD5E1;
}

.btn-facet-pill.active {
    border-left-color: rgba(255, 255, 255, 0.3);
    color: #F1F5F9;
    background-color: rgba(255, 255, 255, 0.06);
}

.facet-count-badge {
    font-size: 1em;
    font-weight: 600;
    color: #64748B;
    background-color: rgba(255, 255, 255, 0.06);
    border-radius: 0.5em;
    padding: 1px 0.5em;
    min-width: 1.5em;
    text-align: center;
}

.facet-num {
    font-size: 1em;
    font-weight: 600;
    color: var(--brand-accent);
    opacity: 0.6;
    min-width: 1.5em;
}

.facet-label {
    flex-grow: 1;
    text-align: left;
}

.btn-facet-pill.active .facet-count-badge {
    background-color: rgba(255, 255, 255, 0.15);
    color: #F1F5F9;
}

/* Skeleton loading bars */
.skeleton-bar {
    display: block;
    height: 0.75em;
    border-radius: 0.375em;
    background: linear-gradient(90deg, #1F1F1F 25%, #2A2A2A 50%, #1F1F1F 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.4s ease-in-out infinite;
    margin-bottom: 0.5em;
}

.skeleton-bar:last-child {
    margin-bottom: 0;
}

.skeleton-bar.d-dark {
    background: linear-gradient(90deg, #2A2A2A 25%, #333333 50%, #2A2A2A 75%);
    background-size: 200% 100%;
}

@keyframes skeleton-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Width utilities used by skeleton bars (not in default Bootstrap set) */
.w-40 { width: 40%; }
.w-55 { width: 55%; }
.w-85 { width: 85%; }

/* Active-filter bar: hint when empty, chip when a facet is selected */
.active-filter-bar {
    display: flex;
    align-items: center;
    gap: 0.625em;
    min-height: 2.625em;
    background-color: transparent;
    border: none;
    border-radius: 0;
    padding: 0.5em 0;
    font-size: 0.812em;
    margin-bottom: 1.25em;
}

.filter-bar-hint {
    color: #64748B;
    backdrop-filter: blur(10px);
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    background-color: #FCEFEF;
    border: 1px solid var(--brand-accent);
    border-radius: 1.25em;
    padding: 0.188em 0.375em 0.188em 0.75em;
    color: #cbd5e1;
    font-weight: 600;
}

.filter-chip-dot {
    width: 0.438em;
    height: 0.438em;
    border-radius: 50%;
    background-color: var(--brand-accent);
    flex-shrink: 0;
}

.filter-chip-remove {
    border: none;
    background: transparent;
    color: var(--brand-accent);
    font-size: 1em;
    line-height: 1;
    cursor: pointer;
    padding: 0 0.25em;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.filter-chip-remove:hover {
    background-color: var(--brand-accent);
    color: #FFFFFF;
}

/* Results feed */
.fragment-feed-stream {
    display: flex;
    flex-direction: column;
    gap: 1.25em;
}

.fragment-result-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1.25em;
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 0.75em;
    padding: 1.5em;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.fragment-result-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1.5px;
    background: linear-gradient(90deg, var(--brand-accent-dark), var(--brand-accent));
    opacity: 0;
    transition: opacity 0.25s ease;
    border-radius: 0.75em 0.75em 0 0;
}

.fragment-result-card:hover {
    border-color: rgba(var(--brand-accent-rgb), 0.35);
    box-shadow: 0 10px 24px rgba(var(--brand-accent-rgb), 0.12);
    transform: translateY(-2px);
}

.fragment-result-card:hover::before {
    opacity: 1;
}

.fragment-avatar-ring {
    width: 3em;
    height: 3em;
    border-radius: 50%;
    border: 2px solid var(--brand-accent);
    background-color: #FCEFEF;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-accent);
    flex-shrink: 0;
}

.fragment-quote-mark {
    font-family: "Playfair Display", serif;
    font-size: 1.75em;
    font-weight: 700;
    line-height: 1;
    color: var(--brand-accent);
}

.fragment-content {
    flex-grow: 1;
    min-width: 0;
}

.fragment-excerpt {
    font-size: 1em;
    color: #334155;
    line-height: 1.7;
    margin-bottom: 0.875em;
    font-style: italic;
}

.fragment-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5em;
    margin-bottom: 0.75em;
}

.fragment-theme-tag {
    font-size: 1em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--brand-accent);
    background-color: #FCEFEF;
    border-radius: 0.5em;
    padding: 0.188em 0.625em;
}

.fragment-source {
    font-size: 1em;
    color: #64748B;
}

.btn-open-profile {
    background-color: transparent;
    color: var(--brand-accent);
    border: none;
    border-radius: 0;
    padding: 0;
    font-size: 1em;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.btn-open-profile:hover {
    background-color: transparent;
    color: var(--brand-accent);
    border-bottom-color: var(--brand-accent);
}

/* (filter clear control is now .filter-chip-remove above) */


/* 
   PAGE 2: DYNAMIC INDIVIDUAL PROFILE CASE VIEW
   */

/* Overall Profile Page Background Skin */
.profile-canvas-wrapper {
    background-color: #ECEDEE; /* Brand Light Gray Background */
    font-family: "Source Serif 4", serif;
    min-height: 100vh;
    padding-bottom: 3.125em;
}

/* Back Button */
.btn-back-cases {
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    color: #cbd5e1;
    font-size: 1em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.375em 0.875em;
    border-radius: 1.25em;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    transition: all 0.2s ease;
}

.btn-back-cases:hover {
    border-color: var(--brand-accent);
    color: var(--brand-accent);
}

/* Overlapping Circular Avatar Framework */
.profile-avatar-network {
    position: relative;
    width: 16em;
    height: 16em;
    margin: 0 auto;
    --ring-gap: 6px;
    --ring-gap-colour: transparent;
}

.profile-primary-circle {
    width: 16em;
    height: 16em;
    border-radius: 50%;
    border-width: 9px;
    border-style: solid;
    border-color: rgba(180, 60, 60, 0.85);
    border-right-color: var(--brand-accent);
    border-bottom-color: var(--brand-accent);
    padding: var(--ring-gap);
    background: var(--ring-gap-colour);
    box-sizing: border-box;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(16, 34, 77, 0.08);
    transition: transform 0.7s ease, border-color 0.4s ease;
    transform: translateZ(0);
}

.profile-secondary-circle {
    width: 6.5em;
    height: 6.5em;
    border-radius: 24%;
    border: 1px solid #FFFFFF;
    background-color: var(--brand-accent);
    padding: 0.188em;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(16, 34, 77, 0.25);
}

.billboard-top-row {
    display: flex;
    align-items: flex-start;
    gap: 1.25em;
    margin-bottom: 0.5em;
}

.billboard-header-text {
    flex: 1;
    min-width: 0;
}

.profile-secondary-circle .avatar-inner-placeholder {
    border-radius: 20%;
    background-color: #cbd5e1;
    color: #FFFFFF;
}

.profile-secondary-circle .avatar-photo-img {
    border-radius: 20%;
}

.profile-photo {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    transition: transform 0.7s ease;
}

.profile-primary-circle:hover {
    transform: rotate(180deg);
}

.profile-primary-circle:hover .profile-photo {
    transform: rotate(-180deg);
}

.avatar-inner-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.688em;
    font-weight: 600;
    text-align: center;
    color: #cbd5e1;
}

.profile-primary-circle .avatar-inner-placeholder {
    background-color: transparent;
}

.avatar-photo-img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(100%);
}

.profile-secondary-circle .avatar-inner-placeholder {
    background-color: #cbd5e1;
    color: #FFFFFF;
}

/* Primary Profile Text Name */
.handwritten-name-label {
    font-family: "Yatra One", serif;
    color: #cbd5e1;
    font-size: 1.625em;
    font-weight: 700;
    text-align: center;
    margin-top: 0.938em;
    transition: color 0.25s ease;
}

.profile-avatar-network:hover ~ .handwritten-name-label {
    color: var(--brand-accent);
}

.victim-tabs {
    display: flex;
    gap: 0.625em;
    margin-top: 0.75em;
    margin-left: 0.5em;
}

.victim-tab {
    height: 2.25em;
    padding: 0 1.125em;
    border-radius: 0.625em;
    border: 1px solid #E2E8F0;
    background-color: #FFFFFF;
    color: #cbd5e1;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    backdrop-filter: blur(10px);
}

.victim-tab:hover {
    border-color: var(--brand-accent);
    color: var(--brand-accent);
}

.victim-tab.active {
    background-color: var(--brand-accent);
    border-color: var(--brand-accent);
    color: #FFFFFF;
}

/* Main Dark Blue Informational Info Dashboard Block */
.metadata-billboard-panel {
    position: relative;
    background-color: #cbd5e1; /* Elegant Deep Blue Panel Base */
    color: #FFFFFF;
    border-radius: 1.5em;
    padding: 2.25em;
    box-shadow: 0 12px 35px rgba(16, 34, 77, 0.12);
}

.billboard-victim-name {
    font-size: 1.5em;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 0.25em;
}

.billboard-sub-relation {
    font-size: 1em;
    color: #CBD5E1;
    display: block;
}

.billboard-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin: 1.25em 0;
    opacity: 1;
}

.incident-timeline-highlight {
    font-size: 1em;
    color: #E2E8F0;
}

.incident-timeline-highlight strong {
    color: #FFFFFF;
    background-color: var(--brand-accent); /* Maroon Timeline Highlight Badge */
    padding: 2px 0.5em;
    border-radius: 0.25em;
}

.briefing-title {
    font-size: 1em;
    font-weight: 700;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.375em;
}

.briefing-text {
    font-size: 1em;
    color: #E2E8F0;
    line-height: 1.6;
}

/* Billboard header + meta structure */
.billboard-eyebrow {
    font-size: 1em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.billboard-header-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5em;
}

.billboard-body-meta {
    margin-top: 0.25em;
}

.briefing-box {
    background-color: rgba(255, 255, 255, 0.06);
    border-left: 3px solid var(--brand-accent);
    border-radius: 0.5em;
    padding: 0.875em 1.125em;
}

.briefing-box .briefing-title {
    margin-bottom: 0.375em;
}

/* Quick-link action cards (Keywords / The Visual Archive / Full interview) */
.profile-quick-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-radius: 0.75em;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875em;
    border: 1px solid #E2E8F0;
    background-color: #FFFFFF;
    color: #cbd5e1;
    min-height: 4.75em;
    box-shadow: 0 2px 8px rgba(16, 34, 77, 0.04);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-quick-link:hover {
    border-color: var(--brand-accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 34, 77, 0.08);
    color: #cbd5e1;
}

.profile-quick-link.is-dark {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    background-color: #0F172A;
    color: #FFFFFF;
    border-color: #0F172A;
}

.profile-quick-link.is-dark:hover {
    background-color: #0F172A;
    border-color: var(--brand-accent);
    color: #FFFFFF;
}

.profile-quick-link.is-active {
    background-color: var(--brand-accent);
    border-color: var(--brand-accent);
    color: #FFFFFF;
}

.profile-quick-link.is-active .ql-sub {
    color: #FFFFFF;
}

.profile-quick-link.is-active:hover {
    background-color: var(--brand-accent);
    border-color: var(--brand-accent);
    color: #FFFFFF;
}

.profile-quick-link .ql-sub {
    font-weight: 400;
    font-size: 1em;
    color: #cbd5e1;
    margin-top: 2px;
}

/* Audio Recording Component Track Strip */
.audio-transcription-deck {
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 1.25em;
    padding: 1.5em;
    box-shadow: 0 8px 25px rgba(16, 34, 77, 0.04);
}

.audio-control-strip-layout {
    display: flex;
    align-items: center;
    gap: 1em;
}

.native-media-player {
    flex-grow: 1;
    height: 2.5em;
}

/* Custom Audio Player */
.custom-audio-player {
    display: flex;
    align-items: center;
    gap: 0.75em;
    flex: 1;
}

.custom-audio-play-btn {
    width: 2.5em;
    height: 2.5em;
    border-radius: 50%;
    border: none;
    background-color: var(--brand-accent);
    color: #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.2s ease;
}

.custom-audio-play-btn:hover {
    background-color: #D97706;
}

.custom-audio-play-icon,
.custom-audio-pause-icon {
    width: 1em;
    height: 1em;
}

.custom-audio-progress-wrap {
    flex: 1;
    height: 0.375em;
    background-color: #E2E8F0;
    border-radius: 0.188em;
    cursor: pointer;
    position: relative;
}

.custom-audio-progress-track {
    height: 100%;
    border-radius: 0.188em;
    background-color: var(--brand-accent);
    width: 0%;
    transition: width 0.1s linear;
}

.custom-audio-progress-handle {
    width: 0.875em;
    height: 0.875em;
    border-radius: 50%;
    background-color: var(--brand-accent);
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    left: 0%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    pointer-events: none;
}

.custom-audio-time {
    font-size: 0.75em;
    font-weight: 600;
    color: #64748B;
    white-space: nowrap;
    min-width: 4.375em;
    text-align: right;
}

.btn-audio-track-selector {
    background-color: #ECEDEE;
    border: 1px solid #E2E8F0;
    color: #cbd5e1;
    font-size: 1em;
    font-weight: 600;
    padding: 0.5em 1.25em;
    border-radius: 1.25em;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-audio-track-selector.active,
.btn-audio-track-selector:hover {
    background-color: var(--brand-accent);
    border-color: var(--brand-accent);
    color: #FFFFFF;
}

/* Audio Marquee Text Pipeline Ticker */
.boss-transcript-ticker-bar {
    background-color: #cbd5e1;
    border-radius: 0.625em;
    padding: 0.75em 1.25em;
    display: flex;
    align-items: center;
    gap: 1em;
    border-left: 4px solid var(--brand-accent);
}

.ticker-badge {
    font-size: 1em;
    font-weight: 700;
    text-transform: uppercase;
    color: #FFFFFF;
    letter-spacing: 0.8px;
    white-space: nowrap;
}

.ticker-window-viewport {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.ticker-text-marquee {
    display: inline-block;
    padding-left: 100%;
    font-size: 1em;
    color: #ECEDEE;
    font-style: italic;
    white-space: nowrap;
    animation: profileMarquee 28s linear infinite;
    animation-play-state: paused;
}

.ticker-text-marquee.is-playing {
    animation-play-state: running;
}

@keyframes profileMarquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* Bottom Historical Overview Card Panel */
.narrative-details-card {
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 1.5em;
    padding: 2.5em;
    box-shadow: 0 4px 20px rgba(16, 34, 77, 0.02);
}

.details-card-title {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--brand-accent);
}

.narrative-body-content h6,
.carousel-section-title {
    font-size: 1em;
    font-weight: 700;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.narrative-body-content p {
    font-size: 1em;
    color: #475569;
    line-height: 1.8;
}

/* From The Archives - static typed sections */
.carousel-slate-wrapper {
    background-color: #ECEDEE;
    border-radius: 1em;
    padding: 0;
    margin-top: 1.5em;
}

.archive-type-heading {
    font-size: 1em;
    font-weight: 700;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 0.75em;
    padding-bottom: 0.5em;
    border-bottom: 1px solid #E2E8F0;
}

.archive-photo-tile {
    width: 100%;
    cursor: pointer;
    border-radius: 0.75em;
    overflow: hidden;
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    box-shadow: 0 2px 10px rgba(16, 34, 77, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.archive-photo-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(16, 34, 77, 0.12);
    border-color: var(--brand-accent);
}

.archive-tile-media {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #E2E8F0;
}

.archive-tile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.archive-tile-audio-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2A3142, #1A2030);
    color: rgba(255, 255, 255, 0.65);
}
.archive-tile-audio-icon svg {
    width: 40%;
    height: 40%;
}

.archive-tile-badge {
    position: absolute;
    top: 0.5em;
    left: 0.5em;
    background-color: rgba(16, 34, 77, 0.7);
    color: #FFFFFF;
    font-size: 0.55em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.25em 0.5em;
    border-radius: 0.5em;
}

.archive-tile-caption {
    padding: 0.5em 0.625em;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.archive-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 4em;
    row-gap: 1.5em;
}

.archive-tile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75em;
}

.archive-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(10, 12, 18, 0.92);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}
.archive-lightbox.active { display: flex; }
.archive-lightbox-stage {
    max-width: 80vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
}
.archive-lightbox-img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 0.5em;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.archive-lightbox-video,
.archive-lightbox-youtube {
    width: min(80vw, 960px);
    height: min(70vh, 540px);
    border: none;
    border-radius: 0.5em;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.archive-lightbox-audio {
    width: min(80vw, 480px);
}
.archive-lightbox-audio-player.custom-audio-player {
    width: min(80vw, 480px);
    flex: none;
    gap: 1em;
    padding: 0.5em 0;
}
.archive-lightbox-audio-player .custom-audio-progress-wrap {
    height: 0.5em;
}
.archive-lightbox-audio-player .custom-audio-play-btn {
    width: 3em;
    height: 3em;
}
@media (max-width: 576px) {
    .archive-lightbox-video,
    .archive-lightbox-youtube {
        width: 92vw;
        height: calc(92vw * 9 / 16);
    }
    .archive-lightbox-audio {
        width: 92vw;
    }
    .archive-lightbox-audio-player.custom-audio-player {
        width: 92vw;
    }
}
.archive-lightbox-caption { text-align: center; }
.archive-lightbox-caption .archive-caption-en { display: block; font-size: 1em; color: #FFFFFF; }
.archive-lightbox-caption .archive-caption-ne { display: block; font-size: 0.85em; color: #CBD5E1; margin-top: 0.25em; }
.archive-lightbox-close {
    position: absolute; top: 1.5em; right: 1.5em;
    background: rgba(255,255,255,0.1); border: none; color: #FFFFFF;
    width: 2.5em; height: 2.5em; border-radius: 50%; font-size: 1.5em; line-height: 1;
    cursor: pointer; transition: background-color 0.2s ease;
}
.archive-lightbox-close:hover { background: rgba(255,255,255,0.2); }
.archive-lightbox-nav {
    background: rgba(255,255,255,0.1); border: none; color: #FFFFFF;
    width: 3em; height: 3em; border-radius: 50%; font-size: 1.25em;
    cursor: pointer; transition: background-color 0.2s ease;
    position: absolute; top: 50%; transform: translateY(-50%);
}
.archive-lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.archive-lightbox-prev { left: 1.5em; }
.archive-lightbox-next { right: 1.5em; }
@media (max-width: 576px) {
    .archive-lightbox-stage { max-width: 92vw; }
    .archive-lightbox-nav { width: 2.25em; height: 2.25em; font-size: 1em; }
    .archive-lightbox-prev { left: 0.5em; }
    .archive-lightbox-next { right: 0.5em; }
}

.archive-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(16, 34, 77, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5em;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.archive-play-icon {
    width: 2em;
    height: 2em;
    color: #FFFFFF;
}

/* ==========================================================================
   TESTIMONIES — grid listing view (premium)
   ========================================================================== */

/* Intro / context line under the page title */
.testimonies-intro {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5em;
    padding-top: 1em;
    margin-bottom: 1.375em;
    position: relative;
}

.testimonies-intro .testimonies-count {
    position: absolute;
    bottom: 1.375em;
    right: 0;
}

.testimonies-intro p {
    margin: 0;
    font-size: 1.2em;
    color: #cbd5e1;
    max-width: 38.75em;
    line-height: 1.6;
}

.victims-intro {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5em;
    padding-top: 1em;
    margin-bottom: 1.375em;
}

.victims-intro h3 {
    margin: 0;
    font-family: "Yatra One", serif;
    font-size: 1.6em;
    letter-spacing: -0.01em;
    color: #FFFFFF;
    max-width: 38.75em;
    line-height: 1.6;
}

.victims-intro p {
    margin: 0;
    font-size: 0.875em;
    color: #FFFFFF;
    max-width: 38.75em;
    line-height: 1.6;
}

.testimonies-intro h3 {
    margin: 0;
    font-family: "Yatra One", serif;
    font-size: 1.6em;
    letter-spacing: -0.01em;
    color: #FFFFFF;
    max-width: 38.75em;
    line-height: 1.6;
}

.testimonies-intro p {
    margin: 0;
    font-size: 1.2em;
    color: #cbd5e1;
    max-width: 38.75em;
    line-height: 1.6;
}

.testimonies-count {
    font-size: 0.75em;
    font-weight: 600;
    color: #64748B;
    background-color: #F1F5F9;
    border-radius: 1.25em;
    padding: 0.312em 0.875em;
    white-space: nowrap;
    backdrop-filter: blur(10px);
}

/* Intro for Explore page */
.explore-intro {
    padding-top: 1em;
    margin-bottom: 2em;
}

.explore-intro h3 {
    margin: 0 0 0.5em;
    font-size: 1.6em;
    color: #FFFFFF;
    font-family: "Yatra One", serif;
}

.explore-intro p {
    margin: 0;
    font-size: 1.2em;
    color: #cbd5e1;
    line-height: 1.6;
    max-width: 47.5em;
}

/* Toolbar: search input + static filter pills */
.testimonies-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75em;
    margin-bottom: 1.625em;
}

.testimonies-searchbar {
    display: flex;
    align-items: center;
    gap: 0.625em;
    flex: 1 1 300px;
    min-width: 15em;
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 1.875em;
    padding: 0.688em 1.25em;
    box-shadow: 0 2px 8px rgba(16, 34, 77, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    backdrop-filter: blur(10px);
}

.testimonies-searchbar:focus-within {
    border-color: #cbd5e1;
    box-shadow: 0 0 0 4px rgba(16, 34, 77, 0.08);
}

.testimonies-searchbar svg {
    color: #94A3B8;
    flex-shrink: 0;
}

.testimonies-searchbar input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    font-size: 0.875em;
    color: #334155;
}

.testimonies-searchbar input::placeholder {
    color: #94A3B8;
}

.filter-pill-static {
    display: inline-flex;
    align-items: center;
    gap: 0.375em;
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 1.875em;
    padding: 0.625em 1.125em;
    font-size: 0.781em;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.filter-pill-static:hover {
    border-color: var(--brand-accent);
    color: #cbd5e1;
    background-color: #FFFFFF;
    transform: translateY(-1px);
}

.filter-dropdown {
    position: relative;
}

.filter-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5em);
    left: 0;
    min-width: 12em;
    max-height: 16em;
    overflow-y: auto;
    background: #11131A;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.6em;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
    padding: 0.4em;
    z-index: 30;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 105, 0, 0.4) transparent;
}

.filter-dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.filter-dropdown-menu::-webkit-scrollbar-track {
    background: transparent;
}

.filter-dropdown-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 105, 0, 0.4);
    border-radius: 3px;
}

.filter-dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 105, 0, 0.7);
}

.filter-dropdown.open .filter-dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.filter-option {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    color: #E2E8F0;
    padding: 0.5em 0.7em;
    border-radius: 0.4em;
    font-size: 0.9em;
    cursor: pointer;
}

.filter-option:hover {
    background: rgba(255, 105, 0, 0.12);
    color: #fff;
}

.filter-empty-note {
    padding: 0.5em 0.7em;
    color: #64748B;
    font-size: 0.85em;
    font-style: italic;
    margin: 0;
}

.avatar-item img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.timeline-empty-note,
.anchored-empty-note {
    color: #64748B;
    font-size: 0.85em;
    font-style: italic;
    margin: 0;
}

/* Responsive card grid */
.testimonies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.25em;
    margin-bottom: 1.875em;
}

@media (min-width: 1024px) {
    .testimonies-grid {
        gap: 1.75em;
    }
}

.testimony-grid-card {
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 1em;
    padding: 1.375em 1.375em 2.75em;
    box-shadow: 0 6px 18px rgba(16, 34, 77, 0.05);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    min-height: 15em;
}

.testimony-grid-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--brand-accent-dark);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.testimony-grid-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(16, 34, 77, 0.10), 0 0 0 1px rgba(var(--brand-accent-rgb), 0.25), 0 0 24px rgba(var(--brand-accent-rgb), 0.10);
    border-color: var(--brand-accent-dark);
}

.testimony-grid-card:hover::before {
    opacity: 1;
}

.card-top {
    display: flex;
    align-items: center;
    gap: 0.75em;
}

.card-avatar {
    position: relative;
    width: 4em;
    height: 4em;
    border-radius: 50%;
    border: 3px solid var(--brand-accent);
    background-color: #FFFFFF;
    padding: 0.1em;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #cbd5e1;
    box-shadow: 0 8px 22px rgba(16, 34, 77, 0.10);
    overflow: hidden;
}

.card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.card-avatar svg {
    position: relative;
    display: block;
    color: #cbd5e1;
}

.card-name {
    font-size: 1em;
    font-weight: 700;
    color: #cbd5e1;
    letter-spacing: -0.2px;
}

.card-place {
    font-size: 0.688em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #64748B;
    margin-top: 0.125em;
}

.card-excerpt {
    font-size: 1rem;
    color: #cbd5e1;
    line-height: 1.7;
    margin-top: 1em;
    padding-top: 1em;
    border-top: 1px solid #EEF2F6;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.testimony-grid-card-cta {
    position: absolute;
    left: 1.375em;
    bottom: 1.125em;
    display: inline-flex;
    align-items: center;
    font-size: 0.7em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #FFFFFF;
    background: var(--brand-accent-dark);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.7em;
    padding: 0.5em 0.95em;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.30);
    opacity: 0;
    transform: translateX(-1.25em);
    transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    pointer-events: none;
}

.testimony-grid-card:hover .testimony-grid-card-cta,
.testimony-grid-card:focus .testimony-grid-card-cta,
.testimony-grid-card:focus-within .testimony-grid-card-cta {
    opacity: 1;
    transform: translateX(0);
}

.testimony-grid-card:hover .testimony-grid-card-cta {
    transform: translate(0, -2px);
    background: var(--brand-accent);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 0 18px rgba(var(--brand-accent-dark-rgb), 0.60);
}

@media (max-width: 768px) {
    .testimony-grid-card.is-revealed .testimony-grid-card-cta {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Pagination control */
.testimonies-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    margin-top: 0.625em;
}

.testimonies-pager span {
    min-width: 2.375em;
    height: 2.375em;
    padding: 0 0.625em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.625em;
    font-size: 0.812em;
    font-weight: 600;
    color: #64748B;
    cursor: pointer;
    border: 1px solid #E2E8F0;
    background-color: #FFFFFF;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.testimonies-pager span:hover {
    border-color: #cbd5e1;
    color: #cbd5e1;
}

.testimonies-pager span.active {
    background-color: #cbd5e1;
    border-color: #cbd5e1;
    color: #FFFFFF;
}

/* ==========================================================================
    THEME-DARK — shared textured background for testimonies / victims / profile
    ========================================================================== */

.theme-dark {
    /* Background moved to body in style.css for global coverage */
}

.theme-dark h2 {
    color: #F1F5F9;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

/* Toolbar dark overrides */
.theme-dark .testimonies-searchbar {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.theme-dark .testimonies-searchbar input {
    color: #F1F5F9;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.theme-dark .testimonies-searchbar input::placeholder {
    color: #E2E8F0;
}

.theme-dark .testimonies-searchbar svg {
    color: #E2E8F0;
    fill: #E2E8F0;
}

.theme-dark .filter-pill-static {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #E2E8F0;
}

.theme-dark .filter-pill-static:hover {
    border-color: rgba(var(--brand-accent-rgb), 0.5);
    color: #F1F5F9;
    background: rgba(var(--brand-accent-rgb), 0.1);
}

.theme-dark .testimonies-count {
    background: rgba(255, 255, 255, 0.18);
    color: #E2E8F0;
}

/* Card dark overrides */
.theme-dark .testimony-grid-card {
    background: linear-gradient(180deg, #1A1D25 0%, #14171E 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.theme-dark .testimony-grid-card:hover {
    border-color: rgba(var(--brand-accent-dark-rgb), 0.6);
    box-shadow: 0 14px 30px rgba(var(--brand-accent-dark-rgb), 0.08);
}

.theme-dark .testimony-grid-card:hover::before {
    opacity: 1;
}

.theme-dark .testimony-grid-card-cta {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}

.theme-dark .card-name {
    color: var(--brand-accent);
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.theme-dark .card-place {
    color: #CBD5E1;
}

.theme-dark .card-excerpt {
    color: #cbd5e1;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.theme-dark .card-avatar {
    border-color: rgba(var(--brand-accent-rgb), 0.5);
    background: rgba(255, 255, 255, 0.04);
}

.theme-dark .card-avatar::before {
    background: rgba(255, 255, 255, 0.06);
}

.theme-dark .card-avatar svg {
    color: #CBD5E1;
}

/* Pagination dark overrides */
.theme-dark .testimonies-pager span {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94A3B8;
}

.theme-dark .testimonies-pager span:hover {
    border-color: rgba(var(--brand-accent-rgb), 0.5);
    color: #F1F5F9;
}

.theme-dark .testimonies-pager span.active {
    background: var(--brand-accent-dark);
    border-color: var(--brand-accent-dark);
    color: #FFFFFF;
}

.theme-dark .testimonies-intro p {
    color: #cbd5e1;
    font-size: 1.2em;
    line-height: 1.6;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .theme-dark .testimonies-intro p {
        white-space: normal;
    }
    .testimonies-intro .testimonies-count {
        position: static;
        margin-top: 0.5em;
    }
}

/* Victims page dark overrides */
.theme-dark .search-sidebar {
    background-color: #14171E;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    padding-right: 0.5em;
}

.theme-dark .search-sidebar h3,
.theme-dark .search-sidebar .sidebar-title {
    color: #E2E8F0;
}

.theme-dark .search-sidebar label,
.theme-dark .search-sidebar .form-label {
    color: #94A3B8;
}

.theme-dark .search-sidebar input,
.theme-dark .search-sidebar select,
.theme-dark .search-sidebar .form-control,
.theme-dark .search-sidebar .form-select {
    background-color: #1E222B;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #E2E8F0;
}

.theme-dark .search-sidebar input:focus,
.theme-dark .search-sidebar select:focus,
.theme-dark .search-sidebar .form-control:focus,
.theme-dark .search-sidebar .form-select:focus {
    background-color: #1A1D24;
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 3px rgba(var(--brand-accent-rgb), 0.2);
}

.theme-dark .search-sidebar input::placeholder,
.theme-dark .search-sidebar .form-control::placeholder {
    color: #E2E8F0;
    opacity: 1;
}

.theme-dark .btn-search-victims,
.theme-dark .search-sidebar button[type="submit"] {
    background-color: var(--brand-accent-dark);
    color: #FFFFFF;
}

.theme-dark .btn-search-victims:hover,
.theme-dark .search-sidebar button[type="submit"]:hover {
    background-color: #A34400;
}

/* Sticky sidebar */
@media (min-width: 768px) {
    .row.g-4 {
        overflow: visible;
    }
    .search-sidebar {
        position: sticky;
        top: calc(var(--topbar-height) + 1em);
        align-self: flex-start;
        z-index: 1;
    }
    .victims-scroll-container {
        padding-right: 0.5em;
    }
    .explore-sidebar-panel {
        position: sticky;
        top: calc(var(--topbar-height) + 1em);
        align-self: flex-start;
        z-index: 1;
    }
}

/* Form hint text */
.form-hint {
    display: block;
    margin-top: 0.375em;
    font-size: 0.7rem;
    color: #64748B;
    letter-spacing: 0.2px;
}
.theme-dark .form-hint {
    color: #64748B;
}

/* Victim relation text */
.victim-relation {
    font-size: 1rem;
    color: #CBD5E1;
    line-height: 1.7;
    font-weight: 600;
    max-height: 1.7em;
    overflow: hidden;
}
.theme-dark .victim-relation {
    color: #CBD5E1 !important;
}
.victims-empty-state {
    text-align: center;
    padding: 3.5em 2em;
    background: rgba(20, 23, 30, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.75em;
    backdrop-filter: blur(4px);
}
.empty-state-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.5em;
    height: 4.5em;
    border-radius: 50%;
    background: rgba(var(--brand-accent-rgb), 0.08);
    color: var(--brand-accent);
    margin-bottom: 1.25em;
}
.empty-state-title {
    font-family: "Source Serif 4", serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #F1F5F9;
    margin: 0 0 0.5em 0;
}
.empty-state-text {
    font-size: 0.875rem;
    color: #94A3B8;
    line-height: 1.6;
    max-width: 24em;
    margin: 0 auto 1.5em auto;
}
.empty-state-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.625em 1.25em;
    background: transparent;
    color: var(--brand-accent);
    border: 1px solid rgba(var(--brand-accent-rgb), 0.35);
    border-radius: 0.5em;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.2s ease;
}
.empty-state-btn:hover {
    background: rgba(var(--brand-accent-rgb), 0.1);
    border-color: var(--brand-accent);
    transform: translateY(-1px);
}

/* Loading state */
.victims-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75em;
    padding: 2em;
    color: #94A3B8;
    font-size: 0.875rem;
}
.loading-spinner {
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.is-loading {
    opacity: 0.4;
    pointer-events: none;
    transition: opacity 150ms;
}

.theme-dark .victim-summary-card {
    background: linear-gradient(135deg, rgba(20, 23, 30, 0.85) 0%, rgba(17, 19, 26, 0.92) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}
.theme-dark .victim-summary-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1.5px;
    background: linear-gradient(90deg, var(--brand-accent-dark), var(--brand-accent));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.theme-dark .victim-summary-card:hover::before {
    opacity: 1;
}
.theme-dark .victim-summary-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(var(--brand-accent-rgb), 0.2);
    border-color: rgba(var(--brand-accent-rgb), 0.25);
}

.theme-dark .victim-avatar-wrapper {
    width: 4.5em;
    height: 4.5em;
    background-color: #1A1E28;
    border: 2px solid rgba(var(--brand-accent-rgb), 0.3);
    box-shadow: 0 0 12px rgba(var(--brand-accent-rgb), 0.1);
    color: #CBD5E1;
}

.theme-dark .victim-name {
    color: var(--brand-accent);
    text-shadow: none;
}

.theme-dark .victim-meta-text {
    color: #94A3B8;
}

.theme-dark .victim-meta-text strong {
    color: #CBD5E1;
}

.theme-dark .victim-summary-card .victim-name {
    text-shadow: none;
}

.theme-dark .victim-summary-card .victim-meta-text {
    color: #94A3B8 !important;
}

.theme-dark .victim-summary-card .victim-meta-text strong {
    color: #CBD5E1 !important;
}

.theme-dark .victim-eyebrow--muted {
    color: #94A3B8;
}

.theme-dark .perpetrator-divider {
    background-color: #333333;
}

/* Profile page dark overrides */
.theme-dark .profile-canvas-wrapper {
    background-color: #0F1318;
}

.theme-dark .btn-back-cases {
    background-color: #14171E;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #E2E8F0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.theme-dark .btn-back-cases:hover {
    border-color: var(--brand-accent-dark);
    color: var(--brand-accent-dark);
}

.theme-dark .profile-primary-circle {
    border-right-color: var(--brand-accent-dark);
    border-bottom-color: var(--brand-accent-dark);
    box-shadow: 0 10px 30px rgba(var(--brand-accent-dark-rgb), 0.2);
}

.theme-dark .profile-secondary-circle {
    border-color: rgba(255, 255, 255, 0.15);
    background-color: var(--brand-accent-dark);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.theme-dark .avatar-inner-placeholder {
    color: #E2E8F0;
}

.theme-dark .handwritten-name-label {
    color: #FFFFFF;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.theme-dark .victim-tabs {
    gap: 0.625em;
    margin-top: 0.75em;
    margin-left: 0.5em;
}

.theme-dark .victim-tab {
    border-color: rgba(255, 255, 255, 0.15);
    background-color: #1E222B;
    color: #E2E8F0;
    backdrop-filter: blur(10px);
}

.theme-dark .victim-tab:hover {
    border-color: var(--brand-accent-dark);
    color: var(--brand-accent-dark);
}

.theme-dark .victim-tab.active {
    background-color: var(--brand-accent-dark);
    border-color: var(--brand-accent-dark);
    color: #FFFFFF;
}

.theme-dark .metadata-billboard-panel {
    background-color: #1E222B;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.theme-dark .billboard-victim-name {
    color: #FFFFFF;
}

.theme-dark .billboard-sub-relation {
    color: #E2E8F0;
}

.theme-dark .billboard-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.theme-dark .billboard-eyebrow {
    color: var(--brand-accent-dark);
}

.theme-dark .incident-timeline-highlight {
    color: #E2E8F0;
}

.theme-dark .incident-timeline-highlight strong {
    color: #FFFFFF;
    background-color: var(--brand-accent-dark);
}

.theme-dark .briefing-box {
    background-color: rgba(255, 255, 255, 0.06);
    border-left: 3px solid var(--brand-accent-dark);
}

.theme-dark .briefing-title {
    color: #FFFFFF;
}

.theme-dark .briefing-text {
    color: #E2E8F0;
}

.theme-dark .audio-transcription-deck {
    background-color: #181C24;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.theme-dark .audio-control-strip-layout {
    background-color: #1E1E1E;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.625em;
    padding: 0.625em 0.875em;
}

.theme-dark audio::-webkit-media-controls-panel {
    background-color: #1E1E1E;
}

.theme-dark audio::-webkit-media-controls-play-button {
    filter: invert(0.85);
}

.theme-dark audio::-webkit-media-controls-current-time-display,
.theme-dark audio::-webkit-media-controls-time-remaining-display {
    color: #CBD5E1;
}

.theme-dark audio::-webkit-media-controls-timeline {
    filter: invert(0.7);
}

.theme-dark audio::-webkit-media-controls-mute-button {
    filter: invert(0.7);
}

.theme-dark .native-media-player {
    height: 2.5em;
    border-radius: 0.5em;
}

.theme-dark .btn-audio-track-selector {
    background-color: #222222;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #E2E8F0;
}

.theme-dark .btn-audio-track-selector.active,
.theme-dark .btn-audio-track-selector:hover {
    background-color: var(--brand-accent-dark);
    border-color: var(--brand-accent-dark);
    color: #FFFFFF;
}

.theme-dark .boss-transcript-ticker-bar {
    background-color: #171717;
    border-left: 4px solid var(--brand-accent);
}

.theme-dark .ticker-window-viewport {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 0.375em;
}

.theme-dark .ticker-text-marquee {
    color: #CBD5E1;
}

.theme-dark .ticker-badge {
    color: #FFFFFF;
}

.theme-dark .ticker-text-marquee {
    color: #CBD5E1;
}

.theme-dark .profile-quick-link {
    background-color: #1E222B;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #E2E8F0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.theme-dark .profile-quick-link:hover {
    border-color: var(--brand-accent-dark);
    color: #F1F5F9;
    box-shadow: 0 6px 16px rgba(var(--brand-accent-dark-rgb), 0.2);
}

.theme-dark .profile-quick-link.is-dark {
    background-color: var(--brand-accent-dark);
    color: #FFFFFF;
    border-color: var(--brand-accent-dark);
}

.theme-dark .profile-quick-link.is-dark:hover {
    background-color: var(--brand-accent-dark);
    border-color: var(--brand-accent-dark);
    color: #FFFFFF;
}

.theme-dark .profile-quick-link .ql-sub {
    color: #cbd5e1;
}

.theme-dark .narrative-details-card {
    background-color: #1E222B;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.theme-dark .details-card-title {
    color: var(--brand-accent-dark);
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.theme-dark .narrative-body-content h6,
.theme-dark .carousel-section-title {
    color: #E2E8F0;
}

.theme-dark .narrative-body-content p {
    color: #cbd5e1;
}

.theme-dark .carousel-slate-wrapper {
    background-color: #1E222B;
    padding: 0;
    margin-top: 1.5em;
}

.theme-dark .archive-photo-tile {
    background-color: #1E222B;
    border-color: rgba(255, 255, 255, 0.12);
}

.theme-dark .archive-photo-tile:hover {
    border-color: var(--brand-accent-dark);
}

.theme-dark .archive-tile-media {
    background-color: #2A2E38;
}

.theme-dark .archive-play-overlay {
    background-color: rgba(0, 0, 0, 0.6);
}

.theme-dark .archive-play-icon {
    color: #FFFFFF;
}

.theme-dark .custom-audio-play-btn {
    background-color: var(--brand-accent-dark);
}

.theme-dark .custom-audio-play-btn:hover {
    background-color: #D97706;
}

.theme-dark .custom-audio-progress-wrap {
    background-color: rgba(255, 255, 255, 0.1);
}

.theme-dark .custom-audio-progress-track {
    background-color: var(--brand-accent-dark);
}

.theme-dark .custom-audio-progress-handle {
    background-color: var(--brand-accent-dark);
}

.theme-dark .custom-audio-time {
    color: #94A3B8;
}

.theme-dark .archive-type-heading {
    color: #E2E8F0;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.theme-dark .archive-caption-en {
    color: #CBD5E1;
}

.theme-dark .archive-caption-ne {
    color: #64748B;
}

/* Homepage dark overrides */


.theme-dark .bannercontent {
    background: transparent;
}

.theme-dark .bannercontent h1 {
    color: #F1F5F9;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.theme-dark .bannercontent p {
    color: #B7B1A7;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.theme-dark .searchbar {
    background: rgba(255, 255, 255, 0.06) url('../images/search-icon-gray.png') no-repeat 12px center/34px 34px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #F1F5F9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.theme-dark .searchbar::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.theme-dark .searchbar:focus {
    outline-color: var(--brand-accent-dark);
}

.theme-dark .searchbtn {
    background: linear-gradient(135deg, var(--brand-accent) 0%, var(--brand-accent-dark) 100%);
    color: #FFFFFF;
    border: none;
}

.theme-dark .searchbtn:hover {
    background: linear-gradient(135deg, var(--brand-accent-dark) 0%, var(--brand-accent) 100%);
}

.theme-dark .section-title {
    color: #F1F5F9;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.theme-dark .section-title::after {
    background: linear-gradient(90deg, var(--brand-accent-dark), #242424);
}

.theme-dark .bangle-ring {
    border-width: 9px;
    border-style: solid;
    border-color: rgba(180, 60, 60, 0.85);
    border-right-color: var(--brand-accent-dark);
    border-bottom-color: var(--brand-accent-dark);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
}

.theme-dark .bangle-ring:hover {
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.theme-dark .exploresection {
    position: relative;
}



.theme-dark .explorebtn {
    background: linear-gradient(135deg, var(--brand-accent) 0%, var(--brand-accent-dark) 100%);
    box-shadow: 0 12px 30px rgba(var(--brand-accent-rgb), 0.4);
}

.theme-dark .explorebtn:hover {
    background: linear-gradient(135deg, var(--brand-accent-dark) 0%, var(--brand-accent) 100%);
    box-shadow: 0 18px 38px rgba(var(--brand-accent-rgb), 0.5);
}

.theme-dark .cardblock {
    background-color: #1D1D1D;
    border: 1px solid #333333;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.theme-dark .cardblock h3 {
    color: #F1F5F9;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    border-bottom: 1px solid #333333;
}

.theme-dark .cardblock p {
    color: #B7B1A7;
}

.theme-dark .mapssection {
    background-color: #1A1D24;
}

.theme-dark #map {
    background-color: #1A1D24 !important;
}

.theme-dark .leaflet-container {
    background: #1A1D24 !important;
}

/* ==========================================================================
   EXPLORE PAGE — dark-mode overrides
   ========================================================================== */

.theme-dark .explore-sidebar-panel {
    background-color: #1E222B;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.theme-dark .explore-sidebar-sub {
    color: #94A3B8;
}

.theme-dark .axis-soon-tag {
    color: #F87171;
    background-color: rgba(var(--brand-accent-rgb), 0.12);
    border-color: rgba(var(--brand-accent-rgb), 0.35);
}

.theme-dark .btn-facet-pill {
    background-color: transparent;
    border: none;
    border-left: 3px solid transparent;
    border-radius: 0;
    color: #94A3B8;
}

.theme-dark .btn-facet-pill:hover {
    color: #CBD5E1;
}

.theme-dark .btn-facet-pill.active {
    border-left-color: rgba(255, 255, 255, 0.3);
    color: #F1F5F9;
    background-color: rgba(255, 255, 255, 0.06);
}

.theme-dark .facet-count-badge {
    color: #94A3B8;
    background-color: rgba(255, 255, 255, 0.06);
}

.theme-dark .btn-facet-pill.active .facet-count-badge {
    background-color: rgba(255, 255, 255, 0.12);
    color: #F1F5F9;
}

.theme-dark .active-filter-bar {
    background-color: transparent;
    border: none;
}

.theme-dark .filter-bar-hint {
    color: #CBD5E1;
    background-color: rgba(16, 34, 77, 0.18);
    border-left: 3px solid var(--brand-accent-dark);
    border-radius: 0 0.5em 0.5em 0;
    padding: 0.625em 0.875em;
    backdrop-filter: none;
}

.theme-dark .filter-chip {
    background-color: rgba(var(--brand-accent-rgb), 0.1);
    border: 1px solid var(--brand-accent);
    color: #F1F5F9;
}

.theme-dark .filter-chip-dot {
    background-color: var(--brand-accent);
}

.theme-dark .filter-chip-remove {
    color: var(--brand-accent);
}

.theme-dark .filter-chip-remove:hover {
    background-color: var(--brand-accent);
    color: #FFFFFF;
}

.theme-dark .fragment-result-card {
    background-color: #181C24;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: none;
    transition: border-color 0.2s ease;
}

.theme-dark .fragment-result-card::before {
    background: var(--brand-accent);
}

.theme-dark .fragment-result-card:hover {
    border-color: rgba(var(--brand-accent-rgb), 0.35);
    box-shadow: 0 10px 24px rgba(var(--brand-accent-rgb), 0.12);
    transform: translateY(-2px);
}

.theme-dark .fragment-result-card:hover::before {
    opacity: 1;
}

.theme-dark .fragment-avatar-ring {
    border-color: rgba(var(--brand-accent-rgb), 0.4);
    background-color: rgba(255, 255, 255, 0.03);
    color: #CBD5E1;
}

.theme-dark .fragment-avatar-ring svg {
    color: #CBD5E1;
}

.theme-dark .fragment-text-skeleton-group {
    color: #E2E8F0;
}

.theme-dark .fragment-badge-tag {
    color: #94A3B8;
    background-color: #1E1E1E;
}

.theme-dark .fragment-content {
    color: #CBD5E1;
}

.theme-dark .fragment-excerpt {
    color: #CBD5E1;
}

.theme-dark .fragment-theme-tag {
    color: var(--brand-accent);
    background-color: rgba(var(--brand-accent-rgb), 0.1);
}

.theme-dark .fragment-source {
    color: #94A3B8;
}

.theme-dark .results-toolbar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.theme-dark .results-count {
    color: #CBD5E1;
    background-color: rgba(255, 255, 255, 0.06);
}

.theme-dark .victim-meta-text {
    color: #94A3B8;
}

.theme-dark .victim-meta-text strong {
    color: #CBD5E1;
}

.theme-dark .btn-open-profile {
    color: #fff;
    background: linear-gradient(135deg, var(--brand-accent-dark) 0%, var(--brand-accent) 100%);
    border: none;
    border-radius: 0.5em;
    padding: 0.5em 1em;
    font-size: 0.78em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(var(--brand-accent-dark-rgb), 0.3);
}
.theme-dark .btn-open-profile:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--brand-accent) 0%, var(--brand-accent-dark) 100%);
    box-shadow: 0 6px 18px rgba(var(--brand-accent-dark-rgb), 0.45);
    transform: translateY(-2px);
}

/* Audio player mobile fix */
@media (max-width: 768px) {
    .audio-transcription-deck {
        padding: 16px;
    }

    .audio-control-strip-layout {
        flex-wrap: wrap;
        row-gap: 12px;
    }

    .custom-audio-player {
        flex: 1 1 100%;
        width: 100%;
        min-width: 0;
    }

    .custom-audio-time {
        min-width: 0;
        font-size: 11px;
    }

    /* Track selector buttons move to their own full-width row below the player */
    .btn-audio-track-selector {
        flex: 0 1 auto;
        padding: 8px 14px;
        font-size: 1em;
    }

    /* Active pill affordance */
    .btn-facet-pill.active::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 3px;
        background: var(--brand-accent);
        border-radius: 2px 0 0 2px;
    }
    .theme-dark .btn-facet-pill.active::before {
        background: var(--brand-accent);
    }

    /* Empty pill state */
    .btn-facet-pill[data-count="0"],
    .btn-facet-pill[count="0"] {
        opacity: 0.4;
        pointer-events: none;
    }

    /* Fragment card entrance */
    .fragment-feed-stream {
        transition: opacity 0.2s ease;
    }
    .fragment-feed-stream.is-loading {
        opacity: 0.4;
        pointer-events: none;
    }
}

@media (max-width: 576px) {
    .billboard-top-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .profile-secondary-circle {
        width: 5em;
        height: 5em;
    }
}

@media (max-width: 767px) {
    .archive-grid {
        grid-template-columns: 1fr;
    }
}
