/* ===== Theme: pico-edu (clean light educational look) ===== */
:root {
  --bg: #ffffff;
  --surface: #f8fafc;
  --surface-hover: #eef2f7;
  --border: #e2e8f0;
  --text: #1f2937;
  --muted: #64748b;
  --accent: #2563eb;
  --accent-2: #3b82f6;
  --accent-grad: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  --accent-fg: #ffffff;
  --accent-soft: rgba(37, 99, 235, .10);
  --accent-line: #2563eb;
  --star: #f59e0b;
  --star-empty: #cbd5e1;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(15, 23, 42, .08);
  --maxw: 1120px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: Georgia, "Times New Roman", serif;
}

/* ===== Base layout (forge review-site theme layer) =====
   Works layered on top of Pico (tokens/base) AND standalone if vendored Pico
   is unavailable (design tokens above make it self-sufficient). */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.site-header .brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: .01em;
}
.site-header .brand .logo { color: var(--accent); }
.site-header .tagline { margin: 0 0 0 auto; color: var(--muted); font-size: .9rem; }
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 20px;
  color: var(--muted);
  text-align: center;
  font-size: .9rem;
}
.site-footer .footer-nav a { margin: 0 10px; color: var(--accent); text-decoration: none; }
main { max-width: var(--maxw); margin: 0 auto; padding: 30px 20px 56px; }
h1 { font-family: var(--font-head); font-size: 2rem; margin: .2em 0 .6em; line-height: 1.22; }
h2 { font-family: var(--font-head); font-size: 1.4rem; margin: 1.6em 0 .5em; }
h3 { font-family: var(--font-head); font-size: 1.1rem; margin: 1.2em 0 .4em; }
a { color: var(--accent); }
ul, ol { padding-left: 1.4em; }
.back-home { margin-top: 26px; font-weight: 600; }
.related h2 { font-size: 1.3rem; }
.related ul { columns: 2; column-gap: 2rem; }
.related li { break-inside: avoid; margin: .3rem 0; }
@media (max-width: 720px) {
  h1 { font-size: 1.55rem; }
  .site-header .tagline { display: none; }
}

/* ===== components.css - shared review-site components (pure CSS, no JS) ===== */

/* Breadcrumbs */
.crumbs { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; margin: 0 0 1rem; padding: 0; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin: 0 .45rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current="page"] { color: var(--text); font-weight: 600; }

/* FTC affiliate disclosure bar (page-top thin strip) */
.disclosure { font-size: .78rem; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .55rem .85rem; margin: 0 0 1.25rem; }
.disclosure strong { color: var(--text); }

/* Quick-answer box (SOP 8.1 golden element): left accent bar + soft bg */
.quick-answer { border-left: 5px solid var(--accent-line); background: var(--accent-soft); padding: 1rem 1.15rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.4rem 0; }
.quick-answer h2, .quick-answer h3 { margin-top: 0; }
.quick-answer p { margin: .35rem 0; }

/* Product cards grid */
.pcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin: 1.6rem 0; }
.pcard { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.pcard:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 14px 40px rgba(0,0,0,.22); }
.pcard .pcard-logo { width: 58px; height: 58px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.35rem; color: var(--accent-fg); background: var(--accent-grad); }
.pcard h3 { margin: .85rem 0 .15rem; font-size: 1.15rem; }
.pcard .pcard-sub { margin: 0 0 .5rem; color: var(--muted); font-size: .82rem; }
.pcard .stars { display: inline-flex; align-items: center; gap: .5rem; margin: .15rem 0 .6rem; font-size: 1.05rem; }
.pcard .stars .label { font-size: .8rem; color: var(--muted); }
.pcard ul { margin: .6rem 0; padding-left: 1.15rem; }
.pcard ul li { margin: .25rem 0; }
.pcard .cta-row { margin-top: auto; display: flex; gap: .6rem; padding-top: 1rem; }

/* "Best Overall" corner badge */
.badge-best { position: absolute; top: -11px; right: 12px; background: var(--accent-grad); color: var(--accent-fg); font-size: .66rem; font-weight: 800; letter-spacing: .04em; padding: .3rem .65rem; border-radius: 999px; box-shadow: var(--shadow); text-transform: uppercase; }

