/* PCG Market — laptop wizard, results and sponsored slots. */

.pcg-lw, .pcg-laptops {
  max-width: var(--pcg-maxw);
  margin: 0 auto;
  font-family: var(--pcg-font);
  color: var(--pcg-text);
}
.pcg-lw *, .pcg-laptops * { text-decoration: none; }
.pcg-lw a:not(.pcg-btn):hover, .pcg-laptops a:not(.pcg-btn):hover { text-decoration: underline; }

/* ── Wizard ────────────────────────────────────────────────────────────── */

.pcg-lw { max-width: 780px; }
.pcg-lw__head { margin-bottom: var(--pcg-space-5); }
.pcg-lw__step {
  margin: 0 0 var(--pcg-space-2);
  font-size: var(--pcg-fs-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--pcg-text-faint);
}
.pcg-lw__head h1 { margin: 0 0 var(--pcg-space-2); font-size: var(--pcg-fs-2xl); letter-spacing: -0.02em; }
.pcg-lw__sub { margin: 0; color: var(--pcg-text-muted); max-width: 56ch; }

.pcg-lw__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--pcg-space-3); margin: 0 0 var(--pcg-space-5); padding: 0; list-style: none;
}
.pcg-lw__grid > li { list-style: none; margin: 0; }
.pcg-lw__grid--tight { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }

.pcg-lw__card {
  display: flex; flex-direction: column; gap: var(--pcg-space-1);
  min-height: 92px;
  padding: var(--pcg-space-4);
  background: var(--pcg-bg);
  border: 1px solid var(--pcg-border);
  border-radius: var(--pcg-radius);
  color: var(--pcg-text);
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.pcg-lw__card:hover {
  border-color: var(--pcg-primary);
  box-shadow: var(--pcg-shadow);
  transform: translateY(-1px);
  color: var(--pcg-text);
}
.pcg-lw__card-title { font-weight: 650; font-size: var(--pcg-fs-base); line-height: 1.3; }
.pcg-lw__card-desc { font-size: var(--pcg-fs-sm); color: var(--pcg-text-muted); line-height: 1.4; }

/* Checkbox cards keep the whole tile clickable rather than a 14px target. */
.pcg-lw__card--check { flex-direction: row; align-items: flex-start; gap: var(--pcg-space-3); }
.pcg-lw__card--check input { margin-top: 3px; flex: 0 0 auto; }
.pcg-lw__card--check span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pcg-lw__card--check:has(input:checked) { border-color: var(--pcg-primary); background: var(--pcg-primary-soft); }

.pcg-lw__custom {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--pcg-space-2);
  padding: var(--pcg-space-4);
  background: var(--pcg-surface); border-radius: var(--pcg-radius);
  font-size: var(--pcg-fs-sm); color: var(--pcg-text-muted);
}
.pcg-lw__custom .pcg-input {
  width: 130px; min-height: 40px; padding: 0 var(--pcg-space-3);
  border: 1px solid var(--pcg-border); border-radius: var(--pcg-radius-sm);
  font: inherit; font-size: var(--pcg-fs-base); color: var(--pcg-text); background: var(--pcg-bg);
}
.pcg-lw__actions { display: flex; flex-wrap: wrap; gap: var(--pcg-space-2); }
.pcg-lw__skip { font-size: var(--pcg-fs-sm); color: var(--pcg-text-muted); }

/* ── Results ───────────────────────────────────────────────────────────── */

.pcg-laptops__recap {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--pcg-space-2);
  padding: var(--pcg-space-3) var(--pcg-space-4);
  margin-bottom: var(--pcg-space-4);
  background: var(--pcg-surface); border-radius: var(--pcg-radius);
  font-size: var(--pcg-fs-sm); color: var(--pcg-text-muted);
}
.pcg-laptops__tag {
  padding: 2px var(--pcg-space-2); border-radius: 999px;
  background: var(--pcg-bg); border: 1px solid var(--pcg-border);
  font-size: var(--pcg-fs-xs); color: var(--pcg-text);
}
.pcg-laptops__body { display: block; }

.pcg-laptop-grid {
  /* 230px now the filters are no longer taking a column. On a 1000px content
     area that is four across where the sidebar layout managed two. */
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: var(--pcg-space-4); margin: 0; padding: 0; list-style: none;
}
.pcg-laptop-grid > li { list-style: none; margin: 0; }

.pcg-laptop {
  display: flex; flex-direction: column;
  background: var(--pcg-bg);
  border: 1px solid var(--pcg-border);
  border-radius: var(--pcg-radius);
  overflow: hidden;
  transition: box-shadow .18s ease, border-color .18s ease;
}
.pcg-laptop:hover { box-shadow: var(--pcg-shadow); border-color: var(--pcg-border-strong); }

