* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--background);
    color: var(--text);
}

body a, body p {
    font-size: 17px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Special Elite", system-ui;
    font-weight: 400;
    font-style: normal;
}

/* ---------- ROOT COLORS ---------- */
:root, [data-theme="dark"] {
    --background: #0B0B0F;
    --surface: #14141A;
    --surface-light: #1C1C24;

    --primary: #8E1616;
    --primary-light: #D84040;

    --gold: #C9A96A;

    --text: #EEEEEE;
    --text-muted: rgba(238, 238, 238, 0.72);

    --border: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(216, 64, 64, 0.35);

    --shadow: rgba(0, 0, 0, 0.45);
}

[data-theme="light"] {
    --background: #EEEEEE;
    --surface: #F7F7F7;
    --surface-light: #FFFFFF;

    --primary: #D84040;
    --primary-light: #8E1616;

    --gold: #B48C28;

    --text: #1D1616;
    --text-muted: rgba(29, 22, 22, 0.72);

    --border: rgba(29, 22, 22, 0.12);
    --border-accent: rgba(142, 22, 22, 0.35);

    --shadow: rgba(29, 22, 22, 0.18);
}

/* ---------- BACKGROUND GRID ---------- */
.background {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(140px);
    opacity: .18;
}

.glow-left {
    top: -150px;
    left: -150px;
    background: var(--primary);
}

.glow-right {
    bottom: -150px;
    right: -150px;
    background: var(--primary-light);
}

/* ---------- NAVIGATION ---------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 75px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    background: var(--surface);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    box-shadow:
        0 8px 30px var(--shadow),
        inset 0 -1px 0 rgba(255,255,255,.03);
}

.navbar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(216,64,64,.55),
        transparent
    );
}

.navbar-container {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.home-link {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    letter-spacing: .08rem;
    transition: .3s;
}

.navbar-menu {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-left: 2rem;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navbar-links a {
    position: relative;
    color: var(--text-muted);
    text-decoration: none;
    padding: 1.55rem 0;
    transition: .3s;
}

.navbar-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 10px;
    width: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        var(--primary-light),
        var(--gold)
    );
    transition: .35s;
}

.navbar-links a:hover {
    color: var(--text);
}

.navbar-links a:hover::after,
.navbar-links a.active::after {
    width: 100%;
}

.navbar-links a.active {
    color: var(--text);
}

.navbar-end, .navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar-end span {
    color: var(--text-muted);
}

/* buttons */
.btn-login, .btn-logout, .btn-theme {
    padding: .6rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--border-accent);
    background: var(--surface-light);
    color: var(--text);
    text-decoration: none;
    transition: .3s;
    cursor: pointer;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-size: 16px;
}

.btn-login:hover, .btn-logout:hover, .btn-theme:hover {
    background: var(--surface);
    border-color: var(--primary-light);
    box-shadow: 0 0 20px rgba(216,64,64,.2);
}

.btn-theme {
    display: flex;
    align-items: center;
}

.theme-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.8rem;
    cursor: pointer;
    transition: .3s;
}

.hamburger:hover {
    color: var(--gold);
}

/* ---------- LOGIN & REGISTER ---------- */
.auth-container {
    position: relative;
    min-height: calc(100vh - 70px);
    width: 100%;
    padding: 4rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 15% 25%,
            rgba(142, 22, 22, 0.15) 0%,
            transparent 34%
        ),
        radial-gradient(
            circle at 85% 75%,
            rgba(200, 162, 90, 0.08) 0%,
            transparent 32%
        ),
        var(--background);
}

/* grid effect used on the psychology pages */
.auth-container::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(
            var(--surface) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            var(--surface) 1px,
            transparent 1px
        );
    background-size: 44px 44px;
    mask-image: linear-gradient(
        to bottom,
        var(--shadow),
        transparent
    );
    z-index: 0;
}

/* decorative glow */
.auth-container::after {
    content: "";
    position: absolute;
    top: -140px;
    right: -120px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.09;
    filter: blur(110px);
    pointer-events: none;
    z-index: 0;
}

/* main auth card */
.auth-page {
    position: relative;
    z-index: 1;
    width: min(100%, 1300px);
    min-height: 590px;
    display: grid;
    grid-template-columns: minmax(300px, 0.9fr) minmax(360px, 1.1fr);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 26px;
    box-shadow:
        0 28px 70px var(--shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

/* gold accent line */
.auth-page::before {
    content: "";
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 1px;
    z-index: 4;
    background: linear-gradient(
        90deg,
        transparent,
        var(--gold),
        transparent
    );
    opacity: 0.75;
}

/* left image */
.auth-image {
    position: relative;
    min-height: 590px;
    min-width: 600px;
    padding: 2rem;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    background:
        linear-gradient(
            to bottom,
            rgba(10, 7, 7, 0.2),
            rgba(10, 7, 7, 0.629)
        ),
        linear-gradient(
            135deg,
            rgba(142, 22, 22, 0.22),
            transparent 60%
        ),
        url("/images/vault-logo-text.png") center / cover no-repeat;
    border-right: 1px solid var(--border);
}

[data-theme="light"] .auth-image {
    background:
        linear-gradient(
            to bottom,
            rgba(29, 22, 22, 0.18),
            rgba(29, 22, 22, 0.30)
        ),
        linear-gradient(
            135deg,
            rgba(142, 22, 22, 0.24),
            rgba(180, 140, 40, 0.08) 65%,
            transparent
        ),
        url("/images/vault-logo-text.png") center / cover no-repeat;
}

/* texture overlay */
.auth-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            135deg,
            rgba(200, 162, 90, 0.06),
            transparent 45%
        ),
        radial-gradient(
            circle at 20% 20%,
            rgba(142, 22, 22, 0.24),
            transparent 45%
        );
    pointer-events: none;
}

[data-theme="light"] .auth-image::before {
    background:
        linear-gradient(
            135deg,
            rgba(180, 140, 40, 0.06),
            transparent 45%
        ),
        radial-gradient(
            circle at 20% 20%,
            rgba(142, 22, 22, 0.16),
            transparent 50%
        );
}

/* vertical decorative line */
.auth-image::after {
    content: "";
    position: absolute;
    top: 15%;
    right: -1px;
    width: 1px;
    height: 70%;
    background: linear-gradient(
        to bottom,
        transparent,
        var(--primary),
        var(--gold),
        transparent
    );
    opacity: 0.55;
}

/* back link */
.auth-image > a {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: #f1f1f1;
    background: rgba(18, 18, 18, 0.72);
    border: 1px solid rgba(241, 241, 241, 0.15);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition:
        color 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease;
}

.auth-image > a:hover {
    color: var(--gold);
    background: rgba(18, 18, 18, 0.88);
    border-color: var(--gold);
    transform: translateX(-4px);
}

