﻿/*
Theme Name: Shop Tech Score
Theme URI: https://shoptechscore.com
Description: GeneratePress child theme for Shop Tech Score — the independent guide to auto repair software. Brand palette: deep sky #0284C7 / slate #334155 / amber #F59E0B. Component styles live in assets/css/sts-components.css and sts-brand.css (enqueued in functions.php).
Author: Shop Tech Score
Template: generatepress
Version: 0.7.35
*/

/* Tokens are also defined in the enqueued brand CSS; redefined here so theme
   chrome renders correctly even if a component file fails to load. */
:root {
  --sts-primary:#0284C7; --sts-primary-dark:#0369A1; --sts-link:#0EA5E9;
  --sts-accent:#F59E0B; --sts-accent-dark:#D97706;
  --sts-heading:#334155; --sts-ink:#1E293B;
  --sts-dark:#0F172A; --sts-dark-2:#075985;
  --sts-muted:#64748B; --sts-muted-2:#94A3B8;
  --sts-border:#E2E8F0; --sts-surface:#F8FAFC;
  /* Live-design tokens (match sts-home-live.css) */
  --sts-navy:#08213f; --sts-blue-dark:#0369a1; --sts-container:1200px;
  --sts-border-live:#d7eaf8; --sts-wash:#f0f9ff;
  --sts-shadow-live:0 10px 30px rgba(8,33,63,.08);
}

/* ─── Links & headings ─── */
.entry-content a { color: var(--sts-primary-dark); text-decoration: underline; text-underline-offset: 2px; }
.entry-content a:hover { color: var(--sts-primary); }
h1, h2, h3, h4, .entry-title { color: var(--sts-navy); }
.entry-content h2 { border-bottom: 2px solid var(--sts-border); padding-bottom: 6px; margin-top: 2em; }
.entry-content h3 { color: var(--sts-primary-dark); }

/* ─── Site header / nav ─── */
.site-header { background: #fff; border-bottom: 1px solid var(--sts-border); }
.main-navigation, .main-navigation .main-nav ul { background: #fff; }
.main-navigation .main-nav ul li a { color: var(--sts-heading); font-weight: 600; }
.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li.current-menu-item a { color: var(--sts-primary); }
.site-logo .site-title, .site-title a { color: var(--sts-primary); font-weight: 800; }

/* ─── Buttons ─── */
.button, button, input[type="submit"], .wp-block-button__link {
  background: var(--sts-accent); color: #fff; border: none; border-radius: 8px; font-weight: 700;
}
.button:hover, button:hover, input[type="submit"]:hover, .wp-block-button__link:hover {
  background: var(--sts-accent-dark); color: #fff;
}

/* ─── Footer ─── */
.site-footer, .footer-widgets, .site-info { background: var(--sts-dark); color: var(--sts-muted-2); }
.site-footer a, .footer-widgets a, .site-info a { color: var(--sts-muted-2); }
.site-footer a:hover, .footer-widgets a:hover, .site-info a:hover { color: var(--sts-accent); }

/* GP prints both published and modified <time> tags as visible text on posts
   whose modified date differs; show one date, keep dateModified in markup. */
.entry-meta .updated:not(.published) { display: none; }

/* ─── Author bio box ─── */
.sts-author-bio {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--sts-surface); border: 1px solid var(--sts-border);
  border-radius: 12px; padding: 20px 24px; margin: 32px 0;
}
.sts-author-bio img { border-radius: 50%; flex-shrink: 0; background: #fff; border: 1px solid var(--sts-border); padding: 10px; box-sizing: border-box; }
.sts-author-bio .sts-author-name { font-weight: 700; color: var(--sts-ink); font-size: 16px; display: block; }
.sts-author-bio p { margin: 6px 0 0; color: var(--sts-muted); font-size: 14px; line-height: 1.55; }

/* ─── Reading progress bar ─── */
.sts-progress-bar { position: fixed; top: 0; left: 0; width: 100%; height: 3px; background: transparent; z-index: 99999; }
.sts-progress-bar span { display: block; height: 100%; width: 0; background: var(--sts-accent); transition: width .08s linear; }

/* ═══════════════════════════════════════════════════════════════
   DIRECTION 2 — site-wide chrome + templates (header, footer,
   typography, single posts, archives). Homepage body = sts-home.css.
   ═══════════════════════════════════════════════════════════════ */
:root {
  --sts-soft: #F4FAFF; --sts-soft2: #EAF3FC; --sts-line: #E8EEF6;
  --d-shadow-sm: 0 8px 22px rgba(15,40,80,.07); --d-shadow: 0 18px 44px rgba(15,40,80,.10);
}

/* Global typography — Inter, matching the live homepage design */
body, button, input, select, textarea {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif !important;
}
h1, h2, h3, h4, h5, h6, .entry-title, .main-title, .main-navigation, .sts-footer, .entry-content {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
}
h1, h2, h3, h4 { letter-spacing: -.02em; }

/* ── Header (live design: solid white, navy links, Inter) ── */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--sts-border);
}
.inside-header { padding-top: 16px; padding-bottom: 16px; align-items: center; }
.main-title { margin: 0; }
.main-title a { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; font-size: 21px; color: var(--sts-navy); }
.main-title a::before {
  content: "S"; width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--sts-link), var(--sts-primary)); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 800;
}
.main-navigation, .main-navigation .inside-navigation { background: transparent; }
.main-navigation .main-nav ul li a {
  font-weight: 800; font-size: 14px; color: var(--sts-navy);
  padding: 9px 13px; transition: color .15s;
}
.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li.current-menu-item a { color: var(--sts-blue-dark); background: transparent; }
.main-navigation.navigation-stuck, #sticky-navigation {
  background: #fff !important;
  box-shadow: 0 4px 16px rgba(8,33,63,.08);
}

