/* Comparison posts: verdict, results table, scorecards and method. Loaded only with blogTemplate: comparison. */

/* Quick verdict replaces the Summary panel. Colours follow the /blog/ landing page: grey panel, white pick cards. */
.comparison-verdict{container:verdict/inline-size;margin:0 0 56px;padding:36px;background:#f6f6f8;border:1px solid #eeeef1;border-radius:9px}
.article-body .verdict-eyebrow{margin:0 0 10px;font-size:11px;font-weight:500;letter-spacing:.13em;text-transform:uppercase;color:#615875}
.article-body .comparison-verdict h2{margin:0 0 16px;font-size:28px;font-weight:600;line-height:1.3;letter-spacing:-.02em}
.article-body .verdict-intro{margin:0 0 24px;font-size:17px;line-height:1.7;color:#5c556a}
/* One equal column per pick (2 or 3), so no card is left alone on a row; one column when the panel itself is narrower than ~600px. */
.article-body .verdict-picks{list-style:none;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:14px;padding:0;margin:0}
/* verdict.lead: the first pick gets its own full-width row; the rest share the row below. */
.article-body .verdict-picks-lead{grid-auto-flow:row;grid-template-columns:repeat(var(--rest-picks),minmax(0,1fr))}
.article-body .verdict-picks-lead li:first-child{grid-column:1/-1}
.article-body .verdict-picks li{margin:0;padding:22px;background:#fff;border:1px solid #eeeef1;border-radius:9px}
.article-body .verdict-picks h3{margin:0 0 8px;font-size:17px;font-weight:600;line-height:1.4}
.article-body .verdict-picks p{margin:0;font-size:15px;line-height:1.6;color:#5c556a}
.verdict-picks strong{color:#25252b;font-weight:600}
.article-body .verdict-footer{margin:24px 0 0;font-size:16px;line-height:1.7;color:#5c556a}
.verdict-footer a{color:#514791;text-decoration:underline}
.article-body .verdict-disclosure{margin:20px 0 0;padding-top:16px;border-top:1px solid #eeeef1;font-size:14px;line-height:1.6;color:#6a6771}
.verdict-disclosure strong{color:#5c556a;font-weight:600}
.article-body .placeholder-flag{display:inline-block;margin:0 0 16px;padding:4px 10px;border:1px dashed #7064aa;border-radius:5px;background:#fff;color:#514791;font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase}

/* Results table: rounded container, light purple header band, roomy rows with light dividers.
   No cell tints; winners carry a check icon and bold text. Key and notes sit below the table. */
/* position:relative keeps the hidden "Best:" labels inside the scroll box; without it they widen the whole page on phones. */
.results-frame{position:relative;margin:20px 0 0}
/* Scroll cue: a shaded right edge while columns are hidden to the right. The white "local" layer scrolls with the
   table and covers the shade once the end is reached (CSS-only scroll shadow). */
.comparison-results .table-scroll{position:relative;margin:0;border:1px solid #e5e5e9;border-radius:12px;overflow-x:auto;background:linear-gradient(to left,#fff 30%,rgba(255,255,255,0)) right center/40px 100% no-repeat local,linear-gradient(to left,rgba(37,37,43,.14),rgba(37,37,43,0)) right center/28px 100% no-repeat scroll}
.comparison-results table{font-size:15px;border-collapse:separate;border-spacing:0}
/* Narrow screens: the App column stays put while the other columns scroll under it. */
.comparison-results thead th:first-child,.comparison-results tbody th[scope=row]{position:sticky;left:0;z-index:2}
.comparison-results tbody th[scope=row]{background:#fff}
/* "Scroll sideways" hint: phones only, where the table is wider than the screen. */
.article-body .scroll-hint{display:none;align-items:center;gap:6px;margin:16px 0 0;font-size:13px;font-weight:600;color:#514791}
@media(max-width:700px){.article-body .scroll-hint{display:flex}.scroll-hint+.results-frame{margin-top:8px}}
.comparison-results thead th{padding:16px 20px;background:#e0e7ff;border-bottom:0;color:#25252b;font-size:14px;font-weight:600;line-height:1.4;vertical-align:bottom;text-align:center;min-width:160px}
.comparison-results thead th:first-child{text-align:left;min-width:140px}
.comparison-results tbody th,.comparison-results tbody td{padding:18px 20px;border-bottom:1px solid #eeeef1;vertical-align:middle}
.comparison-results tbody tr:last-child th,.comparison-results tbody tr:last-child td{border-bottom:0}
.comparison-results tbody th[scope=row]{color:#25252b;font-weight:600}
.comparison-results tbody th a{color:inherit;text-decoration:underline;text-decoration-color:#d5cbe4;text-underline-offset:4px}
.comparison-results tbody th a:hover{color:#514791;text-decoration-color:currentColor}
.comparison-results td{color:#5c556a;text-align:center}
.comparison-results td.is-winner{color:#25252b;font-weight:600}
.winner-mark{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.winner-icon{width:18px;height:18px;fill:#7064aa;flex-shrink:0}
.article-body .table-key{display:flex;align-items:center;gap:6px;margin:14px 0 8px;font-size:13px;line-height:1.5;color:#6a6771}
.table-key .winner-icon{width:16px;height:16px}
.article-body .table-notes{list-style:none;padding:0;margin:0;font-size:13px;line-height:1.6;color:#6a6771}
.article-body .table-notes li{margin:0 0 4px}
.table-notes strong{color:#5c556a;font-weight:600}

/* Scorecards: plain article sections, separated by a rule, no card chrome. */
.article-body .scorecard{padding:8px 0 12px;border-top:1px solid #e5e5e9}
.article-body .scorecard:first-of-type{border-top:0}
.article-body .scorecard h3{margin:28px 0 12px;font-size:24px;font-weight:600}
.article-body .scorecard-meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;margin:0 0 16px;color:#5c556a}
.scorecard-meta>span{display:inline-flex;align-items:center;gap:6px}
.meta-sep{color:#6a6771}
.rating-star{width:20px;height:20px;fill:#25252b;flex-shrink:0}
.article-body .scorecard-best{margin:0 0 16px}
.article-body .scorecard-note{margin:0 0 16px;color:#6a6771}
/* Does well / Falls short: labels on the first row, lists on the second; stacks in reading order on mobile. */
.scorecard-lists{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:"well-label short-label" "well-list short-list";column-gap:32px;margin:0 0 18px}
.scorecard-lists .well-label{grid-area:well-label}
.scorecard-lists .well-list{grid-area:well-list}
.scorecard-lists .short-label{grid-area:short-label}
.scorecard-lists .short-list{grid-area:short-list}
.article-body .scorecard-list-label{margin:0 0 6px}
.article-body .scorecard ul{margin:0}
.article-body .scorecard li{margin-bottom:6px}

/* Test method. */
.article-body .comparison-method h3{font-size:19px;margin:28px 0 12px}

/* Changelog: dated entries closing the post. */
.article-body .changelog{list-style:none;padding:0;margin:0}
.article-body .changelog li{margin:0;padding:12px 0;border-bottom:1px solid #e5e5e9;color:#5c556a}
.changelog-date{display:inline-block;min-width:130px;margin-right:12px;color:#25252b;font-weight:600}

/* Container queries measure the panel's content box, so the thresholds subtract padding and border:
   600px panel - 2 x 36px padding - 2 x 1px border = 526px content; below 701px screens the padding is 24px (550px). */
@container verdict (max-width:525px){
  .article-body .verdict-picks{grid-auto-flow:row;grid-template-columns:1fr}
}
@media(max-width:700px){
  @container verdict (max-width:549px){
    .article-body .verdict-picks{grid-auto-flow:row;grid-template-columns:1fr}
  }
}
@media(max-width:700px){
  .comparison-results thead th:first-child{min-width:116px}
  .hero-meta .last-tested-sep{display:none}
  .hero-meta .last-tested{flex-basis:100%}
  .comparison-results thead th,.comparison-results tbody th,.comparison-results tbody td{padding:14px 16px}
  .scorecard-lists{grid-template-columns:1fr;grid-template-areas:"well-label" "well-list" "short-label" "short-list";row-gap:0}
  .scorecard-lists .well-list{margin-bottom:16px}
  .comparison-verdict{padding:24px}
  .article-body .comparison-verdict h2{font-size:24px}
  .article-body .verdict-intro{font-size:16px}
  .article-body .verdict-picks li{padding:18px}
}

/* Review cards: a few merchant quotes, set apart from the article text. Visible stars only; no rating markup. */
.article-body .review-cards{margin:28px 0 36px;padding:28px;background:#f6f6f8;border:1px solid #eeeef1;border-radius:12px}
.article-body .review-cards-title{margin:0 0 16px;font-size:11px;font-weight:500;letter-spacing:.13em;text-transform:uppercase;color:#615875}
.article-body .review-cards-grid{list-style:none;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(260px,320px);gap:14px;padding:4px 4px 16px;margin:0 -4px;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#c9c2e3 transparent}
.article-body .review-card{scroll-snap-align:start}
.article-body .review-cards-title{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.article-body .review-cards-hint{font-size:12px;font-weight:600;letter-spacing:0;text-transform:none;color:#514791}
.article-body .review-card{display:flex;flex-direction:column;gap:12px;margin:0;padding:22px;background:#fff;border:1px solid #eeeef1;border-radius:10px;box-shadow:0 8px 24px rgba(37,37,43,.07)}
.article-body .review-stars{font-size:16px;letter-spacing:2px;color:#f5a623;line-height:1}
.article-body .review-card blockquote{margin:0;padding:0;border:0;font-size:16px;line-height:1.65;color:#25252b}
.article-body .review-card blockquote::before{content:"\201C";display:block;margin:0 0 4px;font-size:44px;line-height:.7;color:#7064aa}
.article-body .review-cards-source{margin:16px 0 0;font-size:13px;color:#6a6771}
.review-cards-source a{color:#514791;text-decoration:underline}

/* Scorecards as cards: white panel, pill meta line, highlighted "Best for", icon lists. Overrides the plain layout above. */
.article-body .scorecard{margin:0 0 24px;padding:28px 28px 20px;background:#fff;border:1px solid #eeeef1;border-radius:14px;box-shadow:0 10px 30px rgba(37,37,43,.06)}
.article-body .scorecard:first-of-type{border-top:1px solid #eeeef1}
.article-body .scorecard h3{margin:0 0 12px;font-size:24px;letter-spacing:-.01em}
.article-body .scorecard-meta{gap:8px;margin:0 0 18px;font-size:13px}
.article-body .scorecard-meta .meta-sep{display:none}
.article-body .scorecard-meta>span:not(.meta-sep){padding:5px 12px;background:#f6f6f8;border:1px solid #eeeef1;border-radius:999px;color:#5c556a;line-height:1.4}
.article-body .scorecard-meta .rating-star{width:15px;height:15px;fill:#f5a623}
.article-body .scorecard-best{margin:0 0 14px;padding:14px 18px;background:#eef1ff;border-left:3px solid #7064aa;border-radius:8px;color:#25252b}
.article-body .scorecard-note{margin:0 0 18px;font-size:15px}
.article-body .scorecard-lists{column-gap:20px;margin:0 0 8px}
.article-body .scorecard-lists .well-list,.article-body .scorecard-lists .short-list{list-style:none;padding:16px 18px;border-radius:10px}
.article-body .scorecard-lists .well-list{background:#f1faf5}
.article-body .scorecard-lists .short-list{background:#fbf7f1}
.article-body .scorecard-lists li{position:relative;padding-left:28px;margin-bottom:10px;font-size:15px;line-height:1.55}
.article-body .scorecard-lists li:last-child{margin-bottom:0}
.article-body .scorecard-lists li::before{position:absolute;left:0;top:2px;width:18px;height:18px;border-radius:50%;font-size:11px;font-weight:700;line-height:18px;text-align:center;color:#fff}
.article-body .scorecard-lists .well-list li::before{content:"\2713";background:#2e8b57}
.article-body .scorecard-lists .short-list li::before{content:"\2013";background:#c07a1c}
.article-body .scorecard-lists .well-label strong{color:#2e7d50}
.article-body .scorecard-lists .short-label strong{color:#a06512}
.article-body .scorecard-list-label{margin:0 0 8px;font-size:13px;letter-spacing:.06em;text-transform:uppercase}
@media(max-width:700px){.article-body .scorecard{padding:22px 18px 16px}}

/* Asterisk notes: small print under a table, explaining a value marked with *. */
.article-body .asterisk-note{font-size:12px;line-height:1.55;color:#6a6771}
.article-body p.asterisk-note{margin:10px 0 24px}
.article-body .table-notes .asterisk-note strong{color:#5c556a}

/* Scorecards in the verdict box's colours: grey panel, white inner boxes, purple accents. "Best for" keeps its purple banner. */
.article-body .scorecard{background:#f6f6f8;border:1px solid #eeeef1;border-radius:12px;box-shadow:none}
.article-body .scorecard:first-of-type{border-top:1px solid #eeeef1}
.article-body .scorecard-meta>span:not(.meta-sep){background:#fff;border-color:#e5e5e9}
.article-body .scorecard-lists .well-list,.article-body .scorecard-lists .short-list{background:#fff;border:1px solid #eeeef1;box-shadow:0 6px 18px rgba(37,37,43,.05)}
.article-body .scorecard-lists .well-list li::before{background:#7064aa}
.article-body .scorecard-lists .short-list li::before{background:#b4adc6}
.article-body .scorecard-lists .well-label strong,.article-body .scorecard-lists .short-label strong{color:#615875}

/* Verdict box: soft gradient panel, lifted pick cards with a purple top accent; the first pick gets the strongest accent. */
.comparison-verdict{background:linear-gradient(180deg,#f6f6f8 0%,#f1f0f8 100%);border-radius:14px}
.article-body .verdict-eyebrow{display:inline-block;padding:5px 12px;background:#fff;border:1px solid #e5e5e9;border-radius:999px;color:#514791;font-weight:600}
.article-body .verdict-picks li{position:relative;padding:24px 22px 22px;border-radius:12px;border-top:4px solid #c9c2e3;box-shadow:0 10px 28px rgba(37,37,43,.07)}
.article-body .verdict-picks li:first-child{border-top-color:#7064aa}
.article-body .verdict-picks h3{display:inline-block;margin:0 0 12px;padding:4px 10px;background:#eef1ff;border-radius:6px;color:#514791;font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase}
.article-body .verdict-picks p{font-size:15px}
.verdict-picks strong{font-size:17px}
.article-body .verdict-disclosure{padding:14px 18px;background:#fff;border:1px solid #eeeef1;border-top:1px solid #eeeef1;border-radius:10px}

/* Review cards: title row with previous/next arrows (replaces the "Scroll for more" hint). */
.article-body .review-cards-title{align-items:center}
.article-body .review-cards-title p{margin:0;font:inherit;color:inherit;letter-spacing:inherit}
.review-cards-nav{display:flex;gap:8px}
.review-cards-btn{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0;background:#fff;border:1px solid #e5e5e9;border-radius:50%;box-shadow:0 4px 12px rgba(37,37,43,.06);cursor:pointer;transition:background .15s,border-color .15s}
.review-cards-btn svg{width:18px;height:18px;fill:none;stroke:#514791;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.review-cards-btn:hover:not(:disabled){background:#eef1ff;border-color:#c9c2e3}
.review-cards-btn:focus-visible{outline:2px solid #7064aa;outline-offset:2px}
.review-cards-btn:disabled{cursor:default;opacity:.4;box-shadow:none}

/* Verdict: the first pick ("Best overall") stands out with a lavender tint, a solid purple label and a rocket badge.
   Rocket icon adapted from Lucide (ISC licence). */
.article-body .verdict-picks li:first-child{background:linear-gradient(160deg,#fff 0%,#fff 45%,#f1eefc 100%);border-color:#ddd7f0;border-top-color:#7064aa;box-shadow:0 14px 34px rgba(81,71,145,.16)}
.article-body .verdict-picks li:first-child h3{background:#514791;color:#fff}
.article-body .verdict-picks li:first-child::after{content:"";position:absolute;top:18px;right:18px;width:40px;height:40px;border-radius:50%;background:#7064aa url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z"/><path d="m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z"/><path d="M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0"/><path d="M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5"/></svg>') center/20px 20px no-repeat;box-shadow:0 6px 16px rgba(81,71,145,.3)}
.article-body .verdict-picks li:first-child p{padding-right:8px}
.article-body .verdict-picks li:first-child h3{margin-right:52px}
/* Body tables in comparison posts: same frame, header band and sideways scroll as the results table.
   Caption sits as a plain line under the frame; cells keep a minimum width so the table scrolls instead of squeezing. */
.article-body .body-table-frame{position:relative;margin:28px 0 20px}
.article-body .body-table{position:relative;margin:0;border:1px solid #e5e5e9;border-radius:12px;overflow-x:auto;background:linear-gradient(to left,#fff 30%,rgba(255,255,255,0)) right center/40px 100% no-repeat local,linear-gradient(to left,rgba(37,37,43,.14),rgba(37,37,43,0)) right center/28px 100% no-repeat scroll}
.article-body .body-table table{width:100%;font-size:14px;line-height:1.5;border-collapse:separate;border-spacing:0;background:transparent}
.article-body .body-table-caption{margin:10px 0 0;color:#60646c;font-size:12px;line-height:1.5}
.article-body .body-table thead th{padding:14px 18px;background:#e0e7ff;border-bottom:0;color:#25252b;font-size:14px;font-weight:600;line-height:1.4;vertical-align:bottom;text-align:left;min-width:160px}
.article-body .body-table thead th:first-child{min-width:150px}
.article-body .body-table tbody th,.article-body .body-table tbody td{padding:14px 18px;border-bottom:1px solid #eeeef1;vertical-align:top;background:transparent}
.article-body .body-table tbody tr:nth-child(even){background:transparent}
.article-body .body-table tbody tr:last-child th,.article-body .body-table tbody tr:last-child td{border-bottom:0}
.article-body .body-table tbody th[scope=row]{color:#25252b;font-weight:600}
.article-body .body-table td{color:#5c556a}
.article-body .body-table thead th:first-child,.article-body .body-table tbody th[scope=row]{position:sticky;left:0;z-index:2}
.article-body .body-table tbody th[scope=row]{background:#fff}
@media(max-width:700px){.article-body .body-table thead th,.article-body .body-table tbody th,.article-body .body-table tbody td{padding:12px 14px}.article-body .body-table thead th:first-child{min-width:120px}}
