/* Chenab Times App Growth Suite — Front-end Styles
   Zero layout shift: all blocks use contain:layout */

/* ─── Article inline block ─────────────────────────────────────────────── */
.cgs-article-block {
  display: block;
  margin: 28px 0;
  padding: 20px 24px;
  border-radius: 12px;
  font-family: inherit;
  contain: layout;
  clear: both;
}

.cgs-ab-headline {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.35;
}

.cgs-ab-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 16px;
}

.cgs-feature {
  font-size: 13px;
  opacity: .9;
}

.cgs-rating {
  font-size: 13px;
  margin-bottom: 16px;
  opacity: .85;
}

.cgs-ab-cta {
  display: inline-block;
  background: #fff;
  color: #006837;
  padding: 10px 22px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity .15s;
}

.cgs-ab-cta:hover {
  opacity: .9;
  color: #006837;
  text-decoration: none;
}

/* ─── Article end block ─────────────────────────────────────────────────── */
.cgs-article-end {
  margin: 28px 0;
  padding: 16px 20px;
  background: #f9f9f9;
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  line-height: 1.6;
  contain: layout;
}

.cgs-article-end a {
  font-weight: 700;
  text-decoration: none;
}

.cgs-article-end a:hover {
  text-decoration: underline;
}

/* ─── Footer CTA ────────────────────────────────────────────────────────── */
.cgs-footer-cta {
  width: 100%;
  padding: 20px 0;
  margin-top: 32px;
}

.cgs-footer-cta-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cgs-footer-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  flex-shrink: 0;
}

.cgs-footer-text {
  flex: 1;
  min-width: 180px;
  color: #fff;
}

.cgs-footer-text strong {
  display: block;
  font-size: 16px;
  margin-bottom: 2px;
}

.cgs-footer-text span {
  font-size: 13px;
  opacity: .85;
}

/* ─── Shared button style ───────────────────────────────────────────────── */
.cgs-btn-white {
  display: inline-block;
  background: #fff;
  color: #006837;
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .15s;
  border: none;
  cursor: pointer;
}

.cgs-btn-white:hover {
  opacity: .9;
  color: #006837;
  text-decoration: none;
}

.cgs-btn-sm {
  padding: 7px 16px;
  font-size: 13px;
}

/* ─── Mobile sticky bar ─────────────────────────────────────────────────── */
.cgs-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  gap: 12px;
  /* Reserve space to prevent CLS — height is consistent */
  min-height: 52px;
  box-shadow: 0 -2px 12px rgba(0,0,0,.18);
}

.cgs-sticky-text {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cgs-sticky-close {
  background: none;
  border: none;
  color: rgba(255,255,255,.7);
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  flex-shrink: 0;
}

/* Prevent sticky bar from overlapping content */
body.cgs-has-sticky {
  padding-bottom: 60px;
}

/* ─── Header button ─────────────────────────────────────────────────────── */
/* Injected inline in PHP — styles defined there to avoid FOUC */

/* ─── QR Code ───────────────────────────────────────────────────────────── */
.cgs-qr-wrap {
  display: inline-block;
  text-align: center;
}

.cgs-qr-label {
  font-size: 12px;
  color: #666;
  margin-top: 6px;
}

/* ─── Accessibility / Motion safety ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .cgs-ab-cta,
  .cgs-btn-white,
  .cgs-sticky-close {
    transition: none;
  }
}

/* ─── Dark mode ─────────────────────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  .cgs-article-end {
    background: #1e1e1e;
    color: #e0e0e0;
  }
}

/* ─── Mobile adjustments ────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .cgs-article-block {
    padding: 16px;
  }
  .cgs-footer-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
