/* ============================================================================
   Game Provider Hero — [section cpt="game-provider" type="hero"]
   Updated design (Figma desktop 12250-23113 / tablet 11995-18404 / mobile 12016-8756).
   Full-bleed dark hero. Mobile-first; breakpoints 768 / 1280.
   Layout:
     · Mobile/Tablet = one column: [logo | name] row, intro, then a full-width
       stat card whose Games Catalog + Primary Focus are horizontal label↔value rows.
     · Desktop       = two columns: content (logo+name row, intro) | 308px stat card,
       with Games Catalog + Primary Focus stacked & centered inside the narrow card.
   All values map to design tokens (raw px only for component/logo/icon sizes).
   Documented drifts: mobile caption text uses --font-size-p3-caption (11px) where the
   mock froze 13px; "Primary Focus" uses --line-height-h7 where the H7 style hardcodes 24.
   ============================================================================ */

/* ── Full-bleed shell + Brizy edge-to-edge resets ─────────────────────────── */
.gph {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  box-sizing: border-box;
  position: relative;
  background-color: var(--color-deep-dark);
  background-image: url("../images/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  font-family: var(--font-family-paragraph);
}
.gph *, .gph *::before, .gph *::after { box-sizing: border-box; }
.gph h1, .gph p { margin: 0; }

.brz-wrapper:has(.gph) { margin-top: 0 !important; margin-bottom: 0 !important; }
.brz-section__content:has(.gph) { padding-top: 0 !important; padding-bottom: 0 !important; }

.gph__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: var(--spacing-25) var(--spacing-5);        /* mobile 100 / 20 */
}

/* mobile/tablet: content then card stacked; desktop: side by side */
.gph__main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--spacing-8);                              /* 32 content ↔ card */
}

/* ── Content column (logo+name row, then intro) ───────────────────────────── */
.gph__content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-5);                             /* mobile 20 head ↔ intro */
  width: 100%;
}
.gph__head {
  display: flex;
  align-items: flex-start;                            /* mobile/tablet: name tops with logo */
  gap: var(--spacing-5);                             /* mobile 20 logo ↔ name */
  width: 100%;
}
.gph__logo {
  flex-shrink: 0;
  width: 116px;                                       /* mobile */
  height: 116px;
  border-radius: var(--radius-xl);
  background: var(--color-base-white);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-4);
  /* Real provider logos are transparent wordmarks — contain on a white box so they
     display whole, rather than object-cover cropping them (the Figma uses sample art). */
}
.gph__logo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }

.gph__name {
  flex: 1 1 0;
  min-width: 0;
  font-family: var(--font-family-header);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-h3);                    /* mobile H3 34 (tablet/desktop → H1) */
  line-height: var(--line-height-h3);
  color: var(--color-base-daisy-white);
  overflow-wrap: break-word;
}
.gph__intro {
  width: 100%;
  font-size: var(--font-size-p3-caption);            /* mobile p3-caption (tablet/desktop → p2-base) */
  line-height: var(--line-height-p3-caption);
  font-weight: var(--font-weight-regular);
  color: var(--color-base-light-gray);
}

/* ── Stat card ────────────────────────────────────────────────────────────── */
.gph__panel { width: 100%; display: flex; flex-direction: column; }
.gph-card__body { display: flex; flex-direction: column; }

.gph-card--top {
  background: var(--color-primary-dark);
  border-top: var(--border-width-thin) solid var(--color-glow);
  border-left: var(--border-width-thin) solid var(--color-glow);
  border-right: var(--border-width-thin) solid var(--color-glow);
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
  padding: var(--spacing-5);
}
.gph-card--top .gph-card__body { gap: var(--spacing-4); }   /* 16 games ↔ focus */

.gph-card--table {
  background: var(--color-deep-dark);
  border: var(--border-width-thin) solid var(--color-primary-dark);
  border-bottom-left-radius: var(--radius-xl);
  border-bottom-right-radius: var(--radius-xl);
  padding: var(--spacing-5);
}
.gph-card--table .gph-card__body { gap: var(--spacing-2); }  /* 8 between rows */

/* Games Catalog dashed box — mobile/tablet: label ↔ value; desktop: label / value stacked */
.gph-games {
  background: var(--color-callout-info);
  border: var(--border-width-thin) dashed var(--color-glow);
  border-radius: var(--radius-lg);
  padding: var(--spacing-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-5);
}
.gph-games__label {
  font-size: var(--font-size-p3-caption);
  line-height: var(--line-height-p3-caption);
  color: var(--color-primary-light);
  white-space: nowrap;
}
.gph-games__value {
  font-family: var(--font-family-header);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-h6);                    /* mobile 16 / tablet 18 (desktop → H5 24) */
  line-height: var(--line-height-h6);
  color: var(--color-base-light-gray);               /* mobile/tablet (desktop → bluish-white) */
  text-align: center;
}

