/* ─────────────────────────────────────────────────────────────
   v5 preview — restyle the Dynamic Tables plugin output
   (.operator-rows / .operator-row / .operator-col) into a polished
   v5 ranking card. Loaded only by the preview template.

   Plugin markup per row (5 .operator-col children):
     1 logo  ·  2 tagline  ·  3 rating  ·  4 actions  ·  5 terms
   ───────────────────────────────────────────────────────────── */

.operator-rows {
  display: grid;
  gap: 16px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: oprow;
}

.operator-row {
  counter-increment: oprow;
  display: grid;
  grid-template-columns: 48px 132px minmax(0, 1fr) auto 168px;
  grid-template-areas:
    "rank logo tagline rating actions"
    "rank terms terms   terms  terms";
  align-items: center;
  column-gap: 22px;
  row-gap: 14px;
  padding: 20px 26px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.operator-row:hover {
  transform: translateY(-2px);
  border-color: var(--rule-strong);
  box-shadow: var(--shadow-md);
}

/* Rank badge */
.operator-row::before {
  content: counter(oprow);
  grid-area: rank;
  align-self: center;
  justify-self: center;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tint);
  color: var(--navy);
  border-radius: 50%;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
}

/* Featured (#1) row */
.operator-row:first-child {
  border-color: var(--navy);
  border-width: 2px;
  background: linear-gradient(180deg, #f7f9fc 0%, var(--bg) 60%);
  box-shadow: 0 8px 30px rgba(11, 37, 69, 0.10);
}
.operator-row:first-child::before {
  background: var(--red);
  color: #fff;
}
.operator-row:first-child::after {
  content: 'Top Pick';
  position: absolute;
  top: -11px;
  left: 26px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 3px;
}

/* Logo tile — uniform box so mixed logo shapes line up */
.operator-row .operator-col:nth-of-type(1) {
  grid-area: logo;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.operator-row .operator-col:nth-of-type(1) a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.operator-row .operator-col:nth-of-type(1) img {
  max-height: 44px;
  max-width: 108px;
  width: auto;
  object-fit: contain;
}

/* Tagline */
.operator-row .operator-col:nth-of-type(2) {
  grid-area: tagline;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy-deep);
  line-height: 1.45;
  padding-right: 8px;
}

/* Rating block */
.operator-row .operator-col:nth-of-type(3) { grid-area: rating; }
.operator-rating {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.operator-rating::before {
  content: 'Our rating';
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.operator-rating .rating-stars {
  position: relative;
  display: inline-block;
  font-size: 0;            /* hides the numeric text node inside */
  line-height: 1;
}
.operator-rating .rating-stars::before {
  content: '\2605\2605\2605\2605\2605';
  font-size: 16px;
  letter-spacing: 3px;
  color: #d9dee8;
}
.operator-rating .rating-stars::after {
  content: '\2605\2605\2605\2605\2605';
  font-size: 16px;
  letter-spacing: 3px;
  color: var(--gold);
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  overflow: hidden;
  white-space: nowrap;
}
.operator-rating .rating-stars.v40::after { width: 80%; }
.operator-rating .rating-stars.v41::after { width: 82%; }
.operator-rating .rating-stars.v42::after { width: 84%; }
.operator-rating .rating-stars.v43::after { width: 86%; }
.operator-rating .rating-stars.v44::after { width: 88%; }
.operator-rating .rating-stars.v45::after { width: 90%; }
.operator-rating .rating-stars.v46::after { width: 92%; }
.operator-rating .rating-stars.v47::after { width: 94%; }
.operator-rating .rating-stars.v48::after { width: 96%; }
.operator-rating .rating-stars.v49::after { width: 98%; }
.operator-rating .rating-stars.v50::after { width: 100%; }
.operator-rating p {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 16px;
  color: var(--navy-deep);
}
.operator-rating p::after {
  content: ' / 5';
  color: var(--ink-3);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
}

/* Actions */
.operator-row .operator-col:nth-of-type(4) {
  grid-area: actions;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.operator-row .operator-col:nth-of-type(4) .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 18px;
  border-radius: var(--radius);
  white-space: nowrap;
  text-decoration: none;
  background: var(--red);
  color: #fff;
  border: 1px solid var(--red);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.operator-row .operator-col:nth-of-type(4) .btn:hover {
  background: var(--red-soft);
  border-color: var(--red-soft);
  color: #fff;
}
.operator-row .operator-col:nth-of-type(4) .btn.btn-grey {
  background: var(--bg);
  color: var(--navy);
  border: 1px solid var(--rule-strong);
}
.operator-row .operator-col:nth-of-type(4) .btn.btn-grey:hover {
  border-color: var(--navy);
  color: var(--navy-deep);
  background: var(--bg-tint);
}

/* Terms */
.operator-row .operator-col.operator-terms {
  grid-area: terms;
  margin-top: 2px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-size: 11px;
  line-height: 1.5;
  color: var(--ink-3);
}
.operator-row .operator-col.operator-terms a {
  color: var(--ink-2);
  text-decoration: underline;
}

/* Tablet — drop the fixed logo column, let it sit with the tagline */
@media (max-width: 1023px) and (min-width: 768px) {
  .operator-row {
    grid-template-columns: 44px 120px minmax(0, 1fr) 150px;
    grid-template-areas:
      "rank logo tagline actions"
      "rank rating rating actions"
      "rank terms terms terms";
    row-gap: 12px;
  }
}

/* Mobile — full stack, centered */
@media (max-width: 767px) {
  .operator-row {
    grid-template-columns: 1fr;
    grid-template-areas:
      "rank"
      "logo"
      "tagline"
      "rating"
      "actions"
      "terms";
    justify-items: center;
    text-align: center;
    padding: 28px 16px 16px;
  }
  .operator-row::before {
    position: absolute;
    top: 14px;
    left: 14px;
  }
  .operator-row .operator-col:nth-of-type(1) { width: 160px; }
  .operator-rating { align-items: center; }
  .operator-row .operator-col:nth-of-type(4) {
    flex-direction: row;
    width: 100%;
  }
  .operator-row .operator-col:nth-of-type(4) .btn { flex: 1; }
}

/* ── Footer logo ───────────────────────────────────────────────
   The footer uses a dedicated light logo (white wordmark + red
   emblem on transparency) built for the dark navy footer, so it sits
   directly on the background with no white chip. filter:none overrides
   the base stylesheet's brightness(0) invert(1) recolor. */
.footer-logo-img {
  filter: none;
  height: auto;
  max-height: 58px;
  max-width: 220px;
  width: auto;
}

/* ── Skip-to-content link ──────────────────────────────────────
   Accessibility link that should be fully hidden until keyboard
   focus. The base offset (top:-40px) is shorter than the link with
   this font/padding, so a sliver peeked at the top-left. Park it
   well off-screen; the base :focus rule still brings it back. */
.skip-link {
  top: -200px;
}

/* ── Content images (casino-review / article page type) ────────
   Review pages keep their original inline images. Frame them inside
   a figure so they sit on-brand in the v5 article column. Scoped to
   .review-figure ONLY so operator-row logos are never affected. */
.review-figure {
  margin: 28px 0;
}
.review-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-sm);
}
.review-figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  font-style: italic;
  color: var(--ink-3);
  text-align: center;
}

/* ── Casino-review hero — verdict scorecard panel ──────────────
   Differentiates single-operator REVIEW pages from guide/main pages.
   Add class "hero--review" to <section class="hero"> and structure the
   inner as: .hero-lead (eyebrow/h1/lede/hero-meta) + .review-scorecard.
   Main/guide heroes are untouched (they don't carry the modifier). */
.hero--review .hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 1040px;
  align-items: start;
}
@media (min-width: 900px) {
  .hero--review .hero-inner {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 56px;
  }
}
.hero--review .hero-lead { min-width: 0; }
.hero--review .hero-meta { max-width: none; }

