:root {
    --color-school: #1a56db;
    --color-adult: #d97706;
    --color-kid: #15803d;
    --text-dark: #111;
    --text-muted: #333;
}

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

body {
    text-align: left;
    margin: 0 auto;
    padding: 20px;
    max-width: 1000px;
    font-family: "Helvetica Neue", Arial, sans-serif;
}

header {
    text-align: center;
    padding: 20px 0;
}

header a {
    display: inline-block;
    padding: 5px 10px;
    text-decoration: none;
    color: black;
}

header a:focus-visible,
.item a:focus-visible,
main a:focus-visible {
    outline: 2px solid var(--color-school);
    outline-offset: 2px;
}

#top {
    text-align: center;
    margin: 0 20px;
    border-top: 1px solid var(--text-dark);
    border-bottom: 1px solid var(--text-dark);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

.item {
    text-align: center;
}

.item a {
    text-decoration: none;
    color: var(--text-muted);
}

.item p {
    font-size: 14px;
    font-weight: bold;
    padding: 5px;
    border-radius: 5px;
}

.tag {
    width: fit-content;
    margin-left: auto;
    color: white;
}

.school {
    background-color: var(--color-school);
}

.adult {
    background-color: var(--color-adult);
}

.kid {
    background-color: var(--color-kid);
}

.item img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    display: block;
    margin: 10px auto;
    border: 1px solid var(--text-dark);
    border-radius: 5px;
}

.event-date {
    font-weight: normal;
    color: var(--text-muted);
}

/* Responsive: stack cards on narrow screens */
@media (max-width: 600px) {
    .info-grid {
        grid-template-columns: 1fr;
    }

    body {
        margin: 0;
        padding: 15px;
    }
}
