/* Shared page-head card — title + intro + meta line (calendar/author).
   Used by both the review redesign and the comparison-page redesign.
   Sits at the top of .ccs-rev__container as a white card on the grey body. */

.ccs-rev-pagehead {
  background: #fff;
  border-radius: var(--ccs-radius-xl);
  box-shadow: var(--ccs-shadow-card-hover);
  padding: 32px;
  margin: 0 0 32px;
  text-align: center;
}
@media (min-width: 1024px) {
  .ccs-rev-pagehead {
    text-align: left;
    padding: 40px 48px;
  }
}

.ccs-rev-pagehead__title {
  font-family: var(--ccs-font-display);
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--ccs-primary);
  margin: 0 0 16px 0;
}
@media (min-width: 1024px) {
  .ccs-rev-pagehead__title { font-size: 48px; }
}

.ccs-rev-pagehead__intro {
  font-family: var(--ccs-font-display);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ccs-on-surface-variant);
  margin: 0 0 16px;
}
.ccs-rev-pagehead__intro p { margin: 0; }
.ccs-rev-pagehead__intro p + p { margin-top: 12px; }
.ccs-rev-pagehead__intro a { color: var(--ccs-primary); text-decoration: underline; }

.ccs-rev-pagehead__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: center;
  font-family: var(--ccs-font-display);
  font-size: 14px;
  color: var(--ccs-on-surface-variant);
}
@media (min-width: 1024px) {
  .ccs-rev-pagehead__meta { justify-content: flex-start; }
}
.ccs-rev-pagehead__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ccs-rev-pagehead__meta-item .material-symbols-outlined {
  font-size: 18px;
  line-height: 1;
  width: 18px;
  height: 18px;
  color: var(--ccs-primary);
  /* Match opsz to the rendered font-size so wide icons (e.g. format_list_numbered)
     don't get squashed by the 24px opsz default. */
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}
.ccs-rev-pagehead__meta-item a {
  color: var(--ccs-primary);
  font-weight: 600;
  text-decoration: none;
}
.ccs-rev-pagehead__meta-item a:hover { text-decoration: underline; }
.ccs-rev-pagehead__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

/* CAP-code affiliate disclosure — short, prominent, sits in the hero card
   directly under the meta row so it's visible before any affiliate click. */
.ccs-rev-pagehead__ad-disclosure {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  margin: 20px 0 0;
  padding: 10px 14px;
  border-radius: var(--ccs-radius-lg, 12px);
  background: var(--ccs-primary-fixed, #f3e9ff);
  font-family: var(--ccs-font-display);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ccs-on-surface-variant);
}
@media (min-width: 1024px) {
  .ccs-rev-pagehead__ad-disclosure {
    justify-content: flex-start;
  }
}
.ccs-rev-pagehead__ad-disclosure .ccs-ad-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ccs-primary);
  color: #fff;
  font-family: var(--ccs-font-label, "Inter"), system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}
.ccs-rev-pagehead__ad-disclosure a {
  color: var(--ccs-primary);
  font-weight: 700;
  text-decoration: underline;
  white-space: nowrap;
}
.ccs-rev-pagehead__ad-disclosure a:hover {
  text-decoration: none;
}

/* Featured-sites wrap — sits inside .ccs-rev__container after the pagehead.
   Override the global .featured-sites max-width so the strip itself can use
   the full container width, then stretch the inner .fs-card items so they
   distribute across the strip evenly (instead of left-aligning with empty
   space on the right at desktop widths). */
.ccs-rev-featured-wrap {
  margin: 0 0 32px;
}
.ccs-rev-featured-wrap .featured-sites { max-width: none !important; }

/* Compliance row inside featured-site cards — 18+ pill + GambleAware wordmark.
   Mirrors the .ccs-cmp-card__compliance pattern used in listing cards so the
   same components appear wherever a bonus is shown. Centred horizontally;
   no extra margin/padding so it sits tight under the bonus line — the
   parent .fs-card-body already supplies a 4px flex gap between children. */
.fs-card-compliance {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 2px 12px;
  flex-wrap: wrap;
}
.fs-card-age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 18px;
  min-width: 28px;
  padding: 0 6px;
  border: 1.5px solid var(--ccs-on-surface-variant);
  border-radius: 999px;
  font-family: var(--ccs-font-label, "Inter"), system-ui, sans-serif;
  font-size: 9px;
  font-weight: 700;
  color: var(--ccs-on-surface-variant);
  letter-spacing: 0.04em;
  line-height: 1;
}
.fs-card-gba {
  display: inline-flex;
  align-items: center;
  height: 18px;
  text-decoration: none;
}
.fs-card-gba img {
  display: block;
  height: 12px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.15s ease;
  border-radius: 0 !important;
}
.fs-card-gba:hover img { opacity: 1; }
@media (min-width: 1024px) {
  /* Make the strip a flex row that fills the container width and let each
     card grow equally. The site-wide .fs-card has `width: 178px` + `flex-shrink: 0`;
     setting width:0 + flex longhand here forces the grow distribution. */
  .ccs-rev-featured-wrap .featured-container {
    overflow-x: visible !important;
    width: 100% !important;
  }
  .ccs-rev-featured-wrap .fs-card {
    flex-grow: 1 !important;
    flex-shrink: 1 !important;
    flex-basis: 0 !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: none !important;
  }
}