/* Desktop Community uses the same event cards and forms as the phone. */
#teajr-community-events#teajr-community-events.ev-desktop {
  --ev-bg: var(--pc-page, var(--paper, #fff));
  --ev-ink: var(--pc-ink, var(--c-ink, #141416));
  --ev-panel: var(--pc-card, var(--panel, #f5f5f5));
  --ev-raised: var(--pc-soft, var(--panel-2, #ececec));
  --ev-dim: var(--pc-dim, var(--c-dim, #555));
  --ev-line: var(--pc-line, var(--line, #ddd));
  --ev-action: var(--pc-btn, var(--btn, #141416));
  --ev-on-action: var(--pc-on-btn, var(--on-btn, #fff));
  font-family: Inter, system-ui, sans-serif;
  outline: none;
}

@media (min-width: 760px) {
  #teajr-community-events#teajr-community-events.ev-desktop .ev-app {
    max-width: none;
  }

  #teajr-community-events#teajr-community-events.ev-desktop .ev-header {
    padding: 24px 32px;
    border-bottom: 1px solid var(--ev-line);
  }

  #teajr-community-events#teajr-community-events.ev-desktop .ev-header h1 {
    font-size: 28px;
  }

  #teajr-community-events#teajr-community-events.ev-desktop .ev-feed {
    padding: 20px 32px 12px;
    max-width: 1720px;
    margin-inline: auto;
  }

  #teajr-community-events#teajr-community-events.ev-desktop .ev-segments {
    flex: 0 1 350px;
  }

  #teajr-community-events#teajr-community-events.ev-desktop .ev-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 248px), 1fr));
    gap: 20px;
  }

  #teajr-community-events#teajr-community-events.ev-desktop .ev-card-copy strong {
    font-size: 16px;
  }

  #teajr-community-events#teajr-community-events.ev-desktop[data-screen="detail"] {
    width: min(1040px, calc(100% - 48px));
    height: fit-content;
    max-height: calc(100dvh - 48px);
    margin: auto;
    border: 1px solid var(--ev-line);
    border-radius: 24px;
    box-shadow: 0 24px 72px rgb(0 0 0 / .25);
  }

  #teajr-community-events#teajr-community-events.ev-desktop[data-screen="detail"]::backdrop {
    background: rgb(10 12 18 / .45);
    backdrop-filter: blur(5px);
  }

  #teajr-community-events#teajr-community-events.ev-desktop[data-screen="detail"] .ev-app {
    min-height: 0;
    padding-bottom: 0;
  }

  #teajr-community-events#teajr-community-events.ev-desktop .ev-detail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: clamp(20px, 3vw, 36px);
    max-width: none;
    padding: clamp(20px, 2.5vw, 32px);
  }

  #teajr-community-events#teajr-community-events.ev-desktop .ev-detail-art {
    position: sticky;
    top: 24px;
    aspect-ratio: 1.8;
    border-radius: 18px;
  }

  #teajr-community-events#teajr-community-events.ev-desktop .ev-detail-content {
    min-width: 0;
    padding: 0;
  }

  #teajr-community-events#teajr-community-events.ev-desktop .ev-detail-content h1 {
    font-size: clamp(25px, 2.8vw, 36px);
    line-height: 1.18;
    overflow-wrap: anywhere;
  }

  #teajr-community-events#teajr-community-events.ev-desktop .ev-detail-info {
    margin: 20px 0 14px;
    padding: 12px;
    border: 1px solid var(--ev-line);
    border-radius: 16px;
    background: var(--ev-panel);
    gap: 12px;
  }

  #teajr-community-events#teajr-community-events.ev-desktop .ev-detail-info > div {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  #teajr-community-events#teajr-community-events.ev-desktop .ev-detail-tabs {
    margin: 20px 0 14px;
    padding: 4px;
    border: 1px solid var(--ev-line);
    border-radius: 14px;
    background: var(--ev-panel);
  }

  #teajr-community-events#teajr-community-events.ev-desktop .ev-detail-tabs button {
    min-width: 0;
    padding: 9px 3px;
    gap: 5px;
    border: 1px solid transparent;
    border-radius: 10px;
  }

  #teajr-community-events#teajr-community-events.ev-desktop .ev-detail-tabs button.is-active {
    border-color: var(--ev-line);
    background: var(--ev-bg);
  }

  #teajr-community-events#teajr-community-events#teajr-community-events.ev-desktop .ev-composer {
    max-width: 760px;
    padding: 24px 32px 32px;
  }
}