/* auth form */
.auth-form {
    position: relative;
    padding: clamp(3rem, 6vw, 5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        radial-gradient(
            circle at 100% 0,
            rgba(142, 22, 22, 0.15),
            transparent 42%
        ),
        var(--surface);
}

.auth-form::before {
    content: "CRIME VAULT • SECURE ACCESS";
    display: block;
    margin-bottom: 1.15rem;
    color: var(--gold);
    font-size: 0.69rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.auth-form h1 {
    position: relative;
    margin: 0 0 0.75rem;
    color: var(--text);
    font-size: clamp(2.4rem, 5vw, 3.7rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.045em;
}

.auth-form h1::after {
    content: "";
    display: block;
    width: 58px;
    height: 2px;
    margin-top: 1.25rem;
    background: linear-gradient(
        90deg,
        var(--primary),
        var(--gold)
    );
    border-radius: 999px;
}

.auth-form > p {
    margin: 0 0 2.3rem;
    color: var(--text-muted);
    font-size: 0.96rem;
    line-height: 1.7;
}

.auth-form > p a {
    position: relative;
    color: var(--gold);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-form > p a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.25s ease;
}

.auth-form > p a:hover {
    color: var(--gold);
}

.auth-form > p a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* inputs */
.auth-form input {
    width: 100%;
    min-height: 54px;
    margin-bottom: 1rem;
    padding: 0 1.1rem;
    color: var(--text);
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    outline: none;
    font-family: inherit;
    font-size: 0.95rem;
    transition:
        border-color 0.22s ease,
        background 0.22s ease,
        box-shadow 0.22s ease,
        transform 0.22s ease;
}

.auth-form input::placeholder {
    color: var(--text-muted);
}

.auth-form input:hover {
    border-color: var(--border);
}

.auth-form input:focus {
    background: var(--surface-light);
    border-color: var(--gold);
    box-shadow:
        0 0 0 4px rgba(200, 162, 90, 0.1),
        0 8px 20px var(--shadow);
    transform: translateY(-1px);
}

.auth-form input:-webkit-autofill,
.auth-form input:-webkit-autofill:hover,
.auth-form input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text);
    box-shadow: 0 0 0 1000px var(--surface-light) inset;
    transition: background-color 9999s ease-in-out 0s;
}

/* submit button */
.auth-form button[type="submit"] {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    min-height: 54px;
    margin-top: 0.6rem;
    padding: 0.9rem 1.25rem;
    color: #ffffff;
    background: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow:
        0 12px 26px rgba(142, 22, 22, 0.2),
        inset 0 1px 0 var(--border);
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.auth-form button[type="submit"]::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        110deg,
        transparent 20%,
        rgba(255, 255, 255, 0.18) 50%,
        transparent 80%
    );
    transform: translateX(-120%);
    transition: transform 0.55s ease;
}

.auth-form button[type="submit"]:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    box-shadow:
        0 16px 34px rgba(142, 22, 22, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
}

.auth-form button[type="submit"]:hover::before {
    transform: translateX(120%);
}

.auth-form button[type="submit"]:active {
    transform: translateY(0);
}

/* error messages */
.error-messages {
    position: relative;
    margin-bottom: 1.4rem;
    padding: 1rem 1rem 1rem 1.15rem;
    color: var(--text);
    background: rgba(142, 22, 22, 0.11);
    border: 1px solid rgba(179, 28, 28, 0.42);
    border-left: 3px solid var(--primary-light);
    border-radius: 10px;
}

.error-messages::before {
    content: "Unable to continue";
    display: block;
    margin-bottom: 0.45rem;
    color: var(--primary-light);
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.error-messages ul {
    margin: 0;
    padding-left: 1.15rem;
}

.error-messages li {
    margin: 0.25rem 0;
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
    .auth-image > a,
    .auth-form input,
    .auth-form button[type="submit"],
    .auth-form button[type="submit"]::before {
        transition: none;
    }
}

/* ---------- SHARED PAGE LAYOUT ---------- */
.page {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    padding: 4rem 0;
    background: var(--background);
    color: var(--text);
}

.page-container {
    position: relative;
    max-width: 1280px;
    margin: auto;
    padding: 0 1.5rem;
}

/* ---------- SHARED PAGE HEADER ---------- */
.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: .5rem;
}

.page-header p {
    max-width: 900px;
    margin: auto;
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-muted);
}

/* ---------- HOME BLADE ---------- */
.home-layout {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

/* hero */
.home-hero {
    padding: 2.5rem;
    text-align: center;
    background: var(--surface);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-accent);
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow);
    transition: .3s;
}

.home-hero:hover {
    box-shadow: 0 0 40px rgba(142, 22, 22, 0.35);
}

.home-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -.03em;
    margin-bottom: 1rem;
}

.home-hero p {
    max-width: 700px;
    margin: auto;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-muted);
}

/* about */
.home-about {
    padding: 1.75rem;
    background: var(--surface);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-accent);
    border-radius: 20px;
    box-shadow: 0 8px 20px var(--shadow);
    transition: .25s;
}

.home-about:hover {
    box-shadow: 0 10px 25px var(--shadow);
}

.home-about h2 {
    font-size: 1.6rem;
    margin-bottom: .75rem;
}

.home-about p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* explore */
.home-explore h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.home-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.home-card {
    position: relative;
    overflow: hidden;
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    cursor: pointer;
    transition: .3s;
}

.home-card:hover {
    border-color: var(--primary);
}

.home-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--gold), var(--primary));
    opacity: 0;
    transition: .3s;
}

.home-card:hover .home-card-overlay {
    opacity: .2;
}

.home-card-content {
    position: relative;
    z-index: 2;
}

.home-card h3 {
    font-size: 1.125rem;
    margin-bottom: .5rem;
}

.home-card p {
    font-size: .9rem;
    color: var(--text-muted);
}

.home-card-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width .3s;
}

.home-card:hover .home-card-line {
    width: 100%;
}

/* purpose + featured */
.home-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.home-purpose-card, .home-featured-card {
    padding: 1.5rem;
    background: var(--surface);
    border-radius: 20px;
    transition: .3s;
    border: 1px solid var(--border-accent);
}

.home-purpose-card:hover {
    box-shadow: 0 10px 25px var(--shadow);
}

.home-featured-card:hover {
    box-shadow: 0 0 25px rgba(142, 22, 22, 0.35);
}

.home-purpose-card h2, .home-featured-card h2 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.home-purpose-card p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* featured case */
.home-featured-content {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.home-featured-content h3 {
    font-size: 1.125rem;
    font-weight: 700;
}

.home-featured-type {
    font-size: .875rem;
    color: var(--text-muted);
}

.home-featured-description {
    color: var(--text-muted);
    line-height: 1.7;
}

.home-featured-link {
    display: inline-block;
    width: fit-content;
    margin-top: .75rem;
    color: var(--gold);
    text-decoration: none;
    transition: .2s;
}

.home-featured-link:hover {
    color: var(--primary);
}

/* call to action */
.home-cta {
    padding: 2.5rem;
    text-align: center;
    background: linear-gradient(
        90deg,
        rgba(142, 22, 22, 0.15),
        rgba(216, 64, 64, 0.12)
    );
    border: 1px solid var(--border-accent);
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow);
}

.home-cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.home-cta p {
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.home-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.home-button {
    display: inline-block;
    padding: .7rem 1.6rem;
    border: 1px solid var(--primary);
    border-radius: 10px;
    color: var(--text);
    text-decoration: none;
    background: transparent;
    box-shadow: 0 4px 12px var(--shadow);
    transition: .25s;
}

.home-button:hover {
    background: var(--primary);
    color: var(--text);
}

/* ------ INDEX BLADES (Shared by Serial Killers & Unsolved Cases) ------ */
/* filters */
.archive-filters {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border-accent);
    border-radius: 18px;
    box-shadow: 0 6px 18px var(--shadow);
    backdrop-filter: blur(12px);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.filter-group label {
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.filter-group input, .filter-group select {
    width: 100%;
    padding: .8rem .9rem;
    background: var(--background);
    color: var(--text);
    border: 1px solid var(--border-accent);
    border-radius: 10px;
    font: inherit;
    outline: none;
    transition: .25s;
}

.filter-group select option {
    background: var(--background);
    color: var(--text);
}

.filter-group input::placeholder {
    color: var(--text-muted);
}

.filter-group input:focus, .filter-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(142, 22, 22, 0.35);
}

.filter-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.filter-submit, .filter-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: .75rem 1rem;
    border-radius: 10px;
    font: inherit;
    font-size: .9rem;
    text-decoration: none;
    cursor: pointer;
    transition: .25s;
}

