/* Comparison guides (compare/*.html). Loaded after /devices/device.css, which supplies the
   tokens, fonts, nav, buttons, FAQ and footer. This file only adds what the guides need. */

.guide-hero { padding: clamp(7.5rem, 10vw, 10rem) 0 clamp(2rem, 4vw, 3rem); }
.guide-hero .wrap { display: grid; gap: 1.25rem; justify-items: start; }
.guide-hero h1 { font-family: var(--font-serif); font-weight: 300; font-size: var(--h1); line-height: 1; letter-spacing: -0.02em; color: var(--midnight); max-width: 18ch; text-wrap: balance; }
.guide-hero h1 em { font-style: italic; color: var(--orange); }
.byline { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; font-family: var(--font-mono); font-size: .875rem; letter-spacing: .04em; color: var(--gray); }
.crumbs { font-size: .9375rem; color: var(--gray); }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.crumbs a:hover { color: var(--orange); }

.disclosure { max-width: 48rem; padding: 1rem 1.25rem; border-left: 3px solid var(--orange); background: var(--orange-10); border-radius: 0 .75rem .75rem 0; font-size: 1rem; line-height: 1.6; color: var(--midnight); }

.prose { max-width: 46rem; display: grid; gap: 1.125rem; font-size: 1.125rem; line-height: 1.7; color: var(--midnight); }
.prose h2 { font-family: var(--font-serif); font-weight: 300; font-size: var(--h3); line-height: 1.1; margin-top: 1rem; }
.prose h3 { font-size: 1.25rem; font-weight: 600; margin-top: .5rem; }
.prose a, .cmp-note a, .sources a, .card a.more { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.prose ul { list-style: disc; padding-left: 1.25rem; display: grid; gap: .5rem; }

.toc { display: flex; flex-wrap: wrap; gap: .625rem; }

/* Quick picks */
.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.card { display: grid; gap: .5rem; align-content: start; padding: 1.5rem; border-radius: var(--radius-lg); background: var(--cream); }
.card .tag { color: var(--orange); }
.card h3 { font-family: var(--font-serif); font-weight: 300; font-size: 1.75rem; line-height: 1.1; color: var(--midnight); }
.card p { color: var(--gray); line-height: 1.55; }
.card .price { font-weight: 600; color: var(--midnight); }

/* Comparison table: real <table>, scrolls sideways on small screens with the first column fixed */
.cmp-scroll { overflow-x: auto; margin-top: 1.5rem; border: 1px solid var(--dark-cream); border-radius: var(--radius-lg); background: var(--beige); -webkit-overflow-scrolling: touch; }
.cmp { width: 100%; min-width: 52rem; border-collapse: separate; border-spacing: 0; font-size: 1rem; line-height: 1.45; }
.cmp--two { min-width: 34rem; }
.cmp caption { text-align: left; padding: 1rem 1.25rem 0; font-family: var(--font-mono); font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gray); }
.cmp th, .cmp td { padding: .875rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--dark-cream); }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: 0; }
.cmp thead th { font-weight: 600; color: var(--midnight); background: var(--cream); white-space: nowrap; }
.cmp thead th small { display: block; font-weight: 400; color: var(--gray); white-space: normal; }
.cmp tbody th { font-weight: 400; color: var(--gray); }
.cmp th[scope="row"], .cmp thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--beige); min-width: 9.5rem; box-shadow: 1px 0 0 var(--dark-cream); }
.cmp thead th:first-child { background: var(--cream); }
.cmp .yes::before { content: '✓ '; color: var(--orange); font-weight: 700; }
.cmp .no { color: var(--gray); }
.cmp-note { margin-top: .875rem; font-size: .9375rem; line-height: 1.6; color: var(--gray); max-width: 52rem; }

/* Per-product write-ups */
.review { padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--dark-cream); margin-top: clamp(2rem, 4vw, 3rem); display: grid; gap: 1.25rem; }
.review h2 { font-family: var(--font-serif); font-weight: 300; font-size: var(--h3); line-height: 1.1; color: var(--midnight); }
.review .verdict { font-size: 1.1875rem; line-height: 1.6; color: var(--midnight); max-width: 46rem; }
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2.5rem; max-width: 56rem; }
.proscons h3 { font-family: var(--font-mono); font-size: .8125rem; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--gray); margin-bottom: .5rem; }
.proscons li { position: relative; padding-left: 1.5rem; line-height: 1.55; margin-bottom: .5rem; color: var(--midnight); }
.proscons .pros li::before { content: '+'; position: absolute; left: .125rem; color: var(--orange); font-weight: 700; }
.proscons .cons li::before { content: '–'; position: absolute; left: .125rem; color: var(--gray); font-weight: 700; }
.review .specs { max-width: 46rem; }
@media (max-width: 760px) { .proscons { grid-template-columns: 1fr; } }

/* Sources and the separate Lonvi box */
.sources { display: grid; gap: .375rem; font-size: .9375rem; line-height: 1.5; color: var(--gray); max-width: 52rem; }
.sources li { overflow-wrap: anywhere; }
.from-lonvi { margin-top: clamp(2.5rem, 5vw, 4rem); padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--radius-lg); border: 1px solid var(--dark-cream); display: grid; gap: .75rem; justify-items: start; max-width: 52rem; }
.from-lonvi h2 { font-family: var(--font-serif); font-weight: 300; font-size: 1.75rem; line-height: 1.15; color: var(--midnight); }
.from-lonvi p { color: var(--gray); line-height: 1.6; }

/* Index */
.guide-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.guide-list a.card { transition: background-color .2s ease; }
.guide-list a.card:hover { background: var(--orange-10); }

/* .prose on a .wrap: keep the section aligned with the rest of the page, only cap line length */
.wrap.prose { max-width: none; }
.wrap.prose > * { max-width: 46rem; }
@media (max-width: 600px) { .cmp th[scope="row"], .cmp thead th:first-child { min-width: 7.5rem; } }
