﻿/**
 * File: wwwroot/css/specialty-units.css
 * Purpose: Honeycomb specialty units grid + cinematic video modal
 * Last Updated: 2026-03-18
 * Author: Jessie Martin
 *
 * Sections:
 *   1. Section Shell & Background
 *   2. Section Header
 *   3. Honeycomb Grid Layout
 *   4. Hex Cell — Shape & Base State
 *   5. Hex Inner — Logo & Overlay
 *   6. Magnify Interaction
 *   7. Cell Label (mobile)
 *   8. Modal — Shell & Backdrop
 *   9. Modal — Background Video (blurred)
 *  10. Modal — Content Layout (logo ↔ video + text)
 *  11. Modal — Animation Keyframes
 *  12. Section Footer
 *  13. Responsive
 *  14. Accessibility
 */

/* ============================================================
   1. SECTION SHELL & BACKGROUND
   ============================================================ */
.su-section {
    position: relative;
    background-color: var(--surface-black, #000);
    padding: 6rem 0 5rem;
    overflow: hidden;
}

.su-dot-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(31, 65, 155, 0.18) 1px, transparent 1px);
    background-size: 32px 32px;
    z-index: 0;
}

.su-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 120px;
    background: linear-gradient(to bottom, var(--surface-black, #000) 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.su-section .container-xl {
    position: relative;
    z-index: 2;
}

/* ============================================================
   2. SECTION HEADER
   ============================================================ */
.su-header {
    margin-bottom: 3.5rem;
}

.su-eyebrow {
    display: block;
    font-family: var(--font-heading, 'Oswald', sans-serif);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.35em;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.su-title {
    font-family: var(--font-heading,'Oswald', sans-serif);
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-white, #FFF);
    margin-bottom: 1rem;
    line-height: 1.05;
}

.su-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: var(--text-muted, rgba(215, 213, 207, 0.65));
    max-width: 560px;
    margin: 0 auto 0.75rem;
    line-height: 1.65;
}

.su-touch-hint {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-family: var(--font-heading,'Oswald', sans-serif);
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    color: var(--accent, #1F419B);
    text-transform: uppercase;
    margin-top: 0.5rem;
}

.su-touch-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

@media (pointer: coarse) {
    .su-touch-hint {
        display: flex;
    }
}

/* ============================================================
   DIVISION TOGGLE
   Only visible on standalone SpecialtyUnits page.
   Hidden on embedded pages — JS removes [hidden] when no
   parent .career-section data-division is detected.
   ============================================================ */
.su-division-toggle {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin: 1.5rem auto 0;
}

/* [hidden] attribute — display:none regardless of flex above */
.su-division-toggle[hidden] {
    display: none !important;
}

.su-toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.25rem 0.5rem 0.75rem;
    background: var(--surfaced-raised, #111);
    border: 1px solid var(--border-subtitle, rgba(255, 255, 255, 0.08));
    border-radius: 2px;
    color: var(--text-muted, rgba(215, 213, 207, 0.55));
    font-family: var(--font-heading, 'Oswald', sans-serif);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    cursor: pointer;
    transition: border-color 200ms, color 200ms, background 200ms;
}

.su-toggle-btn:hover {
    border-color: var(--border-blue, rgba(31, 65, 155, 0.5));
    color: var(--text-grey, #D7D5CF);
}

.su-toggle-btn--active {
    border-color: var(--accent, #1F419B);
    color: #fff;
    background: rgba(31, 65, 155, 0.15);
}

/* ── Toggle patch: no circle clip ──────────────────────────── */
/* (Ensures badge images aren't clipped — may already be in your file) */
.su-toggle-patch {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 0;
}

/* ============================================================
   3. HONEYCOMB GRID LAYOUT
   ============================================================ */
:root {
    --su-cell-w: 170px;
    --su-cell-h: 170px;
    --su-gap-x: 6px;
    --su-gap-y: 4px;
    --su-scale-active: 1.32;
    --su-scale-neighbor: 1.10;
    --su-transition: 240ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --su-transition-fast: 160ms ease-out;
}

.su-hive {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    user-select: none;
    /*
     * overflow: visible is critical here.
     * Without it, the flex container clips scaled cells
     * at its own boundary, causing the hard cutoff you see.
     */
    overflow: visible;
    /*
     * position: relative + z-index: 0 establishes ONE
     * stacking context for the entire hive.
     * All cells inside compete in the same context —
     * no row creates a sub-context that traps cells.
     */
    position: relative;
    z-index: 0;
}

.su-row {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: var(--su-gap-x);
    margin-top: calc(var(--su-cell-h) * -0.134);
    /*
     * overflow: visible on every row — same reason.
     * Each row is a flex container and will clip
     * scaled children unless explicitly told not to.
     */
    overflow: visible;
    z-index: 1;
}

.su-row:first-child {
    margin-top: 0;
}

/*
 * The offset transform creates a stacking context on the row.
 * We can't avoid the transform (it positions the row correctly)
 * but we CAN set z-index on the row itself to control order.
 * All rows get z-index: 1. The JS elevates the active CELL
 * by adding a wrapper trick — see JS fix below.
 */
.su-row--offset {
    transform: translateX(calc((var(--su-cell-w) + var(--su-gap-x)) * 0));
}

.su-row:has(.su-cell:hover),
.su-row:has(.su-cell:focus-visible),
.su-row:has(.su-cell.su-active) {
    z-index: 50;
}

/* Collapse rows where all cells are hidden (e.g. rows 4-5 on CVE toggle).
   The row itself has no height when children are display:none,
   but margin-top persists without this rule. */
.su-row:not(:has(.su-cell:not([hidden]))) {
    margin-top: 0;
    display: none;
}

/* ============================================================
   4. HEX CELL — SHAPE & BASE STATE
   ============================================================ */

.su-cell {
    position: relative;
    width: var(--su-cell-w);
    height: var(--su-cell-h);
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    cursor: pointer;
    outline: none;
    /*
     * overflow: visible — the cell itself must not clip
     * its scaled .su-hex child. This is the most important
     * overflow declaration of the three.
     */
    overflow: visible;
    z-index: 1;
    /*
     * transition applies BOTH entering AND leaving hover.
     * Putting it here (not on :hover) means the easing
     * fires in both directions — smooth in, smooth out.
     */
    transition: transform var(--su-transition), z-index 0s;
}

.su-cell:hover,
.su-cell:focus-visible,
.su-cell.su-active {
    /*
     * z-index: 9999 breaks the cell out of its row's
     * stacking context entirely, ensuring the active cell
     * always renders on top regardless of which row it's in.
     */
    z-index: 100;
}

/* Neighbors sit above resting cells but below the active cell */
.su-cell.su-is-neighbor {
    z-index: 10;
}

/*
 * The hex wrapper — exactly cell-width × cell-height.
 * Sits at the top of the cell. The extra 48px of cell
 * height is below this, where the text label lives.
 */
.su-hex-wrap {
    position: relative;
    width: var(--su-cell-w);
    height: var(--su-cell-h);
}

/* Flat-top hex: 25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%
 * Flat-top hex clip-path.
 * clip-path stays on .su-hex — it shapes the visible fill.
 * The transform (scale) is also on .su-hex.
 * These two work together: clip-path clips the shape,
 * transform scales it up. The parent .su-cell does NOT
 * clip, so the scaled hex can visually overflow its box.
 */
.su-hex {
    width: 100%;
    height: 100%;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    background: transparent;
    transition: transform var(--su-transition);
    will-change: transform;
    transform-origin: center center;
    /*
     * position: relative so ::before glow ring positions correctly.
     * overflow: visible so the ::before pseudo-element
     * (the glow ring) isn't clipped.
     */
    position: relative;
    overflow: visible;
}
                        
/* ============================================================
   5. HEX INNER — LOGO & OVERLAY
   ============================================================ */

.su-hex-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    /*
     * overflow: hidden here clips the overlay text
     * to stay within the hex shape.
     * The clip-path on .su-hex already handles the
     * visual boundary — we just need the overlay
     * text not to bleed sideways.
     */
    overflow: hidden;
}

.su-logo {
    width: 68%;
    height: 68%;
    object-fit: contain;
    object-position: center;
    filter: brightness(0.88) saturate(0.9);
    transition: filter var(--su-transition-fast), transform var(--su-transition);
    pointer-events: none;
    display: block;
    /* Ensure logo stays above the overlay gradient */
    position: relative;
    z-index: 1;
}

.su-logo--wide {
    width: 80%;
    height: 55%;
}

.su-cell:hover .su-logo,
.su-cell:focus-visible .su-logo,
.su-cell.su-active .su-logo {
    filter: brightness(1.05) saturate(1.1);
    transform: scale(0.92) translateY(-6px);
}

/*
 * OVERLAY — positioned below the hex, outside clip-path.
 * Uses translateY to slide up into view on hover.
 * text-shadow gives contrast against any background.
 *
 * Key insight: position absolute with top: 100% places it
 * just below the hex. overflow: visible on .su-cell lets
 * it render there without clipping.
 */
.su-overlay {
    position: absolute;
    top: 82%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    width: calc(var(--su-cell-w) + 40px);
    opacity: 0;
    /*
     * transition on both transform AND opacity,
     * same duration as --su-transition so it moves
     * in sync with the hex scale.
     * Defined here so it fires on exit too.
     */
    transition: transform var(--su-transition), opacity var(--su-transition-fast);
    pointer-events: none;
    z-index: 50;
    text-align: center;
    padding-top: 0px;
    background: rgba(0, 0, 0, 0.72);
    border-radius: 4px;
    padding: 6px 10px 8px;
}

.su-cell:hover .su-overlay,
.su-cell:focus-visible .su-overlay,
.su-cell.su-active .su-overlay {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.su-unit-name {
    display: block;
    font-family: var(--font-heading, 'Oswald', sans-serif);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    text-align: center;
    line-height: 1.2;
    margin-bottom: 3px;
    /*
     * text-shadow gives white text contrast on any
     * background — works whether icons are light or dark.
     */
    text-shadow: 0 1px 6px rgba(0,0,0,1), 0 0 12px rgba(0,0,0,0.9);
}

.su-unit-desc {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    color: var(--dps-grey, #D7D5CF);
    text-align: center;
    line-height: 1.3;
    opacity: 0.85;
    text-shadow: 0 1px 4px rgba(0,0,0,1), 0 0 8px rgba(0,0,0,0.9);
}

/* ============================================================
   6. MAGNIFY INTERACTION
   ============================================================ */
.su-cell:hover .su-hex,
.su-cell:focus-visible .su-hex,
.su-cell.su-active .su-hex {
    transform: scale(var(--su-scale-active));
}

/* Glow ring — ::before on .su-hex */
.su-cell:hover .su-hex::before,
.su-cell:focus-visible .su-hex::before,
.su-cell.su-active .su-hex::before {
    content: '';
    position: absolute;
    inset: -4px;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    box-shadow: 0 0 0 2px var(--accent, #1F419B), 0 0 24px 6px var(--accent-glow, rgba(31, 65, 155, 0.4));
    z-index: -1;
    animation: su-pulse 1.8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes su-pulse {
    0%, 100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* ============================================================
   7. CELL LABEL (mobile always-visible)
   ============================================================ */
.su-label {
    display: none;
    position: absolute;
    bottom: -2.0rem;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: 120px;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    font-family: var(--font-heading, 'Oswald', sans-serif);
    font-size: 0.52rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dps-grey, #D7D5CF);
    opacity: 0.7;
    pointer-events: none;
}

/* ============================================================
   8. MODAL — SHELL & BACKDROP
   ============================================================ */
.su-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 300ms ease;
}

.su-modal[aria-hidden="false"] {
    pointer-events: all;
    opacity: 1;
}

/* Backdrop — sits behind the panel */
.su-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    cursor: pointer;
}

/* ============================================================
   10. MODAL — CONTENT PANEL
   Two-column split: video (left) | logo + text (right)
   On open: logo starts centered, video starts offscreen right.
   Animation plays them into position simultaneously.
   ============================================================ */
.su-modal-panel {
    position: relative;
    z-index: 2;
    width: min(1200px, 96vw);
    max-height: min(88vh, 860px);
    background: rgba(5, 8, 20, 0.92);
    border: 1px solid rgba(31, 65, 155, 0.45);
    border-radius: 4px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    transform: scale(0.92) translateY(16px);
    transition: transform 340ms cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 100px rgba(31, 65, 155, 0.18), 0 40px 80px rgba(0, 0, 0, 0.85);
}

.su-modal[aria-hidden="false"] .su-modal-panel {
    transform: scale(1) translateY(0);
}

.su-modal-panel--text {
    /* Narrower than the video panel — content doesn't need 1200px */
    width: min(640px, 94vw);
    /* Let height be content-driven, no fixed max needed */
    max-height: min(88vh, 720px);
    /* Single column — no grid split */
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: hidden; /* clips border-radius corners */
}

/* Make the info col fill and scroll if content is tall */
.su-modal-panel--text .su-modal-info-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 2.5rem 2.5rem;
    gap: 1.25rem;
    overflow-y: auto;
    animation: none;
}

/* Close button */
.su-modal-close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 10;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%;
    color: var(--dps-grey, #D7D5CF);
    opacity: 0.7;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 150ms, background 150ms;
}
.su-modal-close:hover {
    opacity: 1;
    background: rgba(255,255,255,0.12);
}
.su-modal-close svg {
    width: 16px;
    height: 16px;
    display: block;
}

/* Logo — larger since it has full width */
.su-modal-panel--text .su-modal-logo-wrap {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: none;
}

.su-modal-panel--text .su-modal-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(31, 65, 155, 0.4));
}

/* Body: centered text */
.su-modal-panel--text .su-modal-body {
    text-align: center;
    width: 100%;
}

.su-modal-panel--text .su-modal-title {
    font-family: var(--font-heading, 'Oswald', sans-serif);
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 700;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: #fff;
    margin-bottom: 0.75rem;
    line-height: 1.15;
}

.su-modal-panel--text .su-modal-desc {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.82rem, 1.5vw, 0.95rem);
    color: var(--dps-grey, #D7D5CF);
    line-height: 1.75;
    margin: 0;
    opacity: 0.9;
}

/* ── Recruiter link inside modal ───────────────────────────── */
.su-modal-recruiter {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.su-modal-recruiter-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading, 'Oswald', sans-serif);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    color: #fff;
    background: var(--dps-blue, #1F419B);
    border: 2px solid var(--dps-blue, #1F419B);
    padding: 0.65rem 1.5rem;
    text-decoration: none;
    transition: background 180ms, color 180ms, border-color 180ms, gap 180ms;
}
 
.su-modal-recruiter-link:hover,
.su-modal-recruiter-link:focus-visible {
    background: transparent;
    color: #fff;
    border-color: #fff;
    gap: 0.75rem;
    text-decoration: none;
}
 
.su-modal-recruiter-link:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
    border-radius: 2px;
}

/* ============================================================
   12. SECTION FOOTER
   ============================================================ */
.su-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle, rgba(255,255,255,0.06));
}

.su-footer-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    color: var(--text-muted, rgba(215, 213, 207, 0.45));
    line-height: 1.7;
    margin: 0;
}

