/* Events: month strip on top, filters + "compare prices first" in a sidebar, event cards in a grid */
.evp { padding-top: 28px; padding-bottom: 60px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.evp-head { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: flex-end; justify-content: space-between; }
.evp-head .title { margin: 0 0 8px; }
.evp-head .lead { margin: 0; max-width: 640px; }
.evp-sub { white-space: nowrap; }

/* month strip */
.evm { display: flex; gap: 6px; overflow-x: auto; margin: 22px 0 18px; padding: 4px 0 8px; scrollbar-width: thin; }
.evm button { flex: none; font: inherit; font-size: 13px; font-weight: 500; padding: 7px 12px; border-radius: 8px; border: 1px solid hsl(var(--border)); background: hsl(var(--background)); color: inherit; cursor: pointer; }
.evm button b { font-weight: 700; margin-left: 4px; color: hsl(var(--muted-foreground)); }
.evm button:hover { border-color: var(--gray-300); }
.evm button[aria-pressed="true"] { border-color: hsl(var(--foreground)); box-shadow: inset 0 0 0 1px hsl(var(--foreground)); }

/* layout */
.evp-body { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.evs { position: sticky; top: 90px; display: grid; gap: 16px; }
.evs-search input { width: 100%; height: 38px; border: 1px solid hsl(var(--field-border, var(--input))); border-radius: 8px; padding: 0 12px; font: inherit; background: hsl(var(--background)); color: inherit; }
.evs fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 2px; }
.evs legend { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: hsl(var(--muted-foreground)); margin-bottom: 6px; }
.evs-check { display: flex; align-items: center; gap: 8px; padding: 8px 6px; min-height: 36px; border-radius: 6px; font-size: 14px; cursor: pointer; }
.evs-check:hover { background: var(--gray-50); }
.evs-check input { accent-color: hsl(var(--primary)); width: 16px; height: 16px; margin: 0; }
.evs-check span { flex: 1; }
.evs-check em { font-style: normal; font-size: 12px; color: hsl(var(--muted-foreground)); font-variant-numeric: tabular-nums; }
.evs-reset { justify-self: start; background: none; border: 0; padding: 0; font: inherit; font-size: 13px; cursor: pointer; }
.evs-reset[hidden] { display: none; }
.evs-box { border: 1px solid hsl(var(--border)); border-radius: var(--radius); padding: 14px; background: var(--gray-50); }
.evs-box h2 { font-size: 15px; margin: 0 0 4px; }
.evs-box p { margin: 0 0 10px; }
.evs-box ol { margin: 0 0 10px; padding-left: 18px; display: grid; gap: 8px; font-size: 14px; }
.evs-box li a { font-weight: 600; color: inherit; }
.evs-box li > span { display: block; font-size: 13px; color: hsl(var(--muted-foreground)); }

/* cards */
.evg-count { font-size: 13px; color: hsl(var(--muted-foreground)); margin: 0 0 4px; }
.evg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.evg-month { grid-column: 1 / -1; margin: 14px 0 0; font-size: 18px; scroll-margin-top: 90px; }
.evg-month:first-child { margin-top: 0; }
.evg-month[hidden], .evc[hidden] { display: none; }
.evc { display: flex; flex-direction: column; gap: 6px; border: 1px solid hsl(var(--border)); border-radius: var(--radius); padding: 16px; background: hsl(var(--background)); transition: border-color .15s, box-shadow .15s; }
.evc:hover { border-color: var(--gray-300); box-shadow: 0 4px 16px rgb(0 0 0 / .05); }
.evc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.evc-top time { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.evc-type { font-size: 12px; font-weight: 500; color: hsl(var(--muted-foreground)); }
.evc-type.mining { color: var(--green-700); font-weight: 600; }
.evc h3 { margin: 2px 0 0; font-size: 17px; line-height: 1.3; }
.evc-place { display: flex; align-items: center; gap: 5px; margin: 0; font-size: 14px; color: hsl(var(--muted-foreground)); }
.evc-place svg { width: 15px; height: 15px; flex: none; }
.evc-blurb { margin: 2px 0 0; font-size: 14px; color: hsl(var(--muted-foreground)); line-height: 1.5; }
.evc-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: auto; padding-top: 10px; border-top: 1px solid hsl(var(--border)); font-size: 14px; }
.evc-foot a { font-weight: 600; color: inherit; text-decoration: none; }
.evc-site { color: hsl(var(--primary)) !important; }
.evc-foot a:hover { text-decoration: underline; }
.evc-on { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--green-700); }
.evg-empty { padding: 30px 0; color: hsl(var(--muted-foreground)); }
.evp-note { font-size: 13px; color: hsl(var(--muted-foreground)); margin-top: 22px; max-width: 80ch; }
.evg-wrap .cta { margin-top: 18px; }

.evs-box-m { display: none; margin-top: 18px; }
/* tablet / phone: filters become one compact row of chips, the miners box moves under the events */
@media (max-width: 960px) {
  .evp-body { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .evs { position: static; gap: 10px; }
  .evs fieldset { display: flex; flex-wrap: wrap; gap: 6px; }
  .evs legend { width: 100%; margin-bottom: 2px; }
  .evs-check { padding: 6px 10px; border: 1px solid hsl(var(--border)); border-radius: 9999px; font-size: 13px; }
  .evs-check:has(input:checked) { border-color: hsl(var(--primary)); background: hsl(var(--primary) / .08); }
  .evs-check em { margin-left: 2px; }
  .evs .evs-box { display: none; }
  .evs-box-m { display: block; }
}
@media (max-width: 640px) { .evg { grid-template-columns: minmax(0, 1fr); } }
/* phones (16 Oct): shorter event cards, the description cut to two lines */
@media (max-width: 640px) {
  .evc { padding: 12px 14px; gap: 4px; }
  .evc h3 { font-size: 17px; }
  .evc-place { font-size: 13.5px; }
  .evc-blurb { font-size: 13.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .evc-foot { padding-top: 6px; font-size: 14px; }
  .evg { gap: 8px; }
  .evg-month { font-size: 19px; margin: 14px 0 8px; }
}
