/* ==========================================================================
   Site-wide additions (accessibility, cards, season states)
   ========================================================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:focus-visible {
    outline: 3px solid var(--teal);
    outline-offset: 2px;
}

/* Page titles */
h1.iconLeft img.icon {
    display: inline-block;
    vertical-align: middle;
    width: 44px;
    height: 44px;
    margin-right: 12px;
}

.season-name {
    display: block;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 400;
    color: var(--muted);
}

/* Cards: the title link covers the whole card */
article.card {
    position: relative;
}

article .card-link {
    color: inherit;
}

article .card-link::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

article .card-link:focus-visible {
    outline: none;
}

article.card:focus-within {
    outline: 3px solid var(--teal);
    outline-offset: 4px;
}

article .kicker {
    color: var(--muted);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 5px;
}

/* Past events: still listed, but clearly secondary */
article.is-past .pict img {
    filter: grayscale(1);
    opacity: .7;
}

article.is-past .content {
    opacity: .75;
}


.section-title {
    font-size: 30px;
    line-height: 1.2;
    margin: 20px 0 10px;
}

.empty {
    padding: 2% 2% 40px;
    color: var(--muted);
    font-size: 18px;
}

.skip-link {
    position: absolute;
    left: 10px;
    top: -60px;
    z-index: 1000;
    background: var(--ink);
    color: #fff;
    padding: 10px 16px;
}

.skip-link:focus {
    top: 10px;
}

/* Detail pages */
aside .aside-title {
    font-weight: 700;
}

.mainContent .lead {
    font-size: 20px;
    color: var(--muted);
    margin: -10px 0 25px;
}

.mainContent .line .kicker {
    margin-left: 10px;
    color: var(--muted);
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: .05em;
}

/* Section titles with a pictogram above */
.h1 img.icon {
    display: block;
    margin: 0 auto 12px;
    width: 48px;
    height: 48px;
}

.art-news {
    position: relative;
}

.art-news time.date {
    display: block;
}

/* Accordions (native <details>) */
details.item > summary {
    list-style: none;
}

details.item > summary::-webkit-details-marker {
    display: none;
}

details.item > .openCloseCont {
    max-height: none;
    padding: 20px 40px;
}

.openCloseCat2 details.item > .openCloseTitle {
    /* Long titles must not run under the chevron */
    padding-right: 50px;
}

.openCloseCat2 details.item > .openCloseCont {
    padding: 20px 0;
}

details.item[open] > .openCloseTitle {
    background-image: url(../img/up.svg);
}

.openCloseCont .cta {
    display: inline-block;
    margin-top: 15px;
}

h2.h4 {
    font-size: 1.33em;
    font-weight: 700;
}

article.team .content .job {
    margin-bottom: 10px;
}

/* Mobile menu toggle */
header button.icon {
    background: none;
    padding: 0;
    cursor: pointer;
}

header button.icon .menu-burger {
    display: flex;
}

.menu-burger > span {
    display: flex;
}

header .logo img,
.responsive-menu .moblogo img {
    height: auto;
}

.error-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 2% 60px;
}

/* Footer: logos on one line, then social links and credits */
.footer-logos {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-logos > * {
    flex: 0 1 auto;
    min-width: 0;
}

.footer-logos img {
    display: block;
    max-width: 100%;
    max-height: 56px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #e3e8e2;
}

footer .footer-bottom .socials {
    display: flex;
    margin: 0 -10px;
}

footer .footer-bottom .socials img {
    width: 32px;
}

.footer-bottom .credit {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 8px;
    font-size: 13px;
    color: var(--muted);
}

.footer-bottom .credit a {
    color: var(--ink);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 760px) {
    .footer-logos {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px 28px;
    }

    .footer-logos img {
        max-height: 48px;
        max-width: 110px;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

/* ==========================================================================
   Motion: light, smooth, and off for people who prefer reduced motion
   ========================================================================== */

:root {
    --ease-out: cubic-bezier(.22, .61, .36, 1);
}

html {
    scroll-behavior: smooth;
}

/* Cards: gentle lift, softer shadow, slow zoom of the picture */
article,
.wrapArticles article {
    transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}

article:hover,
article:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px -12px rgba(46, 72, 68, .28);
}

article .pict img {
    transition: transform 1s var(--ease-out), filter .45s var(--ease-out);
}

article:hover .pict img,
article:focus-within .pict img {
    transform: scale(1.05);
}

article .pict:after {
    z-index: 1;
    transition: border-bottom-width .45s var(--ease-out);
}

/* Buttons and links */
.cta {
    transition: background-color .25s var(--ease-out), color .25s var(--ease-out), transform .25s var(--ease-out);
}

.cta:active {
    transform: translateY(1px);
}

.arrowLink {
    transition: padding-right .3s var(--ease-out);
}

article:hover .arrowLink {
    padding-right: 32px;
}

/* Header gets a soft shadow once the page scrolls */
header {
    transition: box-shadow .3s var(--ease-out);
}

header.is-scrolled {
    box-shadow: 0 6px 24px -12px rgba(33, 33, 33, .25);
}

/* Footer calendar days */
.calendar .busy {
    transition: transform .2s var(--ease-out);
}

.calendar .busy:hover {
    transform: scale(1.12);
}

/* Reveal on scroll: only elements below the fold, added by global.js */
.reveal {
    opacity: 0;
    transform: translateY(18px);
}

.reveal-ready {
    transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
    transition-delay: var(--reveal-delay, 0s);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0s !important;
        animation-duration: 0s !important;
    }

    article:hover,
    article:focus-within,
    article:hover .pict img,
    article:focus-within .pict img,
    .calendar .busy:hover {
        transform: none;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
