/* Officers Page Styles (rebuilt 2026-09-21)
   The page is built from the `officers` table - see officers.php and
   scripts/officers_data.php. Officers are shown in blocks: the command
   block first, then one block per part of the world. */

.officers-bg-wrapper {
    background: radial-gradient(var(--main-colour2) 10%, rgba(20, 20, 20, 0.1) 65%);
    padding: 2rem 0 3rem;
}

/* One block: "Officers" with "Europe" underneath it */
.rank-block {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 2rem;
}

.rank-block h2 {
    margin: 0 0 1.5rem;
    text-align: center;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    letter-spacing: 0.08em;
    color: #fff;
    text-shadow: 0 0 12px var(--glow-colour);
}

.rank-block h2 span {
    display: block;
    margin-top: 0.4rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--highlight-colour);
    text-shadow: none;
}

.rank-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.75rem 1.5rem;
}

/* One officer */
.officer-card {
    width: 130px;
    text-align: center;
    text-decoration: none;
    color: #fff;
}

.officer-card img {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    display: block;
    object-fit: cover;
    border-radius: 50%;
    background: var(--background-dark);
    border: 2px solid var(--border-colour);
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.55);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.officer-card:hover img,
.officer-card:focus-visible img {
    transform: scale(1.06);
    border-color: var(--highlight-colour);
    box-shadow: 0 0 24px var(--glow-colour);
}

.officer-card .handle {
    display: block;
    margin-top: 0.7rem;
    font-size: 0.95rem;
    line-height: 1.2;
    word-break: break-word;
}

.officer-card:hover .handle {
    color: var(--highlight-colour);
}

.officer-card .display-name,
.officer-card .location {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.75rem;
    color: #9bb4c6;
}

.theme-alt .officer-card .display-name,
.theme-alt .officer-card .location {
    color: #d8a8a8;
}

.officer-card .location {
    letter-spacing: 0.04em;
}

/* When the list hasn't been filled in yet, and the note under the page */
.officers-empty,
.officers-note {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    color: #9bb4c6;
    font-size: 0.9rem;
    line-height: 1.6;
}

.theme-alt .officers-empty,
.theme-alt .officers-note {
    color: #d8a8a8;
}

.officers-empty a,
.officers-note a {
    color: var(--highlight-colour);
}

@media (max-width: 700px) {
    .rank-block {
        padding: 1rem 0.75rem 1.5rem;
    }

    .rank-row {
        gap: 1.25rem 1rem;
    }

    .officer-card {
        width: 104px;
    }

    .officer-card img {
        width: 96px;
        height: 96px;
    }
}
