/* ============================================================
   CustomSongGuide.com: competitor review components
   ============================================================
   The reference layout for competitor reviews (a ForeverSongs
   competitor reviewed on its own terms), first used on the Suno review,
   September 2026. Loads after /styles.css and /assets/guide-blocks.css
   and uses their --cs-* tokens.

   The rule this file follows: editorial sections are typography and
   whitespace, not boxes. Design is spent only where it tells the reader
   something:
     .cr-ad        the one advertisement (navy, labelled AD)
     .cr-table     data tables (pricing)
     .cr-process   a quiet one-line process
     .cr-evidence  review-platform figures and a customer quote
     .cr-takeaway  one decision line, set between rules
     .cr-related   related reading, set like a publication's aside
     .cr-pick      the single editorial recommendation
     .cr-fit       a short "good fit if" list
     .cr-faq       every FAQ answer visible
     .cr-sources   one muted line

   Colour roles: white and neutrals are editorial; purple is rare
   editorial emphasis; navy is advertising or the main conversion
   moment; orange is a button and nothing else.
   ============================================================ */

/* ---- the reading column ---- */
.cr-page .article-body p,
.cr-page .article-body li {
  max-width: 66ch;
}
.cr-page .article-body strong {
  font-weight: 700;
}
.cr-page .article-note,
.cr-page .article-body p.cr-note {
  font-size: 14px;
  line-height: 1.55;
  color: var(--cs-muted);
  margin-top: 14px;
}

/* One cohesive answer, set a size above body copy rather than bolded. */
.cr-page .article-short-answer p {
  font-size: 18px;
  line-height: 1.62;
  font-weight: 500;
  color: var(--cs-navy);
}

/* ---- advertisement ----
   Deliberately not editorial: navy ground, white copy, an AD pill, a
   short light button. No stars, score, "Our Pick", logo or icons. */
.cr-ad {
  margin: 28px 0 0;
  background: var(--cs-navy);
  color: #fff;
  border-radius: 14px;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 28px;
  align-items: center;
}
.cr-ad-tag {
  display: inline-block;
  background: #fff;
  color: var(--cs-navy);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 999px;
  vertical-align: 2px;
  margin-right: 10px;
}
.cr-page .cr-ad p {
  margin: 0;
  color: #fff;
  max-width: none;
}
.cr-page .cr-ad .cr-ad-head {
  font-size: 17.5px;
  font-weight: 800;
  line-height: 1.35;
}
.cr-page .cr-ad .cr-ad-body {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
}
.cr-ad-act {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.cr-page .cr-ad-cta {
  display: inline-block;
  background: #fff;
  color: var(--cs-navy) !important;
  font-size: 14.5px;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none !important;
  white-space: nowrap;
}
.cr-page .cr-ad-cta:hover {
  background: var(--cs-tint-navy);
}
.cr-page .cr-ad .cr-ad-disc {
  font-size: 12px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.66);
}

/* ---- data table ---- */
.cr-table-wrap {
  margin: 24px 0 0;
}
.cr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.45;
  color: var(--cs-ink);
}
.cr-table th,
.cr-table td {
  text-align: left;
  vertical-align: top;
  padding: 13px 12px;
  border-bottom: 1px solid var(--cs-line);
}
.cr-table th:first-child,
.cr-table td:first-child {
  padding-left: 0;
}
.cr-table thead th {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--cs-muted);
  border-bottom: 2px solid var(--cs-navy);
  padding-top: 0;
}
.cr-table tbody th {
  font-size: 16px;
  font-weight: 800;
  color: var(--cs-navy);
}
.cr-table .num {
  font-variant-numeric: tabular-nums;
}

/* ---- process line ---- */
.cr-page .cr-process {
  list-style: none;
  margin: 26px 0 0;
  padding: 12px 0;
  border-block: 1px solid var(--cs-line);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  max-width: none;
}
.cr-page .cr-process li {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--cs-navy);
}
.cr-process li + li::before {
  content: '\2192';
  color: var(--cs-purple);
  padding: 0 14px;
}

