/* =============================================================
   /company/ operator hub (page-company.php)

   The page is built on the /online-casinos/ system (.bnk-page.och-page:
   navy .bnk-hero, then full-bleed sections each holding one 72rem
   .cv2-container), so hero and body share one column and left edge. It
   reuses the shipped pieces as-is: .och-stats +
   .och-chart + .och-bars (charts), .och-rate + .och-steps (navy method
   panel), .bnk-mgrid/.bnk-mcard (compact cards with a logo slot),
   .bnk-facet (filter chips), .bnk-chip (tags), .bnk-comparewrap/
   .bnk-compare (table with logo cell), .cv2-faq.

   Only what those do not cover lives here: the "why it matters" row, the
   large-group feature cards, the casino logo chip, and small layout
   modifiers (a three-step row).
   ============================================================= */

/* ---- section rhythm: alternate the surfaces so a long page reads in
   chapters, the way /online-casinos/ does ---- */
.coh-page .coh-alt { background: var(--bji-surface-alt, #f5f7fa); }
.coh-page .och-lede { margin-bottom: var(--bji-space-4); }

/* ---- why the operator matters: three short cards ---- */
.coh-why {
  display: grid; gap: var(--bji-space-3);
  grid-template-columns: 1fr;
  list-style: none; margin: 0; padding: 0;
}
@media (min-width: 768px) { .coh-why { grid-template-columns: repeat(3, 1fr); } }
.coh-why li {
  display: grid; grid-template-columns: auto 1fr; gap: var(--bji-space-3); align-items: start;
  background: var(--bji-surface); border: 1px solid var(--bji-border);
  border-radius: var(--bji-radius-md); padding: var(--bji-space-4);
}
.coh-why .ic {
  display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--bji-blue-050); color: var(--bji-navy-900);
}
.coh-why h3 { margin: 0 0 .25rem; font-size: var(--bji-text-md); color: var(--bji-navy-900); }
.coh-why p { margin: 0; font-size: var(--bji-text-sm); color: var(--bji-text-muted); }

/* ---- charts: operator names are long, so widen the label track on the
   operators chart only ---- */
.coh-chart--ops .och-bar { grid-template-columns: minmax(7.5rem, 12rem) 1fr 2.2rem; }
.coh-chart--ops .och-bar .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- licence tags: first-tier regulators green, everything else blue,
   explained by a one-line legend ---- */
.coh-lics { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0; padding: 0; list-style: none; }
.coh-lics .bnk-chip { font-size: var(--bji-text-xs); padding: .08rem .5rem; }
.coh-legend { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .4rem .9rem; margin: 0 0 var(--bji-space-4); font-size: var(--bji-text-xs); color: var(--bji-text-muted); }
.coh-legend .bnk-chip { font-size: var(--bji-text-xs); padding: .08rem .5rem; }

/* ---- casino logo chip: the brand's own logo on its review background
   colour (inline style, from the casino record), white otherwise ---- */
.coh-logo {
  display: grid; place-items: center; flex: 0 0 auto;
  width: 3.1rem; height: 3.1rem; border-radius: var(--bji-radius-md);
  background: #fff; border: 1px solid var(--bji-gray-100);
  overflow: hidden; text-decoration: none;
}
.coh-logo img { max-width: 82%; max-height: 62%; object-fit: contain; }
a.coh-logo:hover, a.coh-logo:focus-visible { border-color: var(--bji-blue-400); box-shadow: var(--bji-shadow-sm); }
/* white-artwork logos (see bjinfo_company_casino_logo) sit on navy */
.coh-logo--dark, .coh-owners .bnk-compare .who img.coh-logo--dark { background: var(--bji-navy-900); border-color: var(--bji-navy-900); }

/* ---- the largest groups: feature cards ---- */
.coh-groups { display: grid; gap: var(--bji-space-3); grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .coh-groups { grid-template-columns: repeat(2, 1fr); }
  .coh-groups > .coh-group:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.coh-group {
  display: flex; flex-direction: column; gap: var(--bji-space-3);
  background: var(--bji-surface); border: 1px solid var(--bji-border);
  border-radius: var(--bji-radius-md); padding: var(--bji-space-4);
  box-shadow: var(--bji-shadow-sm);
}
.coh-group-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--bji-space-3); }
.coh-group h3 { margin: 0; font-size: var(--bji-text-lg); line-height: 1.25; }
.coh-group h3 a { color: var(--bji-navy-900); text-decoration: none; }
.coh-group h3 a:hover { color: var(--bji-blue-700); text-decoration: underline; }
.coh-rank { display: block; margin-bottom: .15rem; font-size: var(--bji-text-xs); font-weight: var(--bji-weight-semibold); color: var(--bji-text-faint); letter-spacing: .04em; text-transform: uppercase; }
.coh-count {
  flex: 0 0 auto; display: grid; justify-items: center; min-width: 4rem;
  padding: .35rem .6rem; border-radius: var(--bji-radius-md);
  background: var(--bji-navy-900); color: #fff; line-height: 1.1;
}
.coh-count b { font-size: var(--bji-text-xl); }
.coh-count span { font-size: .68rem; opacity: .8; }
.coh-logos { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.coh-logos .more {
  display: grid; place-items: center; width: 3.1rem; height: 3.1rem; border-radius: var(--bji-radius-md);
  background: var(--bji-surface-alt, #f5f7fa); border: 1px dashed var(--bji-gray-200);
  font-size: var(--bji-text-xs); font-weight: var(--bji-weight-semibold); color: var(--bji-text-muted);
}
.coh-brands { margin: 0; font-size: var(--bji-text-sm); color: var(--bji-text-muted); }
.coh-formerly { margin: 0; font-size: var(--bji-text-sm); color: var(--bji-text-muted); }
.coh-tail .coh-formerly { margin-top: var(--bji-space-4); text-align: center; }
.coh-formerly a { color: var(--bji-blue-700); }
.coh-go { margin-top: auto; font-size: var(--bji-text-sm); font-weight: var(--bji-weight-semibold); color: var(--bji-blue-700); text-decoration: none; }
.coh-go:hover { text-decoration: underline; }

/* ---- the long tail: compact .bnk-mcard grid with a licence filter ---- */
.coh-facets { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin: 0 0 var(--bji-space-3); }
.coh-facets[hidden] { display: none; }
.coh-tail .bnk-mcard > a { align-items: flex-start; }
.coh-tail .bnk-mcard .tx { gap: .3rem; }
.coh-tail .bnk-mcard[hidden] { display: none; }

/* ---- who owns which casino: the shipped .bnk-compare table, allowed to
   wrap on a phone instead of forcing a 46rem sideways scroll ---- */
.coh-owners .bnk-compare { min-width: 0; }
.coh-owners .bnk-compare td { vertical-align: middle; }
.coh-owners .bnk-compare .who { min-width: 0; }
.coh-owners .bnk-compare td:nth-child(2) a { color: var(--bji-blue-700); text-decoration: none; }
.coh-owners .bnk-compare td:nth-child(2) a:hover { text-decoration: underline; }
.coh-owners .bnk-compare tr[hidden] { display: none; }
@media (max-width: 560px) {
  .coh-owners .bnk-compare thead th, .coh-owners .bnk-compare td { padding: .55rem .6rem; }
  .coh-owners .bnk-compare .who img { width: 1.8rem; height: 1.8rem; }
}
.coh-owners .bnk-indexfilter { justify-content: center; }
.coh-more { text-align: center; margin: var(--bji-space-3) 0 0; }
.coh-more[hidden] { display: none; }

/* ---- how we verify: the navy method panel, three steps not five ---- */
@media (min-width: 768px) {
  .coh-page .coh-steps { grid-template-columns: repeat(3, 1fr); gap: var(--bji-space-4); }
}
.coh-page .och-rate .coh-ask { margin: 0; text-align: center; font-size: var(--bji-text-sm); color: var(--bji-text-inverse-muted); }
.coh-page .och-rate .coh-ask a { color: #fff; }

/* ---- FAQ + author card: a readable measure, centred under the centred
   section heading like the /online-casinos/ ledes. The author card's name
   is an h2, so undo the .och-page centred-heading rule inside it. ---- */
.coh-page .coh-narrow { max-width: 52rem; margin-inline: auto; }
.coh-page .av2-author-card h2 { text-align: left; }
