/*
 * Events: /events/ and each event's page.
 *
 * Loaded by Motay_Events on those templates only. The card treatment follows
 * the homepage's What's coming up, so an event looks like the same thing in
 * both places: a poster when there is one, and when there is not, an accent
 * with the name set large, which is the house treatment for "no picture".
 *
 * Shared furniture (.motay-section__inner, .motay-section__title,
 * .motay-eyebrow) comes from chrome.css; buttons from style.css. The player
 * is in chrome.css because the homepage uses it too.
 */

/* The list's heading ------------------------------------------------------ */

.motay-evhero {
    /* padding-block and padding-inline, never the padding shorthand, which
       zeroes the side gutter every other section gets. */
    padding-block: clamp(3rem, 2rem + 4vw, 5rem) 1rem;
    padding-inline: var(--motay-edge);
    background: var(--motay-ink);
}

.motay-evhero__title {
    font-family: var(--motay-font-display);
    font-weight: 900;
    font-size: var(--motay-step-xl);
    line-height: 1.02;
    letter-spacing: -0.03em;
    color: var(--motay-paper);
    margin: 0.5rem 0 0;
}

.motay-evhero__line {
    color: var(--motay-muted);
    font-size: var(--motay-step-md);
    line-height: 1.5;
    max-width: 46ch;
    margin-top: 1rem;
}

.motay-evempty {
    color: var(--motay-muted);
    font-size: var(--motay-step-md);
}

.motay-evgroup .motay-section__title,
.motay-evwatch .motay-section__title,
.motay-evmore .motay-section__title,
.motay-evabout .motay-section__title {
    margin-bottom: clamp(1.25rem, 1rem + 1.5vw, 2rem);
}

/* Cards: on now and coming up --------------------------------------------- */

.motay-evgrid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.25rem;
}

.motay-evcard {
    display: flex;
    flex-direction: column;
    background: var(--motay-ink-2);
    border: 1px solid rgba(244, 242, 237, 0.08);
    border-radius: 6px;
    overflow: hidden;
}

.motay-evcard__poster img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    height: auto;
    object-fit: cover;
}

.motay-evcard__body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
    padding: 1.6rem;
}

.motay-evcard__when {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--motay-aqua);
}

.motay-evcard__now {
    display: inline-block;
    margin-right: 0.5rem;
    padding: 0.3em 0.65em;
    border-radius: 4px;
    background: var(--motay-live);
    color: var(--motay-ink);
    font-weight: 800;
}

.motay-evcard__title {
    font-family: var(--motay-font-display);
    font-weight: 800;
    font-size: var(--motay-step-lg);
    line-height: 1.05;
    letter-spacing: -0.025em;
    overflow-wrap: break-word;
}

.motay-evcard__title a {
    color: var(--motay-paper);
    text-decoration: none;
}

.motay-evcard__title a:hover {
    text-decoration: underline;
}

.motay-evcard__line {
    color: var(--motay-muted);
    font-size: var(--motay-step-sm);
    line-height: 1.5;
}

.motay-evcard__countdown,
.motay-evpage__countdown {
    align-self: flex-start;
    padding: 0.5em 0.9em;
    border-radius: 5px;
    background: rgba(244, 242, 237, 0.09);
    font-family: var(--motay-font-display);
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--motay-paper);
}

.motay-evcard__actions {
    margin-top: auto;
    padding-top: 0.5rem;
}

.motay-btn--ink {
    background: var(--motay-ink);
    color: var(--motay-paper);
}

/* No poster: the type is the poster. Ink on aqua and orange; pure white on
   blue, because paper on this blue is 4.03:1 and fails. */
.motay-evcard--aqua   { background: var(--motay-aqua); border-color: transparent; }
.motay-evcard--orange { background: var(--motay-orange); border-color: transparent; }
.motay-evcard--blue   { background: var(--motay-blue); border-color: transparent; }

.motay-evcard--aqua .motay-evcard__body,
.motay-evcard--orange .motay-evcard__body,
.motay-evcard--blue .motay-evcard__body {
    justify-content: center;
    min-height: 16rem;
}

.motay-evcard--aqua .motay-evcard__title,
.motay-evcard--aqua .motay-evcard__title a,
.motay-evcard--orange .motay-evcard__title,
.motay-evcard--orange .motay-evcard__title a {
    color: var(--motay-ink);
    font-size: var(--motay-step-xl);
}

.motay-evcard--aqua .motay-evcard__line,
.motay-evcard--orange .motay-evcard__line { color: rgba(12, 15, 23, 0.78); }

.motay-evcard--aqua .motay-evcard__when,
.motay-evcard--orange .motay-evcard__when { color: rgba(12, 15, 23, 0.72); }

.motay-evcard--aqua .motay-evcard__countdown,
.motay-evcard--orange .motay-evcard__countdown {
    background: rgba(12, 15, 23, 0.1);
    color: var(--motay-ink);
}

