/* GeekScope compare pages: compare.html and every compare-<competitor>.html. Loads after css/system.css.
   Holds the page heads, the reference table (.ref: products as columns, "our column" tinted halo),
   the editorial reading list, the vs-page template sections, citations and the closing line.
   Candidates for system.css are marked [shared]. */

/* ==========================================================================
   Page head
   ========================================================================== */
.pg-head { padding-top: 28px; }
@media (min-width: 1100px) { .pg-head { padding-top: clamp(40px, 7vh, 84px); } }
.nw { white-space: nowrap; }
/* a lede that opens on one stronger sentence */
.lead-in { color: var(--ink); font-weight: 600; }

/* hub: three phrases, one per line from 1100px */
.hub-head .lede { max-width: 33em; }
@media (min-width: 1100px) {
  .hub-h .hl { display: block; }
  .hub-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
  .hub-head h1 { grid-column: 1 / -1; }
  .hub-head .lede { grid-column: 1 / span 6; max-width: 33em; }
}

/* vs page: names stacked left, summary right */
.vs-head { display: grid; gap: 0; }
.vs-head .lede { max-width: 34em; }
.vs-meta { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; }
.vs-meta a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-underline-offset: 0.28em; }
.vs-meta a:hover { text-decoration-thickness: 2px; }
@media (min-width: 1100px) {
  .vs-head { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; }
  .vs-head h1 { grid-column: 1 / span 6; }
  .vs-head h1 .ln { display: block; }
  .vs-sum { grid-column: 7 / span 6; padding-bottom: 6px; }
  .vs-head .lede { margin-top: 0; max-width: 31em; }
}

/* ==========================================================================
   [shared] Reference table: products are columns, questions are rows.
   Phone and tablet: one block per question, each product's answer labelled (data-l).
   Desktop: a ruled table with mono row labels; "our column" (.us) is tinted halo, no bar.
   ========================================================================== */
.ref-sec { margin-top: 56px; }
@media (min-width: 1100px) { .ref-sec { margin-top: 80px; } }
.ref-plate { margin: 0; background: var(--slide); box-shadow: 0 -1px 0 var(--ink), 0 1px 0 var(--ink); }
.ref-in { position: relative; max-width: var(--max); margin: 0 auto; padding: 0 var(--g); }
.ref-in .reg-tl, .ref-in .reg-tr { top: 16px; }
.ref-in .reg-bl, .ref-in .reg-br { bottom: 16px; }

.ref { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; color: var(--ink); }
.ref, .ref tbody, .ref tr, .ref th, .ref td { display: block; }
.ref thead { display: none; }
.ref tr { padding: 26px 0 22px; box-shadow: 0 -1px 0 var(--ink); }
.ref tbody tr:first-child { box-shadow: none; }
.ref th[scope="row"] {
  padding: 0 0 14px; text-align: left;
  font: 500 16px/1.35 var(--mono); font-variation-settings: "wdth" 87; letter-spacing: -0.01em; color: var(--ink);
}
.ref td { position: relative; min-height: 46px; padding: 11px 0 12px 128px; box-shadow: 0 -1px 0 var(--rule); }
.ref td::before {
  content: attr(data-l); position: absolute; left: 0; top: 12px; width: 120px;
  font: 450 15px/1.45 var(--mono); font-variation-settings: "wdth" 87; letter-spacing: -0.01em; color: var(--ink-2);
}
.ref td.us { margin: 0 -12px; padding-left: 140px; padding-right: 12px; background: var(--halo); box-shadow: none; }
.ref td.us::before { left: 12px; }
.ref td.us::before { color: var(--ink); }
.ref td.us + td { box-shadow: none; }
.ref b { font-weight: 650; }
.ref .tnum { font-weight: 600; }
/* "Not stated": their public pages don't say. Set as a quiet readout, never as an accusation. */
.ns { font: 450 15px/1.5 var(--mono); font-variation-settings: "wdth" 87; letter-spacing: -0.01em; color: var(--ink-2); }
.ref-cap { padding: 16px 0 20px; box-shadow: 0 -1px 0 var(--ink); font-size: 15px; line-height: 1.55; color: var(--ink-2); }
@media (min-width: 768px) {
  .ref td { padding-left: 164px; }
  .ref td.us { padding-left: 176px; }
  .ref td::before { width: 148px; }
}

