/* ==========================================================================
   agenda.css — the programme page built from the Agenda Manager (js/program.js)
   Adds to main.css (.sf-prow, .sf-pcard, .sf-plive, .sf-ptag, .sf-pband,
   .sf-phi, .sf-pcode): the expandable session card, its moderators and
   lectures, the LIVE / VIRTUAL / LIVE DEMO pills, the sponsor line, the
   room label and the track filter. The look follows the handoff's "Website preview".
   ========================================================================== */

/* track filter row */
.sf-prog-tracks .sf-pill { padding: 9px 18px; font-size: 12px; }
[dir="rtl"] .sf-prog-tracks .sf-pill { font-size: 13.5px; }
.sf-prog-bytrack [data-hall] { opacity: .55; }

/* session card: the header is one button that opens the lectures */
.sf-psess { padding: 0; }
.sf-psess:hover { transform: none; }
.sf-psess-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  width: 100%; border: 0; background: transparent; color: inherit; text-align: inherit;
  padding: 20px 24px; cursor: pointer; border-radius: 16px; font: inherit;
}
.sf-psess-head:focus-visible { outline: 2px solid rgba(185, 138, 47, 0.55); outline-offset: 2px; }
.sf-psess-main { min-width: 0; display: block; }
.sf-psess-labels { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.sf-psess .sf-ptag { margin-bottom: 10px; }
.sf-psess-sub { display: block; margin-top: 6px; font-size: 13px; color: var(--sf-ink-muted); line-height: 1.6; }
.sf-ptrack { font-size: 10.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sf-stone); }
[dir="rtl"] .sf-ptrack { letter-spacing: 0; font-size: 12px; text-transform: none; }
.sf-phall { font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sf-charcoal);
            background: rgba(43, 53, 55, 0.07); border-radius: 6px; padding: 3px 8px; }
[dir="rtl"] .sf-phall { letter-spacing: 0; font-size: 12px; }
/* the room inside a hall (Workshops: FaceX Live Studio, Janadriyah Meeting Room) */
.sf-proom { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em;
            text-transform: uppercase; color: #8A6420; background: rgba(185, 138, 47, 0.1); border-radius: 6px; padding: 3px 8px; }
.sf-proom svg { flex-shrink: 0; }
[dir="rtl"] .sf-proom { letter-spacing: 0; font-size: 12px; text-transform: none; }
.sf-plive .sf-proom { background: rgba(255, 255, 255, 0.22); color: var(--sf-white); }
.sf-pchev {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--sf-hairline);
  display: inline-flex; align-items: center; justify-content: center; color: var(--sf-gold); transition: transform .3s ease;
}
.sf-psess.is-open .sf-pchev { transform: rotate(180deg); }
.sf-psess-body { padding: 0 24px 20px; animation: sfPsIn .3s ease both; }
@keyframes sfPsIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* on the gold live card */
.sf-plive .sf-psess-sub, .sf-plive .sf-ptrack, .sf-plive .sf-plect-time, .sf-plive .sf-plect-spk,
.sf-plive .sf-psponsor, .sf-plive .sf-pmods-h { color: rgba(255, 255, 255, 0.86); }
.sf-plive .sf-plect-title, .sf-plive .sf-pmod { color: var(--sf-white); }
.sf-plive .sf-pchev { border-color: rgba(255, 255, 255, 0.5); color: var(--sf-white); }
.sf-plive .sf-plect, .sf-plive .sf-pmods { border-color: rgba(255, 255, 255, 0.3); }
.sf-plive .sf-phall { background: rgba(255, 255, 255, 0.22); color: var(--sf-white); }

/* moderators */
.sf-pmods { border-top: 1px solid var(--sf-card-hairline); padding-top: 14px; margin-bottom: 4px; }
.sf-pmods-h { font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sf-ink-muted); margin-bottom: 9px; }
[dir="rtl"] .sf-pmods-h { letter-spacing: 0; font-size: 13px; }
.sf-pmods-list { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.sf-pmod { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600; color: var(--sf-charcoal); }
.sf-pav {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  background: #EFE8D8 center 20% / cover no-repeat; color: #8A6420; font-size: 12px; font-weight: 700;
  box-shadow: 0 0 0 2px var(--sf-white), 0 0 0 3px var(--sf-gold-frame);
}

/* lectures */
.sf-plect { display: grid; grid-template-columns: 104px 1fr; gap: 12px; padding: 11px 0; border-top: 1px dashed var(--sf-card-hairline); }
.sf-pmods + .sf-plect { margin-top: 10px; }
.sf-plect-time { font-family: var(--sf-font-en); font-size: 12.5px; font-weight: 600; color: var(--sf-ink-muted); }
.sf-plect-code { display: block; margin-top: 3px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; opacity: .8; }
.sf-plect-main { min-width: 0; }
.sf-plect-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.sf-plect-title { font-size: 14.5px; font-weight: 500; line-height: 1.55; color: var(--sf-charcoal); text-wrap: pretty; }
.sf-plect-spk { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 13px; color: var(--sf-ink-muted); }

/* small pills on a lecture: LIVE SURGERY (red on white), VIRTUAL / LIVE DEMO (neutral) */
.sf-ppill {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 2px 9px;
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  background: var(--sf-white); color: var(--sf-charcoal); border: 1px solid var(--sf-hairline);
}
.sf-ppill-live { color: #D8262B; border-color: rgba(216, 38, 43, 0.35); }
[dir="rtl"] .sf-ppill { letter-spacing: 0; font-size: 11px; text-transform: none; }

/* sponsor line: "Sponsored by X" and its logo */
.sf-psponsor { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--sf-stone); }
.sf-psponsor img { height: 22px; max-width: 90px; object-fit: contain; background: var(--sf-white); border-radius: 5px; padding: 2px 4px; border: 1px solid var(--sf-card-hairline); }

@media (max-width: 575.98px) {
  .sf-psess-head { padding: 16px 18px; }
  .sf-psess-body { padding: 0 18px 16px; }
  .sf-plect { grid-template-columns: 70px 1fr; gap: 10px; }
}
