:root {
  --ink: #1b1f23;
  --muted: #62707c;
  --line: #dde3e8;
  --bg: #fafbfc;
  --card: #ffffff;
  --accent: #1a6fb0;
  --accent-bg: #eaf3fa;
  --diff-bg: #fff4e0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.45;
}

a { color: var(--accent); }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--line);
  background: var(--card);
}
.site-title { font-weight: 700; text-decoration: none; color: var(--ink); font-size: 1.1rem; }
.site-header nav a { margin-left: 1.25rem; text-decoration: none; color: var(--muted); font-weight: 600; }
.site-header nav a:hover { color: var(--accent); }

main { max-width: 960px; margin: 0 auto; padding: 1.5rem; }

.site-footer {
  max-width: 960px;
  margin: 2rem auto 1rem;
  padding: 0 1.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.lede { color: var(--muted); margin-top: 0; }

.brand-section { margin-bottom: 2rem; }
.brand-section h2 { border-bottom: 2px solid var(--ink); padding-bottom: 0.25rem; margin-bottom: 0.75rem; }

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.9rem;
  margin-bottom: 0.5rem;
}

.tile {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.tile:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.08); transform: translateY(-1px); }

.tile-thumb { width: 100%; height: 140px; object-fit: cover; background: #f0f2f4; display: block; }
.tile-thumb--placeholder { display: flex; }

.tile-body { padding: 0.7rem 0.8rem 0.85rem; }
.tile-line { color: var(--accent); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.tile-model { font-weight: 700; font-size: 0.95rem; margin-top: 0.1rem; }
.tile-category { color: var(--muted); font-size: 0.78rem; margin-top: 0.15rem; }

.tile-facts {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.tile-facts li {
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

.back-link { display: inline-block; margin-bottom: 1rem; text-decoration: none; font-weight: 600; }

.product-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}
.eyebrow { color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
.product-header h1 { margin: 0.15rem 0; }
.category { color: var(--muted); margin: 0; }
.compare-cta {
  white-space: nowrap;
  text-decoration: none;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
}
.compare-cta:hover { opacity: 0.9; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.gallery img { width: 100%; height: 140px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }

.spec-group { margin-bottom: 1.5rem; }
.spec-group h2 { font-size: 1.05rem; border-bottom: 1px solid var(--line); padding-bottom: 0.3rem; }

.spec-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.spec-table th, .spec-table td { text-align: left; padding: 0.35rem 0.5rem; border-bottom: 1px solid var(--line); }
.spec-table th { color: var(--muted); font-weight: 500; width: 45%; }

.source-links { padding-left: 1.1rem; font-size: 0.85rem; word-break: break-all; }
.fine-print { color: var(--muted); font-size: 0.8rem; }

.compare-pickers {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.compare-pickers select {
  flex: 1;
  min-width: 220px;
  padding: 0.5rem;
  font-size: 0.95rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
}
.vs { color: var(--muted); font-weight: 700; }

.compare-table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.compare-table th, .compare-table td { padding: 0.4rem 0.6rem; border-bottom: 1px solid var(--line); font-size: 0.92rem; text-align: left; vertical-align: top; }
.compare-table thead th { border-bottom: 2px solid var(--ink); }
.compare-table .row-label { color: var(--muted); width: 32%; }
.compare-table tr.diff td { background: var(--diff-bg); }
.compare-table .group-row th { padding-top: 1rem; color: var(--ink); font-weight: 700; border-bottom: 1px solid var(--line); }

.compare-head { display: flex; flex-direction: column; align-items: flex-start; gap: 0.4rem; }
.compare-head img { width: 100%; max-width: 160px; height: 110px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.compare-head a { font-weight: 700; text-decoration: none; }

.hint { color: var(--muted); }

@media (max-width: 600px) {
  .compare-table .row-label { width: auto; }
}
