    body {
        font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        margin: 0;
        padding: 0;
        background: #94a2ae;
        color: #222;
        background-image: url(sibeliustalo.png);
        background-repeat: no-repeat;
        background-size: cover;
        padding-bottom: 70px; /* footerin korkeus + vähän ilmaa */
    }

    header {
        background: #004b8d;
        color: #fff;
        padding: 0.8rem 1.5rem 0.4rem;
        background-image: url(lahti2027-logo.png);
        background-size: 65px;
        background-repeat: no-repeat;
        background-position: 15px center;
    }

    header h1 {
        margin: 0;
        font-size: 1.4rem;
        text-align: center;
    }

    header p {
        margin: 0.2rem 0 0.4rem;
        font-size: 0.9rem;
        opacity: 0.9;
        text-align: center;
    }

    .user-bar {
        padding: 0.4rem 0 0.5rem;
        font-size: 0.9rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        max-width: 1000px;
        margin: 0 auto;
    }

    .user-bar a {
        color: #fff;
        text-decoration: underline;
        font-size: 0.9rem;
        margin-left: 0.7rem;
    }

    /* NAVIGAATIO */

    .top-nav-wrapper {
        background: #003968;
    }

    .top-nav {
        max-width: 1000px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.3rem 1rem;
    }

    .nav-links {
        list-style: none;
        display: flex;
        gap: 1rem;
        margin: 0;
        padding: 0;
    }

    .nav-links a {
        color: #fff;
        text-decoration: none;
        font-size: 0.9rem;
        padding: 0.3rem 0.4rem;
        border-radius: 999px;
    }

    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.14);
    }

    .nav-toggle {
        display: none;
        background: none;
        border: none;
        color: #fff;
        font-size: 1.4rem;
        cursor: pointer;
    }

    main {
        padding: 1rem;
        max-width: 1000px;
        margin: 0 auto;
    }

    .section {
        margin-bottom: 1.5rem;
    }

    .section h2 {
        margin: 0 0 0.6rem;
        font-size: 1.1rem;
    }

    .hero {
        /*background-color: rgba(255, 91, 53, 0.9);
        color: white;
        border-radius: 0.9rem;
        padding: 1rem 1.2rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);*/
        margin-bottom: 1.2rem;
    }

    .hero-title {
        font-size: 1.4rem;
        font-weight: 600;
        margin-bottom: 0.3rem;
    }

    .hero-ingress {
        font-size: 0.95rem;
        margin-bottom: 0.6rem;
    }

    .hero-content {
        font-size: 0.9rem;
    }

    .card {
        background: #fff;
        border-radius: 0.75rem;
        padding: 0.9rem 1rem;
        margin-bottom: 0.7rem;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    }

    .card-upcoming {
        border-left: 6px solid #f46444;
        background: #fff8e1;
        animation: pop-in 0.4s ease-out;
    }

    @keyframes pop-in {
        0% {
            opacity: 0;
            transform: translateY(8px) scale(0.96);
        }
        100% {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    .event-title {
        font-weight: 600;
        margin-bottom: 0.2rem;
    }

    .event-title .bus-icon {
        display: inline-block;
        width: 1.1em;
        height: 1.1em;
        margin-right: 0.35em;
        vertical-align: -0.1em; /* pieni "upotus" että istuu tekstiin nätisti */
    }

    .event-title .bus-icon svg {
        width: 100%;
        height: 100%;
        display: block;
        fill: currentColor; /* käyttää otsikon tekstiväriä */
    }

    /* BUS-ikonin automaattinen lisäys tulevien tapahtumien listaan */
    #upcoming-list .event-title {
        display: flex;
        align-items: center;
        gap: 0.35em;
    }

    #upcoming-list .event-title.bus-event::before {
        content: "";
        display: inline-block;
        width: 1.1em;
        height: 1.1em;
        background-color: currentColor;
        -webkit-mask: url('assets/icons/bus.svg') no-repeat center;
        mask: url('assets/icons/bus.svg') no-repeat center;
        mask-size: contain;
    }


    .event-time-place {
        font-size: 0.85rem;
        color: #555;
        margin-bottom: 0.35rem;
    }

    .event-desc,
    .news-ingress {
        font-size: 0.9rem;
    }

    .news-date {
        font-size: 0.8rem;
        color: #ddd;
        margin-bottom: 0.2rem;
    }

    .no-events {
        font-size: 0.9rem;
        color: #555;
    }

    .news-list {
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
    }

    .news-title {
        font-weight: 600;
        margin-bottom: 0.15rem;
    }

    .news-card {
        padding: 0.8rem 0.9rem;
    }

    /* Footer alapalkki */

    .footer-bar {
        position: fixed;
        left: 0;
        bottom: 0;
        width: 100%;
        box-sizing: border-box;
        background-color: #ffffff;
        text-align: center;
        padding: 8px 10px;
        z-index: 50;
        border-top: 1px solid #ddd;
    }

    .footer-logo {
        width: 100%;
        max-width: 300px;
    }

    .photo-upload-form {
        margin-bottom: 1.5rem;
    }

    .photo-upload-form .form-row {
        margin-bottom: 0.75rem;
    }

    .photo-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
        gap: 0.75rem;
    }

    .photo-item {
        background: #fff;
        border-radius: 0.75rem;
        padding: 0.4rem;
        box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    }

    .photo-item img {
        width: 100%;
        height: auto;
        border-radius: 0.5rem;
        display: block;
    }

    .photo-item figcaption {
        font-size: 0.75rem;
        margin-top: 0.25rem;
        color: #444;
    }
    