/* ── Footer (live design: navy 5-column .sts-footer, markup in functions.php) ── */
.site-footer, .site-info { background: var(--sts-navy); }
.site-info .inside-site-info { max-width: none; padding: 0; }
.copyright-bar { padding: 0 !important; text-align: left; width: 100%; }
.sts-footer { background: var(--sts-navy); color: #dbeafe; padding: 56px 24px 24px; }
.sts-footer a { color: #fff; text-decoration: none; }
.sts-footer a:hover { color: #fff; text-decoration: underline; }
.sts-footer-grid { display: grid; gap: 36px; grid-template-columns: 1.4fr repeat(4, 1fr); margin: 0 auto; max-width: var(--sts-container); }
.sts-footer h2, .sts-footer h3 { color: #fff; margin: 0 0 12px; }
.sts-footer h2 { font-size: 19px; }
.sts-footer h3 { font-size: 15px; }
.sts-footer p, .sts-footer li { color: #dbeafe; font-size: 14px; line-height: 1.6; }
.sts-footer ul { list-style: none; margin: 0; padding: 0; }
.sts-footer-bottom { border-top: 1px solid rgba(255,255,255,.14); color: #bfdbfe; font-size: 13px; margin: 36px auto 0; max-width: var(--sts-container); padding-top: 20px; text-align: center; }
@media (max-width: 1024px) {
  .sts-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .sts-footer-grid { grid-template-columns: 1fr; }
}

/* ── Single post / page chrome (live design: navy headings, flat 8px cards) ── */
.single .entry-title, .single-post .entry-title { font-size: 38px; line-height: 1.14; color: var(--sts-navy); }
.single .entry-header { margin-bottom: 10px; }
.single .entry-meta, .entry-meta { font-size: 13.5px; color: var(--sts-muted); }
.single .entry-content { font-size: 17px; line-height: 1.75; }
.single .entry-content > h2 { font-size: 26px; }
.single .entry-content > h3 { font-size: 20px; color: var(--sts-ink); }
/* Comfortable reading column for long-form reviews (matches the approved preview width) */
.single-post .entry-header, .single-post .entry-content { max-width: 824px; margin-left: auto; margin-right: auto; }
.rsg-disclosure { background: var(--sts-wash); border: 1px solid var(--sts-border-live); border-radius: 8px; }
/* .rsg-cta keeps its sts-components amber button (already the live language) */
.sts-author-bio { border: 1px solid var(--sts-border-live); border-radius: 8px; box-shadow: 0 1px 1px rgba(8,33,63,.03); }

/* ── Archive / category listing: 3-up card grid (live design: flat white, 8px) ── */
.archive .site-main, .blog .site-main, .search-results .site-main {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start;
}
.archive .site-main > .page-header, .blog .site-main > .page-header, .search-results .site-main > .page-header,
.archive .site-main > .paging-navigation, .blog .site-main > .paging-navigation, .search-results .site-main > .paging-navigation,
.archive .site-main > nav, .blog .site-main > nav, .search-results .site-main > nav {
  grid-column: 1 / -1;
}
.archive .site-main > article, .blog .site-main > article, .search-results .site-main > article { margin-bottom: 0; }
.archive .inside-article, .blog .inside-article, .search-results .inside-article {
  background: #fff; border: 1px solid var(--sts-border-live); border-radius: 8px; padding: 22px;
  box-shadow: 0 1px 1px rgba(8,33,63,.03); transition: transform .16s, box-shadow .16s;
  height: 100%; overflow: hidden;
}
.archive .inside-article:hover, .blog .inside-article:hover { transform: translateY(-2px); box-shadow: var(--sts-shadow-live); }
/* Featured image bleeds to the card edges (injected via generate_before_content) */
.sts-card-thumb { display: block; margin: -22px -22px 16px; border-bottom: 1px solid var(--sts-border-live); }
.sts-card-thumb img { display: block; width: 100%; height: auto; }
.archive .entry-title, .blog .entry-title { font-size: 19px; line-height: 1.3; margin-bottom: 4px; }
.archive .entry-title a, .blog .entry-title a { color: var(--sts-navy); }
.archive .entry-title a:hover, .blog .entry-title a:hover { color: var(--sts-blue-dark); }
.archive .entry-meta, .blog .entry-meta { font-size: 12.5px; }
.archive .entry-summary, .blog .entry-summary { font-size: 14px; line-height: 1.6; }
/* No category/tag/comment furniture on cards */
.archive footer.entry-meta, .blog footer.entry-meta, .search-results footer.entry-meta { display: none; }
.archive .page-header .page-title, .archive .page-title { font-size: 32px; color: var(--sts-navy); }
@media (max-width: 1024px) {
  .archive .site-main, .blog .site-main, .search-results .site-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .archive .site-main, .blog .site-main, .search-results .site-main { grid-template-columns: 1fr; }
}

/* ── Interactive tools (Find Your Match / Compare / Margin Calculator) ── */
.sts-tool-wrap { max-width: 900px; margin: 0 auto; padding: 40px 20px 64px; }
.sts-tool-wrap h1 { font-size: 34px; margin-bottom: 10px; }
.sts-tool-lede { font-size: 17px; color: var(--sts-muted); line-height: 1.6; margin-bottom: 28px; }
.sts-tool { background: #fff; border: 1px solid var(--sts-border-live); border-radius: 8px; padding: 28px; box-shadow: 0 1px 1px rgba(8,33,63,.03); }
.sts-tool-btn {
  display: inline-block; background: var(--sts-blue-dark); color: #fff !important; font-weight: 800;
  font-size: 15px; padding: 12px 22px; border: none; border-radius: 8px; cursor: pointer; text-decoration: none;
}
.sts-tool-btn:hover { background: var(--sts-navy); }
.sts-tool-btn--ghost { background: transparent; color: var(--sts-blue-dark) !important; border: 1px solid var(--sts-border-live); }
.sts-tool-btn--ghost:hover { background: var(--sts-wash); }
.sts-tool-note { font-size: 13.5px; color: var(--sts-muted); margin-top: 14px; line-height: 1.55; }
.sts-tool-logo { object-fit: contain; border: 1px solid var(--sts-border-live); border-radius: 10px; background: #fff; padding: 5px; }
.sts-tool-tier { display: inline-block; font-size: 12px; font-weight: 800; border-radius: 999px; padding: 4px 10px; }
.sts-tool-tier--gold { background: #fef3c7; color: #92400e; }
.sts-tool-tier--silver { background: #e2e8f0; color: #334155; }
/* Quiz */
.sts-quiz-progress { font-size: 12.5px; font-weight: 800; letter-spacing: .08em; color: var(--sts-muted); text-transform: uppercase; margin-bottom: 6px; }
.sts-quiz-q { font-size: 24px; margin: 0 0 18px; }
.sts-quiz-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-bottom: 20px; }
.sts-quiz-opt {
  text-align: left; background: #fff; border: 1px solid var(--sts-border-live); border-radius: 8px;
  padding: 14px 16px; cursor: pointer; font: inherit; transition: border-color .12s, background .12s;
}
.sts-quiz-opt strong { display: block; color: var(--sts-navy); font-size: 15px; }
.sts-quiz-opt span { display: block; color: var(--sts-muted); font-size: 13px; margin-top: 3px; line-height: 1.4; }
.sts-quiz-opt:hover { border-color: var(--sts-link); }
.sts-quiz-opt.is-on { border: 2px solid var(--sts-primary); background: var(--sts-wash); padding: 13px 15px; }
.sts-quiz-nav { display: flex; gap: 10px; }
.sts-match { border: 1px solid var(--sts-border-live); border-radius: 8px; padding: 20px; margin-bottom: 16px; }
.sts-match--top { border: 2px solid var(--sts-primary); background: var(--sts-wash); }
.sts-match-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.sts-match-head h3 { margin: 0 0 4px; font-size: 20px; }
.sts-match-why { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.sts-match-why span { background: #fff; border: 1px solid var(--sts-border-live); border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--sts-blue-dark); padding: 4px 10px; }
.sts-match-price { font-size: 13.5px; color: var(--sts-muted); line-height: 1.5; }
/* Compare */
.sts-compare-picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.sts-compare-picks select { width: 100%; padding: 10px 12px; border: 1px solid var(--sts-border-live); border-radius: 8px; font: inherit; color: var(--sts-navy); background: #fff; }
.sts-compare-scroll { overflow-x: auto; }
.sts-compare-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.sts-compare-table th, .sts-compare-table td { border-bottom: 1px solid var(--sts-border-live); padding: 12px 10px; text-align: left; vertical-align: top; }
.sts-compare-table thead th { text-align: center; }
.sts-compare-table thead th div { font-weight: 800; color: var(--sts-navy); margin: 8px 0 6px; }
.sts-compare-table td.is-best { background: var(--sts-wash); }
.sts-compare-bestfor { font-size: 13px; line-height: 1.5; color: var(--sts-muted); }
.sts-bar { background: #e2e8f0; border-radius: 999px; height: 8px; margin-bottom: 6px; min-width: 90px; }
.sts-bar span { display: block; height: 100%; border-radius: 999px; background: var(--sts-primary); }
/* Comparison matrix (server-rendered) */
.sts-matrix-wrap { max-width: 1200px; }
.sts-matrix-wrap h2 { margin-top: 40px; }
.sts-matrix-table { font-size: 13.5px; }
.sts-matrix-table td, .sts-matrix-table th { white-space: nowrap; }
.sts-matrix-table .sts-matrix-bestfor { white-space: normal; min-width: 260px; font-size: 12.5px; color: var(--sts-muted); line-height: 1.45; }
.sts-matrix-product { font-weight: 700; }
.sts-matrix-product img { vertical-align: middle; margin-right: 6px; }
.sts-matrix-table th.is-sortable { cursor: pointer; user-select: none; }
.sts-matrix-table th.is-sortable:hover { color: var(--sts-blue-dark); }
.sts-matrix-table th.sort-desc::after { content: " \2193"; }
.sts-matrix-table th.sort-asc::after { content: " \2191"; }
.sts-matrix-filters { display: flex; gap: 10px; margin: 20px 0 4px; }
.sts-matrix-filter { background: #fff; border: 1px solid var(--sts-border-live); border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--sts-blue-dark); cursor: pointer; }
.sts-matrix-filter.is-on { background: var(--sts-primary); border-color: var(--sts-primary); color: #fff; }

/* Calculator */
.sts-calc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-bottom: 24px; }
.sts-calc-field span { display: block; font-size: 13px; font-weight: 600; color: var(--sts-muted); margin-bottom: 5px; }
.sts-calc-field input { width: 100%; padding: 10px 12px; border: 1px solid var(--sts-border-live); border-radius: 8px; font: inherit; font-weight: 700; color: var(--sts-navy); }
.sts-calc-row { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--sts-border-live); padding: 10px 0; font-size: 15px; }
.sts-calc-row strong { color: var(--sts-navy); }
.sts-calc-row--hi { background: var(--sts-wash); border: 1px solid var(--sts-border-live); border-radius: 8px; padding: 12px 14px; margin-top: 10px; }
.sts-calc-row--hi strong { color: var(--sts-accent-dark); font-size: 17px; }
@media (max-width: 720px) {
  .sts-compare-picks { grid-template-columns: 1fr; }
}

/* Header logo (SVG wordmark) sizing */
.site-header .site-logo img,
.site-header .header-image.is-logo-image {
  height: 48px;
  width: auto;
}
@media (max-width: 768px) {
  .site-header .site-logo img,
  .site-header .header-image.is-logo-image {
    height: 38px;
  }
}


/* ============================================================
   MERGED 2026-07-05 from assets/css/sts-components.css (perf:
   fewer render-blocking requests). Edit HERE, not the old file.
   ============================================================ */
/* ═══════════════════════════════════════════════════════════════
   SHOP TECH SCORE — Article Design Components
   Palette: deep sky #0284C7 · slate #334155 · amber #F59E0B · sky #0EA5E9
   Class names stay rsg-* on purpose (pipeline emits them). Do not rename
   without also updating FinalPipeline / the article HTML it generates.

   INSTALL: WordPress Customizer → Additional CSS → paste this
   (paste alongside sts-brand.css and sts-visuals.css)
   ═══════════════════════════════════════════════════════════════ */

:root {
  --sts-primary:#0284C7;      /* deep sky  (sky-600) */
  --sts-primary-dark:#0369A1; /* sky-700, hover/active */
  --sts-link:#0EA5E9;         /* sky-500, body links / H3 */
  --sts-accent:#F59E0B;       /* amber-500, CTAs / emphasis */
  --sts-accent-dark:#D97706;  /* amber-600, CTA hover */
  --sts-heading:#334155;      /* slate-700, headings */
  --sts-ink:#1E293B;          /* slate-800, darkest text */
  --sts-dark:#0F172A;         /* slate-900, dark backgrounds */
  --sts-dark-2:#075985;       /* sky-800, dark gradient partner */
  --sts-muted:#64748B;        /* slate-500 */
  --sts-muted-2:#94A3B8;      /* slate-400 */
  --sts-border:#E2E8F0;       /* slate-200 */
  --sts-surface:#F8FAFC;      /* slate-50 */
  --sts-pro:#16A34A;  --sts-pro-bg:#F0FDF4;
  --sts-con:#DC2626;  --sts-con-bg:#FEF2F2;
  --sts-stars:#F59E0B;
}


/* ─── VERDICT BOX ─── */
.rsg-verdict {
  background: linear-gradient(135deg, var(--sts-dark) 0%, var(--sts-dark-2) 100%);
  border-radius: 12px;
  padding: 28px 32px;
  margin: 32px 0;
  color: #fff;
}
.rsg-verdict h3 {
  color: var(--sts-accent);
  font-size: 20px;
  margin: 0 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}
.rsg-verdict .rsg-verdict-text {
  font-size: 17px;
  line-height: 1.6;
  color: #E2E8F0;
  margin: 0;
}
.rsg-verdict .rsg-score {
  display: inline-block;
  background: var(--sts-accent);
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  padding: 8px 18px;
  border-radius: 8px;
  margin-top: 16px;
}
/* Product logo chip at the top of the verdict box. Hard 64px cap so the
   source image (often 600px+) renders as a badge, not a billboard.
   Bumped from RSG's 48px per the 2026-07-04 annotation pass ("logo bigger"). */
.rsg-verdict-logo { margin-bottom: 12px; }
.rsg-verdict-logo .rsg-product-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  padding: 6px;
  background: rgba(255, 255, 255, 0.1);
  float: none;
}
/* Safety cap: any stray product logo rendered outside the verdict box. */
.rsg-product-logo { max-width: 64px; max-height: 64px; object-fit: contain; }


/* ─── PROS / CONS BOX ─── */
.rsg-proscons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 28px 0;
}
@media (max-width: 768px) {
  .rsg-proscons { grid-template-columns: 1fr; }
}
.rsg-pros, .rsg-cons {
  border-radius: 10px;
  padding: 24px;
}
.rsg-pros {
  background: var(--sts-pro-bg);
  border: 2px solid var(--sts-pro);
}
.rsg-cons {
  background: var(--sts-con-bg);
  border: 2px solid var(--sts-con);
}
.rsg-pros h4, .rsg-cons h4 {
  margin: 0 0 14px 0;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.rsg-pros h4 { color: var(--sts-pro); }
.rsg-cons h4 { color: var(--sts-con); }
.rsg-pros ul, .rsg-cons ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.rsg-pros li, .rsg-cons li {
  padding: 6px 0 6px 28px;
  position: relative;
  font-size: 15px;
  line-height: 1.5;
}
.rsg-pros li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--sts-pro);
  font-weight: 700;
  font-size: 16px;
}
.rsg-cons li::before {
  content: "✗";
  position: absolute;
  left: 0;
  color: var(--sts-con);
  font-weight: 700;
  font-size: 16px;
}


/* ─── COMPARISON TABLE ─── */
.rsg-comparison {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 10px;
  overflow: hidden;
  margin: 28px 0;
  font-size: 15px;
  border: 2px solid var(--sts-border);
}
.rsg-comparison thead th {
  background: var(--sts-dark-2);
  color: #fff;
  padding: 14px 18px;
  text-align: left;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.rsg-comparison tbody td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--sts-border);
}
.rsg-comparison tbody tr:nth-child(even) {
  background: var(--sts-surface);
}
.rsg-comparison tbody tr:hover {
  background: #EDF2F7;
}
.rsg-comparison .rsg-winner {
  background: var(--sts-pro-bg) !important;
  font-weight: 600;
}
.rsg-comparison .rsg-checkmark { color: var(--sts-pro); font-weight: 700; }
.rsg-comparison .rsg-crossmark { color: var(--sts-con); font-weight: 700; }


/* ─── PRODUCT CARD ─── */
.rsg-product-card {
  background: #fff;
  border: 2px solid var(--sts-border);
  border-radius: 12px;
  padding: 28px;
  margin: 28px 0;
  position: relative;
}
.rsg-product-card.rsg-top-pick {
  border-color: var(--sts-accent);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.15);
}
.rsg-product-card.rsg-top-pick::before {
  content: "★ TOP PICK";
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--sts-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 1px;
}
.rsg-product-card h3 {
  margin: 0 0 6px 0;
  font-size: 22px;
  color: var(--sts-ink);
}
.rsg-product-card .rsg-tagline {
  color: var(--sts-muted);
  font-size: 15px;
  margin: 0 0 16px 0;
  font-style: italic;
}
.rsg-product-card .rsg-card-details {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin: 16px 0;
}
@media (max-width: 768px) {
  .rsg-product-card .rsg-card-details { grid-template-columns: 1fr; }
}
.rsg-product-card .rsg-detail-item {
  text-align: center;
  padding: 12px;
  background: var(--sts-surface);
  border-radius: 8px;
}
.rsg-product-card .rsg-detail-label {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--sts-muted);
  letter-spacing: 0.5px;
}
.rsg-product-card .rsg-detail-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--sts-ink);
  margin-top: 4px;
}


/* ─── CTA BUTTON ─── */
.rsg-cta {
  text-align: center;
  margin: 24px 0;
}
.rsg-cta a {
  display: inline-block;
  background: var(--sts-accent);
  color: var(--sts-navy) !important; /* white-on-amber was 2.2:1, WCAG AA fail */
  padding: 14px 36px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none !important;
  transition: background 0.2s, transform 0.2s;
}
.rsg-cta a:hover {
  background: var(--sts-accent-dark);
  transform: translateY(-2px);
}
.rsg-cta .rsg-cta-sub {
  font-size: 13px;
  color: var(--sts-muted);
  margin-top: 8px;
}


/* ─── QUICK PICK TABLE ─── */
.rsg-quick-picks {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 10px;
  overflow: hidden;
  margin: 28px 0;
  border: 2px solid var(--sts-accent);
}
.rsg-quick-picks caption {
  background: var(--sts-accent);
  color: #fff;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 16px;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.rsg-quick-picks td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--sts-border);
  font-size: 15px;
}
.rsg-quick-picks td:first-child {
  font-weight: 700;
  color: var(--sts-ink);
  white-space: nowrap;
  width: 30%;
}
.rsg-quick-picks tr:nth-child(even) { background: #FFFBEB; }
.rsg-quick-picks tr:last-child td { border-bottom: none; }


/* ─── INFO CALLOUT ─── */
.rsg-callout {
  border-radius: 10px;
  padding: 20px 24px;
  margin: 24px 0;
  font-size: 15px;
  line-height: 1.6;
}
.rsg-callout.rsg-tip {
  background: #E0F2FE;
  border-left: 5px solid var(--sts-link);
}
.rsg-callout.rsg-warning {
  background: #FEF3C7;
  border-left: 5px solid var(--sts-accent);
}
.rsg-callout.rsg-important {
  background: #FEE2E2;
  border-left: 5px solid var(--sts-con);
}
.rsg-callout strong:first-child {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}


/* ─── RATING DISPLAY ─── */
.rsg-rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sts-surface);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 15px;
}
.rsg-rating .rsg-stars {
  color: var(--sts-stars);
  font-size: 16px;
  letter-spacing: 2px;
}
.rsg-rating .rsg-rating-num {
  font-weight: 700;
  color: var(--sts-ink);
}


/* ─── SCREENSHOT PLACEHOLDER ─── */
.rsg-screenshot-placeholder {
  background: var(--sts-surface);
  border: 2px dashed #CBD5E0;
  border-radius: 10px;
  padding: 40px 24px;
  text-align: center;
  margin: 24px 0;
  color: var(--sts-muted);
  font-size: 14px;
  font-style: italic;
}


/* ─── PRICING TABLE ─── */
.rsg-pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 28px 0;
}
.rsg-price-tier {
  background: #fff;
  border: 2px solid var(--sts-border);
  border-radius: 10px;
  padding: 24px;
  text-align: center;
}
.rsg-price-tier.rsg-popular {
  border-color: var(--sts-primary);
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.15);
  position: relative;
}
.rsg-price-tier.rsg-popular::before {
  content: "MOST POPULAR";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--sts-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 1px;
}
.rsg-price-tier h4 {
  margin: 0 0 8px 0;
  color: var(--sts-ink);
  font-size: 18px;
}
.rsg-price-tier .rsg-price {
  font-size: 36px;
  font-weight: 800;
  color: var(--sts-ink);
  margin: 8px 0;
}
.rsg-price-tier .rsg-price span {
  font-size: 16px;
  font-weight: 400;
  color: var(--sts-muted);
}
.rsg-price-tier ul {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  text-align: left;
}
.rsg-price-tier li {
  padding: 6px 0 6px 24px;
  position: relative;
  font-size: 14px;
  color: #4A5568;
}
.rsg-price-tier li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--sts-pro);
  font-weight: 700;
}


