/**
 * RME Addational Functions 1.1.1 — opt-in modern layouts.
 * Namespaced selectors keep 2026 and historical legacy output unchanged.
 */
.rme-af-agenda,
.rme-af-speakers,
.rme-af-sponsor,
.rme-af-modal {
  --rme-af-green: #075638;
  --rme-af-deep: #06442f;
  --rme-af-red: #d2232a;
  --rme-af-ink: #203047;
  --rme-af-muted: #5b6878;
  --rme-af-line: #dfe8e5;
  font-family: Roboto, Arial, sans-serif;
  color: var(--rme-af-ink);
}
.rme-af-agenda *, .rme-af-speakers *, .rme-af-sponsor *, .rme-af-modal *,
.rme-af-agenda *::before, .rme-af-agenda *::after,
.rme-af-speakers *::before, .rme-af-speakers *::after {
  box-sizing: border-box;
}
/* Agenda: accessible native disclosure; old .agenda-row-warp isn't touched. */
.rme-af-agenda { display: grid; gap: 13px; min-width: 0; }
.rme-af-agenda__item {
  display: block;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--rme-af-line);
  border-left: 4px solid var(--rme-af-red);
  border-radius: 10px;
  box-shadow: 0 3px 15px rgba(20,50,40,.035);
}
.rme-af-agenda__item[open] { border-left-color: var(--rme-af-green); }
.rme-af-agenda__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
  padding: 17px 20px;
  background: #fff;
  list-style: none;
}
.rme-af-agenda details > summary { cursor: pointer; }
.rme-af-agenda__summary::-webkit-details-marker { display: none; }
.rme-af-agenda__summary::marker { content: ''; }
.rme-af-agenda details > summary:hover { background: #f4f8f6; }
.rme-af-agenda details > summary:focus-visible { outline: 3px solid var(--rme-af-green); outline-offset: -4px; }
.rme-af-agenda__header { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.rme-af-agenda__time {
  display: block;
  color: var(--rme-af-green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .018em;
  line-height: 1.35;
}
.rme-af-agenda__title {
  display: block;
  color: var(--rme-af-ink);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.45;
  font-weight: 750;
  overflow-wrap: anywhere;
}
.rme-af-agenda__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  font: 500 23px/1 Arial, sans-serif;
  color: var(--rme-af-red);
  background: #fff5f5;
  border-radius: 50%;
}
.rme-af-agenda details[open] .rme-af-agenda__toggle { background: #e9f4ee; color: var(--rme-af-green); font-size: 0; }
.rme-af-agenda details[open] .rme-af-agenda__toggle::after { content: '\2212'; font-size: 24px; }
.rme-af-agenda__body {
  border-top: 1px solid #e9eeed;
  padding: 19px 23px 22px;
  color: #384858;
  font-size: 15px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.rme-af-agenda__body p { margin: 0 0 12px; line-height: inherit; }
.rme-af-agenda__body > :last-child,
.rme-af-agenda__body > :last-child > :last-child { margin-bottom: 0; }
.rme-af-agenda__body ul, .rme-af-agenda__body ol { margin: 8px 0 15px; padding-left: 24px; }
.rme-af-agenda__body li { margin-bottom: 4px; }
.rme-af-agenda__people { margin-top: 16px; padding-top: 14px; border-top: 1px solid #edf0ee; }
.rme-af-agenda__people > strong { display: block; color: var(--rme-af-red); margin-bottom: 5px; font-size: 14px; }
.rme-af-agenda__item--static .rme-af-agenda__summary { background: #f7f9f8; }
.rme-af-agenda__item--static .rme-af-agenda__title { font-weight: 650; }
/* Speakers: independent cards. All speakers remain visible together. */
.rme-af-speakers--grid {
  display: grid;
  grid-template-columns: repeat(var(--rme-af-speaker-columns,5), minmax(0,1fr));
  align-items: start;
  gap: 24px 16px;
  width: 100%;
  min-width: 0;
}
.rme-af-speakers--single { display: block; width: min(100%, 250px); }
.rme-af-speaker { min-width: 0; text-align: center; }
.rme-af-speaker__button {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 12px 10px 14px;
  margin: 0;
  color: var(--rme-af-ink);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  font: inherit;
  transition: background-color .2s ease, border-color .2s ease;
}
.rme-af-speaker__button:not(.rme-af-speaker__button--plain):hover { background: #f5f9f7; border-color: #dae8e1; }
.rme-af-speaker__button:focus-visible { outline: 3px solid var(--rme-af-green); outline-offset: 2px; }
.rme-af-speaker__button--plain { cursor: default; }
.rme-af-speaker__photo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(92px, 10vw, 140px);
  aspect-ratio: 1;
  max-width: 100%;
  overflow: hidden;
  border: 3px solid #edf2ef;
  border-radius: 50%;
  background: #eaf0ee;
  margin-bottom: 11px;
}
.rme-af-speaker__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rme-af-speaker__initial { font-size: 42px; line-height: 1; font-weight: 800; color: var(--rme-af-green); }
.rme-af-speaker__name { font-size: 15px; line-height: 1.38; font-weight: 800; color: var(--rme-af-deep); overflow-wrap: anywhere; }
.rme-af-speaker__designation { display: block; margin-top: 5px; font-size: 12.5px; line-height: 1.45; color: var(--rme-af-muted); overflow-wrap: anywhere; }
.rme-af-speaker__designation p { margin: 0; line-height: inherit; }
.rme-af-speaker__view { display: block; margin-top: 9px; color: var(--rme-af-red); font-size: 12px; line-height: 1.3; font-weight: 700; }
/* Sponsors: the old sponsor-logo modal CSS is not modified. */
.rme-af-sponsor { display: block; width: 100%; min-width: 0; }
.rme-af-sponsor__action {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 135px;
  width: 100%;
  padding: 17px;
  border: 1px solid #e4eae7;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(26,61,44,.025);
  text-decoration: none !important;
  color: var(--rme-af-deep);
  font: inherit;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.rme-af-sponsor__action:is(a,button):hover { border-color: #93c1a9; box-shadow: 0 8px 25px rgba(26,61,44,.09); }
.rme-af-sponsor__action:is(a,button):focus-visible { outline: 3px solid var(--rme-af-green); outline-offset: 2px; }
.rme-af-sponsor__action--static { cursor: default; }
.rme-af-sponsor__logo { display: block; width: auto; max-width: min(100%,var(--rme-af-logo-width,220px)); max-height: 100px; height: auto; object-fit: contain; }
.rme-af-sponsor__name { color: var(--rme-af-deep); font-size: 15px; font-weight: 700; }
/* Profile popups use the theme's existing Bootstrap modal JavaScript. */
.rme-af-modal .modal-content { border-radius: 12px; overflow: hidden; }
.rme-af-modal .modal-header { padding: 20px 24px; border-bottom: 1px solid #e5ebe7; }
.rme-af-modal .rme-af-modal__title { color: var(--rme-af-deep); font-size: 24px; margin: 0 25px 6px 0; font-weight: 800; line-height: 1.3; }
.rme-af-modal .rme-af-modal__subtitle { color: var(--rme-af-muted); font-size: 14px; line-height: 1.5; }
.rme-af-modal .rme-af-modal__subtitle p { margin: 0; }
.rme-af-modal .rme-af-modal__body { padding: 22px 24px; font-size: 15px; line-height: 1.7; }
.rme-af-modal .rme-af-modal__body p { margin-bottom: 13px; }
.rme-af-modal .rme-af-modal__sponsor-logo { display:block; max-width: 260px; max-height: 140px; width: auto; height: auto; object-fit: contain; margin: 0 auto 20px; }
.rme-af-modal .modal-footer { padding: 14px 24px; }
@media (max-width: 1050px) {
  .rme-af-speakers--grid { grid-template-columns: repeat(var(--rme-af-cols-md,4),minmax(0,1fr)); }
}
@media (max-width: 780px) {
  .rme-af-speakers--grid { grid-template-columns: repeat(var(--rme-af-cols-sm,3),minmax(0,1fr)); gap: 18px 12px; }
  .rme-af-speaker__photo { width: min(100%,120px); }
}
@media (max-width: 550px) {
  .rme-af-speakers--grid { grid-template-columns: repeat(var(--rme-af-cols-xs,2),minmax(0,1fr)); }
  .rme-af-agenda__summary { padding: 15px; gap: 10px; }
  .rme-af-agenda__body { padding: 15px 17px 19px; font-size: 14px; }
  .rme-af-agenda__title { font-size: 16px; }
  .rme-af-sponsor__action { min-height: 115px; }
}
@media (prefers-reduced-motion: reduce) {
  .rme-af-speaker__button, .rme-af-sponsor__action { transition: none; }
}
