:root {
  --bg: #f5f7f9;
  --surface: #ffffff;
  --ink: #17202a;
  --muted: #647282;
  --line: #dbe2ea;
  --accent: #0f766e;
  --accent-dark: #0b4f4a;
  --gold: #d98b22;
  --blue: #1d4ed8;
  --danger: #b42318;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-shell {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 10;
  transform: translateY(-160%);
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--ink);
}

.intro-band {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.home-hero {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 36px;
  padding: 54px 0 42px;
}

.simple-hero {
  padding: 42px 0 34px;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 36px;
  padding: 42px 0 34px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 12px;
}

.breadcrumb strong {
  color: var(--accent-dark);
}

.breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent-dark);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 12px;
  font-size: 4rem;
  line-height: 0.98;
  letter-spacing: 0;
}

.intro-text {
  max-width: 780px;
  color: #344256;
  font-size: 1.12rem;
}

.methodology {
  max-width: 860px;
  color: var(--muted);
}

.disclosure {
  max-width: 880px;
  display: grid;
  gap: 4px;
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 4px solid var(--gold);
  background: #fff8ed;
  color: #4f3b1d;
}

.score-panel {
  align-self: start;
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfc;
}

.panel-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.score-panel strong {
  margin-bottom: 8px;
  font-size: 1.12rem;
}

.product-section {
  padding: 34px 0 48px;
}

.article-section {
  padding: 34px 0 52px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.eyebrow {
  margin-bottom: 4px;
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.section-heading h2,
.guide-content h2 {
  margin-bottom: 0;
  font-size: 1.75rem;
  letter-spacing: 0;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.article-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
}

.article-media {
  aspect-ratio: 13 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #f8fafc;
}

.article-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
}

.article-card-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.article-card h3 {
  margin-bottom: 0;
  font-size: 1.12rem;
  line-height: 1.25;
}

.article-card h3 a,
.text-link {
  color: var(--accent-dark);
  font-weight: 900;
  text-decoration: none;
}

.article-card h3 a:hover,
.text-link:hover {
  color: var(--accent);
}

.article-card p {
  margin: 0;
  color: var(--muted);
}

.empty-state {
  margin: 0;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.pagination-link {
  display: inline-flex;
  min-width: 104px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--accent-dark);
  font-weight: 900;
  text-decoration: none;
}

.pagination-link:hover {
  border-color: rgba(15, 118, 110, 0.45);
  color: var(--accent);
}

.pagination-link.is-disabled {
  color: var(--muted);
  opacity: 0.55;
}

.pagination-status {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.product-list {
  display: grid;
  gap: 16px;
}

.product-card {
  display: grid;
  grid-template-columns: 58px minmax(130px, 188px) minmax(0, 1fr) 148px;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
}

.product-card.is-featured {
  border-color: rgba(15, 118, 110, 0.45);
  box-shadow: var(--shadow);
}

.rank-box {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #edf7f6;
  color: var(--accent-dark);
  font-weight: 900;
  font-size: 1.16rem;
}

.product-media {
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

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

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.badge,
.social-proof {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 800;
}

.badge {
  background: #e7f6ef;
  color: #0f5132;
}

.social-proof {
  background: #eef2ff;
  color: var(--blue);
}

.product-body h3 {
  margin-bottom: 6px;
  font-size: 1.12rem;
  line-height: 1.25;
}

.product-body h3 a {
  text-decoration: none;
}

.product-body h3 a:hover {
  color: var(--accent-dark);
}

.subtitle {
  margin-bottom: 10px;
  color: var(--muted);
}

.highlights {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 18px;
  color: #2f3d4d;
}

.highlights li::marker {
  color: var(--accent);
}

.product-action {
  display: grid;
  gap: 10px;
  justify-items: stretch;
}

.score {
  display: grid;
  gap: 2px;
  justify-items: center;
  padding: 10px;
  border-radius: 8px;
  background: #111827;
  color: #fff;
}

.score span {
  font-weight: 900;
  font-size: 1.8rem;
  line-height: 1;
}

.score small {
  color: #cbd5e1;
  font-size: 0.75rem;
  text-align: center;
}

.cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--gold);
  color: #231400;
  font-weight: 900;
  text-decoration: none;
}

.cta:hover {
  background: #c87912;
}

.merchant {
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
}

.guide-band {
  padding: 46px 0 56px;
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.guide-content {
  max-width: 860px;
}

.guide-content h2 {
  margin-bottom: 18px;
}

.guide-content h3 {
  margin: 28px 0 8px;
  font-size: 1.18rem;
}

.guide-content p {
  color: #334155;
}

.internal-links-band {
  padding: 40px 0 56px;
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.internal-links {
  display: grid;
  gap: 30px;
}

.post-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.post-nav-link {
  display: grid;
  gap: 6px;
  min-height: 112px;
  align-content: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
}

.post-nav-link:only-child {
  grid-column: 1 / -1;
}

.post-nav-link:hover {
  border-color: rgba(15, 118, 110, 0.45);
}

.post-nav-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.post-nav-link strong {
  color: var(--accent-dark);
  font-size: 1.08rem;
  line-height: 1.25;
}

.related-block {
  display: grid;
  gap: 18px;
}

.related-block .section-heading {
  margin-bottom: 0;
}

.site-footer {
  padding: 28px 0;
  background: #111827;
  color: #cbd5e1;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.footer-inner p {
  margin: 0;
  font-size: 0.88rem;
}

@media (max-width: 880px) {
  .header-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .home-hero-grid,
  .intro-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 3.25rem;
  }

  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .score-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .score-panel strong {
    margin-bottom: 0;
  }

  .product-card {
    grid-template-columns: 46px minmax(112px, 150px) minmax(0, 1fr);
  }

  .product-action {
    grid-column: 2 / -1;
    grid-template-columns: 120px minmax(130px, 1fr);
    align-items: center;
  }

  .merchant {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .site-shell {
    width: min(100% - 24px, 1120px);
  }

  .intro-grid {
    padding-top: 30px;
  }

  h1 {
    font-size: 2.35rem;
  }

  .score-panel {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .pagination {
    flex-wrap: wrap;
  }

  .pagination-status {
    order: -1;
    width: 100%;
    text-align: center;
  }

  .post-nav {
    grid-template-columns: 1fr;
  }

  .product-card {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
  }

  .rank-box {
    width: 42px;
    height: 42px;
  }

  .product-media {
    grid-column: 2 / -1;
    max-width: 210px;
  }

  .product-body,
  .product-action {
    grid-column: 1 / -1;
  }

  .product-action {
    grid-template-columns: 1fr;
  }
}
