body
{
    width: 100%;
    margin: 0;
    padding: 0;

    line-height: 1.5;

    color: var(--font-color);

    display: flex;
    flex-direction: column;
    height: 100vh;

    --header-left-right-padding: 8%;
    --header-left-padding: var(--header-left-right-padding);
    --header-right-padding: var(--header-left-right-padding);

    font-optical-sizing: auto;
    font-style: normal;
}

header
{
    font-weight: 600;
}

header .upper-container
{
    padding: 6px 20px;
    padding-left: var(--header-left-padding);
    padding-right: var(--header-right-padding);
    background: var(--color-secondary);
    display: flex;
    justify-content: center;
    align-items: center;
}

header .upper-container .upper-container-commentary
{
    color: white;
    font-style: normal;
    font-weight: 400;
    font-size: var(--font-size-sm);
    letter-spacing: 0.03em;
}

header .upper-container .upper-container-commentary-link
{
    color: var(--color-primary);
    text-decoration: none;
}

header .upper-container .upper-container-commentary-link:hover
{
    color: var(--color-primary);
}

header .header-about-button
{
    position: relative;
    color: var(--font-color);
}

header .header-about-button .header-about
{
    display: flex;
    gap: 6px;
    
    cursor: pointer;
    text-decoration: none;
    transition-duration: var(--global-default-transition-duration);
}
header .header-about-button:hover .header-about
{
    text-decoration: none;
    color: var(--font-color-hover);
}
header .header-about-button .header-about i
{
    transition-duration: var(--global-default-transition-duration);
}
header .header-about-button:hover .header-about i
{
    transform: rotateZ(180deg);
}

header .about-dropdown
{
    visibility: hidden;
    pointer-events: none;
    opacity: 0;

    position: absolute;
    top: 100%;
    right: 0;
 
    background-color: white;

    display: flex;
    flex-direction: column;

    border-radius: 10px;
    overflow: hidden;

    width: 300px;

    transition-duration: var(--global-default-transition-duration);
}

header .header-about-button:hover .about-dropdown
{
    visibility: visible;
    pointer-events: visible;
    opacity: 1;
}

header .header-about-button .about-dropdown a
{
    color: var(--font-color);
    padding: 10px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;

    transition-duration: var(--global-default-transition-duration);
}

header .header-about-button .about-dropdown a:hover
{
    text-decoration: none;
    background-color: var(--color-primary-light);
}


.header-button-container
{
    display: flex;
    gap: 24px;
    align-items: center;
}

.bg-header-signin-button
{
    color: black;
    background-color: white;
    border: thin solid var(--color-btn-orange);
    transition-duration: var(--global-default-transition-duration);
    cursor: pointer;
    padding: 4px 20px;
    border-radius: 8px;
}

.bg-header-signin-button:hover
{
    color: white;
    background-color: var(--color-btn-orange);
    text-decoration: none;
}

/* ---- Hamburger button (hidden on desktop) ---- */

.lower-container-top-row
{
    display: contents;
}

.header-hamburger
{
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.4em;
    color: var(--font-color);
    padding: 4px 8px;
}

.header-hamburger-icon
{
    display: inline-block;
    position: relative;
    width: 24px;
    height: 18px;
    vertical-align: middle;
}

.header-hamburger-bar
{
    position: absolute;
    left: 0;
    width: 100%;
    height: 2.5px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.32s cubic-bezier(0.65, 0, 0.35, 1),
                opacity 0.2s ease,
                top 0.32s cubic-bezier(0.65, 0, 0.35, 1);
    will-change: transform, opacity, top;
}

.header-hamburger-bar:nth-child(1) { top: 0; }
.header-hamburger-bar:nth-child(2) { top: 8px; }
.header-hamburger-bar:nth-child(3) { top: 16px; }

.header-hamburger.is-open .header-hamburger-bar:nth-child(1)
{
    top: 8px;
    transform: rotate(45deg);
}

.header-hamburger.is-open .header-hamburger-bar:nth-child(2)
{
    opacity: 0;
    transform: scaleX(0.2);
}

.header-hamburger.is-open .header-hamburger-bar:nth-child(3)
{
    top: 8px;
    transform: rotate(-45deg);
}


/* ---- Full-screen mobile nav overlay (hidden on desktop) ---- */

#mobile-nav-overlay
{
    display: none;
}

@media only screen and (max-width: 1200px)
{
    header .lower-container
    {
        padding-inline: 16px !important;
    }
    .header-button-container
    {
        gap: 18px;
    }
}

@media only screen and (max-width: 1024px)
{
    header .lower-container
    {
        flex-direction: column;
        gap: 20px;
        font-size: 0.9em;
    }
    .header-logo-container, .header-button-container
    {
        justify-content: center;
    }
}