@media (min-width: 1040px) {
  #teajr-community-events#teajr-community-events.ev-desktop [data-ev-results]:has(.ev-calendar) {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    align-items: start;
    column-gap: 32px;
  }

  #teajr-community-events#teajr-community-events.ev-desktop [data-ev-results] > .ev-calendar {
    grid-row: span 2;
    margin: 0;
    padding: 16px;
    border: 1px solid var(--ev-line);
    border-radius: 16px;
    background: var(--ev-panel);
  }

  #teajr-community-events#teajr-community-events.ev-desktop [data-ev-results]:has(.ev-calendar) > .ev-section-heading {
    padding-top: 0;
  }
}

#teajr-community-events#teajr-community-events.ev-desktop .ev-desktop-ticket-summary {
  padding: 20px;
}

#teajr-community-events#teajr-community-events.ev-desktop .ev-desktop-ticket-summary p {
  color: var(--ev-dim) !important;
  margin-top: 4px;
}

#teajr-community-events#teajr-community-events#teajr-community-events.ev-desktop .ev-ticket-color input {
  width: 48px;
  height: 32px;
  padding: 0;
  cursor: pointer;
}

.cm-hub__feed-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cm-hub__feed-actions [data-community-events-open] {
  white-space: nowrap;
}

.ev-checkout-sheet {
  width: min(940px, calc(100% - 32px));
  height: min(690px, calc(100dvh - 32px));
  padding: 0;
  border: 1px solid var(--pc-line, var(--line));
  border-radius: 22px;
  background: var(--pc-page, var(--paper));
  color: var(--pc-ink, var(--c-ink));
  overflow: hidden;
}
.ev-checkout-sheet[open] { display: flex; flex-direction: column; }
.ev-checkout-sheet::backdrop { background: rgb(10 12 18 / .5); backdrop-filter: blur(4px); }
.ev-checkout-sheet > header { display: flex; align-items: center; gap: 12px; padding: 8px 16px; border-bottom: 1px solid var(--pc-line, var(--line)); }
.ev-checkout-sheet h2 { margin: 0 auto 0 0; font-size: 16px; }
.ev-checkout-sheet > header button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--pc-soft, var(--panel)); color: inherit; font-size: 22px; cursor: pointer; }
.ev-checkout-sheet iframe { flex: 1; width: 100%; min-height: 0; border: 0; }

.cm-events-active > :is(.cm-center, .cm-side2),
.tab-community:has(.cm-events-active) #cm-fab-post {
  display: none !important;
}

#teajr-community-events#teajr-community-events#teajr-community-events.ev-in-hub {
  position: static;
  grid-column: 2 / -1;
  grid-row: 1;
  min-width: 0;
  width: 100%;
  height: auto;
  max-height: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  overflow: visible;
  touch-action: auto;
}

#teajr-community-events#teajr-community-events.ev-in-hub .ev-app {
  background: transparent;
  min-height: 0;
  padding: 0 0 40px;
}

#teajr-community-events#teajr-community-events.ev-in-hub .ev-hub-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--cm-explore-width, 280px);
  gap: clamp(24px, 2.5vw, 36px);
  align-items: start;
}

#teajr-community-events#teajr-community-events.ev-in-hub :is(.ev-hub-main, .ev-hub-rail) {
  min-width: 0;
}

#teajr-community-events#teajr-community-events.ev-in-hub .ev-header {
  position: static;
  padding: 12px 0 18px;
  background: transparent;
}

#teajr-community-events#teajr-community-events.ev-in-hub .ev-feed {
  padding: 16px 0 0;
}

#teajr-community-events#teajr-community-events.ev-in-hub .ev-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 16px;
}

#teajr-community-events#teajr-community-events.ev-in-hub .ev-detail-art {
  position: relative;
  top: auto;
  aspect-ratio: 1.8;
  border-radius: 16px;
}

