/*
========================================================
 KALENJIN MUSIC AWARD 2026
 PROFESSIONAL PUBLIC DESIGN
 Green + Orange + Yellow
 Responsive / Mobile First
========================================================
*/

:root {
    --kma-green: #087f5b;
    --kma-green-dark: #056047;
    --kma-green-light: #12a878;

    --kma-orange: #f97316;
    --kma-orange-dark: #ea580c;

    --kma-yellow: #facc15;
    --kma-yellow-dark: #eab308;

    --kma-navy: #07111f;
    --kma-navy-2: #0b1728;
    --kma-slate: #334155;

    --kma-white: #ffffff;
    --kma-light: #f8fafc;
    --kma-border: #e2e8f0;

    --kma-shadow:
        0 20px 50px rgba(15, 23, 42, .10);

    --kma-radius: 20px;
}

/* =====================================================
   GLOBAL
===================================================== */

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-width: 320px;
    overflow-x: hidden;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f8fafc 45%,
            #ffffff 100%
        );

    color: #0f172a;

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
svg,
video {
    max-width: 100%;
    height: auto;
}

a {
    transition:
        color .2s ease,
        background-color .2s ease,
        border-color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

/* Prevent long words from breaking mobile layouts */

h1,
h2,
h3,
h4,
h5,
h6,
p {
    overflow-wrap: anywhere;
}

/* =====================================================
   KMA BRAND COLORS
===================================================== */

.text-kma-green {
    color: var(--kma-green) !important;
}

.text-kma-orange {
    color: var(--kma-orange) !important;
}

.text-kma-yellow {
    color: var(--kma-yellow-dark) !important;
}

.bg-kma-green {
    background: var(--kma-green) !important;
}

.bg-kma-orange {
    background: var(--kma-orange) !important;
}

.bg-kma-yellow {
    background: var(--kma-yellow) !important;
}

/* =====================================================
   BRAND LOGO
===================================================== */

.kma-logo,
.kma-brand-mark {
    background:
        linear-gradient(
            135deg,
            var(--kma-green) 0%,
            var(--kma-green-light) 60%,
            var(--kma-yellow) 100%
        ) !important;

    box-shadow:
        0 10px 25px rgba(8, 127, 91, .25);
}

.kma-brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;

    color: #fff;
    font-weight: 900;
}

/* =====================================================
   NAVIGATION
===================================================== */

header,
nav {
    max-width: 100%;
}

nav a {
    text-decoration: none;
}

nav .kma-vote-btn,
.kma-vote-btn {
    background:
        linear-gradient(
            135deg,
            var(--kma-orange),
            var(--kma-orange-dark)
        ) !important;

    color: #fff !important;

    border: 0 !important;

    box-shadow:
        0 10px 24px rgba(249, 115, 22, .25);
}

nav .kma-vote-btn:hover,
.kma-vote-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 14px 30px rgba(249, 115, 22, .35);
}

/* =====================================================
   HERO
===================================================== */

.kma-hero {
    position: relative;

    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(18, 168, 120, .20),
            transparent 35%
        ),
        radial-gradient(
            circle at 90% 20%,
            rgba(250, 204, 21, .12),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #07111f 0%,
            #0b1728 55%,
            #063d30 100%
        );

    overflow: hidden;
}

.kma-hero::after {
    content: "";

    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    height: 4px;

    background:
        linear-gradient(
            90deg,
            var(--kma-green) 0%,
            var(--kma-green) 45%,
            var(--kma-orange) 45%,
            var(--kma-orange) 75%,
            var(--kma-yellow) 75%,
            var(--kma-yellow) 100%
        );
}

/* =====================================================
   HERO BUTTONS
===================================================== */

.kma-primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 52px;
    padding: 13px 24px;

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            var(--kma-orange),
            var(--kma-orange-dark)
        );

    color: #fff !important;

    font-weight: 800;
    text-decoration: none;

    border: 0;

    box-shadow:
        0 12px 28px rgba(249, 115, 22, .28);
}

.kma-primary-btn:hover {
    color: #fff !important;
    transform: translateY(-2px);
}

