/* PL liveweek — shared student/affiliate calendar look */

.liveweek {
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  overflow: hidden;
}
.liveweek__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-end;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--line);
}
.liveweek__title { margin: 0; font-size: 1.25rem; letter-spacing: -0.02em; }
.liveweek__sub { margin: 4px 0 0; color: var(--muted); font-size: 0.88rem; }
.liveweek__tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.liveweek__nav {
  display: flex; align-items: center; gap: 8px;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.18);
}
.liveweek__nav strong {
  min-width: 11.5rem;
  text-align: center;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}
.liveweek__btn, .liveweek__today {
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  border-radius: 8px;
  padding: 6px 10px;
  font-weight: 700;
}
.liveweek__btn:hover, .liveweek__today:hover { background: rgba(255,255,255,.06); }
.liveweek__today {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  font-size: 0.8rem;
}
.liveweek__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  min-height: 280px;
}
.liveweek__day {
  border-right: 1px solid var(--line);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  background: transparent;
}
.liveweek__day:last-child { border-right: 0; }
.liveweek__day.is-today {
  background: color-mix(in srgb, var(--brand, #9bcb2e) 10%, transparent);
}
.liveweek__dayhead {
  padding: 10px 10px 8px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
}
.liveweek__dayhead span {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.liveweek__dayhead strong {
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}
.liveweek__slots {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  flex: 1;
}
.liveweek__card {
  text-align: left;
  border: 0;
  border-radius: 12px;
  padding: 8px;
  background: #b8e03a;
  color: #0d0d0d;
  display: grid;
  gap: 6px;
  box-shadow: none;
  transition: transform .15s ease, filter .15s ease;
}
.liveweek__card:hover { transform: translateY(-1px); filter: brightness(1.04); }
.liveweek__card.is-on { outline: 2px solid #0d0d0d; outline-offset: 1px; }
.liveweek__pick {
  all: unset;
  cursor: pointer;
  display: grid;
  gap: 2px;
  color: inherit;
}
.liveweek__card time {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  opacity: .9;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}
.liveweek__card strong {
  display: block;
  font-size: 0.86rem;
  line-height: 1.25;
  margin-bottom: 6px;
}
.liveweek__card .liveweek__join {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
}
.liveweek__empty {
  margin: 8px;
  padding: 18px 10px;
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  border: 1px dashed var(--line);
  border-radius: 10px;
}
@media (max-width: 1100px) {
  .liveweek__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .liveweek__day { min-height: 180px; border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .liveweek__grid { grid-template-columns: 1fr; }
}

html[data-theme="light"] .liveweek,
html.theme-light .liveweek {
  background: #fff;
}
html[data-theme="light"] .liveweek__nav,
html.theme-light .liveweek__nav {
  background: #f1f5f9;
}
/* oh6 live join + calendar lima Onhora */
.live-join {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.82rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  background: #0d0d0d;
  color: #b8e03a;
}
.live-join:hover { filter: brightness(1.08); }
.live-join__ico { width: 16px; height: 16px; flex: 0 0 auto; }
.live-join--meet { background: #0d0d0d; color: #b8e03a; }
.live-join--zoom { background: #0d0d0d; color: #b8e03a; }
.live-join.is-ghost { opacity: 0.55; pointer-events: none; }
.pupil-ticket .live-join {
  width: 100%;
  min-height: 42px;
  background: #b8e03a;
  color: #0d0d0d;
  border-radius: 12px;
  margin-top: 14px;
}
.pupil-ticket .live-join.is-ghost {
  background: rgba(184,224,58,.25);
  color: #b8e03a;
}
.liveweek__card .live-join {
  width: 100%;
  min-height: 30px;
  padding: 0 8px;
  font-size: 0.72rem;
  background: #0d0d0d;
  color: #b8e03a;
  border-radius: 8px;
}
.liveweek__card time {
  color: #0d0d0d !important;
  opacity: 0.75 !important;
}
.liveweek__card strong {
  color: #0d0d0d !important;
}
.liveweek__card .liveweek__join { display: none; }
.liveweek {
  background: #161616 !important;
  border: 1px solid var(--line) !important;
  border-radius: 16px !important;
}
.liveweek__day.is-today {
  background: rgba(184, 224, 58, 0.08) !important;
}
/* oh7 contrast: lima = texto negro (vence theme-dark strong blanco) */
html.theme-dark .liveweek__card,
html[data-theme="dark"] .liveweek__card,
html.theme-dark .liveweek__card .liveweek__pick,
html[data-theme="dark"] .liveweek__card .liveweek__pick,
html.theme-dark .liveweek__card time,
html[data-theme="dark"] .liveweek__card time,
html.theme-dark .liveweek__card strong,
html[data-theme="dark"] .liveweek__card strong,
html.theme-dark .liveweek__card span,
html[data-theme="dark"] .liveweek__card span,
body .liveweek__card,
body .liveweek__card .liveweek__pick,
body .liveweek__card time,
body .liveweek__card strong {
  color: #0d0d0d !important;
  -webkit-text-fill-color: #0d0d0d !important;
}
/* join dentro de card lima: negro sólido + texto lima (contraste) */
html.theme-dark .liveweek__card .live-join,
html[data-theme="dark"] .liveweek__card .live-join,
body .liveweek__card .live-join {
  background: #0d0d0d !important;
  color: #b8e03a !important;
  -webkit-text-fill-color: #b8e03a !important;
}
.liveweek__pick {
  all: unset;
  display: grid !important;
  gap: 2px !important;
  cursor: pointer !important;
  color: #0d0d0d !important;
  -webkit-text-fill-color: #0d0d0d !important;
}
html.theme-light .liveweek__title,
html[data-theme="light"] .liveweek__title {
  color: #0d0d0d !important;
}
html.theme-light .liveweek__sub,
html[data-theme="light"] .liveweek__sub {
  color: #5c5a54 !important;
}
html.theme-light .liveweek,
html[data-theme="light"] .liveweek {
  background: #ffffff !important;
  border: 1px solid rgba(13,13,13,.12) !important;
  color: #0d0d0d !important;
  box-shadow: none !important;
}

html.theme-light .liveweek__day,
html[data-theme="light"] .liveweek__day {
  background: #ffffff !important;
  border-color: rgba(13,13,13,.1) !important;
}
html.theme-light .liveweek__day.is-today,
html[data-theme="light"] .liveweek__day.is-today {
  background: rgba(184, 224, 58, 0.12) !important;
}
html.theme-light .liveweek__dayhead span,
html[data-theme="light"] .liveweek__dayhead span,
html.theme-light .liveweek__empty,
html[data-theme="light"] .liveweek__empty {
  color: #5c5a54 !important;
  -webkit-text-fill-color: #5c5a54 !important;
}
html.theme-light .liveweek__dayhead strong,
html[data-theme="light"] .liveweek__dayhead strong,
html.theme-light .liveweek__nav strong,
html[data-theme="light"] .liveweek__nav strong {
  color: #0d0d0d !important;
  -webkit-text-fill-color: #0d0d0d !important;
}
html.theme-light .liveweek__nav,
html[data-theme="light"] .liveweek__nav {
  background: #f7f5f0 !important;
  border-color: rgba(13,13,13,.12) !important;
}
html.theme-light .liveweek__btn,
html[data-theme="light"] .liveweek__btn,
html.theme-light .liveweek__today,
html[data-theme="light"] .liveweek__today {
  color: #0d0d0d !important;
}
/* Cards calendario: texto negro; join negro+lima */
html.theme-light .liveweek__card,
html[data-theme="light"] .liveweek__card,
html.theme-light body .liveweek__card,
html[data-theme="light"] body .liveweek__card {
  background: #b8e03a !important;
  color: #0d0d0d !important;
  box-shadow: none !important;
}
html.theme-light .liveweek__card time,
html[data-theme="light"] .liveweek__card time,
html.theme-light .liveweek__card strong,
html[data-theme="light"] .liveweek__card strong,
html.theme-light .liveweek__pick,
html[data-theme="light"] .liveweek__pick {
  color: #0d0d0d !important;
  -webkit-text-fill-color: #0d0d0d !important;
}
html.theme-light .liveweek__card .live-join,
html[data-theme="light"] .liveweek__card .live-join {
  background: #0d0d0d !important;
  color: #b8e03a !important;
  -webkit-text-fill-color: #b8e03a !important;
}