/* table mode: the full hub table from 1200px (five product columns need the width) */
@media (min-width: 1200px) {
  .ref { display: table; table-layout: fixed; }
  .ref thead { display: table-header-group; }
  .ref tbody { display: table-row-group; }
  .ref tr { display: table-row; padding: 0; box-shadow: none; }
  .ref th, .ref td { display: table-cell; vertical-align: top; }
  .ref thead th {
    position: sticky; top: 0; z-index: 2; background: var(--slide);
    padding: 30px 16px 16px; text-align: left; vertical-align: bottom;
    font: 650 20px/1.2 var(--sans); letter-spacing: -0.012em;
    box-shadow: inset 0 -1px 0 var(--ink);
  }
  .ref thead th:first-child { width: 16%; padding-left: 0; }
  .ref thead th.us { background: var(--halo); }
  .ref th[scope="row"] { padding: 24px 24px 28px 0; border-top: 1px solid var(--rule); font-size: 15px; font-weight: 450; line-height: 1.45; }
  .ref td, .ref td.us { min-height: 0; margin: 0; padding: 24px 16px 28px; border-top: 1px solid var(--rule); box-shadow: none; }
  .ref td::before { display: none; }
  .ref tbody tr:first-child > * { border-top: 0; }
  .ref .ns { font-size: 15px; }
  .ref-cap { padding-top: 18px; }
}

/* two-column variant (vs pages: pricing as published) goes to table mode from 768px */
.ref--two { font-size: 17px; }
.ref--two tr { padding: 0; box-shadow: none; }
@media (min-width: 768px) {
  .ref--two { display: table; table-layout: fixed; box-shadow: 0 -1px 0 var(--ink), 0 1px 0 var(--ink); }
  .ref--two thead { display: table-header-group; }
  .ref--two tbody { display: table-row-group; }
  .ref--two tr { display: table-row; }
  .ref--two th, .ref--two td { display: table-cell; vertical-align: top; }
  .ref--two thead th, .ref--two thead th:first-child {
    position: static; width: 50%; background: transparent;
    padding: 22px 24px 16px; text-align: left;
    font: 650 20px/1.2 var(--sans); letter-spacing: -0.012em;
    box-shadow: inset 0 -1px 0 var(--ink);
  }
  .ref--two thead th:first-child { padding-left: 0; padding-right: 32px; }
  .ref--two thead th.us { background: var(--halo); }
  .ref--two td, .ref--two td.us { min-height: 0; margin: 0; padding: 22px 24px 30px; box-shadow: none; line-height: 1.55; }
  .ref--two td:first-child { padding-left: 0; padding-right: 32px; }
  .ref--two td::before { display: none; }
}
@media (max-width: 767px) {
  .ref--two { box-shadow: 0 -1px 0 var(--ink), 0 1px 0 var(--ink); }
  .ref--two td { padding-top: 14px; padding-bottom: 16px; }
  .ref--two td::before { top: 15px; }
}

/* ==========================================================================
   Hub: reading list. One lead entry, three quieter ones on a ruled column.
   ========================================================================== */