/* Comparison table */
.ctable-wrap { overflow-x: auto; margin: 1.6rem 0; border: 1px solid var(--border); border-radius: var(--radius); }
.ctable { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 640px; }
.ctable th, .ctable td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.ctable th { background: var(--surface); font-weight: 700; }
.ctable th:first-child, .ctable td:first-child { position: sticky; left: 0; background: var(--surface); z-index: 1; font-weight: 600; }
.ctable tbody tr:hover td { background: var(--surface-hover); }
.ctable tr.recommend td { background: var(--accent-soft); }
.ctable tr.recommend td:first-child { background: var(--accent-soft); }
.ctable tr.recommend td.rank::after { content: "★ BEST"; display: inline-block; margin-left: .4rem; font-size: .62rem; background: var(--accent-grad); color: var(--accent-fg); padding: .2rem .45rem; border-radius: 999px; vertical-align: middle; }

/* CTA buttons */
.btn-cta { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; background: var(--accent-grad); color: var(--accent-fg); font-weight: 700; text-decoration: none; padding: .75rem 1.4rem; border-radius: var(--radius); border: 0; cursor: pointer; font-size: 1rem; transition: filter .15s ease, transform .12s ease; }
.btn-cta:hover { filter: brightness(1.12); transform: translateY(-1px); color: var(--accent-fg); }
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; background: transparent; color: var(--muted); font-weight: 600; text-decoration: none; padding: .75rem 1.4rem; border-radius: var(--radius); border: 1px solid var(--border); cursor: pointer; font-size: 1rem; }
.btn-ghost:hover { color: var(--text); border-color: var(--accent); }

/* Pure-CSS star rating (masked fill) */
.stars { position: relative; display: inline-block; font-size: 1.05rem; line-height: 1; color: var(--star-empty); letter-spacing: .08em; font-family: var(--font-sans); }
.stars::before { content: "★★★★★"; }
.stars .fill { position: absolute; top: 0; left: 0; overflow: hidden; white-space: nowrap; color: var(--star); width: var(--pct, 100%); }
.stars .fill::before { content: "★★★★★"; }

/* Mobile: cards stack to 1 column */
@media (max-width: 820px) { .pcards { grid-template-columns: 1fr; } }

/* ===== Design upgrade: logo, trust byline, centered footer ===== */
.site-header .brand { display: inline-flex; align-items: center; gap: .55rem; }
.brand-mark, .footer-mark { display: block; flex: none; border-radius: 6px; }
.brand-name { display: inline-block; }

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 2.5rem 20px 2.1rem;
  color: var(--muted);
  text-align: center;
  font-size: .9rem;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}
.footer-brand { display: inline-flex; align-items: center; gap: .5rem; margin: 0; font-weight: 800; font-size: 1.05rem; letter-spacing: .01em; color: var(--text); }
.footer-slogan { margin: 0; font-size: .88rem; color: var(--muted); font-style: italic; }
.site-footer .footer-nav { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .45rem .85rem; padding: .4rem 0; font-size: .85rem; }
.site-footer .footer-nav a { margin: 0; color: var(--accent); text-decoration: none; font-weight: 600; }
.site-footer .footer-nav a:hover { text-decoration: underline; }
.site-footer .footer-nav .sep { color: var(--border); user-select: none; font-size: .8em; }
.footer-legal { margin: 0; max-width: 760px; font-size: .78rem; color: var(--muted); line-height: 1.6; }

/* E-E-A-T byline under the H1 on content pages */
.byline { display: flex; align-items: flex-start; gap: .8rem; margin: 0 0 1.3rem; padding: .9rem 1.05rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.byline-avatar { width: 44px; height: 44px; flex: none; border-radius: 50%; box-shadow: var(--shadow); }
.byline-body { flex: 1; min-width: 0; }
.byline-name { margin: 0 0 .2rem; font-weight: 700; font-size: .88rem; color: var(--text); }
.byline-note { margin: 0; font-size: .8rem; color: var(--muted); line-height: 1.55; }
.byline-note a { color: var(--accent); font-weight: 600; text-decoration: none; white-space: nowrap; }
.byline-note a:hover { text-decoration: underline; }

@media (max-width: 720px) {
  .footer-nav { gap: .35rem .55rem; }
  .site-footer .footer-nav .sep { display: none; }
  .footer-legal { font-size: .75rem; }
  .byline { padding: .75rem .85rem; gap: .65rem; }
  .byline-avatar { width: 38px; height: 38px; }
}