.kma-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 52px;
    padding: 13px 24px;

    border-radius: 14px;

    background: rgba(255,255,255,.06);

    color: #fff !important;

    border: 1px solid rgba(255,255,255,.18);

    font-weight: 700;
    text-decoration: none;
}

.kma-secondary-btn:hover {
    background: rgba(255,255,255,.12);
    border-color: rgba(250,204,21,.6);
    transform: translateY(-2px);
}

/* =====================================================
   STATISTICS
===================================================== */

.kma-stat-card {
    position: relative;

    background: rgba(255,255,255,.96);

    border: 1px solid var(--kma-border);

    border-radius: var(--kma-radius);

    padding: 24px;

    box-shadow: var(--kma-shadow);

    overflow: hidden;
}

.kma-stat-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background:
        linear-gradient(
            90deg,
            var(--kma-green),
            var(--kma-orange),
            var(--kma-yellow)
        );
}

.kma-stat-number {
    font-size: clamp(1.8rem, 4vw, 2.5rem);

    font-weight: 900;

    color: var(--kma-green);
}

/* =====================================================
   CARDS
===================================================== */

.kma-card {
    background: #fff;

    border:
        1px solid var(--kma-border);

    border-radius: var(--kma-radius);

    box-shadow:
        0 10px 30px rgba(15,23,42,.06);

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

.kma-card:hover {
    transform: translateY(-5px);

    border-color:
        rgba(8,127,91,.35);

    box-shadow:
        0 20px 45px rgba(15,23,42,.11);
}

/* =====================================================
   SECTION SPACING
===================================================== */

section {
    position: relative;
}

.kma-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.kma-section-sm {
    padding-top: 56px;
    padding-bottom: 56px;
}

/* =====================================================
   SECURITY SECTION
===================================================== */

.kma-security {
    background:
        linear-gradient(
            135deg,
            #06101d,
            #081a2a 50%,
            #063b2d
        );

    color: #fff;
}

.kma-security-card {
    background:
        rgba(255,255,255,.055);

    border:
        1px solid rgba(255,255,255,.14);

    border-radius: 18px;

    backdrop-filter: blur(12px);

    box-shadow:
        0 15px 40px rgba(0,0,0,.15);
}

.kma-security-icon {
    width: 48px;
    height: 48px;

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

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            rgba(8,127,91,.35),
            rgba(18,168,120,.12)
        );

    color: #5eead4;

    flex: 0 0 auto;
}

/* =====================================================
   AWARD ACCENTS
===================================================== */

.kma-accent-green {
    color: var(--kma-green);
}

.kma-accent-orange {
    color: var(--kma-orange);
}

.kma-accent-yellow {
    color: var(--kma-yellow-dark);
}

.kma-award-line {
    width: 70px;
    height: 5px;

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            var(--kma-green),
            var(--kma-orange),
            var(--kma-yellow)
        );
}

/* =====================================================
   MODAL
===================================================== */

.modal-content {
    border: 0 !important;

    border-radius: 24px !important;

    overflow: hidden;

    box-shadow:
        0 30px 80px rgba(0,0,0,.25);
}

.modal-header {
    background:
        linear-gradient(
            135deg,
            var(--kma-green),
            #065f46
        );

    color: #fff;

    border-bottom: 0 !important;
}

.modal-footer {
    border-top: 1px solid #e2e8f0 !important;
}

.modal .btn-primary {
    background:
        linear-gradient(
            135deg,
            var(--kma-orange),
            var(--kma-orange-dark)
        ) !important;

    border: 0 !important;

    border-radius: 12px;

    font-weight: 800;
}

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

#mobileMenu {
    width: 100%;
}

#mobileMenu a {
    display: block;

    width: 100%;

    min-height: 48px;

    padding: 13px 16px;

    border-radius: 12px;
}

/* =====================================================
   TABLET
===================================================== */

