/* TopCustomSong shared styles — used by all SEO/secondary pages.
   Kept separate from topcustomsong.html (which inlines its own copy for
   the primary landing page) so the secondary pages stay lightweight.
*/

:root {
  --ink: #0a0a0a;
  --ink-2: #1f2937;
  --muted: #6b7280;
  --muted-2: #9ca3af;
  --line: #e5e7eb;
  --line-2: #d1d5db;
  --bg: #f5f5f4;
  --card: #ffffff;
  --brand: #7c3aed;
  --brand-2: #6d28d9;
  --brand-soft: #f3eaff;
  --gold: #facc15;
  --gold-2: #ca8a04;
  --gold-soft: #fef9c3;
  --black: #0a0a0a;
  --cta: #0a0a0a;
  --good: #16a34a;
  --bad: #dc2626;
  --bad-soft: #fee2e2;
  --hot: #ef4444;
  --hot-2: #b91c1c;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0; background: var(--bg); color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Top disclosure strip */
.strip {
  background: var(--black); color: #e5e7eb;
  font-size: 12.5px; letter-spacing: 0.2px;
  padding: 8px 16px; text-align: center;
}
.strip strong { color: #fff; }

/* Nav */
.nav { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--ink); letter-spacing: -0.3px; text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--black); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px;
}
.nav-meta { font-size: 12.5px; color: var(--muted); }
.nav-meta a { color: var(--muted); }

/* Article shell */
.wrap { max-width: 880px; margin: 0 auto; padding: 0 22px; }
.wrap.wide { max-width: 1120px; }

.crumbs {
  font-size: 12.5px; color: var(--muted);
  padding: 14px 0 4px;
}
.crumbs a { color: var(--muted); }
.crumbs .sep { margin: 0 6px; color: var(--muted-2); }

.article-hero {
  padding: 8px 0 22px;
}
.article-eyebrow {
  font-size: 12px; font-weight: 800; color: var(--hot);
  letter-spacing: 1.6px; text-transform: uppercase; margin-bottom: 10px;
}
h1.article-h1 {
  font-size: 40px; line-height: 1.1; font-weight: 800;
  margin: 0 0 14px; letter-spacing: -1px; color: var(--ink);
}
h1 .accent {
  background: linear-gradient(135deg, var(--brand), #db2777);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.article-lede {
  font-size: 18px; color: var(--muted); margin: 0 0 16px; line-height: 1.5;
}
.article-byline {
  font-size: 13px; color: var(--muted);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.article-byline strong { color: var(--ink); }
.byline-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #db2777);
  color: #fff; font-weight: 800; font-size: 11px;
  display: flex; align-items: center; justify-content: center;
}

/* Verdict / TL;DR card */
.verdict {
  background: #fff5f5; border: 1px solid #fecaca; border-radius: 12px;
  padding: 18px 22px; margin: 22px 0;
}
.verdict-label {
  font-size: 11.5px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--hot-2); margin-bottom: 6px;
}
.verdict h2 {
  margin: 0 0 8px; font-size: 19px; font-weight: 800; color: var(--ink); letter-spacing: -0.3px;
}
.verdict p { margin: 0 0 12px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.verdict-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, var(--hot) 0%, var(--hot-2) 100%);
  color: #fff; padding: 12px 22px; border-radius: 8px;
  font-weight: 800; font-size: 14.5px; text-decoration: none;
  box-shadow: 0 6px 16px rgba(239,68,68,0.35);
  transition: transform 0.08s, box-shadow 0.12s;
}
.verdict-cta:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(239,68,68,0.45); }

