/* StraganUI 0.22.0 — event archive/detail CSS. Homepage event wall is split to events-home.css. */
/* StraganUI 0.20.3 — deterministic event cards, modal and event pages. */
.so-home-tournaments,.so-home-leagues{padding:28px 0}
.so-tournament-grid{display:grid;gap:14px}.so-tournament-grid.count-1{grid-template-columns:1fr}.so-tournament-grid.count-2{grid-template-columns:repeat(2,minmax(0,1fr))}.so-tournament-grid.count-3,.so-tournament-grid.count-4{grid-template-columns:repeat(3,minmax(0,1fr))}.so-tournament-grid.count-4 .so-event-card:first-child{grid-column:span 2}
.so-league-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;align-items:stretch}
.so-event-card{position:relative;min-width:0;overflow:hidden;border:1px solid var(--so-color-border);border-radius:var(--so-radius-md);background:#fff;box-shadow:var(--so-shadow-sm)}
.so-event-card__quick{display:grid;width:100%;height:100%;grid-template-columns:42% minmax(0,1fr);margin:0!important;padding:0!important;border:0!important;background:#fff!important;color:var(--so-color-text)!important;text-align:left!important;box-shadow:none!important;cursor:pointer}
.so-event-card__media{display:block;min-height:190px;overflow:hidden;background:#edf2ee}.so-event-card__media img{display:block!important;width:100%!important;height:100%!important;min-height:190px!important;object-fit:cover!important}.so-event-card__placeholder{display:grid;width:100%;height:100%;min-height:190px;place-items:center;color:var(--so-color-primary)}
.so-event-card__body{display:flex;min-width:0;flex-direction:column;justify-content:center;padding:18px}.so-event-card__topline{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px;color:#7c897f;font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.06em}.so-event-card__title{font:650 18px/1.22 var(--so-font-body)}.so-event-card__excerpt{margin-top:8px;color:var(--so-color-muted);font-size:12px;line-height:1.45}.so-event-card__facts{display:flex;flex-wrap:wrap;gap:7px 13px;margin-top:13px;color:#647068;font-size:11px}.so-event-card__recurrence{margin-top:8px;color:var(--so-color-primary);font-size:11px;font-weight:600}
.so-event-status{display:inline-flex;align-items:center;min-height:24px;padding:0 8px;border-radius:999px;background:#edf5ef;color:var(--so-color-primary-dark);font-size:9.5px;font-weight:650}.so-event-status--last{background:#fff3da;color:#805c1f}.so-event-status--full,.so-event-status--ended{background:#f2eeee;color:#78635f}.so-event-status--cancelled{background:#f8e7e4;color:#9a4c40}
.so-event-card--featured .so-event-card__quick{grid-template-columns:minmax(320px,.72fr) minmax(0,1.28fr)}.so-event-card--featured .so-event-card__media,.so-event-card--featured .so-event-card__media img{min-height:270px!important}.so-event-card--featured .so-event-card__body{padding:28px}.so-event-card--featured .so-event-card__title{font-family:var(--so-font-heading);font-size:32px}
/* League cards use one fixed geometry. The whole card is near-square, not just the image. */
.so-event-card--league{aspect-ratio:1.08/1;min-height:310px}.so-event-card--league .so-event-card__quick{display:flex;height:100%;flex-direction:column}.so-event-card--league .so-event-card__media{height:50%;min-height:0;flex:0 0 50%;background:#eef3ef}.so-event-card--league .so-event-card__media img{width:100%!important;height:100%!important;min-height:0!important;object-fit:cover!important}.so-event-card--league .so-event-card__placeholder{height:100%;min-height:0;font-size:0}.so-event-card--league .so-event-card__placeholder:before{content:"◷";font-size:30px;line-height:1;color:#6e8f78}.so-event-card--league .so-event-card__body{min-height:0;flex:1;justify-content:flex-start;padding:13px 14px}.so-event-card--league .so-event-card__topline{margin-bottom:6px;font-size:8.8px}.so-event-card--league .so-event-card__title{display:-webkit-box;overflow:hidden;font-size:14px;line-height:1.2;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3}.so-event-card--league .so-event-card__recurrence{margin-top:5px;font-size:9.5px}.so-event-card--league .so-event-card__facts{display:grid;gap:3px;margin-top:auto;padding-top:8px;font-size:9.5px;line-height:1.25}
/* Event preview modal — StraganUI 0.20.27.
   Compact, information-rich and visually aligned with the green/white storefront UI. */
.so-event-modal{
    position:fixed;inset:0;z-index:1500;display:grid;place-items:center;padding:24px
}
.so-event-modal[hidden]{display:none!important}
.so-event-modal__backdrop{
    position:absolute;inset:0;background:rgba(10,28,18,.66);backdrop-filter:blur(5px)
}
.so-event-modal__panel{
    position:relative;z-index:1;display:grid;grid-template-columns:minmax(300px,40%) minmax(0,60%);
    width:min(980px,calc(100vw - 48px));max-height:min(700px,calc(100vh - 48px));min-height:520px;
    overflow:hidden;border:1px solid rgba(33,78,48,.14);border-radius:20px;background:#fff;
    box-shadow:0 28px 80px rgba(8,29,17,.28)
}
.so-event-modal__visual{
    position:relative;display:flex;min-width:0;min-height:0;align-items:center;justify-content:center;
    padding:24px;overflow:hidden;background:linear-gradient(145deg,#edf4ef 0%,#f8faf8 100%);border-right:1px solid #e1e8e3
}
.so-event-modal__visual:after{
    content:"";position:absolute;right:-110px;bottom:-120px;width:310px;height:310px;border:1px solid rgba(37,84,52,.08);border-radius:50%
}
.so-event-modal__media{
    position:relative;z-index:1;display:grid;width:100%;height:100%;min-height:0;place-items:center;overflow:hidden;border-radius:14px
}
.so-event-modal__media img{
    display:block!important;width:100%!important;height:100%!important;min-height:0!important;max-width:100%!important;max-height:100%!important;
    object-fit:contain!important;object-position:center!important
}
.so-event-modal__media .so-event-card__placeholder{min-height:100%;height:100%}
.so-event-modal__game{display:inline-flex;align-items:center;min-height:28px;padding:0 12px;border-radius:999px;background:#f3f5f3;color:#536159;font:700 10.5px/1 var(--so-font-body);letter-spacing:.01em;white-space:nowrap}
.so-event-modal__content{
    min-width:0;overflow:auto;padding:34px 38px 30px;background:#fff
}
.so-event-modal__chips{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 12px}
.so-event-modal__chips .so-event-modal__game,
.so-event-modal__chips .so-event-card__type-tag,
.so-event-modal__chips .so-event-status{
    display:inline-flex;min-height:26px;align-items:center;justify-content:center;margin:0;padding:0 10px;border:0;border-radius:999px;
    font:750 9.5px/1 var(--so-font-body);font-style:normal;text-transform:none;letter-spacing:.01em
}
.so-event-modal__chips .so-event-card__type-tag{background:#edf5ef;color:var(--so-green-dark)}
.so-event-modal__chips .so-event-card__type-tag--tournament{background:#f3f1e9;color:#665d45}
.so-event-modal__content h2{
    max-width:660px;margin:0!important;color:var(--so-text)!important;font-family:var(--so-font-heading)!important;
    font-size:clamp(31px,3.2vw,43px)!important;font-weight:700!important;line-height:1.02!important;letter-spacing:-.025em!important
}
.so-event-modal__lead{
    max-width:690px;margin:12px 0 0!important;color:#66736b!important;font:500 13.5px/1.55 var(--so-font-body)!important
}
.so-event-modal__info-grid{
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:22px
}
.so-event-modal__info{
    min-width:0;padding:11px 12px;border:1px solid #e1e8e3;border-radius:10px;background:#fbfcfb
}
.so-event-modal__info small,
.so-event-modal__recurrence small{
    display:block;margin-bottom:4px;color:#879188;font:700 8.5px/1 var(--so-font-body);letter-spacing:.07em;text-transform:uppercase
}
.so-event-modal__info strong,
.so-event-modal__recurrence strong{
    display:block;min-width:0;color:#26382d;font:700 12.5px/1.3 var(--so-font-body);overflow-wrap:anywhere
}
.so-event-modal__recurrence{
    margin-top:9px;padding:11px 12px;border:1px solid #dce8df;border-radius:10px;background:#f2f7f3
}
.so-event-modal__description{
    margin-top:19px;padding-top:17px;border-top:1px solid #e7ece8;color:#647168;font:500 12.5px/1.6 var(--so-font-body)
}
.so-event-modal__description h3{
    margin:0 0 8px!important;color:var(--so-text)!important;font:750 14px/1.2 var(--so-font-body)!important
}
.so-event-modal__description p{margin:0 0 8px!important}
.so-event-modal__description p:last-child{margin-bottom:0!important}
.so-event-modal__actions{
    display:flex;flex-wrap:wrap;gap:9px;margin-top:22px;padding-top:2px
}
.so-event-modal__actions .so-btn{
    min-height:42px;padding-inline:17px;border-radius:9px;font-size:11.5px
}
.so-event-modal__close{
    position:absolute!important;right:14px!important;top:14px!important;z-index:4!important;display:grid!important;width:40px!important;height:40px!important;
    place-items:center!important;margin:0!important;padding:0!important;border:1px solid #d9e2dc!important;border-radius:50%!important;
    background:rgba(255,255,255,.96)!important;color:#26382d!important;font:400 24px/1 var(--so-font-body)!important;
    box-shadow:0 6px 18px rgba(22,55,33,.10)!important
}
.so-event-modal__close:hover,.so-event-modal__close:focus-visible{background:#f2f7f3!important;border-color:#acc3b2!important}
.so-events-page .so-event-card[id]{scroll-margin-top:110px}

@media(max-width:900px){
    .so-event-modal{padding:14px}
    .so-event-modal__panel{grid-template-columns:36% minmax(0,64%);width:calc(100vw - 28px);max-height:calc(100vh - 28px);min-height:480px}
    .so-event-modal__visual{padding:18px}
    .so-event-modal__content{padding:30px 26px 26px}
}
@media(max-width:700px){
    .so-event-modal__panel{display:flex;min-height:0;flex-direction:column}
    .so-event-modal__visual{height:210px;min-height:210px;flex:0 0 210px;padding:16px;border-right:0;border-bottom:1px solid #e1e8e3}
    
    .so-event-modal__content{padding:24px 18px 22px}
    .so-event-modal__content h2{padding-right:30px;font-size:29px!important}
    .so-event-modal__info-grid{grid-template-columns:1fr 1fr;margin-top:18px}
    .so-event-modal__close{right:10px!important;top:10px!important}
}
@media(max-width:430px){
    .so-event-modal__info-grid{grid-template-columns:1fr}
    .so-event-modal__actions{display:grid;grid-template-columns:1fr}
    .so-event-modal__actions .so-btn{width:100%;justify-content:center}
}
/* Public event pages. Past-event archive blocks stay disabled; current event list/calendar remains available. */
.so-events-page,.so-event-single{padding-top:18px;padding-bottom:52px}.so-events-hero{padding:30px 34px;border-radius:var(--so-radius-lg);background:linear-gradient(108deg,#193e29,#2b5a40);color:#fff}.so-events-hero h1{margin:0 0 5px!important;color:#fff!important;font-family:var(--so-font-heading)!important;font-size:48px!important}.so-events-hero p:not(.so-eyebrow){margin:0!important;color:#dce9e0!important}.so-events-section{padding:36px 0}.so-event-calendar{padding-top:24px}.so-calendar-nav{display:flex;gap:6px}.so-calendar-nav a{display:grid;width:38px;height:38px;place-items:center;border:1px solid var(--so-color-border);border-radius:8px;background:#fff;color:var(--so-color-primary)!important;text-decoration:none!important}.so-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));overflow:hidden;border:1px solid var(--so-color-border);border-radius:var(--so-radius-md);background:#fff}.so-calendar-weekday{padding:9px;border-bottom:1px solid var(--so-color-border);background:#f7f9f7;color:#78847b;font-size:10px;font-weight:650;text-align:center}.so-calendar-day{min-height:110px;padding:8px;border-right:1px solid #e8ede9;border-bottom:1px solid #e8ede9}.so-calendar-day>span{display:grid;width:25px;height:25px;place-items:center;border-radius:50%;font-size:11px;font-weight:650}.so-calendar-day.has-events>span{background:#edf5ef;color:var(--so-color-primary)}.so-calendar-day a{display:block;margin-top:5px;padding:5px 6px;border-radius:6px;background:#f3f7f4;color:#31583c!important;font-size:9.5px;line-height:1.25;text-decoration:none!important}.so-events-past-grid,.so-events-archive{display:none!important}
.so-event-single article{display:grid;grid-template-columns:minmax(320px,.85fr) minmax(0,1.15fr);gap:28px;padding:24px;border:1px solid var(--so-color-border);border-radius:var(--so-radius-lg);background:#fff;box-shadow:var(--so-shadow-sm)}.so-event-single__media{overflow:hidden;border-radius:13px;background:#eef3ef}.so-event-single__media img{width:100%!important;height:100%!important;max-height:560px!important;object-fit:contain!important}.so-event-single__summary{display:flex;flex-direction:column;justify-content:center}.so-event-single__summary h1{margin:8px 0 16px!important;font-family:var(--so-font-heading)!important;font-size:clamp(38px,4.5vw,58px)!important;line-height:.98!important}.so-event-single__facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:18px}.so-event-single__facts>div{padding:11px;border:1px solid var(--so-color-border);border-radius:9px}.so-event-single__facts small{display:block;color:#89938c;font-size:9px;text-transform:uppercase;letter-spacing:.07em}.so-event-single__facts strong{display:block;margin-top:3px;font-size:13px}.so-event-single__summary .so-btn{align-self:flex-start}.so-event-single__content{max-width:900px;margin:28px auto 0;font-size:14px;line-height:1.7}
.so-event-admin-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.so-event-admin-grid label{display:grid;gap:5px}.so-event-admin-grid input,.so-event-admin-grid select{width:100%}.so-event-admin-wide{grid-column:1/-1}
@media(max-width:1100px){.so-league-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.so-tournament-grid.count-3,.so-tournament-grid.count-4{grid-template-columns:repeat(2,minmax(0,1fr))}.so-tournament-grid.count-4 .so-event-card:first-child{grid-column:auto}.so-event-card__quick{grid-template-columns:38% 1fr}.so-event-modal__panel{grid-template-columns:38% 1fr}}
@media(max-width:760px){.so-tournament-grid,.so-tournament-grid.count-1,.so-tournament-grid.count-2,.so-tournament-grid.count-3,.so-tournament-grid.count-4{grid-template-columns:1fr}.so-league-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.so-event-card__quick,.so-event-card--featured .so-event-card__quick{grid-template-columns:1fr}.so-event-card__media,.so-event-card__media img,.so-event-card--featured .so-event-card__media,.so-event-card--featured .so-event-card__media img{min-height:190px!important;max-height:230px}.so-event-modal{padding:12px}.so-event-modal__panel{display:flex;width:calc(100vw - 24px);height:min(720px,calc(100vh - 24px));flex-direction:column}.so-event-modal__media{height:220px;flex:0 0 220px}.so-event-modal__content{padding:22px 18px}.so-event-modal__content h2{font-size:28px!important}.so-calendar-grid{font-size:10px}.so-calendar-day{min-height:68px;padding:4px}.so-calendar-day a{width:7px;height:7px;padding:0;border-radius:50%;background:var(--so-color-primary);font-size:0}.so-event-single article{grid-template-columns:1fr}.so-event-single__facts{grid-template-columns:1fr 1fr}.so-event-admin-grid{grid-template-columns:1fr}}
@media(max-width:480px){.so-league-grid{grid-template-columns:1fr}.so-event-card--league{aspect-ratio:auto;min-height:360px}}

/* =========================================================
   v0.21.0 — complete events hub + event detail refresh
   ========================================================= */
body.straganui-events-page{background:var(--so-color-page)!important}
body.straganui-events-page #content,
body.straganui-events-page .site-content{width:100%!important;max-width:none!important;padding:0!important;background:var(--so-color-page)!important}
body.straganui-events-page #primary,
body.straganui-events-page .content-area,
body.straganui-events-page .site-main{float:none!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important}

.so-events-page{padding:28px 0 68px}
.so-events-hero{position:relative;display:grid;grid-template-columns:minmax(0,1.45fr) minmax(310px,.55fr);gap:34px;align-items:end;margin:0 0 18px;padding:34px 36px;border:1px solid #d9e5dc;border-radius:20px;background:linear-gradient(135deg,#f8fbf8 0%,#edf5ef 100%);overflow:hidden;box-shadow:0 10px 34px rgba(27,67,40,.05)}
.so-events-hero:after{content:"";position:absolute;right:-90px;top:-115px;width:330px;height:330px;border:1px solid rgba(31,78,47,.07);border-radius:50%;pointer-events:none}
.so-events-hero__copy{position:relative;z-index:1;min-width:0}.so-events-hero__copy .so-eyebrow{margin-bottom:8px}.so-events-hero h1{max-width:760px;margin:0!important;color:var(--so-color-text)!important;font-family:var(--so-font-heading)!important;font-size:clamp(38px,4.2vw,58px)!important;font-weight:750!important;line-height:.98!important;letter-spacing:-.035em!important}.so-events-hero__copy>p:last-child{max-width:760px;margin:15px 0 0!important;color:#617067;font-size:14px;line-height:1.62}
.so-events-hero__stats{position:relative;z-index:1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0}.so-events-hero__stats>div{min-width:0;padding:14px 12px;border:1px solid rgba(39,87,55,.12);border-radius:12px;background:rgba(255,255,255,.78);backdrop-filter:blur(6px)}.so-events-hero__stats dt{margin:0 0 5px;color:#738077;font-size:9px;font-weight:750;letter-spacing:.06em;text-transform:uppercase}.so-events-hero__stats dd{margin:0;color:#234730;font:800 24px/1 var(--so-font-body)}

.so-event-filters{position:sticky;top:78px;z-index:20;display:flex;gap:7px;align-items:center;margin:0 0 18px;padding:9px;border:1px solid #dde6df;border-radius:13px;background:rgba(255,255,255,.94);box-shadow:0 8px 26px rgba(23,58,34,.06);backdrop-filter:blur(10px);overflow-x:auto;scrollbar-width:thin}.so-event-filters button{flex:0 0 auto;min-height:34px;margin:0!important;padding:0 12px!important;border:1px solid transparent!important;border-radius:9px!important;background:transparent!important;color:#56635b!important;font:750 10.5px/1 var(--so-font-body)!important;box-shadow:none!important;white-space:nowrap}.so-event-filters button:hover{background:#f2f6f3!important;color:#244d34!important}.so-event-filters button.is-active{border-color:#b9cfbf!important;background:#edf5ef!important;color:#214a31!important}
.so-event-filter-empty{margin:12px 0 18px;padding:18px;border:1px dashed #cdd9d0;border-radius:12px;background:#fafcfa;color:#66736b;text-align:center;font-size:13px}

.so-events-section{margin-top:18px;padding:22px 24px;border:1px solid #e0e7e2;border-radius:18px;background:#fff;box-shadow:0 7px 24px rgba(22,55,35,.035)}
.so-events-section.so-surface-soft{background:#f6f9f6}
.so-events-section .so-section-heading{align-items:flex-end;gap:24px;margin-bottom:14px}.so-section-heading__note{max-width:380px;margin:0!important;color:#758178;font-size:11.5px;line-height:1.45;text-align:right}
.so-events-section.is-filter-empty{display:none}
.so-events-empty{display:flex;flex-direction:column;gap:5px;padding:24px;border:1px dashed #ccd8cf;border-radius:12px;background:#fff;color:#66736b;text-align:center}.so-events-empty strong{color:#304438;font-size:14px}.so-events-empty span{font-size:12px}

/* Nearest cards: compact 4-column wall. */
.so-events-page .so-event-upcoming-grid,
.so-events-page .so-events-archive-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;align-items:stretch!important}
.so-events-page .so-event-card--league{height:188px!important;min-height:188px!important;aspect-ratio:auto!important;border-radius:11px!important}
.so-events-page .so-event-card--league .so-event-card__quick{display:grid!important;grid-template-columns:36% minmax(0,64%)!important;height:100%!important;flex-direction:initial!important}
.so-events-page .so-event-card--league .so-event-card__media{width:100%!important;height:100%!important;min-height:0!important;flex:none!important;border-right:1px solid #e2e9e4;background:#eef3ef!important}
.so-events-page .so-event-card--league .so-event-card__media img{width:100%!important;height:100%!important;min-height:0!important;object-fit:cover!important}
.so-events-page .so-event-card--league .so-event-card__body{height:100%!important;padding:13px 13px 12px!important;background:#fff!important}
.so-events-page .so-event-card--league .so-event-card__title{font-size:14px!important;-webkit-line-clamp:2!important;line-clamp:2!important}.so-events-page .so-event-card--league .so-event-card__summary{display:-webkit-box;margin-top:6px;overflow:hidden;color:#6b786f;font-size:9.8px;line-height:1.35;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2}.so-events-page .so-event-card--league .so-event-card__facts{display:flex!important;flex-wrap:wrap!important;gap:4px 8px!important;margin-top:auto!important;padding-top:7px!important;color:#42554a!important;font-size:9.7px!important;font-weight:700}.so-events-page .so-event-card--league .so-event-card__footer{display:flex;align-items:center;justify-content:flex-start;gap:7px;margin-top:7px}.so-events-page .so-event-card--league .so-event-card__fee{font-size:10px;font-weight:700}.so-events-page .so-event-card--league .so-event-card__action-label{display:inline-flex;min-height:25px;align-items:center;margin-left:auto;padding:0 8px;border:1px solid #c8d8cc;border-radius:7px;color:#28523a;font-size:8.8px;font-weight:800}
.so-events-page .so-event-card--league.is-tournament{border-color:#2d5c3e!important;background:#214b32!important}.so-events-page .so-event-card--league.is-tournament .so-event-card__body{background:linear-gradient(145deg,#214b32,#2c5c3e)!important}.so-events-page .so-event-card--league.is-tournament .so-event-card__title,.so-events-page .so-event-card--league.is-tournament .so-event-card__facts,.so-events-page .so-event-card--league.is-tournament .so-event-card__fee{color:#fff!important}.so-events-page .so-event-card--league.is-tournament .so-event-card__summary{color:#d9e7dc!important}.so-events-page .so-event-card--league.is-tournament .so-event-card__action-label{border-color:#fff;background:#fff;color:#214b32}.so-events-page .so-event-card--league.is-tournament .so-event-card__type-tag--tournament{background:#f1dfaa;color:#6a5012}.so-events-page .so-event-card__crown{position:static!important;display:inline-grid!important;width:20px!important;height:20px!important;place-items:center!important;margin-left:5px!important;border-radius:50%!important;background:#f4df9e!important;color:#8b6813!important;font:700 12px/1 Georgia,serif!important}
.so-events-page .so-event-card.is-archived{filter:saturate(.7);opacity:.9}.so-events-page .so-event-card.is-archived .so-event-card__body{background:#f5f7f5!important}.so-events-page .so-event-card.is-archived.is-tournament .so-event-card__body{background:linear-gradient(145deg,#59675e,#6b786f)!important}.so-events-page .so-event-card.is-archived.is-tournament{border-color:#87938a!important;background:#65736a!important}

/* Regular weekly schedule */
.so-event-schedule-list{display:grid;gap:7px}
.so-event-schedule-row{display:grid;grid-template-columns:72px minmax(280px,1fr) 138px 124px;column-gap:16px;align-items:center;min-width:0;min-height:80px;padding:10px 16px 10px 11px;border:1px solid #e2e8e3;border-radius:11px;background:#fbfcfb}
.so-event-schedule-row__media{display:grid;width:72px;height:58px;place-items:center;overflow:hidden;border-radius:8px;background:#edf3ef;color:#6d8c76;text-decoration:none!important}
.so-event-schedule-row__media img{display:block;width:100%!important;height:100%!important;object-fit:cover!important}
.so-event-schedule-row__main{min-width:0;padding-right:8px}
.so-event-schedule-row__chips{display:flex;gap:5px;align-items:center;margin-bottom:4px}
.so-event-schedule-row__chips span,.so-event-schedule-row__chips em{display:inline-flex;min-height:20px;align-items:center;padding:0 7px;border-radius:999px;background:#edf5ef;color:#28523a;font-size:8.5px;font-style:normal;font-weight:800}
.so-event-schedule-row__chips em{background:#f2f4f2;color:#69756d}
.so-event-schedule-row h3{margin:0!important;font:750 13px/1.2 var(--so-font-body)!important}
.so-event-schedule-row h3 a{color:#26392d!important;text-decoration:none!important}
.so-event-schedule-row p{margin:4px 0 0!important;color:#7a857d;font-size:9.5px;line-height:1.35}
.so-event-schedule-row__when{display:flex;min-width:0;flex-direction:column;gap:3px}
.so-event-schedule-row__when strong{color:#2c4033;font-size:11px}
.so-event-schedule-row__when small{color:#7a857d;font-size:9px}
.so-event-schedule-row__action{display:inline-flex;min-width:96px;min-height:32px;align-items:center;justify-content:center;justify-self:start;padding:0 11px;border:1px solid #c4d4c8;border-radius:8px;background:#fff;color:#28523a!important;font-size:9.5px;font-weight:800;text-decoration:none!important}
.so-event-schedule-row__action:hover{background:#edf5ef}

/* Calendar refinement */
.so-event-calendar{overflow:hidden}.so-calendar-nav{display:flex;gap:6px}.so-calendar-nav a{display:grid;width:34px;height:34px;place-items:center;border:1px solid #d9e3dc;border-radius:8px;background:#fff;color:#2b5038!important;text-decoration:none!important}.so-calendar-grid{overflow:hidden;border:1px solid #e1e8e3;border-radius:12px}.so-calendar-weekday{padding:9px;background:#eef5f0;color:#637068;font-size:9px;font-weight:800;text-align:center;text-transform:uppercase;letter-spacing:.06em}.so-calendar-day{min-height:112px!important;padding:8px!important;background:#fff!important}.so-calendar-day>span{display:inline-grid;width:23px;height:23px;place-items:center;margin-bottom:4px;border-radius:50%;color:#516158;font-size:10px;font-weight:800}.so-calendar-day a{display:block;margin:3px 0 0;padding:4px 5px;border-radius:6px;background:#eef5f0;color:#28523a!important;font-size:8.6px;font-weight:700;line-height:1.25;text-decoration:none!important}.so-calendar-day a[data-so-event-type="tournament"]{background:#244f35;color:#fff!important}
.so-events-archive{background:#f8faf8}.so-events-archive .so-event-card__action-label{font-size:0!important}.so-events-archive .so-event-card__action-label:after{content:"Zobacz archiwum";font-size:8.8px}

/* Single event page */
.so-event-single{padding:18px 0 64px}.so-event-single>.so-breadcrumbs{margin-bottom:14px}.so-event-single__hero{display:grid;grid-template-columns:minmax(360px,.86fr) minmax(0,1.14fr);gap:0;overflow:hidden;border:1px solid #dce5de;border-radius:20px;background:#fff;box-shadow:0 14px 44px rgba(20,57,32,.06)}.so-event-single__media{display:grid;min-height:500px;place-items:center;padding:26px;border-right:1px solid #e1e8e3;background:linear-gradient(145deg,#edf4ef,#fafcfa)}.so-event-single__media img{display:block;width:100%!important;height:100%!important;max-height:500px!important;object-fit:contain!important}.so-event-single__placeholder{display:grid;width:100%;height:100%;place-items:center;color:#76917e;font-size:44px}.so-event-single__summary{display:flex;min-width:0;flex-direction:column;padding:38px 40px}.so-event-single__chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:14px}.so-event-single__archive-chip{display:inline-flex;min-height:26px;align-items:center;padding:0 10px;border-radius:999px;background:#e9ecea;color:#59645d;font-size:9px;font-weight:800}.so-event-single__summary h1{max-width:780px;margin:0!important;color:#22372a!important;font-family:var(--so-font-heading)!important;font-size:clamp(36px,4.2vw,54px)!important;font-weight:750!important;line-height:1!important;letter-spacing:-.035em!important}.so-event-single__lead{max-width:760px;margin:14px 0 0!important;color:#68766d;font-size:13.5px;line-height:1.58}.so-event-single__archive-note{margin:16px 0 0;padding:11px 12px;border:1px solid #d6ddd8;border-radius:9px;background:#f2f4f2;color:#5f6b63;font-size:11px;line-height:1.45}.so-event-single__facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:23px}.so-event-single__facts>div,.so-event-single__recurrence{padding:11px 12px;border:1px solid #e1e8e3;border-radius:10px;background:#fbfcfb}.so-event-single__facts small,.so-event-single__recurrence small{display:block;margin-bottom:4px;color:#879188;font-size:8.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}.so-event-single__facts strong,.so-event-single__recurrence strong{display:block;color:#26382d;font-size:12px;line-height:1.35}.so-event-single__recurrence{margin-top:9px;background:#f2f7f3}.so-event-single__actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:22px}.so-event-single__actions .so-btn{min-height:42px;border-radius:9px;font-size:11px}.so-event-single__content{max-width:920px;margin:24px auto 0;padding:28px 30px;border:1px solid #e0e7e2;border-radius:16px;background:#fff;color:#526158;font-size:13px;line-height:1.72;box-shadow:0 8px 28px rgba(22,55,35,.035)}.so-event-single__content h2{margin:2px 0 14px!important;color:#24382c!important;font-family:var(--so-font-heading)!important;font-size:30px!important}.so-event-single__related{margin-top:30px}.so-event-single__related .so-event-card{min-height:260px}.so-event-single__related .so-event-card__quick{grid-template-columns:38% minmax(0,62%)}.so-event-single__hero.is-archived{border-color:#d7ddd8}.so-event-single__hero.is-archived .so-event-single__media{filter:saturate(.7);background:#f1f3f1}

@media(max-width:1120px){
 .so-events-page .so-event-upcoming-grid,.so-events-page .so-events-archive-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 .so-events-hero{grid-template-columns:1fr;gap:22px}.so-events-hero__stats{max-width:560px}
}
@media(max-width:900px){
 .so-events-page{width:min(var(--so-container),calc(100% - 28px));padding-top:18px}
 .so-event-filters{top:68px}
 .so-events-page .so-event-upcoming-grid,.so-events-page .so-events-archive-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .so-event-schedule-row{grid-template-columns:64px minmax(0,1fr) auto}.so-event-schedule-row__media{width:64px;height:54px}.so-event-schedule-row__when{grid-column:2}.so-event-schedule-row__action{grid-column:3;grid-row:1/3}
 .so-event-single{width:min(var(--so-container),calc(100% - 28px))}.so-event-single__hero{grid-template-columns:1fr}.so-event-single__media{min-height:380px;border-right:0;border-bottom:1px solid #e1e8e3}.so-event-single__media img{max-height:370px!important}.so-event-single__summary{padding:28px}
 .so-section-heading__note{text-align:left}
}
@media(max-width:640px){
 .so-events-page{padding-bottom:46px}.so-events-hero{padding:24px 20px;border-radius:15px}.so-events-hero__stats{grid-template-columns:repeat(3,1fr);gap:5px}.so-events-hero__stats>div{padding:10px 8px}.so-events-hero__stats dt{font-size:7.8px}.so-events-hero__stats dd{font-size:20px}
 .so-event-filters{top:58px;margin-inline:-2px;padding:7px}.so-event-filters button{min-height:32px;padding-inline:10px!important}
 .so-events-section{margin-top:14px;padding:17px 14px;border-radius:14px}.so-events-section .so-section-heading{display:block}.so-section-heading__note{margin-top:7px!important}
 .so-events-page .so-event-upcoming-grid,.so-events-page .so-events-archive-grid{grid-template-columns:1fr!important;gap:9px!important}.so-events-page .so-event-card--league{height:176px!important;min-height:176px!important}.so-events-page .so-event-card--league .so-event-card__quick{grid-template-columns:34% minmax(0,66%)!important}
 .so-event-schedule-row{grid-template-columns:54px minmax(0,1fr);gap:10px;padding:9px}.so-event-schedule-row__media{width:54px;height:48px}.so-event-schedule-row__when{grid-column:2}.so-event-schedule-row__action{grid-column:1/-1;grid-row:auto;width:100%}
 .so-event-calendar{padding-inline:8px}.so-calendar-grid{min-width:720px}.so-event-calendar{overflow-x:auto}.so-event-calendar .so-section-heading{position:sticky;left:0}.so-calendar-day{min-height:92px!important}
 .so-event-single__hero{border-radius:14px}.so-event-single__media{min-height:300px;padding:16px}.so-event-single__media img{max-height:290px!important}.so-event-single__summary{padding:22px 18px}.so-event-single__summary h1{font-size:34px!important}.so-event-single__facts{grid-template-columns:1fr}.so-event-single__content{padding:20px 18px}.so-event-single__actions .so-btn{width:100%;justify-content:center}
}


/* ==========================================================
   v0.21.1 — event page containment + stronger visual hierarchy
   ========================================================== */
body.straganui-events-page .so-events-page,
body.straganui-events-page .so-event-single{
    width:min(var(--so-container),calc(100% - 48px))!important;
    max-width:calc(100% - 48px)!important;
    min-width:0!important;
    margin-left:auto!important;
    margin-right:auto!important;
}
body.straganui-events-page .so-events-page>*,
body.straganui-events-page .so-event-single>*{min-width:0;max-width:100%}
body.straganui-events-page .so-events-hero,
body.straganui-events-page .so-event-filters,
body.straganui-events-page .so-events-section,
body.straganui-events-page .so-event-single__hero,
body.straganui-events-page .so-event-single__content,
body.straganui-events-page .so-event-single__related{min-width:0;max-width:100%}

/* Archive hero: deliberately separated from the pale page surfaces. */
.so-events-page .so-events-hero{
    border-color:#173b28!important;
    background:linear-gradient(128deg,#163824 0%,#28583a 62%,#35694a 100%)!important;
    box-shadow:0 14px 38px rgba(18,51,31,.15)!important;
}
.so-events-page .so-events-hero:after{border-color:rgba(255,255,255,.1)!important}
.so-events-page .so-events-hero .so-eyebrow{color:#bcd8c3!important}
.so-events-page .so-events-hero h1{color:#fff!important}
.so-events-page .so-events-hero__copy>p:last-child{color:#dce9df!important}
.so-events-page .so-events-hero__stats>div{border-color:rgba(255,255,255,.18)!important;background:rgba(255,255,255,.94)!important;box-shadow:0 6px 18px rgba(8,31,17,.08)}
.so-events-page .so-events-hero__stats dt{color:#65756b!important}.so-events-page .so-events-hero__stats dd{color:#173f29!important}

/* Filters remain a clean neutral separator. */
.so-events-page .so-event-filters{border-color:#d3dfd6!important;background:rgba(255,255,255,.98)!important;box-shadow:0 8px 24px rgba(23,58,34,.075)!important}
.so-events-page .so-event-filters button.is-active{border-color:#39714a!important;background:#315f40!important;color:#fff!important}

/* Each block now has its own surface instead of one continuous pale field. */
.so-events-page .so-events-nearest{border-top:4px solid #3f744a!important;background:#fff!important}
.so-events-page .so-events-regular{border-color:#d4e2d7!important;border-top:3px solid #6d9977!important;background:#f2f7f3!important}
.so-events-page .so-event-calendar{border-top:3px solid #315c3e!important;background:#fff!important}
.so-events-page .so-events-archive{border-color:#d8ddda!important;border-top:3px solid #7a867e!important;background:#f4f5f4!important}
.so-events-page .so-events-section .so-eyebrow{font-weight:750!important}
.so-events-page .so-events-nearest .so-eyebrow{color:#3f744a!important}
.so-events-page .so-events-regular .so-eyebrow{color:#557f60!important}
.so-events-page .so-event-calendar .so-eyebrow{color:#315c3e!important}
.so-events-page .so-events-archive .so-eyebrow{color:#707a73!important}

/* Schedule rows stand off from the tinted regular-play section. */
.so-events-page .so-event-schedule-row{border-color:#cfded3!important;background:#fff!important;box-shadow:0 3px 12px rgba(28,64,39,.035)}
.so-events-page .so-event-schedule-row__chips span{border:1px solid #b9d1bf!important;background:#e7f2ea!important;color:#245137!important}
.so-events-page .so-event-schedule-row__chips em{border:1px solid #e0e5e1!important;background:#f7f8f7!important;color:#667169!important}

/* Single event: clear badge semantics instead of three similar pale pills. */
.so-event-single__chips{gap:8px!important}
.so-event-single__chips .so-event-single__game-chip,
.so-event-single__chips .so-event-single__type-chip,
.so-event-single__chips .so-event-single__status-chip,
.so-event-single__chips .so-event-single__archive-chip{
    display:inline-flex!important;min-height:29px!important;align-items:center!important;padding:0 11px!important;
    border:1px solid transparent!important;border-radius:999px!important;font-size:9.5px!important;font-weight:800!important;letter-spacing:.02em!important;
}
.so-event-single__chips .so-event-single__game-chip{border-color:#173b28!important;background:#173b28!important;color:#fff!important}
.so-event-single__chips .so-event-single__type-chip.so-event-card__type-tag--league{border-color:#b6cfbd!important;background:#e5f1e8!important;color:#215035!important}
.so-event-single__chips .so-event-single__type-chip.so-event-card__type-tag--tournament{border-color:#d7b65e!important;background:#f5e2aa!important;color:#654b0c!important}
.so-event-single__chips .so-event-single__status-chip{border-color:#cdd9d0!important;background:#fff!important;color:#4d5f53!important}
.so-event-single__chips .so-event-single__status-chip.so-event-status--open{border-color:#8bb499!important;background:#eff8f1!important;color:#1f6238!important}
.so-event-single__chips .so-event-single__status-chip.so-event-status--full{border-color:#d4bb76!important;background:#fff7df!important;color:#745815!important}
.so-event-single__chips .so-event-single__status-chip.so-event-status--ended,
.so-event-single__chips .so-event-single__status-chip.so-event-status--cancelled{border-color:#d0d4d1!important;background:#eef0ee!important;color:#657068!important}
.so-event-single__chips .so-event-single__archive-chip{border-color:#c9cfcb!important;background:#e7eae8!important;color:#525f56!important}

/* Single event sections get stronger depth and contrast. */
.so-event-single__hero{border-color:#cedbd1!important;box-shadow:0 16px 46px rgba(19,55,31,.09)!important}
.so-event-single__media{background:linear-gradient(145deg,#eaf2ec 0%,#f8faf8 100%)!important}
.so-event-single__summary{background:#fff!important}
.so-event-single__facts>div{border-color:#d6e2d9!important;background:#f2f7f3!important;box-shadow:inset 3px 0 0 #88aa91}
.so-event-single__facts>div:nth-child(even){background:#fafbfa!important;box-shadow:inset 3px 0 0 #c7d4ca}
.so-event-single__recurrence{border-color:#bfd4c4!important;background:#eaf4ec!important;box-shadow:inset 3px 0 0 #5f8b69}
.so-event-single__content{position:relative;overflow:hidden;border-color:#d5e0d8!important;background:#fff!important;box-shadow:0 10px 30px rgba(22,55,35,.055)!important}
.so-event-single__content:before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:#3f744a}
.so-event-single__related{padding:24px;border:1px solid #d6e2d9;border-radius:18px;background:#edf5ef}
.so-event-single__related .so-section-heading{margin-bottom:16px}

@media(max-width:900px){
 body.straganui-events-page .so-events-page,body.straganui-events-page .so-event-single{width:calc(100% - 28px)!important;max-width:calc(100% - 28px)!important}
 .so-events-page .so-events-hero{padding:28px!important}
}
@media(max-width:640px){
 body.straganui-events-page .so-events-page,body.straganui-events-page .so-event-single{width:calc(100% - 20px)!important;max-width:calc(100% - 20px)!important}
 .so-events-page .so-events-hero{padding:22px 18px!important}
 .so-event-single__related{padding:16px}
 .so-event-single__chips .so-event-single__game-chip,.so-event-single__chips .so-event-single__type-chip,.so-event-single__chips .so-event-single__status-chip,.so-event-single__chips .so-event-single__archive-chip{min-height:27px!important;padding-inline:9px!important;font-size:9px!important}
}


/* ==========================================================
   v0.21.2 — minimal event hub
   ========================================================== */
/* Remove the visual rule/shadow between StraganUI header and event content. */
body.straganui-events-page #straganui-header,
body.straganui-events-page .so-site-header{
    border-bottom:0!important;
    box-shadow:none!important;
}
body.straganui-events-page #content,
body.straganui-events-page .site-content,
body.straganui-events-page #primary,
body.straganui-events-page .content-area,
body.straganui-events-page .site-main{
    border-top:0!important;
    box-shadow:none!important;
}

/* With the duplicate nearest-events wall removed, keep the hub compact. */
.so-events-page .so-event-filters{margin-bottom:12px!important}
.so-events-page .so-events-regular{margin-top:14px!important}


/* StraganUI v0.21.3 — minimalist Eventy hub: remove redundant game filter bar */
body.straganui-events-page .so-event-filters,
body.straganui-events-page .so-event-filter-empty{display:none!important}


/* ==========================================================
   v0.21.4 — Eventy spacing audit / schedule-row balance
   ========================================================== */
@media (min-width:901px) and (max-width:1180px){
    .so-event-schedule-row{grid-template-columns:68px minmax(220px,1fr) 128px 112px;column-gap:13px;padding-right:13px}
    .so-event-schedule-row__media{width:68px;height:56px}
    .so-event-schedule-row__action{min-width:90px}
}
@media (min-width:1181px){
    .so-events-page .so-event-schedule-row__when{padding-left:2px}
}


/* =========================================================
   v0.32.0 — deterministic event artwork + public readability floor
   ========================================================= */
.so-event-card__media{
    position:relative!important;
    overflow:hidden!important;
    background:#f1f4f2!important;
}
.so-event-card__media img{
    display:block!important;
    width:100%!important;
    height:100%!important;
    max-width:none!important;
    object-fit:cover!important;
    object-position:center!important;
}
.so-event-card__topline{font-size:11px!important}
.so-event-status,.so-event-card__type-tag{font-size:11px!important}
.so-event-card__excerpt,.so-event-card__summary{font-size:12.5px!important;line-height:1.42!important}
.so-event-card__facts,.so-event-card__recurrence{font-size:11.5px!important}

.so-event-modal__visual{padding:22px!important}
.so-event-modal__media{
    width:min(100%,360px)!important;
    aspect-ratio:4/5!important;
    height:auto!important;
    max-height:100%!important;
    border:1px solid #dfe7e1!important;
    border-radius:14px!important;
    background:#fff!important;
    box-shadow:0 8px 24px rgba(18,50,31,.06)!important;
}
.so-event-modal__media img{
    width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;background:#fff!important
}
.so-event-modal__chips .so-event-modal__game,
.so-event-modal__chips .so-event-card__type-tag,
.so-event-modal__chips .so-event-status{font-size:11px!important}
.so-event-modal__info small,.so-event-modal__recurrence small{font-size:11px!important}
.so-event-modal__info strong,.so-event-modal__recurrence strong{font-size:13px!important}
.so-event-modal__description{font-size:13.5px!important}
.so-event-modal__description h3{font-size:15px!important}

.so-event-single__facts small,.so-event-single__recurrence small{font-size:11px!important}
.so-event-single__facts strong,.so-event-single__recurrence strong{font-size:13px!important}
.so-event-single__archive-chip{font-size:11px!important}
.so-event-single__archive-note{font-size:12.5px!important}
.so-event-single__actions .so-btn{font-size:12.5px!important}
.so-event-single__content{font-size:15px!important;line-height:1.72!important}

@media(min-width:761px){
    body.straganui-home-active .so-home-leagues .so-event-card--league{
        height:190px!important;min-height:190px!important;max-height:190px!important
    }
    body.straganui-home-active .so-home-leagues .so-event-card--league .so-event-card__title{font-size:15px!important}
    body.straganui-home-active .so-home-leagues .so-event-card--league .so-event-card__summary{font-size:12px!important}
    body.straganui-home-active .so-home-leagues .so-event-card--league .so-event-card__facts{font-size:11.5px!important}
}
@media(max-width:760px){
    .so-event-modal__media{width:min(100%,300px)!important;aspect-ratio:4/5!important}
}

/* v0.32.0 event hub small-text corrections */
.so-events-hero__stats dt{font-size:11px!important}
.so-events-page .so-event-card--league .so-event-card__summary{font-size:12px!important}
.so-events-page .so-event-card--league .so-event-card__facts{font-size:11.5px!important}
.so-events-page .so-event-card--league .so-event-card__fee{font-size:12px!important}
.so-events-page .so-event-card--league .so-event-card__action-label{font-size:11px!important}
.so-event-schedule-row__chips span,.so-event-schedule-row__chips em{font-size:11px!important}
.so-event-schedule-row p{font-size:12px!important}
.so-event-schedule-row__when strong{font-size:12.5px!important}
.so-event-schedule-row__when small{font-size:11px!important}
.so-event-schedule-row__action{font-size:11.5px!important}
.so-calendar-weekday{font-size:11px!important}
.so-calendar-day>span{font-size:11.5px!important}
.so-calendar-day a{font-size:10.5px!important}
.so-events-archive .so-event-card__action-label:after{font-size:11px!important}
@media(max-width:640px){.so-events-hero__stats dt{font-size:10px!important}}
