/* Events feature styles.
 *
 * ADDITIVE ONLY. This file defines no custom properties and overrides no
 * existing selector - it loads after style.css and reuses its tokens
 * (--cyan, --bg, --panel, --line, --text, --muted, --green) and its
 * existing classes (.wrap, .section, .eyebrow, .button, .status-tag,
 * .text-link, .section-heading). Every selector below is new and prefixed
 * so it cannot collide with the main site.
 */

.ev-list { display: grid; gap: 18px; margin-bottom: 56px; }

.ev-card {
  display: grid;
  grid-template-columns: 112px 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #191923;
  transition: border-color .2s, transform .2s;
}
.ev-card:hover { border-color: var(--cyan); transform: translateY(-2px); }

.ev-date {
  text-align: center;
  border-right: 1px solid var(--line);
  padding-right: 24px;
}
.ev-date-month {
  font-family: JetBrains Mono, monospace;
  font-size: 11px; letter-spacing: .12em; font-weight: 600;
  color: var(--cyan); display: block; margin-bottom: 6px;
}
.ev-date-day {
  font-family: Space Grotesk, Arial, sans-serif;
  font-size: 38px; line-height: 1; letter-spacing: -.04em;
  color: var(--text); display: block;
}
.ev-date-year {
  font-family: JetBrains Mono, monospace;
  font-size: 10px; color: var(--muted); display: block; margin-top: 6px;
}

.ev-card h3 { font-size: 24px; margin-bottom: 8px; }
.ev-card h3 a { color: var(--text); }
.ev-card:hover h3 a { color: var(--cyan); }
.ev-card p { font-size: 14px; margin-bottom: 10px; }
.ev-meta {
  font-family: JetBrains Mono, monospace;
  font-size: 10px; letter-spacing: .08em; color: #8494a5;
  display: flex; flex-wrap: wrap; gap: 16px;
}
.ev-card-action { text-align: right; }

.ev-empty {
  padding: 40px 26px; border: 1px dashed var(--line);
  border-radius: 10px; text-align: center;
}
.ev-empty p { margin-bottom: 0; font-size: 14px; }

/* Calendar ------------------------------------------------------------- */
.ev-cal { border: 1px solid var(--line); border-radius: 10px; background: #191923;
          padding: 26px; margin-bottom: 56px; }
.ev-cal-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 20px;
}
.ev-cal-title {
  font-family: Space Grotesk, Arial, sans-serif;
  font-size: 22px; letter-spacing: -.03em; color: var(--text); margin: 0;
}
.ev-cal-nav { display: flex; gap: 8px; }
.ev-cal-nav button {
  font-family: JetBrains Mono, monospace; font-size: 12px;
  background: transparent; color: var(--text);
  border: 1px solid var(--line); border-radius: 4px;
  padding: 7px 13px; cursor: pointer; transition: border-color .2s, color .2s;
}
.ev-cal-nav button:hover { border-color: var(--cyan); color: var(--cyan); }
.ev-cal-nav button:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

.ev-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.ev-cal-dow {
  font-family: JetBrains Mono, monospace; font-size: 9px;
  letter-spacing: .1em; color: #8494a5; text-align: center;
  padding-bottom: 8px;
}
.ev-cal-cell {
  aspect-ratio: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
  border: 1px solid transparent; border-radius: 6px;
  font-size: 13px; color: var(--muted); position: relative;
}
.ev-cal-cell.is-other { opacity: .28; }
.ev-cal-cell.is-today { border-color: #3a3c49; color: var(--text); }
.ev-cal-cell.has-event {
  border-color: #00f0ff55; background: #00f0ff0d; color: var(--text);
}
.ev-cal-cell.has-event a { display: block; width: 100%; text-align: center; }
.ev-cal-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--cyan); display: block;
}

/* Event detail --------------------------------------------------------- */
.ev-hero { padding-block: 56px 36px; border-bottom: 1px solid var(--line); }
.ev-hero h1 {
  font-size: clamp(40px, 6vw, 72px); line-height: 1.02;
  letter-spacing: -.055em; margin-bottom: 18px;
}
.ev-hero-tagline { font-size: 21px; color: var(--text); max-width: 560px; }

.ev-facts {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0 40px; margin-top: 36px;
}
.ev-facts > div { border-top: 1px solid var(--line); padding-top: 20px; }
.ev-facts dt {
  font-family: JetBrains Mono, monospace; font-size: 9px;
  letter-spacing: .12em; color: #8494a5; margin-bottom: 10px;
}
.ev-facts dd { margin: 0; font-size: 16px; color: var(--text); }
.ev-facts dd span { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }

