/* bestainewsapp.com: a consumer test magazine's bench page.
   Red nameplate, black rubric rules, white stock, one chart of marks. */
@font-face { font-family: "Chivo"; src: url("/fonts/chivo-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Libre Franklin"; src: url("/fonts/libre-franklin-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --page: #ffffff;
  --tint: #f3f0e9;
  --ink: #17140f;
  --ink-2: #48423a;
  --ink-3: #6a6358;
  --line: rgba(23, 20, 15, 0.14);
  --line-2: rgba(23, 20, 15, 0.38);
  --red: #c5281c;
  --red-ink: #a11f15;
  --display: "Chivo", "Franklin Gothic Medium", "Arial Narrow", sans-serif;
  --text: "Libre Franklin", "Franklin Gothic Book", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gut: 16px;
  --rule: 3px solid var(--ink);
}

* { box-sizing: border-box; }
html { background: var(--page); color-scheme: light; -webkit-text-size-adjust: 100%; scrollbar-color: var(--ink) var(--tint); accent-color: var(--red); caret-color: var(--red); }
body { margin: 0; font: 400 16px/1.55 var(--text); color: var(--ink); background: var(--page); font-variant-numeric: tabular-nums lining-nums; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; width: 100%; }
::selection { background: var(--red); color: #fff; }
h1, h2, h3, p, ul, ol, dl, dd, blockquote, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-2); text-decoration-thickness: 1px; text-underline-offset: 0.2em; transition: color 140ms var(--ease), text-decoration-color 140ms var(--ease), background-color 140ms var(--ease); }
a:hover { color: var(--red-ink); text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 2px #fff; }
strong { font-weight: 600; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; z-index: 9; background: var(--ink); color: #fff; padding: 8px 12px; }

/* Nameplate: the red band, then the need filter as section tabs */
.mast { border-bottom: var(--rule); }
.plate { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding: 16px var(--gut) 14px; background: var(--red); color: #fff; }
.plate ::selection { background: #fff; color: var(--red-ink); }
.name { font: 600 30px/1 var(--display); letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }
.name:hover { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; }
.by { display: inline-flex; align-items: baseline; gap: 6px; font-size: 14px; white-space: nowrap; }
.by .ulsa-mark { display: block; align-self: center; }
.issue { display: none; margin-left: auto; font-size: 14px; }
.mast :focus-visible { outline-color: #fff; box-shadow: 0 0 0 2px var(--ink); }
.needs { display: flex; min-width: 0; overflow-x: auto; scrollbar-width: none; padding: 0 calc(var(--gut) - 12px); }
.needs::-webkit-scrollbar { display: none; }
.needs a { flex: none; padding: 12px; font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.needs a:hover { color: var(--ink); background: var(--tint); }
.needs a[aria-current] { color: #fff; background: var(--ink); }
.needs .n { margin-left: 2px; font-size: 13px; font-weight: 400; color: var(--ink-3); }
.needs a[aria-current] .n { color: #fff; }
.needs a:focus-visible { outline-offset: -3px; outline-color: var(--red); box-shadow: none; }

main { padding: 0 var(--gut); max-width: 1440px; margin: 0 auto; }

/* Opener: the answer and the disclosure on the left, the chart on the right */
.top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 28px 0 32px; }
.top > * { min-width: 0; }
h1 { font: 600 30px/1.08 var(--display); letter-spacing: -0.02em; text-wrap: balance; max-width: 22em; }
.lede { margin-top: 16px; max-width: 34em; font-size: 18px; line-height: 1.5; }
.lede + .lede { margin-top: 12px; font-size: 16px; line-height: 1.55; color: var(--ink-2); max-width: 38em; }
.disclosure { margin-top: 20px; padding: 12px 14px; max-width: 42em; font-size: 14px; line-height: 1.5; color: var(--ink); background: var(--tint); border: 1px solid var(--ink); }
.stamp { margin-top: 12px; font-size: 13px; color: var(--ink-3); }

/* The chart of marks */
.chart { align-self: start; border-top: var(--rule); padding-top: 12px; }
.chart figcaption { font-size: 14px; line-height: 1.45; color: var(--ink-2); max-width: 44em; }
.chart figcaption strong { display: block; font: 600 20px/1.2 var(--display); color: var(--ink); margin-bottom: 4px; }
.chart table { width: 100%; margin-top: 4px; border-collapse: collapse; table-layout: fixed; font-size: 14px; line-height: 1.2; }
.chart th, .chart td { padding: 0; text-align: left; font-weight: 400; }
.chart thead th { height: 44px; vertical-align: bottom; padding-bottom: 8px; font-size: 13px; color: var(--ink-2); border-bottom: 1px solid var(--ink); }
.chart .c-name { width: 118px; }
.chart .c-price { width: 58px; }
.chart .c-price, .chart .price { border-left: 1px solid var(--line-2); }
.chart .c-price > span:first-child { display: block; }
.chart .c-free { width: 52px; text-align: center; line-height: 1.15; }
.chart .c-fit, .chart .fit { padding-right: 10px; }
.chart .fit { padding-top: 7px; padding-bottom: 7px; font-size: 13px; line-height: 1.25; color: var(--ink-2); }
.chart .fit .lab { display: block; margin-top: 4px; }
.chart .fit.s2 .lab { color: var(--ink); font-weight: 600; }
.chart .fit.s2 .lab b { display: inline-block; white-space: nowrap; margin-left: 0; padding: 0 5px; font-weight: 600; line-height: 18px; color: #fff; background: var(--red); }
.chart .fit.nv .lab { margin-top: 0; color: var(--ink-3); }
.steps { display: inline-flex; gap: 3px; vertical-align: middle; }
.steps i { width: 26px; height: 8px; border: 1.5px solid var(--ink-3); }
.steps i.on { background: var(--ink); border-color: var(--ink); }
.fit.s2 .steps i.on { background: var(--red); border-color: var(--red); }
.legend .steps { margin-right: 2px; }
.legend .steps i { width: 14px; height: 7px; }
.chart .axis { display: none; }
.chart tbody tr { border-bottom: 1px solid var(--line); transition: opacity 180ms var(--ease); }
.chart tbody tr.off { opacity: 0.28; }
.chart tbody th { height: 34px; font-weight: 600; white-space: nowrap; }
.chart tbody th a { text-decoration: none; }
.chart tbody th a:hover { text-decoration: underline; }
.chart .ours { background: var(--tint); }
.chart .ours th { padding-left: 6px; }
.chart .m { text-align: center; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); vertical-align: middle; }
.nv .dot { background: none; border: 1.5px solid var(--ink-3); }
.own .dot { border-radius: 0; width: 11px; height: 11px; }
.chart .price { position: relative; text-align: right; font-size: 13px; padding-right: 2px; }
.chart .ours .price { padding-right: 6px; }
.chart .price.none { color: var(--ink-3); font-size: 12px; line-height: 1.1; }
.chart .bar { display: none; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.chart .quiet { margin-top: 6px; font-size: 13px; }
.tag { display: inline-block; margin-left: 4px; padding: 0 5px; font-size: 12px; font-weight: 600; line-height: 18px; color: #fff; background: var(--ink); vertical-align: 1px; }

/* The bench table */
.tools { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; padding: 12px 0; border-top: var(--rule); }
.tools > * { min-width: 0; }
.note { font-size: 15px; font-weight: 500; }
.sort { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 14px; color: var(--ink-2); }
.sort[hidden] { display: none; }
.sort select { font: inherit; color: var(--ink); background: var(--page); border: 1px solid var(--ink); border-radius: 4px; padding: 7px 8px; max-width: 100%; }
.sort output { color: var(--ink-3); }

.wrap { overflow-x: auto; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); scrollbar-width: thin; scrollbar-color: var(--ink) var(--tint); }
.bench table { width: 100%; min-width: 1320px; border-collapse: separate; border-spacing: 0; font-size: 14px; line-height: 1.45; }
caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bench th, .bench td { text-align: left; vertical-align: top; padding: 12px; border-bottom: 1px solid var(--line); }
.bench tbody tr:last-child > * { border-bottom: 0; }
.bench thead th { background: var(--tint); font: 600 13px/1.3 var(--text); color: var(--ink); border-bottom: 1px solid var(--ink); }
.bench th:first-child { position: sticky; left: 0; z-index: 1; width: 160px; min-width: 160px; background: var(--page); box-shadow: 1px 0 0 var(--line-2); }
.bench thead th:first-child { background: var(--tint); }
.bench tbody th { font: 600 17px/1.2 var(--display); }
.bench tbody th a { text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.maker { display: block; margin-top: 6px; font: 400 12px/1.35 var(--text); color: var(--ink-3); }
.bench td .v { display: block; }
.bench td.nv .v { color: var(--ink-3); }
.bench tr.ours > * { background: var(--tint); border-top: 1px solid var(--ink); }
.bench tr:target > * { box-shadow: inset 0 3px 0 var(--red); }
.src { display: block; margin-top: 6px; font-size: 12px; line-height: 1.4; color: var(--ink-3); overflow-wrap: anywhere; }
.src a { margin-right: 8px; color: var(--ink-3); }
.src a:hover { color: var(--red-ink); }
tr[hidden] { display: none; }

.small { margin-top: 12px; display: grid; gap: 4px; font-size: 13px; color: var(--ink-3); max-width: 76em; }

/* Index of the other pages */
.row { display: flex; flex-wrap: wrap; gap: 0 20px; margin-top: 32px; padding: 6px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); font-size: 14px; }
.row span { padding: 9px 0; font-weight: 600; }
.row a { padding: 9px 0; text-decoration: none; }
.row a:hover { text-decoration: underline; }
.row a[aria-current] { color: var(--red-ink); font-weight: 600; }

/* Sections under the table and inner pages: a black rubric rule opens each */
.below > section, .doc > section { margin-top: 56px; border-top: var(--rule); padding-top: 12px; }
.doc { padding-top: 28px; max-width: 680px; }
.doc > .stamp { margin-top: 16px; }
h2 { font: 600 24px/1.15 var(--display); letter-spacing: -0.01em; text-wrap: balance; }
h3 { font: 600 18px/1.3 var(--display); }
section > p, section > ul, section > dl, section > blockquote { max-width: 42.5em; }
section > h2 + *, section > h3 + * { margin-top: 12px; }
section > p + p { margin-top: 12px; }
section > h3, section > h2 ~ h2 { margin-top: 32px; }
section a, .lede a { text-decoration-color: var(--red); }
.quiet { font-size: 14px; color: var(--ink-3); }
.k { font-size: 13px; font-weight: 600; color: var(--ink); margin-right: 4px; }
.crumb { font-size: 14px; margin-bottom: 16px; color: var(--ink-2); }

.picks { margin-top: 16px; border-top: 1px solid var(--ink); }
.picks > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.picks dt { font: 600 16px/1.3 var(--display); }
.picks dd { color: var(--ink-2); }
.picks dd strong { display: block; color: var(--ink); }

.facts { display: grid; gap: 12px; margin-top: 16px; }
.facts li { padding-left: 18px; position: relative; color: var(--ink-2); }
.facts li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.facts li strong { color: var(--ink); }
.facts .src { display: inline; }

.verdict { margin-top: 24px; padding: 12px 0 14px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); font: 500 20px/1.35 var(--display); }
.verdict .k { display: block; margin-bottom: 6px; font: 600 13px/1.3 var(--text); color: var(--red-ink); }

blockquote { padding: 16px; background: var(--tint); }
blockquote p { font: 500 22px/1.3 var(--display); }
blockquote footer { margin-top: 10px; font-size: 13px; color: var(--ink-3); overflow-wrap: anywhere; }

.sheet { margin-top: 16px; border-top: 1px solid var(--ink); }
.doc > section:has(> ul:first-child) { margin-top: 24px; padding-top: 0; border-top: 0; }
.doc > section > ul:first-child { margin-top: 0; }
.sheet > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sheet dt { font: 600 15px/1.35 var(--display); }
.sheet dd { min-width: 0; color: var(--ink-2); }
.unv { margin-top: 16px; font-size: 14px; color: var(--ink-3); }
ul.unv { margin-top: 6px; display: grid; gap: 4px; }
ul.unv li { padding-left: 18px; position: relative; }
ul.unv li::before { content: ""; position: absolute; left: 0; top: 0.4em; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--ink-3); }
.unv strong { color: var(--ink); }

.cases { margin-top: 16px; border-top: 1px solid var(--ink); }
.cases li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cases li > * { min-width: 0; }
.cases div { display: grid; gap: 8px; color: var(--ink-2); }
.cases .pick { font: 600 20px/1.2 var(--display); color: var(--ink); }

.cta { margin-top: 56px; padding: 16px 20px 20px; max-width: 680px; background: var(--tint); border-top: var(--rule); }
.cta h2 { font-size: 20px; }
.cta p { margin-top: 8px; color: var(--ink-2); max-width: 42em; }
.go { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.cta .go { margin-top: 16px; }
.go span { font-size: 14px; color: var(--ink-2); }
.btn { display: inline-block; padding: 11px 18px; border-radius: 4px; background: var(--red); color: #fff; font-weight: 600; text-decoration: none; }
.btn:hover { background: var(--red-ink); color: #fff; }

/* Imprint */
.foot { margin-top: 72px; padding: 20px var(--gut) 28px; background: var(--ink); color: #fff; font-size: 14px; }
.foot p { max-width: 1376px; margin: 0 auto; }
.foot p a:first-of-type { margin-left: 8px; }
.foot a { display: inline-block; margin-right: 14px; padding: 4px 0; text-decoration-color: rgba(255, 255, 255, 0.5); }
.foot a:hover { color: #fff; text-decoration-color: #fff; }
.foot :focus-visible { outline-color: #fff; box-shadow: none; }
.foot ::selection { background: #fff; color: var(--ink); }

.faq p { color: var(--ink-2); }

/* Phones: one card per service, same rows */
@media (max-width: 859px) {
  .wrap { overflow: visible; border: 0; }
  .bench table, .bench tbody, .bench tr, .bench th, .bench td { display: block; }
  .bench table { min-width: 0; font-size: 16px; }
  .bench thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .bench tbody { display: grid; gap: 24px; }
  .bench tbody tr { border: 1px solid var(--line-2); border-top: var(--rule); }
  .bench tbody tr[hidden] { display: none; }
  .bench tr.ours > * { border-top: 0; }
  .bench tr:target > * { box-shadow: none; }
  .bench tr:target { border-top-color: var(--red); }
  .bench th:first-child { position: static; width: auto; min-width: 0; box-shadow: none; }
  .bench tbody th { background: var(--tint); font-size: 22px; border-bottom: 1px solid var(--ink); }
  .bench td { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 12px; }
  .bench td::before { content: attr(data-label); font: 600 13px/1.3 var(--text); color: var(--ink); }
  .bench tbody tr > td:last-child { border-bottom: 0; }
  .src { font-size: 13px; margin-top: 0; }
  .src a { display: inline-block; padding: 6px 0; }
}

@media (min-width: 560px) {
  :root { --gut: 24px; }
  .name { font-size: 36px; }
  .picks > div, .sheet > div { grid-template-columns: 200px minmax(0, 1fr); gap: 16px; }
  .cases li { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; }
  /* The chart gets its price rule */
  .chart .c-name { width: 136px; }
  .chart .c-free { width: 64px; }
  .chart .c-price { width: 30%; }
  .chart .fit { display: flex; align-items: center; gap: 10px; }
  .chart .fit .lab { margin-top: 0; }
  .chart .c-price { padding-left: 16px; }
  .chart .c-price > span:first-child { margin: 0 0 6px; color: var(--ink); font-weight: 600; }
  .chart .axis { display: flex; justify-content: space-between; margin-right: 68px; font-size: 12px; }
  .chart .axis b { width: 0; display: flex; justify-content: center; font-weight: 400; }
  .chart .price { padding-left: 16px; }
  .chart .bar { display: block; position: relative; height: 34px; margin-right: 68px; border-left: 1px solid var(--line-2); border-right: 1px solid var(--line); }
  .chart .c-price, .chart .price { border-left: 0; }
  .chart .bar::before { content: ""; position: absolute; left: 25%; width: 25%; top: 0; bottom: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
  .chart .bar::after { content: ""; position: absolute; left: 75%; top: 0; bottom: 0; border-left: 1px solid var(--line); }
  .chart .bar i { position: absolute; z-index: 1; left: 0; top: 14px; height: 6px; background: var(--ink); transform-origin: 0 50%; }
  .chart .bar i::after { content: ""; position: absolute; right: -2px; top: -6px; width: 3px; height: 18px; background: var(--red); }
  .chart .val { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); }
  .chart .ours .val { right: 6px; }
  .chart .price.none .val { position: static; display: block; transform: none; text-align: left; font-size: 13px; }
}

@media (min-width: 860px) {
  h1 { font-size: 40px; }
  .name { font-size: 44px; }
  .plate { padding: 20px var(--gut) 18px; }
  .issue { display: block; }
  .needs a { padding: 12px 14px; }
  .needs { padding: 0 calc(var(--gut) - 14px); }
  h2 { font-size: 28px; }
}

@media (min-width: 1080px) {
  :root { --gut: 32px; }
  .top { grid-template-columns: minmax(0, 1fr) minmax(0, 640px); gap: 64px; padding: 40px 0 48px; }
  h1 { font-size: 52px; line-height: 1.04; }
  .top .lede { font-size: 20px; }
  .top .lede + .lede { font-size: 17px; }
  /* Rubric left, text right */
  .below > section { display: grid; grid-template-columns: 300px minmax(0, 680px); column-gap: 56px; align-content: start; }
  .below > section > * { grid-column: 2; }
  .below > section > h2 { grid-column: 1; grid-row: 1 / span 30; }
  .below > section > h2 + * { margin-top: 4px; }
  .below > .cta { margin-left: 356px; }
  /* Inner pages: the index becomes a rail */
  main.inner { display: grid; grid-template-columns: 220px minmax(0, 680px); column-gap: 80px; align-items: start; }
  main.inner .doc { grid-column: 2; grid-row: 1; padding-top: 40px; }
  main.inner .row { grid-column: 1; grid-row: 1; position: sticky; top: 16px; flex-direction: column; margin-top: 44px; border-top: var(--rule); border-bottom: 0; }
  main.inner .row a { border-top: 1px solid var(--line); }
}

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

/* Laptop widths: the chart goes under the opening so the headline keeps its line length */
@media (min-width: 1080px) and (max-width: 1279px) {
  .top { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
