:root {
  --bg-page: #FFFFFF;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F8FAFC;
  --text-main: #0F172A;
  --text-muted: #334155;
  --text-faint: #64748B;
  --border-line: #E2E8F0;
  --border-strong: #94A3B8;
  --accent-green: #15803D;
  --accent-tint: #DCFCE7;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 4px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-page);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent-green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  text-decoration: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

/* Slim Non-Sticky Header */
.site-header {
  height: 56px;
  background: var(--bg-page);
  border-bottom: 1px solid var(--border-line);
  display: flex;
  align-items: center;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-wrapper:hover {
  text-decoration: none;
}

.brand-logo-svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 500;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.btn-header-cta {
  background: var(--accent-green);
  color: #FFFFFF;
  border: 1px solid var(--accent-green);
  padding: 6px 14px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}

.btn-header-cta:hover {
  background: #166534;
  color: #FFFFFF;
  text-decoration: none;
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-line);
  padding: 6px 10px;
  border-radius: var(--radius);
  color: var(--text-main);
}

/* Layout container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Page Banner / Neutral Introduction */
.page-intro {
  padding: 24px 0 20px;
  border-bottom: 1px solid var(--border-line);
  background: var(--bg-subtle);
}

.page-intro h1 {
  font-size: 1.7rem;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 6px;
}

.page-intro p {
  color: var(--text-muted);
  max-width: 820px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.meta-notice {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-faint);
}

.meta-notice span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Main Split for Listings with Filter Sidebar */
.listing-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  padding: 24px 0 48px;
  align-items: start;
}

/* Sidebar Filters */
.filter-sidebar {
  position: sticky;
  top: 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-line);
  border-radius: var(--radius);
  padding: 16px;
}

.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-line);
  margin-bottom: 14px;
}

.filter-header h2 {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-main);
}

.btn-reset-filters {
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 0.8rem;
  text-decoration: underline;
  padding: 0;
}

.btn-reset-filters:hover {
  color: var(--text-main);
}

.filter-group {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-line);
}

.filter-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.filter-legend {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
  display: block;
}

.filter-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.86rem;
  color: var(--text-muted);
  cursor: pointer;
}

.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
  margin-right: 8px;
  accent-color: var(--accent-green);
}

.filter-option span.count {
  font-size: 0.78rem;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

/* Content Area */
.listing-content {
  min-width: 0;
}

.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-line);
}

.results-count {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.active-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.chip {
  background: var(--accent-tint);
  border: 1px solid var(--accent-green);
  color: var(--accent-green);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chip button {
  background: none;
  border: none;
  color: var(--accent-green);
  font-weight: bold;
  line-height: 1;
}

/* Dense Comparison Row Cards */
.comparison-rows-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-line);
  border-radius: var(--radius);
  background: var(--bg-surface);
}

.comparison-row {
  display: grid;
  grid-template-columns: 100px 1fr 140px;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-line);
  align-items: center;
  text-decoration: none;
  color: inherit;
}

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

.comparison-row:nth-child(even) {
  background-color: var(--bg-subtle);
}

.row-thumb {
  width: 100px;
  height: 80px;
  border-radius: 2px;
  border: 1px solid var(--border-line);
  object-fit: cover;
  background-color: #E2E8F0;
  flex-shrink: 0;
}

.row-main-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.row-title-bar {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.row-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.badge-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-best-value {
  background-color: var(--accent-tint);
  color: var(--accent-green);
  border: 1px solid var(--accent-green);
}

.badge-verified {
  background-color: #F1F5F9;
  color: var(--text-muted);
  border: 1px solid var(--border-line);
}

.row-summary {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.row-metrics-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

.metric-item {
  color: var(--text-faint);
}

.metric-item strong {
  color: var(--text-main);
  font-weight: 600;
}

.row-tradeoff {
  font-size: 0.82rem;
  color: var(--text-muted);
  background: #F1F5F9;
  padding: 2px 8px;
  border-left: 2px solid var(--border-strong);
  margin-top: 4px;
}

.row-tradeoff strong {
  color: var(--text-main);
}

.row-action {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.row-price-block {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.row-price-sub {
  font-size: 0.75rem;
  color: var(--text-faint);
  font-weight: 400;
}

.row-cta-btn {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--accent-green);
  background: transparent;
  border: 1px solid var(--accent-green);
  padding: 5px 10px;
  border-radius: var(--radius);
  display: inline-block;
  white-space: nowrap;
}

.row-cta-btn:hover {
  background: var(--accent-tint);
  text-decoration: none;
}

/* Sticky Data Tables */
.table-wrapper {
  position: relative;
  overflow-x: auto;
  border: 1px solid var(--border-line);
  border-radius: var(--radius);
  background: var(--bg-surface);
  margin: 16px 0 24px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
  min-width: 680px;
}

.data-table caption {
  padding: 8px 12px;
  font-size: 0.82rem;
  color: var(--text-faint);
  text-align: left;
  border-bottom: 1px solid var(--border-line);
  background: var(--bg-subtle);
  caption-side: top;
}

.data-table th, .data-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border-line);
  border-right: 1px solid var(--border-line);
  vertical-align: middle;
}

.data-table th:last-child, .data-table td:last-child {
  border-right: none;
}

.data-table thead th {
  background-color: var(--bg-subtle);
  color: var(--text-main);
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 2px solid var(--border-line);
  white-space: nowrap;
}

/* Sticky First Column */
.data-table th.sticky-col,
.data-table td.sticky-col {
  position: sticky;
  left: 0;
  background-color: #FFFFFF;
  z-index: 5;
  font-weight: 600;
}

.data-table thead th.sticky-col {
  z-index: 15;
  background-color: var(--bg-subtle);
}

.data-table tbody tr:nth-child(even) td.sticky-col {
  background-color: var(--bg-subtle);
}

.data-table tbody tr:nth-child(even) {
  background-color: var(--bg-subtle);
}

.numeric-cell {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.table-header-unit {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-faint);
}

.delta-positive {
  font-weight: 600;
  color: var(--accent-green);
}

.delta-neutral {
  color: var(--text-muted);
}

/* Section styling for Sub-pages & Articles */
.article-header {
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--border-line);
  background: var(--bg-subtle);
}

