/* Comparison, transparency and routine gallery pages (site-src/pages_*.py).
   Builds on site.css tokens: --ink, --amber, --sky, --surface, --line, --muted… */

.px-head { max-width: 860px; }
.px-head .lead { margin-top: 14px; }
.px-head .small { margin-top: 12px; }
.px-crumb { margin-bottom: 14px; color: var(--muted); }
.px-crumb a { color: var(--muted); }
.px-sec { padding: 56px 0 0; }
.px-sec > h2 { margin-bottom: 18px; }
.px-gh { margin: 34px 0 6px; font-size: 21px; }
.px-gh + .muted { margin-bottom: 4px; }
.px-cta { padding: 72px 0 0; }
.px-tm { margin-top: 28px; }

/* Quick verdict: two panels, competitor (sky) and NexaPilot (amber) */
.px-verdict { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.px-verdict .panel { border-top: 4px solid var(--line); }
.px-verdict .px-them { border-top-color: var(--sky); }
.px-verdict .px-us { border-top-color: var(--amber); }
.px-verdict h3 { font-size: 20px; margin-bottom: 10px; }
.px-verdict ul { padding-left: 20px; display: grid; gap: 8px; }
@media (max-width: 760px) { .px-verdict { grid-template-columns: 1fr; } }

/* Tables that turn into stacked cards on narrow screens */
.px-tablewrap { width: 100%; }
.px-table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.px-table th, .px-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.px-table thead th { background: var(--paper-2); font: 600 14px var(--body); text-transform: none; }
.px-table tbody tr:last-child th, .px-table tbody tr:last-child td { border-bottom: 0; }
.px-table tbody th { font-weight: 600; width: 18%; }
.px-table td:nth-child(2) { background: color-mix(in srgb, var(--amber) 7%, transparent); }
.px-table code { font: 13px var(--mono); background: var(--paper-2); padding: 1px 5px; border-radius: 5px; word-break: break-word; }
.px-lbl { display: none; }
.px-net tbody th { width: 20%; font-weight: 500; }
.px-net td:nth-child(2) { background: none; }
.px-hub td { text-align: center; }
.px-hub tbody th { width: 22%; }

@media (max-width: 760px) {
  .px-table, .px-table tbody, .px-table tr, .px-table th, .px-table td { display: block; width: 100% !important; }
  .px-table { border: 0; background: none; }
  .px-table thead { display: none; }
  .px-table tr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 12px; overflow: hidden; }
  .px-table tbody th { background: var(--paper-2); border-bottom: 1px solid var(--line); }
  .px-table td { border-bottom: 1px solid var(--line); }
  .px-table tbody tr td:last-child { border-bottom: 0; }
  .px-table tbody tr:last-child th { border-bottom: 1px solid var(--line); }
  .px-hub td { text-align: left; }
  .px-lbl { display: block; font: 600 12px var(--body); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
}

.px-sources { margin-top: 56px; }
.px-sources h2 { font-size: 22px; }
.px-sources ul { margin-top: 10px; padding-left: 20px; display: grid; gap: 6px; font-size: 14.5px; }
.px-sources a { word-break: break-word; }

/* Compare hub */
.px-cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.px-card { display: grid; gap: 8px; text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s; }
.px-card:hover { border-color: var(--amber); transform: translateY(-2px); }
.px-card h3 { font-size: 21px; }
.px-more { color: var(--accent-ink); font-weight: 600; font-size: 15px; }
@media (max-width: 860px) { .px-cards3 { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .px-card { transition: none; } .px-card:hover { transform: none; } }
.px-points { padding-left: 20px; display: grid; gap: 10px; max-width: 820px; }

/* Transparency */
.px-summary { margin-top: 8px; border-left: 4px solid var(--sky); }
.px-summary ul { padding-left: 20px; display: grid; gap: 10px; }
.px-never { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.px-never li { position: relative; padding-left: 28px; }
.px-never li::before { content: "✕"; position: absolute; left: 0; top: 0; font-weight: 700; color: var(--err-ink); }
@media (max-width: 760px) { .px-never { grid-template-columns: 1fr; } }
.px-say { font: 600 16px var(--body); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin: 8px 0; }
.px-say::before { content: "› "; color: var(--accent-ink); }
.px-verdict p + p, .px-verdict p + ul, .px-verdict ul + p { margin-top: 10px; }

/* Routine gallery */
.rt-note { max-width: 860px; margin-top: 18px; }
.rt-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.rt-chip { font: 600 14.5px var(--body); padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; }
.rt-chip:hover { border-color: var(--muted); }
.rt-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rt-chip[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: var(--ink); } }
:root[data-theme="dark"] .rt-chip[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.rt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 18px; align-items: start; }
.rt-card { display: grid; gap: 10px; }
.rt-card[hidden] { display: none; }
.rt-cat { font: 600 12px var(--body); letter-spacing: .05em; text-transform: uppercase; color: var(--sky-deep); }
.rt-card h3 { font-size: 21px; }
.rt-goal { color: var(--muted); }
.rt-apps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rt-apps ul { list-style: none; display: contents; padding: 0; }
.rt-apps li { font-size: 13px; padding: 2px 9px; border-radius: 7px; background: var(--paper-2); }
.rt-sub { font: 600 12.5px var(--body); color: var(--muted); margin-right: 2px; }
.rt-steps summary { cursor: pointer; font-weight: 600; color: var(--accent-ink); }
.rt-steps ol { padding-left: 20px; margin: 10px 0 12px; display: grid; gap: 6px; font-size: 15px; }
.rt-steps .rt-sub { display: block; margin-bottom: 6px; }
.rt-inputs { list-style: none; padding: 0; display: grid; gap: 4px; font-size: 14.5px; }
.rt-var { font: 500 13px var(--mono); background: color-mix(in srgb, var(--sky) 22%, transparent); padding: 0 6px; border-radius: 5px; margin-right: 4px; white-space: nowrap; }
.rt-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.rt-actions .is-copied::after { content: " ✓"; }
.rt-status { min-height: 1.6em; margin-top: 14px; color: var(--muted); }

/* ── /models: which model can my PC run ───────────────────────────── */
.mc-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; padding: 22px; margin-top: 8px; }
.mc-row { display: grid; gap: 6px; min-width: 0; }
.mc-row label { font-weight: 600; font-size: 14px; }
.mc-wide { grid-column: 1 / -1; }
.mc-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.mc-result { margin-top: 22px; display: grid; gap: 14px; }
.mc-best { padding: 22px; border-radius: 18px; border: 1.5px solid color-mix(in srgb, var(--amber) 55%, transparent); background: color-mix(in srgb, var(--amber) 7%, var(--bg)); }
.mc-best h2 { margin: 2px 0 6px; font-size: clamp(24px, 3vw, 32px); }
.mc-kicker { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--amber-deep, var(--amber)); font-weight: 700; }
.mc-stats { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 12px; }
.mc-stats div { min-width: 120px; }
.mc-stats b { display: block; font-size: 20px; }
.mc-stats span { font-size: 13px; color: var(--muted); }
.mc-alt { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.mc-alt .mc-card { padding: 16px; }
.mc-alt h3 { margin: 0 0 4px; font-size: 17px; }
.mc-none { padding: 18px; border-radius: 14px; border: 1px dashed var(--line); }
@media (max-width: 640px) { .mc-form { grid-template-columns: 1fr; } }
.mc-form, .mc-alt .mc-card { border: 1px solid var(--line); border-radius: 16px; background: var(--card, transparent); }
