/* The compare page (template-parts/compare-page.php, routed by inc/compare.php; loaded by gs_compare_assets() after the
   kit, product.css and alternative.css, whose hero, verdict marks, folded sources and stack block it wears as a rival
   page does): only what is the page's own, the picker and a grid of up to five columns. The grid is the kit's .k-cmp
   with the rival pages' .ap-cmp-marks, so a cell looks as it does on a rival page; under 1080 px its rows become cards,
   the column heads a row of small cards over them. Scoped to .cp, the page's root (beside .ap). Tokens only, so the
   dark theme follows. Nothing moves. */

/* ---- the picker: the rivals by kind, each a toggle with its mark ------------------------------------------------ */
.cp-pick{margin-top:48px;padding:22px 28px 26px;border-radius:20px;background:var(--k-card);box-shadow:var(--k-card-sh)}
.cp-pick-top{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:6px 24px;padding-bottom:16px;border-bottom:1px solid var(--line)}
.cp-pick-h{margin:0;font:600 18px/1.3 var(--display);letter-spacing:-.01em;color:var(--ink2)}
.cp-count{margin:0;font:500 12px/1.4 var(--mono);letter-spacing:.06em;text-transform:uppercase;color:var(--mute);font-variant-numeric:tabular-nums}
/* a kind: its label over its tools, so the longest kind (seven outreach tools) keeps to one row at 1440 */
.cp-group{padding-top:18px}
.cp-group-h{margin:0 0 10px;font:500 11.5px/1.4 var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--mute)}
.cp-pks{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}
.cp-pks li{margin:0}
/* a tool: its mark, its name, a plus while out and a tick while in; in, it wears the primary's tint */
.cp-pk{display:inline-flex;align-items:center;gap:10px;height:44px;padding:0 10px 0 8px;border-radius:12px;background:var(--ground);box-shadow:inset 0 0 0 1px var(--line);font:600 15px/1 var(--sans);color:var(--ink2);text-decoration:none;white-space:nowrap;cursor:pointer;-webkit-tap-highlight-color:transparent}
.cp-pk:hover{box-shadow:inset 0 0 0 1px var(--mute)}
.cp-pk[aria-pressed="true"]{background:color-mix(in srgb,var(--ai) 8%,var(--k-card));box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--ai) 48%,transparent)}
.cp-pk:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
.cp-pk-st{display:inline-grid;place-items:center;flex:none;width:20px;height:20px;border-radius:50%;box-shadow:inset 0 0 0 1.5px var(--line);color:var(--mute)}
.cp-pk-st svg{display:block;width:14px;height:14px}
.cp-pk[aria-pressed="true"] .cp-pk-st{background:var(--ai);box-shadow:none;color:var(--k-card)}
.cp-pk[aria-pressed="true"] .cp-pk-add,.cp-pk:not([aria-pressed="true"]) .cp-pk-in{display:none}
/* the line a press past the limit (or on the last tool) brings: a quiet amber note under the tools */
.cp-note{margin:18px 0 0;padding:10px 14px;border-radius:10px;background:color-mix(in srgb,var(--k-amber) 20%,var(--k-card));font:400 14.5px/1.5 var(--sans);color:var(--ink);text-wrap:pretty}
.cp-note[hidden]{display:none}

/* ---- the grid: the kit's table, a column per tool, GetSales' lit first ----------------------------------------- */
.cp-wrap{margin-top:20px}
.cp .cp-t thead th:first-child{width:18%}
.cp .cp-t thead th{vertical-align:top}
.cp .cp-t td{vertical-align:top}
/* a head: the mark and the name, the day read, the link to the full comparison under them */
.cp .cp-full{margin-top:12px;font-size:14px;line-height:1.35}
.cp .cp-full svg{width:15px;height:15px}
/* GetSales' price line links to the pricing page */
.cp-in{color:var(--k-ai-ink);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.cp-in:focus-visible{outline:2px solid var(--blue);outline-offset:2px;border-radius:4px}
/* "Not on its pages" sits where a mark would */
.cp-t td>.k-not{margin-top:1px}

/* ---- the sources: one closed line per picked tool, under the grid -------------------------------------------- */
.cp-srcs{display:grid;gap:2px;margin-top:20px}
.cp-srcs .ap-srcs{margin-top:0}
.cp-dir{margin:22px 0 0}
.cp-srcs .ap-srcs summary{padding:5px 0}

/* ---- the grid as cards, under 1080 px: the heads a row of small cards, each question a card of its cells ------- */
@media (max-width:1080px){
  .cp .cp-wrap{margin-top:20px;border-radius:0;background:none;box-shadow:none;overflow:visible}
  .cp .cp-t,.cp .cp-t thead,.cp .cp-t tbody,.cp .cp-t tr,.cp .cp-t th,.cp .cp-t td{display:block;width:auto}
  .cp .cp-t thead{position:static;width:auto;height:auto;overflow:visible;clip:auto;white-space:normal}
  .cp .cp-t thead tr{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;margin:0 0 16px}
  .cp .cp-t thead th{padding:14px 16px 15px;border:0;border-radius:14px;background:var(--k-card);box-shadow:var(--k-card-sh);font-size:16.5px}
  .cp .cp-t thead th:first-child{display:none}
  .cp .cp-t thead th.k-cmp-us{background:color-mix(in srgb,var(--ai) 6%,var(--k-card));box-shadow:var(--k-card-sh),inset 0 0 0 1.5px color-mix(in srgb,var(--ai) 28%,transparent)}
  .cp .cp-t thead small{margin-top:6px}
  .cp .cp-full{margin-top:10px}
  .cp .cp-t tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:0 0 12px;border-radius:16px;background:var(--k-card);box-shadow:var(--k-card-sh);overflow:hidden}
  .cp .cp-t tbody th{grid-column:1/-1;padding:16px 18px 10px;border-top:0;font-size:16.5px}
  .cp .cp-t td{padding:12px 18px 16px;border-top:1px solid var(--line)}
  /* the right-hand cell of each pair (the GetSales cell is the row's second child) */
  .cp .cp-t td:nth-child(odd){box-shadow:inset 1px 0 0 var(--line)}
  .cp .cp-t td::before{content:attr(data-th);display:block;margin:2px 0 8px;font:500 11px/1.2 var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--mute)}
  .cp .cp-t td.k-cmp-us::before{color:var(--k-ai-ink)}
}
@media (max-width:760px){
  .cp-pick{margin-top:32px;padding:18px 16px 20px}
  .cp-group{padding-top:16px}
  .cp-pks{gap:6px}
  .cp-pk{gap:8px;height:42px;padding:0 9px 0 7px;font-size:14.5px}
  .cp .cp-t thead tr{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cp .cp-t thead th{padding:12px 14px 13px;font-size:15.5px}
  .cp .cp-t thead small{font-size:10.5px}
  .cp .cp-t tbody tr{grid-template-columns:minmax(0,1fr)}
  .cp .cp-t td:nth-child(odd){box-shadow:none}
  .cp .cp-t td{padding:10px 18px 14px}
  .cp-srcs{margin-top:16px}
}
