@font-face { font-family: Chivo; src: url(/fonts/chivo.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Chivo Mono'; src: url(/fonts/chivo-mono.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --page: #ECEEF0; --sheet: #FFFFFF; --ink: #121619; --ink2: #4D555C; --hair: #D5D9DD; --edge: #7A838B;
  --em: #0B7A3D; --em-h: #075F2F; --em-t: #E3F2E8; --amber: #D08A1E; --caution: #8F5300; --caution-t: #FBF0DD;
  --mono: 'Chivo Mono', ui-monospace, monospace; --sans: Chivo, 'Segoe UI', sans-serif;
  --r: 8px; --r-sm: 6px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 15px/1.5 var(--sans); }
a { color: var(--ink); text-underline-offset: 2px; }
a:hover { color: var(--em-h); }
:focus-visible { outline: 2px solid var(--em); outline-offset: 2px; }
.mono { font-family: var(--mono); }
.fig { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.top { max-width: 1200px; margin: 0 auto; padding: 0 20px; height: 60px; display: flex; align-items: center; gap: 24px; border-bottom: 1px solid var(--hair); }
.mark { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.mark svg { flex: none; }
.top nav { margin-left: auto; display: flex; gap: 4px; }
.top nav a { text-decoration: none; padding: 10px 12px; border-radius: var(--r-sm); color: var(--ink2); font-weight: 500; }
.top nav a[aria-current] { color: var(--ink); background: var(--sheet); }
.top nav a:hover { color: var(--ink); }

.frame { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.intro { padding: 40px 0 24px; max-width: 780px; }
h1 { font-size: clamp(28px, 4.2vw, 44px); line-height: 1.08; letter-spacing: -0.02em; font-weight: 750; margin: 0 0 14px; }
.lede { font-size: 17px; color: var(--ink2); margin: 0; max-width: 640px; }
h2 { font-size: 22px; letter-spacing: -0.01em; font-weight: 700; margin: 0; line-height: 1.2; }
h3 { font-size: 16px; font-weight: 700; margin: 0; }
.label { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink2); }

.sheet { background: var(--sheet); border: 1px solid var(--hair); border-radius: var(--r); }

/* brief */
.brief { display: grid; grid-template-columns: 1fr; margin: 0 0 28px; }
.brief fieldset { border: 0; margin: 0; padding: 18px 20px 20px; min-width: 0; border-top: 1px solid var(--hair); }
.brief fieldset:first-child { border-top: 0; }
.brief legend { padding: 0; margin-bottom: 12px; float: left; width: 100%; }
.brief legend + * { clear: both; }
.step { font-family: var(--mono); color: var(--em); margin-right: 6px; }
@media (max-width: 999px) {
  .brief { grid-template-columns: 1fr 1fr; }
  .brief fieldset:first-child, .brief fieldset:last-child { grid-column: 1 / -1; }
  .brief fieldset:nth-child(3) { border-left: 1px solid var(--hair); }
  .brief fieldset { padding: 16px; }
  .radio { min-height: 44px; }
}
@media (min-width: 1000px) {
  .brief { grid-template-columns: 1.9fr 1fr 1fr 1fr; }
  .brief fieldset { border-top: 0; border-left: 1px solid var(--hair); }
  .brief fieldset:first-child { border-left: 0; }
}

.goal { border-top: 1px solid var(--hair); }
.goal:first-of-type { border-top: 0; }
.goal > label { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-weight: 500; }
.goal small { color: var(--ink2); font-weight: 400; font-size: 13px; margin-left: auto; text-align: right; }
.goal .detail { display: none; padding: 0 0 12px 30px; gap: 8px 14px; flex-wrap: wrap; align-items: center; }
.goal.on .detail { display: flex; }
.detail label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink2); }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; margin: 0; accent-color: var(--em); flex: none; }