@media only screen and (max-width: 768px)
{
    /* Show hamburger, hide desktop nav */
    .header-hamburger
    {
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }

    .header-button-container
    {
        display: none !important;
    }

    /* Logo row */
    .lower-container-top-row
    {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    header .lower-container
    {
        flex-direction: column;
        align-items: stretch;
    }

    /* Mobile nav below the page header */
    #mobile-nav-overlay
    {
        display: flex;
        position: fixed;
        top: var(--mobile-nav-top, 0px);
        left: 0;
        right: 0;
        z-index: 100;
        pointer-events: none;
        background: var(--header-gradient-1);
        flex-direction: column;
        overflow-y: auto;
        max-height: calc(100vh - var(--mobile-nav-top, 0px));
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        transition: opacity 0.28s ease,
                    transform 0.32s cubic-bezier(0.65, 0, 0.35, 1),
                    visibility 0s linear 0.32s;
    }

    #mobile-nav-overlay .header-search-input
    {
        font-size: 1.1em;
    }

    #mobile-nav-overlay.nav-open
    {
        pointer-events: auto;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        transition: opacity 0.28s ease,
                    transform 0.32s cubic-bezier(0.65, 0, 0.35, 1),
                    visibility 0s linear 0s;
    }

    #mobile-nav-overlay .mobile-nav-link,
    #mobile-nav-overlay .mobile-nav-search
    {
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    #mobile-nav-overlay.nav-open .mobile-nav-link,
    #mobile-nav-overlay.nav-open .mobile-nav-search
    {
        opacity: 1;
        transform: translateY(0);
    }

    #mobile-nav-overlay.nav-open .mobile-nav-link:nth-child(1) { transition-delay: 0.08s; }
    #mobile-nav-overlay.nav-open .mobile-nav-link:nth-child(2) { transition-delay: 0.14s; }
    #mobile-nav-overlay.nav-open .mobile-nav-link:nth-child(3) { transition-delay: 0.20s; }
    #mobile-nav-overlay.nav-open .mobile-nav-link:nth-child(4) { transition-delay: 0.26s; }
    #mobile-nav-overlay.nav-open .mobile-nav-link:nth-child(5) { transition-delay: 0.32s; }
    #mobile-nav-overlay.nav-open .mobile-nav-search { transition-delay: 0.36s; }

    @media (prefers-reduced-motion: reduce)
    {
        #mobile-nav-overlay,
        #mobile-nav-overlay .mobile-nav-link,
        #mobile-nav-overlay .mobile-nav-search,
        .header-hamburger-bar
        {
            transition: none !important;
        }
    }

    .mobile-nav-links
    {
        display: flex;
        flex-direction: column;
        padding: 8px 0 40px;
    }

    .mobile-nav-link
    {
        font-family: 'Inter', sans-serif;
        font-weight: 600;
        font-size: 1.1em;
        color: var(--font-color);
        text-decoration: none;
        padding: 16px var(--header-left-padding);
        background: none;
        border: none;
        border-bottom: 1px solid rgba(0,0,0,0.06);
        text-align: left;
        cursor: pointer;
        width: 100%;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .mobile-nav-link:hover
    {
        color: var(--font-color-hover);
        text-decoration: none;
    }

    .mobile-nav-about-toggle
    {
        align-items: normal;
    }

    .mobile-nav-about-dropdown
    {
        display: none;
        flex-direction: column;
    }

    .mobile-nav-about-dropdown.open
    {
        display: flex;
    }

    .mobile-nav-sub-link
    {
        font-family: 'Inter', sans-serif;
        font-weight: 500;
        font-size: 0.95em;
        color: var(--font-color-secondary);
        text-decoration: none;
        padding: 12px calc(var(--header-left-padding) + 28px);
        border-bottom: 1px solid rgba(0,0,0,0.04);
    }

    .mobile-nav-sub-link:hover
    {
        color: var(--font-color-hover);
    }

    .mobile-nav-search
    {
        font-family: 'Inter', sans-serif;
        display: flex;
        align-items: center;
        margin: 16px var(--header-left-padding);
        border: 1px solid var(--color-primary);
        border-radius: 8px;
        background-color: #ffffff80;
        overflow: hidden;
    }

    .mobile-nav-search .header-search-input
    {
        display: block;
        flex: 1;
        min-width: 0;
    }

    .mobile-nav-search .header-search-btn
    {
        color: var(--color-secondary);
    }
}

/* ---- Default lower-container ---- */

header .lower-container
{
    display: flex;
    justify-content: space-between;

    font-family: 'Inter', sans-serif;

    padding: 20px;
    padding-left: var(--header-left-padding);
    padding-right: var(--header-right-padding);
    background: var(--header-gradient-1);
    background: linear-gradient(180deg,var(--header-gradient-1) 0%, rgba(255, 255, 255, 1) 100%);
}

.header-search-form
{
    display: flex;
    align-items: center;
    border: 1px solid var(--color-primary);
    border-radius: 8px;
    background-color: #ffffff80;
    overflow: hidden;
    width: 220px;
}

.header-search-input
{
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 6px 10px;
    font-size: 0.95em;
    font-family: inherit;
    color: var(--font-color);
    min-width: 0;
}

.header-search-input::placeholder
{
    color: var(--color-secondary);
}

.header-search-btn
{
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-secondary);
    padding: 6px 10px;
    font-size: 1em;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.header-search-btn:hover
{
    color: var(--color-btn-orange);
}

@media only screen and (max-width: 968px)
{
    .header-search-form
    {
        width: 160px;
    }
}










@media only screen and (max-width: 650px)
{
    header .upper-container
    {
        flex-direction: column;
        align-items: center;
    }

    .header-button-container
    {
        position: relative;
        margin-top: 10px;
    }

    header .header-about-button
    {
        position: static;
    }

    header .about-dropdown
    {
        left: 50%;
        transform: translateX(-50%);
        z-index: 99;
    }
}


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

.bg-footer {
    position: relative;
    background-color: var(--color-secondary);
    padding: 48px 0 20%;

    font-family: 'Inter', sans-serif;
}

.footer-content {
    display: flex;
    gap: 48px;
    max-width: var(--max-content-width);
    margin: 0 auto;
    padding: 0 48px;
    position: relative;
    z-index: 2;
}

.footer-col {
    flex: 1;
}

.footer-col-center {
    text-align: center;
}

.footer-col-right {
    text-align: right;
}

.footer-heading {
    font-weight: 700;
    font-size: 1.5em;
    color: var(--color-primary);
    margin: 0 0 20px;
}


.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 6px;
    line-height: 1.7;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 1em;
    transition: opacity 0.2s;
}

.footer-links a:hover {
    color: var(--color-primary);
    text-decoration: none;
}

/* Chariot silhouette */
.footer-chariot {
    position: absolute;
    bottom: 110px;
    right: 0;
    width: max(50%, 560px);
    object-fit: contain;
    pointer-events: none;
    opacity: 0.20;
    z-index: 1;
}

.footer-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    text-align: center;
    padding: 8px 16px;
    font-family: 'Inter', sans-serif;
    background-color: var(--color-primary);
}

.footer-bottom p {
    margin: 4px 0;
    color: var(--color-secondary);
    font-weight: 600;
}

/* Footer QR code */
.footer-qr {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.footer-qr-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 8px;
    background: white;
    padding: 6px;
}

.footer-qr-caption {
    margin: 6px 0 0;
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.7);
    text-align: right;
}