.article-header h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.article-lead {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 860px;
}

.article-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  padding: 32px 0 64px;
}

.article-body {
  min-width: 0;
}

.article-body h2 {
  font-size: 1.35rem;
  margin: 28px 0 12px;
  font-weight: 700;
  border-bottom: 1px solid var(--border-line);
  padding-bottom: 6px;
}

.article-body h3 {
  font-size: 1.1rem;
  margin: 20px 0 8px;
  font-weight: 600;
}

.article-body p {
  margin-bottom: 14px;
  color: var(--text-muted);
}

.article-body ul, .article-body ol {
  margin: 0 0 16px 20px;
  color: var(--text-muted);
}

.article-body li {
  margin-bottom: 6px;
}

.callout-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-line);
  border-left: 3px solid var(--border-strong);
  padding: 14px 16px;
  margin: 18px 0;
  border-radius: 2px;
}

.callout-box.highlight {
  border-left-color: var(--accent-green);
  background: #F8FCF9;
}

.callout-box h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-main);
}

.callout-box p {
  font-size: 0.9rem;
  margin: 0;
}

/* Sidebar Details / Spec Widget */
.spec-card {
  border: 1px solid var(--border-line);
  border-radius: var(--radius);
  background: var(--bg-surface);
  padding: 18px;
  position: sticky;
  top: 16px;
}

.spec-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-line);
}

.spec-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.85rem;
  border-bottom: 1px solid #F1F5F9;
}

.spec-list li span.label {
  color: var(--text-faint);
}

.spec-list li span.val {
  font-weight: 600;
  color: var(--text-main);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Form Styles */
.contact-form {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-input, .form-textarea, .form-select {
  border: 1px solid var(--border-line);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 0.93rem;
  font-family: inherit;
  color: var(--text-main);
  background: #FFFFFF;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--accent-green);
  box-shadow: 0 0 0 2px var(--accent-tint);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.btn-submit {
  background: var(--accent-green);
  color: #FFFFFF;
  border: 1px solid var(--accent-green);
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius);
  align-self: flex-start;
}

.btn-submit:hover {
  background: #166534;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #FFFFFF;
  border-top: 1px solid var(--border-strong);
  padding: 14px 20px;
  z-index: 999;
  box-shadow: 0 -2px 8px rgba(15, 23, 42, 0.05);
}

.cookie-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.cookie-text {
  font-size: 0.86rem;
  color: var(--text-muted);
  max-width: 820px;
}

.cookie-actions {
  display: flex;
  gap: 8px;
}

.cookie-btn {
  padding: 6px 12px;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.cookie-btn-primary {
  background: var(--accent-green);
  border: 1px solid var(--accent-green);
  color: #FFFFFF;
}

.cookie-btn-secondary {
  background: #FFFFFF;
  border: 1px solid var(--border-strong);
  color: var(--text-main);
}

/* Unified Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-line);
  background: var(--bg-subtle);
  padding: 40px 0 24px;
  font-size: 0.85rem;
  color: var(--text-faint);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-line);
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin-bottom: 6px;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--text-main);
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.disclosure-text {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-faint);
  background: #FFFFFF;
  padding: 8px 12px;
  border: 1px solid var(--border-line);
  border-radius: 2px;
}

.copyright-bar {
  font-size: 0.8rem;
  color: var(--text-faint);
}

/* Responsive Styles */
@media (max-width: 900px) {
  .listing-layout {
    grid-template-columns: 1fr;
  }

  .filter-sidebar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    z-index: 1000;
    overflow-y: auto;
    border-radius: 0;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
  }

  .filter-sidebar.open {
    display: block;
  }

  .filter-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    z-index: 999;
  }

  .filter-backdrop.open {
    display: block;
  }

  .mobile-filter-trigger-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .comparison-row {
    grid-template-columns: 72px 1fr;
    gap: 10px;
    padding: 10px;
  }

  .row-thumb {
    width: 72px;
    height: 72px;
  }

  .row-action {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-line);
    padding-top: 8px;
    margin-top: 4px;
    width: 100%;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-line);
    padding: 16px;
    gap: 12px;
  }

  .main-nav.open {
    display: flex;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .btn-header-cta {
    display: none;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}