.reads-sec { padding-top: 72px; }
@media (min-width: 1100px) { .reads-sec { padding-top: 104px; } }
.reads { display: grid; }
.read a {
  display: block; padding: 18px 0 24px; text-decoration: none; color: var(--ink-2);
  font-size: 19px; line-height: 1.4; letter-spacing: -0.008em;
  box-shadow: 0 -1px 0 var(--ink);
}
.read-t { color: var(--ink); font-weight: 650; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; transition: text-decoration-color 0.3s var(--ease); }
.read a:hover .read-t { text-decoration-color: currentColor; }
.read .arr { color: var(--ink); }
.read a:hover .arr { transform: translateX(3px); }
.read-lead a { padding: 22px 0 36px; font-size: 24px; line-height: 1.3; letter-spacing: -0.014em; box-shadow: 0 -2px 0 var(--ink); }
@media (min-width: 1100px) {
  .reads { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
  .read-lead { grid-column: 1 / span 7; grid-row: 1 / span 3; }
  .read-lead a { padding: 26px 56px 0 0; font-size: clamp(34px, 3vw, 44px); line-height: 1.2; letter-spacing: -0.02em; box-shadow: 0 -2px 0 var(--ink); }
  .read:not(.read-lead) { grid-column: 9 / span 4; }
  .read:not(.read-lead) a { padding: 18px 0 28px; }
  .read:nth-child(2) a { box-shadow: 0 -2px 0 var(--ink); padding-top: 26px; }
}

/* ==========================================================================
   [shared] Closing line: last checked, how to report a change, the primary button
   ========================================================================== */
.pg-end { padding-top: var(--sec); }
.reads-sec + .pg-end { padding-top: 88px; }
@media (min-width: 1100px) { .reads-sec + .pg-end { padding-top: 120px; } }
.end-in { display: grid; gap: 4px; padding-top: 24px; box-shadow: 0 -1px 0 var(--ink); }
.end-note { font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 40em; }
.end-note .lnk { padding: 0; }
.end-in .actions { margin-top: 20px; gap: 12px 26px; }
@media (min-width: 1100px) {
  .end-in { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 48px; }
  .end-in .actions { margin-top: 0; }
}

/* ==========================================================================
   [shared] Citations: a bracketed mono numeral that jumps to the source list
   ========================================================================== */
.cite {
  margin-left: 0.3em; white-space: nowrap; text-decoration: none;
  font: 450 15px/1 var(--mono); font-variation-settings: "wdth" 87; letter-spacing: 0; color: var(--ink-2);
  vertical-align: baseline;
}
.cite:hover { color: var(--burnt); text-decoration: underline; text-underline-offset: 0.2em; }

/* ==========================================================================
   vs-page template: a heading rail on the left, the body on the right
   ========================================================================== */
.vs-sec { padding-top: var(--sec); }
.vs-grid { display: grid; gap: 28px; }
@media (min-width: 1200px) {
  .vs-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
  .vs-h { grid-column: 1 / span 5; }
  .vs-body { grid-column: 6 / span 7; }
}
.h-note { display: block; margin-top: 14px; font: 450 15px/1.3 var(--mono); font-variation-settings: "wdth" 87; letter-spacing: -0.01em; color: var(--ink-2); }

/* who each is for: the two descriptions as facing columns */
.who-pair { display: grid; gap: 28px; }
.who-pair p { padding-top: 18px; box-shadow: 0 -1px 0 var(--ink); font-size: 20px; line-height: 1.5; letter-spacing: -0.006em; color: var(--ink-2); }
.who-pair b { color: var(--ink); font-weight: 650; }
@media (min-width: 768px) { .who-pair { grid-template-columns: 1fr 1fr; column-gap: 48px; } }
@media (min-width: 1100px) { .who-pair p { font-size: 21px; } }

/* where they're stronger: the band, the lead strength large and circled, the rest on one rule */
.vs-strong { margin-top: var(--sec); background: var(--slide); padding: 64px 0 72px; box-shadow: 0 -1px 0 var(--ink), 0 1px 0 var(--ink); }
.vs-strong .vs-grid { position: relative; }
@media (min-width: 1100px) { .vs-strong { padding: 104px 0 112px; } }
.st-lead { padding-top: 8px; }
.st-lead h3 { font-size: 30px; line-height: 1.15; }
.st-lead p { margin-top: 18px; font-size: 21px; line-height: 1.5; letter-spacing: -0.008em; max-width: 31em; }
.ringed { position: relative; display: inline-block; }
.vs-ring { position: absolute; left: -12px; top: -9px; width: calc(100% + 26px); height: calc(100% + 18px); max-width: none; overflow: visible; pointer-events: none; }
@media (min-width: 768px) { .vs-ring { left: -20px; top: -11px; width: calc(100% + 40px); height: calc(100% + 22px); } }
.st-list { margin-top: 40px; box-shadow: 0 -1px 0 var(--ink), 0 1px 0 var(--rule); }
.st-list li { padding: 16px 0 18px; color: var(--ink-2); font-size: 18px; line-height: 1.5; }
.st-list li + li { box-shadow: 0 -1px 0 var(--rule); }
.st-list b { color: var(--ink); font-weight: 650; }
@media (min-width: 1100px) { .st-list li { font-size: 19px; padding: 18px 0 20px; } }
@media (min-width: 1100px) {
  .st-lead h3 { font-size: 38px; }
  .st-lead p { font-size: 23px; }
  .st-list { margin-top: 56px; }
}

/* where we're different: four equal entries */
.diff { display: grid; }
.diff li { padding: 18px 0 30px; box-shadow: 0 -1px 0 var(--ink); }
.diff h3 { font-size: 22px; text-wrap: balance; }
.diff p { margin-top: 10px; color: var(--ink-2); max-width: 30em; }
.diff .asof { margin-top: 12px; }
@media (min-width: 768px) {
  .diff { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .diff li { padding-bottom: 40px; }
}
@media (min-width: 1100px) { .diff h3 { font-size: 24px; } }

/* choose X if / choose GeekScope if: two facing columns */
.choose { display: grid; gap: 64px; }
.ch h2 { max-width: 9em; }
.ch ul { margin-top: 28px; box-shadow: 0 -1px 0 var(--ink); }
.ch li { position: relative; padding: 16px 0 18px 30px; box-shadow: 0 1px 0 var(--rule); font-size: 19px; line-height: 1.45; }
.ch li::before { content: ""; position: absolute; left: 2px; top: 27px; width: 12px; height: 1.5px; background: var(--ink); }
@media (min-width: 768px) { .choose { grid-template-columns: 1fr 1fr; column-gap: 48px; } }
@media (min-width: 1100px) {
  .choose { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
  .ch:first-child { grid-column: 1 / span 6; padding-right: 32px; }
  .ch:last-child { grid-column: 7 / span 6; padding-left: 32px; box-shadow: -1px 0 0 var(--rule); }
  .ch li { font-size: 20px; }
}

/* sources: numbered to match the citations; a cited source tints halo when you jump to it */
.srcs li { display: grid; grid-template-columns: 40px minmax(0, 1fr); padding: 16px 0 18px; box-shadow: 0 -1px 0 var(--rule); scroll-margin-top: 24px; }
.srcs li:first-child { box-shadow: 0 -1px 0 var(--ink); }
.srcs li:last-child { box-shadow: 0 -1px 0 var(--rule), 0 1px 0 var(--rule); }
.srcs li:target { background: var(--halo); }
.src-n { font: 450 15px/1.6 var(--mono); font-variation-settings: "wdth" 87; color: var(--ink-2); padding-top: 2px; }
.src-u { display: inline-block; padding: 10px 0; margin: -8px 0; font: 500 15px/1.5 var(--mono); font-variation-settings: "wdth" 87; letter-spacing: -0.01em; color: var(--ink); overflow-wrap: anywhere; text-underline-offset: 0.25em; }
.src-u:hover { text-decoration-thickness: 2px; }
.src-d { grid-column: 2; margin-top: 2px; font-size: 16px; color: var(--ink-2); }
@media (min-width: 1100px) {
  .srcs li { grid-template-columns: 36px minmax(0, 380px) minmax(0, 1fr); column-gap: 20px; align-items: baseline; padding: 18px 0 20px; }
  .src-d { grid-column: auto; margin-top: 0; }
}

/* the Compare item stays marked on a comparison sub-page */
@media (min-width: 1024px) {
  .nav-a[aria-current="true"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
}
.nav-sheet [aria-current="true"] { font-weight: 700; text-decoration: underline; text-underline-offset: 0.3em; }

/* CSP-safe positions from the approved mockup. */
.compare-position-1 { --i:0; }

/* The generated source list uses semantic list numbering. */
ol.srcs { counter-reset: source; }
ol.srcs li { display: block; padding-left: 48px; position: relative; font-size: 16px; color: var(--ink-2); }
ol.srcs li::before { counter-increment: source; content: counter(source); position: absolute; left: 0; font: 450 15px/1.6 var(--mono); }
ol.srcs li > a { display: block; font: 500 15px/1.5 var(--mono); overflow-wrap: anywhere; color: var(--ink); }
ol.srcs .src-checked { margin-left: 0; }
