/* TopSuggest Hub — production stylesheet
   Framework-free; designed for readability and mobile-first layout.
   Avoids third-party fonts to comply with self-only CSP.
*/

/* ── Reset & base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-bg:        #ffffff;
  --color-surface:   #f7f8fa;
  --color-border:    #e2e5ea;
  --color-text:      #1a1d23;
  --color-muted:     #5a6070;
  --color-accent:    #1a7c3e;  /* deep golf green */
  --color-accent-lt: #edf7f1;
  --color-cta:       #1a7c3e;
  --color-cta-hover: #155f30;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --max-w: 780px;
  --gap: 1.5rem;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
}

/* ── Typography ───────────────────────────────────────────────────────────── */
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 0.75rem; }
h2 { font-size: clamp(1.25rem, 3vw, 1.65rem); margin: 2.25rem 0 0.75rem; }
h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
p  { margin-bottom: 1rem; }
ul, ol { padding-left: 1.4em; margin-bottom: 1rem; }
li { margin-bottom: 0.3rem; }
a  { color: var(--color-accent); text-decoration: underline; }
a:hover { color: var(--color-cta-hover); }
strong { font-weight: 600; }

/* ── Layout helpers ───────────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Site header ──────────────────────────────────────────────────────────── */
.site-header {
  background: var(--color-accent);
  color: #fff;
  padding: 0.75rem 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.site-header .wordmark {
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  letter-spacing: -0.01em;
}
.site-header .wordmark span { opacity: 0.75; font-weight: 400; }

/* ── Breadcrumb ───────────────────────────────────────────────────────────── */
.breadcrumb {
  font-size: 0.8rem;
  color: var(--color-muted);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--color-muted); }
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb li { display: inline; }
.breadcrumb li + li::before { content: " › "; margin: 0 0.3em; }

/* ── Article header ───────────────────────────────────────────────────────── */
.article-header { margin-bottom: 1.75rem; }
.article-header .byline {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
}
.article-header .lead {
  font-size: 1.05rem;
  color: var(--color-muted);
  font-style: italic;
  margin-bottom: 0;
}

/* ── Disclosure ───────────────────────────────────────────────────────────── */
.disclosure {
  background: var(--color-surface);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 4px 4px 0;
  padding: 0.7rem 1rem;
  font-size: 0.82rem;
  color: var(--color-muted);
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

/* ── Quick picks ──────────────────────────────────────────────────────────── */
.quick-picks {
  background: var(--color-accent-lt);
  border: 1px solid #c1e3cc;
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}
.quick-picks h2 { margin-top: 0; font-size: 1.05rem; color: var(--color-accent); }
.quick-picks ul { list-style: none; padding: 0; margin: 0; }
.quick-picks li {
  padding: 0.4rem 0;
  border-bottom: 1px solid #c1e3cc;
  font-size: 0.93rem;
}
.quick-picks li:last-child { border-bottom: none; }
.quick-picks .pick-label { font-weight: 600; }

/* ── Comparison table ─────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 2rem; }
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 560px;
}
.comparison-table th {
  background: var(--color-surface);
  font-weight: 600;
  padding: 0.6rem 0.75rem;
  text-align: left;
  border-bottom: 2px solid var(--color-border);
  white-space: nowrap;
}
.comparison-table td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}
.comparison-table tr:hover td { background: var(--color-surface); }
.comparison-table .rank-num {
  font-weight: 700;
  color: var(--color-accent);
  font-size: 0.95rem;
}
.comparison-table .cta-cell { white-space: nowrap; }

/* Stars / score dots */
.dots { display: inline-flex; gap: 2px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--color-border); }
.dot.on { background: var(--color-accent); }

/* ── Product entries ──────────────────────────────────────────────────────── */
.product-entry {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}
.product-entry-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.product-entry-rank {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-accent);
  min-width: 2rem;
  line-height: 1;
}
.product-entry-title { flex: 1; }
.product-entry-title h3 { margin: 0 0 0.2rem; font-size: 1.05rem; }
.product-entry-title .fit-note { font-size: 0.85rem; color: var(--color-muted); }
.product-entry-body { font-size: 0.93rem; }
.product-entry-body p:last-child { margin-bottom: 0; }
.merchant-slot { margin-top: 0.75rem; }

/* ── CTA button ───────────────────────────────────────────────────────────── */
.btn-cta {
  display: inline-block;
  background: var(--color-cta);
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1.1rem;
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.15s;
}
.btn-cta:hover { background: var(--color-cta-hover); color: #fff; }

/* ── Buying guide / methodology ───────────────────────────────────────────── */
.methodology { margin-top: 2.5rem; }
.methodology h2 { border-bottom: 2px solid var(--color-border); padding-bottom: 0.5rem; }

/* ── FAQ ──────────────────────────────────────────────────────────────────── */
.faq { margin-top: 2.5rem; }
.faq h2 { border-bottom: 2px solid var(--color-border); padding-bottom: 0.5rem; }
details { border-bottom: 1px solid var(--color-border); }
details summary {
  padding: 0.85rem 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  list-style: none;
}
details summary::marker,
details summary::-webkit-details-marker { display: none; }
details summary::after { content: " +"; color: var(--color-accent); }
details[open] summary::after { content: " −"; }
details p { padding: 0 0 0.85rem; font-size: 0.93rem; }

/* ── Tool cross-link ──────────────────────────────────────────────────────── */
.tool-cta {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin: 2.5rem 0;
  font-size: 0.93rem;
}
.tool-cta strong { display: block; margin-bottom: 0.3rem; font-size: 1rem; }

/* ── Homepage hub cards ───────────────────────────────────────────────────── */
.hub-hero {
  background: var(--color-accent);
  color: #fff;
  padding: 3rem 0 2.5rem;
}
.hub-hero h1 { color: #fff; font-size: clamp(1.8rem, 5vw, 2.6rem); }
.hub-hero .sub { font-size: 1.05rem; opacity: 0.85; margin-top: 0.5rem; }
.hub-articles { margin: 2.5rem 0; }
.article-card {
  display: block;
  text-decoration: none;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.article-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 2px 8px rgba(26,124,62,0.1);
  color: var(--color-text);
}
.article-card .card-category {
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 0.35rem;
}
.article-card h2 { font-size: 1.1rem; margin: 0 0 0.4rem; }
.article-card p  { font-size: 0.9rem; color: var(--color-muted); margin: 0; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--color-border);
  padding: 1.5rem 0 2rem;
  font-size: 0.82rem;
  color: var(--color-muted);
}
.site-footer a { color: var(--color-muted); }
.site-footer .footer-links { margin-top: 0.5rem; }
.site-footer .footer-links a + a::before { content: " · "; }

/* ── Responsive tweaks ────────────────────────────────────────────────────── */
@media (max-width: 500px) {
  .product-entry-header { flex-direction: column; gap: 0.4rem; }
  .product-entry-rank { font-size: 1.1rem; }
}
