:root {
    --kiwi-logo-green: #8cff4c;
}

.logo-text-only {
    display: inline-flex;
    align-items: center;

    gap: 10px;

    min-width: max-content;

    text-decoration: none;
}

.logo-main {
    color: var(--kiwi-logo-green);

    font-size: 20px;
    font-weight: 900;

    letter-spacing: -0.5px;
    line-height: 1;

    text-shadow:
        0 0 18px rgba(140, 255, 76, 0.15);
}

.logo-community {
    position: relative;

    top: 1px;

    color: #69716b;

    font-size: 9px;
    font-weight: 600;

    letter-spacing: 4px;

    line-height: 1;

    text-transform: uppercase;
}

.logo-text-only:hover .logo-main {
    color: #9aff5c;
}

.logo-text-only:hover .logo-community {
    color: #7b857e;
}



/* HEADER LOGO OVERRIDE */

.header .logo.logo-text-only {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-width: max-content !important;
    text-decoration: none !important;
}

.header .logo.logo-text-only .logo-main {
    display: inline-block !important;
    color: var(--kiwi-logo-green) !important;
    font-size: 20px !important;
    font-weight: 900 !important;
    letter-spacing: -0.5px !important;
    line-height: 1 !important;

    text-shadow:
        0 0 18px rgba(140, 255, 76, 0.16) !important;
}

.header .logo.logo-text-only .logo-community {
    display: inline-block !important;
    color: #69716b !important;
    font-size: 9px !important;
    font-weight: 600 !important;
    letter-spacing: 4px !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
}

.header .logo-symbol,
.header .logo-text,
.header .logo-title,
.header .logo-subtitle {
    display: none !important;
}

/* Reuse the navbar wordmark; keep the footer's existing link spacing. */
.footer .footer-logo.logo-text-only {
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
    max-width: 100%;
    min-height: 32px;
}
.footer .footer-logo:focus-visible {
    outline: 2px solid #9aff56;
    outline-offset: 5px;
}

/* Only the home page opts in. Backwards fill releases transforms afterwards. */
@media (prefers-reduced-motion: no-preference) {
    .header.is-nav-entrance {
        animation: home-navbar-enter 700ms cubic-bezier(.22, 1, .36, 1) backwards;
    }
    .header.is-nav-entrance .logo.logo-text-only {
        transform-origin: left center;
        animation: home-navbar-logo-enter 420ms 700ms cubic-bezier(.22, 1, .36, 1) backwards;
    }
    .header.is-nav-entrance:focus-within,
    .header.is-nav-entrance:focus-within .logo.logo-text-only {
        animation: none;
    }
}
@keyframes home-navbar-enter {
    from { opacity: 0; transform: translateY(-18px); }
    to { opacity: 1; transform: none; }
}
@keyframes home-navbar-logo-enter {
    from { opacity: 0; transform: scale(.94); }
    to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .header.is-nav-entrance,
    .header.is-nav-entrance .logo.logo-text-only {
        animation: none;
    }
}

/* Match the existing active nav-box accent inside dropdowns. */
.header .dropdown-item[aria-current="page"] { color: var(--green); background: rgba(154, 255, 86, .06); }
