
.stec-empty{padding:30px;border:1px solid #e5e5e5;background:#fafafa;border-radius:5px}
.stec-empty h2{margin-top:0!important}
.stec-single-event{max-width:100%}
.stec-back{display:inline-block;margin-bottom:14px;font-size:10px;font-weight:700;text-decoration:none;color:#111}
.stec-single-image{width:100%;aspect-ratio:16/9;overflow:hidden;border-radius:5px;margin-bottom:16px;background:#eee}
.stec-single-image img{width:100%;height:100%;object-fit:cover;display:block}
.stec-single-meta{display:flex;gap:12px;flex-wrap:wrap;font-size:10px;margin-bottom:8px}
.stec-single-meta time{font-weight:800;color:#b3261e}.stec-single-meta span{color:#777}
.stec-single-event h1{font-family:Georgia,"Times New Roman",serif!important;font-size:44px!important;line-height:1!important;letter-spacing:-1.5px!important;margin:0 0 18px!important;color:#111!important}
.stec-event-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:20px}
.stec-event-facts>div{padding:12px;border:1px solid #e5e5e5;border-radius:4px}
.stec-event-facts small,.stec-event-facts strong{display:block}.stec-event-facts small{font-size:8px;color:#777;margin-bottom:4px}.stec-event-facts strong{font-size:13px}
.stec-single-lead{font-family:Georgia,"Times New Roman",serif;font-size:20px;line-height:1.45}
.stec-single-content{font-size:15px;line-height:1.7;color:#333}
.stec-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:22px}
.stec-actions a{display:inline-block;padding:10px 14px;background:#171717;color:#fff!important;text-decoration:none;border-radius:3px;font-size:11px;font-weight:700}
.stec-source{margin-top:24px;padding-top:12px;border-top:1px solid #e5e5e5;font-size:10px;color:#777}
@media(max-width:520px){.stec-single-event h1{font-size:34px!important}.stec-event-facts{grid-template-columns:1fr}.stec-single-lead{font-size:18px}}

/* v0.2.0 richer event information */
.stec-single-meta{font-size:12px!important;gap:10px 14px!important}
.stec-single-meta time{font-size:14px!important}
.stec-event-facts{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.stec-event-facts small{font-size:9px!important;letter-spacing:.04em}
.stec-event-facts strong{font-size:14px!important;line-height:1.35}
.stec-event-facts a{color:#111;text-decoration:underline}
.stec-location-fact{grid-column:1/-1}
.stec-source-button{display:inline-block;margin:-6px 0 20px;padding:9px 12px;border:1px solid #d9d9d9;border-radius:3px;color:#111!important;text-decoration:none;font-size:10px;font-weight:700;background:#fafafa}
.stec-source-button:hover{background:#f0f0f0}
.stec-more-upcoming{margin-top:40px;padding-top:24px;border-top:2px solid #171717}
.stec-more-upcoming .ste-event-grid{margin-top:0}
.stec-all-events{padding-bottom:2px;color:#111;text-decoration:none;font-size:10px;font-weight:700;white-space:nowrap}
@media(max-width:520px){
  .stec-single-meta{font-size:11px!important}
  .stec-single-meta time{font-size:13px!important}
  .stec-event-facts{grid-template-columns:1fr!important}
  .stec-location-fact{grid-column:auto}
  .stec-all-events{font-size:9px}
}

/* v0.2.1 dynamic Home event links */
.stp-event-main-link,
.stp-small-item-link{color:inherit;text-decoration:none}
.stp-event-main-link:hover,
.stp-small-item-link:hover{color:inherit}
.stp-small-item-link{min-width:0}


/* v0.4.1 — square event imagery */
.ste-event-image{
    aspect-ratio:1 / 1 !important;
    height:auto !important;
}

.ste-event-image img{
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
}

.ste-row-image{
    aspect-ratio:1 / 1 !important;
    height:auto !important;
}

.ste-row-image img{
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
}

.stec-single-image{
    aspect-ratio:1 / 1 !important;
    height:auto !important;
    max-height:none !important;
}

.stec-single-image img{
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
}

/* Home Events keep their accepted existing layout.
   Only Events archive/single-page imagery is forced to square. */


/* v0.4.2 — visible Featured / Promoted badges on event lists */
.ste-event-image,.ste-row-image{position:relative;display:block}
.ste-media-badges{position:absolute;z-index:3;top:8px;left:8px;display:flex;gap:5px;flex-wrap:wrap;max-width:calc(100% - 16px);pointer-events:none}
.ste-media-badge{display:inline-block;padding:4px 7px;border-radius:2px;background:rgba(20,20,20,.92);color:#fff;font-size:9px;font-weight:800;line-height:1;text-transform:uppercase;letter-spacing:.035em;box-shadow:0 1px 3px rgba(0,0,0,.16)}
.ste-media-badge-promoted{background:#fff;color:#171717}


/* v0.4.3 — badges are true image overlays; ended state on single event */
.ste-event-image,.ste-row-image,.stec-single-image{position:relative!important;overflow:hidden!important}
.ste-event-image,.ste-row-image{display:block!important;line-height:0!important}
.ste-event-image>img,.ste-row-image>img{display:block!important}
.ste-media-badges{position:absolute!important;z-index:5!important;top:8px!important;left:8px!important;margin:0!important;padding:0!important;width:auto!important;height:auto!important;background:transparent!important;line-height:1!important}
.ste-media-badge{position:static!important;margin:0!important;line-height:1!important}
.ste-single-ended-badge{position:absolute;z-index:6;top:10px;left:10px;display:inline-block;padding:6px 9px;border-radius:2px;background:rgba(20,20,20,.92);color:#fff;font-size:10px;font-weight:800;line-height:1;text-transform:uppercase;letter-spacing:.05em;box-shadow:0 1px 3px rgba(0,0,0,.18)}

/* v0.4.6 — dynamic category quick filters on /events/ */
.ste-event-filters{display:flex!important;align-items:center;gap:7px;flex-wrap:wrap!important;overflow:visible!important}
.ste-event-filters a{white-space:nowrap}
@media(max-width:720px){
  .ste-event-filters{gap:6px}
  .ste-event-filters a{font-size:9px}
}

/* v0.5.3 — Today / 7 Days quick filters + 30-day calendar view */
.ste-date-quick{
    display:flex;
    align-items:center;
    gap:7px;
    margin-top:8px;
}
.ste-date-quick a,
.ste-calendar-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:30px;
    padding:7px 11px;
    border:1px solid #d7d7d7;
    border-radius:999px;
    background:#fff;
    color:#222!important;
    text-decoration:none!important;
    font-size:10px;
    line-height:1;
    font-weight:800;
    letter-spacing:.035em;
    white-space:nowrap;
}
.ste-date-quick a:hover,
.ste-calendar-toggle:hover{
    border-color:#171717;
}
.ste-date-quick a.is-active,
.ste-calendar-toggle.is-active{
    border-color:#171717;
    background:#171717;
    color:#fff!important;
}
.ste-section-tools{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:10px;
    flex-wrap:wrap;
}
.ste-section-tools .ste-count{
    padding-bottom:0;
}

/* Small horizontal event rows used by Today and calendar views. */
.ste-compact-list{
    display:grid;
    gap:0;
    border-top:1px solid #e7e7e7;
}
.ste-compact-event{
    display:grid;
    grid-template-columns:154px minmax(0,1fr);
    gap:15px;
    padding:13px 0;
    border-bottom:1px solid #e7e7e7;
    min-width:0;
}
.ste-compact-event-image{
    position:relative;
    display:block;
    width:154px;
    height:104px;
    overflow:hidden;
    border-radius:4px;
    background:#eee;
}
.ste-compact-event-image img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
}
.ste-compact-event-copy{
    min-width:0;
    align-self:center;
}
.ste-compact-event-copy .ste-event-meta{
    margin-bottom:5px;
}
.ste-compact-event-copy h3{
    margin:0!important;
    font-family:Georgia,"Times New Roman",serif!important;
    font-size:20px!important;
    line-height:1.08!important;
    color:#111!important;
}
.ste-compact-event-copy h3 a{
    color:inherit!important;
    text-decoration:none!important;
}
.ste-compact-event-copy p{
    margin:6px 0 7px!important;
    font-size:11px!important;
    line-height:1.4!important;
    color:#666!important;
}
.ste-compact-event-link{
    font-size:9px;
    font-weight:800;
    color:#111!important;
    text-decoration:none!important;
}
.ste-compact-event-link:hover{
    text-decoration:underline!important;
}

/* 7/30-day calendar-style chronological list. Every date remains visible. */
.ste-calendar-list{
    border-top:1px solid #dedede;
}
.ste-calendar-day{
    display:grid;
    grid-template-columns:76px minmax(0,1fr);
    min-height:76px;
    border-bottom:1px solid #dedede;
}
.ste-calendar-date{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    padding:10px 8px;
    border-right:1px solid #e5e5e5;
    background:#fafafa;
    line-height:1;
}
.ste-calendar-date strong{
    margin:3px 0 2px;
    font-family:Georgia,"Times New Roman",serif;
    font-size:28px;
    line-height:.95;
    font-weight:700;
}
.ste-calendar-date span{
    font-size:9px;
    font-weight:800;
    letter-spacing:.05em;
    color:#666;
}
.ste-calendar-weekday{
    color:#111!important;
}
.ste-calendar-day-events{
    min-width:0;
    padding:0 0 0 15px;
}
.ste-calendar-day-events .ste-compact-event:last-child{
    border-bottom:0;
}
.ste-calendar-empty{
    display:flex;
    align-items:center;
    min-height:76px;
    padding:14px 0;
    color:#999;
    font-size:11px;
    font-style:italic;
}
.ste-calendar-empty-large{
    min-height:110px;
    border-top:1px solid #e7e7e7;
    border-bottom:1px solid #e7e7e7;
}
.ste-calendar-day.is-empty .ste-calendar-date{
    opacity:.72;
}
.ste-calendar-day.is-empty .ste-calendar-day-events{
    background:#fcfcfc;
}

@media(max-width:760px){
    .ste-date-quick{
        gap:6px;
        margin-top:7px;
    }
    .ste-date-quick a,
    .ste-calendar-toggle{
        min-height:29px;
        padding:7px 10px;
        font-size:9px;
    }
    .ste-section-tools{
        align-items:flex-end;
        gap:7px;
    }
    .ste-compact-event{
        grid-template-columns:112px minmax(0,1fr);
        gap:11px;
        padding:11px 0;
    }
    .ste-compact-event-image{
        width:112px;
        height:82px;
    }
    .ste-compact-event-copy h3{
        font-size:17px!important;
    }
    .ste-compact-event-copy p{
        display:-webkit-box;
        -webkit-line-clamp:2;
        -webkit-box-orient:vertical;
        overflow:hidden;
        margin:4px 0 5px!important;
        font-size:10px!important;
    }
    .ste-calendar-day{
        grid-template-columns:62px minmax(0,1fr);
        min-height:68px;
    }
    .ste-calendar-date{
        padding:8px 5px;
    }
    .ste-calendar-date strong{
        font-size:24px;
    }
    .ste-calendar-day-events{
        padding-left:10px;
    }
    .ste-calendar-empty{
        min-height:68px;
        font-size:10px;
    }
}

@media(max-width:520px){
    .ste-section-head{
        gap:10px;
    }
    .ste-section-tools .ste-count{
        display:none;
    }
    .ste-calendar-toggle{
        font-size:8px;
        padding:6px 8px;
    }
    .ste-compact-event{
        grid-template-columns:94px minmax(0,1fr);
        gap:9px;
    }
    .ste-compact-event-image{
        width:94px;
        height:72px;
    }
    .ste-compact-event-copy .ste-event-meta{
        gap:3px 6px!important;
        margin-bottom:3px;
    }
    .ste-compact-event-copy .ste-event-meta time,
    .ste-compact-event-copy .ste-event-meta span{
        font-size:9px!important;
    }
    .ste-compact-event-copy h3{
        font-size:15px!important;
        line-height:1.1!important;
    }
    .ste-compact-event-copy p{
        display:none;
    }
    .ste-compact-event-link{
        display:inline-block;
        margin-top:4px;
        font-size:8px;
    }
    .ste-calendar-day{
        grid-template-columns:54px minmax(0,1fr);
    }
    .ste-calendar-date strong{
        font-size:22px;
    }
    .ste-calendar-date span{
        font-size:8px;
    }
    .ste-calendar-day-events{
        padding-left:8px;
    }
}

/* v0.5.4 — robust horizontal event rows + remainder lists */
.ste-compact-event{
    display:flex!important;
    flex-direction:row!important;
    align-items:flex-start!important;
    width:100%!important;
    min-width:0!important;
}
.ste-compact-event-image{
    flex:0 0 154px!important;
    width:154px!important;
    height:104px!important;
}
.ste-compact-event-copy{
    flex:1 1 auto!important;
    min-width:0!important;
    align-self:center!important;
}
.ste-quick-remainder{
    margin-top:30px;
}
.ste-quick-remainder .ste-list-heading{
    margin-bottom:0;
}
.ste-compact-list-remaining{
    border-top:1px solid #e7e7e7;
}

/* Keep event rows horizontal inside calendar day columns too. */
.ste-calendar-day-events .ste-compact-event{
    display:flex!important;
    flex-direction:row!important;
}
.ste-calendar-day-events .ste-compact-event-image{
    flex:none!important;
}

@media(max-width:760px){
    .ste-compact-event{
        gap:10px!important;
        padding:10px 0!important;
    }
    .ste-compact-event-image{
        flex-basis:104px!important;
        width:104px!important;
        height:76px!important;
    }
    .ste-compact-event-copy{
        align-self:flex-start!important;
        padding-top:1px;
    }
}

@media(max-width:520px){
    .ste-compact-event{
        gap:9px!important;
    }
    .ste-compact-event-image{
        flex-basis:92px!important;
        width:92px!important;
        height:68px!important;
    }
    .ste-compact-event-copy h3{
        font-size:14px!important;
        line-height:1.12!important;
    }
    .ste-compact-event-link{
        display:none!important;
    }
    .ste-calendar-day-events{
        padding-left:7px!important;
    }
    .ste-calendar-day{
        grid-template-columns:52px minmax(0,1fr)!important;
    }
}

@media(max-width:390px){
    .ste-compact-event-image{
        flex-basis:84px!important;
        width:84px!important;
        height:64px!important;
    }
    .ste-compact-event-copy h3{
        font-size:13px!important;
    }
}

/* v0.5.5 — stable, more visible Calendar/Grid view control */
.ste-section-tools{
    display:grid!important;
    grid-template-columns:auto 126px!important;
    align-items:center!important;
    justify-content:end!important;
    gap:10px!important;
    flex:0 0 auto!important;
}
.ste-calendar-toggle{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:126px!important;
    min-width:126px!important;
    min-height:36px!important;
    padding:8px 12px!important;
    border:1px solid #111!important;
    border-radius:999px!important;
    background:#111!important;
    color:#fff!important;
    font-family:Arial,Helvetica,sans-serif!important;
    font-size:11px!important;
    line-height:1!important;
    font-weight:800!important;
    text-decoration:none!important;
    white-space:nowrap!important;
    box-sizing:border-box!important;
}
.ste-calendar-toggle:hover,
.ste-calendar-toggle:focus{
    background:#333!important;
    color:#fff!important;
    border-color:#333!important;
}
.ste-calendar-toggle.is-active{
    background:#111!important;
    color:#fff!important;
}

@media(max-width:760px){
    .ste-section-tools{
        grid-template-columns:auto 118px!important;
        gap:8px!important;
    }
    .ste-calendar-toggle{
        width:118px!important;
        min-width:118px!important;
        min-height:34px!important;
        padding:8px 10px!important;
        font-size:10px!important;
    }
}

@media(max-width:520px){
    .ste-section-head{
        position:relative;
    }
    .ste-section-tools{
        grid-template-columns:118px!important;
    }
    .ste-section-tools .ste-count{
        display:none!important;
    }
    .ste-calendar-toggle{
        width:118px!important;
        min-width:118px!important;
    }
}

