/* TSD Events - front-end styles. Theme independent: everything is scoped to .tsd-* classes.
   Look: white rounded cards on light gray, accent (#FDB813) icons + pill buttons,
   bold uppercase Montserrat-style headings, black round close button.
   Fonts: uses Montserrat if the theme loads it, else a system sans stack (no third-party font request). */
:root { --tsd-accent: #FDB813; --tsd-ink: #111; --tsd-muted: #5b5b5b; --tsd-bg: #f2f2f2; --tsd-card: #fff; --tsd-radius: 18px; }

.tsd-list, .tsd-month, .tsd-event, .tsd-modal { font-family: Montserrat, "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif; color: var(--tsd-ink); line-height: 1.55; }
.tsd-event *, .tsd-list *, .tsd-month *, .tsd-modal * { box-sizing: border-box; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

/* Buttons */
.tsd-btn { display: inline-block; padding: .7em 1.6em; border-radius: 999px; background: var(--tsd-accent); color: #111 !important; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; text-decoration: none !important; font-size: .85rem; border: 2px solid var(--tsd-accent); cursor: pointer; transition: transform .12s, box-shadow .12s; }
.tsd-btn:hover, .tsd-btn:focus-visible { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.tsd-btn--ghost { background: transparent; border-color: var(--tsd-accent); }
.tsd-btn:focus-visible, .tsd-modal__close:focus-visible, .tsd-chip:focus-visible { outline: 3px solid #111; outline-offset: 2px; }
.tsd-badge { display: inline-block; padding: .25em .8em; border-radius: 999px; background: #111; color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.tsd-badge--out { background: #b32d2e; }
.tsd-badge--in { background: #1a7f37; }
.tsd-seats { margin: 0 0 .8em; }
.tsd-empty { padding: 1.5em; background: var(--tsd-card); border-radius: var(--tsd-radius); }

/* The card stack (pop-up and event page share this) */
.tsd-event { background: var(--tsd-bg); padding: 16px; border-radius: calc(var(--tsd-radius) + 6px); display: grid; gap: 16px; max-width: 880px; margin: 0 auto; }
.tsd-event--page { margin-top: 1rem; }
.tsd-hero { background: var(--tsd-card); border-radius: var(--tsd-radius); overflow: hidden; }
.tsd-hero__img { display: block; width: 100%; height: auto; max-height: 460px; object-fit: cover; }
.tsd-hero__text { padding: 18px 22px 22px; }
.tsd-hero__title { margin: 0 0 .2em; font-size: clamp(1.4rem, 3.4vw, 2rem); font-weight: 900; text-transform: uppercase; letter-spacing: .01em; }
.tsd-hero__sub { margin: 0; color: var(--tsd-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; }
.tsd-hero__when { margin: .6em 0 0; font-weight: 700; }
.tsd-card { background: var(--tsd-card); border-radius: var(--tsd-radius); padding: 20px 24px 22px; }
.tsd-card__h { display: flex; align-items: center; gap: .6em; margin: 0 0 .8em; font-size: 1.05rem; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; color: var(--tsd-ink); }
.tsd-ico { color: var(--tsd-accent); flex: 0 0 auto; }
.tsd-card__sub { margin: 1.2em 0 .4em; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; font-size: .95rem; }
.tsd-card__b > :first-child { margin-top: 0; }
.tsd-card__b > :last-child { margin-bottom: 0; }
.tsd-card__b a:not(.tsd-btn) { color: #111; font-weight: 700; text-decoration-color: var(--tsd-accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.tsd-price { font-size: 1.6rem; font-weight: 900; }
.tsd-card--gear ul { padding-left: 1.2em; }
.tsd-map iframe { display: block; width: 100%; height: 320px; border: 0; border-radius: 12px; }
.tsd-directions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.tsd-directions input[type=text] { flex: 1 1 260px; min-width: 0; padding: .75em 1em; border: 2px solid #ddd; border-radius: 999px; font: inherit; }
.tsd-directions input[type=text]:focus { border-color: var(--tsd-accent); outline: none; }

/* Two-column rows on desktop: [Get Signed Up | Learn More] and [Cost | Location]; single column on mobile */
.tsd-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tsd-row > .tsd-card { height: 100%; }
.tsd-org { display: flex; gap: 18px; align-items: flex-start; }
.tsd-org__logo { width: 96px; height: 96px; object-fit: contain; border-radius: 12px; background: #f6f6f6; flex: 0 0 auto; }
.tsd-org__text p { margin: 0 0 .5em; }
.tsd-org__name { font-size: 1.1rem; }
.tsd-org__desc { color: var(--tsd-muted); }
.tsd-group__h { margin: 1.2em 0 .2em; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; font-size: 1.3rem; }
.tsd-group__h:first-child { margin-top: 0; }

/* Pop-up */
.tsd-modal[hidden] { display: none; }
.tsd-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: flex-start; justify-content: center; padding: 3vh 12px; overflow-y: auto; }
.tsd-modal__backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.6); }
.tsd-modal__dialog { position: relative; width: 100%; max-width: 900px; outline: none; }
.tsd-modal__close { position: absolute; top: -6px; right: -6px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 3px solid #fff; background: #000; color: #fff; display: grid; place-items: center; cursor: pointer; }
.tsd-modal__body .tsd-event { max-width: none; margin: 0; }
.tsd-modal__loading { background: var(--tsd-card); border-radius: var(--tsd-radius); padding: 3em; text-align: center; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
body.tsd-modal-open { overflow: hidden; }

/* List tiles */
.tsd-list { display: grid; gap: 16px; }
.tsd-tile { position: relative; display: grid; grid-template-columns: 76px 190px 1fr; gap: 18px; align-items: center; background: var(--tsd-card); border-radius: var(--tsd-radius); padding: 16px 20px 16px 16px; box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.tsd-tile__date { background: #111; color: #fff; border-radius: 14px; text-align: center; padding: .6em .2em; line-height: 1; }
.tsd-tile__day { display: block; font-size: 2rem; font-weight: 900; color: var(--tsd-accent); }
.tsd-tile__mon { display: block; margin-top: .3em; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.tsd-tile__media img { display: block; width: 100%; height: 110px; object-fit: cover; border-radius: 12px; }
.tsd-tile__title { margin: 0; font-size: 1.15rem; font-weight: 900; text-transform: uppercase; }
.tsd-tile__title a { color: inherit; text-decoration: none; }
.tsd-tile__sub { margin: .1em 0 0; color: var(--tsd-muted); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.tsd-tile__meta { margin: .5em 0; color: var(--tsd-muted); font-size: .92rem; }
.tsd-tile__actions { margin: .4em 0 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tsd-tile.is-cancelled { opacity: .6; }
.tsd-tile:not(:has(.tsd-tile__media)) { grid-template-columns: 76px 1fr; }

/* Month grid */
.tsd-month { background: var(--tsd-card); border-radius: var(--tsd-radius); padding: 16px; }
.tsd-month__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.tsd-month__title { margin: 0; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.tsd-month__nav { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--tsd-accent); color: #111 !important; font-size: 1.6rem; font-weight: 900; text-decoration: none !important; line-height: 1; }
.tsd-month__grid { width: 100%; border-collapse: separate; border-spacing: 4px; table-layout: fixed; }
.tsd-month__grid th { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--tsd-muted); padding: 6px 0; }
.tsd-month__grid td { vertical-align: top; height: 92px; padding: 6px; background: #fafafa; border-radius: 10px; font-size: .8rem; }
.tsd-month__grid td.is-pad { background: transparent; }
.tsd-month__grid td.has-events { background: #fff7e0; }
.tsd-month__num { display: block; font-weight: 800; margin-bottom: 4px; color: var(--tsd-muted); }
.tsd-chip { display: block; margin-bottom: 3px; padding: 3px 7px; border-radius: 8px; background: var(--tsd-chip, var(--tsd-accent)); color: #111 !important; text-decoration: none !important; font-weight: 700; font-size: .72rem; line-height: 1.25; overflow: hidden; }
.tsd-chip.is-cancelled { text-decoration: line-through !important; opacity: .6; }
.tsd-chip__time { font-weight: 900; }

@media (max-width: 720px) {
  .tsd-row { grid-template-columns: 1fr; }
  .tsd-org { flex-direction: column; }
  .tsd-event { padding: 10px; gap: 10px; }
  .tsd-card { padding: 16px 16px 18px; }
  .tsd-tile, .tsd-tile:not(:has(.tsd-tile__media)) { grid-template-columns: 64px 1fr; }
  .tsd-tile__media { grid-column: 1 / -1; grid-row: 1; }
  .tsd-tile__media img { height: 160px; }
  .tsd-tile__date { grid-row: 2; }
  .tsd-tile__main { grid-row: 2; }
  /* Month grid turns into an agenda: hide empty days */
  .tsd-month__grid thead { display: none; }
  .tsd-month__grid, .tsd-month__grid tbody, .tsd-month__grid tr, .tsd-month__grid td { display: block; width: 100%; }
  .tsd-month__grid td { height: auto; margin-bottom: 6px; }
  .tsd-month__grid td:not(.has-events) { display: none; }
  .tsd-month__num::after { content: " \2022"; }
  .tsd-modal { padding: 0; }
  .tsd-modal__close { top: 8px; right: 8px; }
}
@media (prefers-reduced-motion: reduce) { .tsd-btn { transition: none; } }
