/* AIcensus compare tool. One motion: cubic-bezier(.2,.7,.2,1), 520ms, transform/opacity only. */
.cx{--e:cubic-bezier(.2,.7,.2,1);--t:520ms;--lw:168px;margin:26px 0 0;position:relative}
.cx .sr,.cx-pk .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.cx-bar{display:none;align-items:center;justify-content:flex-end;gap:12px;min-height:44px;margin:0 0 8px}
.cx button{font:inherit;color:inherit;background:none;border:0;padding:0;margin:0;cursor:pointer;-webkit-tap-highlight-color:transparent}
.cx svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.cx-add{display:none;align-items:center;gap:8px;min-height:44px;padding:0 16px;border-radius:999px;box-shadow:0 0 0 1px var(--line2) inset;font-size:14px;color:var(--fg)}
.cx-add:hover{box-shadow:0 0 0 1px rgba(var(--acc-rgb),.6) inset}
@media (min-width:900px){.cx-bar{display:flex}.cx-add{display:inline-flex}}
.cx-grid{border-radius:18px;box-shadow:0 0 0 1px var(--line) inset;background:rgba(var(--fg-rgb),.025)}
/* heads: sticky under the site header */
.cx-heads{position:sticky;top:var(--cx-top,0px);z-index:6;display:grid;grid-template-columns:repeat(var(--n),minmax(0,1fr));gap:12px;padding:10px;background:var(--bg);border-radius:18px 18px 0 0;box-shadow:0 0 0 1px var(--line) inset,0 1px 0 var(--line)}
.cx-hl{display:none}
.cx-h{position:relative;min-width:0;border-radius:14px;background:var(--surface);box-shadow:0 0 0 1px var(--line) inset}
.cx-hb{display:flex;flex-direction:column;align-items:flex-start;gap:8px;width:100%;min-height:60px;padding:10px;text-align:left;border-radius:14px}
.cx-hb:hover{box-shadow:0 0 0 1px rgba(var(--acc-rgb),.5) inset}
.cx-hb:focus-visible,.cx-x:focus-visible,.cx-sw:focus-visible,.cx-add:focus-visible,.cx-pk-i:focus-visible,.cx-pk-x:focus-visible{outline:2px solid var(--acc);outline-offset:2px}
.cx .logo-i{width:32px;height:32px;border-radius:8px;font-size:12px;font-weight:650}
.cx-hn{display:flex;flex-direction:column;min-width:0}
.cx-hn b{font-size:15px;font-weight:650;letter-spacing:-.015em;line-height:1.2;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere}
.cx-hn span{display:none;color:var(--dim);font-size:12.5px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cx-hn b{max-width:100%}
.cx-x{position:absolute;top:0;right:0;width:44px;height:44px;display:grid;place-items:center;color:var(--dim);border-radius:14px}
.cx-x:hover{color:var(--fg)}
.cx-x svg{width:16px;height:16px}
.cx-empty{background:transparent;box-shadow:0 0 0 1px var(--line2) inset}
.cx-empty .cx-hb{padding-right:10px}
.cx-empty .cx-hn span{display:block;white-space:normal}
.cx-plus{display:grid;place-items:center;width:32px;height:32px;border-radius:8px;background:rgba(var(--acc-rgb),.12);color:var(--acc);flex:none}
.cx-sw{position:absolute;left:calc(50% - 18px);top:calc(50% - 18px);width:36px;height:36px;display:grid;place-items:center;border-radius:999px;background:var(--bg);box-shadow:0 0 0 1px var(--line2) inset;color:var(--mut);z-index:2}
.cx-sw::after{content:"";position:absolute;inset:-4px}
.cx-sw:hover{color:var(--fg);box-shadow:0 0 0 1px rgba(var(--acc-rgb),.6) inset}
.cx-sw svg{width:16px;height:16px}
/* rows: on phones the label sits above its cells */
.cx-row{display:grid;grid-template-columns:repeat(var(--n),minmax(0,1fr));column-gap:8px;padding:12px 14px 14px;border-top:1px solid var(--line)}
.cx-rows>.cx-row:first-child{border-top:0}
.cx-l{grid-column:1/-1;margin:0 0 6px;font-size:11.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--dim);display:flex;align-items:center;gap:7px}
.cx-row.is-diff .cx-l::before{content:"";width:5px;height:5px;border-radius:50%;background:var(--acc);flex:none}
.cx-c{min-width:0;font-size:14.5px;line-height:1.45;color:var(--fg);overflow-wrap:anywhere}
.cx-big{font-size:15.5px;font-weight:600;letter-spacing:-.01em}
.cx-t{color:var(--fg)}
.cx-na{color:var(--dim)}
.cx-yn{font-weight:600}.cx-yn.n{color:var(--mut);font-weight:500}
.cx-chips{display:flex;flex-wrap:wrap;gap:5px}
.cx-chips span{display:inline-block;padding:3px 9px;border-radius:999px;box-shadow:0 0 0 1px var(--line2) inset;font-size:12.5px;color:var(--fg);line-height:1.5}
.cx-ul{margin:0;padding:0;list-style:none}
.cx-ul li{position:relative;padding-left:12px;color:var(--mut);font-size:14px}
.cx-ul li+li{margin-top:3px}
.cx-ul li::before{content:"";position:absolute;left:0;top:.62em;width:4px;height:4px;border-radius:50%;background:var(--dim)}
.cx-pl{margin:0;padding:0;list-style:none}
.cx-pl li{display:flex;flex-wrap:wrap;justify-content:space-between;gap:0 8px;font-size:13.5px;padding:2px 0}
.cx-pl span{color:var(--mut)}
.cx-pl b{font-weight:600}.cx-pl i{font-style:normal;color:var(--dim);font-weight:400}
.cx-links{display:flex;flex-direction:column;gap:2px}
body.pg-prose .cx-links a,.cx-links a{display:inline-flex;align-items:center;gap:6px;min-height:40px;color:var(--fg);text-decoration:none;font-size:14px}
.cx-links a svg{width:15px;height:15px;color:var(--acc)}
.cx-links a:hover{color:var(--acc)}
.cx-same{border-top:1px solid var(--line)}
.cx-same summary{display:flex;align-items:center;gap:8px;min-height:48px;padding:0 14px;cursor:pointer;color:var(--mut);font-size:14px;list-style:none}
.cx-same summary::-webkit-details-marker{display:none}
.cx-same summary::after{content:"";width:7px;height:7px;border-right:1.6px solid currentColor;border-bottom:1.6px solid currentColor;transform:translateY(-2px) rotate(45deg);transition:transform var(--t) var(--e)}
.cx-same[open] summary::after{transform:translateY(2px) rotate(-135deg)}
.cx-same summary:hover{color:var(--fg)}
.cx-same .cx-row:first-of-type{border-top:1px solid var(--line)}
.cx-fine{margin:12px 2px 0;color:var(--dim);font-size:12.5px;line-height:1.5}
.cx-hint{padding:22px 16px 18px}
.cx-hint p{margin:0 0 14px;color:var(--mut);font-size:15px}
.cx-pop{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
body.pg-prose .cx-pop a,.cx-pop a{display:inline-flex;align-items:center;gap:5px;min-height:44px;padding:0 14px;border-radius:999px;box-shadow:0 0 0 1px var(--line2) inset;color:var(--fg);text-decoration:none;font-size:14px}
.cx-pop a i{font-style:normal;color:var(--dim)}
.cx-pop a:hover{box-shadow:0 0 0 1px rgba(var(--acc-rgb),.6) inset}
@media (min-width:720px){
  .cx-heads{grid-template-columns:var(--lw) repeat(var(--n),minmax(0,1fr));padding:12px 14px}
  .cx-hl{display:block}
  .cx-sw{left:calc(14px + var(--lw) + 12px + (100% - 52px - var(--lw)) / 2 + 6px - 18px)}
  .cx-row{grid-template-columns:var(--lw) repeat(var(--n),minmax(0,1fr));column-gap:16px;padding:14px}
  .cx-l{grid-column:auto;margin:2px 0 0;align-items:flex-start;line-height:1.4}
  .cx-row.is-diff .cx-l::before{margin-top:.45em}
  .cx-c{padding-left:8px}
  .cx-hb{flex-direction:row;align-items:center;gap:12px;min-height:64px;padding:10px 44px 10px 12px}
  .cx .logo-i{width:38px;height:38px;border-radius:9px}
  .cx-plus{width:38px;height:38px}
  .cx-hn span{display:block}
}
/* compare pages on wide screens: one column, the tool gets the full width */
@media (min-width:1024px){
  html body:not(.pg-dir) main.wrap:has(>.phero+.prose):has(.cx){display:block}
  html body:not(.pg-dir) main.wrap:has(>.phero+.prose):has(.cx)>.phero{position:static;padding-top:clamp(48px,5vw,88px);max-width:60rem}
  html body:not(.pg-dir) main.wrap:has(>.phero+.prose):has(.cx)>.prose{max-width:1240px;padding-top:0}
  html body:not(.pg-dir) main.wrap:has(>.phero+.prose):has(.cx) .ptitle{font-size:clamp(48px,4.4vw,88px)}
  html body:not(.pg-dir) main.wrap:has(>.phero+.prose):has(.cx)>.prose>.block{max-width:46rem}
  .cx{--lw:200px}
}
/* the column that just changed rises in */
.cx-in{animation:cx-in var(--t) var(--e) both}
.cx-rows .cx-row:nth-child(2) .cx-in{animation-delay:30ms}.cx-rows .cx-row:nth-child(3) .cx-in{animation-delay:60ms}.cx-rows .cx-row:nth-child(4) .cx-in{animation-delay:90ms}.cx-rows .cx-row:nth-child(n+5) .cx-in{animation-delay:120ms}
@keyframes cx-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
/* picker: a bottom sheet on phones, a panel on desktop */
html.cx-lock{overflow:hidden}
.cx-pk{position:fixed;inset:0;z-index:80}
.cx-pk[hidden]{display:none}
.cx-pk-bg{position:absolute;inset:0;background:rgba(0,0,0,.6);opacity:0;transition:opacity var(--t,520ms) cubic-bezier(.2,.7,.2,1)}
.cx-pk-p{position:absolute;left:0;right:0;bottom:0;max-height:min(86vh,86svh);height:min(640px,86svh);display:flex;flex-direction:column;background:var(--surface-solid);border-radius:20px 20px 0 0;box-shadow:0 0 0 1px var(--line2) inset;padding:8px 0 env(safe-area-inset-bottom);transform:translateY(100%);transition:transform 520ms cubic-bezier(.2,.7,.2,1);color:var(--fg);font-family:var(--sans)}
.cx-pk.on .cx-pk-bg{opacity:1}
.cx-pk.on .cx-pk-p{transform:none}
.cx-pk-top{display:flex;align-items:center;justify-content:space-between;padding:6px 8px 4px 18px}
.cx-pk-t{margin:0;font-size:17px;font-weight:650;letter-spacing:-.015em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cx-pk button{font:inherit;color:inherit;background:none;border:0;padding:0;margin:0;cursor:pointer;-webkit-tap-highlight-color:transparent}
.cx-pk svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.cx-pk-x{width:44px;height:44px;display:grid;place-items:center;border-radius:12px;color:var(--mut)}
.cx-pk-x:hover{color:var(--fg)}
.cx-pk-s{display:block;padding:4px 14px 10px}
.cx-pk-s input{width:100%;box-sizing:border-box;height:46px;padding:0 14px;border-radius:12px;border:0;background:var(--bg);box-shadow:0 0 0 1px var(--line2) inset;color:var(--fg);font:inherit;font-size:16px;-webkit-appearance:none;appearance:none}
.cx-pk-s input:focus{outline:none;box-shadow:0 0 0 1.5px var(--acc) inset}
.cx-pk-s input::placeholder{color:var(--dim)}
.cx-pk-l{list-style:none;margin:0;padding:0 8px 12px;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;flex:1 1 auto}
.cx-pk-g{padding:12px 10px 6px;font-size:11.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--dim)}
.cx-pk-i{display:flex;align-items:center;gap:12px;width:100%;min-height:56px;padding:8px 10px;border-radius:12px;text-align:left}
.cx-pk-i .logo-i{width:36px;height:36px;border-radius:9px;font-size:13px;font-weight:650}
.cx-pk-i .cx-hn{display:flex;flex-direction:column;min-width:0}
.cx-pk-i .cx-hn b{font-size:15px;font-weight:600}
.cx-pk-i .cx-hn span{color:var(--dim);font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cx-pk-i:hover,.cx-pk-i[aria-selected="true"]{background:rgba(var(--fg-rgb),.06)}
.cx-pk-none{padding:18px 10px;color:var(--mut)}
@media (min-width:720px){
  .cx-pk-p{left:50%;right:auto;bottom:auto;top:12vh;width:520px;margin-left:-260px;height:min(600px,76vh);border-radius:20px;padding-bottom:0;transform:translateY(16px);opacity:0;transition:transform 520ms cubic-bezier(.2,.7,.2,1),opacity 520ms cubic-bezier(.2,.7,.2,1)}
  .cx-pk.on .cx-pk-p{opacity:1}
}
@media (prefers-reduced-motion:reduce){.cx-in{animation:none}.cx-pk-bg,.cx-pk-p{transition:none}.cx-same summary::after{transition:none}}
/* the written verdict for a pair, under the tool */
[data-cx-ed][hidden]{display:none}