.filter-submit {
    background: var(--primary);
    color: var(--text);
    border: 1px solid var(--primary);
}

.filter-submit:hover {
    box-shadow: 0 0 18px rgba(142, 22, 22, 0.35);
    transform: translateY(-1px);
}

.filter-clear {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-accent);
}

.filter-clear:hover {
    color: var(--gold);
    border-color: var(--gold);
}

.archive-empty .filter-clear {
    margin-top: 1rem;
}

.filter-results {
    margin: -1rem 0 1.5rem;
}

.filter-results p {
    font-size: .9rem;
    color: var(--text-muted);
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.archive-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.archive-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--surface);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-accent);
    border-radius: 20px;
    box-shadow: 0 6px 18px var(--shadow);
    transition: .3s;
}

.archive-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(142, 22, 22, 0.35);
}

/* image */
.archive-image-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--background);
}

.archive-image {
    width: 100%;
    height: 430px;
    object-fit: cover;
    object-position: center;
    transition: transform .5s;
}

.archive-card:hover .archive-image {
    transform: scale(1.1);
}

.archive-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        var(--shadow),
        transparent 60%
    );
    opacity: .8;
}

/* content */
.archive-content {
    flex: 1;
    padding: 1.25rem;
}

.archive-content h2 {
    margin-bottom: .6rem;
    font-size: 1.25rem;
    font-weight: 600;
    transition: color .3s;
}

.archive-card:hover .archive-content h2 {
    color: var(--gold);
}

.archive-content p {
    margin-top: .3rem;
    font-size: .9rem;
    color: var(--text-muted);
}

/* accent line */
.archive-accent-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width .3s;
}

.archive-card:hover .archive-accent-line {
    width: 100%;
}

/* empty state */
.archive-empty {
    grid-column: 1 / -1;
    padding: 4rem;
    text-align: center;
}

.archive-empty p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* ------ SHARED SHOW BLADES (Serial Killers & Unsolved Cases) ------ */
.details-back {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--gold);
    text-decoration: none;
    transition: .2s;
}

.details-back:hover {
    text-decoration: underline;
}

/*  main card */
.details-card {
    margin-top: 1rem;
    overflow: hidden;
    background: var(--surface);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-accent);
    border-radius: 20px;
    box-shadow: 0 15px 40px var(--shadow);
    transition: .3s;
}

.details-card:hover {
    box-shadow: 0 0 40px rgba(142, 22, 22, 0.35);
}

/* header */
.details-header {
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border-accent);
}

.details-header h1 {
    margin-bottom: .4rem;
    font-size: 2.5rem;
    font-weight: 700;
}

.details-header p {
    font-size: .95rem;
    color: var(--text-muted);
}

/* main grid */
.details-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    padding: 1.5rem;
}

/* image */
.details-image {
    overflow: hidden;
    border-radius: 12px;
}

.details-image img {
    display: block;
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    transition: transform .5s;
}

/* content */
.details-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* shared content panel */
.content-panel {
    padding: 1.5rem;
    background: var(--surface);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-accent);
    border-radius: 14px;
    box-shadow: 0 4px 12px var(--shadow);
    transition: .25s;
}

.content-panel h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

/* description */
.details-description {
    color: var(--text);
    white-space: pre-line;
}

/* stats */
.details-stats {
    display: grid;
    gap: 1.25rem;
}

/* Three cards (Serial Killer page) */
.details-stats:has(.details-stat:nth-child(3)) {
    grid-template-columns: repeat(3, 1fr);
}

/* Two cards (Unsolved page) */
.details-stats:not(:has(.details-stat:nth-child(3))) {
    grid-template-columns: repeat(2, 1fr);
}

.details-stat {
    padding: 1rem;
    text-align: center;
    border-radius: 12px;
    transition: .25s;
}

.details-stat p {
    margin-bottom: .5rem;
    font-size: .9rem;
    color: var(--text-muted);
}

.details-stat span {
    font-size: 1.1rem;
    font-weight: 600;
}

/* modifiers */
.details-killed {
    background: rgba(142, 22, 22, 0.15);
    border: 1px solid var(--primary);
}

.details-killed-confirmed {
    background: rgba(216, 64, 64, 0.12);
    border: 1px solid var(--primary);
}

.details-wounded {
    background: rgba(201,139,43,.12);
    border: 1px solid var(--gold);
}

.details-suspects {
    background: rgba(201,139,43,.12);
    border: 1px solid var(--gold);
}

/* lists */
.details-lists {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 1.5rem;
    border-top: 1px solid var(--border-accent);
}

.details-list h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.details-list ul {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.details-list-item {
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px var(--shadow);
    transition: .2s;
}

.details-list-item:hover {
    box-shadow: 0 6px 15px var(--shadow);
}

/* list modifiers */
.details-killed-item {
    background: rgba(216, 64, 64, 0.12);
    border: 1px solid var(--primary);
}

.details-wounded-item {
    background: rgba(201,139,43,.15);
    border: 1px solid var(--gold);
}

.details-suspects-item {
    background: rgba(201,139,43,.15);
    border: 1px solid var(--gold);
}

.details-name {
    font-weight: 600;
}

.details-age {
    margin-left: .35rem;
    color: var(--text-muted);
}

.details-empty {
    color: var(--text-muted);
}

/* discussion board */
.discussion-board {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--surface);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-accent);
    border-radius: 20px;
    box-shadow: 0 15px 40px var(--shadow);
}

.discussion-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.discussion-header h2 {
    margin-bottom: .35rem;
    font-size: 1.8rem;
}

.discussion-header p {
    color: var(--text-muted);
}

.discussion-count {
    flex-shrink: 0;
    padding: .5rem .8rem;
    background: rgba(142, 22, 22, 0.15);
    border: 1px solid var(--border-accent);
    border-radius: 999px;
    font-size: .85rem;
    color: var(--text-muted);
}

/* form */
.discussion-form {
    margin-bottom: 2rem;
    padding: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border-accent);
    border-radius: 14px;
}

.discussion-form label {
    display: block;
    margin-bottom: .75rem;
    font-weight: 600;
    font-size: 1.05rem;
}

.discussion-form textarea {
    width: 100%;
    min-height: 130px;
    max-height: 300px;
    padding: 1rem;
    resize: vertical;
    background: var(--background);
    color: var(--text);
    border: 1px solid var(--border-accent);
    border-radius: 10px;
    font-family: inherit;
    font-size: .95rem;
    outline: none;
    transition: .2s;
}

.discussion-form textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(201, 139, 43, .15);
}

.discussion-form textarea::placeholder {
    color: var(--text-muted);
}

.discussion-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: .75rem;
}

.discussion-form-footer span {
    font-size: .8rem;
    color: var(--text-muted);
}

.discussion-form-footer button {
    padding: .7rem 1.2rem;
    background: var(--gold);
    color: #111;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
}

.discussion-form-footer button:hover {
    transform: translateY(-1px);
    opacity: .9;
}

/* login notice */
.discussion-login {
    margin-bottom: 2rem;
    padding: 1rem 1.25rem;
    background: rgba(142, 22, 22, 0.15);
    border: 1px solid var(--border-accent);
    border-radius: 12px;
}

.discussion-login p {
    margin: 0;
    color: var(--text-muted);
}

.discussion-login a {
    color: var(--gold);
    font-weight: 600;
    text-decoration: none;
}

.discussion-login a:hover {
    text-decoration: underline;
}

/* comments */
.discussion-comments {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.discussion-comment {
    padding: .85rem 1rem;
    background: var(--background);
    border: 1px solid var(--border-accent);
    border-radius: 10px;
    box-shadow: 0 2px 8px var(--shadow);
    min-width: 0;
    overflow-wrap: anywhere;
}

.discussion-comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
    margin-bottom: .5rem;
}