#toast-container {
    position:fixed; bottom:120px; right:20px;
    display:flex; flex-direction:column; gap:6px;
    z-index:9999; text-align:right;
}

.toast-msg {
    display: flex;            /* Ikoni + teksti vierekkäin */
    flex-direction: row;
    align-items: center;      /* Keskitetään pystysuunnassa */
    gap: 8px;                 /* Väli ikonille ja tekstille */
    padding: 8px 12px;
    border-radius: 6px;
    max-width: 360px;         /* Tee tästä tarvittaessa isompi, esim. 420px */
    text-align: left;         /* Kumotaan containerin text-align:right */
}

.toast-ok {
    background: #c6efce;
    color: #006100;
}

.toast-warn {
    background: #ffe599;
    color: #7f6000;
}

.toast-error {
    background: #f4cccc;
    color: #990000;
}

.toast-show {
    opacity: 1;
    transform: translateY(0);
}

.toast-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.toast-text {
    display: block;
    width: auto;
    white-space: normal;      /* Saa rivittyä, jos teksti on pitkä */
}

@keyframes shake {
    0%   { transform: translateX(0); }
    10%  { transform: translateX(-8px); }
    20%  { transform: translateX(8px); }
    30%  { transform: translateX(-6px); }
    40%  { transform: translateX(6px); }
    50%  { transform: translateX(-4px); }
    60%  { transform: translateX(4px); }
    70%  { transform: translateX(-2px); }
    80%  { transform: translateX(2px); }
    100% { transform: translateX(0); }
}

.toast-shake {
    animation: shake 0.45s ease;
}


    /* Tablet / pienempi desktop */

    @media (max-width: 900px) {

        /* Mobiilissa ei taustalogo-headerissa */
        header {
            /*background-image: none;*/
            padding-right: 1.2rem;
            padding-left: 1.2rem;
        }

        /* Tekstit oikeaan reunaan mobiilissa */
        header h1,
        header p {
            text-align: right;
        }

        main {
            padding: 1.2rem 1rem;
        }
        
        #toast-container {
        position:fixed;
        top:82px;
        right:10px;
        display:flex;
        flex-direction:column; gap:6px;
        z-index:9999;
        text-align:right;
        }
        
        .toast-warn {
        background: none;
        color: white;
        }
        
        .toast-text {
        font-size:10px;
        }
    }   

    /* Mobiilinavigaatio */

    @media (max-width: 700px) {
        .user-bar {
            flex-direction: column;
            align-items: flex-start;
            gap: 0.3rem;
        }

        .nav-links {
            display: none;
            flex-direction: column;
            gap: 0.2rem;
            margin-top: 0.4rem;
        }

        .nav-links.open {
            display: flex;
        }

        .nav-toggle {
            display: block;
        }

        .top-nav {
            flex-direction: column;
            align-items: flex-start;
        }
    }