/* Search pages (rate-app.com/<slug>, built by scripts/seo/build-guides.mjs).
   One readable column on the site's tokens (styles.css): the same nav,
   footer, buttons and FAQ cards as the landing page. */

.guide-page { background: var(--bg); }

.guide {
  max-width: 760px;
  margin: 0 auto;
  padding: 104px var(--gutter) 24px;
}

.guide-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 26px;
}
.guide-crumbs a { color: var(--text-2); }
.guide-crumbs a:hover { color: var(--text); }

.guide-hero { padding-bottom: 36px; border-bottom: 1px solid var(--border); }
.guide-title {
  font-family: var(--sans);
  font-weight: 900;
  font-size: clamp(34px, 6.4vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--text);
  text-wrap: balance;
}
.guide-lede {
  margin-top: 20px;
  font-size: clamp(16px, 1.9vw, 20px);
  line-height: 1.6;
  color: var(--text-2);
  max-width: 640px;
}
.guide-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-top: 28px;
}
.guide-cta-note { font-size: 13px; color: var(--text-3); }

.guide-section { padding-top: 44px; }
.guide-section h2,
.guide-block h2 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(24px, 3.4vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text);
  text-wrap: balance;
  margin-bottom: 16px;
}
.guide-section p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-2);
  margin-bottom: 16px;
}
.guide-section ul {
  list-style: none;
  margin: 6px 0 16px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.guide-section li {
  position: relative;
  padding-left: 24px;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text-2);
}
.guide-section li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.66em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient);
}

.guide-block { padding-top: 56px; }

/* "How RATE works": three numbered cards. */
.guide-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  counter-reset: step;
}
.guide-steps li {
  counter-increment: step;
  position: relative;
  padding: 18px 20px 18px 64px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-2);
}
.guide-steps li strong { display: block; color: var(--text); font-size: 16.5px; margin-bottom: 2px; }
.guide-steps li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  background: var(--gradient);
}

.guide-block .faq-list { margin-top: 8px; max-width: none; }

.guide-related {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.guide-related a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.guide-related a::after { content: '\203A'; color: var(--salmon); font-size: 20px; line-height: 1; }
.guide-related a:hover { border-color: rgba(226,121,102,0.4); transform: translateY(-1px); }

.guide-final {
  margin: 64px 0 40px;
  padding: 36px 26px;
  text-align: center;
  border-radius: 22px;
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(226,121,102,0.16), rgba(226,121,102,0) 60%),
    var(--card);
  border: 1px solid rgba(226,121,102,0.25);
}
.guide-final h2 {
  font-weight: 900;
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
  text-wrap: balance;
}
.guide-final p {
  margin: 12px auto 22px;
  max-width: 460px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-2);
}

@media (min-width: 640px) {
  .guide-related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* "Updated <date> · By the RATE team" under the lede (freshness, 2026-10-20). */
.guide-updated { margin-top: 14px; font-size: 13px; color: var(--text-3); }

/* Comparison tables (scripts/seo content `table`, 2026-10-20). */
.guide-table-wrap { margin-top: 22px; overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; }
.guide-table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.45; }
.guide-table caption { caption-side: top; text-align: left; padding: 12px 16px 0; color: var(--text-3); font-size: 13px; }
.guide-table th, .guide-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--border); color: var(--text-2); }
.guide-table thead th { border-top: 0; color: var(--text); font-weight: 700; background: var(--card); }
.guide-table tbody th { color: var(--text); font-weight: 700; }
.guide-table .cell-label { display: none; }

/* Phones: each row is a card (column name, then value), never a sideways scroll. */
@media (max-width: 639px) {
  .guide-table, .guide-table tbody, .guide-table tr, .guide-table th, .guide-table td { display: block; }
  .guide-table caption { display: block; padding: 14px 16px 2px; }
  .guide-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .guide-table tr { padding: 14px 16px; border-top: 1px solid var(--border); }
  .guide-table tbody th { padding: 0 0 8px; border: 0; font-size: 15.5px; }
  .guide-table td { display: grid; grid-template-columns: minmax(0, 38%) minmax(0, 1fr); gap: 12px; padding: 5px 0; border: 0; }
  .guide-table .cell-label { display: block; color: var(--text-3); font-size: 13px; }
}

/* Data charts (scripts/seo content `chart`, the rating-statistics page, 2026-10-29).
   Plain HTML + CSS, every number printed. Coral = 8 to 10 (the match zone),
   slate = 1 to 3, white tints = everything else. */
