/* One smaller type scale and one left edge for every page (Abdus, Dec 4 2026). Loaded last on every page.
   :root:root raises specificity so older page-specific sizes cannot win; change sizes here only. */
:root { --t-h1: 1.6rem; --t-h2: 1.2rem; --t-h3: .95rem; --t-body: .92rem; --t-card: .84rem; --t-small: .78rem; --t-tag: .7rem; }
@media (max-width: 760px) { :root { --t-h1: 1.35rem; --t-h2: 1.1rem; --t-body: .95rem; --t-card: .88rem; --t-small: .8rem; } }

/* Headings */
:root:root body main h1 { font-size: var(--t-h1); line-height: 1.25; max-width: none; margin: 0; }
:root:root body main h2 { font-size: var(--t-h2); line-height: 1.3; }
:root:root body main h3 { font-size: var(--t-h3); line-height: 1.35; }

/* Page heading block: same size, spacing and left edge as the content below it */
:root:root body main :is(.page-hero, .catalog-hero) { padding: 1.1rem 1rem; }
:root:root body main .page-hero .container { width: min(100%, var(--max)); max-width: none; }
:root:root body main :is(.page-hero, .catalog-hero) p { font-size: var(--t-body); line-height: 1.5; margin: .4rem 0 0; max-width: 120ch; }
:root:root body main :is(.page-hero, .catalog-hero) :is(.eyebrow, .catalog-kicker) { font-size: var(--t-tag); margin: 0 0 .3rem; }
:root:root body main .breadcrumb { font-size: var(--t-small); margin: 0 0 .4rem; }
:root:root body main :is(.picks-wrap, .guide-index, .prose) { width: min(calc(100% - 2rem), var(--max)); max-width: none; }

/* Reading text */
:root:root body main :is(.prose, .laptop-guide, .picks-wrap, .guide-index) :is(p, li, td, dd, dt, summary) { font-size: var(--t-body); line-height: 1.6; }
:root:root body main .prose { padding: 1.2rem 0 2rem; }
:root:root body main .prose > :is(p, ul, ol, h2, h3, .notice, .table-wrap, .affiliate-box) { max-width: 110ch; }
:root:root body main .prose h2 { margin: 1.4rem 0 .5rem; }
:root:root body main .prose > p { margin: .6rem 0; }

/* Cards */
:root:root body main :is(.lcard, .pick-card, .ccard, .dcard, .gcard, .pcard, .product-card, .cmp-card, .guide-item, .fit-grid, .callout) :is(p, li, dt, dd) { font-size: var(--t-card); line-height: 1.5; }
:root:root body main :is(.gcard-title, .pcard-title) { font-size: var(--t-card); line-height: 1.35; }
:root:root body main :is(.gcard-desc, .home-sub, .quick-picks-head p, .table-note, .disclosure-line, .disclosure, .pcard-disclosure, .editorial-note, .pick-compare, .lcard-check, .lcard-model, .pick-watch, .pcard-price, figcaption) { font-size: var(--t-small); line-height: 1.5; }
:root:root body main :is(.gcard-tag, .pick-label, .product-type, .pick-rank, .ai-note) { font-size: var(--t-tag); }
:root:root body main :is(.button, .store-button) { font-size: .82rem; }
:root:root body main :is(.spec-table, .cmp-table, .prose table) :is(th, td) { font-size: var(--t-card); }
:root:root body main .laptop-guide { width: min(calc(100% - 2rem), var(--max)); max-width: none; }
:root:root body main :is(p.pick-label, p.product-type, .pick-alt-label, .pcard-alt-label, .cmp-chip) { font-size: var(--t-tag); }
:root:root body main :is(.pick-price, .pcard-price, .lcard-price, .laptop-price, .cmp-price) strong { font-size: 1rem; }
:root:root body main .catalog-stat strong { font-size: 1.5rem; }
:root:root body main .catalog-stat span { font-size: var(--t-small); }
:root:root body main :is(.laptop-use, .catalog-note, .sale-jump a, .pick-more, .dcard a, .home-head > a, summary) { font-size: var(--t-card); }
:root:root body main .notice { font-size: var(--t-body); }

/* Shorter product photos on big pick cards; footer text matches the page */
@media (min-width: 1001px) { :root:root body main .pick-card > .pick-media { aspect-ratio: auto; height: 220px; } }
:root:root body .site-footer :is(a, p, strong) { font-size: var(--t-card); }
/* Gifts, games and apps: no half-empty rows */
@media (min-width: 1001px) {
  :root:root body.compact-directory .gcard-grid:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  :root:root body.compact-directory .gcard-grid:is(:has(> :nth-child(4):last-child), :has(> :nth-child(8):last-child)) { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}

/* Captioned reference pictures on product cards */
:root:root body main .lcard-photo.card-ai img { max-width: none; aspect-ratio: 4 / 3; object-fit: cover; }
:root:root body main .card-ai .ai-note { display: block; margin: 0 0 .4rem; color: var(--muted); font-size: .68rem; line-height: 1.35; }
@media (min-width: 1001px) { :root:root body main .laptop-guide .lcard-grid:has(> :nth-child(8):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Same left edge for loose blocks, small labels, and the homepage's one-line heading */
:root:root body main > .container:not(.laptop-guide) { width: min(calc(100% - 2rem), var(--max)); padding-inline: 0; }
:root:root body main .budget-picks { padding: 0; }
:root:root body main p.eyebrow { font-size: var(--t-tag); }
:root:root body main .featured-head h1 { font-size: 1.02rem; }
@media (min-width: 1440px) { :root:root body main .gcard-grid:has(> :nth-child(11):last-child) { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
/* Two cards: fill the row, picture beside the text */
@media (min-width: 1001px) {
  :root:root body main .lcard-grid:has(> .card-ai:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :root:root body main .lcard-grid:has(> .card-ai:nth-child(2):last-child) > .card-ai { position: relative; padding-left: 276px; min-height: 196px; }
  :root:root body main .lcard-grid:has(> .card-ai:nth-child(2):last-child) > .card-ai img { position: absolute; inset: 0 auto 0 0; width: 260px; height: 100%; margin: 0; aspect-ratio: auto; border-radius: 8px 0 0 8px; }
}
/* Breathing room between stacked blocks; photos fill their cards; five picks fit one row on wide screens */
:root:root body main .compare-links { margin-top: 1.2rem; }
:root:root body main :is(.table-wrap, .lcard-grid, .ccard-grid) + :is(.table-wrap, .lcard-grid, .ccard-grid) { margin-top: .9rem; }
:root:root body main .laptop-guide > .button + .sale-jump { margin-top: .9rem; }
:root:root body main .lcard-photo img { max-width: none; }
@media (min-width: 1760px) { :root:root body main .pick-grid:has(> :nth-child(5):last-child) { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
