/* Price guide pages. Builds on style.css tokens (--fg, --muted, --card, ...). */

main { max-width: 860px; }
header, footer { max-width: 860px; }

.ps-crumbs { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.ps-crumbs a { color: var(--muted); text-decoration: none; margin-left: 0; font-size: inherit; }
.ps-crumbs a:hover { color: var(--fg); text-decoration: underline; }
.ps-crumbs .sep { margin: 0 4px; opacity: .6; }

.ps-card { display: grid; grid-template-columns: minmax(0, 240px) 1fr; gap: 28px; align-items: start; }
.ps-card img { width: 100%; height: auto; border-radius: 12px; background: var(--card); aspect-ratio: 5 / 7; object-fit: contain; }
@media (max-width: 640px) {
  .ps-card { grid-template-columns: 1fr; }
  .ps-card img { max-width: 220px; margin: 0 auto; display: block; }
}
.ps-meta { color: var(--muted); margin: 0 0 16px; }
.ps-price { font-size: 40px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin: 4px 0 2px; }
.ps-price-note { color: var(--muted); font-size: 14px; margin: 0 0 18px; }

.ps-table-wrap { overflow-x: auto; margin: 10px 0 22px; }
table.ps { width: 100%; border-collapse: collapse; font-size: 15px; }
table.ps th, table.ps td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); }
table.ps th { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
table.ps td.num, table.ps th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.ps tr:hover td { background: var(--card); }
table.ps a { color: var(--fg); text-decoration: none; }
table.ps a:hover { color: var(--accent); text-decoration: underline; }
.up { color: #16a34a; }
.down { color: #dc2626; }
.flat { color: var(--muted); }
h3.ps-printing { font-size: 16px; margin: 18px 0 2px; }

.ps-cta {
  display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 18px 22px; margin: 26px 0;
}
.ps-cta > div { flex: 1 1 320px; }
.ps-cta-title { font-weight: 700; margin: 0 0 4px; }
.ps-cta-body { margin: 0; color: var(--muted); font-size: 15px; }

.ps-search { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 26px; }
.ps-search input, .ps-search select {
  font: inherit; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--card); color: var(--fg);
}
.ps-search input { flex: 1 1 260px; }
.ps-search button {
  font: inherit; font-weight: 600; padding: 10px 18px; border-radius: 10px;
  border: 0; background: var(--accent); color: #fff; cursor: pointer;
}

.ps-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin: 10px 0 26px; }
.ps-games a {
  display: block; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--card); color: var(--fg); text-decoration: none; font-weight: 600;
}
.ps-games a span { display: block; font-weight: 400; font-size: 14px; color: var(--muted); }
.ps-games a:hover { border-color: var(--accent); }

.ps-pager { display: flex; gap: 12px; justify-content: space-between; margin: 12px 0 26px; font-size: 15px; }
.ps-year { font-size: 18px; margin: 26px 0 6px; }

/* Phones: drop secondary columns so the price stays on screen. */
@media (max-width: 640px) {
  .ps-opt { display: none; }
  table.ps th, table.ps td { padding: 8px 6px; }
  table.ps { font-size: 14px; }
}