/* ─── AFFILIATE DISCLOSURE ─── */
.rsg-disclosure {
  background: var(--sts-surface);
  border: 1px solid var(--sts-border);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 24px 0;
  font-size: 13px;
  color: var(--sts-muted);
  line-height: 1.5;
}


/* ─── QUICK ANSWER (snippet box near the top) ─── */
.rsg-quick-answer {
  background: linear-gradient(135deg, #EAF3FC 0%, #F0F9FF 100%);
  border-left: 5px solid var(--sts-primary);
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin: 0 0 28px;
}
.rsg-quick-answer h4 {
  color: var(--sts-primary);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 8px;
}
.rsg-quick-answer p {
  color: var(--sts-ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  margin: 0;
}


/* ─── FAQ ACCORDION (<details>/<summary>) ─── */
.rsg-faq { margin: 32px 0; }
.rsg-faq h3 { color: var(--sts-heading); font-size: 22px; margin: 0 0 16px; }
.rsg-faq-item {
  border: 1px solid var(--sts-border);
  border-radius: 8px;
  margin: 0 0 8px;
  overflow: hidden;
}
.rsg-faq-item summary {
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--sts-heading);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  transition: background 0.2s;
}
.rsg-faq-item summary:hover { background: var(--sts-surface); }
.rsg-faq-item summary::-webkit-details-marker { display: none; }
.rsg-faq-item summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 700;
  color: var(--sts-primary);
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.2s;
}
.rsg-faq-item[open] summary::after { content: "\2212"; }
.rsg-faq-item[open] summary {
  border-bottom: 1px solid var(--sts-border);
  background: var(--sts-surface);
}
.rsg-faq-item p {
  padding: 16px 20px;
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--sts-muted);
}