.discussion-author {
    display: flex;
    align-items: center;
    gap: .4rem;
    min-width: 0;
}

.discussion-author strong {
    font-size: .9rem;
}

.discussion-comment-header > span {
    flex-shrink: 0;
    font-size: .75rem;
    color: var(--text-muted);
}

.discussion-content {
    margin: 0;
    font-size: .9rem;
    line-height: 1.45;
    color: var(--text);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* comment actions */
.discussion-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.discussion-edit {
    margin-top: .6rem;
}

.discussion-edit summary {
    display: inline-block;
    color: var(--gold);
    font-size: .8rem;
    cursor: pointer;
}

.discussion-edit summary:hover {
    text-decoration: underline;
}

.discussion-edit-form {
    margin-top: .6rem;
}

.discussion-edit-form textarea {
    width: 100%;
    min-height: 90px;
    padding: .8rem;
    resize: vertical;
    background: var(--background);
    color: var(--text);
    border: 1px solid var(--border-accent);
    border-radius: 8px;
    font-family: inherit;
    font-size: .9rem;
    outline: none;
}

.discussion-edit-form textarea:focus {
    border-color: var(--gold);
}

.discussion-edit-form button {
    margin-top: .5rem;
    padding: .5rem .9rem;
    background: var(--gold);
    color: #111;
    border: none;
    border-radius: 7px;
    font-weight: 600;
    cursor: pointer;
}

.discussion-delete {
    padding: .45rem .8rem;
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 7px;
    font-size: .8rem;
    cursor: pointer;
    transition: .2s;
}

.discussion-delete:hover {
    background: rgba(142, 22, 22, 0.15);
}

/* empty state */
.discussion-empty {
    padding: 2rem;
    text-align: center;
    border: 1px dashed var(--border-accent);
    border-radius: 12px;
}

.discussion-empty p {
    margin: 0;
    color: var(--text-muted);
}

/* messages */
.discussion-success, .discussion-errors {
    margin-bottom: 1.25rem;
    padding: 1rem;
    border-radius: 10px;
}

.discussion-success {
    background: rgba(60, 130, 80, .12);
    border: 1px solid rgba(60, 130, 80, .5);
}

.discussion-errors {
    background: rgba(142, 22, 22, 0.15);
    border: 1px solid var(--primary);
}

.discussion-errors ul {
    margin: 0;
    padding-left: 1.2rem;
}


/* discussion pagination */
.discussion-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.discussion-pagination a,
.discussion-pagination .pagination-disabled {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 115px;
    padding: .7rem 1rem;
    border: 1px solid var(--border-accent);
    border-radius: 10px;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    transition: .2s;
}

.discussion-pagination a {
    background: var(--surface-light);
    color: var(--text);
}

.discussion-pagination a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.discussion-pagination a:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.discussion-pagination .pagination-current {
    padding: .7rem 1rem;
    color: var(--gold);
    font-size: .85rem;
    font-weight: 600;
    white-space: nowrap;
}

.discussion-pagination .pagination-disabled {
    background: var(--background);
    color: var(--text-muted);
    opacity: .45;
    cursor: not-allowed;
}

/* ---------- ADMIN DISCUSSION MODERATION ---------- */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border-accent);
    border-radius: 20px;
    box-shadow: 0 15px 40px var(--shadow);
}

.admin-header h1 {
    margin-bottom: .4rem;
    font-size: 2rem;
}

.admin-header p {
    color: var(--text-muted);
}

.admin-discussion-count {
    flex-shrink: 0;
    padding: .5rem .8rem;
    background: rgba(142, 22, 22, 0.15);
    border: 1px solid var(--border-accent);
    border-radius: 999px;
    font-size: .85rem;
    color: var(--text-muted);
}

.admin-discussions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-discussion-card {
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--border-accent);
    border-radius: 14px;
    box-shadow: 0 4px 12px var(--shadow);
    min-width: 0;
}

.admin-discussion-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: .75rem;
}

.admin-discussion-top > div {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.admin-discussion-date {
    flex-shrink: 0;
    font-size: .8rem;
    color: var(--text-muted);
}

.admin-discussion-content {
    margin: 0;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.admin-discussion-info {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    padding-top: .75rem;
    border-top: 1px solid var(--border-accent);
}

.admin-discussion-info div {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.admin-discussion-info span {
    font-size: .75rem;
    color: var(--text-muted);
}

.admin-discussion-info strong {
    font-size: .9rem;
}

.admin-discussion-actions {
    display: flex;
    justify-content: flex-end;

    margin-top: .75rem;
}

/* ---------- RESOURCES BLADE ---------- */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 2rem;
}

.resources-section {
    background: var(--surface);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-accent);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px var(--shadow);
    transition: .3s;
    padding: 2rem;
}

.resources-section-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-accent);
}

.resources-section-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.resources-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.resources-card {
    padding: 1rem;
    border-radius: 14px;
    background: var(--surface-light);
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px var(--shadow);
    transition: .25s;
}

.resources-card a {
    display: inline-block;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gold);
    text-decoration: none;
    transition: .2s;
}

.resources-card a:hover {
    text-decoration: underline;
}

.resources-card p {
    margin-top: .75rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ---------- VICTIMS BLADE ---------- */
.victims-card {
    margin-top: 1rem;
    padding: 2rem;
    text-align: center;
    background: var(--surface);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-accent);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px var(--shadow);
    transition: .3s;
}

.victims-card:hover {
    box-shadow: 0 0 40px rgba(142, 22, 22, 0.35);
}

.victims-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.victims-text h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: .5rem;
}

.victims-text p {
    max-width: 420px;
    margin: auto;
    color: var(--text-muted);
    line-height: 1.7;
}

.victims-footer {
    max-width: 320px;
    margin: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-accent);
}

.victims-footer p {
    font-size: .75rem;
    color: var(--text-muted);
}

/* victims page */
.page-header {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 4rem;
}

.page-header h1 {
    font-size: 3rem;
    color: var(--text);
    margin-bottom: 1rem;
}

.page-header p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1.05rem;
}

.page-section {
    margin-bottom: 5rem;
}

.section-tag {
    display: inline-block;
    padding: .45rem 1rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: var(--surface-light);
    border: 1px solid var(--border-accent);
    color: var(--primary-light);
    font-size: .8rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.page-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 45px var(--shadow);
}

.page-card h2 {
    color: var(--text);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.page-card > p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* info grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.info-card {
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: .3s;
}

.info-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-accent);
}

.info-card h3 {
    color: var(--primary-light);
    margin-bottom: .75rem;
}

.info-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* victim grid */
.victim-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    width: 100%;
}

.victim-card {
    display: flex;
    gap: 1.5rem;
    background: var(--surface);
    border: 1px solid (--border);
    border-radius: 18px;
    padding: 1.5rem;
    transition: .3s;
}

.victim-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-accent);
}

.victim-image-placeholder {
    width: 130px;
    height: 170px;
    flex-shrink: 0;
    border-radius: 14px;
    border: 1px dashed var(--border);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    background: var(--surface-light);
    text-align: center;
    font-size: .9rem;
}

.victim-info {
    flex: 1;
}

.victim-info h3 {
    color: var(--text);
    margin-bottom: 1rem;
}

.victim-info ul {
    list-style: none;
    margin-bottom: 1rem;
}

.victim-info li {
    color: var(--text-muted);
    margin-bottom: .45rem;
}

.victim-info strong {
    color: var(--primary-light);
}

.victim-info p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* ---------- FACTS ---------- */
.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(230px,1fr));
    gap: 1.5rem;
}

