/* ==========================================================
   CASE FILE STYLES
   Project Blue Book / Archival Investigative Record
   ========================================================== */

/*
 * IMPORTANT:
 * Every rule is scoped to .case-file-page so this stylesheet
 * does not affect the site's header, navigation, footer,
 * or other pages.
 */


/* ==========================================================
   CASE PAGE WRAPPER
   ========================================================== */



.case-file-page {
    --cf-paper: #e9e5d9;
    --cf-paper-dark: #d8d3c5;
    --cf-ink: #171817;
    --cf-muted: #5e605b;
    --cf-line: #292a27;
    --cf-light-line: #9a9a91;
    --cf-blue: #304b59;
    --cf-red: #7c2e2a;

    display: block;
    width: 100% !important;
    box-sizing: border-box;

   // background: #d3d0c6;
   background: #000000;
    color: var(--cf-ink);

    padding: 60px 20px 100px;

    font-family: Arial, Helvetica, sans-serif;

    line-height: 1.5;

    position: relative;
}

.case-file-page *,
.case-file-page *::before,
.case-file-page *::after {
    box-sizing: border-box;
}

.case-file-page h1 {
  color: #000000 !important;
}
.case-file-page h2 {
  color: #000000 !important;
}
.case-file-page h3 {
  color: #000000 !important;
}
.case-file-page p {
  color: #000000 !important;
}
/* ==========================================================
   MAIN CASE DOCUMENT
   ========================================================== */

.case-file-page .case-file-container {
    position: relative;

    width: min(1100px, 100%);

    margin: 0 auto;

    padding: 45px;

    background: var(--cf-paper);

    border: 1px solid #aaa79d;

    box-shadow:        0 3px 8px rgba(0, 0, 0, .12),
        0 18px 45px rgba(0, 0, 0, .08);

    overflow: hidden;
}


/* ==========================================================
   PAPER TEXTURE
   ========================================================== */

.case-file-page .case-file-container::before {
    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    opacity: .14;

    background-image:        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 3px,
            rgba(0, 0, 0, .018) 4px
        );
}


/* ==========================================================
   HEADER INSIDE CASE FILE
   ========================================================== */

.case-file-page .case-file-header {
    position: relative;
    z-index: 1;

    margin: 0;
    padding: 0;
}

.case-file-page .archive-topline {
    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    gap: 20px;

    margin: 0;
    padding: 0;

    font-family:        "Courier New",
        Courier,
        monospace;

    font-size: 12px;

    font-weight: bold;

    letter-spacing: 1.5px;
}

.case-file-page .archive-agency {
    color: var(--cf-blue);
}

.case-file-page .archive-document {
    text-align: right;
}

.case-file-page .header-rule {
    width: 100%;
    height: 1px;

    margin: 18px 0;

    padding: 0;

    background: var(--cf-line);
}

.case-file-page .case-heading {
    display: flex;

    justify-content: space-between;

    align-items: flex-end;

    gap: 30px;

    margin: 0;
    padding: 0;
}

.case-file-page .document-label,
.case-file-page .status-label {
    display: block;

    margin: 0 0 7px;

    font-family:        "Courier New",
        Courier,
        monospace;

    font-size: 11px;

    font-weight: bold;

    letter-spacing: 2px;
}

.case-file-page .case-number {
    display: block;

    margin: 0;
    padding: 0;

    font-family:        "Courier New",
        Courier,
        monospace;

    font-size: clamp(32px, 5vw, 56px);

    line-height: 1;

    letter-spacing: 3px;

    font-weight: 700;
}

.case-file-page .case-heading-right {
    text-align: right;
}

.case-file-page .case-status {
    display: inline-block;

    padding: 7px 13px;

    border: 2px solid var(--cf-red);

    color: var(--cf-red);

    font-family:        "Courier New",
        Courier,
        monospace;

    font-size: 12px;

    font-weight: bold;

    letter-spacing: 1.5px;

    transform: rotate(-1deg);
}


/* ==========================================================
   ARCHIVE META
   ========================================================== */

.case-file-page .archive-meta {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 20px;

    margin: 0;
    padding: 0;

    font-family:        "Courier New",
        Courier,
        monospace;

    font-size: 12px;
}

.case-file-page .archive-meta div {
    padding-right: 15px;

    border-right: 1px solid var(--cf-light-line);
}

.case-file-page .archive-meta div:last-child {
    border-right: none;
}

.case-file-page .archive-meta span {
    display: block;

    margin-bottom: 4px;

    color: var(--cf-muted);

    font-size: 9px;

    letter-spacing: 1px;
}


/* ==========================================================
   CASE TITLE
   ========================================================== */

.case-file-page .case-title-section {
    position: relative;
    z-index: 1;

    margin: 55px 0 35px;

    padding: 0;
}

.case-file-page .section-label {
    display: block;

    margin: 0 0 8px;

    color: var(--cf-muted);

    font-family:        "Courier New",
        Courier,
        monospace;

    font-size: 10px;

    font-weight: bold;

    letter-spacing: 2px;
}

.case-file-page .case-title-section h2 {
    margin: 0;
    padding: 0;

    color: var(--cf-ink);

    font-family:        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(27px, 4vw, 43px);

    font-weight: 600;

    line-height: 1.15;
}


/* ==========================================================
   SECTION HEADINGS
   ========================================================== */

.case-file-page .case-section {
    position: relative;
    z-index: 1;

    width: 100%;

    margin: 42px 0 0;

    padding: 0;
}