@media (max-width: 991.98px) {

    .kma-section {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .kma-hero {
        min-height: auto;
    }

    nav {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    h1 {
        font-size: clamp(2.4rem, 7vw, 4rem);
        line-height: 1.05;
    }
}

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

@media (max-width: 767.98px) {

    body {
        font-size: 15px;
    }

    /* Fix desktop-style excessive whitespace */

    .kma-hero {
        min-height: auto !important;
    }

    .kma-section {
        padding-top: 48px !important;
        padding-bottom: 48px !important;
    }

    .kma-section-sm {
        padding-top: 36px !important;
        padding-bottom: 36px !important;
    }

    /* Navigation */

    nav {
        min-height: 70px !important;
    }

    nav .kma-brand-title {
        font-size: 13px !important;
        line-height: 1.2;
    }

    nav .kma-brand-subtitle {
        font-size: 8px !important;
        letter-spacing: .18em;
    }

    nav .kma-brand-mark {
        width: 42px !important;
        height: 42px !important;
    }

    /* Hero typography */

    h1 {
        font-size: clamp(2.15rem, 11vw, 3.3rem) !important;
        line-height: 1.02 !important;
        letter-spacing: -.035em;
    }

    h2 {
        font-size: clamp(1.8rem, 8vw, 2.5rem) !important;
        line-height: 1.1;
    }

    h3 {
        font-size: 1.2rem;
    }

    p {
        line-height: 1.7;
    }

    /* Hero buttons */

    .kma-primary-btn,
    .kma-secondary-btn,
    nav .kma-vote-btn {
        width: 100%;

        min-height: 50px;

        justify-content: center;
    }

    /* Stats */

    .kma-stat-card {
        padding: 20px;
        border-radius: 16px;
    }

    /* Security */

    .kma-security-card {
        padding: 18px !important;

        border-radius: 16px;
    }

    .kma-security-icon {
        width: 42px;
        height: 42px;
    }

    /* Cards */

    .kma-card {
        border-radius: 16px;
    }

    /* Modal */

    .modal-dialog {
        margin: 12px !important;
    }

    .modal-content {
        border-radius: 18px !important;
    }

    .modal-body {
        padding: 22px !important;
    }

    .modal-footer {
        padding: 16px !important;
    }

    /* Prevent horizontal overflow */

    .container,
    .container-fluid {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Tailwind grid safety */

    .grid {
        min-width: 0;
    }

    /* Long buttons/text */

    button,
    a {
        max-width: 100%;
    }
}

/* =====================================================
   SMALL PHONES
===================================================== */

@media (max-width: 420px) {

    .kma-section {
        padding-top: 38px !important;
        padding-bottom: 38px !important;
    }

    h1 {
        font-size: 2.05rem !important;
    }

    h2 {
        font-size: 1.75rem !important;
    }

    .kma-stat-number {
        font-size: 1.8rem;
    }

    nav {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

/* =====================================================
   REDUCE MOTION
===================================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}

/* =====================================================
   ACCESSIBILITY
===================================================== */

button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--kma-yellow);
    outline-offset: 3px;
}

/* =====================================================
   KMA FOOTER
===================================================== */

.kma-footer {
    background: #050b14;
    color: #cbd5e1;
}

.kma-footer a {
    color: #cbd5e1;
}

.kma-footer a:hover {
    color: var(--kma-yellow);
}

/* =====================================================
   PREMIUM GRADIENT TEXT
===================================================== */

.kma-gradient-text {
    background:
        linear-gradient(
            90deg,
            var(--kma-green-light),
            var(--kma-yellow),
            var(--kma-orange)
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

/* =====================================================
   STATUS BADGE
===================================================== */

.kma-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 7px 12px;

    border-radius: 999px;

    background:
        rgba(8,127,91,.10);

    color: var(--kma-green);

    border:
        1px solid rgba(8,127,91,.20);

    font-size: 12px;
    font-weight: 800;
}

.kma-live-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: var(--kma-green);

    box-shadow:
        0 0 0 4px rgba(8,127,91,.12);
}

/* =========================================================
   KMA 2026 — MOBILE CATEGORY PRESENTATION FIX
   Does NOT modify PHP, database or voting logic.
   ========================================================= */

/* Prevent the public page from creating horizontal scrolling */
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
}

* {
    box-sizing: border-box;
}

/* ---------------------------------------------------------
   CATEGORY SECTION
   --------------------------------------------------------- */

@media (max-width: 767.98px) {

    /* Category grids become one clean column */
    .grid {
        min-width: 0;
    }

    /* Generic grid containers used by award categories */
    .grid.sm\:grid-cols-2,
    .grid.md\:grid-cols-2,
    .grid.lg\:grid-cols-2,
    .grid.xl\:grid-cols-3,
    .grid.md\:grid-cols-3,
    .grid.lg\:grid-cols-3,
    .grid.xl\:grid-cols-4 {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    /* Category cards */
    .category-card,
    .award-category,
    .award-card,
    .voting-category,
    .category,
    [data-category],
    [class*="category-card"],
    [class*="award-card"] {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Category inner containers */
    .category-card > *,
    .award-category > *,
    .award-card > *,
    .voting-category > * {
        max-width: 100%;
        min-width: 0;
    }

    /* Prevent long category names from breaking layout */
    .category-card h2,
    .category-card h3,
    .category-card h4,
    .award-category h2,
    .award-category h3,
    .award-category h4,
    .award-card h2,
    .award-card h3,
    .award-card h4 {
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    /* -----------------------------------------------------
       NOMINEES
       ----------------------------------------------------- */

    .nominee,
    .nominee-card,
    .candidate,
    .candidate-card,
    [class*="nominee"],
    [class*="candidate"] {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    /* Nominee rows should never become tiny horizontal cards */
    .nominee-card,
    .candidate-card {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
    }

    /* Nominee name area */
    .nominee-card > div:first-child,
    .candidate-card > div:first-child {
        min-width: 0 !important;
        flex: 1 1 auto !important;
    }

    .nominee-card h4,
    .nominee-card h5,
    .candidate-card h4,
    .candidate-card h5 {
        overflow-wrap: anywhere;
        line-height: 1.3 !important;
    }

    /* -----------------------------------------------------
       VOTE / SELECT BUTTONS
       ----------------------------------------------------- */

    .nominee-card button,
    .candidate-card button,
    .category-card button,
    .award-card button,
    button[class*="vote"],
    a[class*="vote"] {
        min-height: 46px !important;
        min-width: 96px !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }

    /* Touch-friendly controls */
    button,
    a {
        -webkit-tap-highlight-color: transparent;
    }

    /* -----------------------------------------------------
       CATEGORY CONTAINERS
       ----------------------------------------------------- */

    section {
        max-width: 100%;
        overflow-x: hidden;
    }

    section > div {
        min-width: 0;
        max-width: 100%;
    }

    /* Tailwind max-width containers */
    .max-w-7xl,
    .max-w-6xl,
    .max-w-5xl,
    .max-w-4xl {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Comfortable mobile page padding */
    .px-5 {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    /* -----------------------------------------------------
       CATEGORY HEADERS
       ----------------------------------------------------- */

    .category-card .flex,
    .award-card .flex,
    .award-category .flex {
        min-width: 0;
    }

    /* Keep category icons from consuming excessive width */
    .category-card svg,
    .award-card svg,
    .award-category svg {
        flex-shrink: 0;
    }

    /* -----------------------------------------------------
       CATEGORY SPACING
       ----------------------------------------------------- */

    .category-card,
    .award-card,
    .award-category {
        margin-bottom: 16px !important;
    }

    /* Reduce excessive desktop-style padding */
    .category-card .p-8,
    .award-card .p-8,
    .award-category .p-8 {
        padding: 20px !important;
    }

    .category-card .p-10,
    .award-card .p-10,
    .award-category .p-10 {
        padding: 20px !important;
    }

    /* -----------------------------------------------------
       MOBILE TYPOGRAPHY
       ----------------------------------------------------- */

    .category-card h2,
    .award-card h2 {
        font-size: 1.35rem !important;
        line-height: 1.2 !important;
    }

    .category-card h3,
    .award-card h3 {
        font-size: 1.1rem !important;
        line-height: 1.3 !important;
    }

    /* -----------------------------------------------------
       GREEN / ORANGE / YELLOW BRANDING
       ----------------------------------------------------- */

    .kma-category-accent {
        border-left: 4px solid #16a34a !important;
    }

    .kma-vote-button {
        background: linear-gradient(
            135deg,
            #16a34a 0%,
            #f97316 55%,
            #eab308 100%
        ) !important;
        color: #ffffff !important;
        border: none !important;
        box-shadow: 0 8px 20px rgba(22, 163, 74, 0.22) !important;
    }

    .kma-vote-button:hover,
    .kma-vote-button:focus {
        transform: translateY(-1px);
        box-shadow: 0 10px 24px rgba(249, 115, 22, 0.25) !important;
    }

    /* -----------------------------------------------------
       FIX COMMON TAILWIND WIDTH UTILITIES ON PHONE
       ----------------------------------------------------- */

    .w-full {
        max-width: 100% !important;
    }

    /* Don't allow fixed widths to break the viewport */
    [class*="w-["] {
        max-width: 100% !important;
    }

    /* Don't allow large min widths */
    [class*="min-w-"] {
        min-width: 0 !important;
    }
}


/* =========================================================
   SMALL PHONES — 360px / 375px / 390px
   ========================================================= */

@media (max-width: 420px) {

    .px-5 {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .category-card,
    .award-card,
    .award-category,
    .voting-category {
        border-radius: 18px !important;
    }

    .category-card .p-8,
    .award-card .p-8,
    .award-category .p-8 {
        padding: 16px !important;
    }

    .category-card h2,
    .award-card h2 {
        font-size: 1.2rem !important;
    }

    .category-card h3,
    .award-card h3 {
        font-size: 1rem !important;
    }

    /* Nominees stack vertically when the screen is very narrow */
    .nominee-card,
    .candidate-card {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .nominee-card button,
    .candidate-card button,
    .category-card button,
    .award-card button {
        width: 100% !important;
        min-width: 0 !important;
    }

}


/* =========================================================
   TABLET
   ========================================================= */

@media (min-width: 768px) and (max-width: 1023.98px) {

    .grid.sm\:grid-cols-2,
    .grid.md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .category-card,
    .award-card,
    .award-category {
        min-width: 0 !important;
        max-width: 100% !important;
    }

}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

button:focus-visible,
a:focus-visible {
    outline: 3px solid #eab308 !important;
    outline-offset: 3px;
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }

}


/* =========================================================
   KMA 2026 FINAL PROFESSIONAL MOBILE DESIGN
   Green + Orange + Yellow
   Presentation layer only
   ========================================================= */

:root {
    --kma-green: #087f5b;
    --kma-green-dark: #045c43;
    --kma-green-light: #16a36f;
    --kma-orange: #f97316;
    --kma-orange-dark: #ea580c;
    --kma-yellow: #f4c542;
    --kma-yellow-dark: #d4a514;
    --kma-navy: #07111f;
    --kma-surface: #0d1828;
    --kma-card: #111f31;
    --kma-text: #f8fafc;
    --kma-muted: #94a3b8;
}

/* ---------------------------------------------------------
   GLOBAL SAFETY
   --------------------------------------------------------- */

html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    margin: 0;
    background: var(--kma-navy);
}

/* Prevent oversized Tailwind content from breaking mobile */
img,
svg,
video,
canvas {
    max-width: 100%;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

/* ---------------------------------------------------------
   BRAND COLOR OVERRIDES
   --------------------------------------------------------- */

.bg-teal-500,
.bg-teal-600,
.bg-emerald-500,
.bg-emerald-600 {
    background-color: var(--kma-green) !important;
}

.text-teal-300,
.text-teal-400,
.text-teal-500,
.text-teal-600,
.text-emerald-400,
.text-emerald-500,
.text-emerald-600 {
    color: var(--kma-green-light) !important;
}

.border-teal-400,
.border-teal-500,
.border-emerald-400,
.border-emerald-500 {
    border-color: var(--kma-green) !important;
}

/* Main voting/action buttons */
a[href*="vote"],
button[class*="vote"],
.vote-btn,
.vote-button,
.cta-vote,
.btn-vote {
    background: linear-gradient(
        135deg,
        var(--kma-orange),
        var(--kma-orange-dark)
    ) !important;
    color: #fff !important;
    border-color: var(--kma-orange) !important;
}

/* Award/highlight elements */
.kma-award,
.award-badge,
.category-badge,
.featured-badge {
    background: linear-gradient(
        135deg,
        var(--kma-yellow),
        var(--kma-yellow-dark)
    ) !important;
    color: #171717 !important;
}

/* ---------------------------------------------------------
   HEADER
   --------------------------------------------------------- */

header,
nav {
    max-width: 100%;
}

@media (max-width: 767px) {

    header,
    nav {
        width: 100% !important;
    }

    header .max-w-7xl,
    nav .max-w-7xl {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    header {
        min-height: 76px !important;
    }

    header a {
        max-width: 100%;
    }

    header img {
        max-height: 46px;
        width: auto;
    }

    /* Keep KMA title from forcing horizontal overflow */
    header .text-sm {
        font-size: 13px !important;
        line-height: 1.2 !important;
    }

    header .text-\[10px\] {
        font-size: 9px !important;
        letter-spacing: .25em !important;
    }

    /* Mobile menu */
    #mobileMenu {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 16px 18px !important;
    }

    #mobileMenu a {
        display: flex !important;
        align-items: center;
        min-height: 48px;
        padding: 12px 14px !important;
        border-radius: 12px;
    }

    #mobileMenu a:last-child {
        background: var(--kma-orange) !important;
        color: white !important;
    }
}

/* ---------------------------------------------------------
   HERO
   --------------------------------------------------------- */

@media (max-width: 767px) {

    section {
        max-width: 100% !important;
    }

    /* Reduce giant desktop typography */
    h1 {
        font-size: clamp(2.25rem, 11vw, 3.5rem) !important;
        line-height: .98 !important;
        letter-spacing: -.04em !important;
        overflow-wrap: anywhere;
    }

    h2 {
        font-size: clamp(1.65rem, 8vw, 2.5rem) !important;
        line-height: 1.05 !important;
        overflow-wrap: anywhere;
    }

    h3 {
        font-size: clamp(1.15rem, 6vw, 1.6rem) !important;
    }

    p {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    /* Hero containers */
    .max-w-7xl {
        max-width: 100% !important;
    }

    .px-5 {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .pt-20,
    .pt-24 {
        padding-top: 42px !important;
    }

    .pb-20,
    .pb-24 {
        padding-bottom: 42px !important;
    }

    /* Stop enormous decorative text */
    .text-8xl,
    .text-9xl {
        font-size: clamp(3rem, 17vw, 5rem) !important;
        line-height: .9 !important;
    }

    /* Hero action buttons */
    .mt-9 {
        margin-top: 24px !important;
    }

    .mt-9 a,
    .mt-9 button {
        width: 100% !important;
        min-height: 52px !important;
        justify-content: center !important;
    }
}

/* ---------------------------------------------------------
   CATEGORY SECTION
   --------------------------------------------------------- */

@media (max-width: 767px) {

    /* Any grid containing category cards becomes one column */
    .grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    /* Category/card containers */
    .rounded-\[2rem\],
    .rounded-\[1\.5rem\],
    .rounded-3xl,
    .rounded-2xl {
        max-width: 100% !important;
    }

    /* Reduce huge card padding */
    .rounded-\[2rem\] {
        padding: 14px !important;
    }

    /* Voting category cards */
    .rounded-\[1\.5rem\] {
        padding: 18px !important;
    }

    /* Category titles */
    .rounded-\[1\.5rem\] h2,
    .rounded-\[1\.5rem\] h3 {
        font-size: 22px !important;
        line-height: 1.15 !important;
    }

    /* Nominee buttons */
    .rounded-\[1\.5rem\] button,
    .rounded-\[1\.5rem\] a {
        width: 100% !important;
        min-height: 56px !important;
        margin-top: 10px !important;
        padding: 13px 15px !important;
        font-size: 15px !important;
        text-align: left !important;
    }

    /* Make selected nominee clearly visible */
    .rounded-\[1\.5rem\] button:hover,
    .rounded-\[1\.5rem\] button:focus,
    .rounded-\[1\.5rem\] a:hover,
    .rounded-\[1\.5rem\] a:focus {
        border-color: var(--kma-orange) !important;
    }
}

/* ---------------------------------------------------------
   STATISTICS
   --------------------------------------------------------- */

@media (max-width: 767px) {

    .text-3xl {
        font-size: 1.75rem !important;
    }

    .px-5.py-8 {
        padding: 20px 14px !important;
    }
}

/* ---------------------------------------------------------
   SECURITY SECTION
   --------------------------------------------------------- */

@media (max-width: 767px) {

    /* Security cards become comfortable mobile cards */
    [class*="security"],
    .security-card {
        width: 100% !important;
    }

    /* Prevent oversized security headings */
    .text-5xl,
    .text-6xl,
    .text-7xl {
        font-size: clamp(2rem, 10vw, 3rem) !important;
        line-height: 1.05 !important;
    }
}

/* ---------------------------------------------------------
   WELCOME MODAL
   --------------------------------------------------------- */

/* Desktop */
#kmaWelcomeModal .modal-dialog {
    max-width: 730px !important;
    width: calc(100% - 32px) !important;
    margin: 1.75rem auto !important;
}

#kmaWelcomeModal .modal-content {
    max-height: calc(100vh - 32px) !important;
    overflow: hidden !important;
    border-radius: 24px !important;
}

#kmaWelcomeModal .modal-body {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}

/* Mobile modal */
@media (max-width: 767px) {

    #kmaWelcomeModal {
        padding: 0 !important;
    }

    #kmaWelcomeModal .modal-dialog {
        width: calc(100% - 20px) !important;
        max-width: none !important;
        margin: 10px auto !important;
    }

    #kmaWelcomeModal .modal-content {
        width: 100% !important;
        max-height: calc(100vh - 20px) !important;
        border-radius: 20px !important;
        overflow: hidden !important;
    }

    #kmaWelcomeModal .modal-header {
        padding: 16px !important;
        min-height: 72px !important;
    }

    #kmaWelcomeModal .modal-header img {
        width: 48px !important;
        height: 48px !important;
    }

    #kmaWelcomeModal .modal-header h1,
    #kmaWelcomeModal .modal-header h2,
    #kmaWelcomeModal .modal-header h3 {
        font-size: 15px !important;
        line-height: 1.2 !important;
    }

    #kmaWelcomeModal .modal-body {
        max-height: calc(100vh - 110px) !important;
        overflow-y: auto !important;
        padding: 24px 18px !important;
    }

    #kmaWelcomeModal .modal-body h1,
    #kmaWelcomeModal .modal-body h2 {
        font-size: 27px !important;
        line-height: 1.1 !important;
    }

    #kmaWelcomeModal .modal-body p {
        font-size: 15px !important;
        line-height: 1.6 !important;
    }

    #kmaWelcomeModal .modal-body .rounded-xl,
    #kmaWelcomeModal .modal-body .rounded-2xl {
        padding: 14px !important;
        margin-bottom: 10px !important;
    }

    #kmaWelcomeModal .modal-footer {
        padding: 14px 18px !important;
    }

    #kmaWelcomeModal .modal-footer button,
    #kmaWelcomeModal .modal-footer a {
        width: 100% !important;
        min-height: 50px !important;
    }
}