/* ---- evidence ---- */
.cr-evidence {
  margin: 26px 0 0;
  border-top: 2px solid var(--cs-navy);
}
.cr-figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--cs-line);
}
.cr-figures > div {
  padding: 16px 16px 16px 0;
}
.cr-figures > div + div {
  padding-left: 18px;
  border-left: 1px solid var(--cs-line);
}
.cr-fig-v {
  display: block;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1;
  color: var(--cs-navy);
  font-variant-numeric: tabular-nums;
}
.cr-fig-v small {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--cs-muted);
}
.cr-fig-k {
  display: block;
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--cs-muted);
}
.cr-quote {
  margin: 22px 0 0;
  padding: 2px 0 2px 20px;
  border-left: 3px solid var(--cs-line-2);
}
.cr-quote blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.55;
  font-style: italic;
  color: var(--cs-navy);
  max-width: 60ch;
}
.cr-quote figcaption {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--cs-ink-2);
}
.cr-page .article-body p.cr-more {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 700;
}

/* ---- takeaway line ---- */
.cr-page .article-body p.cr-takeaway {
  margin: 28px 0 0;
  padding: 18px 0;
  border-block: 1px solid var(--cs-line);
  font-size: 20px;
  line-height: 1.5;
  color: var(--cs-navy);
  max-width: none;
}
.cr-page .article-body p.cr-takeaway strong {
  box-shadow: inset 0 -0.35em 0 var(--cs-tint-purple);
}

/* ---- related reading ---- */
.cr-related {
  margin: 40px 0 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--cs-purple);
}
.cr-page .cr-related p {
  margin: 6px 0 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--cs-ink-2);
  max-width: 62ch;
}
.cr-page .cr-related .cr-related-head {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--cs-navy);
}
.cr-page .cr-related .cr-related-link {
  margin-top: 10px;
  font-weight: 700;
}

/* ---- the one editorial recommendation ---- */
.cr-pick {
  margin: 0;
}
.cr-page .cr-pick-proof {
  display: inline-block;
}
.cr-pick-act {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}
.cr-page .cr-btn {
  display: inline-block;
  background: var(--cs-orange);
  color: #fff !important;
  font-size: 15px;
  font-weight: 800;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none !important;
  white-space: nowrap;
}
.cr-page .cr-btn:hover {
  background: #e63a1e;
}
.cr-page .article-body p.cr-disc {
  margin: 0;
  font-size: 13px;
  font-style: italic;
  color: var(--cs-muted);
}

/* ---- good fit list ---- */
.cr-page .cr-fit {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.cr-page .cr-fit li {
  position: relative;
  margin: 0;
  padding-left: 28px;
}
.cr-fit li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 16px;
  height: 16px;
  background: var(--cs-teal);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 16px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* ---- FAQ, all open ---- */
.cr-faq {
  margin-top: 18px;
}
.cr-faq > div {
  padding: 20px 0;
  border-bottom: 1px solid var(--cs-line);
}
.cr-faq > div:first-child {
  border-top: 1px solid var(--cs-line);
}
.cr-page .cr-faq h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--cs-navy);
  margin: 0;
  line-height: 1.35;
}
.cr-page .cr-faq p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--cs-ink);
  margin: 8px 0 0;
  max-width: 66ch;
}
.cr-page .cr-faq p + p {
  margin-top: 10px;
}

/* ---- sources ---- */
.cr-page .cr-sources {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--cs-line);
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--cs-muted);
}
.cr-sources b {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--cs-navy);
  margin-right: 8px;
}

