/*
 * Side event guide — load after event-2026.css.
 * Scoped modifier keeps other lists and cards unchanged.
 */
body[data-presentation="refined"] .side-steps.side-steps--guide {
  --guide-orange: #f86c0d;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 32px;
  padding: 0;
  list-style: none;
}

body[data-presentation="refined"] .side-steps--guide > li {
  min-width: 0;
  padding: 18px;
  border: 2px solid var(--guide-orange);
  background: transparent;
  color: #fff;
}

/* The number belongs inside the ribbon, not above the card. */
body[data-presentation="refined"][data-typography="readable"] .side-steps--guide > li::before {
  content: none;
  display: none;
}

body[data-presentation="refined"] .side-steps--guide > li > strong {
    display: flex;
    align-items: center;
    gap: 25px;
    min-height: 70px;
    margin: 0 0 24px;
    padding: 8px 20px 8px 10px;
    background: var(--guide-orange);
    color: #fff;
    clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 18px 100%, 0 50%);
    font-size: 25px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0;
}

body[data-presentation="refined"] .side-steps--guide .side-step-number {
    display: grid;
    flex: 0 0 63px;
    align-self: center;
    place-items: center;
    height: 55px;
    background: #19110b;
    color: #fff;
    clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
    font-size: 35px;
    font-weight: 700;
    line-height: 1;
}

body[data-presentation="refined"] .side-steps--guide > li > strong > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

body[data-presentation="refined"] .side-steps--guide > li > p {
  margin: 16px 0 0;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

body[data-presentation="refined"] .side-steps--guide > li > .side-step-note {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 2px solid var(--guide-orange);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

@media (max-width: 1240px) {
  body[data-presentation="refined"] .side-steps.side-steps--guide {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  body[data-presentation="refined"] .side-steps--guide > li {
    padding: 18px;
  }
  body[data-presentation="refined"] .side-steps--guide > li > strong {
    margin-bottom: 18px;
  }
}

/* Phone-sized headings; keep the existing number styling unchanged. */
@media (max-width: 760px) {
  body[data-presentation="refined"] .side-steps--guide > li > strong {
    font-size: 19px;
  }
  body[data-presentation="refined"] .side-steps--guide > li > strong > span:last-child {
    white-space: nowrap;
    overflow-wrap: normal;
  }
}

/* Compact, single-line ribbons on phones; desktop headings remain 24px. */
@media (max-width: 600px) {
  body[data-presentation="refined"] .side-steps.side-steps--guide {
    margin-inline: -12px;
  }
  body[data-presentation="refined"] .side-steps--guide > li {
    padding: 14px 8px;
  }
  body[data-presentation="refined"] .side-steps--guide > li > strong {
    min-height: 56px;
    gap: 4px;
    padding: 4px 10px 4px 5px;
    font-size: 19px;
    letter-spacing: -0.025em;
  }
  body[data-presentation="refined"] .side-steps--guide > li > strong > span:last-child {
    white-space: nowrap;
    overflow-wrap: normal;
  }
}

/* Day selection shares the championship accent colors. */
body[data-presentation="refined"] .side-day-switch button[data-side-day="1"][aria-pressed="true"] {
  background: var(--teal, #b6dc87);
  border-color: var(--teal, #b6dc87);
  color: #07110b;
}
body[data-presentation="refined"] .side-day-switch button[data-side-day="2"][aria-pressed="true"] {
  background: var(--blue, #6bb8ef);
  border-color: var(--blue, #6bb8ef);
  color: #07110b;
}
body[data-presentation="refined"] .side-day-status[data-selected-day="1"] {
  color: var(--teal, #b6dc87);
}
body[data-presentation="refined"] .side-day-status[data-selected-day="2"] {
  color: var(--blue, #6bb8ef);
}

/* Registration stays visible inside the collapsed event heading. */
body[data-presentation="refined"] .side-event-card > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 24px;
}
body[data-presentation="refined"] .side-event-card > summary > span {
  width: auto;
  min-width: 0;
}
body[data-presentation="refined"] .side-event-card > summary > .side-registration {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  gap: 8px 20px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}
.side-registration > strong {
  font-size: 16px;
  font-weight: 600;
}
.side-registration__times {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  min-width: 0;
}
.side-registration__times > span {
  font-size: 16px;
}
.side-registration [hidden] {
  display: none;
}
@media (max-width: 760px) {
  body[data-presentation="refined"] .side-event-card > summary {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  body[data-presentation="refined"] .side-event-card > summary > .side-registration {
    gap: 4px 16px;
  }
}