.ev-layout {
  display: grid; grid-template-columns: 1.25fr 1fr;
  gap: 64px; padding-block: 56px;
}
.ev-agenda { list-style: none; padding: 0; margin: 0; }
.ev-agenda li {
  display: grid; grid-template-columns: 76px 1fr;
  gap: 20px; padding-block: 14px; border-top: 1px solid var(--line);
}
.ev-agenda li:last-child { border-bottom: 1px solid var(--line); }
.ev-agenda time {
  font-family: JetBrains Mono, monospace; font-size: 12px; color: var(--cyan);
}
.ev-agenda span { font-size: 15px; color: var(--text); }

/* RSVP form ------------------------------------------------------------ */
.ev-rsvp {
  border: 1px solid #00f0ff35; border-radius: 10px;
  background: linear-gradient(130deg, #18232b, #191924);
  box-shadow: inset 0 0 65px #00f0ff04;
  padding: 32px; position: sticky; top: 24px;
}
.ev-rsvp h2 { font-size: 28px; margin-bottom: 8px; }
.ev-rsvp > p { font-size: 14px; margin-bottom: 22px; }

.ev-field { margin-bottom: 16px; }
.ev-field label {
  display: block; font-family: JetBrains Mono, monospace;
  font-size: 9px; letter-spacing: .12em; color: #8494a5; margin-bottom: 7px;
}
.ev-field label .ev-opt { color: #5f7080; }
.ev-field input, .ev-field textarea {
  width: 100%; background: #111219; color: var(--text);
  border: 1px solid var(--line); border-radius: 5px;
  padding: 11px 13px; font: 14px Inter, Arial, sans-serif;
  transition: border-color .2s;
}
.ev-field textarea { resize: vertical; min-height: 62px; }
.ev-field input:focus, .ev-field textarea:focus {
  outline: none; border-color: var(--cyan);
}
.ev-field input:focus-visible, .ev-field textarea:focus-visible {
  outline: 3px solid var(--cyan); outline-offset: 2px;
}
.ev-field .ev-error {
  display: block; font-size: 12px; color: #ff8097; margin-top: 6px;
}
.ev-field.has-error input, .ev-field.has-error textarea { border-color: #ff8097; }

/* Honeypot: present for bots, never shown or focusable for people. */
.ev-hp { position: absolute; left: -9999px; width: 1px; height: 1px;
         overflow: hidden; }

.ev-optional-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin: 26px 0 14px; padding-top: 20px;
  border-top: 1px solid var(--line);
}
.ev-optional-head h3 { font-size: 17px; margin: 0; }
.ev-optional-head span {
  font-family: JetBrains Mono, monospace; font-size: 9px;
  letter-spacing: .1em; color: #8494a5;
}

.ev-rsvp .button { width: 100%; justify-content: center; gap: 10px; margin-top: 8px; }
.ev-rsvp .button[disabled] { opacity: .55; cursor: progress; }
.ev-form-note { font-size: 11px; line-height: 1.6; margin: 14px 0 0; }

.ev-result { display: none; }
.ev-result.is-visible { display: block; }
.ev-result h3 { font-size: 23px; margin-bottom: 10px; }
.ev-result p { font-size: 14px; }
.ev-missing {
  border-left: 2px solid var(--cyan); padding-left: 16px; margin-block: 18px;
}
.ev-missing p { margin-bottom: 8px; }
.ev-missing ul { margin: 0; padding-left: 18px; font-size: 13px; color: var(--muted); }

.ev-count {
  font-family: JetBrains Mono, monospace; font-size: 10px;
  letter-spacing: .09em; color: #8494a5; margin-top: 16px;
}

/* Responsive: mirrors the breakpoints already used by the main site. */
@media (max-width: 1000px) {
  .ev-layout { grid-template-columns: 1fr; gap: 40px; }
  .ev-rsvp { position: static; }
}
@media (max-width: 700px) {
  .ev-card { grid-template-columns: 1fr; gap: 16px; padding: 20px; }
  .ev-date {
    border-right: 0; border-bottom: 1px solid var(--line);
    padding-right: 0; padding-bottom: 14px; text-align: left;
    display: flex; align-items: baseline; gap: 10px;
  }
  .ev-date-day { font-size: 30px; }
  .ev-date-year { margin-top: 0; }
  .ev-card-action { text-align: left; }
  .ev-facts { grid-template-columns: 1fr; gap: 0; }
  .ev-facts > div { padding-block: 16px; }
  .ev-hero { padding-block: 36px 24px; }
  .ev-rsvp { padding: 24px 20px; }
  .ev-cal { padding: 18px; }
  .ev-cal-cell { font-size: 11px; }
  .ev-agenda li { grid-template-columns: 60px 1fr; gap: 12px; }
}

/* The result panel's CTA is a real action, so it uses the site's solid
   button treatment rather than inheriting the form's full-width ghost look. */
.ev-result .button {
  width: auto; display: inline-flex; justify-content: flex-start;
  gap: 24px; margin-top: 4px;
}

/* Roadmap cards are flex columns, so a .status-tag inside one stretches to
   full width. Keep it hugging its text like every other tag on the site. */
.roadmap-grid > article > .status-tag { align-self: flex-start; width: max-content; }