.pcg-laptop__media {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 16 / 10; padding: var(--pcg-space-3);
  background: var(--pcg-surface); border-bottom: 1px solid var(--pcg-border);
}
.pcg-laptop__media img { max-width: 90%; max-height: 90%; object-fit: contain; }
.pcg-laptop__noimg { font-size: var(--pcg-fs-xs); color: var(--pcg-text-faint); text-transform: uppercase; letter-spacing: .06em; }

.pcg-laptop__body { flex: 1; padding: var(--pcg-space-3); }
.pcg-laptop__brand {
  margin: 0; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; color: var(--pcg-text-faint);
}
.pcg-laptop__name { margin: 2px 0 var(--pcg-space-2); font-size: var(--pcg-fs-base); line-height: 1.3; }
.pcg-laptop__name a { color: var(--pcg-text); }
.pcg-laptop__name a:hover { color: var(--pcg-primary); }
.pcg-laptop__specs { margin: 0 0 var(--pcg-space-2); font-size: var(--pcg-fs-xs); color: var(--pcg-text-muted); line-height: 1.5; }

/* The capability line is the sentence that converts, so it gets emphasis. */
.pcg-laptop__capability {
  margin: 0 0 var(--pcg-space-2); padding: var(--pcg-space-2);
  background: var(--pcg-primary-soft); border-radius: var(--pcg-radius-sm);
  font-size: var(--pcg-fs-sm); line-height: 1.4; color: var(--pcg-text);
}

.pcg-laptop__why, .pcg-laptop__caveats { margin: 0; padding: 0; list-style: none; font-size: var(--pcg-fs-xs); }
.pcg-laptop__why li, .pcg-laptop__caveats li { display: flex; gap: 6px; align-items: baseline; padding: 1px 0; line-height: 1.4; }
.pcg-laptop__why li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--pcg-success); flex: 0 0 auto; }
.pcg-laptop__caveats li { color: var(--pcg-warn); }
.pcg-laptop__caveats li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--pcg-warn); flex: 0 0 auto; }

.pcg-laptop__foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: var(--pcg-space-2);
  padding: var(--pcg-space-3); border-top: 1px solid var(--pcg-border); min-height: 56px;
}
.pcg-laptop__shops { display: block; font-size: 11px; color: var(--pcg-text-faint); }
.pcg-laptop__noprice { margin: 0; font-size: var(--pcg-fs-xs); color: var(--pcg-text-faint); max-width: 16ch; line-height: 1.35; }

/* ── Sponsored ─────────────────────────────────────────────────────────────
   Deliberately NOT styled like a product card. Blending a paid unit into the
   organic grid is how a comparison site loses the trust it runs on — and how
   AdSense policy problems start. */

.pcg-ad {
  position: relative;
  display: block;
  border: 1px dashed var(--pcg-border-strong);
  border-radius: var(--pcg-radius);
  background: var(--pcg-surface);
}
.pcg-ad__flag {
  position: absolute; top: 8px; right: 10px;
  font-size: 10px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--pcg-text-faint);
}
.pcg-ad__inner {
  display: flex; align-items: center; gap: var(--pcg-space-4);
  padding: var(--pcg-space-4);
  color: var(--pcg-text);
}
.pcg-ad--card .pcg-ad__inner { flex-direction: column; align-items: flex-start; height: 100%; }
.pcg-ad__image { max-width: 140px; max-height: 90px; object-fit: contain; flex: 0 0 auto; }
.pcg-ad--card .pcg-ad__image { max-width: 100%; }
.pcg-ad__text { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.pcg-ad__text strong { font-size: var(--pcg-fs-base); line-height: 1.3; }
.pcg-ad__text span { font-size: var(--pcg-fs-sm); color: var(--pcg-text-muted); }
.pcg-ad__cta {
  flex: 0 0 auto;
  padding: var(--pcg-space-2) var(--pcg-space-4);
  background: var(--pcg-bg); border: 1px solid var(--pcg-border-strong);
  border-radius: var(--pcg-radius-sm);
  font-size: var(--pcg-fs-sm); font-weight: 600;
}
.pcg-ad__by { font-size: 11px; color: var(--pcg-text-faint); margin-top: auto; }
.pcg-ad--banner { margin-bottom: var(--pcg-space-4); }
.pcg-laptop-grid__ad { display: flex; }
.pcg-laptop-grid__ad .pcg-ad { width: 100%; }

@media (max-width: 900px) {
  .pcg-laptops__body { grid-template-columns: 1fr; }
  .pcg-ad__inner { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .pcg-lw__card, .pcg-laptop { transition: none; }
  .pcg-lw__card:hover { transform: none; }
}
