/* ============================================================
   M.A. Knights: Events page
   Builds on books-tavern.css (wood background, parchment cards with
   torn edges, heading plaques, the Kickstarter block). This file adds
   only what's specific to events: the date plaques, event rows, the
   countdown chip, and the past-events list.
   ============================================================ */

/* Things events.js hides must stay hidden, even if a class gives them display:flex */
.events-page [hidden]{ display:none !important; }

/* style.css's .btn has no "small" size; give the calendar buttons one */
.events-page .btn.small{ padding:8px 14px; font-size:13px; }
.events-page .btn.ghost{ border:1.5px solid rgba(26,17,8,.25); color:#1a1108; }

/* ---------- Next appearance / between seasons / organisers ---------- */
.ev-feature{ padding:32px 36px; }
.ev-feature h2{ font-family:'Playfair Display', Georgia, serif; font-size:30px; color:#1a1108; margin:4px 0 10px; }
.ev-feature p{ margin:0 0 12px; max-width:62ch; }
.ev-feature .next-up-meta{ font-size:16px; color:#6b5744; }
.ev-feature .btn-row{ display:flex; gap:10px; flex-wrap:wrap; margin-top:18px; }

/* ---------- Event rows ---------- */
.ev-list{ list-style:none; margin:0; padding:0; display:grid; gap:26px; }
.ev-list .event{
  display:grid; grid-template-columns:96px 1fr; gap:24px; align-items:center;
  padding:22px 26px;
}
.ev-list .event-date{
  position:relative; text-align:center; border-radius:8px; padding:14px 6px 12px;
  background:linear-gradient(rgba(0,0,0,.35),rgba(0,0,0,.35)), url('/assets/img/wood-texture.jpg') 0 0/140px repeat;
  border:1px solid rgba(231,165,63,.45);
  box-shadow:0 8px 16px rgba(0,0,0,.25);
}
.ev-list .event-day{
  display:block; font-family:'Playfair Display', Georgia, serif; font-weight:800;
  font-size:36px; line-height:1; color:#e7a53f;
}
.ev-list .event-month{
  display:block; margin-top:5px; font-size:12px; font-weight:700; letter-spacing:.14em;
  text-transform:uppercase; color:rgba(245,234,214,.85);
}
.ev-list .event-countdown{
  display:block; margin:9px auto 0; width:max-content; max-width:100%;
  padding:3px 9px; border-radius:999px;
  background:#6b2737; color:#f5ead6;
  font-size:10px; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
}
.ev-list .event-name{ font-family:'Playfair Display', Georgia, serif; font-size:22px; color:#1a1108; margin:0 0 6px; }
.ev-list .event-where{ margin:0; color:#1a1108; font-size:15px; }
.ev-list .event-when{ margin:3px 0 0; color:#6b5744; font-size:14px; }
.ev-list .event-actions{ margin-top:14px; }
.ev-list .event-tag{
  display:inline-block; vertical-align:middle; margin-left:8px; padding:3px 9px; border-radius:999px;
  font-family:'Lora', Georgia, serif; font-size:11px; font-weight:700; letter-spacing:.05em; text-transform:uppercase;
  background:rgba(193,127,36,.14); color:#c17f24; border:1px solid rgba(193,127,36,.35);
}

/* The next one up gets an amber date plaque */
.ev-list .event.is-next .event-date{
  background:linear-gradient(180deg,#e7a53f,#c17f24); border-color:transparent;
}
.ev-list .event.is-next .event-day{ color:#1a1108; }
.ev-list .event.is-next .event-month{ color:rgba(26,17,8,.8); }

/* ---------- Already happened: quieter, two-up, no calendar buttons ---------- */
.ev-list.past{ grid-template-columns:1fr 1fr; gap:24px; }
.ev-list.past .event{ grid-template-columns:72px 1fr; gap:18px; padding:16px 20px; }
.ev-list.past .event-date{ padding:10px 4px 9px; filter:saturate(.6); }
.ev-list.past .event-day{ font-size:26px; color:rgba(245,234,214,.8); }
.ev-list.past .event-name{ font-size:18px; margin-bottom:3px; }
.ev-list.past .event-when, .ev-list.past .event-actions{ display:none; }

/* ---------- What's on the table + poster ---------- */
.ev-table-list{ margin:0 0 14px; padding-left:20px; color:#1a1108; line-height:1.85; }
.ev-pair.no-poster{ grid-template-columns:1fr; }
.ev-pair figure{ margin:0; }

@media (max-width: 900px){
  .ev-feature{ padding:26px 22px; text-align:center; }
  .ev-feature p{ margin-left:auto; margin-right:auto; }
  .ev-feature .btn-row{ justify-content:center; }
  .ev-feature h2{ font-size:25px; }
  .ev-list .event{ grid-template-columns:74px 1fr; gap:16px; padding:18px 18px; }
  .ev-list .event-day{ font-size:30px; }
  .ev-list .event-countdown{ font-size:9px; letter-spacing:.02em; padding:3px 5px; white-space:normal; }
  .ev-list .event-name{ font-size:19px; }
  .ev-list.past{ grid-template-columns:1fr; }
}
