* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #0d0d0d;
    color: #e0e0e0;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    padding-bottom: 4rem;
}

.top-bar {
    border-bottom: 1px solid #333;
    background-color: #111;
    padding: 1.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1 {
    font-family: 'Roboto Mono', monospace;
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: #ffffff;
}

.status {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.85rem;
    color: #888;
}

.case-overview {
    background-color: #0a0a0a; 
    border-bottom: 1px solid #222;
    padding: 3rem 2rem;
}

.overview-content {
    max-width: 900px; 
    margin: 0 auto;
}

.overview-content h2 {
    font-family: 'Roboto Mono', monospace;
    color: #ffffff;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    border-left: 4px solid #7a1515; 
    padding-left: 1rem;
}

.overview-content p {
    margin-bottom: 1.25rem;
    font-size: 1rem;
    color: #c4c4c4;
}

.allegation-list {
    margin: 2rem 0 2rem 1.5rem;
    list-style-type: square;
    color: #555; 
}

.allegation-list li {
    margin-bottom: 1.25rem;
    color: #c4c4c4;
}

.allegation-list em {
    color: #ffffff;
    font-style: italic;
}

mark {
    background-color: rgba(122, 21, 21, 0.25); 
    color: #ffb3b3; 
    padding: 0.1rem 0.4rem;
    border-radius: 2px;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.archivist-note {
    background-color: #111111;
    border: 1px solid #333;
    border-left: 4px solid #444;
    padding: 1.25rem;
    margin-top: 2.5rem;
    border-radius: 2px;
}

.archivist-note p {
    margin: 0;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
}

.archivist-note .disclaimer {
    margin-top: 1rem;
    color: #a8a8a8;
}

.archivist-note strong {
    color: #bbbbbb;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.evidence-card {
    background-color: #141414;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.evidence-card:hover {
    border-color: #555;
}

.image-wrapper img {
    width: 100%;
    height: 250px; 
    object-fit: cover; 
    object-position: top; 
    display: block;
    border-bottom: 1px solid #2a2a2a;
    transition: opacity 0.2s ease;
}

.image-wrapper img:hover {
    opacity: 0.8; 
    cursor: pointer;
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem auto 4rem;
    max-width: 1200px;
    font-family: 'Roboto Mono', monospace;
}

.page-btn {
    background-color: #111;
    color: #888;
    border: 1px solid #333;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    border-radius: 2px;
    transition: all 0.2s ease;
}

.page-btn:hover:not(:disabled) {
    background-color: #222;
    color: #fff;
    border-color: #555;
}

.page-btn.active {
    background-color: #7a1515; 
    color: #fff;
    border-color: #901a1a;
    font-weight: bold;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.metadata {
    padding: 1.25rem;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.85rem;
    color: #a0a0a0;
}

.metadata p {
    margin-bottom: 0.5rem;
}

.metadata p:last-child {
    margin-bottom: 0;
}

.metadata strong {
    color: #ffffff;
    font-weight: 700;
}

.timeline-filter {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding: 0 2rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
    font-family: 'Roboto Mono', monospace;
}

.filter-label {
    color: #666;
    font-size: 0.85rem;
    margin-right: 0.5rem;
    letter-spacing: 1px;
}

.filter-btn {
    background-color: #111;
    color: #a0a0a0;
    border: 1px solid #333;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background-color: #222;
    color: #fff;
    border-color: #555;
}

.filter-btn.active {
    background-color: #e0e0e0; 
    color: #000;
    border-color: #fff;
    font-weight: bold;
}

.header-status-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.glitch-text {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.75rem;
    color: #555; /* Muted gray */
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    user-select: none;
    animation: constantSoftGlitch 3s infinite linear; 
}

@keyframes constantSoftGlitch {
    0% { text-shadow: 1px 0 #3a0a0a, -1px 0 #222; transform: translate(0); }
    20% { text-shadow: -1px 0 #3a0a0a, 1px 0 #222; transform: translate(-0.5px, 0.5px); }
    40% { text-shadow: 1px 0 #3a0a0a, -1px 0 #222; transform: translate(0.5px, -0.5px); }
    60% { text-shadow: -1px 0 #3a0a0a, 1px 0 #222; transform: translate(0); }
    80% { text-shadow: 0.5px 0 #3a0a0a, -0.5px 0 #222; transform: translate(0.5px, 0.5px); }
    100% { text-shadow: 1px 0 #3a0a0a, -1px 0 #222; transform: translate(0); }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .case-overview {
        padding: 2rem 1rem;
    }

    .overview-content h2 {
        font-size: 1.2rem;
    }

    .grid-container {
        grid-template-columns: 1fr; 
        padding: 0 1rem;
        margin: 2rem auto;
    }

    .image-wrapper img {
        height: 200px;
    }

    .pagination-container {
        flex-wrap: wrap; 
        padding: 0 1rem;
    }
    
    .page-btn {
        padding: 0.5rem 0.75rem; 
        font-size: 0.8rem;
    }
}