select, input[type=number], input[type=text] {
  font: 500 15px var(--sans); color: var(--ink); background: var(--sheet); border: 1px solid var(--edge); border-radius: var(--r-sm);
  height: 44px; padding: 0 10px; min-width: 0;
}
input[type=number] { width: 100%; }
.detail select { height: 40px; }
.field { display: block; margin-bottom: 14px; }
.field > span:first-child { display: block; font-size: 13px; color: var(--ink2); margin-bottom: 6px; }
.field select, .field .unit { width: 100%; }
.unit { display: flex; align-items: center; border: 1px solid var(--edge); border-radius: var(--r-sm); background: var(--sheet); height: 44px; }
.unit:focus-within { outline: 2px solid var(--em); outline-offset: 1px; }
.unit input { border: 0; height: 42px; outline: none; }
.unit b { font: 500 14px var(--sans); color: var(--ink2); padding: 0 10px; white-space: nowrap; }
.radio { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.radio span small { display: block; color: var(--ink2); font-size: 13px; }
.hint { font-size: 13px; color: var(--ink2); margin: 6px 0 0; }

/* report */
.report { transition: opacity 160ms ease-out; }
.report.fade { opacity: 0.35; }
.verdict { padding: 22px 22px 24px; margin-bottom: 16px; }
.verdict-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; color: var(--ink2); font-size: 14px; }
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 4px; background: var(--em); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.badge.quiet { background: var(--em-t); color: var(--em-h); }
.pick { padding: 16px 0; border-top: 1px solid var(--hair); display: grid; gap: 10px; }
.pick:first-of-type { border-top: 0; padding-top: 0; }
.pick-name { font-size: 24px; font-weight: 750; letter-spacing: -0.015em; line-height: 1.15; }
.pick-name a { text-decoration: none; }
.pick-name a:hover { text-decoration: underline; }
.pick .sub { color: var(--ink2); }
.figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin: 6px 0 2px; }
@media (min-width: 700px) { .figs { grid-template-columns: repeat(4, minmax(0, max-content)); gap: 0 40px; } }
.fig-n { font: 650 32px/1.05 var(--sans); font-variant-numeric: tabular-nums lining-nums; letter-spacing: -0.02em; display: block; }
.fig-n small { font-size: 14px; color: var(--ink2); margin-left: 3px; letter-spacing: 0; }
.fig-l { font-size: 13px; color: var(--ink2); }
.why { margin: 0; max-width: 760px; }
.items { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.items li { display: flex; gap: 12px; justify-content: space-between; padding: 6px 0; border-top: 1px dashed var(--hair); }
.items li:first-child { border-top: 0; }
.items .fig { color: var(--ink2); white-space: nowrap; }
.notes { margin: 0; padding: 0 0 0 18px; color: var(--ink2); font-size: 14px; }
.stepup { font-size: 14px; color: var(--ink2); margin: 0; }
.total { display: flex; gap: 12px 32px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--ink); font-size: 14px; }
.total b { font-weight: 650; font-size: 16px; }

