:root {
  --bg: #ffffff;
  --bg-soft: #f5f7f6;
  --text: #1c2321;
  --muted: #5b6662;
  --line: #e2e7e5;
  --accent: #0f6e56;
  --accent-strong: #0b5843;
  --accent-soft: #e7f3ef;
  --warn-soft: #fff8e6;
  --warn-line: #f0dca6;
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121615;
    --bg-soft: #1a201e;
    --text: #e6ebe9;
    --muted: #a3aeaa;
    --line: #2c3532;
    --accent: #4cc39d;
    --accent-strong: #6fd3b2;
    --accent-soft: #1c2e28;
    --warn-soft: #2a2516;
    --warn-line: #4d4224;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 var(--font); }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-strong); }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.75rem, 4vw, 2.4rem); margin: 0.4em 0 0.4em; }
h2 { font-size: 1.5rem; margin: 2em 0 0.6em; }
h3 { font-size: 1.2rem; margin: 1.6em 0 0.5em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.section { padding: 32px 16px; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--bg); padding: 8px; z-index: 10; }

/* header / footer */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); text-decoration: none; font-size: 1.05rem; }
.site-header nav { display: flex; gap: 20px; }
.site-header nav a { color: var(--text); text-decoration: none; font-size: 0.95rem; }
.site-header nav a:hover { color: var(--accent); }
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); margin-top: 48px; padding: 32px 0 24px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; }
.footer-inner nav { display: flex; flex-direction: column; gap: 6px; }
.footer-inner nav a { color: var(--text); text-decoration: none; font-size: 0.95rem; }
.footer-brand { font-weight: 700; margin: 0; }
.copyright { margin-top: 16px; }

/* buttons */
.btn { display: inline-block; background: var(--accent); color: #fff; padding: 12px 22px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.btn:hover { background: var(--accent-strong); color: #fff; }
@media (prefers-color-scheme: dark) { .btn, .btn:hover { color: #0c1412; } }
.prose .btn::after { content: " →"; }
.cta { margin: 1.2em 0; }
.btn-sm { padding: 6px 12px; font-size: 0.85rem; white-space: nowrap; }
.prose .btn-sm::after { content: ""; }

a:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* article blocks */
.short-answer { background: var(--accent-soft); border-left: 4px solid var(--accent); padding: 14px 16px; border-radius: 0 var(--radius) var(--radius) 0; }
.pc { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px 4px; margin: 1em 0; }
.pc-title { font-weight: 700; margin: 0 0 4px; }
.pc ul { list-style: none; padding: 0; margin: 0 0 8px; }
.pc li { padding-left: 1.6em; position: relative; }
.pc li::before { position: absolute; left: 0; font-weight: 700; }
.pc-pros { border-top: 3px solid var(--accent); }
.pc-pros .pc-title, .pc-pros li::before { color: var(--accent); }
.pc-pros li::before { content: "✓"; }
.pc-cons { border-top: 3px solid #c2410c; }
.pc-cons .pc-title, .pc-cons li::before { color: #c2410c; }
.pc-cons li::before { content: "✕"; }
@media (prefers-color-scheme: dark) { .pc-cons { border-top-color: #fb923c; } .pc-cons .pc-title, .pc-cons li::before { color: #fb923c; } }
.skip-note { background: var(--warn-soft); border: 1px solid var(--warn-line); border-radius: var(--radius); padding: 10px 14px; }
.table-wrap th:first-child, .table-wrap td:first-child { position: sticky; left: 0; background: var(--bg); z-index: 1; }
.table-wrap thead th:first-child { background: var(--bg-soft); }

/* sticky mobile CTA */
.sticky-cta { display: none; }
@media (max-width: 720px) {
  .sticky-cta:not([hidden]) { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0,0,0,.08); font-size: 0.9rem; }
  .sticky-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body:has(.sticky-cta:not([hidden])) .site-footer { padding-bottom: 80px; }
}

/* our picks */
.avatar { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-size: 1rem; margin-right: 8px; vertical-align: -4px; }
.pick-top .avatar { background: var(--accent); color: #fff; }
.picks { margin: 20px 0 8px; }
.picks-title { font-weight: 700; margin: 0 0 10px; }
.picks-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.pick { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 6px; background: var(--bg); }
.pick-top { border: 2px solid var(--accent); box-shadow: 0 2px 10px rgba(15, 110, 86, 0.08); }
.pick p { margin: 0; }
.pick-label { display: inline-block; align-self: flex-start; background: var(--accent-soft); color: var(--accent); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 2px 8px; border-radius: 4px; }
.pick-top .pick-label { background: var(--accent); color: #fff; }
.pick-name { font-size: 1.25rem; font-weight: 700; }
.pick-for { color: var(--muted); flex: 1; }
.pick .btn { margin-top: 8px; text-align: center; }
.prose ul:has(> .cta-item) { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }

/* home */
.hero { background: linear-gradient(180deg, var(--accent-soft), var(--bg)); padding: 56px 0 40px; }
.hero h1 { max-width: 760px; }
.trust { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.trust li { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.trust span { color: var(--muted); font-size: 0.95rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--bg); }
.card h3 { margin: 0.2em 0 0.4em; font-size: 1.15rem; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card p { margin: 0.4em 0; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.75rem; font-weight: 700; color: var(--accent); margin: 0; }
.method-teaser { background: var(--bg-soft); border-radius: var(--radius); margin-top: 16px; }
.method-teaser h2 { margin-top: 0; }

/* article */
.article-layout { display: grid; grid-template-columns: minmax(0, 720px) 260px; gap: 56px; justify-content: center; padding-top: 24px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 12px; }
.tools { margin: 8px 0 16px; }
.chip { display: inline-block; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 1px 10px; margin: 2px 2px 2px 0; }
.disclosure { background: var(--warn-soft); border: 1px solid var(--warn-line); border-radius: var(--radius); padding: 12px 14px; margin: 16px 0 8px; }
.prose > p:first-child, .prose > p:first-of-type { font-size: 1.05rem; }
.prose li { margin: 0.3em 0; }
.prose blockquote { margin: 1.2em 0; padding: 4px 16px; border-left: 4px solid var(--accent); background: var(--bg-soft); border-radius: 0 var(--radius) var(--radius) 0; }
.table-wrap { overflow-x: auto; margin: 1.2em 0; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 0.93rem; min-width: 520px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--bg-soft); font-weight: 700; }
tbody tr:last-child td { border-bottom: 0; }
tbody td:first-child { font-weight: 600; }
.sources ol { padding-left: 1.2em; }
.sources li { margin: 4px 0; word-break: break-word; }
.method-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 32px 0; background: var(--bg-soft); }
.related h2 { font-size: 1.25rem; }
.sidebar { position: relative; }
.toc { position: sticky; top: 84px; border-left: 2px solid var(--line); padding-left: 16px; font-size: 0.9rem; }
.toc-title { font-weight: 700; margin: 0 0 8px; }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc li { margin: 6px 0; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--accent); }

@media (max-width: 980px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .sidebar { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .trust { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .site-header nav { gap: 14px; }
  .site-header nav a:nth-child(2) { display: none; }
  .hero { padding: 36px 0 28px; }
}

/* screenshots in articles */
.prose img { display: block; border: 1px solid var(--line); border-radius: var(--radius); margin: 1.2em 0; box-shadow: 0 2px 12px rgba(0,0,0,.06); height: auto; }