/* Feedback & copyright */
.footer-subtitle {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 24px 24px 12px;
    font-size: 0.9em;
}

.footer-subtitle div {
    margin: 6px 0;
}

.copyright-warning {
    color: white;
    text-align: center;
    background-color: red;
    font-weight: 700;
    padding: 5px 0;
    font-size: 0.85em;
}

/* Footer mobile */
@media (max-width: 768px) {
    .footer-col-center,
    .footer-col-right {
        text-align: left;
    }
    .footer-qr {
        align-items: flex-start;
    }
    .footer-qr-caption {
        text-align: left;
    }
    .bg-footer {
        padding-bottom: 30%;
    }
    .footer-chariot {
        width: 60%;
        bottom: 150px;
    }
}

@media (max-width: 640px) {
    .footer-content {
        flex-direction: column;
        gap: 32px;
        padding: 0 24px;
    }
    .footer-chariot {
        width: 90%;
        bottom: 260px;
    }
    .bg-footer {
        padding-bottom: 0;
    }
    .footer-bottom {
        position: relative;
        bottom: auto;
        margin-top: 10%;
        padding-bottom: 80px;
    }
}

/* =============================================
   What's New — Celebration Animations
   ============================================= */

.bg-popup-confetti {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    border-radius: inherit;
    z-index: 0;
}

.bg-popup-content-container {
    position: relative;
    z-index: 1;
}

@keyframes whats-new-shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}

#whats-new-popup .bg-popup-title {
    background: linear-gradient(
        90deg,
        var(--color-secondary) 30%,
        #c8a04a 50%,
        var(--color-secondary) 70%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: whats-new-shimmer 2.4s ease-in-out 0.4s 2;
}

@keyframes whats-new-item-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

#whats-new-popup .whats-new-list li {
    opacity: 0;
    animation: whats-new-item-in 0.4s ease forwards;
}

#whats-new-popup .whats-new-list li:nth-child(1) { animation-delay: 0.3s; }
#whats-new-popup .whats-new-list li:nth-child(2) { animation-delay: 0.45s; }
#whats-new-popup .whats-new-list li:nth-child(3) { animation-delay: 0.6s; }
#whats-new-popup .whats-new-list li:nth-child(4) { animation-delay: 0.75s; }
#whats-new-popup .whats-new-list li:nth-child(5) { animation-delay: 0.9s; }
#whats-new-popup .whats-new-list li:nth-child(6) { animation-delay: 1.05s; }
#whats-new-popup .whats-new-list li:nth-child(7) { animation-delay: 1.2s; }

.whats-new-title-break {
    display: none;
}

.whats-new-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.whats-new-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: var(--font-size-reading);
    color: var(--text-color, #333);
    line-height: 1.5;
    text-align: left;
}

.whats-new-list li::before {
    content: "✦";
    color: var(--primary-color, #c47d2e);
    flex-shrink: 0;
    margin-top: 1px;
}

@media (max-width: 480px) {
    .whats-new-title-break {
        display: inline;
    }

    .whats-new-list li {
        font-size: var(--font-size-base);
    }
}

@media (max-width: 468px) {
    .footer-chariot {
        bottom: 280px;
    }
}