/* The buttons keep the look of the Magazine Pro theme (Raleway, capitals,
   #222, teal #008285 on hover). Only the inactive tab is light. */
#ipc16-live { margin: 0 0 40px; }

.ipc16-live-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 14px;
}
.ipc16-live-tabs { display: flex; gap: 10px; flex-wrap: wrap; }

#ipc16-live .ipc16-live-tab,
#ipc16-live .ipc16-live-full {
  font-size: 14px;
  letter-spacing: 1px;
  padding: 12px 20px;
}
#ipc16-live .ipc16-live-tab[aria-selected="false"],
#ipc16-live .ipc16-live-full {
  background-color: #eee;
  color: #222;
}
#ipc16-live .ipc16-live-tab[aria-selected="false"]:hover,
#ipc16-live .ipc16-live-tab[aria-selected="false"]:focus,
#ipc16-live .ipc16-live-full:hover,
#ipc16-live .ipc16-live-full:focus {
  background-color: #008285;
  color: #fff;
}
#ipc16-live .ipc16-live-full { margin-left: auto; }
#ipc16-live .ipc16-live-full[hidden] { display: none; }

/* The session that runs now, between the tabs and the full screen button.
   The type is the type of the programme pages: Raleway, the heavy weight
   for titles, capitals with spacing for labels as on the buttons. The theme
   loads Raleway 400, 500 and 900 only. */
.ipc16-live-now {
  flex: 1 1 0;
  min-width: 0;
  align-self: center;
  text-align: center;
  font-family: Raleway, sans-serif;
  font-size: 17px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ipc16-live-now-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-right: 12px;
}
.ipc16-live-now:empty { display: none; }
#ipc16-live:fullscreen .ipc16-live-now { color: #fff; }
#ipc16-live:-webkit-full-screen .ipc16-live-now { color: #fff; }

/* The programme of the day, under the room, as the programme pages show it:
   a heavy heading, the day, then one plain line for each session. */
.ipc16-live-schedule { margin: 50px 0 40px; }
.ipc16-live-schedule h2 { font-weight: 900; margin-bottom: 8px; }
.ipc16-live-schedule h3 { font-weight: 400; margin-bottom: 20px; }
.entry-content .ipc16-live-schedule ul.ipc16-live-sessions,
.ipc16-live-schedule ul.ipc16-live-sessions { list-style: none; margin: 0 0 30px; padding: 0; }
.entry-content .ipc16-live-schedule .ipc16-live-sessions > li {
  list-style: none;
  margin: 0;
  padding: 10px 0;
  font-family: Raleway, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
}
.entry-content .ipc16-live-schedule .ipc16-live-sessions > li.is-now { font-weight: 900; }
.entry-content .ipc16-live-schedule .ipc16-live-sessions > li.is-past { color: #999; }
.ipc16-live-local {
  display: block;
  font-family: Roboto, sans-serif;
  font-size: 15px;
  font-weight: 300;
  color: #565656;
}
.is-past .ipc16-live-local { color: #999; }

.ipc16-live-stage { position: relative; width: 100%; height: 75vh; min-height: 420px; background: #222; }
.ipc16-live-stage.is-closed { height: auto; min-height: 0; background: none; }
.ipc16-live-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ipc16-live-message { font-size: 18px; margin-bottom: 10px; }
.ipc16-live-note { color: #565656; font-size: 15px; }

/* In full screen, the tabs stay on top and the room fills the rest. */
#ipc16-live:fullscreen {
  display: flex; flex-direction: column; margin: 0; padding: 10px; background: #222;
}
#ipc16-live:fullscreen .ipc16-live-stage { flex: 1; height: auto; min-height: 0; }
#ipc16-live:fullscreen .ipc16-live-tab[aria-selected="true"] { background-color: #008285; }
#ipc16-live:-webkit-full-screen .ipc16-live-tab[aria-selected="true"] { background-color: #008285; }
#ipc16-live:-webkit-full-screen {
  display: flex; flex-direction: column; margin: 0; padding: 10px; background: #222;
}
#ipc16-live:-webkit-full-screen .ipc16-live-stage { flex: 1; height: auto; min-height: 0; }

@media only screen and (max-width: 600px) {
  .ipc16-live-bar, .ipc16-live-tabs { flex-wrap: nowrap; gap: 6px; }
  /* No room between the buttons on a phone: the line goes under them. */
  .ipc16-live-bar { flex-wrap: wrap; }
  .ipc16-live-now { order: 3; flex-basis: 100%; text-align: left; font-size: 15px; }
  .ipc16-live-now-label { font-size: 12px; margin-right: 8px; }
  .ipc16-live-stage { height: 80vh; min-height: 360px; }
  #ipc16-live .ipc16-live-tab,
  #ipc16-live .ipc16-live-full { padding: 10px; font-size: 12px; letter-spacing: 0.5px; white-space: nowrap; }
}