.fact-card {
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.8rem;
    transition: .3s;
}

.fact-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-accent);
}

.fact-card h3 {
    color: var(--primary-light);
    margin-bottom: .75rem;
}

.fact-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* ---------- QUOTE ---------- */
.quote-card {
    background: linear-gradient(
        135deg,
        rgba(142,22,22,.25),
        rgba(29,22,22,.8)
    );
    border: 1px solid rgba(216,64,64,.2);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
}

.quote-card blockquote {
    font-size: 1.6rem;
    line-height: 1.7;
    color: var(--text);
    font-style: italic;
}

/* ---------- VICTIM PAGE ---------- */
.victim-slide {
    display: none;
    animation: fade 0.8s ease;
}

.victim-slide.active {
    display: block;
}

/* header */
.victim-case-header {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.victim-case-header h2 {
    color: var(--text);
    font-size: 2.2rem;
    margin: 0.5rem 0;
}

.victim-case-header p {
    color: var(--text-muted);
}

.victim-case-title {
    flex: 1;
}

.victim-case-title .section-tag {
    margin-bottom: 0.8rem;
}

.victim-case-title h2 {
    margin-bottom: 0.55rem;
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--text);
}

.victim-case-title p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
}

.victim-case-title strong {
    color: var(--primary-light);
    font-weight: 600;
}

/* slider controls */
.victim-slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    flex-shrink: 0;
    padding-top: 1.5rem;
}

.victim-slider-button {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface);
    color: var(--text);
    font-size: 1.2rem;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.victim-slider-button:hover {
    transform: translateY(-2px);
    background: var(--surface-light);
    border-color: var(--border-accent);
    color: var(--primary-light);
}

.victim-slider-button:active {
    transform: translateY(0);
}

.victim-slide-count {
    min-width: 52px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* remembrance summary */
.victim-remembrance-summary {
    margin: 1.5rem 0 2rem;
    padding: 1.25rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.victim-remembrance-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
}

.victim-remembrance-stats span {
    font-size: 0.9rem;
    opacity: 0.8;
}

.victim-remembrance-stats strong {
    margin-right: 0.25rem;
    font-size: 1.1rem;
}

.victim-remembrance-summary p {
    margin: 0;
    line-height: 1.6;
    opacity: 0.75;
}

/* profile card */
.victim-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    overflow: hidden;
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

.victim-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-accent);
    background: var(--surface);
}

/* victime image */
.victim-profile-image {
    width: 100%;
    min-height: 220px;
    align-self: start;
}

.victim-profile-image img, .victim-image-placeholder {
    width: 100%;
    height: 220px;
    border-radius: 10px;
}

.victim-profile-image img {
    display: block;
    object-fit: cover;
    object-position: center;
}

.victim-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.55;
}

/* profile content */
.victim-info {
    min-width: 0;
}

.victim-profile-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.victim-profile-header h3 {
    margin: 0;
    font-size: 1.45rem;
    line-height: 1.2;
}

.victim-profile-label {
    display: inline-block;
    margin-bottom: 0.4rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.65;
}

.victim-age {
    flex-shrink: 0;
    padding: 0.35rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0.8;
}

/* basic details */
.victim-profile-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem 1.25rem;
    margin-bottom: 1.25rem;
}

.victim-profile-details p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.5;
    opacity: 0.8;
}

.victim-profile-details strong {
    opacity: 0.85;
}

/* profile sections */
.victim-profile-section {
    margin-top: 1.15rem;
}

.victim-profile-section h4, .victim-case-connection h4 {
    margin: 0 0 0.45rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    opacity: 0.65;
}

.victim-profile-section p, .victim-case-connection p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.65;
    opacity: 0.82;
}

.victim-interest-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.victim-interest-list span {
    padding: 0.3rem 0.55rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.75rem;
    opacity: 0.75;
}

.victim-case-connection {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.victim-case-connection h4 {
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.7;
}

.victim-case-date {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.78rem;
    opacity: 0.55;
}

.victim-legacy {
    padding: 0.9rem 1rem;
    border-left: 2px solid currentColor;
    border-radius: 0 8px 8px 0;
    background: var(--surface);
}

.victim-card-survivor {
    border-left: 3px solid currentColor;
}

.victim-card-survivor .victim-profile-label {
    opacity: 0.9;
}

/* slide animation */
@keyframes fade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- FAVOURITES ---------- */
.favourites-section {
    margin-bottom: 4rem;
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 10px 30px var(--shadow);
    position: relative;
    overflow: hidden;
}

/* subtle glow in section */
.favourites-section::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(142, 22, 22, 0.15);
    filter: blur(70px);
    opacity: 0.35;
    pointer-events: none;
}

/* section header */
.favourites-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.favourites-section-header h2 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--text);
    position: relative;
    padding-left: 1rem;
}

/* accent line beside heading */
.favourites-section-header h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 70%;
    transform: translateY(-50%);
    border-radius: 999px;
    background: var(--primary);
}

.favourites-section-header span {
    padding: 0.45rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(142, 22, 22, 0.15);
    color: var(--primary-light);
    min-width: fit-content;
    white-space: nowrap;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* favourite button */
.favourite-form {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
}

.favourite-button {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface-light);
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 14px var(--shadow);
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.favourite-button:hover {
    transform: scale(1.1);
    background: rgba(142, 22, 22, 0.15);
    border-color: var(--primary);
    color: var(--primary-light);
    box-shadow: 0 0 15px rgba(142, 22, 22, 0.15);
}

.favourite-button.active {
    background: rgba(142, 22, 22, 0.15);
    border-color: var(--primary);
    color: var(--primary-light);
}

/* empty state */
.archive-empty {
    max-width: 600px;
    margin: 3rem auto;
    padding: 3rem 2rem;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 10px 30px var(--shadow);
}

.archive-empty h2 {
    margin-bottom: 0.7rem;
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--text);
}

.archive-empty p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ---------- EXPLORE PAGE ---------- */
.explore-page [hidden] {
    display: none !important;
}

.explore-page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.explore-background {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.explore-container {
    position: relative;
    z-index: 1;
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
    padding: 70px 0 100px;
}

/* hero */
.explore-hero {
    text-align: center;
    margin-bottom: 40px;
}

.explore-hero-content {
    max-width: 720px;
    margin: 0 auto;
}

.explore-hero-content h1 {
    font-size: 3rem;
}

.explore-hero h1 {
    margin: 12px 0 16px;
    line-height: 1;
}

.explore-hero .hero-description {
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
    color: var(--text-muted);
}


/* ---------- VIEW SWITCHER ---------- */
.explore-view-switcher {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
}

.explore-view-btn {
    min-width: 130px;
    padding: 11px 22px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-muted);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.explore-view-btn:hover {
    color: var(--text);
    border-color: var(--border-accent);
    transform: translateY(-1px);
}

.explore-view-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}


/* ---------- EXPLORE FILTERS ---------- */
.explore-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 850px;
    margin: 0 auto 60px;
}

.explore-filter-btn, #event-type-filter {
    min-height: 42px;
    padding: 9px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 0.9rem;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

.explore-filter-btn {
    cursor: pointer;
}

.explore-filter-btn:hover,
#event-type-filter:hover {
    border-color: var(--primary);
}

.explore-filter-btn.active {
    border-color: var(--primary);
    background: var(--primary);
    color: #ffffff;
}

#event-type-filter {
    cursor: pointer;
    outline: none;
}

#event-type-filter:focus {
    border-color: var(--primary);
}

/* ---------- TIMELINE ---------- */
.timeline-view {
    max-width: 850px;
    margin: 0 auto;
}

.timeline {
    position: relative;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 110px;
    width: 2px;
    background: var(--border);
}