/* Primary Focus — mobile/tablet: head ↔ value; desktop: head / value stacked centered */
.gph-focus {
  display: flex;
  align-items: center;
  gap: var(--spacing-3);
}
.gph-focus__head {
  display: flex;
  align-items: center;
  gap: var(--spacing-1);
  flex-shrink: 0;
  font-family: var(--font-family-header);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-h7);                    /* 13 / 14 / 16 */
  line-height: var(--line-height-h7);                /* H7 style hardcodes 24; token pair used */
  color: var(--color-primary-light);
}
.gph-focus__head .gph-ico { flex-shrink: 0; width: 16px; height: 16px; color: var(--color-primary-light); }
.gph-focus__value {
  flex: 1 1 0;
  min-width: 0;
  font-family: var(--font-family-paragraph);
  font-weight: var(--font-weight-regular);
  font-size: var(--font-size-p3-caption);
  line-height: var(--line-height-p3-caption);
  color: var(--color-base-light-gray);               /* mobile/tablet (desktop → bluish-white) */
  text-align: right;
  overflow-wrap: anywhere;
}

/* Fact table rows */
.gph-row { display: flex; align-items: center; justify-content: space-between; gap: var(--spacing-4); width: 100%; }
.gph-row__label {
  flex-shrink: 0;
  font-size: var(--font-size-p3-caption);
  line-height: var(--line-height-p3-caption);
  font-weight: var(--font-weight-regular);
  color: var(--color-primary-light);
}
.gph-row__value {
  text-align: right;
  font-size: var(--font-size-p3-caption);
  line-height: var(--line-height-p3-caption);
  font-weight: var(--font-weight-bold);              /* updated design: bold values */
  color: var(--color-base-light-gray);
  overflow-wrap: anywhere;
}
.gph__rule { height: var(--border-width-thin); width: 100%; background: var(--color-primary-dark); }

/* ── Tablet ≥768 ──────────────────────────────────────────────────────────── */
@media (min-width: 768px) {
  .gph__inner { padding: var(--spacing-25) var(--spacing-12); }   /* 100 / 48 */
  .gph__content { gap: var(--spacing-3); }           /* 12 head ↔ intro */
  .gph__head { gap: var(--spacing-7); }              /* 28 logo ↔ name */
  .gph__logo { width: 211px; height: 211px; }

  .gph__name { font-size: var(--font-size-h1); line-height: var(--line-height-h1); }   /* H1 48 */
  .gph__intro { font-size: var(--font-size-p2-base); line-height: var(--line-height-p2-base); }  /* 15 */

  .gph-games { padding: var(--spacing-4) var(--spacing-3); }      /* 16 / 12 */
  .gph-games__value { font-size: var(--font-size-h6); line-height: var(--line-height-h6); }  /* 18 */
}

/* ── Desktop ≥1280 ────────────────────────────────────────────────────────── */
@media (min-width: 1280px) {
  .gph__inner { padding: var(--spacing-25) 0; }      /* 100 vertical; max-width centers */
  .gph__main { flex-direction: row; }                /* content | card */

  .gph__content { flex: 1 1 0; min-width: 0; gap: var(--spacing-8); }   /* 32 head ↔ intro */
  .gph__head { align-items: center; gap: var(--spacing-6); }            /* 24 logo ↔ name */
  .gph__logo { width: 146px; height: 146px; }

  .gph__name { font-size: var(--font-size-h1); line-height: var(--line-height-h1); }   /* H1 62 */
  .gph__intro { font-size: var(--font-size-p2-base); line-height: var(--line-height-p2-base); }  /* 16 */

  .gph__panel { width: 308px; flex-shrink: 0; }

  /* narrow card → Games/Focus stack & center */
  .gph-games { flex-direction: column; justify-content: center; gap: var(--spacing-1); padding: var(--spacing-3); }
  .gph-games__value { font-size: var(--font-size-h5); line-height: var(--line-height-h5); color: var(--color-base-bluish-white); }  /* 24 */

  .gph-focus { flex-direction: column; align-items: center; justify-content: center; gap: var(--spacing-2); }
  .gph-focus__head .gph-ico { width: 18px; height: 18px; }
  .gph-focus__value { flex: 0 0 auto; text-align: center; color: var(--color-base-bluish-white); }
}
