/* Event discovery: the original blue CI, with a more social rhythm. */
.events-community .list-hero { overflow: hidden; padding-bottom: 128px; }
.events-community .list-hero__layout { grid-template-columns: minmax(0, 1.35fr) minmax(340px, .85fr); gap: 70px; }
.events-community .list-hero h1 { font-size: clamp(44px, 5.4vw, 72px); }
.events-community .list-hero .eyebrow { font-size: 12.5px; letter-spacing: .04em; }
.event-pass__icon { display: grid; place-items: center; height: 70px; border-right: 1px dashed rgba(1,79,119,.25); font: 400 35px var(--en); padding-right: 17px; }
.event-vibes { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 36px 0 0; }
.event-vibes > span { display: flex; align-items: center; gap: 16px; margin-right: 10px; color: var(--blue); font-size: 15px; font-weight: 700; }
.event-vibes > span i { font: normal 24px var(--en); color: var(--sky); }
.event-vibes a { display: inline-flex; align-items: center; gap: 9px; padding: 11px 16px; border: 1px solid #d5e5ef; border-radius: 999px; background: #fff; color: var(--blue); font-size: 13px; font-weight: 600; transition: transform .2s, background .2s; }
.event-vibes a i { font: normal 20px/1 var(--en); }
.event-vibes a.is-active { border-color: var(--blue); background: var(--blue); color: #fff; }
.event-vibes a:hover { transform: translateY(-3px); background: #e2f2fa; color: var(--blue); }
.event-vibes a:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.event-results-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: 50px; }
.event-results-head h2 { margin-top: 12px; font-size: clamp(27px, 3vw, 38px); color: var(--ink); line-height: 1.3; }
.event-results-head p:not(.eyebrow) { margin-top: 10px; font-size: 15px; line-height: 1.8; color: var(--muted); }
.event-results-head__count { flex: none; padding-bottom: 3px; font-size: 13px; color: var(--blue); }
.events-community .grid { margin-top: 26px; }
.events-community .card .cover { height: 218px; }
.events-community .card:nth-child(3n + 2) .cover:not(.has-photo) { background-color: #277fab; }
.events-community .card:nth-child(3n + 3) .cover:not(.has-photo) { background-color: #346b83; }
.events-community .card .cover__date { box-shadow: 0 6px 16px rgba(0,24,41,.12); }
.event-card-host { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 12px; border-radius: 13px; background: #f1f8fc; }
.event-card-host > span:not(.avatar) { flex: 1; min-width: 0; }
.event-card-host small { display: block; font-size: 10px; color: var(--muted); }
.event-card-host b { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--blue); overflow-wrap: anywhere; }
.event-card-host i { font: normal 20px var(--en); color: var(--sky); transition: transform .2s; }
.events-community .card:hover .event-card-host i { transform: translate(2px, -2px); }
.events-community .org-cta { margin-top: 64px; background: linear-gradient(125deg, #014f77, #09668f); }
.events-community .org-cta::after { right: -60px; top: -80px; border: 1px solid rgba(158,223,255,.25); border-radius: 50%; background: transparent; clip-path: none; box-shadow: 0 0 0 32px rgba(158,223,255,.04), 0 0 0 64px rgba(158,223,255,.03); }
@media (max-width: 1000px) {
  .events-community .list-hero__layout { grid-template-columns: minmax(0, 1.2fr) minmax(280px, .85fr); gap: 36px; }
  .event-pass__icon { font-size: 29px; padding-right: 12px; }
}
@media (max-width: 800px) {
  .events-community .list-hero__layout { grid-template-columns: 1fr; gap: 34px; }
  .event-pass__icon { height: auto; padding-right: 0; border: 0; font-size: 30px; }
}
@media (max-width: 720px) {
  .events-community .list-hero { padding-top: 48px; padding-bottom: 102px; }
  .events-community .list-hero h1 { font-size: clamp(40px, 10vw, 56px); }
  .events-community .list-hero .eyebrow { font-size: 12px; letter-spacing: .04em; }
  .event-vibes { gap: 8px; margin-top: 28px; }
  .event-vibes > span { flex-basis: 100%; margin-bottom: 6px; }
  .event-vibes a { padding: 9px 12px; font-size: 12px; }
  .event-results-head { flex-direction: column; align-items: flex-start; margin-top: 38px; gap: 12px; }
  .events-community .card .cover { height: 210px; }
}

/* One clearly labelled filter form instead of two rows of competing tabs. */
.events-community .event-filters { gap: 20px; padding: 28px 30px; }
.event-filters__heading h2 { color: var(--blue); font-size: 21px; line-height: 1.4; }
.event-filters__heading p { margin-top: 4px; color: var(--muted); font-size: 13px; }
.event-filters__primary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.event-filter { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.event-filter > span { color: var(--ink); font-size: 13px; font-weight: 600; }
.event-filter select { width: 100%; min-height: 46px; padding: 11px 34px 11px 14px; border: 1px solid #cfdfe9; border-radius: 12px; background: #f8fcfe; color: var(--blue); font-size: 15px; cursor: pointer; }
.event-filter select:focus-visible { outline: 3px solid #b5e0f7; outline-offset: 2px; border-color: var(--sky); }
.event-filters__more { border-top: 1px solid #e1ebf1; border-bottom: 1px solid #e1ebf1; }
.event-filters__more summary { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 0; list-style: none; color: var(--blue); font-size: 14px; font-weight: 600; cursor: pointer; }
.event-filters__more summary::-webkit-details-marker { display: none; }
.event-filters__more summary small { color: var(--muted); font-size: 12px; font-weight: 400; }
.event-filters__more summary > span { display: grid; place-items: center; margin-left: auto; width: 26px; height: 26px; border-radius: 50%; background: #e8f4fb; font-size: 20px; font-weight: 400; }
.event-filters__more[open] summary > span { transform: rotate(45deg); }
.event-filters__more summary:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
.event-filters__extra { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 4px 0 20px; }
.event-filters__footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.event-filter--sort { width: min(230px, 100%); }
.event-filters__actions { display: flex; align-items: center; gap: 22px; }
.event-filters__actions .btn { min-height: 46px; padding: 12px 25px; }
.event-filters__reset { color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 720px) {
  .events-community .event-filters { padding: 24px 20px; gap: 18px; }
  .event-filters__primary { grid-template-columns: 1fr; gap: 14px; }
  .event-filter { gap: 6px; }
  .event-filter select { font-size: 16px; }
  .event-filters__footer { flex-direction: column; align-items: stretch; gap: 18px; }
  .event-filter--sort { width: 100%; }
  .event-filters__actions { justify-content: flex-end; }
  .event-filters__actions .btn { flex: 1; }
  .event-filters__heading h2 { font-size: 20px; }
}
@media (max-width: 400px) { .event-filters__extra { grid-template-columns: 1fr; gap: 14px; } }

/* Hero side panel: Event types that are open right now (real counts) */
.event-types-panel { display: grid; align-self: center; padding: 22px; border-radius: 22px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); }
.event-types-panel__label { margin-bottom: 6px; font-size: 14px; font-weight: 600; color: #cfeeff; }
.event-types-panel a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 13px 4px; border-top: 1px solid rgba(255,255,255,.14); color: #fff; font-size: 17px; font-weight: 600; }
.event-types-panel a:first-of-type { border-top: 0; }
.event-types-panel a:hover span { text-decoration: underline; }
.event-types-panel b { font: 500 13px var(--en); color: #bfe8fb; white-space: nowrap; }
.event-types-panel__empty { color: #d6edfa; font-size: 14.5px; line-height: 1.7; }

/* Event discovery v2 — shares the home page's structure (home.css): light CI-blue hero, section heads, ad band. */
.events-community--v2 { background:#fff; --discovery-navy:#014f77; }
.events-community--v2 .wrap { max-width:1240px; }
.discovery-welcome { margin-top:4px; font-size:13px; color:#5b7684; text-align:center; }

/* Type shortcuts: the same soft tiles as the home categories. */
.discovery-type-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin-top:34px; }
.discovery-type-list a { display:flex; align-items:center; min-width:0; min-height:84px; gap:14px; padding:16px 20px; border:1px solid #dde9f0; border-radius:18px; background:#f3f8fb; color:#014f77; transition:transform .2s, box-shadow .2s, border-color .2s; }
.discovery-type-list a:hover, .discovery-type-list a:focus-visible { transform:translateY(-3px); border-color:#b8dced; box-shadow:0 14px 30px rgba(1,79,119,.09); }
.discovery-type-list a > span:nth-child(2) { flex:1; min-width:0; overflow-wrap:anywhere; }
.discovery-type-list a b { font-size:16px; font-weight:600; }
.discovery-type-list small { display:block; margin-top:3px; font-size:12px; color:#5b7684; }
.discovery-type-list i { flex:none; margin-left:auto; font:400 18px var(--en); font-style:normal; color:#2992d0; }
.discovery-type-icon { display:grid; place-items:center; width:40px; height:40px; flex:none; border-radius:12px; background:#fff; color:#014f77; }
.discovery-partner__art { display:grid; place-items:center; background:#014f77; }
.discovery-partner__art img { width:96px; height:96px; object-fit:contain; padding:10px; border-radius:50%; background:#fff; }

/* Filters and results sit in the same mist band as the home "upcoming" section. */
.events-community--v2 .event-filters { margin-top:0; border-radius:18px; box-shadow:none; border:1px solid #dce8ee; background:#fff; }
.events-community--v2 .event-filters__heading h2 { font-size:21px; color:#014f77; }
.events-community--v2 .event-vibes { margin-top:18px; padding:0; border:0; background:transparent; }
.events-community--v2 .event-vibes > span { font-size:13px; }
.events-community--v2 .event-vibes a { font-size:13px; padding:8px 14px; }
.events-community--v2 .event-results-head { margin-top:56px; }
.events-community--v2 .event-results-head__count { white-space:nowrap; font-size:14px; font-weight:600; color:#014f77; }
.events-community--v2 .grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; margin-top:34px; }
.events-community--v2 .card { border-radius:16px; border:1px solid #dce8ee; box-shadow:0 3px 9px #014f7704; transition:transform .18s,box-shadow .18s; }
.events-community--v2 .card:hover { transform:translateY(-4px); box-shadow:0 10px 25px #014f7710; }
.events-community--v2 .card .cover { background-color:#014f77; }
.events-community--v2 .card h3 { font-size:20px; line-height:1.5; }
.events-community--v2 .card .chip { font-size:11px; }
.events-community--v2 .event-card-host { background:#f0f8fc; }

/* Organizer call to action: the same soft invitation panel as the home's organizer block. */
.events-community--v2 .org-cta { display:flex; justify-content:space-between; align-items:center; gap:28px; margin:64px 0 0; padding:36px 40px; border:1px solid #d9eaf3; border-radius:22px; background:#fff; color:var(--ink); }
.events-community--v2 .org-cta::after { display:none; }
.events-community--v2 .org-cta .eyebrow { color:var(--sky); }
.events-community--v2 .org-cta .eyebrow::before { background:var(--sky); }
.events-community--v2 .org-cta h2 { margin-top:10px; color:var(--ink); font-size:clamp(24px,2.6vw,32px); line-height:1.35; }
.events-community--v2 .org-cta p:not(.eyebrow) { margin-top:8px; max-width:640px; color:var(--muted); line-height:1.75; }
.events-community--v2 .org-cta .btn { flex-shrink:0; background:#014f77; border-color:#014f77; color:#fff; }
.events-community--v2 .org-cta { border-left:4px solid #014f77; }
.events-community--v2 .event-filters__heading h2 { font-family:var(--en); color:#1f2020; }
.events-community--v2 a:focus-visible { outline:3px solid #2992d0; outline-offset:4px; }
@media(max-width:1000px) {
 .events-community--v2 .grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .discovery-type-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:700px) {
 .events-community--v2 .event-filters { padding:20px; }
 .events-community--v2 .grid { grid-template-columns:1fr; gap:20px; }
 .events-community--v2 .org-cta { flex-direction:column; align-items:flex-start; padding:28px 24px; }
 .discovery-type-list { grid-template-columns:1fr 1fr; gap:10px; }
 .discovery-type-list a { min-height:70px; padding:12px; gap:10px; }
 .discovery-type-icon { width:32px; height:32px; }
 .discovery-type-list i { display:none; }
}
@media(max-width:420px) { .discovery-type-list { grid-template-columns:1fr; } }
@media(prefers-reduced-motion:reduce) { .events-community--v2 .card, .discovery-type-list a { transition:none; } }
