/* websearch.dev/compare: the article as a markdown document on a terminal.
   Loaded after /style.css (tokens, font, colors, links, .prompt). One column,
   one type size for headings, no boxes; structure comes from markdown marks. */

.article { --rule: #262626; }
.wrap { width: min(46rem, 100% - 2rem); margin: 0 auto; }

/* header: the same prompt as the home page */
.sitehead { padding: 2rem 0 0; margin-bottom: 3.5rem; }
.crumbs { color: var(--dim); font-size: 13px; margin-top: 0.6rem; }
.crumbs a { color: var(--dim); }
.crumbs a:hover, .crumbs a:focus-visible { color: var(--hi); }

/* text */
.article p { margin: 0 0 1.1rem; }
strong { color: var(--hi); }
em { font-style: normal; color: var(--hi); }
code { font: inherit; color: var(--hi); }
sup { font-size: 0.7em; line-height: 0; }
sup a { color: var(--dim); }

/* headings: markdown marks, all one size */
h1, h2, h3 { font-size: inherit; color: var(--hi); font-weight: 700; line-height: 1.5; margin: 0; }
h1::before { content: "# "; color: var(--dim); }
h2::before { content: "## "; color: var(--dim); font-weight: 400; }
h3::before { content: "### "; color: var(--dim); font-weight: 400; }
h1 { margin: 0.3rem 0 1rem; }
h2 { margin: 4.5rem 0 1rem; }
h3 { margin: 2rem 0 0.5rem; }
/* section number on its own dim line above the "## " heading */
h2:has(.no) { display: grid; grid-template-columns: auto 1fr; column-gap: 1ch; }
h2:has(.no)::before { content: "##"; }
h2:has(.no)::before { grid-row: 2; grid-column: 1; }
h2 .no { grid-row: 1; grid-column: 1 / -1; color: var(--dim); font-weight: 400; font-size: 13px; }

/* lists */
ul, ol { padding-left: 3ch; margin: 0 0 1.1rem; }
li { margin: 0.25rem 0; }
ul li::marker { content: "- "; color: var(--dim); }
ol li::marker { color: var(--dim); }
.pros li::marker { content: "+ "; color: var(--link); }
.cons li::marker { content: "- "; color: #d19a8f; }

/* hero */
.kicker, .meta, .small, .muted { color: var(--dim); font-size: 13px; }
.lede, .standfirst { color: var(--hi); }

/* blockquote-style asides */
.disclosure, .bestfor {
  border-left: 1px solid var(--dim); padding: 0 0 0 2ch; margin: 1.5rem 0; color: var(--fg);
}
.disclosure p:last-child { margin-bottom: 0; }

/* contents: a plain numbered list */
.toc { margin: 0; }
.toc h2 { margin: 0 0 0.4rem; color: var(--dim); font-weight: 400; }
.toc h2::before { content: "## "; }
.toc ol { margin: 0; padding-left: 4ch; }
.toc li { margin: 0.1rem 0; }

/* vendor fact sheets: key/value lines, no grid lines */
.facts { margin: 1.5rem 0; }
.facts div { display: grid; grid-template-columns: 20ch 1fr; gap: 2ch; padding: 0.15rem 0; }
.facts dt { color: var(--dim); }
.facts dd { margin: 0; }
@media (max-width: 36rem) { .facts div { grid-template-columns: 1fr; gap: 0; padding: 0.3rem 0; } }

/* use-case verdicts */
.verdict { margin-top: 1.8rem; }
.verdict h3 { margin-top: 0; }
.winner { color: var(--link); margin-bottom: 0.4rem; }

/* tables: markdown-ish, rules under the header only */
.tablewrap { overflow-x: auto; margin: 1.5rem 0; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
caption { text-align: left; color: var(--dim); padding-bottom: 0.5rem; }
th, td { padding: 0.35rem 1.5ch 0.35rem 0; text-align: left; vertical-align: top; }
th { color: var(--hi); border-bottom: 1px dashed var(--dim); }
tbody tr + tr td { border-top: 1px solid var(--rule); }
td.num, th.num { white-space: nowrap; }

/* faq */
.faq details { padding: 0.35rem 0; }
.faq summary { cursor: pointer; color: var(--hi); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "[+] "; color: var(--dim); }
.faq details[open] summary::before { content: "[-] "; }
.faq details p { margin: 0.5rem 0 0.6rem 4ch; }

/* sources */
.sources { font-size: 13px; color: var(--dim); padding-left: 4ch; }

/* footer */
footer { margin-top: 5rem; padding: 0 0 4rem; color: var(--dim); font-size: 13px; }
footer::before { content: "---"; display: block; margin-bottom: 1rem; }