/* Body content */
.body h2 {
  font-size: 26px; font-weight: 800; color: var(--ink);
  letter-spacing: -0.5px; margin: 36px 0 12px;
}
.body h3 {
  font-size: 18px; font-weight: 800; color: var(--ink);
  margin: 24px 0 8px;
}
.body p { font-size: 16px; line-height: 1.7; color: var(--ink-2); margin: 0 0 14px; }
.body ul, .body ol { padding-left: 22px; margin: 8px 0 16px; }
.body li { font-size: 16px; line-height: 1.65; color: var(--ink-2); margin-bottom: 8px; }
.body li strong { color: var(--ink); font-weight: 700; }
.body a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.body a.cta {
  display: inline-block; background: var(--cta); color: #fff;
  padding: 12px 22px; border-radius: 8px; font-weight: 800; text-decoration: none;
  margin: 8px 0;
}
.body a.cta:hover { background: #1f2937; }
.body a.hot {
  background: linear-gradient(135deg, var(--hot) 0%, var(--hot-2) 100%);
  box-shadow: 0 6px 14px rgba(239,68,68,0.3);
}

/* Compact ranked card (smaller than main page's) */
.minicard {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 20px; margin: 18px 0;
  display: grid; grid-template-columns: 60px 1fr auto; gap: 16px; align-items: center;
  text-decoration: none; color: var(--ink);
  transition: border-color 0.12s, box-shadow 0.12s;
}
.minicard:hover { text-decoration: none; border-color: var(--line-2); box-shadow: 0 8px 18px rgba(15,23,42,0.06); }
.minicard.primary { border-color: var(--hot); background: #fff5f5; }
.minicard.primary:hover { box-shadow: 0 10px 24px rgba(239,68,68,0.18); }
.minicard img { width: 60px; height: 60px; border-radius: 12px; box-shadow: 0 4px 10px rgba(15,23,42,0.1); }
.minicard .mc-body { min-width: 0; }
.minicard .mc-name { font-size: 18px; font-weight: 800; letter-spacing: -0.3px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.minicard .mc-name b { color: var(--brand); }
.minicard .mc-tag { font-size: 11px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase; color: var(--muted); padding: 3px 7px; background: #f1f5f9; border-radius: 4px; }
.minicard.primary .mc-tag { color: var(--hot-2); background: var(--bad-soft); }
.minicard .mc-sub { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.minicard .mc-cta {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--cta); color: #fff;
  padding: 10px 16px; border-radius: 8px; font-weight: 800; font-size: 14px;
  white-space: nowrap;
}
.minicard.primary .mc-cta {
  background: linear-gradient(135deg, var(--hot) 0%, var(--hot-2) 100%);
  box-shadow: 0 4px 12px rgba(239,68,68,0.3);
}

/* Comparison table */
.ctable {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; margin: 18px 0 8px;
}
.ctable table { width: 100%; border-collapse: collapse; }
.ctable th, .ctable td { padding: 12px 16px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--line); }
.ctable thead th { font-size: 11.5px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); background: #fafafa; }
.ctable thead th.col-1 { color: var(--hot-2); background: #fff5f5; }
.ctable td.col-1 { background: #fffaf9; font-weight: 600; }
.ctable td.feat { font-weight: 600; color: var(--ink-2); }
.ctable .yes { color: var(--good); font-weight: 800; }
.ctable .no { color: var(--bad); font-weight: 800; }
.ctable .partial { color: #f97316; font-weight: 700; }
.ctable tr:last-child td { border-bottom: none; }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 14px 0; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; cursor: pointer; }
.faq details[open] { box-shadow: 0 6px 18px rgba(15,23,42,0.06); }
.faq summary { font-weight: 700; color: var(--ink); font-size: 15px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--hot); font-weight: 800; font-size: 18px; }
.faq details[open] summary::after { content: "−"; }
.faq p { font-size: 14.5px; color: var(--muted); line-height: 1.6; margin: 10px 0 2px; }

/* Promo banner */
.promo-banner {
  background: linear-gradient(135deg, var(--ink) 0%, #1e293b 100%);
  border-radius: 12px; padding: 22px 26px; margin: 22px 0;
  display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center;
  color: #fff;
}
.promo-banner h3 { margin: 0 0 4px; font-size: 19px; letter-spacing: -0.3px; }
.promo-banner p { margin: 0; font-size: 14px; color: #cbd5e1; line-height: 1.5; }
.promo-banner .pcta {
  background: linear-gradient(135deg, var(--hot) 0%, var(--hot-2) 100%);
  color: #fff; padding: 13px 20px; border-radius: 8px;
  font-weight: 800; font-size: 14.5px; text-decoration: none;
  box-shadow: 0 6px 16px rgba(239,68,68,0.4);
  white-space: nowrap;
}
.promo-banner .pcta:hover { text-decoration: none; }

/* Related guides */
.related {
  margin: 40px 0 0;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 22px 24px;
}
.related h2 { font-size: 16px; font-weight: 800; color: var(--muted); letter-spacing: 1.4px; text-transform: uppercase; margin: 0 0 12px; }
.related-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.related-list a {
  display: block; padding: 14px 16px;
  background: #f8fafc; border: 1px solid var(--line); border-radius: 10px;
  color: var(--ink); text-decoration: none;
  font-size: 14.5px; font-weight: 600;
}
.related-list a:hover { background: #fff; border-color: var(--hot); text-decoration: none; }

/* Footer */
footer { margin-top: 60px; padding: 32px 22px 48px; background: var(--black); color: #cbd5e1; font-size: 13px; line-height: 1.6; }
footer .foot-inner { max-width: 880px; margin: 0 auto; }
footer h4 { color: #fff; font-size: 14px; margin: 0 0 8px; font-weight: 700; }
footer .disclosure { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 14px 16px; margin-bottom: 18px; }
footer .meta { color: #94a3b8; font-size: 12px; }
footer a { color: #c4b5fd; }

/* ---------- Long-page formatting upgrades ---------- */

/* Reading time pill */
.reading-time {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 700; color: var(--muted);
  background: #f1f5f9; padding: 4px 10px; border-radius: 999px;
  letter-spacing: 0.2px;
}
.reading-time::before { content: "⏱"; font-size: 13px; }

/* Sticky TOC layout — only kicks in on wide screens */
.long-page { max-width: 1180px; }
.toc-sticky {
  display: none;
  position: sticky; top: 78px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 18px; max-height: calc(100vh - 100px); overflow-y: auto;
}
.toc-sticky .toc-label {
  font-size: 11px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
}
.toc-sticky ol { margin: 0; padding-left: 0; list-style: none; counter-reset: tocnum; }
.toc-sticky li { counter-increment: tocnum; font-size: 13px; line-height: 1.45; margin-bottom: 4px; }
.toc-sticky li::before {
  content: counter(tocnum, decimal-leading-zero) " ";
  color: var(--muted-2); font-weight: 700; font-size: 11px; margin-right: 4px;
}
.toc-sticky a {
  color: var(--ink-2); text-decoration: none;
  display: inline-block; padding: 4px 0; border-left: 2px solid transparent; padding-left: 8px; margin-left: -10px;
  transition: color 0.12s, border-color 0.12s;
}
.toc-sticky a:hover { color: var(--brand); text-decoration: none; }
.toc-sticky a.active {
  color: var(--hot-2); border-left-color: var(--hot);
  font-weight: 700;
}
@media (min-width: 1100px) {
  .long-layout {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 36px; align-items: start;
  }
  .toc-sticky { display: block; }
  /* Hide the inline TOC inside the body when sticky TOC is active */
  .long-layout .toc { display: none; }
}

/* Numbered section headings */
.body.numbered { counter-reset: secnum; }
.body.numbered h2 { counter-increment: secnum; }
.body.numbered h2::before {
  content: counter(secnum, decimal-leading-zero);
  display: inline-block;
  font-size: 14px; font-weight: 800; letter-spacing: 1px;
  color: var(--hot); margin-right: 12px;
  vertical-align: middle;
  background: var(--bad-soft); padding: 4px 10px; border-radius: 6px;
}

/* Section divider rule between H2 blocks for visual rhythm */
.body.numbered h2 {
  padding-top: 18px; border-top: 1px solid var(--line); margin-top: 44px;
}
.body.numbered h2:first-child { border-top: none; padding-top: 0; margin-top: 24px; }

/* Back-to-top floating button */
.back-to-top {
  position: fixed; right: 18px; bottom: 110px; z-index: 35;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--black); color: #fff;
  border: 0; cursor: pointer; font-size: 18px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s, transform 0.12s;
}
.back-to-top.show { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-2px); }

/* Section anchor scroll offset for sticky nav */
.body h2[id], .body h3[id] { scroll-margin-top: 78px; }

@media (max-width: 720px) {
  h1.article-h1 { font-size: 30px; }
  .article-lede { font-size: 16px; }
  .body h2 { font-size: 22px; }
  .body p, .body li { font-size: 15px; }
  .minicard { grid-template-columns: 48px 1fr; gap: 12px; padding: 14px; }
  .minicard img { width: 48px; height: 48px; border-radius: 10px; }
  .minicard .mc-cta { grid-column: 1 / -1; justify-content: center; margin-top: 4px; }
  .related-list { grid-template-columns: 1fr; }
  .promo-banner { grid-template-columns: 1fr; }
  .promo-banner .pcta { width: 100%; text-align: center; }
  .ctable th, .ctable td { padding: 10px 10px; font-size: 13px; }
  .ctable { overflow-x: auto; }
  .body.numbered h2::before { font-size: 12px; padding: 3px 8px; margin-right: 8px; }
  .back-to-top { bottom: 90px; right: 14px; }
}

/* Editorial Note — small italic disclosure under the byline */
.editorial-note {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  font-style: italic;
  margin: 10px 0 0;
  padding: 10px 14px;
  border-left: 3px solid var(--line);
  background: #f8fafc;
  border-radius: 0 6px 6px 0;
}
.editorial-note a { color: var(--muted); text-decoration: underline; }
.editorial-note a:hover { color: var(--ink-2); }

/* Why You Can Trust callout — small box near top of article */
.trust-callout {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 22px 0;
}
.trust-callout .tc-label {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.trust-callout h3 {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--ink);
  letter-spacing: -0.2px;
}
.trust-callout ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.trust-callout li {
  font-size: 14px;
  color: var(--ink-2);
  padding: 4px 0 4px 22px;
  position: relative;
  line-height: 1.5;
}
.trust-callout li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 4px;
  color: #16a34a;
  font-weight: 800;
}
.trust-callout .tc-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: underline;
}
.trust-callout .tc-link:hover { color: var(--ink-2); }
