/*
 * DJJC Dates: the Dates section (rows of dates) and the "Next up" chip.
 *
 * The look is the "Dates" section and the hero chip in
 * BRIEFS/ref-dates/home-desktop and home-phone, and the Upcoming / Past tabs in
 * dates-page-desktop.
 *
 * THE COLOURS ARE THE CUSTOM PROPERTIES IN THE FIRST BLOCK of each widget and
 * nothing else in this file names a colour (a colour after a var() is only
 * that property's own default, repeated for a page where the Elementor kit is
 * not loaded). In Elementor: the widget's Style tab > Colours.
 *
 * THE BUTTONS (Tickets, "All dates", the chip's Tickets pill) ARE THE SITE'S
 * ONE BUTTON. Each carries Elementor's own "elementor-button" class, so Site
 * Settings > Theme Style > Buttons gives it its font, size, capitals, letter
 * spacing, radius, padding and height, exactly as it does an Elementor Button
 * widget. This file gives them only their place in the layout and their four
 * colours, which are the Global Colours "Button", "Button text", "Button hover"
 * and "Button hover text" (the same four the Buttons panel is linked to). The
 * one block near the end that does spell a button out applies only on a page
 * with no Elementor kit at all. See "The buttons" below.
 *
 * THE LAYOUT NUMBERS ARE CUSTOM PROPERTIES TOO. What is written here is the
 * design as drawn, and it is what the shortcodes show. The Elementor widgets
 * set the same properties per device from their own controls, through
 * Elementor's stylesheet, which is more specific than this one. So a number is
 * only ever changed in the widget, never here.
 *
 * THE FONTS FOLLOW ELEMENTOR'S GLOBAL FONTS (Site Settings > Global Fonts),
 * exactly as DJJC Listen does it: the big display type is "Primary", the small
 * mono labels are "Secondary", everything else is "Text". Only the family (and
 * Primary's weight) is taken. The family named after each var() is what shows
 * on a page where Elementor's kit is not loaded. Nothing here loads a font.
 *
 * THE TEXT SIZES written here are the design's, and they are what the
 * shortcodes show. The Elementor widgets carry the same numbers as the
 * defaults of their Typography controls, per device, so a size is changed in
 * the widget. The section heading is the exception: it takes Primary's size
 * as well (88 / 72 / 56px, desktop / tablet / phone, when this was written),
 * the same as DJJC Listen's, so it is changed in Site Settings.
 *
 * THE BREAKPOINTS 767px AND 1024px are Elementor's defaults. When Site
 * Settings > Breakpoints says otherwise, the plugin prints this file with the
 * site's numbers in their place (djjc_dates_css_for_breakpoints).
 *
 * Selectors are doubled (.djjc-dates .djjc-dates__x) on purpose. The theme and
 * the Elementor kit both style bare a, button, h2, h3, ul and p, and a single
 * class ties with them; two classes win without needing !important.
 */