.motay-evcard--blue .motay-evcard__title,
.motay-evcard--blue .motay-evcard__title a { color: #FFFFFF; font-size: var(--motay-step-xl); }
.motay-evcard--blue .motay-evcard__line { color: rgba(255, 255, 255, 0.88); }
.motay-evcard--blue .motay-evcard__when { color: rgba(255, 255, 255, 0.84); }
.motay-evcard--blue .motay-evcard__countdown { background: rgba(255, 255, 255, 0.16); color: #FFFFFF; }

/* Rows: dates to follow, past, also coming up ------------------------------ */

.motay-evrows {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid rgba(244, 242, 237, 0.1);
}

.motay-evrow {
    display: grid;
    gap: 1rem;
    align-items: center;
    padding-block: 1.25rem;
    border-bottom: 1px solid rgba(244, 242, 237, 0.1);
}

.motay-evrow__thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
}

.motay-evrow__when {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--motay-aqua);
    margin-bottom: 0.35rem;
}

.motay-evrow__title {
    font-family: var(--motay-font-display);
    font-weight: 800;
    font-size: var(--motay-step-md);
    line-height: 1.15;
    letter-spacing: -0.015em;
}

.motay-evrow__title a {
    color: var(--motay-paper);
    text-decoration: none;
}

.motay-evrow__title a:hover {
    text-decoration: underline;
}

.motay-evrow__line {
    color: var(--motay-muted);
    font-size: var(--motay-step-sm);
    line-height: 1.5;
    margin-top: 0.35rem;
}

.motay-evmore__all {
    margin-top: 1.75rem;
}

.motay-evmore__all a {
    color: var(--motay-blue-link);
    font-weight: 700;
}

/* One event -------------------------------------------------------------- */

.motay-evpage {
    padding-block: clamp(2.75rem, 1.75rem + 4vw, 5rem);
    padding-inline: var(--motay-edge);
    background: var(--motay-ink-2);
    border-bottom: 1px solid rgba(244, 242, 237, 0.08);
}

.motay-evpage__inner {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

.motay-evpage__stage {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--motay-aqua);
    margin-bottom: 0.9rem;
}

/* On now: the small red dot, beside paper text, never white on red. */
.motay-evpage--now .motay-evpage__stage {
    color: var(--motay-paper);
}

.motay-evpage__dot {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: var(--motay-live);
}

.motay-evpage__title {
    font-family: var(--motay-font-display);
    font-weight: 900;
    font-size: var(--motay-step-xl);
    line-height: 0.98;
    letter-spacing: -0.035em;
    color: var(--motay-paper);
    overflow-wrap: break-word;
}

.motay-evpage__line {
    color: #c6ccd8;
    font-size: var(--motay-step-md);
    line-height: 1.5;
    margin-top: 1.1rem;
    max-width: 36rem;
}

.motay-evpage__facts {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
    color: var(--motay-paper);
    font-size: var(--motay-step-base);
}

.motay-evpage__fact-label {
    display: inline-block;
    min-width: 4.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--motay-muted);
}

.motay-evpage__countdown {
    display: inline-block;
    margin-top: 1.5rem;
}

.motay-evpage__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.motay-evpage__picture img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* The highlights screen: the picture is the button. */
.motay-evwatch__screen {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    max-width: 60rem;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    background: var(--motay-blue);
    color: #FFFFFF;
    text-decoration: none;
}

.motay-evwatch__screen img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.motay-evwatch__screen::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(12, 15, 23, 0.8), rgba(12, 15, 23, 0.15));
}

.motay-evwatch__screen:hover img {
    transform: scale(1.03);
}

.motay-evwatch__label {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85em 1.4em;
    border-radius: 999px;
    background: var(--motay-orange);
    color: var(--motay-ink);
    font-weight: 800;
    font-size: var(--motay-step-base);
}

.motay-evwatch__label .motay-play__icon {
    border-left-color: var(--motay-ink);
}

.motay-evwatch__screen:focus-visible {
    outline: 3px solid var(--motay-aqua);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .motay-evwatch__screen img {
        transition: none;
    }

    .motay-evwatch__screen:hover img {
        transform: none;
    }
}

/* Wider screens ---------------------------------------------------------- */

@media (min-width: 40rem) {
    .motay-evrow--thumb {
        grid-template-columns: 9rem 1fr;
    }

    .motay-evrow--thumb .motay-evrow__act {
        grid-column: 2;
    }
}

@media (min-width: 48rem) {
    .motay-evgrid {
        grid-template-columns: repeat(2, 1fr);
    }

    .motay-evrow {
        grid-template-columns: 1fr auto;
    }

    .motay-evrow--thumb {
        grid-template-columns: 11rem 1fr auto;
    }

    .motay-evrow--thumb .motay-evrow__act {
        grid-column: auto;
    }

    .motay-evpage--pictured .motay-evpage__inner {
        grid-template-columns: 1.15fr 1fr;
        gap: 3.5rem;
    }
}

@media (min-width: 64rem) {
    .motay-evgrid {
        grid-template-columns: repeat(3, 1fr);
    }
}
