:root {
  --bg: #f7f8fa; --surface: #fff; --text: #16202c; --muted: #5b6776; --line: #e3e7ec;
  --brand: #0f766e; --brand-dark: #0b5a54; --accent: #f59e0b; --accent-text: #111; --pro: #15803d; --con: #b91c1c;
  --hero-from: #0f766e; --hero-to: #134e4a; --hero-text: #fff; --banner-bg: #f59e0b; --banner-fg: #111;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 12px; --shadow: 0 1px 2px rgba(16,24,40,.06), 0 4px 12px rgba(16,24,40,.05);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0e141b; --surface: #16202b; --text: #e6ebf1; --muted: #9aa7b6; --line: #263342;
    --brand: #2dd4bf; --brand-dark: #5eead4; --pro: #4ade80; --con: #f87171; --shadow: none; }
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.65 var(--font); background: var(--bg); color: var(--text); }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.25; }
.wrap { max-width: 1080px; margin: 0 auto; padding-inline: 20px; }
.muted { color: var(--muted); font-size: .92rem; margin: .2rem 0; }
.small { font-size: .82rem; color: var(--muted); }

.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; min-height: 64px; padding-block: 8px; gap: 8px 16px; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 1.35rem; text-decoration: none; color: var(--text); letter-spacing: -.01em; }
.logo b { color: var(--brand); }
.logo-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--brand); color: #fff; }
.logo-icon { width: 24px; height: 24px; }
.nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--brand); }
.logo-img { display: block; max-height: 44px; width: auto; }
.disclosure-bar { background: var(--surface); border-bottom: 1px solid var(--line); font-size: .8rem; color: var(--muted); padding: 6px 0; }
.site-banner { background: var(--banner-bg); color: var(--banner-fg); text-align: center; font-weight: 600; padding: 10px 0; }
.site-banner a { color: inherit; text-decoration: none; display: block; }
.site-banner a:hover { text-decoration: underline; }
.banner-image { padding: 0; background: none; }
.banner-image img { display: block; width: 100%; max-height: 220px; object-fit: cover; }

