/*
 * DD Weekly Guide frontend skin.
 *
 * Elementor remains the visual shell for the launch weekly page (accordion +
 * section headers). Core owns the dynamic rows below those headings. These
 * defaults intentionally mirror the established DD weekly Icon List treatment
 * while remaining scoped to .dd-weekly-guide so they cannot restyle unrelated
 * Elementor widgets.
 */
.dd-weekly-guide {
    --dd-weekly-highlight-color: #FC44B7;
    --dd-weekly-regular-color: #11DEFD;
    --dd-weekly-text-color: #fff;
    --dd-weekly-divider-color: #CCCCCC;
    display: grid;
    gap: 2rem;
    width: 100%;
    color: var(--dd-weekly-text-color);
}

.dd-weekly-guide-range {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    opacity: 0.62;
}

.dd-weekly-day {
    display: grid;
    gap: 0.75rem;
}

.dd-weekly-day-heading {
    display: flex;
    align-items: baseline;
    gap: 0.7rem;
    margin: 0;
    padding: 0 0 0.45rem;
    border-bottom: 1px solid currentColor;
    font: inherit;
    color: inherit;
}

.dd-weekly-day-name {
    font-size: 1.05em;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.dd-weekly-day-date {
    font-size: 0.72em;
    font-weight: 600;
    letter-spacing: 0.04em;
    opacity: 0.55;
}

.dd-weekly-section {
    display: grid;
    gap: 0.25rem;
    margin: 0.2rem 0 0.75rem;
}

.dd-weekly-section-heading {
    margin: 0;
    font: inherit;
    font-size: 0.82em;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.dd-weekly-section-highlights .dd-weekly-section-heading {
    font-size: 0.9em;
}

/* Dynamic list: exact launch-page Elementor Icon List contract. */
.dd-weekly-events {
    display: block;
    width: auto;
    margin: 0 40px !important;
    padding: 0 !important;
    list-style: none !important;
}

.dd-weekly-event {
    margin: 0 !important;
    padding: 0 !important;
    border: 0;
}

.dd-weekly-event:not(:last-child) {
    padding-bottom: 20px !important;
    border-bottom: 1px solid var(--dd-weekly-divider-color);
}

.dd-weekly-event:not(:first-child) {
    padding-top: 20px !important;
}

.dd-weekly-event::marker {
    content: "";
}

.dd-weekly-event-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
    padding: 0;
    color: var(--dd-weekly-text-color) !important;
    font-family: "Poppins", sans-serif !important;
    font-size: 38px !important;
    font-style: normal !important;
    font-weight: 600 !important;
    line-height: normal !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
    text-decoration: none !important;
    text-transform: none !important;
    opacity: 1 !important;
    transition: color 0.3s ease;
}

.dd-weekly-event-link:visited,
.dd-weekly-event-link:hover,
.dd-weekly-event-link:focus,
.dd-weekly-event-link:active {
    color: var(--dd-weekly-text-color) !important;
    text-decoration: none !important;
    opacity: 1 !important;
}

.dd-weekly-event-link:hover .dd-weekly-event-title,
.dd-weekly-event-link:focus .dd-weekly-event-title {
    text-decoration: none !important;
}

.dd-weekly-event-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex: 0 0 auto !important;
    min-width: 0 !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    color: inherit;
}

/* Mirror Elementor Icon List's Font Awesome geometry exactly:
 * - the <i> gets a 1.25em layout width
 * - icon font-size is 35px
 * - the text element supplies the configured 5px gap
 *
 * This is intentionally different from using the glyph's intrinsic width.
 * Elementor reserves the 1.25em icon column even for narrow glyphs such as
 * fa-music, which is why the established manual lists have a consistent
 * text start position across different icons. */
.dd-weekly-event-icon .dd-fa-icon {
    display: inline-block !important;
    flex: 0 0 auto !important;
    min-width: 0 !important;
    max-width: none !important;
    width: 1.25em !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    color: inherit !important;
    font-size: 35px !important;
    line-height: 1 !important;
    text-align: left !important;
}

.dd-weekly-guide-section-highlights .dd-weekly-event-icon,
.dd-weekly-section-highlights .dd-weekly-event-icon {
    color: var(--dd-weekly-highlight-color) !important;
}

.dd-weekly-guide-section-regular .dd-weekly-event-icon,
.dd-weekly-section-city .dd-weekly-event-icon {
    color: var(--dd-weekly-regular-color) !important;
}

.dd-weekly-event-main {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    padding-left: 5px !important;
    color: var(--dd-weekly-text-color) !important;
    font: inherit !important;
}

.dd-weekly-event-title,
.dd-weekly-event-time,
.dd-weekly-event-venue,
.dd-weekly-event-separator {
    color: var(--dd-weekly-text-color) !important;
    font: inherit !important;
    opacity: 1 !important;
}

.dd-weekly-event-title {
    font-weight: 600 !important;
}

.dd-weekly-event-separator {
    opacity: 1 !important;
}

.dd-weekly-event-time {
    white-space: nowrap;
}

.dd-weekly-event-status {
    color: var(--dd-weekly-text-color) !important;
    font-family: "Poppins", sans-serif !important;
    font-size: 0.67em;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.72;
}

.dd-weekly-event-venue-inline {
    white-space: normal;
}

.dd-weekly-event-venue-side {
    flex: 0 0 auto;
    margin-left: auto;
}

.dd-weekly-empty {
    padding: 0.25rem 18px;
    color: var(--dd-weekly-text-color);
    font-family: var(--e-global-typography-primary-font-family, inherit);
    font-size: 16px;
    opacity: 0.55;
}

.dd-weekly-guide-error {
    padding: 10px 12px;
    border: 1px solid currentColor;
}

/* Highlights should be editorially distinct by icon/section color, not heavier type. */
.dd-weekly-event.dd-is-highlight .dd-weekly-event-title {
    font-weight: inherit;
}

@media (max-width: 767px) {
    .dd-weekly-guide {
        gap: 1.6rem;
    }

    .dd-weekly-event-link {
        font-size: 20px !important;
        line-height: normal !important;
    }

    .dd-weekly-event-venue-side {
        display: block;
        margin-top: 0.12rem;
    }

    .dd-weekly-day-heading {
        justify-content: space-between;
    }
}

/* Launch-safe empty state for incomplete daily/section schedules. */
.dd-weekly-empty {
    margin: 0 40px !important;
    padding: 8px 0 !important;
    color: #CCCCCC !important;
    font-family: "Poppins", sans-serif !important;
    font-size: 20px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    opacity: 1 !important;
}

@media (max-width: 767px) {
    .dd-weekly-empty {
        font-size: 16px !important;
    }
}
