/* ============================================================================
   PECB Conference 2026 -- Program / Agenda (template-program.php)

   Session formats are terms of the pecb_session_format taxonomy. Each term
   stores one colour, which arrives here as --pecb-fmt; the badge background
   and border are derived from it with color-mix(). Adding a format is a
   wp-admin job, not a code change.
   ========================================================================== */
   


.pecb-prog-root { background: #04040A; overflow-x: clip; }

/* --------------------------------------------------------------- 01 banner */


.pecb-prog-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(125deg,#080e42 0%,#0e1a68 50%,#152394 100%);
  padding: 0 28px;
}
.pecb-prog-glow,
.pecb-prog-glow-rev {
  position: absolute;
  border-radius: 50%;
  filter: blur(20px);
  pointer-events: none;
}
.pecb-prog-glow {
  top: -160px;
  right: -120px;
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(70,100,240,0.5) 0%, rgba(70,100,240,0) 62%);
}
.pecb-prog-glow-rev {
  bottom: -220px;
  left: -160px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(40,58,190,0.5) 0%, rgba(40,58,190,0) 64%);
}
.pecb-prog-banner-inner {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding: 64px 0;
  flex-wrap: wrap;
}
.pecb-prog-banner-copy { text-align: left; max-width: 760px; }
.pecb-prog-banner-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.pecb-prog-banner-eyebrow {
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #8ba0ff;
  font-weight: 600;
}
.pecb-prog-banner-title {
  font-size: clamp(34px, 4.6vw, 52px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -1.4px;
  margin: 0;
  color: #fff;
}
.pecb-prog-banner-dates {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 100px;
  padding: 12px 24px;
  white-space: nowrap;
}

/* ------------------------------------------------------ 02 schedule shell */

.pecb-prog-sec {
  position: relative;
  background: #04040A;
  border-bottom: 1px solid #111;
}
.pecb-prog-inner {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  padding: 80px 28px 100px;
}
.pecb-prog-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.pecb-prog-eyebrow {
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #ED002E;
  font-weight: 600;
  margin-bottom: 12px;
}
.pecb-prog-title {
  font-size: clamp(27px, 5.4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  margin: 0;
  color: #fff;
}
.pecb-prog-subtext {
  font-size: 15px;
  line-height: 1.6;
  color: #9aa3c4;
  margin: 14px 0 0;
  max-width: 640px;
}

/* day pills */

.pecb-day-tabs { display: flex; gap: 12px; }
.pecb-day-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 8px 26px;
  border-radius: 4px;
  font-family: inherit;
  cursor: pointer;
  transition: background .2s, border-color .2s;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  height: 100%;
}
.pecb-day-tab.is-active { background: #c40b22; border-color: #c40b22; }
.pecb-day-tab-kicker { font-size: 15px; font-weight: 700; letter-spacing: 0.5px; }
.pecb-day-tab-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.4px;
  opacity: 0.6;
  line-height: 1.1;
}
.pecb-day-tab.is-active .pecb-day-tab-label { opacity: 0.9; }

.pecb-day-tab:hover { color: #fff; border: 1px solid #fff;}

/* when & where rule */

.pecb-prog-when {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 14px 0 36px;
}
.pecb-prog-when-label {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #9aa3c4;
  font-weight: 600;
}
.pecb-prog-when-line { flex: 1; height: 1px; background: rgba(255,255,255,0.16); }

/* ------------------------------------------------------ 03 format filters */

.pecb-formats-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin: 0 0 30px;
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
}
.pecb-formats-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  color: #9aa3c4;
}
.pecb-fmt-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  user-select: none;
}
.pecb-fmt-track {
  width: 42px;
  height: 24px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  flex-shrink: 0;
  background: var(--pecb-fmt, #c9cee0);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--pecb-fmt, #c9cee0) 33%, transparent);
  transition: background .2s, box-shadow .2s;
}
.pecb-fmt-toggle[data-on="false"] .pecb-fmt-track {
  background: rgba(255,255,255,0.16);
  box-shadow: none;
}
.pecb-fmt-knob {
  position: absolute;
  top: 3px;
  left: 21px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.45);
  transition: left .2s ease;
}
.pecb-fmt-toggle[data-on="false"] .pecb-fmt-knob { left: 3px; }
.pecb-fmt-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--pecb-fmt, #c9cee0);
  transition: color .2s;
}
.pecb-fmt-toggle[data-on="false"] .pecb-fmt-name { color: #6b7290; }
.pecb-fmt-list{display: contents;}
.pecb-fmt-btns { display: flex; gap: 8px; margin-left: auto;width: 100%;  justify-content: end; }
.pecb-filter-all {
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  color: #c9cee0;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, color .2s;
  height: fit-content;
  padding: 6px 18px;
}
.pecb-filter-all:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* ----------------------------------------------------------- 04 schedule */

.pecb-prog-day[hidden] { display: none; }

/* plenary row */
.pecb-sched-full {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.13);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 16px 24px;
  margin: 9px 0;
}
.pecb-sf-time {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12.5px;
  font-weight: 600;
  color: #9aa3c4;
  font-variant-numeric: tabular-nums;
}
.pecb-sf-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
}