.case-file-page .section-heading {
    display: flex;

    align-items: center;

    gap: 13px;

    width: 100%;

    margin: 0;
    padding: 9px 0;

    border-top: 2px solid var(--cf-line);

    border-bottom: 1px solid var(--cf-line);

    color: var(--cf-ink);

    font-family:        "Courier New",
        Courier,
        monospace;

    font-size: 12px;

    font-weight: bold;

    letter-spacing: 2px;
}

.case-file-page .section-heading span {
    display: inline-block;

    padding: 3px 6px;

    background: var(--cf-ink);

    color: var(--cf-paper);

    font-size: 10px;
}


/* ==========================================================
   CASE INFORMATION GRID
   ========================================================== */

.case-file-page .case-information-grid {
    display: grid;

    grid-template-columns:        repeat(2, minmax(0, 1fr));

    width: 100%;

    margin: 18px 0 0;
    padding: 0;

    border-top: 1px solid var(--cf-line);

    border-left: 1px solid var(--cf-line);
}

.case-file-page .case-field {
    min-height: 86px;

    margin: 0;
    padding: 14px 17px;

    border-right: 1px solid var(--cf-line);

    border-bottom: 1px solid var(--cf-line);
}

.case-file-page .field-wide {
    grid-column: span 2;
}

.case-file-page .field-label {
    display: block;

    margin: 0 0 8px;

    color: var(--cf-muted);

    font-family:        "Courier New",
        Courier,
        monospace;

    font-size: 9px;

    font-weight: bold;

    line-height: 1.3;

    letter-spacing: 1.4px;
}

.case-file-page .field-value {
    display: block;

    margin: 0;
    padding: 0;

    color: var(--cf-ink);

    font-family:        "Courier New",
        Courier,
        monospace;

    font-size: 15px;

    font-weight: 600;

    line-height: 1.4;
}

.case-file-page .field-value.large {
    font-size: 19px;
}


/* ==========================================================
   LOCATION
   ========================================================== */

.case-file-page .location-document {
    display: grid;

    grid-template-columns:        1.5fr 1fr;

    width: 100%;

    margin: 18px 0 0;
    padding: 0;

    border: 1px solid var(--cf-line);
}

.case-file-page .location-map-wrapper {
    min-height: 360px;

    margin: 0;
    padding: 0;

    border-right: 1px solid var(--cf-line);

    overflow: hidden;
}

.case-file-page .case-map,
.case-file-page .map-placeholder {
    position: relative;

    width: 100%;

    min-height: 360px;

    margin: 0;
    padding: 0;

    background:        linear-gradient(
            90deg,
            transparent 49.8%,
            rgba(0, 0, 0, .1) 50%,
            transparent 50.2%
        ),
        linear-gradient(
            transparent 49.8%,
            rgba(0, 0, 0, .1) 50%,
            transparent 50.2%
        ),
        #d4d1c7;
}

.case-file-page .map-grid {
    position: absolute;

    inset: 0;

    background-image:        linear-gradient(
            rgba(0, 0, 0, .09) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(0, 0, 0, .09) 1px,
            transparent 1px
        );

    background-size: 40px 40px;
}

.case-file-page .map-crosshair {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 70px;
    height: 70px;

    transform: translate(-50%, -50%);

    border: 1px solid rgba(0, 0, 0, .25);

    border-radius: 50%;
}

.case-file-page .map-marker {
    position: absolute;

    left: 50%;
    top: 50%;

    z-index: 3;

    width: 18px;
    height: 18px;

    transform: translate(-50%, -50%);

    border: 3px solid var(--cf-red);

    border-radius: 50%;
}

.case-file-page .map-marker span {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 4px;
    height: 4px;

    transform: translate(-50%, -50%);

    background: var(--cf-red);

    border-radius: 50%;
}

.case-file-page .map-placeholder {
    display: flex;

    align-items: center;

    justify-content: center;

    flex-direction: column;

    color: var(--cf-muted);

    font-family:        "Courier New",
        Courier,
        monospace;

    font-size: 11px;

    font-weight: bold;

    letter-spacing: 2px;
}

.case-file-page .map-placeholder small {
    margin-top: 8px;

    font-size: 9px;

    font-weight: normal;

    letter-spacing: 1px;
}

.case-file-page .location-details {
    margin: 0;

    padding: 25px;
}

.case-file-page .location-address {
    margin: 0 0 40px;

    color: var(--cf-ink);

    font-family:        "Courier New",
        Courier,
        monospace;

    font-size: 18px;

    line-height: 1.5;
}

.case-file-page .coordinates {
    margin: 0;

    padding: 15px 0 0;

    border-top: 1px solid var(--cf-light-line);

    color: var(--cf-muted);

    font-family:        "Courier New",
        Courier,
        monospace;

    font-size: 9px;

    letter-spacing: 1px;
}

.case-file-page .coordinates strong {
    display: block;

    margin-top: 7px;

    color: var(--cf-ink);

    font-size: 13px;
}


/* ==========================================================
   WITNESS STATEMENT
   ========================================================== */

.case-file-page .statement-document {
    width: 100%;

    margin: 18px 0 0;
    padding: 0;

    border: 1px solid var(--cf-line);

    background:        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 29px,
            rgba(40, 40, 40, .05) 30px
        );
}

.case-file-page .statement-header,
.case-file-page .statement-footer {
    display: flex;

    justify-content: space-between;

    gap: 15px;

    margin: 0;

    padding: 10px 15px;

    background: rgba(0, 0, 0, .04);

    font-family:        "Courier New",
        Courier,
        monospace;

    font-size: 9px;

    font-weight: bold;

    letter-spacing: 1px;
}

.case-file-page .statement-header {
    border-bottom: 1px solid var(--cf-line);
}

.case-file-page .statement-footer {
    justify-content: center;

    border-top: 1px solid var(--cf-line);
}