#teajr-community-events#teajr-community-events.ev-in-hub[data-screen="feed"] .ev-header {
  border-bottom: 0;
  padding: 12px 0 8px;
}

#teajr-community-events#teajr-community-events.ev-in-hub[data-screen="feed"] .ev-header h1 {
  font-size: clamp(28px, 2.5vw, 36px);
  line-height: 1.1;
  letter-spacing: -.035em;
}

#teajr-community-events#teajr-community-events.ev-in-hub[data-screen="feed"] .ev-viewbar {
  gap: 12px;
  margin: 0 0 8px;
}

#teajr-community-events#teajr-community-events.ev-in-hub .ev-segments {
  flex: 1;
}

#teajr-community-events#teajr-community-events.ev-in-hub .ev-segments button i {
  margin-right: 6px;
}

#teajr-community-events#teajr-community-events.ev-in-hub .ev-host-tools {
  flex-wrap: wrap;
  gap: 0 16px;
  padding-bottom: 12px;
}

#teajr-community-events#teajr-community-events.ev-in-hub[data-screen="feed"] .ev-card {
  display: flex;
  flex-direction: column;
  background: var(--ev-bg);
  border: 1px solid var(--ev-line);
  border-radius: 16px;
}

#teajr-community-events#teajr-community-events.ev-in-hub[data-screen="feed"] .ev-card[data-selected] {
  outline: 2px solid var(--ev-action);
  outline-offset: 2px;
}

#teajr-community-events#teajr-community-events.ev-in-hub[data-screen="feed"] .ev-card-body {
  flex: 1;
  min-height: 92px;
  padding: 12px;
  background: transparent;
  color: var(--ev-ink) !important;
}

#teajr-community-events#teajr-community-events.ev-in-hub[data-screen="feed"] .ev-poster {
  background: var(--ev-raised);
}

#teajr-community-events#teajr-community-events.ev-in-hub[data-screen="feed"] :is(.ev-card-copy > span, .ev-no-photo) {
  color: var(--ev-dim) !important;
}

#teajr-community-events#teajr-community-events.ev-in-hub[data-screen="feed"] .ev-arrow {
  background: var(--ev-raised);
  color: var(--ev-ink) !important;
}

#teajr-community-events#teajr-community-events.ev-in-hub .ev-preview-card {
  background: var(--ev-bg);
  border: 1px solid var(--ev-line);
  border-radius: 20px;
  color: var(--ev-ink) !important;
  overflow: hidden;
}

#teajr-community-events#teajr-community-events.ev-in-hub .ev-preview-card .ev-detail-art {
  background: var(--ev-raised);
  border-radius: 0;
}

#teajr-community-events#teajr-community-events.ev-in-hub .ev-preview-body {
  padding: clamp(16px, 1.5vw, 24px);
}

#teajr-community-events#teajr-community-events.ev-in-hub .ev-preview-category {
  margin-bottom: 4px;
  color: var(--ev-dim) !important;
  font-size: 12px;
}

#teajr-community-events#teajr-community-events.ev-in-hub .ev-preview-body > h2 {
  font-size: clamp(22px, 1.8vw, 28px);
  line-height: 1.15;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}

#teajr-community-events#teajr-community-events.ev-in-hub .ev-preview-facts {
  display: grid;
  gap: 12px;
  margin: 16px 0 20px;
}

#teajr-community-events#teajr-community-events.ev-in-hub .ev-preview-facts > div {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  overflow-wrap: anywhere;
}

#teajr-community-events#teajr-community-events.ev-in-hub .ev-preview-fact-icon {
  display: grid;
  flex: 0 0 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  background: var(--ev-raised);
}

#teajr-community-events#teajr-community-events.ev-in-hub .ev-preview-facts :is(time, strong) {
  font-weight: 600 !important;
}

#teajr-community-events#teajr-community-events.ev-in-hub .ev-preview-facts small {
  display: block;
  color: var(--ev-dim) !important;
  font-size: 12px;
}

#teajr-community-events#teajr-community-events.ev-in-hub .ev-preview-disclosure {
  display: flex;
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  margin-top: 16px;
  border-top: 1px solid var(--ev-line);
  color: var(--ev-ink) !important;
  font-size: 14px;
  font-weight: 600 !important;
}

