/*
 * OFFPEG - "recently issued" banner and list.
 *
 * NO NEW PALETTE. Every colour below is a variable declared on :root in
 * offpeg.css, which is where the light and dark themes are both defined - so
 * these rules follow the theme automatically and there is nothing here to keep
 * in sync. A colour born in this file would be a colour the dark theme never
 * heard of.
 *
 * It is a separate file rather than an appendix to offpeg.css for one practical
 * reason: this feature ships on its own and can be removed by deleting two
 * lines from a page, without a diff against the 1,200-line stylesheet that
 * everything else depends on.
 *
 * Semantic state is never carried by colour alone - each verdict prints its own
 * word next to the tint.
 */

/* ---------------------------------------------------------------------- */
/* The front-page banner                                                    */
/* ---------------------------------------------------------------------- */

.newbanner {
  margin: 1.4rem auto 0;
  border: 1px solid var(--brass-line);
  border-left-width: 4px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 0.95rem 1.1rem 1rem;
}

.newbanner__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.7rem;
  margin: 0 0 0.15rem;
}

.newbanner__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0;
}

.newbanner__title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  line-height: 1.25;
  color: var(--ink);
  margin: 0;
}

.newbanner__why {
  margin: 0.45rem 0 0.8rem;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--ink-dim);
  max-width: 46rem;
}

/* ---------------------------------------------------------------------- */
/* The list, shared by the banner and the /tokens section                   */
/* ---------------------------------------------------------------------- */

.rtlist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.rt {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--inset);
  padding: 0.6rem 0.75rem;
}

.rt__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
}

.rt__sym {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  word-break: break-word;
  /* A symbol() answer can be pathological. It is clamped in script as well;
     this is the belt to that pair of braces. */
  overflow-wrap: anywhere;
}

.rt__name {
  font-size: 0.83rem;
  color: var(--ink-dim);
  overflow-wrap: anywhere;
}

.rt__verdict {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.16rem 0.45rem;
  border-radius: var(--radius);
  border: 1px solid currentColor;
  white-space: nowrap;
}

.rt__verdict--authentic { color: var(--pass); }
.rt__verdict--impostor { color: var(--fail); }
.rt__verdict--unverified { color: var(--unknown); }

.rt__when {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-faint);
  white-space: nowrap;
}

.rt__addr {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-top: 0.45rem;
}

.rt__addr code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink);
  background: var(--overlay);
  border-radius: var(--radius);
  padding: 0.12rem 0.35rem;
  overflow-wrap: anywhere;
}

.rt__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1rem;
  margin: 0.45rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--ink-faint);
}

.rt__facts b {
  font-weight: 600;
  color: var(--ink-dim);
}

.rt__proof {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--ink-dim);
}

.rt__link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--brass);
  border: 1px solid var(--brass-soft);
  border-radius: var(--radius);
  padding: 0.14rem 0.42rem;
  text-decoration: none;
  background: var(--brass-ghost);
  white-space: nowrap;
}

.rt__link:hover {
  border-color: var(--brass-line);
}

/* ---------------------------------------------------------------------- */
/* The /tokens section                                                      */
/* ---------------------------------------------------------------------- */

.recent {
  margin: 1.6rem auto 0;
}

.recent__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.8rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.45rem;
  margin-bottom: 0.85rem;
}

.recent__head h2 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  color: var(--ink);
  margin: 0;
}

.recent__count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-faint);
}

.recent__note {
  margin: 0.85rem 0 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--ink-faint);
  max-width: 52rem;
}

.recent__empty {
  border: 1px dashed var(--rule-strong);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--ink-dim);
  background: var(--card);
}

/* ---------------------------------------------------------------------- */
/* Events a human needs to look at                                          */
/* ---------------------------------------------------------------------- */

.review {
  margin-top: 1.1rem;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--unknown);
  border-radius: var(--radius);
  background: var(--card);
  padding: 0.75rem 0.9rem;
}

.review__head {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--unknown);
  margin: 0 0 0.4rem;
}

.review__item {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--ink-dim);
}

.review__item:last-child {
  margin-bottom: 0;
}

.review__when {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-faint);
  display: block;
}

/* ---------------------------------------------------------------------- */
/* Narrow screens - the layout must survive 360px                           */
/* ---------------------------------------------------------------------- */

@media (max-width: 30rem) {
  .rt__when {
    margin-left: 0;
    width: 100%;
  }
  .newbanner {
    padding: 0.8rem 0.85rem 0.85rem;
  }
  .rt__addr code {
    font-size: 0.72rem;
  }
}