/* ── Recruiter link in section footer ──────────────────────── */
.su-footer-recruiter {
    margin-top: 1.25rem;
}

.su-footer-recruiter-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-heading, 'Oswald', sans-serif);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    color: #6B8FE8;
    border: 2px solid #6B8FE8;
    background: transparent;
    padding: 0.6rem 1.5rem;
    text-decoration: none;
    transition: background 180ms, color 180ms, border-color 180ms, gap 180ms;
}
 
.su-footer-recruiter-link:hover,
.su-footer-recruiter-link:focus-visible {
    background: #6B8FE8;
    color: #fff;
    border-color: #6B8FE8;
    gap: 0.75rem;
    text-decoration: none;
}

.su-footer-recruiter-link:focus-visible {
    outline: 2px solid #6B8FE8;
    outline-offset: 3px;
}

/* ============================================================
   13. RESPONSIVE
   ============================================================ */
/* ── Mobile: disable all magnification visual artifacts ───────
   On touch devices the hover/proximity effects don't apply,
   but ensure no leftover transform state causes layout shifts.
   ─────────────────────────────────────────────────────────── */
@media (pointer: coarse) {
    .su-cell,
    .su-cell .su-hex {
        transform: none !important;
        transition: none !important;
    }

        /* Make tap target feel more responsive with a subtle press state */
        .su-cell:active .su-hex {
            opacity: 0.75;
        }
}

