/* Desktop discovery pages share a 220px photo strip. Controls remain visible below it. */
@media (min-width: 992px) {
  html body #vf-main-content.main-wrapper .vf-compact-discovery-hero.page-header {
    box-sizing: border-box !important;
    height: 220px !important;
    min-height: 220px !important;
    max-height: 220px !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
    overflow: hidden !important;
  }

  html body #vf-main-content.main-wrapper .vf-compact-discovery-hero.page-header > .container,
  html body #vf-main-content.main-wrapper .vf-compact-discovery-hero.page-header > .container-fluid {
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 1320px !important;
    height: 220px !important;
    min-height: 220px !important;
    max-height: 220px !important;
    margin: 0 auto !important;
    padding: 20px 34px !important;
    text-align: left !important;
  }

  html body #vf-main-content.main-wrapper .vf-compact-discovery-hero.page-header .vf-events-hero-kicker {
    align-self: flex-start !important;
    justify-self: start !important;
    margin: 0 0 7px !important;
  }

  html body #vf-main-content.main-wrapper .vf-compact-discovery-hero.page-header h1,
  html body #vf-main-content.main-wrapper .vf-compact-discovery-hero.page-header h2 {
    align-self: flex-start !important;
    justify-self: start !important;
    width: auto !important;
    margin: 0 0 7px !important;
    font-size: clamp(2rem, 2.8vw, 2.7rem) !important;
    line-height: 1.12 !important;
    text-align: left !important;
  }

  html body #vf-main-content.main-wrapper .vf-compact-discovery-hero.page-header .vf-events-hero-subtitle,
  html body #vf-main-content.main-wrapper .vf-compact-discovery-hero.page-header p.text-xlg.vf-events-hero-subtitle {
    align-self: flex-start !important;
    justify-self: start !important;
    width: auto !important;
    max-width: 850px !important;
    margin: 0 !important;
    font-size: 1rem !important;
    line-height: 1.4 !important;
    text-align: left !important;
  }

  html body .main-wrapper .vf-discovery-hero-tools {
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    width: min(1320px, calc(100% - 48px));
    margin: 8px auto 20px;
    padding: 12px 16px;
    border: 1px solid rgba(97, 119, 150, .2);
    border-radius: 16px;
    background: var(--card-bg, #fff);
    box-shadow: 0 8px 24px rgba(15, 34, 65, .07);
  }

  html body .main-wrapper .vf-discovery-hero-tools .vf-events-hero-stats {
    display: flex !important;
    flex: 1 1 410px !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  html body .main-wrapper .vf-discovery-hero-tools .vf-events-hero-stat {
    display: inline-flex !important;
    align-items: baseline !important;
    gap: 6px !important;
    min-height: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 7px 10px !important;
    border: 1px solid rgba(97, 119, 150, .2) !important;
    background: rgba(72, 116, 177, .07) !important;
    white-space: normal !important;
  }

  html body .main-wrapper .vf-discovery-hero-tools .vf-events-hero-stat strong,
  html body .main-wrapper .vf-discovery-hero-tools .vf-events-hero-stat span {
    display: inline !important;
    grid-row: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    font-size: .82rem !important;
    line-height: 1.3 !important;
    color: var(--body-color, #203149) !important;
  }

  html body .main-wrapper .vf-discovery-hero-tools .vf-events-hero-stat em { display: none !important; }

  html body .main-wrapper .vf-discovery-hero-tools .vf-events-hero-search {
    flex: 1 1 270px !important;
    width: min(420px, 100%) !important;
    max-width: 420px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html body .main-wrapper .vf-discovery-hero-tools .vf-events-hero-search > [class*="col-"] {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html body .main-wrapper .vf-discovery-hero-tools .vf-events-hero-search .input-group {
    border: 1px solid rgba(97, 119, 150, .28) !important;
    border-radius: 12px !important;
    background: var(--card-bg, #fff) !important;
    box-shadow: none !important;
  }

  html body .main-wrapper .vf-discovery-hero-tools .vf-events-hero-search .form-control {
    min-height: 42px !important;
    background: transparent !important;
    color: var(--body-color, #203149) !important;
  }

  html body .main-wrapper .vf-discovery-hero-tools .vf-events-hero-search .form-control::placeholder {
    color: var(--body-color-secondary, #65758b) !important;
  }

  html body .main-wrapper .vf-discovery-hero-tools .vf-events-hero-search .btn { min-height: 42px !important; }

  html body .main-wrapper .vf-discovery-hero-tools + .vf-directory-shell { margin-top: 0 !important; }
  body.night-mode .main-wrapper .vf-discovery-hero-tools {
    border-color: rgba(160, 181, 210, .22);
    background: var(--card-bg, #162234);
  }
  body.night-mode .main-wrapper .vf-discovery-hero-tools .vf-events-hero-stat {
    border-color: rgba(160, 181, 210, .24) !important;
    background: rgba(160, 181, 210, .1) !important;
  }
  body.night-mode .main-wrapper .vf-discovery-hero-tools .vf-events-hero-stat strong,
  body.night-mode .main-wrapper .vf-discovery-hero-tools .vf-events-hero-stat span,
  body.night-mode .main-wrapper .vf-discovery-hero-tools .vf-events-hero-search .form-control { color: #edf3ff !important; }
  body.night-mode .main-wrapper .vf-discovery-hero-tools .vf-events-hero-search .form-control::placeholder { color: #b5c4d9 !important; }
}
