/* ===========================================================================
   R1 (15.10.2026): the casino offers list — template-parts/rover-deals.php.
   A numbered ledger in the site's own grammar: square corners, a 2px charcoal
   frame, mono labels, the cherry action colour. Loaded only where the list
   renders (inc/rover-deals.php).
   =========================================================================== */

.rover-deals {
  margin: 0 0 2.5rem;
  background: var(--card);
  border: 2px solid var(--charcoal);
  color: var(--charcoal);
  font-size: 1rem;
  line-height: 1.4;
}

/* Slot reviews: the list sits between the opening verdict and the next H2. */
body.single-slot .slot-content > .rover-deals {
  margin: 2.5rem 0 0;
}

.rover-deals__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding: 0.875rem 1rem;
  background: var(--charcoal);
  color: var(--cream);
}

.rover-deals__title {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
}

.rover-deals__sort {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: color-mix(in oklab, var(--cream) 75%, transparent);
}

.rover-deals .rover-deals__list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: none;
}

.rover-deals .rover-deals__row {
  display: grid;
  grid-template-columns: 2rem 9.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem 1rem;
  margin: 0;
  padding: 0.875rem 1rem;
  border-top: 1px solid var(--border);
}

.rover-deals .rover-deals__row:first-child {
  border-top: 0;
}

.rover-deals__no {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--cherry);
}

.rover-deals__plate {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 9.5rem;
  height: 3.5rem;
  padding: 0.5rem 0.75rem;
}

.rover-deals__plate img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 2.4rem;
}

.rover-deals__offer {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.rover-deals__name {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-foreground);
}

.rover-deals__headline {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--charcoal);
  overflow-wrap: anywhere;
}

.rover-deals__terms {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted-foreground);
}

.rover-deals .rover-deals__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.25rem;
  background: var(--cherry);
  border: 2px solid var(--charcoal);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 150ms ease;
}

.rover-deals .rover-deals__cta:hover,
.rover-deals .rover-deals__cta:focus-visible {
  background: var(--cherry-dark);
  color: #fff;
}

.rover-deals .rover-deals__cta:focus-visible,
.rover-deals__more:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* Folded state: set by assets/js/rover-deals.js only, so the full list shows
   without JavaScript. */
.rover-deals.is-collapsed .rover-deals__row:nth-child(n+6) {
  display: none;
}

.rover-deals__more {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.8rem 1rem;
  background: var(--cream-100);
  border: 0;
  border-top: 1px solid var(--border);
  color: var(--charcoal);
  font: inherit;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
}

/* The toggle ships with the hidden attribute; the JS reveals it. Without this, display: block above wins. */
.rover-deals__more[hidden] {
  display: none;
}

.rover-deals__more:hover {
  background: var(--cream);
}

.rover-deals__risk {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-top: 2px solid var(--charcoal);
  background: var(--cream);
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted-foreground);
}

.rover-deals__age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border: 2px solid var(--charcoal);
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--charcoal);
}

.rover-deals .rover-deals__risk a {
  color: var(--cherry);
  font-weight: 600;
  text-decoration: underline;
  white-space: nowrap;
}

/* Phones: logo and number on one line, the offer under them, a full-width
   action; the folded list shows 3 rows. */
@media (max-width: 639px) {
  .rover-deals .rover-deals__row {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.6rem 0.75rem;
  }

  .rover-deals__plate {
    width: 8.5rem;
    height: 3.1rem;
  }

  .rover-deals__offer,
  .rover-deals .rover-deals__cta {
    grid-column: 1 / -1;
  }

  .rover-deals .rover-deals__cta {
    width: 100%;
  }

  .rover-deals.is-collapsed .rover-deals__row:nth-child(n+4) {
    display: none;
  }
}