.bar { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bar-track { flex: 1; height: 12px; display: flex; min-width: 40px; }
.bar-buy { background: var(--ink); height: 100%; transition: width 200ms ease-out; border-radius: 2px 0 0 2px; }
.bar-pow { background: var(--amber); height: 100%; transition: width 200ms ease-out; border-radius: 0 2px 2px 0; }
.bar .fig { font-size: 14px; font-weight: 650; white-space: nowrap; min-width: 58px; text-align: right; }
.legend { display: flex; gap: 18px; font-size: 13px; color: var(--ink2); flex-wrap: wrap; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }

.group { margin-bottom: 16px; }
.group-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 18px 20px 12px; flex-wrap: wrap; }
table.cmp { width: 100%; border-collapse: collapse; font-size: 14px; }
.cmp th { text-align: left; font-size: 12px; font-weight: 600; color: var(--ink2); padding: 8px 10px; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); white-space: nowrap; }
.cmp td { padding: 6px 10px; border-bottom: 1px solid var(--hair); vertical-align: middle; }
.cmp th:first-child, .cmp td:first-child { padding-left: 20px; }
.cmp th:last-child, .cmp td:last-child { padding-right: 20px; }
.cmp tr:last-child td { border-bottom: 0; }
.cmp .n { color: var(--ink2); width: 28px; }
.cmp .num { text-align: right; white-space: nowrap; }
.cmp th.num { text-align: right; }
.cmp button.more small { display: block; font-weight: 400; color: var(--ink2); font-size: 13px; }
.cmp .barcell { width: 32%; min-width: 180px; }
.cmp tr.best td { background: var(--em-t); }
.cmp button.more { font: inherit; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; text-align: left; font-weight: 600; min-height: 44px; display: block; width: 100%; }
.cmp button.more:hover .t { text-decoration: underline; }
.cmp tr.open-row td { background: #F6F7F8; padding: 4px 20px 16px; }
.fit { display: flex; gap: 4px; }
.fb { display: inline-flex; align-items: center; gap: 4px; }
.fk { display: none; font-size: 12px; color: var(--ink2); margin-right: 8px; }
.fit svg { display: block; }
@media (max-width: 760px) {
  .cmp thead { display: none; }
  .cmp, .cmp tbody, .cmp tr, .cmp td { display: block; width: 100%; }
  .cmp tr { padding: 12px 16px; border-bottom: 1px solid var(--hair); display: grid; grid-template-columns: 24px 1fr auto; gap: 4px 10px; }
  .cmp td { border: 0; padding: 0 !important; }
  .cmp td.n { grid-row: 1; }
  .cmp td.namecell { grid-column: 2 / 4; }
  .cmp td.fitcell { grid-column: 2; }
  .cmp td.num { display: none; }
  .cmp td.barcell { grid-column: 2 / 4; min-width: 0; width: auto; }
  .cmp td.fitcell { margin: 2px 0; }
  .fk { display: inline; }
  .cmp tr.open-row { display: block; padding: 0 16px 12px; }
  .cmp tr.best { background: var(--em-t); }
  .cmp tr.best td { background: none; }
}
.ruled { padding: 4px 20px 16px; }
.ruled ul { list-style: none; margin: 0; padding: 0; columns: 2 320px; column-gap: 32px; }
.ruled li { break-inside: avoid; padding: 8px 0; border-top: 1px solid var(--hair); font-size: 14px; }
.ruled li b { font-weight: 600; }
.ruled li span { display: block; color: var(--ink2); }
.link-btn { font: 600 14px var(--sans); background: none; border: 0; color: var(--ink); text-decoration: underline; cursor: pointer; padding: 10px 0; min-height: 44px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: var(--r-sm); font: 600 15px var(--sans); border: 1px solid var(--edge); background: var(--sheet); color: var(--ink); cursor: pointer; text-decoration: none; transition: background-color 150ms ease-out; }
.btn:hover { background: #F4F5F6; color: var(--ink); }
.btn.primary { background: var(--em); border-color: var(--em); color: #fff; }
.btn.primary:hover { background: var(--em-h); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.toast { font-size: 14px; color: var(--em-h); }

.assume { font-size: 13px; color: var(--ink2); margin: 12px 0 0; max-width: 820px; }
.empty { padding: 28px 22px; }

.listings { margin-top: 10px; border: 1px solid var(--hair); border-radius: var(--r-sm); background: var(--sheet); padding: 12px 14px; }
.listings p { margin: 0; font-size: 14px; color: var(--ink2); }

.cols { display: grid; gap: 24px; padding: 40px 0; }
@media (min-width: 900px) { .cols { grid-template-columns: 1fr 1fr 1fr; gap: 40px; } }
.cols h3 { margin-bottom: 6px; }
.cols p { margin: 0; color: var(--ink2); }
.faq { padding: 0 0 48px; max-width: 820px; }
.faq h2 { margin-bottom: 8px; }
.faq details { border-top: 1px solid var(--hair); }
.faq summary { cursor: pointer; font-weight: 600; padding: 12px 0; min-height: 44px; list-style-position: outside; }
.faq details p { margin: 0 0 14px; color: var(--ink2); }

footer.foot { border-top: 1px solid var(--hair); }
footer.foot div { max-width: 1200px; margin: 0 auto; padding: 20px; display: flex; gap: 8px 20px; flex-wrap: wrap; font-size: 13px; color: var(--ink2); }
footer.foot a { color: var(--ink2); }
footer.foot span { margin-right: auto; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* gear */
.crumb { padding-top: 28px; font-size: 14px; color: var(--ink2); }
.crumb a { color: var(--ink2); }
.gear-intro { padding-top: 8px; max-width: 860px; }
.gear-intro .lede { font-size: 16px; color: var(--ink); }
.mk { margin-top: 16px; }
.mk label { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink2); }
.mk select { height: 40px; }
.keyfigs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; padding: 20px 22px; margin-bottom: 16px; }
@media (min-width: 800px) { .keyfigs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.two { display: grid; gap: 16px; margin-bottom: 16px; }
@media (min-width: 900px) { .two { grid-template-columns: 1fr 1fr; } }
.pad { padding: 18px 20px 20px; }
.pad h2 { margin-bottom: 12px; }
.fit-table, .spec { width: 100%; border-collapse: collapse; font-size: 14px; }
.fit-table td, .fit-table th, .spec th, .spec td { padding: 9px 8px 9px 0; border-top: 1px solid var(--hair); text-align: left; vertical-align: top; }
.fit-table tr:first-child > *, .spec tr:first-child > * { border-top: 0; }
.fit-table td:first-child { width: 26px; padding-top: 11px; }
.fit-table th { font-weight: 600; width: 34%; }
.fit-table td:last-child { color: var(--ink2); }
.spec th { font-weight: 600; width: 32%; color: var(--ink2); }
.mono { font-family: var(--mono); font-size: 13.5px; }
.dim { color: var(--ink2); font-size: 13px; }
.sub-line { display: block; font-size: 13px; color: var(--ink2); }
.cmp .namecell a { font-weight: 600; text-decoration: none; }
.cmp .namecell a:hover { text-decoration: underline; }
.scroll { overflow-x: auto; }
.sortable { min-width: 860px; }
.sortable thead { display: table-header-group !important; }
.sortable, .sortable tbody { display: table !important; width: 100%; }
.sortable tbody { display: table-row-group !important; }
.sortable tr { display: table-row !important; padding: 0; }
.sortable td, .sortable th { display: table-cell !important; padding: 8px 10px !important; }
.sortable td.num { display: table-cell !important; }
.sortable td:first-child, .sortable th:first-child { padding-left: 20px !important; }
.sort { font: inherit; font-weight: 600; color: inherit; background: none; border: 0; padding: 6px 0; cursor: pointer; min-height: 32px; }
th[aria-sort=ascending] .sort::after { content: ' ↑'; }
th[aria-sort=descending] .sort::after { content: ' ↓'; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font: 500 13px var(--sans); height: 36px; padding: 0 12px; border: 1px solid var(--edge); background: var(--sheet); color: var(--ink); border-radius: var(--r-sm); cursor: pointer; }
.chip[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: #fff; }
.listings-block .empty { padding: 0 20px 20px; color: var(--ink2); }
.prose { max-width: 720px; }
.prose p, .prose li { font-size: 16px; line-height: 1.6; }
.prose h2 { margin: 32px 0 10px; }

/* listings */
.listings-for { margin-top: 14px; }
.listings-for h3 { margin-bottom: 6px; }
.listings { margin-top: 0; border: 0; padding: 0; background: none; }
.pad-x { padding: 0 20px 20px; }
.listings .summary { margin: 0 0 4px; font-size: 14px; }
.disclose { margin: 0 0 8px; font-size: 13px; color: var(--ink2); }
.lst { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); }
.lst li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hair); background: var(--sheet); }
.lst li.is-wrong { opacity: 0.7; }
.lst img, .lst .noimg { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; background: var(--page); }
.lst-main a { font-weight: 600; text-decoration: none; font-size: 14px; }
.lst-main a:hover { text-decoration: underline; }
.lst-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; font-size: 13px; }
.chipx { padding: 1px 6px; border: 1px solid var(--hair); border-radius: 4px; font-size: 12px; }
.warn { padding: 1px 6px; border-radius: 4px; font-size: 12px; background: var(--caution-t); color: var(--caution); font-weight: 600; }
.under { color: var(--em-h); font-weight: 600; font-size: 13px; }
.lst-price { grid-column: 2; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 13px; }
.lst-price b { font-size: 18px; font-weight: 650; }
.btn.small { height: 36px; padding: 0 12px; font-size: 14px; margin-left: auto; }
@media (min-width: 760px) {
  .lst li { grid-template-columns: 64px 1fr 230px; }
  .lst-price { grid-column: 3; flex-direction: column; align-items: flex-end; text-align: right; }
  .btn.small { margin: 6px 0 0; }
}

/* build page */
.watch { list-style: none; margin: 0 0 12px; padding: 0; border-top: 1px solid var(--hair); }
.watch li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--hair); font-size: 14px; }
.w-name { font-weight: 600; }
.w-target b { font-weight: 650; }
.targets { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--ink); max-width: 520px; }
.targets h3 { margin-bottom: 10px; }
.btn:disabled { opacity: 0.6; cursor: default; }