/* year */
.timeline-year {
    position: relative;
    display: flex;
    align-items: center;
    margin: 55px 0 28px;
    min-height: 40px;
}

.timeline-year:first-child {
    margin-top: 0;
}

.timeline-year span {
    width: 82px;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #ffffff;
}

/* event */
.timeline-event {
    position: relative;
    display: grid;
    grid-template-columns: 82px 1fr;
    column-gap: 58px;
    margin-bottom: 24px;
}

.timeline-marker {
    left: 8px;
    top: 24px;
}

/* event card */
.timeline-event-card {
    grid-column: 2;
    padding: 22px 24px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    transition:
        border-color 0.2s ease,
        transform 0.2s ease;
}

.timeline-event-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.timeline-event-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.timeline-date {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-light);
}

.timeline-event-type {
    padding: 4px 9px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.timeline-event-card h2 {
    margin: 0 0 7px;
    font-size: 1.25rem;
    line-height: 1.3;
    color: var(--text);
}

.timeline-case-name {
    margin: 0 0 5px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-light);
}

.timeline-location {
    margin: 0 0 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.timeline-description {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--text);
}

.timeline-empty {
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
}

/* no filter results */
.timeline-no-results {
    max-width: 600px;
    margin: 40px auto;
    padding: 32px;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.timeline-no-results h2 {
    margin: 0 0 10px;
    color: var(--text);
    font-size: 1.25rem;
}

.timeline-no-results p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
}

.explore-page .timeline-event > .timeline-marker {
    display: block;
    position: absolute;
    left: 104px;
    top: 18px;
    width: 14px;
    height: 14px;
    min-width: 14px;
    max-width: 14px;
    min-height: 14px;
    max-height: 14px;
    margin: 0;
    padding: 0;
    flex: none;
    background: var(--primary-light);
    border: 3px solid var(--background);
    border-radius: 50%;
    box-sizing: border-box;
    box-shadow: 0 0 0 2px var(--primary-light);
    z-index: 3;
}

/* ---------- LEAFLET MAP STYLING ---------- */
.map-view {
    max-width: 1000px;
    margin: 0 auto;
}

#case-map {
    height: 520px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    overflow: hidden;
}

/* popup container */
#case-map .leaflet-popup-content-wrapper {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border-accent);
    border-radius: 12px;
    box-shadow: 0 8px 24px var(--shadow);
}

/* remove Leaflet's default white popup tip */
#case-map .leaflet-popup-tip {
    background: var(--surface);
    border: 1px solid var(--border);
}

/* popup spacing */
#case-map .leaflet-popup-content {
    margin: 16px 18px;
    min-width: 190px;
    font-family: inherit;
    line-height: 1.5;
}

/* event type */
.case-map-popup .map-popup-type {
    display: inline-block;
    margin-bottom: 8px;
    padding: 3px 8px;
    border: 1px solid var(--border-accent);
    border-radius: 999px;
    color: var(--primary-light);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* event title */
.case-map-popup h3 {
    margin: 0 0 6px;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.3;
}

/* case name */
.case-map-popup strong {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-light);
    font-size: 0.85rem;
}

/* date & location */
.case-map-popup p {
    margin: 3px 0;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* leaflet close button */
#case-map .leaflet-popup-close-button {
    color: var(--text-muted);
}

#case-map .leaflet-popup-close-button:hover {
    color: var(--primary-light);
}

/* zoom controls */
#case-map .leaflet-bar {
    border: 1px solid var(--border);
    box-shadow: 0 4px 14px var(--shadow);
}

#case-map .leaflet-bar a {
    background: var(--surface);
    color: var(--text);
    border-bottom-color: var(--border);
}

#case-map .leaflet-bar a:hover {
    background: var(--surface-light);
    color: var(--primary-light);
}

/* attribution */
#case-map .leaflet-control-attribution {
    background: var(--surface);
    color: var(--text-muted);
}

#case-map .leaflet-control-attribution a {
    color: var(--primary-light);
}