/* ---- narrow ---- */
@media (max-width: 760px) {
  .cr-ad {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px 18px;
  }
  .cr-ad-act {
    flex-direction: row;
    justify-content: space-between;
  }
  .cr-page .article-short-answer p {
    font-size: 17px;
  }
  .cr-fig-v {
    font-size: 25px;
  }
  .cr-figures > div + div {
    padding-left: 12px;
  }

  /* Tables: one block per row, label on the left, separated by rules
     rather than boxed, so a phone gets a list, not a stack of cards. */
  .cr-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .cr-table,
  .cr-table tbody,
  .cr-table tr,
  .cr-table th,
  .cr-table td {
    display: block;
  }
  .cr-table tr {
    padding: 12px 0;
    border-bottom: 1px solid var(--cs-line);
  }
  .cr-table tr:first-child {
    border-top: 2px solid var(--cs-navy);
  }
  .cr-table tbody th,
  .cr-table td {
    border: 0;
    padding: 3px 0;
  }
  .cr-table tbody th {
    padding-bottom: 6px;
  }
  .cr-table td {
    display: grid;
    grid-template-columns: 9.5em minmax(0, 1fr);
    gap: 10px;
    font-size: 14.5px;
  }
  .cr-table td::before {
    content: attr(data-label);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--cs-muted);
    padding-top: 2px;
  }
}

/* ---- tightened ad and pick (Mel, September 23) ---- */
.cr-ad {
  padding: 14px 18px;
  gap: 10px 22px;
  margin-top: 24px;
}
.cr-page .cr-ad .cr-ad-head {
  font-size: 16.5px;
}
.cr-page .cr-ad .cr-ad-body {
  margin-top: 4px;
  font-size: 14.5px;
  line-height: 1.5;
}
.cr-ad-act {
  gap: 4px;
}
.cr-page .cr-ad-cta {
  font-size: 14px;
  padding: 9px 16px;
}
/* The disclosure stays, but as one small line that never wraps. */
.cr-page .cr-ad .cr-ad-disc {
  font-size: 10.5px;
  line-height: 1.2;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.55);
}

.cr-page .article-body p.cr-proof {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}
.cr-stars {
  color: #f5b301;
  font-size: 17px;
  letter-spacing: 2px;
  line-height: 1;
}
.cr-pick-act {
  margin-top: 16px;
  gap: 8px 14px;
}
.cr-page .cr-btn {
  background: var(--cs-navy);
  color: #fff !important;
  font-size: 14.5px;
  padding: 10px 20px;
}
.cr-page .cr-btn:hover {
  background: #0b3a63;
}
.cr-page .article-body p.cr-disc {
  font-size: 12px;
}
@media (max-width: 760px) {
  .cr-ad {
    padding: 14px 16px;
  }
  .cr-ad-act {
    align-items: center;
    gap: 12px;
  }
}
.cr-page .article-body p.cr-proof {
  display: block;
}
.cr-stars {
  display: inline-block;
  margin-right: 8px;
  vertical-align: -1px;
}
@media (max-width: 760px) {
  .cr-ad-act {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}
/* Our Pick, tightened (Mel, September 23) */
.cr-page .cr-pick p {
  line-height: 1.6;
  margin-top: 12px;
}
.cr-page .cr-pick p:first-child {
  margin-top: 16px;
}
.cr-page .article-body .cr-pick p.cr-proof {
  margin-top: 10px;
  white-space: nowrap;
}
@media (max-width: 420px) {
  .cr-page .article-body .cr-pick p.cr-proof {
    white-space: normal;
  }
}
.cr-pick-act {
  margin-top: 14px;
}
/* Phone: stars above, the rating on one line beneath them. */
@media (max-width: 520px) {
  .cr-page .article-body .cr-pick p.cr-proof {
    white-space: nowrap;
    font-size: 14.5px;
  }
  .cr-page .cr-pick .cr-stars {
    display: block;
    margin: 0 0 4px;
    font-size: 15px;
  }
}
/* Multi-paragraph answers inside the site's standard expandable FAQ. */
.cr-page .article-faq-item p + p {
  margin-top: 10px;
}