.djjc-dates,
.djjc-next-up {
    --djjc-font-display: var(--e-global-typography-primary-font-family, "obviously-narrow"), "Arial Narrow", sans-serif;
    --djjc-weight-display: var(--e-global-typography-primary-font-weight, 900);
    --djjc-font-label: var(--e-global-typography-secondary-font-family, "ibm-plex-mono"), ui-monospace, Menlo, Consolas, monospace;
    --djjc-font-body: var(--e-global-typography-text-font-family, "space-grotesk-variable"), system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* == Widget 1: the Dates section ========================================== */

.djjc-dates {
    --djjc-dates-bg: #0d0e0f;
    --djjc-dates-text: #f0dccd;
    --djjc-dates-muted: #a89c93;
    --djjc-dates-label: #8fd0da;
    --djjc-dates-accent: #c8683f;
    --djjc-dates-line: rgba(240, 220, 205, 0.14);
    /* The two buttons: the four button Global Colours. The hex is for a page where the kit is not loaded. */
    --djjc-dates-tickets-bg: var(--e-global-color-djjcbt, #C8683F);
    --djjc-dates-tickets-text: var(--e-global-color-djjcbx, #0D0E0F);
    --djjc-dates-tickets-hover-bg: var(--e-global-color-djjcbh, #8FD0DA);
    --djjc-dates-tickets-hover-text: var(--e-global-color-djjchx, #0D0E0F);
    --djjc-dates-all-bg: var(--e-global-color-djjcbt, #C8683F);
    --djjc-dates-all-text: var(--e-global-color-djjcbx, #0D0E0F);
    --djjc-dates-all-hover-bg: var(--e-global-color-djjcbh, #8FD0DA);
    --djjc-dates-all-hover-text: var(--e-global-color-djjchx, #0D0E0F);
    --djjc-dates-tabs-bg: rgba(13, 14, 15, 0.6);
    --djjc-dates-tab-on-bg: #f0dccd;
    --djjc-dates-tab-on-text: #0d0e0f;

    /* What the widget sets, per device. */
    --djjc-dates-col-date: 176px;     /* the day and date block */
    --djjc-dates-col-time: 236px;     /* the time, on desktop and tablet */
    --djjc-dates-col-tickets: 150px;  /* the Tickets pill, on desktop and tablet */
    --djjc-dates-gap: 24px;           /* between the columns */
    --djjc-dates-row-pad: 26px;       /* above and below each row */
    --djjc-dates-head-gap: 48px;      /* between the heading and the first row */

    /* Show / hide per device. "On" is what the element's display is, and 1 or 0 for its column. */
    --djjc-dates-day: block;
    --djjc-dates-time: block;
    --djjc-dates-time-on: 1;
    --djjc-dates-place: block;        /* the "Venue, City" line under the event name */
    --djjc-dates-city: block;
    --djjc-dates-city-inline: inline; /* the city where it follows the venue on that line */
    --djjc-dates-tickets: inline-flex;
    --djjc-dates-tickets-on: 1;

    background: var(--djjc-dates-bg);
    box-sizing: border-box;
    color: var(--djjc-dates-text);
    font-family: var(--djjc-font-body);
    font-size: 16px;
    /*
     * Stated, not inherited. An Elementor page's body carries the kit's own
     * typography (here: 900, uppercase), and without these every event name
     * and venue would come out in bold capitals.
     */
    font-style: normal;
    font-weight: 400;
    letter-spacing: normal;
    line-height: 1.28;
    padding: 100px 56px;
    text-transform: none;
}

@media (max-width: 1024px) {
    .djjc-dates {
        --djjc-dates-col-date: 136px;
        --djjc-dates-col-time: 180px;
        --djjc-dates-col-tickets: 130px;
        --djjc-dates-gap: 20px;
        --djjc-dates-row-pad: 24px;
        --djjc-dates-head-gap: 40px;

        padding: 80px 40px;
    }
}

@media (max-width: 767px) {
    .djjc-dates {
        --djjc-dates-col-date: 74px;
        --djjc-dates-gap: 14px;
        --djjc-dates-row-pad: 20px;
        --djjc-dates-head-gap: 28px;

        /*
         * The side padding here is the shortcode's. The Elementor widget's own
         * phone default is 0 at the sides (Style > Spacing > Section padding):
         * there the Elementor container it sits in already gives the page's
         * 20px gutter, and 20 more put the heading at 40px while every other
         * section starts at 20px.
         */
        padding: 64px 20px;
    }
}

.djjc-dates *,
.djjc-dates *::before,
.djjc-dates *::after,
.djjc-next-up,
.djjc-next-up *,
.djjc-next-up *::before,
.djjc-next-up *::after {
    box-sizing: border-box;
}

.djjc-dates [hidden] {
    display: none !important;
}

/* -- Header: label, heading, and the "All dates" link or the tabs ---------- */

.djjc-dates .djjc-dates__head {
    align-items: flex-end;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin: 0 0 var(--djjc-dates-head-gap);
}

.djjc-dates .djjc-dates__headings {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.djjc-dates .djjc-dates__label,
.djjc-dates .djjc-dates__tab,
.djjc-dates .djjc-dates__panel-title,
.djjc-dates .djjc-dates__day,
.djjc-dates .djjc-dates__time {
    font-family: var(--djjc-font-label);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.1em;
    line-height: 1.3;
    text-transform: uppercase;
}

.djjc-dates .djjc-dates__label {
    color: var(--djjc-dates-label);
    margin: 0;
    padding: 0;
}

.djjc-dates .djjc-dates__heading {
    color: var(--djjc-dates-text);
    font-family: var(--djjc-font-display);
    /* Site Settings > Global Fonts > Primary sets the size. The number after it is for a page where Elementor's kit is not loaded. */
    font-size: var(--e-global-typography-primary-font-size, 88px);
    font-weight: var(--djjc-weight-display);
    letter-spacing: 0.005em;
    line-height: 0.9;
    margin: 0;
    padding: 0;
    text-transform: uppercase;
}

/*
 * In the Elementor widget the heading is linked to Primary, and Elementor then
 * prints Primary's letter-spacing too. The design's stays: this is one class
 * more specific than that rule, and less than a letter-spacing typed into the
 * widget's own Typography control, which still wins.
 */
.elementor-widget-djjc-dates.elementor-widget-djjc-dates .djjc-dates .djjc-dates__heading {
    letter-spacing: 0.005em;
}

.djjc-dates .djjc-dates__all-wrap {
    display: flex;
    flex: none;
}

/* The copy under the list is the phone's, and the one that shows when tabs have the top corner. */
.djjc-dates .djjc-dates__all-wrap--bottom {
    display: none;
    margin-top: var(--djjc-dates-head-gap);
}

.djjc-dates.djjc-dates--both .djjc-dates__all-wrap--bottom {
    display: flex;
}

/*
 * "All dates": a button. Only where its words and its arrow sit is said here;
 * its look is in "The buttons" further down.
 */
.djjc-dates .djjc-dates__all.elementor-button {
    align-items: center;
    display: inline-flex;
    gap: 10px;
    justify-content: center;
}

/* The arrow is drawn 16px, taller than the button's one line of text. The margin keeps it from making this button taller than the others. */
.djjc-dates .djjc-dates__icon {
    flex: none;
    margin: -2px 0;
}

/* -- Tabs (mode: both) ----------------------------------------------------- */

.djjc-dates .djjc-dates__tabs {
    background: var(--djjc-dates-tabs-bg);
    border: 1px solid var(--djjc-dates-line);
    border-radius: 999px;
    display: flex;
    flex: none;
    gap: 6px;
    padding: 6px;
}

.djjc-dates .djjc-dates__tab,
.djjc-dates .djjc-dates__tab:hover,
.djjc-dates .djjc-dates__tab:focus {
    appearance: none;
    background: transparent;
    border: 0;
    border-radius: 999px;
    box-shadow: none;
    color: var(--djjc-dates-text);
    cursor: pointer;
    margin: 0;
    min-height: 0;
    padding: 12px 22px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.djjc-dates .djjc-dates__tab[aria-selected="true"],
.djjc-dates .djjc-dates__tab[aria-selected="true"]:hover,
.djjc-dates .djjc-dates__tab[aria-selected="true"]:focus {
    background: var(--djjc-dates-tab-on-bg);
    color: var(--djjc-dates-tab-on-text);
}

.djjc-dates .djjc-dates__tab[aria-selected="false"]:hover {
    color: var(--djjc-dates-label);
}

/* Without the script the two lists both show, each under its own title. With it the titles become the tabs. */
.djjc-dates .djjc-dates__panel-title {
    color: var(--djjc-dates-muted);
    margin: 0 0 16px;
    padding: 0;
}

.djjc-dates .djjc-dates__panel + .djjc-dates__panel {
    margin-top: var(--djjc-dates-head-gap);
}

.djjc-dates.is-tabbed .djjc-dates__panel-title {
    display: none;
}

.djjc-dates.is-tabbed .djjc-dates__panel + .djjc-dates__panel {
    margin-top: 0;
}

.djjc-dates .djjc-dates__panel:focus {
    outline: none;
}

/* -- The rows -------------------------------------------------------------- */

.djjc-dates .djjc-dates__list {
    border-bottom: 1px solid var(--djjc-dates-line);
    list-style: none;
    margin: 0;
    padding: 0;
}

.djjc-dates .djjc-dates__row {
    align-items: center;
    border-top: 1px solid var(--djjc-dates-line);
    column-gap: calc(var(--djjc-dates-gap) * var(--djjc-dates-tickets-on));
    display: grid;
    grid-template-columns: minmax(0, 1fr) calc(var(--djjc-dates-col-tickets) * var(--djjc-dates-tickets-on));
    list-style: none;
    margin: 0;
    padding: 0;
}

/* The whole row, bar the Tickets pill, is the link to the event's own page. */
.djjc-dates .djjc-dates__main {
    align-items: center;
    color: var(--djjc-dates-text);
    column-gap: var(--djjc-dates-gap);
    display: grid;
    grid-template-columns:
        var(--djjc-dates-col-date)
        minmax(0, 1fr)
        calc(var(--djjc-dates-col-time) * var(--djjc-dates-time-on));
    padding: var(--djjc-dates-row-pad) 0;
    position: relative;
    text-decoration: none;
}

.djjc-dates .djjc-dates__main:hover,
.djjc-dates .djjc-dates__main:focus {
    color: var(--djjc-dates-text);
    text-decoration: none;
}

/* Only in a row with the event name switched off: in the page for a screen reader and a crawler, not on the screen. */
.djjc-dates .djjc-dates__name {
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.djjc-dates .djjc-dates__when,
.djjc-dates .djjc-dates__where {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.djjc-dates .djjc-dates__day {
    color: var(--djjc-dates-muted);
    display: var(--djjc-dates-day);
}

.djjc-dates .djjc-dates__date {
    color: var(--djjc-dates-text);
    font-family: var(--djjc-font-display);
    font-size: 44px;
    font-weight: var(--djjc-weight-display);
    letter-spacing: 0.005em;
    line-height: 0.9;
    text-transform: uppercase;
}

/* "Saturday" and "October 18": the day and the date in their own case. */
.djjc-dates .djjc-dates__day.djjc-dates__day--as-is,
.djjc-dates .djjc-dates__date.djjc-dates__date--as-is {
    text-transform: none;
}

/*
 * The main line of the middle column: the event's name, or the venue when the
 * event name is switched off (then the venue sits straight inside __where).
 */
.djjc-dates .djjc-dates__title,
.djjc-dates .djjc-dates__where > .djjc-dates__venue {
    font-size: 26px;
    font-weight: 600;
    line-height: 1.2;
    overflow-wrap: anywhere;
    transition: color 0.15s ease;
}

.djjc-dates .djjc-dates__main:hover .djjc-dates__title,
.djjc-dates .djjc-dates__main:hover .djjc-dates__where > .djjc-dates__venue {
    color: var(--djjc-dates-label);
}

/* The smaller line under it: "Akbar, Los Angeles, CA" under the name, or the city alone under the venue. */
.djjc-dates .djjc-dates__place,
.djjc-dates .djjc-dates__where > .djjc-dates__city {
    color: var(--djjc-dates-muted);
    font-size: 16px;
    overflow-wrap: anywhere;
}

.djjc-dates .djjc-dates__place {
    display: var(--djjc-dates-place);
}

.djjc-dates .djjc-dates__where > .djjc-dates__city {
    display: var(--djjc-dates-city);
}

.djjc-dates .djjc-dates__place .djjc-dates__city {
    display: var(--djjc-dates-city-inline);
}

.djjc-dates .djjc-dates__time {
    color: var(--djjc-dates-muted);
    display: var(--djjc-dates-time);
    min-width: 0;
}

/* Tickets: a button. Only its place in the row is said here (and that the widget can hide it); its look is in "The buttons" further down. */
.djjc-dates .djjc-dates__tickets.elementor-button {
    align-items: center;
    display: var(--djjc-dates-tickets);
    justify-content: center;
    justify-self: end;
    white-space: nowrap;
}

.djjc-dates .djjc-dates__empty {
    border-bottom: 1px solid var(--djjc-dates-line);
    border-top: 1px solid var(--djjc-dates-line);
    color: var(--djjc-dates-muted);
    font-size: 17px;
    margin: 0;
    padding: var(--djjc-dates-row-pad) 0;
}

/* -- Rows per device: a row past that device's count is not shown there ---- */

@media (min-width: 1025px) {
    .djjc-dates .djjc-dates__row.is-off-d {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .djjc-dates .djjc-dates__row.is-off-t {
        display: none;
    }
}

@media (max-width: 767px) {
    .djjc-dates .djjc-dates__row.is-off-m {
        display: none;
    }
}

/* -- Tablet ---------------------------------------------------------------- */

@media (max-width: 1024px) {
    .djjc-dates .djjc-dates__heading {
        font-size: var(--e-global-typography-primary-font-size, 72px);
    }

    .djjc-dates .djjc-dates__date {
        font-size: 38px;
    }

    .djjc-dates .djjc-dates__title,
    .djjc-dates .djjc-dates__where > .djjc-dates__venue {
        font-size: 22px;
    }
}

/*
 * -- Phone: the row stacks ---------------------------------------------------
 * The date block on the left; event name, "Venue, City" and time on the right,
 * one over the other; the Tickets pill under them. "All dates" moves under the list.
 */

@media (max-width: 767px) {
    .djjc-dates .djjc-dates__head {
        align-items: flex-start;
        flex-direction: column;
    }

    .djjc-dates .djjc-dates__headings {
        gap: 12px;
    }

    /* The small mono capitals are never under 12px on a phone. */
    .djjc-dates .djjc-dates__label,
    .djjc-dates .djjc-dates__tab,
    .djjc-dates .djjc-dates__panel-title,
    .djjc-dates .djjc-dates__day,
    .djjc-dates .djjc-dates__time {
        font-size: 12px;
    }

    /* A thumb needs 44px. :hover and :focus are named because the rule that sets the tab's own min-height names them. */
    .djjc-dates .djjc-dates__tab,
    .djjc-dates .djjc-dates__tab:hover,
    .djjc-dates .djjc-dates__tab:focus {
        min-height: 44px;
    }

    .djjc-dates .djjc-dates__heading {
        font-size: var(--e-global-typography-primary-font-size, 56px);
    }

    .djjc-dates .djjc-dates__all-wrap--top {
        display: none;
    }

    .djjc-dates .djjc-dates__all-wrap--bottom {
        display: flex;
    }

    .djjc-dates .djjc-dates__all.elementor-button {
        gap: 8px;
    }

    .djjc-dates .djjc-dates__row {
        display: block;
    }

    .djjc-dates .djjc-dates__main {
        align-items: start;
        grid-template-columns: var(--djjc-dates-col-date) minmax(0, 1fr);
        grid-template-rows: auto 1fr;
    }

    /*
     * The date block runs down the side of both lines on the right, so the
     * time sits straight under the event name when there is no venue line,
     * not under the date block's height.
     */
    .djjc-dates .djjc-dates__when {
        grid-row: 1 / span 2;
    }

    .djjc-dates .djjc-dates__time {
        margin-top: 6px;
    }

    .djjc-dates .djjc-dates__where--empty + .djjc-dates__time {
        margin-top: 0;
    }

    .djjc-dates .djjc-dates__when,
    .djjc-dates .djjc-dates__where {
        gap: 4px;
    }

    .djjc-dates .djjc-dates__where,
    .djjc-dates .djjc-dates__time {
        grid-column: 2;
    }

    /* Event name off and no venue: the time moves up beside the date instead of sitting under a gap. */
    .djjc-dates .djjc-dates__where--empty {
        display: none;
    }

    .djjc-dates .djjc-dates__date {
        font-size: 26px;
    }

    .djjc-dates .djjc-dates__title,
    .djjc-dates .djjc-dates__where > .djjc-dates__venue {
        font-size: 18px;
    }

    .djjc-dates .djjc-dates__place,
    .djjc-dates .djjc-dates__where > .djjc-dates__city {
        font-size: 14px;
    }

    /* Under the venue, in line with it. */
    .djjc-dates .djjc-dates__tickets.elementor-button {
        margin: calc(var(--djjc-dates-row-pad) * -1 + 14px) 0 var(--djjc-dates-row-pad) calc(var(--djjc-dates-col-date) + var(--djjc-dates-gap));
    }
}

/* -- Focus: always visible, the same ring as DJJC Listen ------------------- */

.djjc-dates .djjc-dates__main:focus-visible,
.djjc-dates .djjc-dates__tickets:focus-visible,
.djjc-dates .djjc-dates__all:focus-visible,
.djjc-dates .djjc-dates__tab:focus-visible,
.djjc-dates .djjc-dates__panel:focus-visible {
    outline: 2px solid var(--djjc-dates-label);
    outline-offset: 3px;
}

/* A row runs the full width of the list, so its ring is drawn inside its edge. */
.djjc-dates .djjc-dates__main:focus-visible {
    outline-offset: -2px;
}

/* == Widget 2: the "Next up" chip ========================================= */

.djjc-next-up {
    --djjc-next-up-bg: rgba(13, 14, 15, 0.55);
    --djjc-next-up-border: rgba(240, 220, 205, 0.16);
    --djjc-next-up-text: #f0dccd;
    --djjc-next-up-label: #8fd0da;
    /* The Tickets pill: the four button Global Colours. The hex is for a page where the kit is not loaded. */
    --djjc-next-up-pill-bg: var(--e-global-color-djjcbt, #C8683F);
    --djjc-next-up-pill-text: var(--e-global-color-djjcbx, #0D0E0F);
    --djjc-next-up-pill-hover-bg: var(--e-global-color-djjcbh, #8FD0DA);
    --djjc-next-up-pill-hover-text: var(--e-global-color-djjchx, #0D0E0F);
    --djjc-next-up-date: #f0dccd;   /* SUN OCT 18 */
    --djjc-next-up-event: #f0dccd;  /* the event's name */
    --djjc-next-up-venue: #a89c93;  /* Venue, City */
    --djjc-next-up-sep: #a89c93;    /* the dots between them */

    /* What the widget sets, per device. */
    --djjc-next-up-blur: 14px;
    --djjc-next-up-radius: 999px;
    --djjc-next-up-gap: 18px;
    --djjc-next-up-direction: row;     /* row: one line. column: the label over the text, each piece on its own line. */
    --djjc-next-up-align: center;
    --djjc-next-up-piece: inline;
    --djjc-next-up-dot: inline;
    --djjc-next-up-flow: flex;         /* flex: one line, every piece centred on one middle line. block: stacked. */
    --djjc-next-up-trim: trim-both;    /* trim-both: a piece's box is its capitals, top to baseline. none: stacked. */
    --djjc-next-up-width: auto;
    --djjc-next-up-pad-top: 12px;
    --djjc-next-up-pad-right: 14px;
    --djjc-next-up-pad-bottom: 12px;
    --djjc-next-up-pad-left: 22px;

    align-items: var(--djjc-next-up-align);
    -webkit-backdrop-filter: blur(var(--djjc-next-up-blur));
    backdrop-filter: blur(var(--djjc-next-up-blur));
    background: var(--djjc-next-up-bg);
    border: 1px solid var(--djjc-next-up-border);
    border-radius: var(--djjc-next-up-radius);
    color: var(--djjc-next-up-text);
    display: inline-flex;
    flex-direction: var(--djjc-next-up-direction);
    font-family: var(--djjc-font-body);
    font-size: 17px;
    font-style: normal;
    font-weight: 500;
    gap: var(--djjc-next-up-gap);
    letter-spacing: normal;
    line-height: 1.3;
    max-width: 100%;
    padding: var(--djjc-next-up-pad-top) var(--djjc-next-up-pad-right) var(--djjc-next-up-pad-bottom) var(--djjc-next-up-pad-left);
    text-decoration: none;
    text-transform: none;
    vertical-align: top;
    width: var(--djjc-next-up-width);
}

/* With no Tickets pill at the end, the right side gets the left side's padding. */
.djjc-next-up:not(.djjc-next-up--tickets) {
    padding-right: var(--djjc-next-up-pad-left);
}

a.djjc-next-up:hover,
a.djjc-next-up:focus,
a.djjc-next-up:visited {
    color: var(--djjc-next-up-text);
    text-decoration: none;
}

a.djjc-next-up:focus-visible {
    outline: 2px solid var(--djjc-next-up-label);
    outline-offset: 3px;
}

.djjc-next-up .djjc-next-up__label {
    flex: none;
    font-family: var(--djjc-font-label);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.1em;
    line-height: 1.3;
    text-transform: uppercase;
}

.djjc-next-up .djjc-next-up__label {
    color: var(--djjc-next-up-label);
}

/*
 * One line: every piece is centred on one shared middle line. The label, the
 * date, the event's name and the venue are each cut down to their capitals
 * (top of a capital to the line the letters sit on), and those boxes are
 * centred in the chip, with the dots between them. So the middle of each piece's capitals is level
 * whatever font and size each one has, and a bigger piece reaches the same
 * distance above and below. Nothing here is a per-font number.
 * A browser without "text-box-trim" (Firefox today) centres the untrimmed
 * lines instead: closer than a shared baseline, level to about 2px, not exact.
 * Stacked (phones) is left as it was.
 */
.djjc-next-up .djjc-next-up__label,
.djjc-next-up .djjc-next-up__piece {
    text-box-edge: cap alphabetic;
    text-box-trim: var(--djjc-next-up-trim);
}

.djjc-next-up .djjc-next-up__body {
    align-items: center;
    display: flex;
    gap: var(--djjc-next-up-gap);
    justify-content: space-between;
    min-width: 0;
}

.djjc-next-up .djjc-next-up__text {
    align-items: center;
    display: var(--djjc-next-up-flow);
    flex-wrap: wrap;
    min-height: 1.6em;   /* a chip with no Tickets pill keeps its height */
    min-width: 0;
    row-gap: 0.6em;
}

.djjc-next-up .djjc-next-up__piece {
    display: var(--djjc-next-up-piece);
}

/*
 * The three parts of the chip, each with its own type. Mono for the date
 * (Global Fonts > Secondary), the display face for the event's name (Primary:
 * its family and weight only, never its size), the body face for the venue
 * (Text). On one line they share a middle line (see the label above). A piece
 * that is none of the three keeps the chip's own "Text" style above.
 */
.djjc-next-up .djjc-next-up__piece--date {
    color: var(--djjc-next-up-date, #f0dccd);
    font-family: var(--djjc-font-label);
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.08em;
}

.djjc-next-up .djjc-next-up__piece--caps {
    text-transform: uppercase;
}

.djjc-next-up .djjc-next-up__piece--event {
    color: var(--djjc-next-up-event, #f0dccd);
    font-family: var(--djjc-font-display);
    font-size: 22px;
    font-weight: var(--djjc-weight-display);
    letter-spacing: 0.01em;
    line-height: 1.1;
    text-transform: uppercase;
}

.djjc-next-up .djjc-next-up__piece--venue {
    color: var(--djjc-next-up-venue, #a89c93);
    font-size: 17px;
    font-weight: 400;
}

/* A dot is drawn as a small round mark, not typed, so its middle is on the middle line in any font. */
.djjc-next-up .djjc-next-up__dot {
    background: currentColor;
    border-radius: 50%;
    color: var(--djjc-next-up-sep, #a89c93);
    display: var(--djjc-next-up-dot);
    flex: none;
    height: 0.16em;
    line-height: 0;
    margin: 0 0.4em;
    overflow: hidden;
    text-indent: 2em;
    white-space: nowrap;
    width: 0.16em;
}

.djjc-next-up .djjc-next-up__caps {
    text-transform: uppercase;
}

/* The Tickets pill: a button. Only its place in the chip is said here; its look is in "The buttons" at the end. */
.djjc-next-up .djjc-next-up__pill.elementor-button {
    align-items: center;
    display: inline-flex;
    flex: none;
    justify-content: center;
    white-space: nowrap;
}

/*
 * Phone, as drawn: a card the width of the screen. The label on top, the date
 * over the venue, the Tickets pill on the right, tall enough for a thumb.
 */
@media (max-width: 767px) {
    .djjc-next-up {
        --djjc-next-up-radius: 18px;
        --djjc-next-up-gap: 10px;
        --djjc-next-up-direction: column;
        --djjc-next-up-align: stretch;
        --djjc-next-up-piece: block;
        --djjc-next-up-dot: none;
        --djjc-next-up-flow: block;
        --djjc-next-up-trim: none;
        --djjc-next-up-width: 100%;
        --djjc-next-up-pad-top: 16px;
        --djjc-next-up-pad-right: 18px;
        --djjc-next-up-pad-bottom: 16px;
        --djjc-next-up-pad-left: 18px;
    }

    .djjc-next-up .djjc-next-up__label {
        font-size: 12px;
    }

    .djjc-next-up .djjc-next-up__piece--date {
        font-size: 14px;
    }

    .djjc-next-up .djjc-next-up__piece--event {
        font-size: 20px;
    }

    .djjc-next-up .djjc-next-up__piece--venue {
        font-size: 16px;
    }

    .djjc-next-up .djjc-next-up__body {
        gap: 12px;
    }
}

/*
 * == The buttons ============================================================
 * Tickets and "All dates" in the Dates section, and the Tickets pill in the
 * chip. Each has Elementor's "elementor-button" class, so its font, size,
 * capitals, letter spacing, radius, padding, height and fade are the ones in
 * Site Settings > Theme Style > Buttons. Nothing in this file sets any of
 * those while the kit is loaded, so a change made there shows here.
 *
 * THE FOUR COLOURS are set here, from the custom properties in each widget's
 * first block: the Global Colours "Button", "Button text", "Button hover" and
 * "Button hover text", or what the widget's Style tab > Colours says instead.
 * The extra class in each selector is what puts these above the kit's own
 * button rule, wherever this file lands in the page.
 *
 * After a click a link keeps focus: that is the RESTING look. Keyboard focus is
 * the hover look, plus the ring.
 */
.djjc-dates .djjc-dates__tickets.elementor-button,
.djjc-dates .djjc-dates__tickets.elementor-button:focus {
    background-color: var(--djjc-dates-tickets-bg, #C8683F);
    color: var(--djjc-dates-tickets-text, #0D0E0F);
}

.djjc-dates .djjc-dates__tickets.elementor-button:hover,
.djjc-dates .djjc-dates__tickets.elementor-button:focus-visible {
    background-color: var(--djjc-dates-tickets-hover-bg, #8FD0DA);
    color: var(--djjc-dates-tickets-hover-text, #0D0E0F);
}

.djjc-dates .djjc-dates__all.elementor-button,
.djjc-dates .djjc-dates__all.elementor-button:focus {
    background-color: var(--djjc-dates-all-bg, #C8683F);
    color: var(--djjc-dates-all-text, #0D0E0F);
}

.djjc-dates .djjc-dates__all.elementor-button:hover,
.djjc-dates .djjc-dates__all.elementor-button:focus-visible {
    background-color: var(--djjc-dates-all-hover-bg, #8FD0DA);
    color: var(--djjc-dates-all-hover-text, #0D0E0F);
}

.djjc-next-up .djjc-next-up__pill.elementor-button {
    background-color: var(--djjc-next-up-pill-bg, #C8683F);
    color: var(--djjc-next-up-pill-text, #0D0E0F);
}

/* The whole chip is the link, so the pill answers wherever the pointer is on it. After a click the chip keeps focus, and the pill rests. */
a.djjc-next-up:hover .djjc-next-up__pill.elementor-button,
a.djjc-next-up:focus-visible .djjc-next-up__pill.elementor-button {
    background-color: var(--djjc-next-up-pill-hover-bg, #8FD0DA);
    color: var(--djjc-next-up-pill-hover-text, #0D0E0F);
}

/*
 * A PAGE WITH NO ELEMENTOR KIT (the shortcodes, on a site or a page where
 * Elementor is not running): there are no Site Settings to read, so the button
 * is spelled out, as designed. Elementor puts "elementor-kit-N" on the body of
 * every page it styles, and with it there this block does not apply at all.
 */
body:not([class*="elementor-kit-"]) .djjc-dates__tickets.elementor-button,
body:not([class*="elementor-kit-"]) .djjc-dates__all.elementor-button,
body:not([class*="elementor-kit-"]) .djjc-next-up__pill.elementor-button {
    border: 0;
    border-radius: 999px;
    font-family: var(--djjc-font-label);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.1em;
    line-height: 1;
    min-height: 44px;
    padding: 12px 24px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 0.15s ease, color 0.15s ease;
}

/*
 * == On the wall ============================================================
 * Inside a DJJC Places place (an ancestor with the class djjc-place) the room
 * shows behind the words, so nothing here paints a backdrop, and the quiet
 * text is lifted, one weight heavier, with a hairline shadow under every
 * letter. Every rule in this block starts .djjc-place, so a widget that is not
 * in a place (the live homepage, the shortcodes) is untouched.
 *
 * The three readability numbers are custom properties the widget's Style tab
 * > "On the wall" sets on its wrapper. The value after each var() is the
 * contract's default (djjc-places/CONTRACT.md "Wall style"), for the
 * shortcodes, which have no wrapper.
 */
.djjc-place .djjc-dates,
.djjc-place .djjc-next-up {
    text-shadow: var(--djjc-wall-shadow, 0 1px 1.5px rgba(0, 0, 0, 0.8));
}

/* Buttons are filled shapes with dark words: a shadow under those letters only smudges them. */
.djjc-place .djjc-dates .elementor-button,
.djjc-place .djjc-next-up .elementor-button,
.djjc-place .djjc-dates .djjc-dates__tab[aria-selected="true"] {
    text-shadow: none;
}

/* -- Dates on the wall ----------------------------------------------------- */

/* No backdrop: the section and its tabs bar draw nothing. The column sits in the middle. */
.djjc-place .djjc-dates {
    background: transparent;
    margin-inline: auto;
    max-width: var(--djjc-wall-width, 1040px);
    width: 100%;
}

.djjc-place .djjc-dates .djjc-dates__tabs {
    background: transparent;
}

/* The head: label, heading, then "All dates" or the tabs under them, all on one alignment (centre by default). */
.djjc-place .djjc-dates .djjc-dates__head {
    align-items: var(--djjc-wall-items, center);
    flex-direction: column;
    justify-content: flex-start;
    text-align: var(--djjc-wall-align, center);
}

.djjc-place .djjc-dates .djjc-dates__headings {
    align-items: var(--djjc-wall-items, center);
}

.djjc-place .djjc-dates .djjc-dates__all-wrap--bottom {
    justify-content: var(--djjc-wall-items, center);
}

/* Quiet text: labels, day names, times, the venue and city lines, the list titles, the text when there are no dates. */
.djjc-place .djjc-dates .djjc-dates__label,
.djjc-place .djjc-dates .djjc-dates__day,
.djjc-place .djjc-dates .djjc-dates__time,
.djjc-place .djjc-dates .djjc-dates__place,
.djjc-place .djjc-dates .djjc-dates__where > .djjc-dates__city,
.djjc-place .djjc-dates .djjc-dates__panel-title,
.djjc-place .djjc-dates .djjc-dates__empty {
    color: var(--djjc-wall-quiet, #e6d3c4);
}

/* Small text, one weight heavier. A weight typed into the widget's own Typography control still wins. */
.djjc-place .djjc-dates .djjc-dates__label,
.djjc-place .djjc-dates .djjc-dates__day,
.djjc-place .djjc-dates .djjc-dates__time,
.djjc-place .djjc-dates .djjc-dates__place,
.djjc-place .djjc-dates .djjc-dates__where > .djjc-dates__city,
.djjc-place .djjc-dates .djjc-dates__panel-title,
.djjc-place .djjc-dates .djjc-dates__tab,
.djjc-place .djjc-dates .djjc-dates__empty {
    font-weight: var(--djjc-wall-small-weight, 500);
}

/* -- Next Up on the wall ---------------------------------------------------
 * In the page flow, never in the corner: the Advanced tab's Position on the
 * live homepage is absolute, and its offsets do nothing once this is static.
 * The class is repeated so this beats Elementor's own position rule
 * (three classes) without !important.
 */
.djjc-place .elementor-widget-djjc-next-up.elementor-widget-djjc-next-up.elementor-widget-djjc-next-up {
    align-self: var(--djjc-wall-items, center);
    position: static;
    text-align: var(--djjc-wall-align, center);
}

.djjc-place .djjc-next-up {
    text-align: var(--djjc-wall-align, center);
}

.djjc-place .djjc-next-up .djjc-next-up__text {
    justify-content: var(--djjc-wall-items, center);
}

.djjc-place .djjc-next-up .djjc-next-up__label,
.djjc-place .djjc-next-up .djjc-next-up__piece--venue {
    color: var(--djjc-wall-quiet, #e6d3c4);
}

.djjc-place .djjc-next-up .djjc-next-up__dot {
    color: var(--djjc-wall-quiet, #e6d3c4);
}

.djjc-place .djjc-next-up .djjc-next-up__label,
.djjc-place .djjc-next-up .djjc-next-up__piece--date,
.djjc-place .djjc-next-up .djjc-next-up__piece--venue {
    font-weight: var(--djjc-wall-small-weight, 500);
}

/*
 * == Layout "list": one line per date, a page at a time (Brief 102) =========
 * The look is BRIEFS/102-ref/dates-list.png and dates-list-phone.png, and every
 * number below is from the HTML beside them. Only a section with the class
 * djjc-dates--list reads anything here, and the rows above never carry it.
 *
 * It comes after the wall block on purpose: where a rule here and a wall rule
 * are equally specific, this one is later and wins. That is how the list keeps
 * its head on one line, left-aligned, inside a place.
 *
 * The numbers are custom properties, set per device by the widget's List
 * controls (Content > Layout, Style > Colours, Style > Typography). Tablet
 * reads like desktop.
 */
.djjc-dates.djjc-dates--list {
    --djjc-list-width: 860px;          /* the widest the column gets */
    --djjc-list-edge: 24px;            /* the least space from the screen edge */
    --djjc-list-pad-y: 0px;            /* above and below */
    --djjc-list-label-gap: 10px;       /* label to heading */
    --djjc-list-head-gap: 20px;        /* heading to the first line */
    --djjc-list-all-lift: 4px;         /* the button, raised off the heading's foot */
    --djjc-list-col-day: 40px;
    --djjc-list-col-date: 96px;
    --djjc-list-name-gap: 16px;        /* after the event name */
    --djjc-list-col-time: 64px;
    --djjc-list-col-tickets: 92px;
    --djjc-list-row-pad-top: 8px;
    --djjc-list-row-pad-bottom: 7px;
    --djjc-list-day-gap: 2px;          /* phone: day to date */
    --djjc-list-meta-gap: 3px;         /* phone: event name to the line under it */
    --djjc-list-tap: 44px;             /* phone: the Tickets arrow's target */
    --djjc-list-pager-gap: 22px;       /* last line to the page buttons */
    --djjc-list-arrow: 44px;           /* a page button */
    --djjc-list-arrow-gap: 12px;       /* between the two */
    --djjc-list-line: rgba(240, 220, 205, 0.2);
    --djjc-list-arrow-line: rgba(240, 220, 205, 0.7);
    --djjc-list-quiet: var(--djjc-dates-muted); /* venue, time, page count. On the wall: the wall's quiet text. */

    /*
     * The column, in the middle. Its sides keep at least the edge space from
     * the screen; inside a DJJC Places place, that place's own side padding
     * (--djjc-stage-content-pad, from djjc-places) already counts toward it.
     */
    margin-inline: auto;
    max-width: none;
    padding: var(--djjc-list-pad-y) 0;
    width: min(var(--djjc-list-width), 100% - 2 * max(0px, var(--djjc-list-edge) - var(--djjc-stage-content-pad, 0px)));
}

/*
 * Inside a DJJC Places place the edge space is measured from the screen, not
 * from the boxes around the widget: the place's template adds its own padding
 * (an Elementor container's 10px), and the list still sits the edge space in
 * from the screen. It stays in the middle of the place.
 */
.djjc-place .djjc-dates.djjc-dates--list {
    --djjc-list-w: min(var(--djjc-list-width), 100vw - 2 * var(--djjc-list-edge));
    margin-inline: calc((100% - var(--djjc-list-w)) / 2);
    width: var(--djjc-list-w);
}

@media (max-width: 767px) {
    .djjc-dates.djjc-dates--list {
        --djjc-list-edge: 22px;
        --djjc-list-label-gap: 8px;
        --djjc-list-head-gap: 12px;
        --djjc-list-col-date: 64px;
        --djjc-list-col-tickets: 22px;
        --djjc-list-pager-gap: 16px;
        --djjc-list-arrow-gap: 10px;
    }
}

.djjc-place .djjc-dates.djjc-dates--list {
    --djjc-list-quiet: var(--djjc-wall-quiet, #e6d3c4);
}

/*
 * -- Where it starts on the live Stage (Brief 102b) --------------------------
 * A place's content sits in a scroller that starts at the Stage's content top
 * and centres short content. A place holding the list starts it from the top
 * instead: the label's top lands on --djjc-list-top (Content > Layout > "Top
 * of the label, from the screen top", 150 / 150 / 96), whatever the number of
 * dates, and a list taller than the screen scrolls from its top. Only a place
 * with a list in it changes; the fallback (no .djjc-stage--live) and the rows
 * never match.
 *
 * The control sets --djjc-list-top on the scroller; the defaults below match
 * it, under :where() so the control wins. From the scroller's top to the label:
 * the template's container padding (Elementor's --padding-top, 10px by
 * default), then the section's top margin, then its own space above
 * (--djjc-list-pad-y).
 *
 * The scroller moves up only when the label sits higher than the content top
 * leaves room for (the phone: 96 against 112): it starts at
 * min(content top, label top - the container's default padding), never lower
 * than today. The section's margin makes up the rest, so the label lands
 * exactly with the container's own padding. A container padding larger than
 * the default can push the label down by the difference, never up or clipped.
 */
:where(.djjc-stage--live .djjc-place__scroll:has(.djjc-dates--list)) {
    --djjc-list-top: 150px;
}

@media (max-width: 767px) {
    :where(.djjc-stage--live .djjc-place__scroll:has(.djjc-dates--list)) {
        --djjc-list-top: 96px;
    }
}

.djjc-stage--live .djjc-place__scroll:has(.djjc-dates--list) {
    --djjc-list-scroll-top: min(var(--djjc-stage-content-top, 120px), var(--djjc-list-top) - var(--container-default-padding-top, 10px));
    top: var(--djjc-list-scroll-top);
}

.djjc-stage--live .djjc-place__content:has(.djjc-dates--list) {
    margin-top: 0;
}

.djjc-stage--live .djjc-place .djjc-dates.djjc-dates--list {
    margin-top: max(0px, var(--djjc-list-top) - var(--djjc-list-scroll-top) - var(--padding-top, 0px) - var(--djjc-list-pad-y));
}

/* -- The head: label and heading on the left, the button on the right, on the heading's foot -- */

.djjc-dates.djjc-dates--list .djjc-dates__head {
    align-items: flex-end;
    column-gap: 24px;
    flex-direction: row;
    flex-wrap: wrap; /* a heading too wide for the button beside it puts the button under it, never over it */
    justify-content: space-between;
    margin: 0 0 var(--djjc-list-head-gap);
    row-gap: 12px;
    text-align: left;
}

.djjc-dates.djjc-dates--list .djjc-dates__headings {
    align-items: flex-start;
    gap: var(--djjc-list-label-gap);
}

/* The label is the teal of the day names, as in the pictures. */
.djjc-dates.djjc-dates--list .djjc-dates__label {
    color: var(--djjc-dates-label);
    font-size: 12px;
    letter-spacing: 3px;
}

/* margin-left: auto keeps it on the right edge even when it has had to go under the heading. */
.djjc-dates.djjc-dates--list .djjc-dates__all-wrap--top {
    display: flex;
    margin-bottom: var(--djjc-list-all-lift);
    margin-left: auto;
}

/* -- One line per date ----------------------------------------------------- */

.djjc-dates.djjc-dates--list .djjc-dates-list__rows {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* The script turns pages with a sideways swipe; the page still scrolls up and down and still zooms. */
.djjc-dates.djjc-dates--list .djjc-dates-list.is-paged .djjc-dates-list__rows {
    touch-action: pan-y pinch-zoom;
}

/* A hairline under every line, and over the first one showing (the first of the list, or of the page). */
.djjc-dates.djjc-dates--list .djjc-dates-list__row {
    align-items: baseline;
    border-bottom: 1px solid var(--djjc-list-line);
    display: grid;
    grid-template-columns: minmax(0, 1fr) calc(var(--djjc-list-col-tickets) * var(--djjc-dates-tickets-on));
    list-style: none;
    margin: 0;
    padding: 0;
}

.djjc-dates.djjc-dates--list .djjc-dates-list__row:first-child,
.djjc-dates.djjc-dates--list .djjc-dates-list__row[hidden] + .djjc-dates-list__row {
    border-top: 1px solid var(--djjc-list-line);
}

/* The line, bar Tickets, is the link to the event's own page. Its pieces sit in fixed columns, so a hidden day leaves its column empty. */
.djjc-dates.djjc-dates--list .djjc-dates-list__main {
    align-items: baseline;
    color: var(--djjc-dates-text);
    display: grid;
    grid-template-columns:
        var(--djjc-list-col-day)
        var(--djjc-list-col-date)
        minmax(0, 1fr)
        minmax(0, 1fr)
        calc(var(--djjc-list-col-time) * var(--djjc-dates-time-on));
    min-width: 0;
    padding: var(--djjc-list-row-pad-top) 0 var(--djjc-list-row-pad-bottom);
    text-decoration: none;
}

.djjc-dates.djjc-dates--list .djjc-dates-list__main:hover,
.djjc-dates.djjc-dates--list .djjc-dates-list__main:focus {
    color: var(--djjc-dates-text);
    text-decoration: none;
}

/* Across: the wrappers step aside and their pieces are the line's columns. */
.djjc-dates.djjc-dates--list .djjc-dates-list__when,
.djjc-dates.djjc-dates--list .djjc-dates-list__what,
.djjc-dates.djjc-dates--list .djjc-dates-list__info {
    display: contents;
}

.djjc-dates.djjc-dates--list .djjc-dates-list__day {
    color: var(--djjc-dates-label);
    display: var(--djjc-dates-day);
    font-family: var(--djjc-font-label);
    font-size: 11px;
    font-weight: 400;
    grid-column: 1;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.djjc-dates.djjc-dates--list .djjc-dates-list__date {
    color: var(--djjc-dates-text);
    font-family: var(--djjc-font-display);
    font-size: 28px;
    font-weight: var(--djjc-weight-display);
    grid-column: 2;
    letter-spacing: 0.6px;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.djjc-dates.djjc-dates--list .djjc-dates-list__day.djjc-dates-list__day--as-is,
.djjc-dates.djjc-dates--list .djjc-dates-list__date.djjc-dates-list__date--as-is {
    text-transform: none;
}

/*
 * No ellipsis anywhere in the list (Brief 102b): a name or a venue line too
 * long for its column wraps onto a second line in the same column, starting
 * at the same left edge. A word longer than the column breaks rather than
 * running out of it. A line that fits is exactly as before.
 */
.djjc-dates.djjc-dates--list .djjc-dates-list__title {
    font-size: 18px;
    font-weight: 500;
    grid-column: 3;
    overflow-wrap: anywhere;
    padding-right: var(--djjc-list-name-gap);
    transition: color 0.15s ease;
}

.djjc-dates.djjc-dates--list .djjc-dates-list__main:hover .djjc-dates-list__title {
    color: var(--djjc-dates-label);
}

.djjc-dates.djjc-dates--list .djjc-dates-list__place {
    color: var(--djjc-list-quiet);
    font-size: 15px;
    grid-column: 4;
    min-width: 0;
    overflow-wrap: anywhere;
}

/* The city ("Culver City, CA") stays on one line; the line breaks before it, or at its dots. */
.djjc-dates.djjc-dates--list .djjc-dates-list__city {
    display: var(--djjc-dates-city-inline);
    white-space: nowrap;
}

.djjc-dates.djjc-dates--list .djjc-dates-list__comma,
.djjc-dates.djjc-dates--list .djjc-dates-list__dot {
    white-space: normal;
}

.djjc-dates.djjc-dates--list .djjc-dates-list__time {
    color: var(--djjc-list-quiet);
    display: var(--djjc-dates-time);
    font-family: var(--djjc-font-label);
    font-size: 12px;
    font-weight: 400;
    grid-column: 5;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Across, the venue and city are joined by a comma; stacked, by dots. */
.djjc-dates.djjc-dates--list .djjc-dates-list__dot {
    display: none;
}

/* Tickets: a small link at the right edge, only on a date that has a ticket link. */
.djjc-dates.djjc-dates--list .djjc-dates-list__tickets {
    align-items: center;
    color: var(--djjc-dates-text);
    display: var(--djjc-dates-tickets);
    font-family: var(--djjc-font-label);
    font-size: 11px;
    font-weight: 400;
    gap: 6px;
    justify-self: end;
    letter-spacing: 1.6px;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.15s ease;
    white-space: nowrap;
}

.djjc-dates.djjc-dates--list .djjc-dates-list__tickets:hover,
.djjc-dates.djjc-dates--list .djjc-dates-list__tickets:focus-visible {
    color: var(--djjc-dates-label);
    text-decoration: none;
}

.djjc-dates.djjc-dates--list .djjc-dates-list__icon {
    display: block;
    flex: none;
}

/* -- The pager: "Page 1 of 2" on the left, the two round buttons on the right -- */

.djjc-dates.djjc-dates--list .djjc-dates-list__pager {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-top: var(--djjc-list-pager-gap);
}

.djjc-dates.djjc-dates--list .djjc-dates-list__count {
    color: var(--djjc-list-quiet);
    font-family: var(--djjc-font-label);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 1.6px;
    margin: 0;
    padding: 0;
    text-transform: uppercase;
}

.djjc-dates.djjc-dates--list .djjc-dates-list__arrows {
    display: flex;
    flex: none;
    gap: var(--djjc-list-arrow-gap);
}

/*
 * A page button: DJJC Listen's arrow (round, a 1px outline, no fill, the
 * outline taking the text colour under the pointer), at the picture's size and
 * outline. :focus restates the resting look because the theme paints a focused
 * button, and a button keeps focus after a click; keyboard focus is the ring.
 */
.djjc-dates.djjc-dates--list .djjc-dates-list__arrow,
.djjc-dates.djjc-dates--list .djjc-dates-list__arrow:focus {
    align-items: center;
    appearance: none;
    background: transparent;
    border: 1px solid var(--djjc-list-arrow-line);
    border-radius: 50%;
    box-shadow: none;
    color: var(--djjc-dates-text);
    cursor: pointer;
    display: inline-flex;
    flex: none;
    font: inherit;
    height: var(--djjc-list-arrow);
    justify-content: center;
    margin: 0;
    min-height: 0;
    padding: 0;
    text-shadow: none;
    transition: border-color 0.15s ease, opacity 0.15s ease;
    width: var(--djjc-list-arrow);
}

.djjc-dates.djjc-dates--list .djjc-dates-list__arrow:hover {
    background: transparent;
    border-color: var(--djjc-dates-text);
    color: var(--djjc-dates-text);
}

/* Nowhere to go: dimmed, and it does nothing. */
.djjc-dates.djjc-dates--list .djjc-dates-list__arrow:disabled,
.djjc-dates.djjc-dates--list .djjc-dates-list__arrow:disabled:hover {
    border-color: var(--djjc-list-arrow-line);
    cursor: default;
    opacity: 0.3;
}

/* -- Focus: the same ring as everywhere else in the widget ------------------ */

.djjc-dates.djjc-dates--list .djjc-dates-list__main:focus-visible {
    outline: 2px solid var(--djjc-dates-label);
    outline-offset: -2px;
}

.djjc-dates.djjc-dates--list .djjc-dates-list__tickets:focus-visible,
.djjc-dates.djjc-dates--list .djjc-dates-list__arrow:focus-visible {
    outline: 2px solid var(--djjc-dates-label);
    outline-offset: 3px;
}

/* -- On the wall: the small text one weight heavier, as the rows have it ---- */

.djjc-place .djjc-dates.djjc-dates--list .djjc-dates-list__day,
.djjc-place .djjc-dates.djjc-dates--list .djjc-dates-list__place,
.djjc-place .djjc-dates.djjc-dates--list .djjc-dates-list__time,
.djjc-place .djjc-dates.djjc-dates--list .djjc-dates-list__tickets,
.djjc-place .djjc-dates.djjc-dates--list .djjc-dates-list__count {
    font-weight: var(--djjc-wall-small-weight, 500);
}

/*
 * -- Phone: the line stacks ---------------------------------------------------
 * Day over date on the left; the event name over one small mono line,
 * "VENUE · CITY · TIME"; on the right only the arrow of Tickets, in a target
 * big enough for a thumb, its arrow on the column's edge.
 */
@media (max-width: 767px) {
    .djjc-dates.djjc-dates--list .djjc-dates__label {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .djjc-dates.djjc-dates--list .djjc-dates-list__row {
        align-items: center;
    }

    .djjc-dates.djjc-dates--list .djjc-dates-list__main {
        align-items: center;
        grid-template-columns: var(--djjc-list-col-date) minmax(0, 1fr);
    }

    .djjc-dates.djjc-dates--list .djjc-dates-list__when,
    .djjc-dates.djjc-dates--list .djjc-dates-list__what {
        display: block;
        min-width: 0;
    }

    .djjc-dates.djjc-dates--list .djjc-dates-list__day {
        font-size: 9px;
        letter-spacing: 1.4px;
    }

    .djjc-dates.djjc-dates--list .djjc-dates-list__date {
        display: block;
        font-size: 21px;
        letter-spacing: 0.5px;
        margin-top: var(--djjc-list-day-gap);
    }

    .djjc-dates.djjc-dates--list .djjc-dates-list__title {
        display: block;
        font-size: 15px;
        padding-right: 0;
    }

    /*
     * The small line: venue, city and time, in the mono capitals, running as
     * one line of text. When it does not fit it wraps onto a second line from
     * the same left edge (Brief 102b, no ellipsis): at a space in the venue,
     * or at a dot. The city ("CULVER CITY, CA") and the time ("6 PM") are
     * never split.
     *
     * font-size 0 on the line itself: the gap between the venue and time
     * spans in the markup takes no room, and the line is exactly as tall as
     * their own type, as it was when they were flex items. The venue and time
     * carry their own sizes (below, or the widget's Typography), in px or rem.
     */
    .djjc-dates.djjc-dates--list .djjc-dates-list__info {
        display: block;
        font-size: 0;
        letter-spacing: 0;
        margin-top: var(--djjc-list-meta-gap);
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .djjc-dates.djjc-dates--list .djjc-dates-list__place,
    .djjc-dates.djjc-dates--list .djjc-dates-list__time {
        font-family: var(--djjc-font-label);
        font-size: 9.5px;
        letter-spacing: 0.8px;
        text-transform: uppercase;
    }

    .djjc-dates.djjc-dates--list .djjc-dates-list__place {
        display: inline;
    }

    /*
     * The time runs on after the city and keeps "6 PM" whole; its dot can end
     * the first line. Hidden by Content > "Time" (--djjc-dates-time: none)
     * through a style query, as an inline box cannot take that block value.
     */
    .djjc-dates.djjc-dates--list .djjc-dates-list__time {
        display: inline;
    }

    @container style(--djjc-dates-time: none) {
        .djjc-dates.djjc-dates--list .djjc-dates-list__time {
            display: none;
        }
    }

    .djjc-dates.djjc-dates--list .djjc-dates-list__comma {
        display: none;
    }

    /*
     * The dots join the pieces. pre-wrap keeps both their spaces (the markup's
     * own space before the time would otherwise swallow the first one) and
     * still lets the line break at them.
     */
    .djjc-dates.djjc-dates--list .djjc-dates-list__dot {
        display: inline;
        white-space: pre-wrap;
    }

    .djjc-dates.djjc-dates--list .djjc-dates-list__tickets {
        height: var(--djjc-list-tap);
        justify-content: center;
        margin-right: calc((var(--djjc-list-tap) - 11px) / -2);
        width: var(--djjc-list-tap);
    }

    .djjc-dates.djjc-dates--list .djjc-dates-list__tickets-text {
        display: none;
    }

    .djjc-dates.djjc-dates--list .djjc-dates-list__count {
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .djjc-dates *,
    .djjc-next-up,
    .djjc-next-up * {
        transition: none !important;
    }
}
