/* 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(--accent-ink); 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); }

/* /roadmap */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.rm-group { margin: 0 0 34px; }
.rm-group h2 { font-size: 22px; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.rm-group h2 .rm-count { font: 600 13px var(--body); color: var(--muted); }
.rm-list { display: grid; gap: 12px; }
.rm-item { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: start; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--card, transparent); }
.rm-item h3 { font-size: 17px; margin: 2px 0 4px; }
.rm-item p { margin: 0; color: var(--muted); font-size: 15px; }
.rm-vote { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 64px; height: 64px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg); color: var(--text); font: 700 17px var(--body); cursor: pointer; }
.rm-vote svg { width: 18px; height: 18px; }
.rm-vote:hover { border-color: var(--muted); }
.rm-vote[aria-pressed="true"] { border-color: var(--amber, #f5b83d); background: rgba(245, 184, 61, .14); }
.rm-vote:disabled { cursor: default; opacity: .75; }
.rm-done { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 14px; background: rgba(61, 220, 151, .14); color: #1f9d6a; font-size: 24px; }
.rm-suggest { margin: 10px 0 40px; max-width: 760px; }
.rm-suggest h2 { font-size: 22px; margin-bottom: 6px; }
.rm-suggest textarea.input { height: auto; padding: 12px 14px; resize: vertical; margin-top: 12px; }
@media (max-width: 560px) { .rm-item { grid-template-columns: 52px 1fr; gap: 12px; } .rm-vote, .rm-done { width: 52px; height: 56px; } }

/* Plugin ratings */
.pl-rate { display: flex; align-items: center; gap: 4px; margin: 6px 0 2px; min-height: 26px; }
.pl-stars { display: inline-flex; }
.pl-star { background: none; border: 0; padding: 0 2px; font-size: 19px; line-height: 1; cursor: pointer; color: color-mix(in srgb, currentColor 28%, transparent); }
.pl-star.on { color: #f5b83d; }
.pl-star:focus-visible { outline: 2px solid #f5b83d; border-radius: 4px; }

/* /status */
.st-head { font-weight: 600; font-size: 18px; margin-bottom: 12px; }
.st-good { color: var(--ok, #1a7f4b); }
.st-bad { color: var(--err-ink); }
.st-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.st-list li { display: grid; grid-template-columns: 14px 1fr auto; gap: 10px; align-items: center; }
.st-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.st-up { background: #1fa463; }
.st-down { background: #d93025; }
.st-na { background: #999; }

/* /try */
.try-box { display: grid; gap: 14px; }
.try-log { display: grid; gap: 10px; max-height: 55vh; overflow-y: auto; }
.try-log:empty { display: none; }
.try-msg { padding: 10px 14px; border-radius: 12px; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 90%; }
.try-user { justify-self: end; background: var(--accent-soft, rgba(80, 120, 255, .14)); }
.try-bot { justify-self: start; background: var(--panel-2, rgba(127, 127, 127, .1)); }
.try-form { display: flex; gap: 10px; }
.try-form .input { flex: 1; min-width: 0; }

/* /blog */
.blog-list { display: grid; gap: 16px; }
.blog-card h2 { margin: 4px 0 8px; font-size: 22px; }
.blog-card h2 a { color: inherit; text-decoration: none; }
.blog-card h2 a:hover, .blog-card h2 a:focus-visible { text-decoration: underline; }

/* /help */
.hc-search { margin: 0 0 24px; }
.hc-search .input { width: 100%; font-size: 17px; }
.hc-group h2 { margin: 28px 0 10px; font-size: 20px; }

/* /education */
#edu-form label { display: block; margin: 12px 0 4px; font-weight: 600; }
#edu-form .input { width: 100%; }

/* /status history */
.st-inc { border-left: 3px solid var(--line, rgba(127, 127, 127, .3)); padding: 4px 0 4px 14px; margin: 0 0 16px; }
.st-inc h3 { margin: 0 0 4px; font-size: 17px; }
