/* Page templates: category, search, about, review, comparison */

.page-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.75rem 2rem;
}

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin: 0 0 0.85rem;
}

.page-hero-sub {
  margin: 0;
  max-width: 40rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--fg-muted);
}

.page-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.75rem 4rem;
}

.page-layout {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 960px) {
  .page-layout.has-sidebar {
    grid-template-columns: minmax(0, 1fr) 16rem;
    align-items: start;
  }
}

.page-sidebar {
  position: sticky;
  top: 7rem;
}

.sidebar-nav {
  padding: 1.15rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.sidebar-nav h2 {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin: 0 0 0.75rem;
}

.sidebar-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sidebar-nav a {
  display: block;
  padding: 0.4rem 0.55rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg-muted);
  text-decoration: none;
}

.sidebar-nav a:hover,
.sidebar-nav a.is-active {
  color: var(--fg);
  background: var(--bg-muted);
}

/* Review page */
.review-hero {
  max-width: var(--measure);
  margin: 0 auto 2rem;
}

.review-verdict {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-muted);
  margin-bottom: 2rem;
}

.review-score {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.review-verdict-text {
  flex: 1;
  min-width: 12rem;
}

.review-verdict-text h2 {
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
}

.review-verdict-text p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--fg-muted);
  line-height: 1.55;
}

.review-meta-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .review-meta-grid { grid-template-columns: repeat(4, 1fr); }
}

.review-meta-item {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.review-meta-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-bottom: 0.25rem;
}

.review-meta-value {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--fg);
}

.pricing-snapshot {
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  margin-bottom: 2rem;
}

.pricing-snapshot h3 {
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin: 0 0 0.85rem;
}

.pricing-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

.pricing-row:last-child { border-bottom: none; }

.screenshot-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin: 2rem 0;
}

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

.screenshot-placeholder {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--fg-subtle);
}

/* Comparison page */
.comparison-summary {
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--lime-muted);
  margin-bottom: 2rem;
}

.comparison-winners {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .comparison-winners { grid-template-columns: repeat(3, 1fr); }
}

.winner-card {
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.winner-card-label {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-bottom: 0.35rem;
}

.winner-card strong {
  font-size: 0.9375rem;
  font-weight: 800;
}

/* Search results */
.search-results-meta {
  font-size: 0.875rem;
  color: var(--fg-subtle);
  margin-bottom: 1.5rem;
}

.search-result {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.search-result:last-child { border-bottom: none; }

.search-result h3 {
  font-size: 1.0625rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
}

.search-result h3 a {
  color: inherit;
  text-decoration: none;
}

.search-result h3 a:hover { text-decoration: underline; }

.search-result p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.55;
}

.search-result-meta {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fg-subtle);
}

/* Article editorial layout */
.article-prose {
  max-width: var(--measure);
  margin: 0 auto;
  font-size: 1.0625rem;
  line-height: 1.72;
}

.article-prose > * + * { margin-top: 1.25em; }

.article-prose h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: 2em;
  scroll-margin-top: 6rem;
}

.article-prose h3 {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 1.65em;
}

.article-prose p { margin: 0; }

.article-prose ul,
.article-prose ol {
  margin: 0;
  padding-left: 1.35em;
}

.article-prose blockquote {
  margin: 1.75em 0;
  padding: 1.15rem 1.35rem;
  border-left: 3px solid var(--lime);
  background: var(--lime-muted);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.05rem;
  color: var(--fg-muted);
}

.article-head-block {
  max-width: var(--measure);
  margin: 0 auto 2rem;
  padding-top: 1.75rem;
}

.article-head-block h1 {
  font-size: clamp(1.85rem, 4vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin: 0 0 0.85rem;
}

.article-dek {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--fg-muted);
}

.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-strong);
  background: var(--bg-muted);
}

.empty-state h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
}

.empty-state p {
  margin: 0;
  color: var(--fg-muted);
  font-size: 0.9375rem;
}
