/* article-kit.css */
/* article-kit.css — shared layout for recommended-gear articles.
   Generated 2026-08-12 from the verified best-cheap-laptops build.
   Edit HERE, not per page. */
    /* ── marquee (2026-08-12) ── */
    .mq-wrap { position: relative; margin: 22px 0 30px; }
    .mq { scroll-behavior: auto; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; cursor: grab; }
    .mq::-webkit-scrollbar { display: none; }
    .mq.is-drag { cursor: grabbing; }
    .mq-track { display: flex; gap: 14px; width: max-content; }
    .mq-card { flex: 0 0 244px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-lg, 12px); overflow: hidden; display: flex; flex-direction: column; }
    .mq-card img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 12px; background: #fff; }
    .mq-body { padding: 12px 13px 13px; display: flex; flex-direction: column; flex: 1; }
    .mq-badge { display: inline-block; align-self: flex-start; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 2px 8px; border-radius: 12px; margin-bottom: 7px; background: rgba(245,158,11,0.12); color: #f59e0b; }
    .mq-title { font-size: 0.79rem; font-weight: 600; color: var(--text); line-height: 1.35; margin-bottom: 3px; }
    .mq-price { font-size: 0.9rem; font-weight: 700; color: var(--primary); margin-bottom: 9px; }
    .pill-row { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 11px; }
    .pill { font-size: 0.63rem; font-weight: 600; padding: 3px 9px; border-radius: 20px; line-height: 1.45; white-space: nowrap; }
    .pill.pro { background: rgba(34,197,94,0.12); color: #22c55e; }
    .pill.con { background: rgba(245,158,11,0.12); color: #f59e0b; }
    .mq-btn { display: block; text-align: center; background: var(--primary); color: #1a1a1a; padding: 9px 12px; border-radius: var(--radius, 8px); font-size: 0.75rem; font-weight: 600; text-decoration: none; margin-top: auto; }
    .mq-note { font-size: 0.66rem; color: var(--text-dim); text-align: center; margin-top: 10px; }
    .mq-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: rgba(255,255,255,0.96); color: var(--text); font-size: 1.5rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0 0 3px; box-shadow: 0 2px 10px rgba(0,0,0,0.12); }
    .mq-nav:hover { color: var(--primary); border-color: var(--primary); }
    .mq-prev { left: 6px; } .mq-next { right: 6px; }
    @media (hover: none) { .mq-nav { display: none; } }
    /* ── quick summary ── */
    .tldr { margin: 0 0 22px; padding: 16px 18px; background: var(--bg-alt); border: 1px solid var(--border); border-left: 3px solid var(--primary); border-radius: var(--radius, 8px); }
    .tldr-h { margin: 0 0 9px; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--primary); }
    .qs-list { list-style: none; margin: 0; padding: 0; }
    .qs-i { display: block; padding: 11px 0; border-bottom: 1px solid var(--border); }
    .qs-i:last-child { border-bottom: 0; padding-bottom: 2px; }
    .qs-for { display: block; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; color: var(--text-dim); margin-bottom: 3px; }
    .qs-pick { display: block; font-size: 1.06rem; line-height: 1.5; font-weight: 600; }
    .qs-pick a { color: var(--primary); text-decoration: none; }
    .qs-price { font-weight: 600; color: var(--text); white-space: nowrap; }
    .qs-why { display: block; font-size: 0.95rem; line-height: 1.6; color: var(--text-secondary); margin-top: 2px; }
    /* ── faq accordion ── */
    .faq { margin: 34px 0 8px; }
    .faq-i { border: 1px solid var(--border); border-radius: var(--radius, 8px); margin-bottom: 8px; background: var(--bg-alt); overflow: hidden; }
    .faq-i summary { cursor: pointer; list-style: none; padding: 13px 16px; font-size: 0.85rem; font-weight: 600; color: var(--text); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
    .faq-i summary::-webkit-details-marker { display: none; }
    .faq-i summary::after { content: "+"; font-size: 1.1rem; color: var(--primary); }
    .faq-i[open] summary::after { content: "\2013"; }
    .faq-a { padding: 0 16px 14px; }
    .faq-a p { font-size: 0.83rem; line-height: 1.7; color: var(--text-secondary); margin: 0; }
    /* ── header tightening ── */
    .article-page .section { padding: 30px 0 40px; }
    .article-header h1 .h1-l2 { display: inline-block; font-size: 0.72em; font-weight: 600; color: var(--text-secondary); margin-top: 4px; }
    @media (max-width: 600px) {
      .article-header { padding: 0; }
      .article-header h1 { font-size: 1.02rem; line-height: 1.35; letter-spacing: -0.015em; }
      .article-header h1 .h1-l2 { font-size: 0.92em; letter-spacing: 0; margin-top: 6px; }
      .mq-wrap { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
      .mq-note { padding: 0 16px; }
      /* 255px, not 200px: six short pills pair two per row here, where at 200px
       they stack single file and push the buy button below the fold. */
    .mq-card { flex: 0 0 255px; }
    }

/* breadcrumb bar sits flush under the sticky 72px nav (was margin-top:64px inline) */
.crumbs { padding: 9px 0; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.crumbs .container { font-size: 0.65rem; color: var(--text-dim); }
.crumbs a { color: var(--text-dim); text-decoration: none; }
.crumbs .sep { margin: 0 6px; }
.crumbs .here { color: var(--text-secondary); }

/* .article-body a is (0,1,1) and outranks .mq-btn (0,1,0), which turned the
   button label the same amber as its background. Raise specificity. */
.mq-btn,
.mq-card a.mq-btn,
.article-body a.mq-btn,
.article-body a.mq-btn:hover,
.article-body a.mq-btn:visited { color: #1a1a1a; background: var(--primary); text-decoration: none; }

    /* 2026-09-18: a marquee placed inside a grid parent broke out of the page on phones */
    .mq-wrap { grid-column: 1 / -1; min-width: 0; }
    /* 2026-09-18: short marquees (under 4 products) sit still and centred */
    .mq-static .mq { cursor: default; }
    .mq-static .mq-track { margin: 0 auto; }
    .mq-static .mq-nav { display: none; }
    /* 2026-09-28: explicit pros/cons lists inside pick-cards (winter_build optional keys) */
    .pick-proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0 16px; }
    .pick-proscons .pc-col { border-radius: 10px; padding: 12px 14px; }
    .pick-proscons .pc-pro { background: rgba(34,197,94,0.08); border-left: 3px solid #22c55e; }
    .pick-proscons .pc-con { background: rgba(245,158,11,0.08); border-left: 3px solid #f59e0b; }
    .pick-proscons .pc-h { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 6px; }
    .pick-proscons .pc-pro .pc-h { color: #15803d; }
    .pick-proscons .pc-con .pc-h { color: #b45309; }
    .pick-proscons ul { margin: 0; padding-left: 18px; list-style: disc; }
    .pick-proscons li { font-size: 0.88rem; line-height: 1.5; margin: 0 0 4px; }
    @media (max-width: 640px) { .pick-proscons { grid-template-columns: 1fr; } }
/* quick-summary.css */
/* Quick summary, compact rows with a Show all toggle (Ben, 2026-09-18).
   Loaded AFTER article-kit.css and any inline page styles it needs to beat;
   every selector is scoped under .tldr so it wins on specificity.
   Toggle script: /js/quick-summary.js. Markup: scripts/article_kit.py quick_summary(). */

/* ── Quick summary: compact rows ─────────────────────────────── */
.article-body .tldr { padding: 12px 14px 6px; margin: 0 0 20px; }
.tldr .tldr-h { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 4px; }
.tldr-h .qs-count { font-size: 0.62rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text-dim); }
/* The article-body ul rule adds a 20px left margin, which knocked every row
   20px right of the heading. */
.article-body .tldr .qs-list { margin: 0; padding: 0; }
.article-body .tldr .qs-i {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "for for" "name price" "why price";
  column-gap: 12px;
  padding: 8px 0;
  margin: 0;
  font-size: inherit;
  line-height: 1.3;
  border-bottom: 1px solid var(--border);
}
.article-body .tldr .qs-i:last-child { border-bottom: 0; }
.tldr .qs-for { grid-area: for; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.06em; color: var(--primary-hover, #d4991f); margin: 0 0 1px; }
.tldr .qs-pick { display: contents; }
.tldr .qs-pick a {
  grid-area: name; font-size: 0.9rem; font-weight: 600; line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.tldr .qs-price { grid-area: price; align-self: center; text-align: right; font-size: 0.86rem; font-weight: 700; color: var(--text); }
.tldr .qs-price small { display: block; font-size: 0.58rem; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: .04em; }
.tldr .qs-why { grid-area: why; font-size: 0.72rem; line-height: 1.4; color: var(--text-dim); margin: 1px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Rows past the 4th hide until "Show all" is tapped */
.tldr.qs-collapsed .qs-i:nth-child(n+5) { display: none; }
.qs-more { display: block; width: 100%; margin: 2px 0 6px; padding: 8px 0; border: 0; border-top: 1px solid var(--border); background: none; font-family: inherit; font-size: 0.74rem; font-weight: 700; color: var(--text); cursor: pointer; text-align: center; }
.qs-more:hover { color: var(--primary-hover, #d4991f); }

@media (min-width: 900px) {
  .tldr .qs-pick a { font-size: 0.95rem; }
  .tldr .qs-why { font-size: 0.76rem; }
}
/* article-layout.css */
/* Article layout fix (Ben, 2026-09-18). Loaded LAST in <head> so it beats inline page styles. */

/* Phones: text sat 40px in from each edge (24px page padding + 16px article padding). Now 16px. */
@media (max-width: 600px) {
  .article-page .container { padding-left: 16px; padding-right: 16px; }
  .article-page .article-body, .article-page .article-header { padding-left: 0; padding-right: 0; }
}

/* Tablets and phones in landscape / desktop-site mode (601-1023px):
   the header was capped at 700px and pinned LEFT while the body was centred,
   so the title sat off-centre, and both left wide empty gutters. Both now use
   the full width and centre together. */
@media (min-width: 601px) and (max-width: 1023px) {
  .article-page .article-body, .article-page .article-header { max-width: none; margin-left: auto; margin-right: auto; padding-left: 0; padding-right: 0; }
  div[style*="max-width:720px"], div[style*="max-width: 720px"] { max-width: none !important; }
}

/* Phones: 3-across "related articles" link grids (69 pages) squeezed each card
   to ~100px and pushed the last one off the screen. Stack them instead. */
@media (max-width: 600px) {
  div[style*="grid-template-columns:repeat(3,1fr)"],
  div[style*="grid-template-columns: repeat(3, 1fr)"] { grid-template-columns: 1fr !important; }
}