.case-file-page .statement-body {
    margin: 0;

    padding: 35px;

    color: var(--cf-ink);

    font-family:        "Courier New",
        Courier,
        monospace;

    font-size: 15px;

    line-height: 2;
}

.case-file-page .statement-body p {
    margin: 0 0 20px;
}


/* ==========================================================
   REPORTER ASSESSMENT
   ========================================================== */

.case-file-page .assessment-grid {
    display: grid;

    grid-template-columns:        repeat(3, minmax(0, 1fr));

    width: 100%;

    margin: 18px 0 0;
    padding: 0;

    border-top: 1px solid var(--cf-line);

    border-left: 1px solid var(--cf-line);
}

.case-file-page .assessment-grid > div {
    margin: 0;

    padding: 18px;

    border-right: 1px solid var(--cf-line);

    border-bottom: 1px solid var(--cf-line);
}

.case-file-page .assessment-grid strong {
    display: block;

    margin: 0;
    padding: 0;

    color: var(--cf-ink);

    font-family:        "Courier New",
        Courier,
        monospace;

    font-size: 14px;
}

```css
/* =========================================================
   CASE EVIDENCE — 2 x 2 GRID
   ========================================================= */


/* ---------------------------------------------------------
   Main Evidence Section
   --------------------------------------------------------- */

.evidence-section {
    width: 100%;
    margin: 0 0 60px;
}


.evidence-intro {
    margin: 0 0 25px;

    font-size: 14px;
    line-height: 1.6;

    opacity: 0.75;
}


/* ---------------------------------------------------------
   MAIN 2 x 2 EVIDENCE CONTAINER
   --------------------------------------------------------- */

.evidence-section .evidence-block {
    margin: 0;
}


/*
 * The four evidence blocks form one 2 x 2 grid.
 */

.evidence-section {
    display: block;
}


/*
 * We need the four blocks themselves arranged
 * in a 2-column / 2-row layout.
 *
 * The existing PHP outputs:
 *
 * VIDEO
 * AUDIO
 * DOCUMENTS
 * PHOTOS
 */

.evidence-section > .evidence-block {
    width: 50%;
}


/*
 * Use a wrapper if available.
 *
 * Since the PHP currently outputs the four blocks
 * directly, this section uses CSS grid on the
 * evidence blocks through a small layout adjustment.
 */


/* ---------------------------------------------------------
   EVIDENCE BLOCK
   --------------------------------------------------------- */

.evidence-block {
    box-sizing: border-box;

    margin: 0;

    padding: 25px;

    border: 1px solid rgba(128, 128, 128, 0.35);

    background: rgba(128, 128, 128, 0.04);
}


/*
 * Block heading
 */

.evidence-block-heading {
    display: flex;
    align-items: center;

    width: 100%;

    margin: 0 0 20px;
    padding: 0 0 12px;

    border-bottom: 2px solid currentColor;

    font-size: 15px;
    font-weight: 700;

    letter-spacing: 0.12em;
    text-transform: uppercase;
}


/* ---------------------------------------------------------
   Evidence Cards Within Each Block
   --------------------------------------------------------- */

.evidence-grid {
    display: grid;

    grid-template-columns:        repeat(2, minmax(0, 1fr));

    gap: 15px;
}


/* ---------------------------------------------------------
   Evidence Item
   --------------------------------------------------------- */

.evidence-item {
    position: relative;

    min-width: 0;
}


.evidence-item-trigger {
    display: block;

    width: 100%;

    padding: 0;

    border: 0;

    background: transparent;

    color: inherit;

    font: inherit;

    text-align: left;

    cursor: pointer;
}


.evidence-item-trigger:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 4px;
}


/* ---------------------------------------------------------
   Evidence Preview
   --------------------------------------------------------- */

.evidence-preview {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 150px;

    padding: 15px;

    box-sizing: border-box;

    border: 1px solid rgba(128, 128, 128, 0.3);

    background: rgba(128, 128, 128, 0.06);

    text-align: center;

    transition:        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.evidence-item-trigger:hover
.evidence-preview {
    transform: translateY(-2px);

    border-color: currentColor;

    box-shadow:        0 6px 15px rgba(0, 0, 0, 0.12);
}


/* ---------------------------------------------------------
   Evidence Type Icon
   --------------------------------------------------------- */

.evidence-preview-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 55px;
    height: 55px;

    margin: 0 auto 12px;

    border: 2px solid currentColor;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 0.08em;

    text-align: center;
}


/* ---------------------------------------------------------
   Preview Information
   --------------------------------------------------------- */

.evidence-preview-info {
    width: 100%;
}


.evidence-preview-info h3 {
    margin: 0 0 8px;

    font-size: 14px;
    line-height: 1.35;

    font-weight: 700;

    overflow-wrap: anywhere;
}


.evidence-view-label {
    display: inline-block;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 0.1em;

    text-transform: uppercase;

    opacity: 0.65;
}


/* =========================================================
   PHOTO PREVIEW
   ========================================================= */

.evidence-preview-photo {
    display: block;

    min-height: 180px;

    padding: 0;

    overflow: hidden;

    background: #111;
}


.evidence-preview-photo > img {
    display: block;

    width: 100%;
    height: 180px;

    object-fit: cover;

    transition:        transform 0.3s ease;
}


.evidence-item-trigger:hover
.evidence-preview-photo > img {
    transform: scale(1.04);
}


.photo-overlay {
    position: absolute;

    inset: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;

    padding: 15px;

    color: #fff;

    text-align: center;

    background:        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.85),
            rgba(0, 0, 0, 0.05) 75%
        );
}


.photo-overlay h3 {
    margin: 0 0 5px;

    font-size: 14px;
    line-height: 1.3;
}


.photo-count {
    margin-bottom: 5px;

    font-size: 10px;

    opacity: 0.85;
}


/* =========================================================
   POPUPS
   ========================================================= */

.evidence-popup {
    position: fixed;

    inset: 0;

    z-index: 999999;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 30px;

    visibility: hidden;

    opacity: 0;

    pointer-events: none;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}


.evidence-popup.is-open {
    visibility: visible;

    opacity: 1;

    pointer-events: auto;
}


/* ---------------------------------------------------------
   Popup Overlay
   --------------------------------------------------------- */

.evidence-popup-overlay {
    position: absolute;

    inset: 0;

    background:
        rgba(0, 0, 0, 0.88);
}


/* ---------------------------------------------------------
   Popup Content
   --------------------------------------------------------- */

.evidence-popup-content {
    position: relative;

    z-index: 2;

    display: flex;
    flex-direction: column;

    width: min(100%, 1100px);

    max-height: 92vh;

    overflow: hidden;

    padding: 30px;

    box-sizing: border-box;

    background: #fff;

    color: #111;

    box-shadow:        0 25px 80px rgba(0, 0, 0, 0.45);

    transform: translateY(20px);

    transition:        transform 0.25s ease;
}


.evidence-popup.is-open
.evidence-popup-content {
    transform: translateY(0);
}


/* ---------------------------------------------------------
   Close Button
   --------------------------------------------------------- */

.evidence-popup-close {
    position: absolute;

    top: 12px;
    right: 12px;

    z-index: 10;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.75);

    color: #fff;

    font-size: 28px;

    line-height: 1;

    cursor: pointer;

    transition:        background 0.2s ease,
        transform 0.2s ease;
}


.evidence-popup-close:hover {
    background: #000;

    transform: rotate(90deg);
}


/* ---------------------------------------------------------
   Popup Header
   --------------------------------------------------------- */

.evidence-popup-header {
    flex: 0 0 auto;

    padding-right: 50px;

    margin-bottom: 20px;
}


.evidence-popup-category {
    display: block;

    margin-bottom: 6px;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 0.15em;

    text-transform: uppercase;

    opacity: 0.6;
}


.evidence-popup-header h2 {
    margin: 0;

    font-size: 25px;

    line-height: 1.3;
}


/* =========================================================
   VIDEO POPUP
   ========================================================= */

.evidence-popup-media {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;

    min-height: 200px;

    max-height: 60vh;

    margin-bottom: 20px;

    overflow: hidden;

    background: #111;
}


.evidence-popup-media video {
    display: block;

    width: 100%;

    max-height: 60vh;

    object-fit: contain;
}


/* =========================================================
   AUDIO POPUP
   ========================================================= */

.evidence-popup-audio {
    flex-direction: column;

    gap: 25px;

    padding: 40px;
}


.evidence-popup-audio .audio-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 90px;
    height: 90px;

    border: 2px solid #fff;

    color: #fff;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 0.1em;
}


.evidence-popup-audio audio {
    width: min(100%, 700px);
}


/* =========================================================
   DOCUMENT POPUP
   ========================================================= */

.evidence-popup-document-content {
    width: min(100%, 1200px);

    height: 92vh;
}


.evidence-popup-document {
    flex: 1;

    min-height: 500px;

    max-height: none;

    margin-bottom: 20px;
}


.evidence-popup-document iframe {
    display: block;

    width: 100%;
    height: 100%;

    min-height: 500px;

    border: 0;

    background: #fff;
}


/* =========================================================
   POPUP DESCRIPTION
   ========================================================= */

.evidence-popup-description {
    flex: 0 0 auto;

    margin: 0 0 15px;

    font-size: 15px;

    line-height: 1.7;
}


.evidence-popup-description p {
    margin: 0 0 12px;
}


.evidence-popup-description p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   POPUP FILENAME
   ========================================================= */

.evidence-popup-filename {
    flex: 0 0 auto;

    padding-top: 12px;

    border-top:        1px solid rgba(0, 0, 0, 0.12);

    font-size: 11px;

    line-height: 1.5;

    opacity: 0.65;

    overflow-wrap: anywhere;
}


/* =========================================================
   PHOTO GALLERY POPUP
   ========================================================= */

.evidence-popup-photo-content {
    width: min(100%, 1200px);

    background: #111;

    color: #fff;
}


.photo-gallery-viewer {
    position: relative;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;

    height: min(65vh, 700px);

    overflow: hidden;

    background: #000;
}


.photo-gallery-slide {
    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 20px;

    opacity: 0;

    pointer-events: none;

    transition:        opacity 0.2s ease;
}


.photo-gallery-slide.is-active {
    opacity: 1;

    pointer-events: auto;
}


.photo-gallery-slide img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}


/* ---------------------------------------------------------
   Photo Navigation
   --------------------------------------------------------- */

.photo-gallery-prev,
.photo-gallery-next {
    position: absolute;

    top: 50%;

    z-index: 5;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 50px;
    height: 50px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background:        rgba(0, 0, 0, 0.65);

    color: #fff;

    font-size: 25px;

    line-height: 1;

    cursor: pointer;

    transform:        translateY(-50%);

    transition:        background 0.2s ease,
        transform 0.2s ease;
}


.photo-gallery-prev {
    left: 15px;
}


.photo-gallery-next {
    right: 15px;
}


.photo-gallery-prev:hover,
.photo-gallery-next:hover {
    background:        rgba(0, 0, 0, 0.9);

    transform:        translateY(-50%)
        scale(1.05);
}


/* ---------------------------------------------------------
   Photo Counter
   --------------------------------------------------------- */

.photo-gallery-counter {
    position: absolute;

    bottom: 15px;
    left: 50%;

    z-index: 5;

    padding: 7px 12px;

    border-radius: 20px;

    background:        rgba(0, 0, 0, 0.7);

    font-size: 12px;

    font-weight: 600;

    transform:        translateX(-50%);
}


/* =========================================================
   PREVENT PAGE SCROLLING WHEN POPUP IS OPEN
   ========================================================= */

body.evidence-popup-open {
    overflow: hidden;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 800px) {

    /*
     * Change the evidence container to one column
     * on smaller screens.
     */

    .evidence-section > .evidence-block {
        width: 100%;
    }


    .evidence-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 600px) {

    .evidence-block {
        padding: 20px 15px;
    }


    .evidence-grid {
        grid-template-columns: 1fr;
    }


    .evidence-preview {
        min-height: 160px;
    }


    .evidence-preview-photo,
    .evidence-preview-photo > img {
        height: 220px;
    }


    .evidence-popup {
        padding: 0;
    }


    .evidence-popup-content {
        width: 100%;

        height: 100%;

        max-height: 100vh;

        padding: 20px 15px;
    }


    .photo-gallery-viewer {
        height: 60vh;
    }

}


/* ==========================================================
   EVIDENCE
   ========================================================== */

.case-file-page .evidence-intro {
    margin: 15px 0;

    color: var(--cf-muted);

    font-family:        "Courier New",
        Courier,
        monospace;

    font-size: 11px;
}

.case-file-page .evidence-grid {
    display: grid;

    grid-template-columns:        repeat(2, minmax(0, 1fr));

    gap: 20px;

    width: 100%;
}

.case-file-page .evidence-item {
    position: relative;

    margin: 0;
    padding: 0;

    border: 1px solid var(--cf-line);

    background: rgba(255, 255, 255, .12);
}

.case-file-page .evidence-label {
    display: inline-block;

    margin: 0;

    padding: 6px 10px;

    background: var(--cf-ink);

    color: var(--cf-paper);

    font-family:        "Courier New",
        Courier,
        monospace;

    font-size: 10px;

    font-weight: bold;

    letter-spacing: 1.5px;
}

.case-file-page .evidence-content {
    margin: 0;

    padding: 18px;
}

.case-file-page .evidence-image {
    margin: 0 0 15px;

    border: 1px solid var(--cf-light-line);

    background: #c7c4bb;

    overflow: hidden;
}

.case-file-page .evidence-image img {
    display: block;

    width: 100%;

    height: 260px;

    margin: 0;
    padding: 0;

    object-fit: cover;

    filter: grayscale(20%);
}

.case-file-page .evidence-video {
    margin: 0 0 15px;
}

.case-file-page .evidence-video video {
    display: block;

    width: 100%;

    max-width: 100%;

    margin: 0;
}

.case-file-page .evidence-audio {
    margin: 0 0 15px;

    padding: 20px;

    border: 1px solid var(--cf-light-line);
}

.case-file-page .evidence-audio audio {
    display: block;

    width: 100%;
}

.case-file-page .evidence-file {
    display: flex;

    align-items: center;

    gap: 15px;

    margin: 0 0 15px;

    padding: 20px;

    border: 1px solid var(--cf-light-line);
}

.case-file-page .file-symbol {
    font-family:        "Courier New",
        Courier,
        monospace;

    font-size: 20px;

    font-weight: bold;
}

.case-file-page .evidence-information h3 {
    margin: 0 0 8px;

    padding: 0;

    color: var(--cf-ink);

    font-family:        Georgia,
        "Times New Roman",
        serif;

    font-size: 20px;

    line-height: 1.25;
}

.case-file-page .evidence-type,
.case-file-page .evidence-filename {
    margin: 0 0 10px;

    color: var(--cf-muted);

    font-family:        "Courier New",
        Courier,
        monospace;

    font-size: 9px;

    letter-spacing: 1px;
}

.case-file-page .evidence-description {
    margin: 15px 0 0;

    padding: 12px 0 0;

    border-top: 1px solid var(--cf-light-line);

    color: var(--cf-ink);

    font-size: 13px;

    line-height: 1.6;
}
*/

/* ==========================================================
   FUTURE / EMPTY SECTIONS
   ========================================================== */

.case-file-page .empty-section {
    margin: 18px 0 0;

    padding: 35px;

    border: 1px dashed var(--cf-light-line) ;

    text-align: center;
}

.case-file-page .empty-section p {
    max-width: 600px;

    margin: 0 auto 20px;

    color: var(--cf-muted);
}

.case-file-page .empty-stamp {
    display: inline-block;

    margin: 0 0 20px;

    padding: 8px 15px;

    border: 2px solid var(--cf-muted);

    color: var(--cf-muted);

    font-family:        "Courier New",
        Courier,
        monospace;

    font-size: 12px;

    font-weight: bold;

    letter-spacing: 2px;

    transform: rotate(-2deg);
}


/* ==========================================================
   CASE BUTTONS
   ========================================================== */

.case-file-page .case-action-button {
    display: inline-block;

    margin: 0;

    padding: 10px 15px;

    border: 1px solid var(--cf-line);

    background: transparent;

    color: var(--cf-ink);

    font-family:        "Courier New",
        Courier,
        monospace;

    font-size: 10px;

    font-weight: bold;

    letter-spacing: 1px;

    line-height: 1.4;

    cursor: pointer;
}

.case-file-page .case-action-button:hover {
    background: var(--cf-ink);

    color: var(--cf-paper);
}


/* ==========================================================
   CASE FILE FOOTER
   ========================================================== */

.case-file-page .case-file-footer {
    position: relative;
    z-index: 1;

    margin: 65px 0 0;

    padding: 18px 0 0;

    border-top: 2px solid var(--cf-line);
}

.case-file-page .footer-classification {
    display: inline-block;

    margin: 0;

    padding: 5px 10px;

    border: 2px solid var(--cf-red);

    color: var(--cf-red);

    font-family:        "Courier New",
        Courier,
        monospace;

    font-size: 10px;

    font-weight: bold;

    letter-spacing: 1.5px;

    transform: rotate(-1deg);
}

.case-file-page .footer-information {
    display: flex;

    justify-content: space-between;

    gap: 20px;

    margin: 20px 0 0;

    padding: 0;

    color: var(--cf-muted);

    font-family:        "Courier New",
        Courier,
        monospace;

    font-size: 9px;

    letter-spacing: 1px;
}

.case-file-page .footer-actions {
    margin: 25px 0 0;

    text-align: right;
}


/* ==========================================================
   LINKS INSIDE CASE FILE
   ========================================================== */

.case-file-page a {
    color: var(--cf-blue);

    text-decoration: underline;
}

.case-file-page a:hover {
    color: var(--cf-red);
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 800px) {

    .case-file-page {
        padding: 30px 12px 60px;
    }

    .case-file-page .case-file-container {
        padding: 25px 18px;
    }

    .case-file-page .archive-topline {
        flex-direction: column;
    }

    .case-file-page .archive-document {
        text-align: left;
    }

    .case-file-page .case-heading {
        flex-direction: column;

        align-items: flex-start;
    }

    .case-file-page .case-heading-right {
        text-align: left;
    }

    .case-file-page .archive-meta {
        grid-template-columns: 1fr;
    }

    .case-file-page .archive-meta div {
        border-right: none;

        border-bottom: 1px solid var(--cf-light-line);

        padding-bottom: 10px;
    }

    .case-file-page .case-information-grid {
        grid-template-columns: 1fr;
    }

    .case-file-page .field-wide {
        grid-column: span 1;
    }

    .case-file-page .location-document {
        grid-template-columns: 1fr;
    }

    .case-file-page .location-map-wrapper {
        border-right: none;

        border-bottom: 1px solid var(--cf-line);
    }

    .case-file-page .assessment-grid {
        grid-template-columns: 1fr;
    }

    .case-file-page .evidence-grid {
        grid-template-columns: 1fr;
    }

    .case-file-page .footer-information {
        flex-direction: column;

        gap: 8px;
    }

    .case-file-page .statement-body {
        padding: 25px 18px;

        font-size: 13px;
    }
}


/* ==========================================================
   PRINT
   ========================================================== */

@media print {

    .case-file-page {
        background: #fff;

        padding: 0;
    }

    .case-file-page .case-file-container {
        width: 100%;

        border: none;

        box-shadow: none;

        padding: 20px;
    }

    .case-file-page .case-action-button,
    .case-file-page .footer-actions {
        display: none;
    }

    .case-file-page .case-section {
        break-inside: avoid;
    }

    .case-file-page .evidence-item {
        break-inside: avoid;
    }
}





/* ============================================================
   CASE CONTRIBUTORS
   ============================================================ */

.case-contributors-section {
    margin-top: 40px;
}


.contributors-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0,0,0,.25);
}


.contributors-description {
    font-size: 11px;
    letter-spacing: .12em;
    font-weight: 700;
}


.contributors-count {
    font-size: 11px;
    letter-spacing: .1em;
    white-space: nowrap;
}


.contributors-list {
    border-top: 1px solid rgba(0,0,0,.25);
}


/* Individual contributor */

.case-contributor {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 16px 12px;
    border-bottom: 1px solid rgba(0,0,0,.15);
}


.case-contributor:hover {
    background: rgba(0,0,0,.025);
}


/* Clickable identity */

.contributor-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
    text-decoration: none !important;
}


/* Status dot */

.contributor-status {
    width: 9px;
    height: 9px;
    min-width: 9px;
    border-radius: 50%;
    display: inline-block;
}


/* Online */

.contributor-status.is-online {
    background: #4d8b57;
    box-shadow: 0 0 0 3px rgba(77,139,87,.12);
}


/* Offline */

.contributor-status.is-offline {
    background: #9b9b9b;
}


/* Name */

.contributor-name {
    display: block;
    font-size: 15px;
    line-height: 1.3;
}


/* Username */

.contributor-username {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    opacity: .55;
}


/* Contribution tags */

.contributor-contributions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}


.contribution-tag {
    display: inline-block;
    padding: 5px 8px;
    border: 1px solid rgba(0,0,0,.25);
    font-size: 9px;
    letter-spacing: .08em;
    line-height: 1;
}


/* Pagination */

.contributors-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
}


.contributors-page-numbers {
    display: flex;
    gap: 5px;
}


.contributors-page-numbers a,
.contributors-page-numbers span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(0,0,0,.25);
    font-size: 11px;
    text-decoration: none;
}


.contributors-page-numbers span.current {
    background: rgba(0,0,0,.08);
    font-weight: 700;
}


.contributors-page-prev,
.contributors-page-next {
    font-size: 10px;
    letter-spacing: .08em;
    text-decoration: none;
}


/* Empty state */

.contributors-empty { 
    padding: 30px;
    border: 1px dashed rgba(0,0,0,.3);
    text-align: center;
    font-size: 11px;
    letter-spacing: .1em;
}


/* Mobile */

@media (max-width: 700px) {

    .contributors-header {
        align-items: flex-start;
        flex-direction: column;
    }


    .case-contributor {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }


    .contributor-main {
        min-width: 0;
    }


    .contributor-contributions {
        justify-content: flex-start;
        padding-left: 21px;
    }


    .contributors-pagination {
        gap: 10px;
    }

}


/* ============================================================
   GOVERNMENT INVESTIGATIVE MAP
   ============================================================ */

.case-map-wrapper {
    position: relative;
    width: 100%;
    height: 420px;
    min-height: 320px;
    overflow: hidden;

    background: #d7d3c5;

    border: 1px solid #777468;

    box-shadow:        inset 0 0 0 1px rgba(255,255,255,.35),
        inset 0 0 35px rgba(50,45,35,.18);
}


/* ============================================================
   REAL MAP
   ============================================================ */

.case-map {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    background: #d7d3c5;
}


.case-map .leaflet-container {
    width: 100%;
    height: 100%;

    font-family: Arial, Helvetica, sans-serif;

    background: #d7d3c5;
}


/* Desaturate / age map */

.case-map .leaflet-tile-pane {
    filter:        grayscale(100%)
        sepia(18%)
        contrast(88%)
        brightness(94%);
}


/* ============================================================
   FIXED ARCHIVE OVERLAY
   ============================================================ */

.map-archive-overlay {
    position: absolute;
    inset: 0;

    z-index: 400;

    pointer-events: none;
}


/* ============================================================
   GRID
   ============================================================ */

.map-grid-overlay {
    position: absolute;
    inset: 0;

    z-index: 1;

    background-image:        linear-gradient(
            rgba(70,65,55,.14) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(70,65,55,.14) 1px,
            transparent 1px
        );

    background-size: 50px 50px;
}


/* ============================================================
   BULLSEYE
   ============================================================ */

.map-crosshair {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 72px;
    height: 72px;

    transform: translate(-50%, -50%);

    z-index: 5;
}


/* Horizontal */

.crosshair-horizontal {
    position: absolute;

    left: -42px;
    right: -42px;

    top: 50%;

    height: 1px;

    background: rgba(125,25,25,.85);
}


/* Vertical */

.crosshair-vertical {
    position: absolute;

    top: -42px;
    bottom: -42px;

    left: 50%;

    width: 1px;

    background: rgba(125,25,25,.85);
}


/* Outer circle */

.crosshair-circle {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 42px;
    height: 42px;

    transform: translate(-50%, -50%);

    border: 2px solid rgba(125,25,25,.90);

    border-radius: 50%;
}


/* Inner circle */

.map-crosshair::before {
    content: "";

    position: absolute;

    left: 50%;
    top: 50%;

    width: 18px;
    height: 18px;

    transform: translate(-50%, -50%);

    border: 1px solid rgba(125,25,25,.85);

    border-radius: 50%;
}


/* Center dot */

.map-crosshair::after {
    content: "";

    position: absolute;

    left: 50%;
    top: 50%;

    width: 6px;
    height: 6px;

    transform: translate(-50%, -50%);

    background: #7d1919;

    border-radius: 50%;
}


/* ============================================================
   INCIDENT LABEL
   ============================================================ */

.map-location-label {
    position: absolute;

    left: calc(50% + 38px);
    top: calc(50% + 28px);

    z-index: 5;

    padding: 5px 8px;

    background: rgba(225,221,207,.92);

    border-left: 2px solid #7d1919;

    font-family:        "Courier New",
        Courier,
        monospace;

    font-size: 9px;

    font-weight: bold;

    letter-spacing: 1.5px;

    color: #4d4a42;

    box-shadow:        1px 1px 3px rgba(0,0,0,.12);
}


/* ============================================================
   LEAFLET CONTROLS
   ============================================================ */

.case-map .leaflet-control-zoom {
    border: 1px solid #777468 !important;

    box-shadow: none;
}


.case-map .leaflet-control-zoom a {
    background: #dedacd;

    color: #403e37;
}


/* ============================================================
   LOCATION WRAPPER
   ============================================================ */

.location-map-wrapper {
    width: 100%;
    overflow: hidden;
}







.case-map .leaflet-tooltip.incident-location-label {
    background: #e1ddcf !important;
    color: #4d4a42 !important;

    border: 1px solid #777468 !important;
    border-left: 3px solid #7d1919 !important;
    border-radius: 0 !important;

    padding: 5px 8px !important;

    font-family: "Courier New", Courier, monospace !important;
    font-size: 9px !important;
    font-weight: bold !important;
    line-height: 1.2 !important;
    letter-spacing: 1.5px !important;

    white-space: nowrap !important;

    box-shadow: 1px 1px 3px rgba(0,0,0,.15) !important;
}


/* Remove the little Leaflet tooltip arrow */

.case-map .leaflet-tooltip.incident-location-label::before {
    display: none !important;
}

/* ============================================================
   CASE FOLLOW BUTTON
   ============================================================ */

.case-follow-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin-top: 14px;
    padding: 9px 13px;

    border: 1px solid rgba(0,0,0,.35);
    background: transparent;

    color: inherit;

    font-family: inherit;
    font-size: 10px;
    font-weight: 700;

    letter-spacing: .08em;
    text-decoration: none;

    cursor: pointer;

    transition:        background .2s ease,
        color .2s ease,
        border-color .2s ease;
}


.case-follow-button:hover {
    background: rgba(0,0,0,.06);
}


.case-follow-button.is-following {
    background: rgba(70,110,70,.08);
    border-color: rgba(70,110,70,.45);
}


.case-follow-button.is-following:hover {
    background: rgba(70,110,70,.14);
}


.follow-icon {
    font-size: 14px;
    line-height: 1;
}


.follow-label {
    line-height: 1;
}


.case-follow-button.is-processing {
    opacity: .55;
    pointer-events: none;
}


@media (max-width: 700px) {

    .case-follow-button {
        width: 100%;
        margin-top: 12px;
    }

}

.case-intro {
    margin: 15px 0;
    color: var(--cf-muted);
    font-family: "Courier New", Courier, monospace;
    font-size: 14px;
}

/* ============================================================
   BUDDYPRESS CASES PROFILE
   ============================================================ */

.tue-profile-cases {
    width: 100%;
}

.tue-profile-cases-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,.2);
}

.tue-profile-cases-header h2 {
    margin: 0 0 8px;
}

.tue-profile-cases-header p {
    margin: 0;
    opacity: .7;
}


.tue-profile-case {
    display: flex;
    justify-content: space-between;
    gap: 25px;

    padding: 22px 0;

    border-bottom: 1px solid rgba(0,0,0,.15);
}


.tue-profile-case-number {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    opacity: .65;
    margin-bottom: 7px;
}


.tue-profile-case-title {
    margin: 0 0 12px;
}


.tue-profile-case-title a {
    text-decoration: none;
}


.tue-profile-case-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;

    font-size: 11px;
    opacity: .7;
}


.tue-profile-case-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}


.tue-case-view-button,
.tue-case-edit-button {
    display: inline-block;

    padding: 9px 13px;

    border: 1px solid rgba(0,0,0,.3);

    font-size: 10px;
    font-weight: 700;
    letter-spacing: .07em;

    text-decoration: none;
}


.tue-case-edit-button {
    background: rgba(70,110,70,.08);
    border-color: rgba(70,110,70,.4);
}


.tue-case-view-button:hover,
.tue-case-edit-button:hover {
    opacity: .75;
}


.tue-no-cases {
    padding: 35px 0;
}


.tue-case-pagination {
    margin-top: 30px;
}


.tue-case-pagination ul {
    display: flex;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}


.tue-case-pagination a,
.tue-case-pagination span {
    display: block;
    padding: 7px 10px;
    border: 1px solid rgba(0,0,0,.2);
}


/* ============================================================
   EDIT CASE
   ============================================================ */

.tue-edit-case-page {
    width: 100%;
}


.tue-edit-case-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 50px 25px;
}


.tue-edit-case-header {
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,.2);
}


.tue-edit-case-header h1 {
    margin: 5px 0 10px;
}


.tue-edit-case-header p {
    opacity: .7;
}


.tue-edit-case-error {
    padding: 20px;
    border: 1px solid rgba(150,0,0,.3);
    background: rgba(150,0,0,.04);
}


@media (max-width: 700px) {

    .tue-profile-case {
        display: block;
    }

    .tue-profile-case-actions {
        margin-top: 18px;
    }

}

/* =====================================================
                     POPUP form container
     =====================================================*/

    .case-contribution-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
}

.case-contribution-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-contribution-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
}

.case-contribution-modal-content {
    position: relative;
    z-index: 2;

    width: min(700px, 90%);
    max-height: 90vh;
    overflow-y: auto;

    background: #fff;
    padding: 30px;

    border-radius: 4px;

    box-sizing: border-box;
}

.case-contribution-modal-close {
    position: absolute;

    top: 10px;
    right: 10px;

    z-index: 10;

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;
    background: transparent;

    font-size: 30px;
    line-height: 1;

    cursor: pointer;

    pointer-events: auto;
}

/*Hide the automatic fields
.acf-field[data-name="contribution_case"],
.acf-field[data-name="contribution_type"] {
    display: none !important;
}

????
.case-contribution-form-wrapper {
    display: none;
}

.case-contribution-form-wrapper.is-active {
    display: block;
}
*/


/* =====================================================
   THE TRUTH UNEXPLAINED
   GOVERNMENT CASE FILE PAGINATION
   ===================================================== */

.case-pagination {
    margin: 28px 0 10px;
    padding: 14px 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.45);
    border-bottom: 1px solid rgba(0, 0, 0, 0.45);
    font-family: "Courier New", Courier, monospace;
    position: relative;
}

/* FILE LABEL */

.case-pagination::before {
    content: "CASE FILE // DOCUMENT NAVIGATION - CLICK NEXT TO SEE MORE";
    display: block;
    margin-bottom: 10px;
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 700;
    opacity: 0.65;
}

/* PAGINATION LIST */

.case-pagination ul.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ALL PAGE BUTTONS */

.case-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 30px;
    padding: 0 9px;
    border: 1px solid rgba(0, 0, 0, 0.5);
    background: transparent;
    color: inherit;
    text-decoration: none;
    font-family: "Courier New", Courier, monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1;
    box-sizing: border-box;
}

/* HOVER */

.case-pagination a.page-numbers:hover {
    background: rgba(0, 0, 0, 0.07);
    text-decoration: none;
}

/* CURRENT PAGE */

.case-pagination .page-numbers.current {
    background: rgba(0, 0, 0, 0.12);
    border: 2px solid rgba(0, 0, 0, 0.65);
    position: relative;
}

/* TYPEWRITTEN "CURRENT" MARK */

.case-pagination .page-numbers.current::after {
    content: "";
    position: absolute;
    left: 3px;
    right: 3px;
    bottom: 3px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.45);
}

/* PREVIOUS / NEXT */

.case-pagination .page-numbers.prev,
.case-pagination .page-numbers.next {
    min-width: auto;
    padding-left: 12px;
    padding-right: 12px;
    letter-spacing: 1.5px;
}

/* ELLIPSIS */

.case-pagination .page-numbers.dots {
    border: none;
    min-width: 20px;
    padding: 0;
}

/* =====================================================
   ARCHIVAL / FILE FOOTER
   ===================================================== */

.case-pagination::after {
    content: "PAGE CONTROL // AUTHORIZED DOCUMENT COPY";
    display: block;
    margin-top: 10px;
    text-align: right;
    font-size: 8px;
    letter-spacing: 1.5px;
    opacity: 0.45;
}