.hero { background: linear-gradient(135deg, var(--hero-from), var(--hero-to)); color: var(--hero-text); padding: 72px 0 64px; }
.hero-has-image { background-size: cover; background-position: center; }
.hero h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); max-width: 760px; margin: 0 0 16px; letter-spacing: -.02em; }
.hero p { font-size: 1.15rem; max-width: 640px; opacity: .9; margin: 0 0 28px; }
.hero .btn { background: #fff; color: #111; }
.section-title { font-size: 1.6rem; margin: 48px 0 20px; }

.btn { display: inline-block; background: var(--accent); color: var(--accent-text); font-weight: 700; text-decoration: none; padding: 10px 18px; border-radius: calc(var(--radius) * .66); white-space: nowrap; transition: transform .1s, filter .1s; }
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-sm { padding: 6px 12px; font-size: .88rem; }
.btn-lg { padding: 14px 24px; font-size: 1.05rem; }

.guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.guide { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.guide:hover { border-color: var(--brand); transform: translateY(-2px); }
.guide .icon { width: 44px; height: 44px; color: var(--brand); }
.guide-title { font-weight: 700; font-size: 1.1rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.card-media, .pick-media, .product-media { position: relative; display: grid; place-items: center; background: linear-gradient(135deg, rgba(15,118,110,.10), rgba(245,158,11,.10)); color: var(--brand); }
.card-media { height: 140px; }
.card-media .icon { width: 72px; height: 72px; }
.card-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 1.05rem; margin: 6px 0 4px; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a:hover { color: var(--brand); }
.card-foot { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rank { position: absolute; top: 10px; left: 10px; background: var(--text); color: var(--bg); font-weight: 800; font-size: .8rem; padding: 2px 8px; border-radius: 6px; }
.award { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); }
.score { display: inline-flex; align-items: baseline; font-weight: 800; font-size: 1.15rem; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 2px 8px; }
.score small { font-size: .7rem; color: var(--muted); font-weight: 600; margin-left: 1px; }

.article, .product { padding-block: 24px 56px; max-width: 860px; }
.product { max-width: 1080px; }
.crumbs { font-size: .85rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.article h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin: 12px 0 6px; letter-spacing: -.02em; }
.byline { color: var(--muted); font-size: .9rem; margin: 0 0 20px; }
.lede { font-size: 1.15rem; }
.quick-picks, .pick, .advice, .verdict { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 28px 0; box-shadow: var(--shadow); }
.quick-picks h2 { margin-top: 0; font-size: 1.25rem; }
.table-scroll { overflow-x: auto; }
.quick-picks table { width: 100%; border-collapse: collapse; }
.quick-picks th, .quick-picks td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.quick-picks th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.pick { scroll-margin-top: 80px; }
.pick-head { display: grid; grid-template-columns: 160px 1fr; gap: 20px; align-items: center; margin-bottom: 8px; }
.pick-media { height: 140px; border-radius: 10px; }
.pick-media .icon { width: 72px; height: 72px; }
.pick h2 { margin: 4px 0; font-size: 1.45rem; }
.pick-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.more { font-weight: 600; }

.specs { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .95rem; }
.specs th, .specs td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.specs th { width: 38%; color: var(--muted); font-weight: 600; }
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.proscons h4 { margin: 0 0 6px; }
.proscons ul { margin: 0; padding-left: 0; list-style: none; }
.proscons li { padding-left: 24px; position: relative; margin: 4px 0; }
.pros h4 { color: var(--pro); } .cons h4 { color: var(--con); }
.pros li::before { content: "+"; position: absolute; left: 4px; font-weight: 800; color: var(--pro); }
.cons li::before { content: "\2212"; position: absolute; left: 4px; font-weight: 800; color: var(--con); }
.note { font-size: .85rem; color: var(--muted); }

.product-hero { display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; align-items: start; margin: 16px 0 32px; }
.product-media { aspect-ratio: 1; border-radius: var(--radius); max-width: 100%; }
.product-media .icon { width: 45%; height: 45%; }
.product-info h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 6px 0 10px; letter-spacing: -.02em; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0 24px; }
.facts div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.facts dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.product section h2 { font-size: 1.35rem; }

.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 28px 0; margin-top: 40px; }
.footer-links a { color: var(--text); }

@media (max-width: 720px) {
  .pick-head, .product-hero, .proscons { grid-template-columns: 1fr; }
  .pick-media { height: 110px; }
  .product-media { aspect-ratio: 16/9; }
  .nav { gap: 14px; font-size: .92rem; }
  .hero { padding: 48px 0; }
}

/* Uploaded images */
.media-img { width: 100%; height: 100%; object-fit: contain; padding: 10px; background: #fff; }
.guide .media-img { height: 120px; padding: 0; border-radius: calc(var(--radius) * .66); object-fit: cover; }
.product-media .media-img { border-radius: var(--radius); padding: 24px; }
.pick-media .media-img { border-radius: 10px; }
.card-media, .pick-media, .product-media { overflow: hidden; }
.article-hero { display: block; width: 100%; max-height: 380px; object-fit: cover; border-radius: var(--radius); margin: 8px 0 20px; }

/* Featured roundup on the homepage */
.features { margin-top: 40px; display: grid; gap: 16px; }
.feature { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; background: var(--surface); border: 2px solid var(--brand); border-radius: var(--radius); padding: 24px; text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: transform .15s; }
.feature:hover { transform: translateY(-2px); }
.feature-img { width: 180px; height: 120px; object-fit: cover; border-radius: calc(var(--radius) * .66); }
.feature-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.feature-title { font-size: 1.4rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
.feature-text { color: var(--muted); }
.feature-picks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.feature-picks span { font-size: .78rem; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.featured-in { margin: -4px 0 0; font-weight: 600; }
.advice h2 { font-size: 1.25rem; margin: 18px 0 6px; }
.advice h2:first-child { margin-top: 0; }
.article > h2 { font-size: 1.35rem; margin-top: 28px; }
@media (max-width: 720px) {
  .feature { grid-template-columns: 1fr; }
  .feature-img { width: 100%; height: 160px; }
  .feature .btn { justify-self: start; }
  .nav { gap: 12px; font-size: .88rem; }
}