/* ── Large laptop / small desktop (≤ 1280px) ── */
@media (max-width: 1280px) {
    :root {
        --su-cell-w: 148px;
        --su-cell-h: 148px;
    }
}

/* ── Tablet / small laptop (≤ 1024px) ── */
@media (max-width: 1024px) {
    :root {
        --su-cell-w: 124px;
        --su-cell-h: 124px;
    }

    /* Modal switches to vertical stack earlier on smaller laptops */
    .su-modal-panel {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* ── Short viewports (laptops with small height, e.g. 768px tall) ── */
@media (max-height: 800px) {
    .su-modal-panel {
        max-height: 85vh;
    }

    .su-modal-info-col {
        padding: 1.5rem 1.5rem;
        gap: 0.75rem;
    }

    .su-modal-logo-wrap {
        width: 100px;
        height: 100px;
    }
}

/* ── Mobile landscape + small tablet (≤ 767px) ── */
@media (max-width: 767px) {
    :root {
        --su-cell-w: 96px;
        --su-cell-h: 96px;
        --su-scale-active: 1.45;
    }

    .su-section {
        padding: 4rem 0 3rem;
    }

    /* Toggle: stack vertically on narrow screens so neither clips */
    .su-division-toggle {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
        padding: 0 1rem;
    }

    .su-toggle-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        letter-spacing: 0.08em;
    }

    /* Hive: each row becomes its own centered flex line,
       cells stay together per row instead of one big wrap pile */
    .su-hive {
        gap: 0;
        padding: 0 0.5rem;
    }

    .su-row {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 0;
        gap: 6px;
        width: 100%;
        padding: 8px 0;
    }

    .su-row--offset {
        transform: none;
    }

    .su-label {
        display: block;
    }

    .su-cell {
        margin-bottom: 1.6rem;
    }

    .su-unit-name {
        font-size: 0.65rem;
    }

    .su-unit-desc {
        font-size: 0.52rem;
    }

    .su-title {
        font-size: 1.75rem;
    }

    .su-subtitle {
        font-size: 0.875rem;
    }

    .su-modal-panel {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        max-height: 94vh;
        overflow-y: auto;
    }

    .su-modal-info-col {
        padding: 1.5rem 1.25rem;
    }
}

/* ── Very short viewports (e.g. 600px tall laptop in browser chrome) ── */
@media (max-height: 650px) {
    .su-label {
        max-width: 76px;
        font-size: 0.52rem;
        min-height: 2.8em; /* reserves space for 2–3 lines */
    }

    .su-row {
        gap: 22px 10px;
    }
    
    .su-modal-panel {
        max-height: 96vh;
        overflow-y: auto;
    }

    .su-modal-info-col {
        padding: 1rem;
        gap: 0.5rem;
    }

    .su-modal-logo-wrap {
        width: 80px;
        height: 80px;
    }
}

/* ── Small mobile (≤ 480px) ── */
@media (max-width: 480px) {
    :root {
        --su-cell-w: 82px;
        --su-cell-h: 82px;
    }

    .su-division-toggle {
        padding: 0 0.75rem;
    }

    .su-toggle-btn {
        max-width: 260px;
        font-size: 0.72rem;
        padding: 0.45rem 1rem 0.45rem 0.65rem;
    }

    .su-label {
        max-width: 80px;
        font-size: 0.52rem;
        line-height: 1.2;
        min-height: 2.4em;
    }

    .su-row {
        gap: 12px 10px;
        padding: 6px 0;
    }

    .su-logo {
        width: 62%;
        height: 62%;
    }

    .su-unit-name {
        font-size: 0.55rem;
    }
}

/* ============================================================
   14. ACCESSIBILITY — REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .su-hex,
    .su-hex-inner,
    .su-logo,
    .su-overlay,
    .su-modal,
    .su-modal-panel,
    .su-modal-info-col,
    .su-modal-logo-wrap {
        transition: none !important;
        animation: none !important;
    }

    .su-cell:hover .su-hex,
    .su-cell:focus-visible .su-hex,
    .su-cell.su-active .su-hex {
        transform: scale(var(--su-scale-active));
    }
}