/* ===========================================================================
   R2 (15.10.2026): casino profile pages — page-templates/casino-profile.php.
   The site's own grammar: square corners, 2px charcoal frames, uppercase
   tracked labels, mono values, felt / gold / cherry stripes. Loaded only on
   that template (inc/casino-profiles.php). Sizes in px where the site's
   html { font-size: 85% } would shrink rem.
   =========================================================================== */

/* Breadcrumb: a flush bar under the header, like the slot pages. */
body.page-template-casino-profile .breadcrumb-wrap {
  margin: calc(var(--container-padding-x-md, 2rem) * -1) 0 0;
  padding-block: 0.75rem;
  padding-inline: var(--container-padding-x);
  background: var(--cream);
}
body.page-template-casino-profile .breadcrumb-wrap .breadcrumb {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: 0;
}
@media (min-width: 768px) {
  body.page-template-casino-profile .breadcrumb-wrap { padding-inline: var(--container-padding-x-md); }
}

/* ---------------------------------------------------------------------------
   Hero: the brand's logo on its own plate, then the title block and tiles.
--------------------------------------------------------------------------- */
.cp-hero {
  background: var(--cream-100);
  border-top: 2px solid var(--charcoal);
  border-bottom: 2px solid var(--charcoal);
  margin-bottom: 2rem;
}
.cp-hero__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 20px var(--container-padding-x);
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) {
  .cp-hero__inner {
    padding: 32px var(--container-padding-x-md);
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
    gap: 32px;
    align-items: stretch;
  }
}
.cp-hero__plate {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--charcoal);
  padding: 14px 24px;
  min-height: 88px;
}
@media (min-width: 768px) {
  .cp-hero__plate { padding: 28px; min-height: 200px; }
}
.cp-hero__logo {
  display: block;
  width: auto;
  height: 56px;
  max-width: 100%;
}
@media (min-width: 768px) {
  .cp-hero__logo { height: auto; width: 100%; max-width: 220px; }
}
.cp-hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.cp-hero .cp-hero__title {
  margin: 0 !important;
  font-size: 26px !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em !important;
  line-height: 1.05 !important;
  color: var(--charcoal);
  max-width: 22ch;
  text-wrap: balance;
}
@media (min-width: 768px) {
  .cp-hero .cp-hero__title { font-size: 40px !important; }
}
.cp-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted-foreground);
}
.cp-hero__meta a {
  color: var(--cherry);
  font-weight: 500;
  text-decoration: none;
}
.cp-hero__meta a:hover { text-decoration: underline; }
.cp-hero__age {
  display: inline-block;
  padding: 1px 7px;
  border: 2px solid var(--charcoal);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--charcoal);
  background: var(--card);
}

/* Tiles: the slot-hero stat strip, as a definition list. */
.cp-hero__tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 0 0;
  border: 2px solid var(--charcoal);
  background: var(--card);
}
.cp-hero__tile {
  padding: 10px 12px;
  border-top: 4px solid var(--felt);
  border-left: 2px solid var(--charcoal);
  min-width: 0;
}
.cp-hero__tile:first-child { border-left: 0; }
.cp-hero__tile:nth-child(2) { border-top-color: var(--gold); }
.cp-hero__tile:nth-child(3) { border-top-color: var(--cherry); }
.cp-hero__tile dt {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted-foreground);
}
.cp-hero__tile dd {
  margin: 4px 0 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--charcoal);
}
@media (max-width: 559px) {
  .cp-hero__tiles { grid-template-columns: 1fr; }
  .cp-hero__tile {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    border-top: 0;
    border-left: 4px solid var(--felt);
  }
  .cp-hero__tile:first-child { border-left: 4px solid var(--felt); }
  .cp-hero__tile + .cp-hero__tile { border-top: 1px solid var(--border); }
  .cp-hero__tile:nth-child(2) { border-left-color: var(--gold); }
  .cp-hero__tile:nth-child(3) { border-left-color: var(--cherry); }
  .cp-hero__tile dd { margin: 0; font-size: 15px; text-align: right; }
}

/* ---------------------------------------------------------------------------
   Reading column: the answer, the offers list and the body share one measure;
   the scan layer below the list runs the full container width.
--------------------------------------------------------------------------- */
.cp-answer,
.cp-body,
.cp-article > .rover-deals {
  max-width: 820px;
}
.cp-answer { margin-bottom: 2rem; }
.cp-body { margin-bottom: 1rem; }
/* Reading rhythm for the answer and the body: main.css zeroes .article-content
   p margins (the slot pages set their own spacing), so the profile sets its
   own: a gap between blocks, room above each section, and a reading size
   immune to the 85% root. The answer's first paragraph is the lead. */