/* room header bars */
.pecb-sched-rooms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 26px 0 2px;
}
.pecb-sr-bar {
  text-align: center;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  padding: 11px;
  border-radius: 3px;
  background: #c40b22;
  color: #fff;
}

/* parallel rows */
.pecb-sched-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pecb-sched-cell {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  padding: 22px 6px;
  border-top: 1px solid rgba(255,255,255,0.22);
  align-items: start;
}
.pecb-sched-split > .pecb-sched-cell:first-child {
  border-right: 1px solid rgba(255,255,255,0.22);
  padding-right: 20px;
}
.pecb-sched-split > .pecb-sched-cell:last-child { padding-left: 6px; }
.pecb-sched-split.is-tight > .pecb-sched-cell { border-top: none; }
.pecb-sc-time {
  font-size: 12.5px;
  font-weight: 600;
  color: #9aa3c4;
  font-variant-numeric: tabular-nums;
}
.pecb-sc-title {
  font-size: 16px;
  font-weight: 600;
  margin: 8px 0 0;
  line-height: 1.3;
  color: #fff;
  text-wrap: pretty;
}
.pecb-sc-badge {
  display: inline-block;
  font-size: 9.5px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
  /* Formats store a single colour on their term; the background and border are
     derived here, so an editor sets one value rather than three that have to
     agree with each other. */
  color: var(--pecb-fmt, #c9cee0);
  background: color-mix(in srgb, var(--pecb-fmt, #c9cee0) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--pecb-fmt, #c9cee0) 45%, transparent);
}
.pecb-room-tag { display: none; }
.pecb-prog-cell.is-dimmed {
  opacity: 0.22;
  filter: grayscale(0.55);
  transition: opacity .25s ease, filter .25s ease;
}

/* ------------------------------------------------------------- responsive */

@media (max-width: 760px) {
  .pecb-sched-split { grid-template-columns: 1fr; gap: 0; }
  .pecb-sched-split > .pecb-sched-cell:first-child {
    border-right: none;
    padding-right: 6px;
  }
  .pecb-sched-rooms { display: none; }
  .pecb-sched-cell { grid-template-columns: 104px 1fr; }
  .pecb-sched-split.is-tight > .pecb-sched-cell { border-top: 1px solid rgba(255,255,255,0.22); }
  .pecb-room-tag {
    display: inline-block;
    margin-top: 8px;
    background: #c40b22;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 3px;
  }
  .pecb-sched-full { justify-content: flex-start; gap: 14px; padding: 14px 18px; }
  .pecb-sf-time { position: static; transform: none; flex: 0 0 auto; }
  .pecb-sf-title { text-align: left; }
  .pecb-day-tabs { width: 100%; }
  .pecb-day-tab { flex: 1; padding: 9px 14px; }
  .pecb-fmt-btns { margin-left: 0; width: 100%; }
}

@media (max-width: 1024px) {
  .pecb-prog-inner { padding: 60px 18px; }
  .pecb-prog-title { font-size: clamp(26px, 6.4vw, 34px); }
  .pecb-prog-banner-inner { gap: 32px; padding: 48px 0; min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .pecb-prog-cell,
  .pecb-fmt-track,
  .pecb-fmt-knob,
  .pecb-fmt-name,
  .pecb-day-tab { transition: none; }
}





/*// Temporary removal of program time from the Programs page*/

div:has(> .pecb-sc-time),
.pecb-sf-time{
    display: none !important;
}

.pecb-sched-cell {
    display: flex;
}

/* ----------------------------------------------------- new row shapes
   duo   two plenary items at the same start time, side by side
   empty one half of a split row with nothing in it, which is how a long
         session in the other room is made to look like it spans
   -------------------------------------------------------------------- */

.pecb-sched-duo { margin: 9px 0; }
.pecb-sched-full--duo { margin: 0; }

.pecb-sc-timecol { min-width: 0; }

/* An empty half keeps the row's grid intact without drawing a top border,
   so the filled side above it reads as one tall cell. */
.pecb-sched-cell--empty {
  border-top: none;
  padding-top: 0;
  padding-bottom: 0;
}
.pecb-sched-split > .pecb-sched-cell--empty:first-child {
  border-right: 1px solid rgba(255,255,255,0.22);
}

@media (max-width: 760px) {
  /* Stacked on mobile an empty half is just dead space. */
  .pecb-sched-cell--empty { display: none; }
  .pecb-sched-duo { grid-template-columns: 1fr; display: grid; gap: 8px; }
  .pecb-sched-full--duo { margin: 0; }
}