/* ─── QUESTIONS TO ASK (rsg-contractor-questions / rsg-cq-item) ─── */
.rsg-contractor-questions {
  margin: 32px 0;
  border: 2px solid var(--sts-primary);
  border-radius: 12px;
  overflow: hidden;
}
.rsg-contractor-questions h3 {
  background: var(--sts-primary);
  color: #fff;
  padding: 16px 20px;
  margin: 0;
  font-size: 18px;
  border: none;
}
.rsg-cq-item, .rsg-contractor-question {
  border-bottom: 1px solid var(--sts-border);
  padding: 20px;
}
.rsg-cq-item:last-child, .rsg-contractor-question:last-child { border-bottom: none; }
.rsg-cq-item h4, .rsg-contractor-question h4 {
  color: var(--sts-heading);
  font-size: 16px;
  margin: 0 0 8px;
}
.rsg-cq-item p, .rsg-contractor-question p {
  color: var(--sts-muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}


/* ─── VERIFIED / UPDATED BADGE ─── */
.rsg-updated-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--sts-pro-bg);
  border: 1px solid #BBF7D0;
  color: #166534;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}


/* ============================================================
   MERGED 2026-07-05 from assets/css/sts-brand.css. Edit HERE.
   ============================================================ */
/* ═══════════════════════════════════════════════════════════════
   SHOP TECH SCORE — Brand System: Badges, Scores, Awards
   Paste into WordPress Additional CSS alongside sts-components.css.

   STS tiers:  Gold ≥9.0 · Silver 8.0–8.9 · Bronze 7.0–7.9
   Canonical classes are .gold / .silver / .bronze (and .rsg-tier-gold etc.).
   Legacy RSG classes (.approved / .recommended / .rated) are kept as
   aliases → gold / silver / bronze so older markup still renders.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --sts-primary:#0284C7; --sts-primary-dark:#0369A1; --sts-link:#0EA5E9;
  --sts-accent:#F59E0B; --sts-accent-dark:#D97706;
  --sts-heading:#334155; --sts-ink:#1E293B;
  --sts-dark:#0F172A; --sts-dark-2:#075985;
  --sts-muted:#64748B; --sts-muted-2:#94A3B8;
  --sts-border:#E2E8F0; --sts-surface:#F8FAFC;
  /* Medal tiers */
  --sts-gold:#B8860B;   --sts-gold-border:#D4A843; --sts-gold-bg:#FFF8E7; --sts-gold-ink:#8B6914;
  --sts-silver:#64748B; --sts-silver-border:#94A3B8; --sts-silver-bg:#F1F5F9; --sts-silver-ink:#475569;
  --sts-bronze:#B45309; --sts-bronze-border:#C2855B; --sts-bronze-bg:#FDF3E7; --sts-bronze-ink:#92400E;
}


