/* v19: compact responsive headings, editorial TOC, restored blue H2 bands. */

/* Let the browser use the available width before wrapping headings. */
.gg-article h1,
.gg-article h2,
.gg-article h3 {
  overflow-wrap: normal;
  text-wrap: wrap;
  word-break: normal;
}

.gg-article h1 .heading-main,
.gg-article h1 .heading-subtitle {
  overflow-wrap: normal;
  text-wrap: wrap;
}

/* Desktop article titles use one line for the main title and subtitle. */
@media (min-width: 960px) {
  .gg-article h1 {
    position: relative;
    left: 50%;
    width: min(1180px, calc(100vw - 56px));
    font-size: clamp(32px, 3.15vw, 42px);
    line-height: 1.3;
    transform: translateX(-50%);
    white-space: nowrap;
  }

  .gg-article h1 > .heading-main,
  .gg-article h1 > .heading-subtitle,
  .gg-article[data-article-id="download"] h1 .heading-main.download-heading-line {
    display: inline;
    margin: 0;
    overflow-wrap: normal;
    text-wrap: nowrap;
    white-space: nowrap;
  }

  .gg-article h1 > .heading-subtitle {
    margin-left: .58em;
    font-size: .58em;
    line-height: 1;
    vertical-align: .12em;
  }

  .gg-article[data-article-id="download"] .download-heading-divider {
    width: .42em;
  }
}

/* Every content H2 is a clear pale-blue section band. */
.gg-article h2 {
  margin: 38px 0 15px;
  padding: 15px 18px;
  border: 0;
  border-radius: 6px;
  background: #edf6fd;
  color: #252525;
  font-size: clamp(22px, 2.35vw, 26px);
  line-height: 1.38;
  letter-spacing: -.012em;
  text-wrap: wrap;
}

.gg-article h2[data-section-number] {
  display: block;
}

.gg-article h2[data-section-number]::before {
  display: inline-block;
  margin: 0 .36em 0 0;
  padding: 0;
  color: #0b6cae;
  font-size: 1.04em;
  font-weight: 850;
  letter-spacing: -.025em;
  line-height: inherit;
  vertical-align: 0;
}

.gg-article .line-support-section > h2,
.gg-article .rescue-support-section > h2 {
  margin: 38px 0 15px;
  padding: 15px 18px;
  border: 0;
  border-radius: 6px;
  background: #edf6fd;
  color: #252525;
  font-size: clamp(22px, 2.35vw, 26px);
  line-height: 1.38;
  letter-spacing: -.012em;
  text-wrap: wrap;
}

