/* Home Tech Answers: site shell + tool styles. System fonts, no frameworks. */
:root {
  --bg: #FAFAF8; --surface: #FFFFFF; --surface-tint: #EEF5F3; --text: #1C1F23;
  --text-muted: #4B5563; --accent: #0F6E64; --on-accent: #FFFFFF; --line: #D9DDE1;
  --warn-bg: #FFF6E5; --warn-line: #B45309; --focus: #0F6E64;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14181B; --surface: #1C2125; --surface-tint: #1B2B29; --text: #E8EAED;
    --text-muted: #A8B0B8; --accent: #5FC9BB; --on-accent: #0B1514; --line: #4A535C;
    --warn-bg: #3A2F17; --warn-line: #E0A64B; --focus: #5FC9BB;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: break-word;
}
@media (min-width: 960px) { body { font-size: 18px; } }
img, svg { max-width: 100%; }
a { color: var(--accent); }
h1 { font-size: 28px; line-height: 34px; margin: var(--s4) 0 var(--s3); }
h2 { font-size: 22px; line-height: 1.3; margin: 0 0 var(--s3); }
h3 { font-size: 19px; line-height: 1.3; margin: 0 0 var(--s1); }
h4 { font-size: 17px; margin: 0 0 var(--s2); }
@media (min-width: 960px) { h1 { font-size: 36px; line-height: 42px; } }
p { margin: 0 0 var(--s3); }
.meta, .disclosure, .small { font-size: 14px; color: var(--text-muted); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--s2); top: -60px; background: var(--surface); padding: var(--s2) var(--s3); z-index: 20; }
.skip:focus { top: var(--s2); }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 var(--s4); }
.wide { max-width: 1080px; margin: 0 auto; padding: 0 var(--s4); }
header.site { border-bottom: 1px solid var(--line); background: var(--surface); }
header.site .wide { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
header.site a { color: var(--text); text-decoration: none; font-weight: 700; padding: var(--s3) 0; min-height: 44px; display: inline-flex; align-items: center; }
header.site nav a { font-weight: 500; color: var(--accent); }
.discbar { background: var(--surface-tint); border-bottom: 1px solid var(--line); font-size: 14px; padding: var(--s2) 0; color: var(--text-muted); }
section.block { margin-top: var(--s6); margin-bottom: var(--s6); }
.panel { background: var(--surface-tint); border: 1px solid var(--line); border-radius: 12px; padding: var(--s4); }
@media (min-width: 960px) { .panel { padding: var(--s5); } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 var(--s4); border-radius: 8px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; border: 2px solid var(--accent); background: var(--accent); color: var(--on-accent); }
.btn-text { background: none; border: 0; color: var(--accent); font: inherit; text-decoration: underline; cursor: pointer; min-height: 44px; padding: 0 var(--s2); }
.btn-out { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 var(--s3); border-radius: 8px; border: 1px solid var(--text); color: var(--text); background: transparent; text-decoration: none; font-size: 15px; font-weight: 500; text-align: center; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }

/* Ladder */
.ladder { list-style: none; padding: 0; margin: var(--s3) 0; display: grid; gap: var(--s3); }
.ladder li { display: grid; grid-template-columns: 32px 1fr; gap: var(--s3); align-items: start; }
.ladder svg { width: 28px; height: 28px; margin-top: 2px; }
.ladder b { display: block; }
.icon { width: 24px; height: 24px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Picker */
.js .nojs-only { display: none; }
html:not(.js) .js-only { display: none !important; }
fieldset.q { border: 0; padding: 0; margin: 0 0 var(--s5); min-width: 0; }
fieldset.q legend { font-weight: 700; padding: 0; margin-bottom: var(--s2); }
.opts { display: grid; gap: var(--s2); grid-template-columns: 1fr; }
@media (min-width: 560px) { .opts { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); } }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opt span { display: flex; align-items: center; min-height: 48px; padding: var(--s2) var(--s3); border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.opt input:checked + span { border: 2px solid var(--accent); background: var(--surface-tint); font-weight: 600; padding: calc(var(--s2) - 1px) calc(var(--s3) - 1px); }
.opt input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.notice { border-left: 4px solid var(--accent); padding: var(--s2) var(--s3); background: var(--surface); margin: var(--s3) 0; }

/* Cards */
.cards { display: grid; gap: var(--s4); grid-template-columns: 1fr; }
@media (min-width: 960px) { .cards.two { grid-template-columns: 1fr 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: var(--s4); min-width: 0; }
@media (min-width: 960px) { .card { padding: var(--s5); } }
.rank { display: inline-block; font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--s1); }
.label { font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); margin: var(--s3) 0 var(--s1); }
.hero-fact { display: flex; gap: var(--s2); align-items: center; font-weight: 700; margin: 0; }
.hero-sub { margin: 0 0 var(--s3); color: var(--text-muted); font-size: 16px; }
.why, .good { margin: var(--s3) 0; }
.why ul, .watch ul, .good ul { margin: 0; padding-left: 20px; }
.watch { background: var(--warn-bg); border-left: 4px solid var(--warn-line); border-radius: 6px; padding: var(--s3); margin: var(--s3) 0; }
.watch li, .good li, .why li { margin-bottom: var(--s2); }
blockquote { margin: 0 0 var(--s1); font-style: italic; }
blockquote p { margin: 0; }
cite { font-size: 14px; font-style: normal; color: var(--text-muted); display: block; }
.chip { display: inline-block; font-size: 13px; padding: 1px 8px; border-radius: 999px; background: var(--line); color: var(--text); margin-right: var(--s2); }
.qlink { font-size: 14px; }
details.specs { margin: var(--s3) 0; }
details.specs summary, details.srcs summary, #rest-details summary { cursor: pointer; display: list-item; padding: 10px 0; font-weight: 600; }
dl.spec { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; }
dl.spec dt { font-weight: 600; margin-top: var(--s2); font-size: 15px; }
dl.spec dd { margin: 0; }
.price { margin: var(--s3) 0; font-size: 16px; }
.cmp { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; }
.cmp input { width: 24px; height: 24px; }
.buy { border-top: 1px solid var(--line); margin-top: var(--s3); padding-top: var(--s3); }
.buy-label { font-size: 14px; font-weight: 700; color: var(--text-muted); margin-bottom: var(--s2); }
.buy .btn-row { margin-bottom: var(--s2); }
.buy .btn-out { flex: 1 1 140px; }
.reason { color: var(--text-muted); font-size: 15px; margin: var(--s2) 0; }
.row-summary { display: none; }

/* Compact rows (all models list) */
.card.compact .card-body { display: none; }
.card.compact.expanded .card-body { display: block; }
.card.compact { padding: var(--s3) var(--s4); }
.card.compact .row-summary { display: block; font-size: 15px; color: var(--text-muted); }
.card .expander { display: none; }
.card.compact .expander { display: inline-flex; }

/* Compare */
.cmp-phone dl { margin: 0 0 var(--s4); }
.cmp-phone .row { border-top: 1px solid var(--line); padding: var(--s3) 0; }
.cmp-phone dt { font-weight: 700; }
.cmp-phone dd { margin: 0; }
.cmp-phone .vals { display: grid; gap: var(--s2); }
.cmp-phone .vals div { font-size: 15px; }
.cmp-phone .vals b { display: block; font-size: 13px; color: var(--text-muted); }
.cmp-phone .minihead { position: sticky; top: 0; background: var(--bg); display: grid; gap: var(--s2); padding: var(--s2) 0; font-weight: 700; border-bottom: 1px solid var(--line); }
.cmp-table { display: none; }
@media (min-width: 960px) { .cmp-phone { display: none; } .cmp-table { display: table; } }
table.cmp-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.cmp-table th, .cmp-table td { text-align: left; padding: var(--s3); border: 1px solid var(--line); vertical-align: top; }
.diff-on .row.differs dd, .diff-on .row.differs dt, .diff-on tr.differs td, .diff-on tr.differs th { font-weight: 700; }

/* Bottom bar */
.bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); padding: var(--s2) var(--s4); display: flex; gap: var(--s3); justify-content: center; z-index: 10; }
.bottom-bar[hidden] { display: none; }
.bottom-bar .btn[hidden] { display: none; }

footer.site { border-top: 1px solid var(--line); margin-top: var(--s7); padding: var(--s5) 0 var(--s7); font-size: 15px; color: var(--text-muted); }
footer.site ul { list-style: none; padding: 0; margin: 0 0 var(--s3); display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); }
.tool-card { display: block; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: var(--s4); margin-bottom: var(--s3); }
.tool-card h2 { color: var(--accent); margin-bottom: var(--s1); }
ul.sources { padding-left: 20px; word-break: break-all; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

[hidden] { display: none !important; }
