/* Keto Starter Guide v2: review-publisher layout (award cards, check-price buttons, sticky TOC).
   One accent (CTA red-orange), navy for chrome and award labels. Radius: 8px cards, 6px buttons. */
:root {
  --bg: #ffffff;
  --panel: #f4f6f9;
  --panel-2: #eaeef3;
  --ink: #111a2b;
  --ink-2: #3b4658;
  --ink-3: #667085;
  --line: #d9dfe7;
  --navy: #13213c;
  --navy-ink: #ffffff;
  --cta: #d9432b;
  --cta-hover: #bf3720;
  --cta-ink: #ffffff;
  --link: #1f5fbf;
  --good: #16794a;
  --bad: #b3361f;
  --well: #ffffff;
  --r: 8px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1520; --panel: #161e2c; --panel-2: #1c2636; --ink: #edf1f7; --ink-2: #c3ccda; --ink-3: #94a0b3;
    --line: #273246; --navy: #0a1222; --link: #7fb0ff; --good: #5fcf96; --bad: #ff8f78; --well: #f3f5f8; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1520; --panel: #161e2c; --panel-2: #1c2636; --ink: #edf1f7; --ink-2: #c3ccda; --ink-3: #94a0b3;
  --line: #273246; --navy: #0a1222; --link: #7fb0ff; --good: #5fcf96; --bad: #ff8f78; --well: #f3f5f8; color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.7 "Plus Jakarta Sans", system-ui, sans-serif; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0 0 1em; }

/* Top bar */
.top { background: var(--navy); color: var(--navy-ink); }
.top .wrap { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { color: #fff; text-decoration: none; font-weight: 800; font-size: 1.05rem; display: flex; align-items: center; gap: 10px; letter-spacing: -0.01em; }
.mark { width: 30px; height: 30px; border-radius: 6px; background: var(--cta); display: grid; place-items: center; font-weight: 800; }
.top nav { display: flex; gap: 24px; font-size: .92rem; font-weight: 600; }
.top nav a { color: #dfe6f2; text-decoration: none; }
.top nav a:hover { color: #fff; }
@media (max-width: 820px) { .top nav { display: none; } }

/* Layout */
.layout { display: grid; grid-template-columns: minmax(0, 760px) 300px; gap: 56px; justify-content: space-between; padding-top: 22px; padding-bottom: 40px; }
@media (max-width: 1060px) { .layout { grid-template-columns: minmax(0, 1fr); } .side { display: none; } }
.crumbs { font-size: .82rem; color: var(--ink-3); margin-bottom: 14px; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; background: var(--panel-2); color: var(--ink-2); padding: 4px 10px; border-radius: 4px; margin-bottom: 14px; }
h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; }
.dek { font-size: 1.12rem; color: var(--ink-2); margin: 16px 0 18px; }
.byline { display: flex; align-items: center; gap: 12px; font-size: .92rem; }
.av { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.byline .meta { color: var(--ink-3); font-size: .85rem; }
.disc { font-size: .82rem; color: var(--ink-3); margin: 16px 0 22px; padding: 10px 14px; background: var(--panel); border-left: 3px solid var(--cta); border-radius: 0 6px 6px 0; }
.disc b { color: var(--ink); }
.hero { margin: 0 0 26px; }
.hero img { border-radius: var(--r); width: 100%; }
.hero figcaption { font-size: .8rem; color: var(--ink-3); margin-top: 8px; }
.prose p { color: var(--ink-2); }
section { margin-top: 48px; scroll-margin-top: 16px; }
section > h2, .prose > h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: 16px; }

/* Top picks */
.top3 { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 14px; }
@media (max-width: 720px) { .top3 { grid-template-columns: 1fr; } }
.tp3 { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; background: var(--bg); }
.tp3.lead { border: 2px solid var(--navy); }
.tp3 img { background: var(--well); border-radius: 6px; aspect-ratio: 1; object-fit: contain; padding: 8px; margin: 10px 0 12px; }
.tp3 h3 { font-size: 1.08rem; font-weight: 800; }
.tp3 .pp { font-size: .88rem; color: var(--ink-3); margin: 4px 0 12px; }
.tp3 .pp b { color: var(--ink); font-size: 1.05rem; }
.tp3 .jump { font-size: .85rem; text-align: center; margin-top: 10px; font-weight: 600; }
.plist { margin: 22px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.plist li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.plist b { font-weight: 700; }

/* Buttons + awards */
.btn { display: block; text-align: center; background: var(--cta); color: var(--cta-ink); font-weight: 800; text-decoration: none; padding: 13px 16px; border-radius: 6px; transition: background .15s ease, transform .1s ease; }
.btn:hover { background: var(--cta-hover); }
.btn:active { transform: translateY(1px); }
.btn.sm { padding: 10px 12px; font-size: .92rem; margin-top: auto; }
.award { display: inline-block; background: var(--navy); color: #fff; font-weight: 800; font-size: .85rem; padding: 7px 12px; border-radius: 4px; }
.award.sm { font-size: .72rem; padding: 5px 9px; align-self: flex-start; }

/* Compare table */
.tw { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); -webkit-overflow-scrolling: touch; }
table.cmp { border-collapse: collapse; min-width: 1100px; width: 100%; font-size: .86rem; }
.cmp th { background: var(--navy); color: #fff; text-align: left; padding: 11px 10px; font-weight: 700; font-size: .78rem; white-space: nowrap; }
.cmp td { padding: 10px; border-top: 1px solid var(--line); vertical-align: middle; white-space: nowrap; color: var(--ink-2); }
.cmp tr:nth-child(even) td { background: var(--panel); }
.cmp tr.top td { background: #fff3ef; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cmp tr.top td { background: #2a1d1b; } }
.cmp td.tp { position: sticky; left: 0; background: var(--bg); min-width: 210px; white-space: normal; }
.cmp tr:nth-child(even) td.tp { background: var(--panel); }
.cmp td.tp a { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; text-decoration: none; }
.cmp td.tp img { width: 48px; height: 48px; object-fit: contain; background: var(--well); border-radius: 4px; flex: none; }
.note { font-size: .8rem; color: var(--ink-3); margin-top: 8px; }

/* Product sections */
.prod { border-top: 1px solid var(--line); padding-top: 44px; }
.prod > h2 { font-size: clamp(1.45rem, 3vw, 1.95rem); font-weight: 800; }
.rk { color: var(--cta); }
.goodfor { color: var(--ink-2); margin: 10px 0 18px; font-size: .98rem; }
.pcard { border: 1px solid var(--ink); border-radius: var(--r); overflow: hidden; padding: 18px 18px 0; margin-bottom: 26px; }
.pname { font-size: 1.4rem; font-weight: 800; margin: 14px 0 12px; }
.pgrid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 22px; padding-bottom: 18px; }
@media (max-width: 640px) { .pgrid { grid-template-columns: 1fr; } }
.pimg img { background: var(--well); border-radius: 6px; aspect-ratio: 1; object-fit: contain; padding: 10px; width: 100%; }
.pprice { margin-bottom: 10px; color: var(--ink-3); font-size: .88rem; }
.pprice b { color: var(--ink); font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; margin-right: 4px; }
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; }
.chip { background: var(--panel); border-radius: 6px; padding: 8px 10px; }
.chip span { display: block; font-size: .72rem; color: var(--ink-3); font-weight: 600; }
.chip b { font-size: .9rem; font-weight: 700; }
.pside h4 { font-size: .95rem; font-weight: 800; margin: 4px 0 6px; }
.hl { margin: 0; padding-left: 18px; font-size: .92rem; color: var(--ink-2); }
.hl li + li { margin-top: 3px; }
.acc { margin: 0 -18px; border-top: 1px solid rgb(255 255 255 / .12); }
.acc summary { list-style: none; cursor: pointer; background: var(--navy); color: #fff; font-weight: 800; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "\203A"; font-size: 1.4rem; line-height: 1; transition: transform .2s ease; }
.acc[open] summary::after { transform: rotate(90deg); }
.acc > p, .acc .pc { padding: 16px 18px; margin: 0; color: var(--ink-2); }
.pc { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .pc { grid-template-columns: 1fr; } }
.pc h4 { font-size: .95rem; margin-bottom: 6px; }
.pc h4.pro { color: var(--good); }
.pc h4.con { color: var(--bad); }
.pc ul { margin: 0; padding-left: 18px; font-size: .92rem; }
.sub { font-size: 1.15rem; font-weight: 800; margin: 26px 0 12px; }
.quotes { display: grid; gap: 12px; }
.q { margin: 0; background: var(--panel); border-radius: var(--r); padding: 14px 16px; border-left: 4px solid var(--good); }
.q.neg { border-left-color: var(--bad); }
.q blockquote { margin: 0; font-size: .98rem; color: var(--ink); }
.q figcaption { font-size: .8rem; color: var(--ink-3); margin-top: 6px; }
table.specs { width: 100%; border-collapse: collapse; font-size: .92rem; }
.specs th { text-align: left; font-weight: 600; color: var(--ink-3); padding: 8px 0; width: 42%; }
.specs td { padding: 8px 0; font-weight: 700; }
.specs tr + tr th, .specs tr + tr td { border-top: 1px solid var(--line); }
.fine, .srcline { font-size: .8rem; color: var(--ink-3); margin-top: 12px; }

/* Guide, criteria, FAQ */
.guide, .crit { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .guide, .crit { grid-template-columns: 1fr; } }
.guide div, .crit div { background: var(--panel); border-radius: var(--r); padding: 16px 18px; }
.guide h3, .crit h3 { font-size: 1rem; font-weight: 800; margin-bottom: 4px; }
.guide p, .crit p { margin: 0; font-size: .93rem; color: var(--ink-2); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-3); }
.faq[open] summary::after { content: "\2212"; }
.faq p { color: var(--ink-2); }
.about { background: var(--panel); border-radius: var(--r); padding: 24px; }

/* Sticky sidebar */
.side .sticky { position: sticky; top: 20px; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin-top: 190px; }
.side h2 { font-size: 1rem; font-weight: 800; margin-bottom: 10px; }
.side ol { margin: 0 0 12px; padding-left: 20px; font-size: .86rem; }
.side li { margin-bottom: 7px; }
.side li a, .sidelink { color: var(--link); text-decoration: none; }
.side li a:hover, .sidelink:hover { text-decoration: underline; }
.sidelink { display: block; font-size: .86rem; font-weight: 600; padding-top: 7px; border-top: 1px solid var(--line); margin-top: 7px; }

/* Footer */
.foot { background: var(--panel); border-top: 1px solid var(--line); padding: 36px 0 56px; font-size: .82rem; color: var(--ink-3); }
.foot h3 { font-size: .9rem; margin: 18px 0 8px; color: var(--ink-2); }
.foot ol { padding-left: 18px; }
.foot li { word-break: break-word; margin-bottom: 3px; }