.gstats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 4px 0 22px; }
.gstat { padding: 16px 16px 15px; background: var(--card); border: 1px solid var(--border); border-radius: 16px; }
.gstat b {
  display: block;
  font-weight: 900;
  font-size: clamp(28px, 5vw, 38px);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.gstat span { display: block; margin-top: 8px; font-size: 13.5px; line-height: 1.4; color: var(--text-2); }
.gstat.hot { border-color: rgba(226,121,102,0.35); }
.gstat.hot b { color: var(--salmon); }
@media (min-width: 640px) { .gstats:has(> :nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.gchart {
  margin: 22px 0 8px;
  padding: 18px 18px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  --lo: #8393AA;
  --mid: rgba(255,255,255,0.10);
  --bar: rgba(255,255,255,0.24);
}
.gchart .gchart-title { font-size: 15px; line-height: 1.4; font-weight: 700; color: var(--text); margin: 0 0 12px; text-wrap: balance; }
.gchart figcaption { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 12.5px; line-height: 1.45; color: var(--text-3); }
.gchart .gchart-legend { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.gchart .gchart-legend li { padding: 0; font-size: 12.5px; line-height: 1.4; color: var(--text-2); display: flex; align-items: center; gap: 7px; }
.gchart .gchart-legend li::before { content: none; }
.sw { flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--bar); }
.sw.hot, .sw.hi { background: var(--salmon); }
.sw.lo { background: var(--lo); }
.sw.mid { background: rgba(255,255,255,0.18); }
.sw.mark { width: 0; height: 12px; border-radius: 0; background: none; border-left: 2px dashed var(--text-2); }

/* Shared row: label left, big number right. */
.gchart-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.gchart-k { font-size: 15px; font-weight: 700; color: var(--text); }
.gchart-v { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.gchart-v small { font-size: 12px; font-weight: 600; color: var(--text-3); margin-left: 2px; letter-spacing: 0; }

/* Columns: how often each score 1-10 was given. */
.gcols { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; align-items: end; }
.gchart .gcols li { padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 190px; min-width: 0; }
.gchart .gcols li::before { content: none; }
.gcols-v { order: 1; margin-bottom: 6px; font-size: 11.5px; line-height: 1; color: var(--text-2); font-variant-numeric: tabular-nums; }
.gcols-bar { order: 2; width: 100%; min-height: 4px; border-radius: 6px 6px 3px 3px; background: var(--bar); }
.gcols-k { order: 3; margin-top: 8px; font-size: 14px; font-weight: 800; line-height: 1; color: var(--text); }
.gcols .hot .gcols-bar { background: var(--salmon); }
.gcols .hot .gcols-v { color: var(--salmon); font-weight: 700; }
@media (max-width: 420px) {
  .gcols { gap: 3px; }
  .gcols-v { font-size: 10px; letter-spacing: -0.03em; }
}

/* Split: share of 1-3 (left) and 8-10 (right) per rater pair. */
.gchart .gsplit, .gchart .gbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.gchart .gsplit li, .gchart .gbars li { padding: 0; font-size: inherit; }
.gchart .gsplit li::before, .gchart .gbars li::before { content: none; }
.gsplit-bar { display: flex; height: 14px; margin-top: 8px; border-radius: 999px; overflow: hidden; background: var(--mid); }
.gsplit-bar .lo { background: var(--lo); border-radius: 999px 0 0 999px; }
.gsplit-bar .hi { margin-left: auto; background: var(--salmon); border-radius: 0 999px 999px 0; }
.gsplit-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.gsplit-foot .lo { color: var(--lo); font-weight: 700; }
.gsplit-foot .hi { color: var(--salmon); font-weight: 700; }

/* Bars: average out of 10, with a dashed line at the overall average. */
.gbars-track { position: relative; height: 12px; margin-top: 8px; border-radius: 999px; background: var(--mid); }
.gbars-track span { display: block; height: 100%; border-radius: 999px; background: var(--bar); }
.gbars-track::after { content: ''; position: absolute; left: var(--mark); top: -4px; bottom: -4px; border-left: 2px dashed var(--text-2); }
.gbars .hot .gbars-track span { background: var(--salmon); }
.gbars .hot .gchart-v { color: var(--salmon); }
.gbars-n { display: block; margin-top: 6px; font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }

/* Email cells on the contact page (build-guides.mjs turns them into mailto links). */
.guide-table a[href^="mailto:"] { color: var(--salmon); white-space: nowrap; }
.guide-table a[href^="mailto:"]:hover { text-decoration: underline; }
