/* GEEK FENCE: event cards (homepage and events page) and the Events link on small screens. Load after site.css. */

.ourevents { padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(16px, 3vw, 32px); }
.ev-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; margin-bottom: clamp(24px, 3.4vw, 40px); }
.ev-head h2 { margin-top: 14px; font-family: var(--serif); font-weight: 700; font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: 1.08; letter-spacing: -.015em; }
.ev-all { font-family: var(--mono); font-weight: 600; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); text-underline-offset: 4px; }

.ev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 32px); }
.ev { display: flex; flex-direction: column; min-width: 0; }
.ev .pic { display: block; position: relative; aspect-ratio: 40 / 21; background: var(--navy); overflow: hidden; }
.ev .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ev .body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(22px, 3vw, 36px); border-top: 8px solid var(--yellow); }
.ev.next .body { background: var(--navy); color: var(--paper); }
.ev.past .body { background: var(--tint-3); color: var(--navy); }
.ev .flag { font-family: var(--mono); font-weight: 600; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.ev.next .flag { color: var(--yellow); }
.ev h3 { margin-top: 12px; font-family: var(--serif); font-weight: 700; font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.1; }
.ev h3 a { text-decoration: none; color: inherit; }
.ev h3 a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 4px; text-underline-offset: 6px; }
.ev .when { margin-top: 12px; font-family: var(--sans); font-weight: 700; font-size: 1rem; line-height: 1.5; }
.ev .what { margin-top: 10px; max-width: 42ch; font-size: 1.125rem; line-height: 1.5; }
.ev .cta { margin-top: auto; padding-top: 24px; }
.ev.next .btn-line { color: var(--paper); border-color: var(--paper); }
.ev.next .btn-line:hover { background: var(--paper); color: var(--navy); }
.ev a:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.ev.next a:focus-visible { outline-color: var(--yellow); }

@media (max-width: 860px) {
  .ev-grid { grid-template-columns: 1fr; }
}

/* Phones and tablets hide the header links; keep the first one (Events) reachable. */
@media (max-width: 980px) {
  .topbar nav { display: block; margin-left: auto; }
  .topbar nav li:not(:first-child) { display: none; }
}