.review-scorecard {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
}
.review-scorecard .rs-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 78px;
  margin: 0 0 18px;
  padding: 13px 20px;
  background: #fff;
  border-radius: var(--radius);
}
.review-scorecard .rs-logo img {
  max-height: 52px;
  max-width: 224px;
  width: auto;
  object-fit: contain;
}
.review-scorecard .rs-label {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffd1cd;
  text-align: center;
}
.review-scorecard .rs-score {
  margin: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  font-family: var(--serif);
  color: #fff;
  line-height: 1;
}
.review-scorecard .rs-score b { font-size: 54px; font-weight: 700; }
.review-scorecard .rs-score span { font-size: 18px; font-weight: 600; color: rgba(255, 255, 255, 0.65); }
.review-scorecard .rs-stars {
  position: relative;
  display: block;
  width: -moz-fit-content;
  width: fit-content;
  margin: 12px auto 0;
  font-size: 18px;
  letter-spacing: 4px;
  line-height: 1;
}
.review-scorecard .rs-stars::before {
  content: '\2605\2605\2605\2605\2605';
  color: rgba(255, 255, 255, 0.25);
}
.review-scorecard .rs-stars-fill {
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  white-space: nowrap;
  color: var(--gold);
}
.review-scorecard .rs-stars-fill::before { content: '\2605\2605\2605\2605\2605'; }
.review-scorecard .rs-rows {
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  gap: 11px;
}
.review-scorecard .rs-rows > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}
.review-scorecard dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.review-scorecard dd {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-align: right;
}