/* guides */
.guide { max-width: 860px; padding: 8px 0 48px; }
.guide h1 { margin: 8px 0 18px; }
.guide > p, .guide li { max-width: 720px; }
.guide .scroll { margin: 22px 0 6px; background: var(--sheet); border: 1px solid var(--hair); border-radius: var(--r); }
.guide-table { min-width: 640px; }
.guide-table td, .guide-table th { padding: 8px 10px; }
.guide-table th:first-child, .guide-table td:first-child { padding-left: 16px; }
.guide-table .num svg { display: inline-block; vertical-align: middle; }
@media (max-width: 760px) {
  .guide-table thead { display: table-header-group !important; }
  .guide-table, .guide-table tbody { display: table !important; width: 100%; }
  .guide-table tbody { display: table-row-group !important; }
  .guide-table tr { display: table-row !important; padding: 0; }
  .guide-table td, .guide-table th { display: table-cell !important; padding: 8px 10px !important; }
}
.calc { margin: 24px 0; }
.calc h2 { margin-top: 0; }
.calc-row { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.calc-out { margin: 4px 0 0; font-size: 16px; }
.guide-list { list-style: none; margin: 0 0 48px; padding: 0; display: grid; gap: 16px; }
@media (min-width: 900px) { .guide-list { grid-template-columns: repeat(3, 1fr); } }
.guide-list a { display: block; padding: 20px; text-decoration: none; height: 100%; }
.guide-list a:hover h2 { text-decoration: underline; }
.guide-list p { color: var(--ink2); margin: 8px 0 0; }

.jump { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 5; display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; min-height: 52px; background: var(--ink); color: #fff; border-radius: var(--r); text-decoration: none; font-size: 14px; transition: opacity 160ms ease-out; }
.jump b { font-weight: 650; }
.jump span:last-child { white-space: nowrap; color: #fff; }
.jump:hover { color: #fff; }
.jump.show { display: flex; }
@media (min-width: 1000px) { .jump { left: auto; right: 24px; bottom: 24px; width: 440px; } }