/* ─── STS SCORE BADGE (inline in articles) ─── */
.rsg-score-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border: 2px solid var(--sts-border);
  border-radius: 14px;
  padding: 16px 24px;
  text-align: center;
  min-width: 120px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.rsg-score-badge .rsg-score-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--sts-muted-2);
  margin-bottom: 4px;
}
.rsg-score-badge .rsg-score-number {
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 2px;
}
.rsg-score-badge .rsg-score-max {
  font-size: 14px;
  color: var(--sts-muted-2);
  font-weight: 400;
}
.rsg-score-badge .rsg-score-tier {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 20px;
  margin-top: 8px;
}

/* Score color tiers — GOLD (top) */
.rsg-score-badge.rsg-tier-gold .rsg-score-number,
.rsg-score-badge.rsg-tier-approved .rsg-score-number { color: var(--sts-gold); }
.rsg-score-badge.rsg-tier-gold,
.rsg-score-badge.rsg-tier-approved { border-color: var(--sts-gold-border); }
.rsg-score-badge.rsg-tier-gold .rsg-score-tier,
.rsg-score-badge.rsg-tier-approved .rsg-score-tier {
  background: var(--sts-gold-bg); color: var(--sts-gold-ink);
}

/* SILVER (middle) */
.rsg-score-badge.rsg-tier-silver .rsg-score-number,
.rsg-score-badge.rsg-tier-recommended .rsg-score-number { color: var(--sts-silver); }
.rsg-score-badge.rsg-tier-silver,
.rsg-score-badge.rsg-tier-recommended { border-color: var(--sts-silver-border); }
.rsg-score-badge.rsg-tier-silver .rsg-score-tier,
.rsg-score-badge.rsg-tier-recommended .rsg-score-tier {
  background: var(--sts-silver-bg); color: var(--sts-silver-ink);
}

