/* ROTK Circuit (/circuit) page extras. Contract classes live in /style.css; only
   page-specific classes are defined here. Tokens fall back to rotk.app's values. */

.circuit-meta { margin: .5rem 0 0; }

/* Action row: subscribe, type chips, past toggle. Sticky on wide screens only. */
.circuit-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1rem;
  margin: 1.25rem 0 1.5rem;
  padding: .75rem 0;
  border-top: 1px solid var(--line, rgba(238, 236, 228, .16));
  border-bottom: 1px solid var(--line, rgba(238, 236, 228, .16));
  background: var(--ink, #090909);
}
@media (min-width: 720px) {
  .circuit-actions {
    position: sticky;
    top: var(--header-h, 3.5rem);
    z-index: 5;
    background: rgba(9, 9, 9, .92);
    backdrop-filter: blur(6px);
  }
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  flex: 1 1 auto;
  min-width: 0;
}
.chips .chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.chips .event-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  flex: none;
}
.chips .event-icon svg { width: 16px; height: 16px; }
.toggle-past { margin-left: auto; }
@media (max-width: 719px) {
  .toggle-past { margin-left: 0; }
}

/* Section counts sit inside the headline, after its text. */
.section-count {
  display: inline-block;
  vertical-align: .35em;
  font-family: var(--font-display, "Barlow Condensed", "Arial Narrow", sans-serif);
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted, #96948d);
  margin-left: .75rem;
  white-space: nowrap;
}

/* One column of cards; hairline rhythm. */
.event-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .75rem;
}

/* Small caps labels inside a card (type name, "Reward", "Eligibility"). */
.event-type,
.event-label {
  font-family: var(--font-display, "Barlow Condensed", "Arial Narrow", sans-serif);
  font-weight: 600;
  font-size: 12.5px;
  line-height: 1;
  letter-spacing: 1.9px;
  text-transform: uppercase;
  color: var(--muted, #96948d);
}
.event-label { display: block; margin: 0 0 .4rem; }
.event-meta .event-type { margin-right: .5rem; }

.event-reward {
  margin: .6rem 0 0;
  color: var(--paper-dim, #c8c4ba);
}
.event-reward .event-label {
  display: inline;
  margin: 0 .5rem 0 0;
}

.elig-rule { margin: 0; }
.elig-window { margin: .35rem 0 0; }
.event-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .6rem;
}
.tag.unconfirmed { border-style: dashed; }

/* "Am I likely eligible?" */
.elig-check {
  margin-top: .85rem;
  padding-top: .85rem;
  border-top: 1px solid var(--line, rgba(238, 236, 228, .16));
}
.elig-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.elig-row .select { flex: 0 1 11rem; width: auto; min-width: 9rem; }   /* style.css .select is width:100%; here it shares the row */
.elig-row .input { flex: 1 1 12rem; min-width: 0; }
.elig-row .btn { flex: none; }
.elig-check .small { margin: .4rem 0 0; }

.elig-result { margin-top: .6rem; }
.elig-result:empty { display: none; }
.elig-result:not(:empty) {
  padding: .6rem .8rem;
  border-left: 2px solid var(--line-strong, rgba(238, 236, 228, .31));
  background: var(--surface-2, #171716);
}
.elig-result.ok { border-left-color: var(--live, #23a559); }
.elig-result.no,
.elig-result.error { border-left-color: var(--signal, #ee0101); }
.elig-result.wait,
.elig-result.unknown,
.elig-result.nolast,
.elig-result.notfound { border-left-color: var(--muted, #96948d); }
.elig-verdict {
  margin: 0;
  font-weight: 600;
  color: var(--paper, #eeece4);
}
.elig-result .small { margin: .3rem 0 0; }

.event-links { margin: .8rem 0 0; }
.event-links a { color: var(--paper-dim, #c8c4ba); }
.event-links a:hover { color: var(--paper, #eeece4); }
.event-notes { margin: .5rem 0 0; }

/* Past cards sit back; a deep-linked card gets the one red line on the page. */
.event-card.is-ended { opacity: .72; }
.event-card.is-ended:hover,
.event-card.is-ended:focus-within { opacity: 1; }
.event-card:target {
  outline: 1px solid var(--signal, #ee0101);
  outline-offset: 2px;
  scroll-margin-top: 7rem;
}
.countdown.muted { color: var(--muted, #96948d); }
