.ed-offset { height: 64px; }
@media (max-width: 768px) { .ed-offset { display: none; } }
.ed-page { max-width: 900px; margin: 0 auto; padding: 48px 24px 80px; }
.ed-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #999; text-decoration: none; margin-bottom: 28px; transition: color .15s; }
.ed-back:hover { color: #f5f5f7; }
.ed-heading { font-size: 2.4rem; font-weight: 800; letter-spacing: -1px; margin: 0 0 28px; background: linear-gradient(135deg, #fff 0%, #999 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.ed-meta { display: flex; flex-wrap: wrap; gap: 20px; margin: 0 0 20px; }
.ed-meta-item { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #999; }
.ed-meta-item a { color: inherit; text-decoration: underline; }
.ed-meta-item svg { flex: 0 0 auto; color: #666; }
.ed-buy-tickets { display: inline-block; margin: 0 0 32px; padding: 12px 24px; border: none; border-radius: 8px; background: linear-gradient(135deg, #b30000, #8b0000); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; transition: opacity .15s; }
.ed-buy-tickets:hover { opacity: .85; }
.ed-image { border-radius: 12px; overflow: hidden; margin-bottom: 32px; background: #1a1a1a; }
.ed-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.ed-description { font-size: 16px; color: #ccc; line-height: 1.8; margin: 0 0 36px; white-space: pre-line; }
.ed-goals { display: flex; flex-direction: column; gap: 20px; }
.ed-goal-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #666; margin-bottom: 6px; }
.ed-goal-bar-wrap { height: 6px; background: rgba(255,255,255,0.08); border-radius: 3px; overflow: hidden; }
.ed-goal-bar { height: 100%; background: linear-gradient(90deg, #8b0000, #b30000); border-radius: 3px; transition: width .4s ease; min-width: 2px; }
.ed-goal-meta { display: flex; justify-content: space-between; font-size: 12px; color: #666; margin-top: 5px; }

/* Tabs
 *
 * Side-tab layout: .ed-tabslayout is the two-column row, .ed-tabs is a
 * vertical rail on the left (the page's own flow -- back link, heading,
 * image, meta -- reads top to bottom, so a rail that stays fixed beside
 * the content while only the panel changes fits that better than a strip
 * that pushes the whole page down every time). .ed-panels holds the three
 * panels and fills the remaining width. Below 768px -- the breakpoint
 * .ed-offset above already uses for this same page -- the rail collapses
 * back into a horizontal strip above the content, matching the old
 * top-tab layout so a narrow viewport never squeezes tabs into a sliver.
 */
.ed-tabslayout { display: flex; align-items: flex-start; gap: 32px; }
.ed-tabs { display: flex; flex-direction: column; gap: 2px; flex: 0 0 180px; border-right: 1px solid rgba(255,255,255,0.1); }
.ed-tab { background: none; border: none; border-right: 2px solid transparent; margin-right: -1px; padding: 12px 16px; font-size: 14px; font-weight: 600; color: #666; cursor: pointer; text-align: left; transition: color .15s, border-color .15s, background-color .15s; border-radius: 6px 0 0 6px; }
.ed-tab:hover { color: #ccc; background: rgba(255,255,255,0.03); }
.ed-tab--active { color: #f5f5f7; border-right-color: var(--red, #b30000); background: rgba(255,255,255,0.04); }
.ed-panels { flex: 1 1 auto; min-width: 0; }
.ed-panel { display: none; }
.ed-panel--active { display: block; }

@media (max-width: 768px) {
  .ed-tabslayout { flex-direction: column; gap: 0; }
  .ed-tabs { flex-direction: row; flex: 0 0 auto; width: 100%; gap: 0; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 32px; overflow-x: auto; }
  .ed-tab { border-right: none; margin-right: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; border-radius: 0; }
  .ed-tab--active { border-right-color: transparent; border-bottom-color: var(--red, #b30000); }
  .ed-panels { width: 100%; }
}
.ed-empty { padding: 48px 0; text-align: center; color: #666; font-size: 15px; }
.ed-comments { display: flex; flex-direction: column; gap: 16px; }
.ed-comment { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 16px 20px; }
.ed-comment-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.ed-comment-user { font-size: 13px; font-weight: 700; color: #f5f5f7; }
.ed-comment-date { font-size: 12px; color: #666; }
.ed-comment-body { font-size: 15px; color: #ccc; line-height: 1.6; margin: 0; }

/* ── When and where ──────────────────────────────────────────────────────
 *
 * Every event row carries a schedule and a location and the page showed
 * neither, so an event page said what the event was called and nothing
 * about when or where it happens. Sits directly under the artwork, above
 * the tabs, which is where a reader looks for it.
 */
.ed-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: -12px 0 32px;
}
.ed-meta-item {
  font-size: 15px;
  color: #ddd;
  line-height: 1.5;
  padding-left: 26px;
  position: relative;
}
.ed-meta-item::before {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0.85;
}
.ed-meta-when::before { content: '🗓'; }
.ed-meta-where::before { content: '📍'; }

/* The stand-in when an event has no artwork and no site logo file is
   present yet. A missing <img> renders as a broken-image icon, which
   looks worse than no picture; the wordmark IS the site's logo today. */
.ed-image--placeholder {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.ed-image-wordmark {
  font-size: clamp(14px, 2.6vw, 24px);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #fff 0%, #999 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* The address opens directions, so it has to look like a link. */
.ed-meta-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  transition: color .2s, border-color .2s;
}
.ed-meta-link:hover,
.ed-meta-link:focus-visible {
  color: #fff;
  border-bottom-color: var(--red, #b30000);
}
.ed-meta-ext {
  font-size: 0.8em;
  margin-left: 5px;
  opacity: 0.65;
}
.ed-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