#teajr-community-events#teajr-community-events.ev-in-hub .ev-preview-disclosure span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ev-dim) !important;
  font-size: 12px;
  font-weight: 400 !important;
}

#teajr-community-events#teajr-community-events.ev-in-hub .ev-preview-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
}

#teajr-community-events#teajr-community-events.ev-in-hub .ev-preview-actions [data-ev="share"] {
  width: 48px;
  padding: 0;
  border-radius: 14px;
  background: var(--ev-panel);
  border-color: var(--ev-line);
  color: var(--ev-ink) !important;
}

@media (min-width: 1181px) {
  #teajr-community-events#teajr-community-events.ev-in-hub[data-screen="feed"] .ev-hub-columns {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: clamp(12px, 1.3vw, 24px);
  }

  #teajr-community-events#teajr-community-events.ev-in-hub[data-screen="feed"] .ev-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  #teajr-community-events#teajr-community-events.ev-in-hub[data-screen="feed"] .ev-app {
    padding-bottom: 0;
  }

  #teajr-community-events#teajr-community-events.ev-in-hub[data-screen="feed"] .ev-hub-main {
    padding-bottom: 40px;
  }

  #teajr-community-events#teajr-community-events.ev-in-hub[data-screen="feed"] .ev-hub-rail {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
  }

  html:not(.ws-on) .cm-desktop-hub[data-page="front"] #teajr-community-events#teajr-community-events.ev-in-hub [data-ev-preview] {
    margin-inline-end: calc(-1 * var(--cm-frame-gutter, 0px));
  }

  #teajr-community-events#teajr-community-events.ev-in-hub .ev-hub-rail .ev-preview-card {
    margin: 0 12px 24px 0;
    border-top: 0;
    border-start-start-radius: 0;
    border-start-end-radius: 0;
  }
}

#teajr-community-events#teajr-community-events.ev-in-hub [data-ev-preview]:empty {
  display: none;
}

@media (max-width: 1180px) {
  #teajr-community-events#teajr-community-events.ev-in-hub .ev-app { padding-inline: 16px; }
  #teajr-community-events#teajr-community-events.ev-in-hub .ev-hub-columns { grid-template-columns: minmax(0, 1fr); }
  #teajr-community-events#teajr-community-events.ev-in-hub [data-ev-preview] { display: none; }
}

@media (max-width: 860px) {
  #teajr-community-events#teajr-community-events#teajr-community-events.ev-in-hub { grid-column: 1 / -1; }
}

#teajr-community-events#teajr-community-events.ev-in-hub .ev-preview-tools {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 6px;
}

#teajr-community-events#teajr-community-events.ev-in-hub .ev-preview-tools .ev-save {
  position: static;
}

#teajr-community-events#teajr-community-events.ev-in-hub .ev-preview-actions > div > .ev-primary {
  position: relative;
  justify-content: center;
  padding-inline: 32px;
}

#teajr-community-events#teajr-community-events.ev-in-hub .ev-preview-actions > div > .ev-primary > i {
  position: absolute;
  right: 14px;
}


#teajr-community-events#teajr-community-events.ev-in-hub .ev-preview-card .ev-detail-tabs {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--ev-line);
  border-radius: 0;
  background: transparent;
}

#teajr-community-events#teajr-community-events.ev-in-hub .ev-preview-card .ev-detail-tabs button {
  padding: 8px 2px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
}

#teajr-community-events#teajr-community-events.ev-in-hub .ev-preview-card .ev-detail-tabs button.is-active {
  border-bottom-color: var(--ev-action);
  background: transparent;
}

#teajr-community-events#teajr-community-events.ev-in-hub[data-screen="detail"] .ev-preview-card .ev-detail-tabs {
  margin-top: 20px;
}

#teajr-community-events#teajr-community-events.ev-in-hub .ev-preview-card .ev-detail-panel {
  padding-bottom: 4px;
}

#teajr-community-events#teajr-community-events.ev-in-hub .ev-preview-card .ev-detail-panel h2 {
  font-size: 16px;
}

#teajr-community-events#teajr-community-events.ev-in-hub .ev-preview-management {
  margin-top: 16px;
  padding-top: 8px;
  border-top: 1px solid var(--ev-line);
}
