/* The articles (/articles, made by tools/articles/build.mjs): a reading column in the brand's paper, ink and red pen
   (brand.css comes first and holds the colours and fonts). Red stays for marks: the kicker, our own row in a table,
   the score bar's tip. */

html { scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.65 var(--serif); -webkit-text-size-adjust: 100%; overflow-x: clip; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--pen); }
:focus-visible { outline: 2px solid var(--pen); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; padding: 8px 12px; background: var(--ink); color: var(--paper); font: 600 13px var(--mono); z-index: 2; }
.skip:focus { top: 12px; color: var(--paper); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
code { font-family: var(--mono); font-size: .88em; }

/* header and footer, as on the start page */
.top { border-bottom: 2px solid var(--ink); }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 22px; padding-bottom: 16px; }
.brand { text-decoration: none; font-size: 22px; }
.top nav { display: flex; flex-wrap: wrap; gap: 6px 20px; font: 600 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.top nav a { text-decoration: none; }
.top nav a:hover { text-decoration: underline; }
.top nav .try { padding-left: 20px; border-left: 1px solid var(--rule); color: var(--pen); }
footer.foot { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 72px; padding-top: 22px; padding-bottom: 40px; border-top: 1px solid var(--rule); font: 400 13px var(--mono); color: var(--pencil); }
.foot .logo { font-size: 15px; }
.foot a { color: inherit; }

/* the reading column */
main.wrap { padding-top: 28px; }
.crumbs { margin: 0 0 28px; font: 500 12px/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--pencil); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--rule); }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--pen); text-decoration: underline; }
article, .hub { max-width: 760px; }
.kicker { margin: 0 0 10px; font: 600 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--pen); }
h1 { margin: 0; font-size: 48px; line-height: 1.1; font-weight: 400; letter-spacing: -.015em; text-wrap: balance; }
h2 { margin: 48px 0 12px; font-size: 30px; line-height: 1.2; font-weight: 400; letter-spacing: -.005em; text-wrap: balance; }
h3 { margin: 28px 0 6px; font-size: 21px; line-height: 1.3; font-weight: 700; }
p { margin: 0 0 16px; }
ul, ol { margin: 0 0 18px; padding-left: 22px; }
li { margin: 4px 0; }
.lede { margin: 18px 0 0; font-size: 21px; line-height: 1.55; color: #3A3833; }
.byline { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 20px 0 0; font: 400 13px/1.5 var(--mono); color: var(--pencil); }
.disclose { margin: 4px 0 0; font: 400 13px/1.5 var(--mono); color: var(--pencil); }
article figure { margin: 22px 0 26px; }
article figure img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); background: #fff; }
article figure.narrow img { max-width: 390px; }
article figcaption { margin-top: 8px; font: 400 13px/1.5 var(--mono); color: var(--pencil); }
article pre { overflow-x: auto; margin: 18px 0; padding: 14px 16px; background: var(--sheet); border-left: 3px solid var(--ink); font: 400 13px/1.55 var(--mono); white-space: pre; }

/* the verdict box at the top of a review */
.maker { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; align-items: center; margin: 18px 0 22px; padding: 22px; border-top: 2px solid var(--ink); background: var(--sheet); }
.maker img { display: block; width: 160px; height: 160px; border-radius: 50%; }
.maker h3 { margin: 0; }
.maker p { margin: 6px 0 0; }
.maker .role { font: 400 13px/1.5 var(--mono); color: var(--pencil); }
.verdict { margin: 32px 0 8px; padding: 22px 22px 18px; border-top: 2px solid var(--ink); background: var(--sheet); }
.verdict .score { display: flex; align-items: baseline; gap: 10px; margin: 0 0 6px; font: 600 14px var(--mono); }
.verdict .score b { font: 400 54px/1 var(--serif); letter-spacing: -.02em; }
.verdict dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 14px 0 0; font-size: 16px; }
.verdict dt { font: 600 12px/1.9 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--pencil); }
.verdict dd { margin: 0; }

/* score bars: one per criterion */
.bars { margin: 18px 0 8px; padding: 0; list-style: none; }
.bars li { display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr) 4.5em; align-items: center; gap: 12px; margin: 0; padding: 7px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.bars .bar-t { position: relative; height: 8px; background: var(--rule); }
.bars .bar-t i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink); }
.bars .bar-t i::after { content: ""; position: absolute; right: -2px; top: -3px; width: 3px; height: 14px; background: var(--pen); }
.bars .n { font: 600 13px var(--mono); text-align: right; }

/* tables */
.tw { overflow-x: auto; margin: 18px 0 22px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
thead th { border-bottom: 2px solid var(--ink); font: 600 11px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
td.n, th.n { text-align: right; font-family: var(--mono); font-size: 13px; white-space: nowrap; }
tr.ours td { background: var(--sheet); }
tr.ours td:first-child { box-shadow: inset 3px 0 0 var(--pen); }
/* a table with many columns gets the width of the page, not of the reading column */
.tw.wide { width: min(1072px, calc(100vw - 48px)); }
table.feats { font-size: 14px; }
table.feats th { font-size: 10px; letter-spacing: .04em; }
table.feats td:not(:first-child) { white-space: nowrap; }
caption { caption-side: bottom; padding-top: 8px; text-align: left; font: 400 12px/1.5 var(--mono); color: var(--pencil); }

/* pros and cons */
.pc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 18px 0 8px; }
.pc > div { border-top: 2px solid var(--ink); padding-top: 10px; }
.pc h3 { margin-top: 0; font: 600 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.pc ul { padding-left: 18px; font-size: 16px; }

/* a ranked list entry */
.pick { margin: 36px 0 0; padding-top: 18px; border-top: 2px solid var(--ink); }
.pick h2 { margin-top: 0; }
.pick .meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 0 12px; font: 500 13px/1.5 var(--mono); color: var(--pencil); }
.pick .meta b { color: var(--ink); }
.pick.ours { border-top-color: var(--pen); }

/* questions, sources, related */
.faq h3 { font-size: 19px; }
.sources { font-size: 14px; line-height: 1.55; }
.sources li { overflow-wrap: anywhere; }
.related { margin-top: 48px; padding-top: 14px; border-top: 1px solid var(--rule); }
.related ul { padding-left: 18px; }
.cta-line { margin: 40px 0 0; padding: 18px 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); }
.cta-line p { margin: 0; }

/* the list of articles */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 32px; margin: 12px 0 0; padding: 0; list-style: none; }
.cards li { margin: 0; padding: 14px 0; border-top: 1px solid var(--rule); }
.cards h3 { margin: 0; font-size: 19px; line-height: 1.35; font-weight: 400; }
.cards a { text-decoration: none; }
.cards a:hover { text-decoration: underline; }
.cards p { margin: 4px 0 0; font-size: 15px; color: var(--pencil); }

@media (max-width: 760px) {
  body { font-size: 17px; }
  h1 { font-size: 36px; }
  h2 { font-size: 26px; }
  .pc, .cards { grid-template-columns: minmax(0, 1fr); }
  .bars li { grid-template-columns: minmax(0, 1fr) 4.5em; }
  .bars .bar-t { grid-column: 1 / -1; grid-row: 2; }
  .maker { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .maker img { width: 120px; height: 120px; }
  .verdict dl { grid-template-columns: minmax(0, 1fr); gap: 0 0; }
  .verdict dd { margin-bottom: 8px; }
}