/* Very small phones */
@media (max-width: 380px) {

    header {
        min-height: 68px !important;
    }

    h1 {
        font-size: 2.1rem !important;
    }

    #kmaWelcomeModal .modal-dialog {
        width: calc(100% - 12px) !important;
        margin: 6px auto !important;
    }

    #kmaWelcomeModal .modal-content {
        border-radius: 16px !important;
        max-height: calc(100vh - 12px) !important;
    }

    #kmaWelcomeModal .modal-body {
        padding: 18px 14px !important;
    }

    #kmaWelcomeModal .modal-body h1,
    #kmaWelcomeModal .modal-body h2 {
        font-size: 24px !important;
    }
}

/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */

@media (min-width: 768px) and (max-width: 1024px) {

    .max-w-7xl {
        padding-left: 28px !important;
        padding-right: 28px !important;
    }

    h1 {
        font-size: clamp(3.2rem, 7vw, 5rem) !important;
    }

    .grid {
        gap: 24px !important;
    }
}

/* ---------------------------------------------------------
   ACCESSIBILITY / TOUCH
   --------------------------------------------------------- */

button,
a[role="button"],
.btn,
.vote-btn {
    min-height: 44px;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--kma-yellow) !important;
    outline-offset: 3px;
}

/* ---------------------------------------------------------
   REDUCE ANIMATION FOR USERS WHO REQUEST IT
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

