/* NH1405 UI FIXES v1.2 */
/* 1) Landing clock story/satellite cards: prevent expansion and overlap */
.nv-welcome-hero:has(.nm-clock-experience) .nm-clock-story{
  min-height: 96px !important;
  max-height: 136px !important;
  padding: 14px 14px !important;
  overflow: hidden !important;
}
.nv-welcome-hero:has(.nm-clock-experience) .nm-clock-story h2{
  font-size: .98rem !important;
  line-height: 1.7 !important;
  margin: 4px 0 !important;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.nv-welcome-hero:has(.nm-clock-experience) .nm-clock-story p,
.nv-welcome-hero:has(.nm-clock-experience) .nm-clock-story small{
  line-height: 1.7 !important;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.nv-welcome-hero:has(.nm-clock-experience) .nm-clock-story p{
  font-size: .71rem !important;
  min-height: 0 !important;
}
.nv-welcome-hero:has(.nm-clock-experience) .nm-clock-story small{
  font-size: .64rem !important;
}
.nv-welcome-hero:has(.nm-clock-experience) .nm-clock-satellite{
  width: 122px !important;
  min-height: 84px !important;
  max-height: 128px !important;
  padding: 10px 10px !important;
  border-radius: 14px !important;
  font-size: .60rem !important;
  line-height: 1.7 !important;
  overflow: hidden !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  word-break: break-word;
  white-space: normal;
}
.nv-welcome-hero:has(.nm-clock-experience) .nm-clock-satellite.nm-next{
  inset-inline-end: 2px !important;
}
.nv-welcome-hero:has(.nm-clock-experience) .nm-clock-satellite:not(.nm-next){
  inset-inline-start: 2px !important;
}
@media (max-width: 1100px){
  .nv-welcome-hero:has(.nm-clock-experience) .nm-clock-satellite{
    width: 112px !important;
    font-size: .57rem !important;
  }
}
@media (max-width: 700px){
  .nv-welcome-hero:has(.nm-clock-experience) .nm-clock-story{
    max-height: none !important;
  }
  .nv-welcome-hero:has(.nm-clock-experience) .nm-clock-satellite{
    display:none !important;
  }
}

/* 2) Speakers/officials cards with gender icon instead of photo/initial */
.nh1405-officials-grid .nv-speaker-card{
  align-items:center;
}
.nh1405-officials-grid .nh1405-gender-icon{
  width: 72px;
  height: 72px;
  border-radius: 20px;
  border: 1px solid #c8ddd9;
  background: linear-gradient(145deg,#f7fbfb,#eaf3f2);
  display:grid;
  place-items:center;
  flex: 0 0 72px;
  color:#1c7b83;
}
.nh1405-officials-grid .nh1405-gender-icon svg{
  width: 34px;
  height: 34px;
}
.nh1405-officials-grid .nh1405-gender-icon.is-female{
  color:#166c7e;
}
.nh1405-officials-grid .nh1405-gender-icon.is-male{
  color:#176f9b;
}

/* 3) Ticket section carousel controls: match upper section feel */
.nh-ticket-showcase .nh-ticket-navigation{
  gap:8px;
}
.nh-ticket-showcase .nh-ticket-nav-button{
  width:44px;
  height:44px;
  min-width:44px;
  border-radius:50%;
  display:grid;
  place-items:center;
  font-size:1.1rem;
  line-height:1;
}
.nh-ticket-showcase .nh-ticket-pause{
  background:#2f7f78 !important;
  border-color:#2f7f78 !important;
  color:#fff !important;
  font-size: 1rem !important;
  font-weight: 700;
}
.nh-ticket-showcase .nh-ticket-pause[aria-pressed="true"]{
  background:#0d4f4b !important;
}

/* 4) Ensure exactly three staged admission cards present cleanly */
.nh-ticket-showcase .nh-ticket-grid{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 1180px){
  .nh-ticket-showcase .nh-ticket-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 780px){
  .nh-ticket-showcase .nh-ticket-grid{
    grid-template-columns: 1fr;
  }
}

/* V1.3: university optional afternoon control */
.nh1405-university-evening{grid-column:1 / -1;display:flex!important;align-items:center;gap:12px;padding:14px 18px;border:1px solid #9bd3c6;border-radius:15px;background:#edfaf4;color:#174e47;cursor:pointer}
.nh1405-university-evening input[type=checkbox]{width:21px;height:21px;flex:0 0 21px;accent-color:#116b5c}
.nh1405-evening-note{grid-column:1 / -1;margin:0;font-size:.78rem;line-height:1.8;color:#4d7472}
/* Accessible svg icon replacing text II for pause / play */
.nh-ticket-showcase .nh-ticket-pause{font-size:0!important}
.nh-ticket-showcase .nh-ticket-pause .nh1405-play-icon{width:18px;height:18px;display:block;fill:currentColor;stroke:none;pointer-events:none}

/* V1.3: three visible cards at desktop; JS rotates all catalog options */
#modern-programs .nh-ticket-carousel{overflow:hidden;padding-bottom:10px}
#modern-programs .nh-ticket-carousel .nh-ticket-grid{
  display:flex!important;
  flex-wrap:nowrap!important;
  align-items:stretch;
  min-width:0;
  width:100%;
  gap:18px;
  direction:rtl;
}
#modern-programs .nh-ticket-carousel .nh-ticket-card{
  flex:0 0 calc((100% - 36px) / 3);
  min-width:0;
  max-width:none;
  width:auto;
}
@media(max-width:990px){
  #modern-programs .nh-ticket-carousel .nh-ticket-card{flex-basis:calc((100% - 18px) / 2)}
}
@media(max-width:650px){
  #modern-programs .nh-ticket-carousel .nh-ticket-card{flex-basis:100%}
}
#modern-programs .nh-ticket-title-row .nh-ticket-pause svg{fill:currentColor;stroke:none;stroke-width:0}

/* V1.3: honor hidden satellite state and keep both labels above the story card */
.nv-welcome-hero:has(.nm-clock-experience) .nm-clock-satellite[hidden]{display:none!important}
.nv-welcome-hero:has(.nm-clock-experience) .nm-clock-satellite:not(.nm-next){top:15%!important}
.nv-welcome-hero:has(.nm-clock-experience) .nm-clock-satellite.nm-next{top:43%!important}
@media(max-width:700px){.nv-welcome-hero:has(.nm-clock-experience) .nm-clock-satellite{display:none!important}}