/* Reference-style TOC: blue editorial links and a small downward marker. */
.gg-article .toc {
  margin: 20px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.gg-article .toc h2 {
  margin: 0;
  padding: 0 0 8px;
  border: 0;
  border-bottom: 1px solid #9fc7df;
  border-radius: 0;
  background: transparent;
  color: #123f60;
  font-size: 17px;
  line-height: 1.45;
  letter-spacing: .025em;
}

.gg-article .toc ol {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.gg-article .toc li {
  border: 0;
  border-bottom: 1px solid #d9e6ef;
}

.gg-article .toc a {
  display: grid;
  min-height: 40px;
  grid-template-columns: 14px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding: 6px 2px;
  color: #145b89;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-wrap: wrap;
}

.gg-article .toc a::before {
  display: block;
  align-self: center;
  padding: 0;
  border: 0;
  color: #087dcc;
  content: "▼";
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.gg-article .toc a::after {
  display: none;
  content: none;
}

.gg-article .toc a:hover {
  color: #064f80;
  background: linear-gradient(90deg, rgba(237, 246, 253, .72), transparent 82%);
}

/* A compact comparison strip instead of four oversized AI-like cards. */
.gg-article.deposit-methods-article .method-summary-rail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 13px 0 5px;
  border: 0;
  border-block: 1px solid #cbdce8;
  background: #fff;
}

.gg-article.deposit-methods-article .method-summary-card:nth-child(n) {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 52px;
  grid-template-columns: 38px max-content minmax(0, 1fr);
  grid-template-rows: auto;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 0;
  border-right: 1px solid #d7e4ed;
  border-bottom: 1px solid #d7e4ed;
  border-radius: 0;
  background: transparent;
}

.gg-article.deposit-methods-article .method-summary-card:nth-child(2n) {
  border-right: 0;
}

.gg-article.deposit-methods-article .method-summary-card:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.gg-article.deposit-methods-article .method-summary-card::before {
  position: static;
  display: block;
  width: 38px;
  padding: 1px 8px 1px 0;
  border-right: 2px solid #9ac9e6;
  color: #087dcc;
  content: counter(gg-v18-item, decimal);
  font-size: 14px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
}

.gg-article.deposit-methods-article .method-summary-card h3 {
  margin: 0;
  padding: 0;
  border: 0;
  color: #252525;
  font-size: 15px;
  line-height: 1.35;
  white-space: nowrap;
}

.gg-article.deposit-methods-article .method-summary-link {
  min-width: 0;
  min-height: auto;
  justify-content: flex-end;
  gap: 4px;
  margin: 0;
  font-size: 11.5px;
  line-height: 1.35;
  white-space: nowrap;
}

.gg-article.deposit-methods-article .method-summary-note {
  margin-top: 5px !important;
}

/* Keep matching CTA leads consistently highlighted throughout all articles. */
.gg-article .cta-lead strong,
.gg-article .line-cta-lead strong,
.gg-article .article-actions > p strong,
.gg-article .crypto-line-rescue > p strong {
  padding-inline: .04em;
  background: linear-gradient(transparent 60%, var(--article-marker) 60%, var(--article-marker) 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.gg-article .cta-lead strong .article-marker,
.gg-article .line-cta-lead strong .article-marker,
.gg-article .article-actions > p strong .article-marker,
.gg-article .crypto-line-rescue > p strong .article-marker {
  padding: 0;
  background: transparent;
}

/* Roughly two light sweeps during a normal viewport scroll. */
.gg-article .image-cta::after,
.gg-article .article-hero-figure picture::after {
  animation: gg-v18-image-shine 2.2s linear infinite;
}

@media (max-width: 700px) {
  .gg-article h1 .heading-main,
  .gg-article h1 .heading-subtitle {
    text-wrap: wrap;
  }
}

/* On tablets, the subtitle shares the line only when both phrases actually fit. */
@media (min-width: 561px) and (max-width: 959px) {
  .gg-article:not([data-article-id="download"]) h1 > .heading-main,
  .gg-article:not([data-article-id="download"]) h1 > .heading-subtitle {
    display: inline-block;
    overflow-wrap: normal;
    text-wrap: nowrap;
    white-space: nowrap;
  }

  .gg-article:not([data-article-id="download"]) h1 > .heading-subtitle {
    margin: 0 0 0 .55em;
    vertical-align: .08em;
  }
}

@media (max-width: 560px) {
  .gg-article h1,
  .gg-article.bank-transfer-article h1 {
    font-size: clamp(24px, 6.8vw, 28px);
    line-height: 1.24;
    text-wrap: wrap;
  }

  .gg-article h2 {
    margin: 27px 0 11px;
    padding: 11px 12px;
    border-radius: 5px;
    font-size: clamp(18px, 5.15vw, 21px);
    line-height: 1.34;
    text-wrap: wrap;
  }

  .gg-article h2[data-section-number] {
    display: block;
  }

  .gg-article h2[data-section-number]::before {
    display: inline-block;
    margin: 0 .32em 0 0;
    font-size: 1.06em;
    line-height: inherit;
    vertical-align: 0;
  }

  .gg-article .line-support-section > h2,
  .gg-article .rescue-support-section > h2 {
    margin: 27px 0 11px;
    padding: 11px 12px;
    border: 0;
    border-radius: 5px;
    background: #edf6fd;
    font-size: clamp(18px, 5.15vw, 21px);
    line-height: 1.34;
  }

  .gg-article .toc {
    margin-top: 14px;
  }

  .gg-article .toc h2 {
    margin: 0;
    padding: 0 0 7px;
    border-radius: 0;
    font-size: 15.5px;
  }

  .gg-article .toc a {
    min-height: 37px;
    grid-template-columns: 13px minmax(0, 1fr);
    gap: 6px;
    padding: 5px 1px;
    font-size: 13.5px;
    line-height: 1.38;
  }

  .gg-article .toc a::before {
    font-size: 8px;
  }

  .gg-article.deposit-methods-article .method-summary-rail {
    grid-template-columns: 1fr;
    margin-block: 10px 4px;
  }

  .gg-article.deposit-methods-article .method-summary-card:nth-child(n) {
    min-height: 48px;
    grid-template-columns: 36px max-content minmax(0, 1fr);
    gap: 7px;
    padding: 6px 8px;
    border-right: 0;
    border-bottom: 1px solid #d7e4ed;
  }

  .gg-article.deposit-methods-article .method-summary-card:last-child {
    border-bottom: 0;
  }

  .gg-article.deposit-methods-article .method-summary-card::before {
    width: 36px;
    font-size: 13px;
  }

  .gg-article.deposit-methods-article .method-summary-card h3 {
    font-size: 14px;
  }

  .gg-article.deposit-methods-article .method-summary-link {
    font-size: clamp(10.5px, 3.15vw, 12px);
  }
}

@media (max-width: 340px) {
  .gg-article h2 {
    padding-inline: 10px;
    font-size: 18px;
  }

  .gg-article h2[data-section-number] {
    gap: 6px;
  }

  .gg-article .toc a {
    font-size: 13px;
  }

  .gg-article.deposit-methods-article .method-summary-card:nth-child(n) {
    grid-template-columns: 34px max-content minmax(0, 1fr);
    gap: 5px;
    padding-inline: 6px;
  }

  .gg-article.deposit-methods-article .method-summary-card h3 {
    font-size: 13.5px;
  }

  .gg-article.deposit-methods-article .method-summary-link {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gg-article .image-cta::after,
  .gg-article .article-hero-figure picture::after {
    animation: none;
  }
}