/* BRONZE (bottom) */
.rsg-score-badge.rsg-tier-bronze .rsg-score-number,
.rsg-score-badge.rsg-tier-rated .rsg-score-number { color: var(--sts-bronze); }
.rsg-score-badge.rsg-tier-bronze,
.rsg-score-badge.rsg-tier-rated { border-color: var(--sts-bronze-border); }
.rsg-score-badge.rsg-tier-bronze .rsg-score-tier,
.rsg-score-badge.rsg-tier-rated .rsg-score-tier {
  background: var(--sts-bronze-bg); color: var(--sts-bronze-ink);
}


/* ─── STS SCORE IN VERDICT BOX ─── */
.rsg-verdict .rsg-verdict-score {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}
.rsg-verdict .rsg-verdict-score .rsg-score-big {
  font-size: 48px;
  font-weight: 800;
  color: var(--sts-accent);
  line-height: 1;
}
.rsg-verdict .rsg-verdict-score .rsg-score-context {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rsg-verdict .rsg-verdict-score .rsg-score-context span:first-child {
  font-size: 13px;
  font-weight: 700;
  color: var(--sts-accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.rsg-verdict .rsg-verdict-score .rsg-score-context span:last-child {
  font-size: 13px;
  color: var(--sts-muted-2);
}


/* ─── STS TIER PILLS (horizontal, for comparison tables) ─── */
.rsg-tier-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
}
.rsg-tier-pill.gold, .rsg-tier-pill.approved {
  background: var(--sts-gold-bg); color: var(--sts-gold-ink); border: 1px solid var(--sts-gold-border);
}
.rsg-tier-pill.silver, .rsg-tier-pill.recommended {
  background: var(--sts-silver-bg); color: var(--sts-silver-ink); border: 1px solid var(--sts-silver-border);
}
.rsg-tier-pill.bronze, .rsg-tier-pill.rated {
  background: var(--sts-bronze-bg); color: var(--sts-bronze-ink); border: 1px solid var(--sts-bronze-border);
}


/* ─── STS AWARD CARD (for annual awards page) ─── */
.rsg-award-card {
  background: #fff;
  border: 2px solid var(--sts-border);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.rsg-award-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}
.rsg-award-card.gold::before { background: linear-gradient(90deg, #B8860B, #D4A843, #B8860B); }
.rsg-award-card.silver::before { background: linear-gradient(90deg, #64748B, #94A3B8, #64748B); }
.rsg-award-card.bronze::before { background: linear-gradient(90deg, #92400E, #B45309, #92400E); }

.rsg-award-card .rsg-award-icon {
  font-size: 48px;
  margin-bottom: 12px;
}
.rsg-award-card .rsg-award-category {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sts-muted-2);
  margin-bottom: 6px;
}
.rsg-award-card .rsg-award-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--sts-ink);
  margin-bottom: 4px;
}
.rsg-award-card .rsg-award-winner {
  font-size: 24px;
  font-weight: 800;
  color: var(--sts-ink);
  margin-bottom: 8px;
}
.rsg-award-card .rsg-award-year {
  font-size: 12px;
  color: var(--sts-muted-2);
  font-weight: 600;
}


/* ─── STS VERIFIED PRICING BADGE ─── */
.rsg-verified-pricing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: #166534;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}
.rsg-verified-pricing::before {
  content: "✓";
  font-weight: 700;
}


/* ─── STS INTEGRATION CERTIFIED ─── */
.rsg-integration-cert {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #E0F2FE;
  border: 1px solid #7DD3FC;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--sts-dark-2);
  font-weight: 600;
}
.rsg-integration-cert .rsg-cert-icon {
  font-size: 16px;
}


/* ─── STS BADGE GRID (awards page layout) ─── */
.rsg-awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 28px 0;
}


/* Related-reviews block (appended to single posts) */
.sts-related { border-top: 1px solid #E2E8F0; margin-top: 32px; padding-top: 20px; }
.sts-related h3 { color: #334155; font-size: 18px; margin: 0 0 10px; }
.sts-related ul { list-style: none; margin: 0; padding: 0; }
.sts-related li { margin: 0 0 8px; }
.sts-related a { font-weight: 600; text-decoration: none; }
.sts-related a:hover { text-decoration: underline; }

/* Breadcrumb trail (matches the BreadcrumbList JSON-LD Rank Math emits). */
.sts-breadcrumbs { max-width: var(--sts-container); margin: 18px auto 0; padding: 0 24px; font-size: 13px; color: var(--sts-muted); }
.sts-breadcrumbs a { color: var(--sts-blue-dark); text-decoration: none; }
.sts-breadcrumbs a:hover { text-decoration: underline; }
.sts-breadcrumbs .separator { margin: 0 7px; color: var(--sts-muted-2); }

/* ─── Mobile overflow policy (2026-07-15 audit) ───
   GP's .site-content is a flex row; its children default to min-width:auto,
   so any wide table stretched the whole page to the table's intrinsic width
   on phones (comparison chart laid out at 1199px on a 375px screen). Clamp
   the flex items; wide tables then scroll inside their own box. */
.site-content > * { min-width: 0; max-width: 100%; }

@media (max-width: 768px) {
  /* In-post comparison/pricing tables: scroll within the article column. */
  .entry-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  /* Larger touch targets: footer link pitch and card CTA links. */
  .sts-footer li { padding: 5px 0; }
  .sts-footer a, .sts-link { display: inline-block; padding: 4px 0; }
}

/* Big verdict score number: amber #F59E0B on white measured 2.15:1.
   Amber-700 keeps the brand hue and passes AA even at normal-text sizes. */
.rsg-verdict .rsg-verdict-score .rsg-score-big { color: #B45309; }

/* ─── Unified tier-colored score badge (Option B, 2026-07-15) ───
   One visual system for scores everywhere: the badge color IS the tier
   (gold amber / silver slate / bronze copper). Used by homepage cards,
   archive cards (PHP-injected), and the verdict-box restyle below. */
.sts-score-badge {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 8px; padding: 6px 12px; line-height: 1; border: 1px solid transparent;
}
.sts-score-badge .sts-score-num { font-size: 24px; font-weight: 800; }
.sts-score-badge .sts-score-tier { font-size: 10px; font-weight: 800; letter-spacing: .5px; margin-top: 3px; }
.sts-score-badge--sm { flex-direction: row; gap: 6px; padding: 3px 9px; align-items: baseline; }
.sts-score-badge--sm .sts-score-num { font-size: 14px; }
.sts-score-badge--sm .sts-score-tier { margin-top: 0; font-size: 9.5px; }
.sts-score-badge--gold { background: #FAEEDA; border-color: #EF9F27; }
.sts-score-badge--gold .sts-score-num { color: #633806; }
.sts-score-badge--gold .sts-score-tier { color: #854F0B; }
.sts-score-badge--silver { background: #F1F5F9; border-color: #B4B2A9; }
.sts-score-badge--silver .sts-score-num { color: #2C2C2A; }
.sts-score-badge--silver .sts-score-tier { color: #5F5E5A; }
.sts-score-badge--bronze { background: #FAECE7; border-color: #F0997B; }
.sts-score-badge--bronze .sts-score-num { color: #4A1B0C; }
.sts-score-badge--bronze .sts-score-tier { color: #993C1D; }
.entry-header .sts-score-badge--sm { margin: 2px 0 6px; }

/* Verdict boxes: a footer script reads the "STS Gold/Silver/Bronze" text the
   pipeline already emits and adds .sts-tier-{tier} to .rsg-verdict-score, so
   all existing and future posts restyle with zero content or pipeline edits.
   Without JS they keep the amber-700 number above (graceful fallback). */
.rsg-verdict-score.sts-tier-gold .rsg-score-big { background: #FAEEDA; border: 1px solid #EF9F27; color: #633806; padding: 8px 14px; border-radius: 10px; }
.rsg-verdict-score.sts-tier-gold .rsg-score-context span:first-child { color: #854F0B; font-weight: 800; }
.rsg-verdict-score.sts-tier-silver .rsg-score-big { background: #F1F5F9; border: 1px solid #B4B2A9; color: #2C2C2A; padding: 8px 14px; border-radius: 10px; }
.rsg-verdict-score.sts-tier-silver .rsg-score-context span:first-child { color: #5F5E5A; font-weight: 800; }
.rsg-verdict-score.sts-tier-bronze .rsg-score-big { background: #FAECE7; border: 1px solid #F0997B; color: #4A1B0C; padding: 8px 14px; border-radius: 10px; }
.rsg-verdict-score.sts-tier-bronze .rsg-score-context span:first-child { color: #993C1D; font-weight: 800; }