/* no filter results */
.map-no-results {
    max-width: 600px;
    margin: 0 auto 20px;
    padding: 24px 30px;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.map-no-results h2 {
    margin: 0 0 8px;
    color: var(--text);
    font-size: 1.15rem;
}

.map-no-results p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ---------- EMAIL VERIFICATION ---------- */

.auth-verify {
    justify-content: center;
}

.auth-label {
    display: inline-block;
    width: fit-content;
    margin-bottom: 1rem;
    color: var(--gold);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.auth-description {
    max-width: 520px;
    margin-bottom: 1.25rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.verification-email {
    width: 100%;
    margin: .25rem 0 1.5rem;
    padding: 1rem 1.2rem;

    color: var(--text);
    background: var(--surface-light);

    border: 1px solid var(--border-accent);
    border-radius: 10px;

    font-weight: 600;
    word-break: break-word;
}

.auth-success {
    width: 100%;
    margin-bottom: 1.5rem;
    padding: 1rem 1.2rem;

    color: var(--text);
    background: var(--surface-light);

    border: 1px solid var(--gold);
    border-radius: 10px;

    line-height: 1.5;
}

.auth-verify form {
    width: 100%;
}

.verification-help {
    margin-top: 1.25rem;
    margin-bottom: 0;

    color: var(--text-muted);
    font-size: .9rem;
    line-height: 1.6;
}

/* ---------- RESPONSIVE DESIGN ---------- */
/* large screen */
@media (min-width: 1441px) {
    /* global layout */
    .page-container {
        max-width: 1500px;
        padding: 0 2rem;
    }

    /* navigation */
    .navbar {
        padding: 0 3rem;
    }

    .navbar-container {
        max-width: 1600px;
        margin: 0 auto;
    }

    /* home */
    .home-layout {
        gap: 4rem;
    }

    .home-grid {
        gap: 2rem;
    }

    .home-info-grid {
        gap: 2rem;
    }

    .home-hero {
        padding: 3rem;
    }

    /* archive index */
    .archive-grid {
        gap: 2.5rem;
    }

    .archive-image {
        height: 470px;
    }

    /* case details */
    .details-grid {
        grid-template-columns: minmax(320px, 0.9fr) minmax(0, 2fr);
        gap: 2.5rem;
        padding: 2rem;
    }

    .details-lists {
        gap: 2.5rem;
        padding: 2rem;
    }

    /* discussion board */
    .discussion-board {
        padding: 2rem;
    }

    /* resources */
    .resources-grid {
        gap: 2.5rem;
    }

    /* victims */
    .victim-grid {
        gap: 2rem;
    }

    .page-card {
        padding: 3rem;
    }

    /* favourites */
    .favourites-section {
        padding: 2.5rem;
    }

    /* admin */
    .admin-header {
        padding: 2rem;
    }
}

/* mobile */
@media (max-width: 768px) {
    /* global */
    body a, body p {
        font-size: 16px;
    }

    .page {
        padding: 2.5rem 0;
    }

    .page-container {
        width: 100%;
        padding: 0 1rem;
    }

    .page-header {
        margin-bottom: 2.5rem;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    /* navigation */
    .navbar {
        height: 70px;
        padding: 0 1rem;
    }

    .navbar-container {
        position: relative;
        justify-content: space-between;
        gap: 1rem;
    }

    /* logo */
    .home-link {
        display: flex;
        align-items: center;
        flex-shrink: 0;
        font-size: 1.55rem;
        font-weight: 700;
        color: var(--text);
        text-decoration: none;
        letter-spacing: .08rem;
        transition: .3s;
    }

    /* hamburger */
    .hamburger {
        display: block;
        order: 2;
        margin-left: auto;
        padding: .4rem;
        font-size: 1.8rem;
        line-height: 1;
    }

    /* dropdown closed */
    .navbar-menu {
        position: absolute;
        top: calc(100% + 12px);
        left: -1rem;
        right: -1rem;
        z-index: 1001;
        display: none;
        flex-direction: column;
        align-items: stretch;
        margin-left: 0;
        padding: 1rem;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 12px 25px var(--shadow);
    }

    /* dropdown open */
    .navbar-menu.active {
        display: flex;
    }

    /* links */
    .navbar-links {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .navbar-links a {
        width: 100%;
        padding: .9rem .5rem;
    }

    .navbar-links a::after {
        left: .5rem;
        bottom: 5px;
    }

    .navbar-links a:hover::after,
    .navbar-links a.active::after {
        width: calc(100% - 1rem);
    }

    /* account / theme area */
    .navbar-end, .navbar-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: .75rem;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--border);
    }

    .navbar-end span {
        text-align: center;
    }

    .navbar-end form {
        width: 100%;
    }

    .btn-login, .btn-logout, .btn-theme {
        width: 100%;
        text-align: center;
    }

    /* home */
    .home-layout {
        gap: 2rem;
    }

    /* hero */
    .home-hero {
        padding: 2rem 1.25rem;
        border-radius: 16px;
    }

    .home-hero h1 {
        font-size: 2.2rem;
        line-height: 1.15;
    }

    .home-hero p {
        font-size: 1rem;
        line-height: 1.7;
    }

    /* about */
    .home-about {
        padding: 1.5rem;
    }

    .home-about h2 {
        font-size: 1.4rem;
    }

    /* explore */
    .home-explore h2 {
        margin-bottom: 1.5rem;
        font-size: 1.7rem;
    }

    .home-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .home-card {
        padding: 1.25rem;
    }

    /* purpose + featured Case */
    .home-info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .home-purpose-card, .home-featured-card {
        padding: 1.5rem;
    }

    /* call to action */
    .home-cta {
        padding: 2rem 1.25rem;
    }

    .home-cta h2 {
        font-size: 1.7rem;
    }

    .home-buttons {
        flex-direction: column;
        gap: .75rem;
    }

    .home-button {
        width: 100%;
        text-align: center;
    }

    /* archive index */
    /* filters */
    .archive-filters {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .filter-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .filter-submit, .filter-clear {
        width: 100%;
    }

    .filter-results {
        margin: 0 0 1.25rem;
    }

    /* case grid */
    .archive-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* case cards */
    .archive-image {
        height: auto;
        aspect-ratio: 3 / 4;
        object-fit: cover;
        object-position: center;
    }

    .archive-content {
        padding: 1.25rem;
    }

    .archive-content h2 {
        font-size: 1.2rem;
    }

    /* empty results */
    .archive-empty {
        margin: 2rem auto;
        padding: 2rem 1.25rem;
    }

    /* case details */
    .details-card {
        border-radius: 16px;
    }

    .details-header {
        padding: 1.5rem 1.25rem;
    }

    .details-header h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .details-header p {
        font-size: 1rem;
    }

    /* main case information */
    .details-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.25rem;
    }

    .details-image {
        width: 100%;
        max-width: 450px;
        height: auto;
        margin: 0 auto;
    }

    .details-content {
        gap: 1rem;
    }

    /* description / information panels */
    .content-panel {
        padding: 1.25rem;
    }

    .content-panel h2 {
        font-size: 1.3rem;
    }

    /* statistics */
    .details-stats,
    .details-stats:has(.details-stat:nth-child(3)) {
        grid-template-columns: 1fr;
        gap: .75rem;
    }

    .details-stat {
        padding: 1rem;
    }

    /* victims / suspects lists */
    .details-lists {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.25rem;
    }

    /* discussion board */
    .discussion-board {
        padding: 1.25rem;
        margin-top: 2rem;
    }

    /* header */
    .discussion-header {
        flex-direction: column;
        align-items: flex-start;
        gap: .5rem;
    }

    .discussion-header h2 {
        font-size: 1.5rem;
    }

    .discussion-count {
        align-self: flex-start;
    }

    /* comment form */
    .discussion-form {
        padding: 1rem;
    }

    .discussion-form textarea {
        width: 100%;
    }

    .discussion-form-footer {
        flex-direction: column;
        align-items: stretch;
        gap: .75rem;
    }

    .discussion-form-footer button {
        width: 100%;
    }

    /* comments */
    .discussion-comment {
        padding: 1rem;
    }

    .discussion-comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: .75rem;
    }

    .discussion-author {
        width: 100%;
    }

    /* comment actions */
    .discussion-actions {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: .5rem;
    }

    .discussion-actions form {
        margin: 0;
    }

    .discussion-pagination {
        gap: .65rem;
    }

    .discussion-pagination a,
    .discussion-pagination .pagination-disabled {
        min-width: 0;
        padding: .6rem .75rem;
        font-size: .8rem;
    }

    .discussion-pagination .pagination-current {
        padding: .6rem .25rem;
        font-size: .8rem;
    }

    /* admin moderation */
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.25rem;
    }

    .admin-header h1 {
        font-size: 1.8rem;
    }

    .admin-discussion-count {
        align-self: flex-start;
    }

    /* discussion cards */
    .admin-discussion-card {
        padding: 1.25rem;
    }

    .admin-discussion-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .admin-discussion-info {
        width: 100%;
    }

    /* moderation actions */
    .admin-discussion-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: .75rem;
    }

    .admin-discussion-actions form {
        width: 100%;
    }

    /* resources */
    .resources-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 1.5rem 0;
    }

    .resources-section {
        padding: 1.25rem;
    }

    .resources-section-header {
        margin-bottom: 1rem;
    }

    .resources-section-header h2 {
        font-size: 1.4rem;
    }

    .resources-list {
        gap: 1rem;
    }

    .resources-card {
        padding: 1rem;
    }

    /* victims */
    /* main victims layout */
    .victims-content {
        padding: 1.25rem;
    }

    .page-section {
        margin-bottom: 2.5rem;
    }

    .page-card {
        padding: 1.5rem;
    }

    /* information cards */
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .info-card {
        padding: 1.25rem;
    }

    /* victim profiles */
    .victim-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .victim-card {
        grid-template-columns: 1fr;
    }

    /* victim images */
    .victim-profile-image {
        width: 100%;
        min-height: 0;
    }

    .victim-profile-image img {
        display: block;
        width: 100%;
        height: auto;
        max-height: none;
        object-fit: contain;
        object-position: center;
        border-radius: 10px;
    }

    .victim-image-placeholder {
        width: 100%;
        height: 220px;
    }

    /* victim information */
    .victim-info {
        padding: 1.25rem;
    }

    /* profile header */
    .victim-profile-header {
        flex-direction: column;
        align-items: flex-start;
        gap: .5rem;
    }

    .victim-profile-header h3 {
        font-size: 1.3rem;
    }

    /* profile details */
    .victim-profile-details {
        grid-template-columns: 1fr;
        gap: .75rem;
    }

    /* slider controls */
    .victim-slider-controls {
        flex-wrap: wrap;
        justify-content: center;
        gap: .75rem;
    }

    /* remembrance statistics */
    .victim-remembrance-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    /* faovurites */
    .favourites-section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .favourites-section-header {
        margin-bottom: 1.5rem;
    }

    .favourites-section-header h2 {
        font-size: 1.5rem;
    }

    .favourite-form {
        top: .75rem;
        right: .75rem;
    }

    .favourite-button {
        width: 40px;
        height: 40px;
    }

    .archive-empty {
        padding: 2rem 1.25rem;
    }

    /* login / register */
    .auth-container {
        padding: 1rem;
    }

    .auth-page {
        width: 100%;
        min-height: auto;
        grid-template-columns: 1fr;
    }

    /* hide decorative image on smaller screens */
    .auth-image {
        display: none;
    }

    /* form */
    .auth-form {
        width: 100%;
        padding: 2rem 1.5rem;
    }

    .auth-form h1 {
        font-size: 2rem;
    }

    .auth-form p {
        font-size: 0.95rem;
    }

    /* inputs */
    .auth-form input {
        width: 100%;
    }

    /* buttons */
    .auth-form button {
        width: 100%;
    }

    /* explore page */
    .explore-container {
        width: min(100% - 24px, 1100px);
        padding-top: 45px;
    }

    .explore-filters {
        margin-bottom: 40px;
    }

    .timeline::before {
        left: 15px;
    }

    .timeline-year {
        margin: 42px 0 24px;
        padding-left: 40px;
    }

    .timeline-year span {
        width: auto;
    }

    .timeline-event {
        display: block;

        padding-left: 40px;
        margin-bottom: 20px;
    }

    .timeline-marker {
        left: 8px;
        top: 24px;
    }

    .timeline-event-card {
        width: 100%;
    }

    .explore-page .timeline-event > .timeline-marker {
        left: 8px;
        top: 24px;
    }

    .explore-view-switcher {
        width: 100%;
    }

    .explore-view-btn {
        flex: 1;
        min-width: 0;
    }

    #case-map {
        height: 420px;
    }

    .explore-filters {
        align-items: stretch;
    }

    .explore-filter-btn, #event-type-filter {
        flex: 1 1 140px;
    }

    #event-type-filter {
        max-width: 100%;
    }

    .timeline-event-card {
        min-width: 0;
        overflow-wrap: break-word;
    }

    .leaflet-popup-content {
        max-width: 220px;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: .75rem;
    }

    .auth-form {
        padding: 1.75rem 1rem;
    }

    .auth-form h1 {
        font-size: 1.8rem;
    }
}

