/* HFRC Program Upcoming Activities v1.1.0
   Visual alignment pass with HFRC Today Module styles.
*/

.hfrc-progup {
  --tm-ink: #0b0f1a;
  --tm-muted: rgba(11, 15, 26, .72);
  --tm-hair: rgba(11, 15, 26, .14);
  --tm-hair2: rgba(11, 15, 26, .10);
  --tm-surface: transparent;
  --tm-focus: 0 0 0 0.1875rem rgba(102, 46, 145, .45);
  --tm-time-col: 7.75rem;

  background: var(--tm-surface);
  color: var(--tm-ink);
  border-radius: 0;
  font-family: inherit;
}

@media (max-width: 26rem) {
  .hfrc-progup {
    --tm-time-col: 7.1rem;
  }
}

.hfrc-progup__nextup {
  margin: 0 0 1.15rem 0;
  padding: 1rem 0 1.05rem 0;
  border-bottom: 0.0625rem solid var(--tm-hair);
}

.hfrc-progup__nextupKicker,
.hfrc-progup__label {
  margin: 0 0 .45rem 0;
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(11, 15, 26, .52);
  font-weight: 800;
}

.hfrc-progup__nextupTitle {
  margin: 0;
  font-size: clamp(1.5rem, 4.2vw, 2.15rem);
  letter-spacing: -0.02em;
  line-height: 1.06;
  font-weight: 800;
  color: rgba(11, 15, 26, .95);
}

.hfrc-progup__nextupMeta {
  margin: .45rem 0 0 0;
  color: rgba(11, 15, 26, .84);
  font-size: .98rem;
  line-height: 1.35;
  font-weight: 600;
}

.hfrc-progup__nextupActions,
.hfrc-progup__emptyActions {
  display: flex;
  gap: .85rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: .75rem;
}

.hfrc-progup__nextupSide {
  margin-top: .8rem;
}

.hfrc-progup__nextupSideSummary {
  cursor: pointer;
  list-style: none;
  user-select: none;
  display: flex;
  align-items: center;
  gap: .75rem;
  width: fit-content;
  padding: .52rem .7rem;
  border-left: .1875rem solid #662e91;
  background: rgba(102, 46, 145, .10);
  border-radius: .14rem;
  color: #111;
  font-size: .85rem;
  font-weight: 400;
  line-height: 1.15;
}

.hfrc-progup__nextupSideSummary::-webkit-details-marker {
  display: none;
}

.hfrc-progup__nextupSideCaret {
  margin-left: auto;
  width: 9px;
  height: 9px;
  border-right: 2px solid rgba(11, 15, 26, .6);
  border-bottom: 2px solid rgba(11, 15, 26, .6);
  transform: rotate(-45deg);
  transition: transform 120ms ease;
}

.hfrc-progup__nextupSide[open] .hfrc-progup__nextupSideCaret {
  transform: rotate(45deg);
}

.hfrc-progup__nextupSideSummary:focus-visible,
.hfrc-progup__select:focus-visible,
.hfrc-progup__reset:focus-visible,
.hfrc-progup__link:focus-visible {
  outline: none;
  box-shadow: var(--tm-focus);
  border-radius: .35rem;
}

.hfrc-progup__nextupSidePanel {
  margin-top: .6rem;
  border-left: .25rem solid rgba(102, 46, 145, .35);
  padding: .5rem .75rem;
}

.hfrc-progup__locTitle {
  margin: 0 0 .55rem 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.25;
}

.hfrc-progup__locRows {
  display: grid;
  gap: .45rem;
}

.hfrc-progup__nextupSidePanel .hfrc-progup__locRow {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: .65rem;
}

.hfrc-progup__nextupSidePanel .hfrc-progup__locKey {
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(11, 15, 26, .58);
  font-weight: 800;
}

.hfrc-progup__nextupSidePanel .hfrc-progup__locVal {
  font-size: .94rem;
  line-height: 1.35;
  color: rgba(11, 15, 26, .86);
  white-space: pre-line;
}

