/* ---------- Agenda hero ---------- */
.ag-hero {
  position: relative;
  background: #320f22;
  color: #fff;
  padding: 178px 0 62px;
  overflow: hidden;
}
.ag-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 14px),
    radial-gradient(90% 120% at 82% 0%, rgba(210, 15, 102, 0.55) 0%, transparent 62%);
  pointer-events: none;
}
.ag-hero__inner { position: relative; }
.ag-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Poppins, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fcce8e;
  margin: 0 0 16px;
}
.ag-hero__eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: #fcce8e;
  display: block;
}
.ag-hero h1 {
  font-family: Poppins, sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0 0 16px;
}
.ag-hero p {
  font-family: Poppins, sans-serif;
  font-weight: 300;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.84);
  max-width: 640px;
  margin: 0;
}
.ag-hero p.ag-hero__note {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.66);
  margin: 22px 0 0;
  padding-left: 13px;
  border-left: 2px solid rgba(252, 206, 142, 0.45);
}
.ag-hero__note a {
  color: #fcce8e;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.ag-hero__note a:hover { color: #fff; }
.ag-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin: 26px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.ag-hero__stat b {
  display: block;
  font-family: Poppins, sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1;
  color: #fcce8e;
}
.ag-hero__stat span {
  display: block;
  font-family: Poppins, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
  margin-top: 7px;
}

/* ---------- Full programme band ---------- */
.ag-band {
  padding: 56px 0 84px;
  background: #fdf1e2;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(253, 241, 226, 0) 200px);
  scroll-margin-top: 90px;
}

/* ---------- Layout ---------- */
.ag-layout {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 46px;
  align-items: start;
}

/* ---------- Rail ---------- */
.ag-rail { position: sticky; top: 92px; align-self: start; }
.ag-search { position: relative; margin: 0 0 20px; }
.ag-search input {
  width: 100%;
  box-sizing: border-box;
  font-family: Poppins, sans-serif;
  font-size: 14px;
  color: #311025;
  padding: 11px 34px 11px 13px;
  border: 1.5px solid rgba(75, 11, 47, 0.18);
  border-radius: 6px;
  background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.ag-search input::placeholder { color: #9a8b93; }
.ag-search input:focus {
  outline: none;
  border-color: #d20f66;
  box-shadow: 0 0 0 3px rgba(210, 15, 102, 0.14);
}
.ag-search__clear {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  border: 0;
  background: none;
  cursor: pointer;
  color: #9a8b93;
  font-size: 17px;
  line-height: 1;
  padding: 4px 6px;
  display: none;
}
.ag-search__clear:hover { color: #d20f66; }
.ag-search.has-value .ag-search__clear { display: block; }

.ag-group { margin: 0 0 20px; }
.ag-group__label {
  font-family: Poppins, sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8c6a78;
  margin: 0 0 9px;
}
.ag-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ag-chip {
  font-family: Poppins, sans-serif;
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.25;
  color: #4b0b2f;
  background: #fff;
  border: 1.5px solid rgba(75, 11, 47, 0.16);
  border-radius: 999px;
  padding: 6px 11px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.ag-chip:hover { border-color: rgba(210, 15, 102, 0.55); color: #d20f66; }
.ag-chip[aria-pressed="true"] { background: #4b0b2f; border-color: #4b0b2f; color: #fff; }
.ag-chip[aria-pressed="true"]:hover { background: #d20f66; border-color: #d20f66; color: #fff; }
.ag-chip small { font-weight: 400; opacity: 0.62; margin-left: 5px; }
.ag-chip--day[aria-pressed="true"] { background: #d20f66; border-color: #d20f66; }

.ag-rail__foot {
  border-top: 1px solid rgba(75, 11, 47, 0.14);
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ag-reset {
  font-family: Poppins, sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  color: #d10f67;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ag-saved-toggle {
  font-family: Poppins, sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  color: #4b0b2f;
  background: rgba(255, 255, 255, 0.7);
  border: 1.5px solid rgba(75, 11, 47, 0.18);
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
}
.ag-saved-toggle[aria-pressed="true"] { background: #4b0b2f; border-color: #4b0b2f; color: #fff; }

/* ---------- Toolbar (small screens) ---------- */
.ag-toolbar { display: none; }

/* ---------- Results ---------- */
.ag-results__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(75, 11, 47, 0.16);
  padding-bottom: 12px;
  margin: 0 0 28px;
}
.ag-results__count {
  font-family: Poppins, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #8c6a78;
  text-transform: uppercase;
}
.ag-results__count b { color: #4b0b2f; }
.ag-results__meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ag-results__key {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: Poppins, sans-serif;
  font-size: 0.76rem;
  color: #4a6268;
  letter-spacing: 0;
  text-transform: none;
}
.ag-key-swatch {
  width: 16px;
  height: 12px;
  border-radius: 3px;
  background: #eef5f7;
  border: 1.5px dashed #bcd5da;
  display: block;
  flex: none;
}
.ag-key-swatch--hybrid {
  background: #fbe7bd;
  border: 1.5px solid #d9a24a;
}
.ag-results__tz {
  font-family: Poppins, sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  color: #8c6a78;
  letter-spacing: 0;
  text-transform: none;
}

.ag-day { margin: 0 0 44px; }
.ag-day__head { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; }
.ag-day__name {
  font-family: Poppins, sans-serif;
  font-weight: 700;
  font-size: 1.24rem;
  color: #4b0b2f;
  margin: 0;
  line-height: 1.2;
}
.ag-day__rule { flex: 1; height: 1px; background: rgba(75, 11, 47, 0.16); }
.ag-day__count {
  font-family: Poppins, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: #d10f67;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- Timetable spine ---------- */
.ag-slot { position: relative; padding-left: 118px; margin: 0 0 26px; }
.ag-slot::before {
  content: "";
  position: absolute;
  left: 98px;
  top: 8px;
  bottom: -26px;
  width: 2px;
  background: rgba(75, 11, 47, 0.13);
}
.ag-slot:last-child::before { bottom: auto; height: 22px; }
.ag-slot__time {
  position: absolute;
  left: 0;
  top: 0;
  width: 84px;
  font-family: Poppins, sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  line-height: 1.3;
  color: #4b0b2f;
  background: #fcce8e;
  border-radius: 5px;
  padding: 7px 8px;
  text-align: center;
}
.ag-slot__time span {
  display: block;
  font-weight: 400;
  font-size: 0.68rem;
  color: #7a5a2c;
  white-space: nowrap;
}
.ag-slot::after {
  content: "";
  position: absolute;
  left: 90px;
  top: 13px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fdf1e2;
  border: 2.5px solid #d20f66;
}
.ag-slot__cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(286px, 1fr));
  align-items: start;
  gap: 12px;
}

/* ---------- Session card ---------- */
.ag-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(75, 11, 47, 0.14);
  border-radius: 9px;
  padding: 16px 17px 14px;
  box-shadow: 0 1px 2px rgba(75, 11, 47, 0.04);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.ag-card:hover {
  border-color: rgba(210, 15, 102, 0.4);
  box-shadow: 0 8px 22px -12px rgba(75, 11, 47, 0.42);
}
.ag-card.is-saved { border-color: rgba(210, 15, 102, 0.55); box-shadow: inset 0 0 0 1px rgba(210, 15, 102, 0.28); }

/* Virtual-only sessions read as a different kind of room: cool tint, dotted edge, screen badge */
.ag-card--virtual {
  background: #eef5f7;
  border-color: #bcd5da;
  border-style: dashed;
  box-shadow: none;
}
.ag-card--virtual:hover {
  border-color: #0d3842;
  box-shadow: 0 8px 22px -14px rgba(13, 56, 66, 0.6);
}
.ag-card--virtual .ag-card__title { color: #0d2a31; }
.ag-card--virtual .ag-card__desc { color: #4a6268; }
/* Hybrid sessions: warm amber, solid edge — in the room and on the stream */
.ag-card--hybrid {
  background: #fbe7bd;
  border-color: #d9a24a;
  border-width: 1.5px;
  box-shadow: none;
}
.ag-card--hybrid:hover {
  border-color: #a45c0a;
  box-shadow: 0 8px 22px -14px rgba(120, 68, 8, 0.55);
}
.ag-card--hybrid .ag-card__title { color: #3f2606; }
.ag-card--hybrid .ag-card__desc { color: #6b5230; }
.ag-card--hybrid .ag-tag--fmt { background: rgba(120, 68, 8, 0.14); color: #5c3a08; }
.ag-card--hybrid .ag-tag--theme { background: rgba(120, 68, 8, 0.1); color: #7a4a10; }
.ag-card--hybrid .ag-card__names { color: #7a6340; }
.ag-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: Poppins, sans-serif;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.4;
  padding: 3px 8px 3px 7px;
  border-radius: 3px;
  background: #0d3842;
  color: #d7f2ee;
}
.ag-badge svg { flex: none; opacity: 0.9; }
.ag-badge-hybrid { background: #a45c0a; color: #fff6e6; }
.ag-badge-virtual { background: #0d3842; color: #d7f2ee; }
.ag-card__tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 9px; padding-right: 30px; }
.ag-tag {
  font-family: Poppins, sans-serif;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  white-space: normal;
  line-height: 1.4;
}
.ag-tag--fmt { background: rgba(75, 11, 47, 0.08); color: #4b0b2f; }
.ag-tag--theme { background: rgba(210, 15, 102, 0.1); color: #b00e55; }
.ag-tag--mode { background: rgba(13, 56, 66, 0.08); color: #0d3842; }
.ag-card__title {
  font-family: Poppins, sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.4;
  color: #311025;
  margin: 0 0 8px;
}
.ag-card__desc {
  font-family: Poppins, sans-serif;
  font-weight: 300;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #5a4753;
  margin: 0 0 11px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ag-card__people { display: flex; align-items: center; gap: 8px; margin: 0; }
.ag-avatars { display: flex; }
.ag-avatar {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #4b0b2f;
  color: #fcce8e;
  font-family: Poppins, sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  margin-left: -7px;
  flex: none;
}
.ag-avatars .ag-avatar:first-child { margin-left: 0; }
.ag-avatar--more { background: #f9c6e5; color: #4b0b2f; }
.ag-avatar--img { overflow: hidden; background: #efe6df; }
.ag-avatar--img img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.ag-card__names {
  font-family: Poppins, sans-serif;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #7d6b75;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ag-save {
  position: absolute;
  top: 11px;
  right: 10px;
  width: 26px;
  height: 26px;
  border: 0;
  background: none;
  cursor: pointer;
  color: #b3a0aa;
  line-height: 1;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background 0.15s ease;
}
.ag-save:hover { color: #d20f66; background: rgba(210, 15, 102, 0.08); }
.ag-save[aria-pressed="true"] { color: #d20f66; }

.ag-card details { margin: 10px 0 0; }
.ag-card summary {
  font-family: Poppins, sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  color: #d10f67;
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 0;
}
.ag-card summary::-webkit-details-marker { display: none; }
.ag-card summary::after { content: "＋"; font-size: 0.8rem; }
.ag-card details[open] summary::after { content: "－"; }
.ag-card summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.ag-detail__desc {
  font-family: Poppins, sans-serif;
  font-weight: 300;
  font-size: 0.88rem;
  line-height: 1.65;
  color: #4a3a44;
  margin: 10px 0 14px;
  white-space: pre-line;
}
.ag-spk { margin: 0 0 12px; display: flex; align-items: flex-start; gap: 10px; }
.ag-spk__photo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: center 20%; flex: none; background: #efe6df; }
.ag-spk__photo--init {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #4b0b2f;
  color: #fcce8e;
  font-family: Poppins, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.ag-spk__body { min-width: 0; }
.ag-spk__more {
  font-family: Poppins, sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  color: #d10f67;
  background: none;
  border: 0;
  padding: 2px 0 0;
  margin: 0;
  cursor: pointer;
}
.ag-spk__more:hover { text-decoration: underline; text-underline-offset: 3px; }
.ag-spk__name {
  font-family: Poppins, sans-serif;
  font-size: 0.83rem;
  font-weight: 600;
  color: #311025;
  margin: 0;
}
.ag-spk__org {
  font-family: Poppins, sans-serif;
  font-size: 0.79rem;
  color: #8c6a78;
  margin: 0 0 3px;
}
.ag-spk__bio {
  font-family: Poppins, sans-serif;
  font-weight: 300;
  font-size: 0.81rem;
  line-height: 1.6;
  color: #6b5a64;
  margin: 0;
  white-space: pre-line;
}
.ag-spk__bio.is-clamped:not(.is-open) {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
}

.ag-empty {
  font-family: Poppins, sans-serif;
  font-size: 0.95rem;
  color: #8c6a78;
  text-align: center;
  padding: 52px 20px;
  border: 1.5px dashed rgba(75, 11, 47, 0.22);
  border-radius: 9px;
}
.ag-empty strong { display: block; color: #4b0b2f; font-size: 1.05rem; margin-bottom: 6px; }
.ag-empty[hidden] { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .ag-layout { grid-template-columns: 1fr; gap: 0; }
  .ag-rail {
    position: static;
    display: none;
    padding: 18px 0 6px;
    border-bottom: 1px solid rgba(75, 11, 47, 0.14);
    margin-bottom: 24px;
  }
  .ag-rail.is-open { display: block; }
  .ag-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    position: sticky;
    top: 0;
    z-index: 20;
    background: #fdf1e2;
    padding: 12px 0;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(75, 11, 47, 0.14);
  }
  .ag-toolbar__btn {
    font-family: Poppins, sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #4b0b2f;
    background: #fff;
    border: 1.5px solid rgba(75, 11, 47, 0.2);
    border-radius: 999px;
    padding: 9px 15px;
    cursor: pointer;
    white-space: nowrap;
  }
  .ag-toolbar__btn[aria-expanded="true"],
  .ag-toolbar__btn[aria-pressed="true"] { background: #4b0b2f; color: #fff; border-color: #4b0b2f; }
  .ag-toolbar__count {
    font-family: Poppins, sans-serif;
    font-size: 0.76rem;
    font-weight: 700;
    color: #8c6a78;
    margin-left: auto;
    white-space: nowrap;
  }
}

@media (max-width: 720px) {
  .ag-hero { padding: 132px 0 44px; }
  .ag-hero__eyebrow { font-size: 0.6rem; letter-spacing: 0.1em; gap: 8px; }
  .ag-hero__eyebrow { line-height: 1.5; }
  .ag-hero__eyebrow::before { display: none; }
  .ag-hero__stats { gap: 22px; }
  .ag-hero__note { font-size: 14px; }
  .ag-band { padding: 34px 0 60px; }
  .ag-slot { padding-left: 0; margin-bottom: 30px; scroll-margin-top: 76px; }
  .ag-slot::before,
  .ag-slot::after { display: none; }
  .ag-slot__time {
    position: static;
    width: auto;
    display: inline-block;
    margin: 0 0 10px;
    padding: 6px 12px;
  }
  .ag-slot__time span { display: inline; margin-left: 0; }
  .ag-slot__cards { grid-template-columns: 1fr; }
  .ag-results__head { margin-bottom: 20px; flex-wrap: wrap; gap: 4px; }
  .ag-results__count { display: none; }
  .ag-results__key { display: none; }
  .ag-day__name { font-size: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ag-card,
  .ag-chip,
  .ag-search input,
  .ag-save { transition: none; }
}
