/* Compare with… (js/compare-pick.js): the Compare button and its picker, a bottom sheet on a phone (760px and narrower)
   and a 360px popover under the button on a computer (the owner's pick of mock-compare-pick, November 19, 2026). Used
   on the person page (the button in the hero's actions; their row on a phone is css/person.css's). Light first, then
   dark under :root[data-theme="dark"] (js/theme.js), set here by hand: tools/build_dark.py leaves this file out
   (its SKIP), so css/dark.css never overrides these. */
.cpk-btn { gap: 6px; }
.cpk-btn .g-icon { width: 18px; height: 18px; }
@media (max-width: 760px) {
  .cpk-btn { min-height: 44px; width: 100%; }
}

.cpk-back { position: fixed; inset: 0; z-index: 9000; background: rgba(20, 17, 46, .42); }
.cpk-back.is-pop { background: transparent; }
.cpk-back[hidden], .cpk-sheet[hidden] { display: none; }
.cpk-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9001; max-height: 82vh; display: flex; flex-direction: column;
  background: #fff; color: var(--g-ink); border-radius: 22px 22px 0 0; box-shadow: 0 0 0 1px var(--g-line), 0 -12px 40px rgba(30, 26, 103, .18);
  transform: translateY(24px); opacity: 0; transition: transform .22s var(--g-curve), opacity .18s; font-family: var(--font-read, "Inter Tight", sans-serif);
  padding-bottom: env(safe-area-inset-bottom, 0px); outline: none; }
.cpk-sheet.is-open { transform: none; opacity: 1; }
.cpk-sheet.is-pop { position: absolute; right: auto; bottom: auto; width: 360px; max-height: 520px; border-radius: 18px; padding-bottom: 0;
  box-shadow: 0 0 0 1px var(--g-line), 0 18px 44px rgba(30, 26, 103, .2); transform: translateY(-6px); }
.cpk-sheet.is-pop.is-open { transform: none; }
.cpk-top { display: flex; align-items: center; gap: 8px; padding: 16px 12px 8px 20px; }
.cpk-top h2 { flex: 1; margin: 0; font: 500 21px/1.2 var(--font-head); letter-spacing: -.01em; }
.cpk-x { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--g-track); color: var(--g-ink); font: 400 26px/1 sans-serif; cursor: pointer; }
.cpk-body { overflow: auto; padding: 0 12px 16px; overscroll-behavior: contain; }
.cpk-h { margin: 14px 8px 6px; color: var(--g-muted); font: 700 12px/1.2 var(--font-read, sans-serif); letter-spacing: .06em; text-transform: uppercase; }
.cpk-list { display: grid; }
.cpk-row, .cpk-all { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 8px; border-radius: 12px; color: inherit; text-decoration: none; }
.cpk-row:hover, .cpk-all:hover, .cpk-row:focus-visible, .cpk-all:focus-visible { background: var(--g-track); }
.cpk-all { margin-bottom: 4px; padding: 10px 10px; background: var(--g-track); box-shadow: inset 0 0 0 1px var(--g-line); }
.cpk-all b { color: var(--g-accent); }
.cpk-who { flex: 1; min-width: 0; display: grid; }
.cpk-who b { font-weight: 700; font-size: 15px; line-height: 1.25; }
.cpk-who small { color: var(--g-muted); font-size: 13px; }
.cpk-go { color: var(--g-muted); font-size: 22px; line-height: 1; }
.cpk-face { flex: none; width: 38px; height: 38px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #ddd;
  box-shadow: 0 0 0 2px var(--party, #7a3fd1); }
.cpk-face img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.cpk-face i { font: 700 13px var(--font-read, sans-serif); font-style: normal; color: #3b3870; }
.cpk-stack { flex: none; display: flex; padding-left: 10px; }
.cpk-face.is-stack { margin-left: -10px; box-shadow: 0 0 0 2px var(--party), 0 0 0 4px var(--g-track); }
.cpk-search { width: 100%; height: 44px; margin: 0 0 4px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--g-track); color: var(--g-ink);
  box-shadow: inset 0 0 0 1px var(--g-line); font: 400 16px var(--font-read, sans-serif); box-sizing: border-box; }
.cpk-search:focus { outline: 2px solid var(--g-accent); outline-offset: 1px; }
.cpk-none { margin: 6px 8px; color: var(--g-muted); font-size: 14px; }
.cpk-foot { margin: 14px 8px 0; color: var(--g-muted); font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  .cpk-sheet, .cpk-sheet.is-pop { transition: none; transform: none; }
}

:root[data-theme="dark"] .cpk-back { background: rgba(0, 0, 0, .55); }
:root[data-theme="dark"] .cpk-back.is-pop { background: transparent; }
:root[data-theme="dark"] .cpk-sheet { background: #1f1a45; color: #f1effe; box-shadow: 0 0 0 1px #352e6b, 0 -12px 40px rgba(0, 0, 0, .5); }
:root[data-theme="dark"] .cpk-sheet.is-pop { box-shadow: 0 0 0 1px #352e6b, 0 18px 44px rgba(0, 0, 0, .5); }
:root[data-theme="dark"] .cpk-x, :root[data-theme="dark"] .cpk-all, :root[data-theme="dark"] .cpk-search,
:root[data-theme="dark"] .cpk-row:hover, :root[data-theme="dark"] .cpk-row:focus-visible { background: #2a2459; color: #f1effe; }
:root[data-theme="dark"] .cpk-all { box-shadow: inset 0 0 0 1px #352e6b; }
:root[data-theme="dark"] .cpk-all b { color: #c3b2ff; }
:root[data-theme="dark"] .cpk-h, :root[data-theme="dark"] .cpk-who small, :root[data-theme="dark"] .cpk-go, :root[data-theme="dark"] .cpk-foot { color: #a9a4cf; }
:root[data-theme="dark"] .cpk-face.is-stack { box-shadow: 0 0 0 2px var(--party), 0 0 0 4px #2a2459; }
