/* Classic template — accessible, semantic, schema.org
   Palette: AEC6E2 · 5A96DB · 094074 · F12838 · 0D1B1E · FFFFFF · E8E9EB · 393E41 */
.romence-schedule.romence-template-classic {
    --romence-light: #AEC6E2;
    --romence-primary: #5A96DB;
    --romence-dark: #094074;
    --romence-accent: #F12838;
    --romence-ink: #0D1B1E;
    --romence-white: #FFFFFF;
    --romence-surface: #E8E9EB;
    --romence-muted: #393E41;
    /* font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif; */
    padding: 18px 20px;
    border: 1px solid rgba(90, 150, 219, 0.4);
    box-shadow: 0 2px 12px rgba(9, 64, 116, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 0 0 1px rgba(174, 198, 226, 0.3);
}

/* Pager: Previous / Today / Next */
.romence-schedule.romence-template-classic .romence-pager {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.romence-schedule.romence-template-classic .romence-pager button {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(90, 150, 219, 0.5);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(238,244,252,0.9) 100%);
    color: var(--romence-dark);
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(9, 64, 116, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.2s ease;
}

.romence-schedule.romence-template-classic .romence-pager button:hover:not(.off) {
    background: linear-gradient(180deg, var(--romence-primary) 0%, var(--romence-dark) 100%);
    color: var(--romence-white);
    border-color: var(--romence-dark);
    box-shadow: 0 2px 8px rgba(9, 64, 116, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.romence-schedule.romence-template-classic .romence-pager button:focus-visible {
    outline: 1px solid var(--romence-accent);
    outline-offset: 2px;
}

.romence-schedule.romence-template-classic .romence-pager button.off {
    opacity: 0.5;
    cursor: default;
    border-color: var(--romence-surface);
    color: var(--romence-muted);
    background: var(--romence-surface);
    box-shadow: none;
}

/* Header row: full width */
.romence-schedule.romence-template-classic .the-row.row-info {
    padding: 12px 16px;
    background: var(--romence-dark);
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: var(--romence-white);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(9, 64, 116, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.romence-schedule.romence-template-classic .row-info .info-date {
    font-size: 1em;
    display: block;
    margin:  0;
    color: var(--romence-white);
}

/* Event cards (articles): block stacked layout */
.romence-schedule.romence-template-classic .the-row.row-class {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 16px;
    padding: 14px 16px 14px 22px;
    background: var(--romence-surface);
    border: 1px solid rgba(90, 150, 219, 0.35);
    box-shadow: 0 2px 10px rgba(9, 64, 116, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    position: relative;
    margin-bottom: 12px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.romence-schedule.romence-template-classic .the-row.row-class:hover {
    box-shadow: 0 4px 16px rgba(9, 64, 116, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    border-color: rgba(90, 150, 219, 0.45);
}

.romence-schedule.romence-template-classic .the-row {
    display: none;
}

.romence-schedule.romence-template-classic .the-row.page-1.row-info {
    display: block;
}

.romence-schedule.romence-template-classic .the-row.page-1.row-class {
    display: flex;
}

.romence-schedule.romence-template-classic .the-row.row-class.canc-true {
    opacity: 0.65;
    background: var(--romence-white);
    box-shadow: 0 1px 4px rgba(13, 27, 30, 0.05);
    pointer-events: none;
}

/* Left accent bar */
.romence-schedule.romence-template-classic .the-row.row-class::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 5px;
    background: var(--romence-primary);
}

.romence-schedule.romence-template-classic .the-row.row-class.canc-true::before {
    background: var(--romence-accent);
}

/* Time — same row as bk-btn on large screens (flex order 1) */
.romence-schedule.romence-template-classic .bk-time {
    order: 1;
    font-weight: 700;
    font-size: 1rem;
    color: var(--romence-dark);
    flex: 0 0 auto;
    margin-bottom: 0;
}

.romence-schedule.romence-template-classic .bk-time .bk-duration {
    display: block;
    margin-top: 2px;
    font-weight: 500;
    font-size: 0.8rem;
    color: var(--romence-muted);
}

/* Title (h3) — full width, row 2 (flex order 2) */
.romence-schedule.romence-template-classic .bk-ttl {
    order: 2;
    flex: 0 0 100%;
    font-size: 1rem;
    font-weight: 700;
    color: var(--romence-ink);
    margin: 6px 0 4px 0;
}

/* Description (div.ic) — full width (flex order 5) */
.romence-schedule.romence-template-classic .the-row.row-class .ic {
    order: 5;
    flex: 0 0 100%;
    margin: 6px 0 0 0;
    font-style: normal;
}

.romence-schedule.romence-template-classic .the-row.row-class .ic .ic-tt {
    display: inline-block;
    padding: 10px;
    background: var(--romence-light);
    color: var(--romence-dark);
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
    width: 100%;
}

/* Reserve button — same row as time (flex order 3) */
.romence-schedule.romence-template-classic .bk-btn {
    order: 3;
    flex: 0 0 auto;
    margin: 0 0 0 auto;
    position: absolute;
    right: 20px;
    top:  20px;
}

.romence-schedule.romence-template-classic .bk-btn .res-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(9, 64, 116, 0.6);
    border-radius: 8px;
    background: linear-gradient(180deg, var(--romence-primary) 0%, var(--romence-dark) 100%);
    color: var(--romence-white);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    margin-top: 4px;
    box-shadow: 0 2px 6px rgba(9, 64, 116, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.romence-schedule.romence-template-classic .bk-btn .res-btn:hover {
    background: linear-gradient(180deg, var(--romence-dark) 0%, var(--romence-ink) 100%);
    border-color: var(--romence-dark);
    box-shadow: 0 3px 10px rgba(9, 64, 116, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.romence-schedule.romence-template-classic .bk-btn .res-btn:focus-visible {
    outline: 1px solid var(--romence-accent);
    outline-offset: 2px;
}

/* Teacher (performer) — full width (flex order 4) */
.romence-schedule.romence-template-classic .bk-teach {
    order: 4;
    flex: 0 0 100%;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--romence-muted);
    margin-top: 4px;
}

/* Responsive: stacked for small screens */
@media (max-width: 600px) {
    .romence-schedule.romence-template-classic {
        padding: 14px 12px;
    }

    .romence-schedule.romence-template-classic .the-row.row-class,
    .romence-schedule.romence-template-classic .the-row.row-info {
        margin-bottom: 10px;
    }

    .romence-schedule.romence-template-classic .bk-btn {
        flex: 0 0 100%;
        margin: 8px 0 0 0;
        position: static;
    }

    .romence-schedule.romence-template-classic .bk-btn .res-btn {
        display: block;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .romence-schedule.romence-template-classic .the-row.row-class,
    .romence-schedule.romence-template-classic .romence-pager button,
    .romence-schedule.romence-template-classic .bk-btn .res-btn {
        transition: none;
    }
}
