/* ===== CLUB POSTS =====
   The home page's "For your level" picks + What's On teaser, and the
   What's On page. Content comes from Admin > Club posts. */

/* ============ FOR YOUR LEVEL ============ */
.level-picks__chooser {
  display:         flex;
  flex-wrap:       wrap;
  justify-content: center;
  gap:             8px;
  margin:          -24px auto 36px;
  max-width:       920px;
}

.level-picks__chip {
  font:          inherit;
  font-size:     .86rem;
  color:         var(--muted);
  background:    var(--surface);
  border:        1px solid var(--line);
  border-radius: 999px;
  padding:       8px 15px;
  cursor:        pointer;
  transition:
    border-color .2s,
    color        .2s,
    background   .2s;
}

.level-picks__chip:hover {
  border-color: var(--line-strong);
  color:        var(--text);
}

.level-picks__chip.is-active {
  color:        #fff;
  background:   var(--gold-deep);
  border-color: var(--gold);
}

.level-picks__chip:focus-visible {
  outline:        2px solid var(--gold);
  outline-offset: 2px;
}

/* Same layout as .youtube-grid, under its own name: network.js fills any
   .youtube-grid on the page with the Network episodes. */
.level-picks__grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   20px;
}

.level-picks__card[hidden] {
  display: none;
}

/* Non-video picks (business cases, audio-only podcasts) get a tinted
   placeholder where the YouTube thumbnail would be. */
.level-picks__thumb--case_study {
  background: linear-gradient(150deg, #13233a, #0b1220);
}

.level-picks__thumb-icon {
  position: relative;
  z-index:  2;
  width:    44px;
  height:   44px;
  color:    var(--gold);
}

.level-picks__thumb-icon svg {
  width:  100%;
  height: 100%;
}

.level-picks__body {
  color:              var(--muted);
  font-size:          .9rem;
  line-height:        1.5;
  margin-top:         8px;
  display:            -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow:           hidden;
}

.level-picks__empty {
  text-align: center;
  color:      var(--muted);
  margin-top: 8px;
}

.level-picks__empty a {
  color:           var(--text);
  text-decoration: underline;
}

/* ============ WHAT'S ON ============ */
.whats-on__list {
  display:        flex;
  flex-direction: column;
  gap:            12px;
  max-width:      860px;
  margin:         0 auto;
}

.whats-on__item {
  display:       flex;
  align-items:   center;
  gap:           20px;
  background:    var(--surface);
  border:        1px solid var(--line);
  border-radius: var(--radius);
  padding:       20px 22px;
}

.whats-on__date {
  flex:           0 0 64px;
  height:         64px;
  border-radius:  var(--radius-small);
  border:         1px solid var(--line-strong);
  display:        flex;
  flex-direction: column;
  align-items:    center;
  justify-content: center;
  line-height:    1;
}

.whats-on__date-day {
  font-size:   1.5rem;
  font-weight: 800;
}

.whats-on__date-month {
  font-family:    var(--font-mono);
  font-size:      11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color:          var(--gold);
  margin-top:     4px;
}

.whats-on__content {
  flex:      1;
  min-width: 0;
}

.whats-on__kind {
  font-family:    var(--font-mono);
  font-size:      10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color:          var(--gold);
}

.whats-on__content h3 {
  font-size:   1.08rem;
  line-height: 1.3;
  margin-top:  4px;
}

.whats-on__content p {
  color:      var(--muted);
  font-size:  .92rem;
  margin-top: 6px;
  white-space: pre-line;
}

.whats-on__link {
  flex-shrink: 0;
}

.whats-on-section__header {
  max-width: 860px;
  margin:    0 auto 20px;
}

.whats-on-section__header p {
  color:      var(--muted);
  margin-top: 6px;
}

.whats-on__empty {
  max-width: 860px;
  margin:    0 auto;
  color:     var(--muted);
}

.whats-on__empty a {
  color:           var(--text);
  text-decoration: underline;
}

.whats-on-section + .whats-on-section {
  padding-top: 0;
}

@media (max-width: 900px) {
  .level-picks__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .level-picks__grid {
    grid-template-columns: 1fr;
  }

  .level-picks__chip-name {
    display: none;
  }

  .whats-on__item {
    flex-wrap: wrap;
    gap:       14px;
    padding:   18px;
  }

  .whats-on__date {
    flex-basis: 52px;
    height:     52px;
  }

  .whats-on__link {
    width:           100%;
    justify-content: center;
  }
}