.hfrc-progup__controls {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: .85rem;
  align-items: end;
  margin: 0 0 .95rem 0;
  padding: 0 0 1rem 0;
  border-bottom: 0.0625rem solid var(--tm-hair);
}

.hfrc-progup__field {
  min-width: 0;
}

.hfrc-progup__select {
  width: 100%;
  min-height: 2.5rem;
  padding: .58rem .66rem;
  border: 1px solid rgba(11, 15, 26, .22);
  border-radius: .45rem;
  background: transparent;
  color: inherit;
  font-size: .95rem;
  font-weight: 600;
}

.hfrc-progup__reset {
  min-height: 2.5rem;
  padding: 0 .8rem;
  border-radius: .45rem;
  border: 1px solid rgba(11, 15, 26, .22);
  background: transparent;
  color: inherit;
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
}

.hfrc-progup__results {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
  margin: 0 0 .95rem 0;
}

.hfrc-progup__count {
  margin: 0;
  color: rgba(11, 15, 26, .72);
  font-size: .95rem;
  line-height: 1.35;
  font-weight: 400;
}

.hfrc-progup__sr {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.hfrc-progup__month {
  margin: 0;
  padding: 0;
  border: 0;
}

.hfrc-progup__day {
  margin: 0;
  padding: 1rem 0 1.05rem 0;
  border-bottom: 0.0625rem solid var(--tm-hair2);
}

.hfrc-progup__dayHead {
  margin: 0 0 .75rem 0;
}

.hfrc-progup__dayTitle {
  margin: 0;
  font-size: clamp(1.85rem, 5vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: rgba(11, 15, 26, .92);
}

.hfrc-progup__dayLoc {
  margin: .35rem 0 0 0;
  font-size: .95rem;
  font-weight: 600;
  color: rgba(11, 15, 26, .72);
}

.hfrc-progup__dayLocLabel {
  font-weight: 800;
  color: rgba(11, 15, 26, .62);
}

.hfrc-progup__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .85rem;
}

.hfrc-progup__row {
  display: grid;
  grid-template-columns: var(--tm-time-col) 1fr;
  gap: 1rem;
  align-items: start;
  padding: .12rem 0 .8rem 0;
  border-bottom: 0.0625rem solid var(--tm-hair2);
}

.hfrc-progup__row:last-child {
  border-bottom: 0;
}

.hfrc-progup__time {
  margin: 0;
  font-weight: 600;
  font-size: .975rem;
  color: rgba(11, 15, 26, .90);
  letter-spacing: -0.01em;
  line-height: 1.25;
  padding-top: .125rem;
}

.hfrc-progup__event {
  min-width: 0;
  display: grid;
  gap: .35rem;
}

.hfrc-progup__name {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: rgba(11, 15, 26, .92);
}

.hfrc-progup__eventLoc {
  margin: 0;
  color: rgba(11, 15, 26, .72);
  font-size: .9rem;
  line-height: 1.35;
  font-weight: 400;
}

.hfrc-progup__link {
  color: #0b0f1a;
  text-decoration: underline;
  text-underline-offset: .18rem;
  font-weight: 600;
}

.hfrc-progup__link:hover {
  filter: brightness(.9);
}

.hfrc-progup__empty,
.hfrc-progup__error {
  margin-top: .75rem;
  color: rgba(11, 15, 26, .72);
  font-size: .95rem;
  line-height: 1.35;
  font-weight: 400;
}

.hfrc-progup__emptyTitle {
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

@media (max-width: 980px) {
  .hfrc-progup__controls {
    grid-template-columns: 1fr 1fr;
  }

  .hfrc-progup__reset {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 620px) {
  .hfrc-progup__controls {
    grid-template-columns: 1fr;
  }

  .hfrc-progup__nextupSidePanel .hfrc-progup__locRow {
    grid-template-columns: 1fr;
    gap: .25rem;
  }

  .hfrc-progup__row {
    grid-template-columns: 1fr;
    gap: .35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hfrc-progup * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