.cp-answer.article-content > * + *,
.cp-body.article-content > * + * { margin-top: 1.1rem; }
.cp-body.article-content > h2 { margin-top: 2.75rem; }
.cp-body.article-content > h2:first-child { margin-top: 0; }
.cp-answer.article-content p,
.cp-body.article-content p,
.cp-body.article-content li {
  font-size: 16px;
  line-height: 1.65;
}
.cp-answer.article-content > p:first-child {
  font-size: 18px;
  line-height: 1.55;
}

/* ---------------------------------------------------------------------------
   Scan layer: brand card | main page as captured | operator box.
--------------------------------------------------------------------------- */
.cp-scan {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 0 0 2.75rem;
}
@media (min-width: 768px) {
  .cp-scan {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cp-scan .cp-shot { grid-column: 1 / -1; order: 3; }
}
@media (min-width: 1100px) {
  .cp-scan {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.35fr) minmax(0, 0.9fr);
    align-items: start;
  }
  .cp-scan .cp-shot { grid-column: auto; order: 0; }
}

.cp-card,
.cp-operator {
  background: var(--card);
  border: 2px solid var(--charcoal);
  border-top-width: 6px;
  border-top-color: var(--cherry);
  padding: 14px 16px 16px;
  min-width: 0;
}
.cp-operator { border-top-color: var(--felt); }

.cp-label {
  margin: 0 0 12px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--charcoal);
}

.cp-card__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.cp-card__plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 48px;
  padding: 6px 12px;
  border: 2px solid var(--charcoal);
  flex: none;
}
.cp-card__plate img {
  display: block;
  width: 100%;
  height: auto;
}
.cp-card__name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.cp-rows {
  margin: 0;
}
.cp-rows__row {
  padding: 9px 0;
  border-top: 1px dashed var(--border);
}
.cp-rows__row:first-child { border-top: 0; }
.cp-rows dt {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted-foreground);
}
.cp-rows dd {
  margin: 3px 0 0;
  font-size: 15px;
  line-height: 1.4;
  color: var(--charcoal);
}
.cp-rows__link {
  display: inline-block;
  margin-left: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cherry);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cp-rows__link:hover { color: var(--cherry-dark); }

.cp-card__note {
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 2px solid var(--charcoal);
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted-foreground);
}

.cp-shot {
  margin: 0;
  min-width: 0;
}
.cp-shot picture,
.cp-shot img {
  display: block;
  width: 100%;
  height: auto;
}
.cp-shot picture {
  border: 2px solid var(--charcoal);
  background: var(--charcoal);
}
.cp-shot figcaption {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-foreground);
}
@media (max-width: 599px) {
  /* The phone capture is tall: show it at phone size, centred. */
  .cp-shot picture { max-width: 240px; margin: 0 auto; }
  .cp-shot figcaption { text-align: center; }
}

/* ---------------------------------------------------------------------------
   Body blocks (CP2 15.10): a sub-heading, the complaint timeline table and
   the FAQ as native details/summary (open and close without JavaScript).
--------------------------------------------------------------------------- */
.cp-body.article-content > h3 {
  margin-top: 2rem;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.cp-body .cp-table {
  overflow-x: auto;
  border: 2px solid var(--charcoal);
  border-top: 4px solid var(--gold);
}
.cp-body .cp-table table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.45;
}
.cp-body .cp-table th,
.cp-body .cp-table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-top: 1px dashed var(--border);
}
.cp-body .cp-table thead th {
  border-top: 0;
  background: var(--cream);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--charcoal);
}
.cp-body .cp-table tbody th {
  font-weight: 700;
  color: var(--charcoal);
}
.cp-body .cp-table td:nth-child(2) {
  font-family: var(--font-mono);
  font-size: 13px;
}
/* Phones: each row becomes a short stacked block (the step, then its time
   limit in mono, then what happens), so no column hides off-screen. */
@media (max-width: 600px) {
  .cp-body .cp-table table { min-width: 0; }
  .cp-body .cp-table thead { display: none; }
  .cp-body .cp-table tr,
  .cp-body .cp-table th,
  .cp-body .cp-table td { display: block; }
  .cp-body .cp-table tr { border-top: 1px dashed var(--border); }
  .cp-body .cp-table tbody tr:first-child { border-top: 0; }
  .cp-body .cp-table th,
  .cp-body .cp-table td { border: 0; padding: 4px 14px; }
  .cp-body .cp-table tbody th { padding-top: 12px; }
  .cp-body .cp-table td:last-child { padding-bottom: 12px; }
}
.cp-body .cp-faq {
  border: 2px solid var(--charcoal);
  border-left: 6px solid var(--felt);
  background: #fff;
}
.cp-body .cp-faq + .cp-faq { margin-top: 10px; }
.cp-body .cp-faq summary {
  cursor: pointer;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--charcoal);
}
.cp-body .cp-faq summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.cp-body .cp-faq[open] summary { border-bottom: 1px dashed var(--border); }
.cp-body .cp-faq > p { padding: 12px 16px 14px; }