/* ---------- ADMIN TABLET ACTIONS ---------- */
@media (min-width: 481px) and (max-width: 768px) {
    .admin-discussion-actions {
        width: auto;
        align-items: flex-end;
    }

    .admin-discussion-actions form {
        width: auto;
    }

    .admin-discussion-actions button {
        width: auto;
    }
}
/* ---------- HOME REDESIGN ---------- */
.home-page .home-layout {
    gap: clamp(4rem, 7vw, 7rem);
    padding-top: .5rem;
    padding-bottom: 5rem;
}

.home-page .home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
    min-height: 540px;
    padding: 0;
    text-align: left;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
.home-page .home-hero:hover { box-shadow: none; }
.home-hero-copy { min-width: 0; }
.home-eyebrow, .home-section-kicker, .home-card-number {
    color: var(--gold);
    font-family: Arial, sans-serif;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.home-eyebrow { display: inline-flex; align-items: center; gap: .7rem; }
.home-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-light);
    box-shadow: 0 0 14px var(--primary-light);
}
.home-page .home-hero h1 {
    max-width: 730px;
    margin: 1.5rem 0 1.25rem;
    font-size: clamp(3.3rem, 5.9vw, 6.7rem);
    font-weight: 400;
    line-height: 1.03;
    letter-spacing: -.055em;
}
.home-page .home-hero h1 em { color: var(--primary-light); font-style: normal; }
.home-page .home-hero-copy > p {
    max-width: 540px;
    margin: 0;
    color: var(--text-muted);
    font-size: 1.12rem;
    line-height: 1.75;
}
.home-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.5rem; margin-top: 2rem; }
.home-primary-action, .home-secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: .9rem 1.2rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s, background .2s, border-color .2s;
}
.home-primary-action { color: #fff; background: var(--primary); border: 1px solid var(--primary); }
.home-secondary-action { color: var(--text); border: 1px solid var(--border-accent); }
.home-primary-action:hover, .home-secondary-action:hover { transform: translateY(-3px); }
.home-secondary-action:hover { border-color: var(--gold); }

.home-page .home-featured-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 475px;
    overflow: hidden;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    background: linear-gradient(155deg, var(--surface-light), var(--surface) 72%);
    border: 1px solid var(--border-accent);
    border-radius: 18px;
    box-shadow: 0 24px 65px var(--shadow);
}
.home-page .home-featured-card::before {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    top: 15%;
    right: -140px;
    border: 1px solid var(--border-accent);
    border-radius: 50%;
    box-shadow: 0 0 0 36px var(--border), 0 0 0 72px var(--border);
    pointer-events: none;
}
.home-page .home-featured-card:hover { box-shadow: 0 24px 65px var(--shadow); }
.home-featured-topline, .home-featured-footer {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--text-muted);
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.home-featured-topline { padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.home-live-marker { color: var(--gold); }
.home-page .home-featured-content { position: relative; justify-content: center; flex: 1; gap: 1rem; padding: 2rem 0; }
.home-page .home-featured-type { color: var(--gold); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; }
.home-page .home-featured-content h2 { font-size: clamp(2rem, 3vw, 3.4rem); line-height: 1.14; overflow-wrap: anywhere; }
.home-page .home-featured-description { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 4; color: var(--text-muted); line-height: 1.75; }
.home-page .home-featured-link { margin-top: .75rem; padding-bottom: .35rem; border-bottom: 1px solid var(--gold); color: var(--gold); font-weight: 700; }
.home-featured-footer { padding-top: 1rem; border-top: 1px solid var(--border); font-size: .7rem; }

.home-section-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .75rem;
    margin-bottom: 2rem;
}

.home-section-heading h2 { margin-top: 1rem; font-size: clamp(2.2rem, 4vw, 3.6rem); }
.home-section-heading > p { max-width: 340px; color: var(--text-muted); line-height: 1.6; }
.home-page .home-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }

.home-page .home-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 230px;
    padding: 1.5rem;
    color: var(--text);
    text-decoration: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
}
.home-page .home-card-wide { grid-column: span 2; min-height: 285px; background: linear-gradient(140deg, var(--surface-light), var(--surface)); border-color: var(--border-accent); }
.home-page .home-card:hover { transform: translateY(-5px); border-color: var(--gold); box-shadow: 0 16px 32px var(--shadow); }
.home-page .home-card h3 { margin: 0 0 .5rem; font-size: clamp(1.4rem, 2vw, 2rem); }
.home-page .home-card p { max-width: 280px; color: var(--text-muted); font-size: .95rem; line-height: 1.55; }
.home-card-arrow { align-self: flex-end; color: var(--gold); font-size: 1.4rem; }
.home-page .home-purpose { max-width: 760px; padding-left: 2rem; border-left: 2px solid var(--primary-light); }
.home-purpose h2 { margin: .8rem 0 1rem; font-size: clamp(2rem, 3.5vw, 3.2rem); }
.home-purpose p { color: var(--text-muted); font-size: 1.08rem; line-height: 1.8; }
.home-purpose a { display: inline-block; margin-top: 1.2rem; color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--gold); }

@media (max-width: 1000px) {
    .home-page .home-hero { grid-template-columns: 1fr; min-height: 0; }
    .home-page .home-featured-card { min-height: 380px; }
    .home-page .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .home-page .home-layout { gap: 3.5rem; padding-top: 2rem; }
    .home-page .home-hero { gap: 2.5rem; }
    .home-page .home-hero h1 { font-size: clamp(3rem, 12vw, 4.7rem); }
    .home-page .home-featured-card { min-height: 350px; }
    .home-section-heading { display: block; }
    .home-section-heading > p { margin-top: .8rem; }
    .home-page .home-grid { grid-template-columns: 1fr; }
    .home-page .home-card, .home-page .home-card-wide { grid-column: auto; min-height: 210px; }
    .home-page .home-purpose { padding-left: 1.25rem; }
}