/* v54: the approved desktop title composition, with a compact mobile column.
   The kicker shares the main title's start; subtitle and highlight are centered.
   Replaces v53-titles.css. Article body and home-page styles are unaffected. */
.gg-article .article-intro {
  position: static;
  inset: auto;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  transform: none;
  text-align: left;
}

.gg-article .article-intro > h1,
.gg-article.article-compact .article-intro > h1 {
  position: static;
  inset: auto;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0 0 8px;
  padding: 0;
  transform: none;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.3;
  letter-spacing: .01em;
  text-align: left;
  white-space: normal;
  text-wrap: wrap;
  word-break: normal;
  overflow-wrap: anywhere;
}

.gg-article .article-intro > h1 > .heading-kicker {
  display: block;
  width: auto;
  margin: 0 0 5px;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  /* Remove the opening bracket's built-in half-em blank for optical alignment. */
  text-indent: -.5em;
  white-space: normal;
}

.gg-article .article-intro > h1 > .heading-main,
.gg-article[data-article-id="download"] .article-intro > h1 > .heading-main.download-heading-line {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  text-align: left;
  white-space: normal;
  text-wrap: wrap;
  overflow-wrap: anywhere;
}

.gg-article .article-intro > h1 > .heading-subtitle {
  display: block;
  max-width: 100%;
  margin: 5px 0 0;
  font-size: 20px;
  line-height: 1.45;
  text-align: left;
  white-space: normal;
  text-wrap: wrap;
  overflow-wrap: anywhere;
  vertical-align: baseline;
}

/* Prefer natural phrase boundaries while allowing a long phrase to wrap. */
.gg-article .article-intro > h1 .heading-phrase-part {
  display: inline-block;
  max-width: 100%;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
  vertical-align: baseline;
}

.gg-article .article-intro > p.article-intro-pitch {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  font-size: 15px;
  line-height: 1.6;
  text-align: left;
  text-wrap: wrap;
  overflow-wrap: anywhere;
}

.gg-article .article-intro > p.article-intro-pitch > [aria-hidden="true"] {
  display: none;
}

@media (min-width: 960px) {
  /* Use the page center for the complete composition. The body retains its
     existing reading width; the title may use the wider desktop space. */
  .gg-article .article-intro {
    position: relative;
    left: 50%;
    width: min(1180px, calc(100vw - 56px));
    max-width: none;
    transform: translateX(-50%);
    text-align: center;
  }

  /* A content-sized H1 makes the kicker follow the actual title, instead of
     the left edge of an unrelated full-width container. */
  .gg-article .article-intro > h1,
  .gg-article.article-compact .article-intro > h1 {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 10px;
    font-size: clamp(32px, 3.15vw, 42px);
    line-height: 1.3;
  }

  .gg-article .article-intro > h1 > .heading-kicker {
    margin-bottom: 6px;
    font-size: clamp(15px, 1.5vw, 18px);
  }

  .gg-article .article-intro > h1 > .heading-main,
  .gg-article[data-article-id="download"] .article-intro > h1 > .heading-main.download-heading-line {
    text-align: center;
  }

  .gg-article .article-intro > h1 > .heading-subtitle {
    /* A long subtitle may wrap, but must not move the main title's start. */
    contain: inline-size;
    margin-top: 6px;
    font-size: clamp(20px, 1.8vw, 23px);
    text-align: center;
  }

  .gg-article .article-intro > p.article-intro-pitch {
    font-size: clamp(16px, 1.5vw, 18px);
    line-height: 1.5;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .gg-article .article-intro > h1,
  .gg-article.article-compact .article-intro > h1 {
    font-size: clamp(24px, 6.6vw, 28px);
    line-height: 1.3;
    margin-bottom: 7px;
  }

  .gg-article .article-intro > h1 > .heading-kicker {
    margin-bottom: 4px;
    font-size: 13px;
  }

  .gg-article .article-intro > h1 > .heading-subtitle {
    display: none;
  }

  .gg-article:is(.casino-bonus-article, .freeroll-event-article) .article-intro > h1 > .heading-subtitle {
    display: block;
    margin-top: 4px;
    font-size: 17px;
  }

  .gg-article[data-article-id="download"] .article-intro > h1 > .heading-main.download-heading-line {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    line-height: 1.3;
  }

  .gg-article .article-intro > p.article-intro-pitch {
    font-size: 14px;
  }
}
