/* SDT Events: homepage section ([sdt_events_home]). Everything is scoped to .sdt-home.
   Brand colours come from Corporate Identity (--sdt-ci-*, SDT Manager > Corporate Identity). */
.sdt-home {
    --home-brand: var(--sdt-ci-primary, #fdb913);
    --home-brand-ink: var(--sdt-ci-on-primary, #111);
    --home-label: var(--sdt-ci-primary, #9433a8);
    --home-bg: transparent;
    --home-fg: var(--sdt-ci-text, #111);
    --home-fg-2: #5a5a55;
    --home-card: #fff;
    --home-card-2: #f1f1ed;
    --home-line: #e2e2dc;
    --home-chip-dark: #000;
    --home-shadow: 0 1px 2px rgba(0,0,0,.05), 0 16px 40px rgba(0,0,0,.08);
    position: relative;
    color: var(--home-fg);
    background: transparent; /* light: sits directly on the page background */
    padding-block: clamp(32px, 5vw, 64px);
    line-height: 1.5;
}
.sdt-home.is-dark {
    --home-bg: var(--sdt-ci-dark, #000);
    --home-fg: #f5f5f2;
    --home-fg-2: rgba(245,245,242,.68);
    --home-card: #141414;
    --home-card-2: rgba(255,255,255,.06);
    --home-line: rgba(255,255,255,.12);
    --home-label: color-mix(in srgb, var(--sdt-ci-primary, #fdb913) 55%, #fff);
    --home-shadow: 0 30px 60px rgba(0,0,0,.35);
    background: radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--home-brand) 30%, transparent), transparent 40%), var(--home-bg);
    padding-inline: clamp(16px, 3vw, 40px);
    border-radius: 24px;
}
.sdt-home *, .sdt-home *::before, .sdt-home *::after { box-sizing: border-box; }
.sdt-home [hidden] { display: none !important; }
.sdt-home a { color: inherit; text-decoration: none; }
.sdt-home h2, .sdt-home h3, .sdt-home h4, .sdt-home p, .sdt-home ul { margin: 0; }
.sdt-home a:focus-visible { outline: 3px solid var(--home-brand); outline-offset: 3px; border-radius: 8px; }

/* Heading row */
.sdt-home-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.sdt-home .sdt-home-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--home-fg-2); }
.sdt-home-eyebrow::before { content: ""; width: 24px; height: 3px; border-radius: 2px; background: var(--home-brand); }
.sdt-home .sdt-home-title { font-size: clamp(2.2rem, 5vw, 3.6rem) !important; font-weight: 800; letter-spacing: -.035em; line-height: 1 !important; color: var(--home-fg) !important; text-wrap: balance; }
.sdt-home .sdt-home-count { margin-top: 12px; color: var(--home-fg-2); font-size: 1rem; }
.sdt-home .sdt-home-count b { color: var(--home-fg); }
.sdt-home-all { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 20px; border-radius: 12px; font-weight: 700; border: 1.5px solid var(--home-line); background: var(--home-card); transition: border-color .2s, transform .15s; }
.sdt-home-all:hover { border-color: var(--home-brand); transform: translateY(-1px); }
.sdt-home-all span { transition: transform .2s; }
.sdt-home-all:hover span { transform: translateX(4px); }

/* Feature + list */
.sdt-home-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.sdt-home-features { display: grid; }
.sdt-home-feature { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); border-radius: 22px; overflow: hidden; background: var(--home-card); border: 1px solid var(--home-line); box-shadow: var(--home-shadow); }
.sdt-home-feature-media { position: relative; display: block; background: var(--home-card-2); min-height: 100%; }
.sdt-home-feature-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s; }
.sdt-home-feature:hover .sdt-home-feature-media img { transform: scale(1.04); }
.sdt-home-feature-body { display: flex; flex-direction: column; gap: 12px; padding: clamp(18px, 2.4vw, 28px); min-width: 0; }
.sdt-home-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sdt-home-tag { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--home-card-2); border: 1px solid var(--home-line); }
.sdt-home-tag--brand { background: var(--home-brand); border-color: var(--home-brand); color: var(--home-brand-ink); }
.sdt-home-tag [data-rel]:not(:empty)::before { content: "·"; margin: 0 5px 0 1px; }
.sdt-home-pulse { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: sdt-home-pulse 2s infinite; }
@keyframes sdt-home-pulse { 0% { box-shadow: 0 0 0 0 currentColor; } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }
.sdt-home .sdt-home-feature-title { margin-top: 4px; font-size: clamp(1.5rem, 2.6vw, 2.1rem) !important; font-weight: 800; letter-spacing: -.02em; line-height: 1.1 !important; color: var(--home-fg) !important; }
.sdt-home-feature-title a:hover { text-decoration: underline; text-decoration-color: var(--home-brand); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.sdt-home-facts { list-style: none; padding: 0 !important; display: grid; gap: 6px; color: var(--home-fg-2); font-size: .95rem; }
.sdt-home-facts li { display: flex; gap: 9px; align-items: flex-start; margin: 0; }
.sdt-home-facts svg { flex: none; margin-top: 3px; color: var(--home-brand); }
.sdt-home-cd { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: auto; }
.sdt-home-cd span { display: flex; flex-direction: column; align-items: center; padding: 10px 4px; border-radius: 12px; background: var(--home-card-2); border: 1px solid var(--home-line); font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--home-fg-2); }
.sdt-home-cd b { font-size: 1.55rem; font-weight: 800; color: var(--home-fg); line-height: 1.05; font-variant-numeric: tabular-nums; }
.sdt-home-cd.is-live { display: block; }
.sdt-home-cd.is-live span { display: none; }
.sdt-home-cd.is-live::before { content: "Happening now"; display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--home-brand); color: var(--home-brand-ink); font-weight: 700; font-size: .85rem; }
.sdt-home .sdt-home-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 20px; border-radius: 12px; font-weight: 700; background: var(--home-brand); color: var(--home-brand-ink); transition: filter .15s, transform .15s; }
.sdt-home-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* Upcoming list */
.sdt-home-list { display: grid; grid-auto-rows: 1fr; gap: 12px; }
.sdt-home-row { position: relative; display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 12px; border-radius: 18px; background: var(--home-card); border: 1px solid var(--home-line); transition: transform .25s, border-color .25s, box-shadow .25s; }
.sdt-home-row:hover, .sdt-home-row:focus-within { transform: translateX(4px); border-color: var(--home-brand); box-shadow: var(--home-shadow); }
.sdt-home-thumb { position: relative; width: 92px; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--home-card-2); }
.sdt-home-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform .5s; }
.sdt-home-row:hover .sdt-home-thumb img { transform: scale(1.06); }
.sdt-home-date { position: absolute; left: 6px; bottom: 6px; min-width: 40px; padding: 3px 5px; border-radius: 7px; text-align: center; line-height: 1.05; background: var(--home-chip-dark); color: #fff; }
.sdt-home-date b { display: block; font-size: 1.05rem; font-weight: 800; }
.sdt-home-date span { font-size: .56rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.sdt-home-row-body { min-width: 0; display: grid; gap: 4px; }
.sdt-home-row-body small { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--home-label); }
.sdt-home .sdt-home-row-title { font-size: 1.05rem !important; font-weight: 700; line-height: 1.25 !important; color: var(--home-fg) !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sdt-home-row-title a::after { content: ""; position: absolute; inset: 0; border-radius: 18px; }
.sdt-home .sdt-home-row-body p { font-size: .86rem; color: var(--home-fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sdt-home-side { display: grid; gap: 8px; justify-items: end; align-self: stretch; align-content: space-between; }
.sdt-home-rel { font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--home-card-2); border: 1px solid var(--home-line); white-space: nowrap; }
.sdt-home-rel:empty { visibility: hidden; }
.sdt-home-arrow { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--home-card-2); transition: background .2s, color .2s, transform .2s; }
.sdt-home-row:hover .sdt-home-arrow { background: var(--home-brand); color: var(--home-brand-ink); transform: translateX(2px); }

.sdt-home-empty { padding: 40px; border-radius: 20px; border: 1.5px dashed var(--home-line); text-align: center; color: var(--home-fg-2); }

/* Every week */
.sdt-home-week { margin-top: 24px; padding: 18px; border-radius: 20px; background: var(--home-card-2); border: 1px solid var(--home-line); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; }
.sdt-home .sdt-home-week-title { font-size: 1rem !important; font-weight: 800; white-space: nowrap; color: var(--home-fg) !important; line-height: 1.3 !important; }
.sdt-home-week-title span { display: block; font-size: .8rem; font-weight: 500; color: var(--home-fg-2); }
.sdt-home-pills { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; padding: 2px; }
.sdt-home-pills::-webkit-scrollbar { display: none; }
.sdt-home-pill { flex: none; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 999px; background: var(--home-card); border: 1px solid var(--home-line); font-size: .9rem; font-weight: 600; transition: border-color .2s, transform .15s; }
.sdt-home-pill:hover { border-color: var(--home-brand); transform: translateY(-1px); }
.sdt-home-pill b { display: grid; place-items: center; min-width: 40px; height: 28px; padding: 0 8px; border-radius: 999px; background: var(--home-card-2); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.sdt-home-pill em { font-style: normal; font-weight: 500; color: var(--home-fg-2); font-size: .82rem; }
.sdt-home-pill.is-today { border-color: var(--home-brand); }
.sdt-home-pill.is-today b { background: var(--home-brand); color: var(--home-brand-ink); }

@media (max-width: 1024px) {
    .sdt-home-grid { grid-template-columns: minmax(0, 1fr); }
    .sdt-home-list { grid-auto-rows: auto; }
}
@media (max-width: 640px) {
    .sdt-home-feature { grid-template-columns: minmax(0, 1fr); }
    .sdt-home-feature-media { aspect-ratio: 16 / 10; min-height: 0; }
    .sdt-home-row { grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 10px; }
    .sdt-home-thumb { width: 76px; }
    .sdt-home-side { display: none; }
    .sdt-home-week { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .sdt-home-all { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    .sdt-home *, .sdt-home *::before, .sdt-home *::after { animation: none !important; transition: none !important; }
}
