/* compare.html: one tall card per project (desktop) or one section per attribute (phone). Class names start with cp- or cx- so no other page is touched.
   All text is cocoa; only "TBA" and the dash are pale. The green wash (#DCE8CB) marks a text value that differs; a filled pill marks a pill that differs. */
.cp-back{margin-bottom:14px}
.cp-back a{display:inline-flex;align-items:center;gap:8px;font:500 16px var(--f-body);color:var(--cocoa);text-decoration:none}
.cp-back a:hover{text-decoration:underline;text-underline-offset:3px}
.cp-back svg{width:16px;height:16px;flex:none}
.cp-sub{margin-top:10px;font-size:18px;color:var(--cocoa)}
.cp-sec{padding-top:8px;padding-bottom:64px}
.cp-empty{padding:28px 0;font-size:18px;color:var(--cocoa)}
.cp-empty a{color:var(--cocoa);font-weight:600}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

.cx{--hh:69px;color:var(--cocoa)}
.cx-m{display:none}
.cx-ctl{display:flex;justify-content:flex-end;margin:6px 0 18px}
.cx-sw{display:inline-flex;align-items:center;gap:10px;padding:6px 0;border:0;background:none;font:500 15px var(--f-body);color:var(--cocoa);cursor:pointer}
.cx-tg{width:34px;height:20px;border-radius:20px;border:1px solid var(--cocoa);position:relative;display:inline-block;flex:none}
.cx-tg:after{content:"";position:absolute;left:2px;top:2px;width:14px;height:14px;border-radius:50%;background:var(--cocoa);transition:left .15s}
.cx-sw.on .cx-tg{background:var(--cocoa)}.cx-sw.on .cx-tg:after{left:16px;background:var(--pistachio)}
.cx-sw:focus-visible{outline:2px solid var(--cocoa);outline-offset:3px}

/* desktop board: equal columns, rows line up through subgrid */
.cx-board{display:grid;grid-template-columns:repeat(var(--n),minmax(0,1fr));gap:0 18px;align-items:stretch}
.cx-col{display:grid;grid-template-rows:subgrid;grid-row:span 12;background:var(--cream);border:1px solid var(--line);border-radius:12px}
.cx-ph{padding:14px 14px 0}.cx-ph img{width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;border-radius:6px;display:block}
.cx-nm{position:sticky;top:var(--hh);z-index:5;background:var(--cream);padding:14px 18px;border-bottom:1px solid var(--line);border-radius:12px 12px 0 0}
.cx-nm h3,.cx-pc h3{font:500 24px/1.1 var(--f-display);color:var(--cocoa);margin:0}
.cx-nm h3 a,.cx-pc h3 a{color:inherit;text-decoration:none}.cx-nm h3 a:hover,.cx-pc h3 a:hover{text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.cx-com{margin:3px 0 10px;font-size:13px;color:var(--cocoa)}
.cx-dev{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:600;color:var(--cocoa)}
.cx-lg{width:38px;height:38px;border-radius:50%;background:#fff;border:1px solid var(--line);display:inline-flex;align-items:center;justify-content:center;overflow:hidden;flex:none}
.cx-lg:empty{display:none}.cx-lg img{max-width:72%;max-height:60%;object-fit:contain}
.cx-rm{display:inline-block;margin-top:10px;padding:0;border:0;background:none;font:500 13px var(--f-body);color:var(--cocoa);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.cx-kc{padding:16px 18px 18px;border-top:1px dashed var(--line);min-width:0}
.cx-nm+.cx-kc{border-top:0}
.cx-kc[hidden]{display:none}
.cx-kc label{display:block;font:600 11px var(--f-body);letter-spacing:.12em;text-transform:uppercase;color:var(--cocoa);margin-bottom:10px}

/* the values */
.cx-big{display:block;font:500 28px/1.1 var(--f-display);color:var(--cocoa)}
.cx-big small{font:500 12px var(--f-body);margin-left:4px}
.cx-tx{display:block;font:500 21px/1.2 var(--f-display);color:var(--cocoa)}
.cx-tx.diff{display:inline;background:#DCE8CB;padding:2px 7px;margin-left:-7px;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.cx-mut{display:block;font:500 21px/1.2 var(--f-display);color:#9A8F7E}
.cx-pill{display:inline-block;font:600 14px var(--f-body);padding:6px 15px;border-radius:20px;border:1px solid var(--cocoa);color:var(--cocoa)}
.cx-pill.fill{background:var(--cocoa);color:var(--cream)}
.cx-qs{display:flex;gap:4px;margin-top:12px}
.cx-qs b{flex:1;height:30px;display:flex;align-items:center;justify-content:center;font:600 12px var(--f-body);color:var(--cocoa);background:#fff;border:1px solid var(--cocoa);border-radius:2px}
.cx-qs b.on{background:var(--cocoa);color:var(--cream)}
.cx-pb{display:flex;gap:3px;height:30px;margin-top:12px}
.cx-pb b{display:flex;align-items:center;justify-content:center;min-width:38px;font:600 12.5px var(--f-body);border-radius:2px}
.cx-pb .s0{background:var(--cocoa);color:var(--cream)}.cx-pb .s1{background:#6F7F4F;color:#fff}.cx-pb .s2{background:#B7C99C;color:var(--cocoa)}
.cx-bar{display:block;height:8px;background:var(--tint);margin-top:12px;border-radius:1px}.cx-bar b{display:block;height:100%;background:var(--cocoa)}
.cx-bd{display:flex;gap:3px;margin-top:12px}
.cx-bd b{flex:1;height:30px;display:flex;align-items:center;justify-content:center;font:600 12px var(--f-body);color:var(--cocoa);background:#fff;border:1px solid var(--line);border-radius:2px}
.cx-bd b.on{background:var(--cocoa);color:var(--cream);border-color:var(--cocoa)}

/* phone and small tablet */
@media(max-width:899px){
  .cx-d{display:none}.cx-m{display:block}
  .cx-cards{display:grid;grid-template-columns:1fr 1fr;gap:22px 14px;margin-bottom:6px}
  .cx-pc{min-width:0}
  .cx-pc .cx-ph{padding:0;margin-bottom:12px}.cx-pc .cx-ph img{aspect-ratio:4/3;border-radius:4px}
  .cx-pc h3{font-size:19px}.cx-pc .cx-com{font-size:12px;margin:4px 0 10px}.cx-pc .cx-dev{font-size:12px;gap:8px}.cx-pc .cx-lg{width:30px;height:30px}
  .cx-m .cx-ctl{margin:18px 0 0}
  .cx-blk{padding:26px 0 0}
  .cx-blk[hidden]{display:none}
  .cx-blk h2{font:500 24px var(--f-display);color:var(--cocoa);margin:0 0 12px}
  .cx-g2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
  .cx-m .cx-kc{background:var(--cream);border:1px solid var(--line);border-radius:10px;padding:12px 12px 14px}
  .cx-m .cx-kc label{font-size:10px;letter-spacing:.06em;margin-bottom:8px}
  .cx-m .cx-tx,.cx-m .cx-mut{font-size:17px}
  .cx-m .cx-big{font-size:23px}.cx-m .cx-big small{display:block;margin:2px 0 0}
  .cx-m .cx-pill{font-size:13px;padding:5px 12px}
  .cx-m .cx-qs{gap:2px}.cx-m .cx-qs b{height:22px;font-size:9.5px}
  .cx-m .cx-bd{gap:2px}.cx-m .cx-bd b{height:22px;font-size:9.5px}
  .cx-m .cx-pb{gap:2px;height:24px}.cx-m .cx-pb b{min-width:26px;font-size:10px}
}

/* structure: one building per line, label above the code (no slashes) */
.cx-st{display:block}
.cx-st.diff{background:#DCE8CB;padding:6px 8px;margin:-6px -8px}
.cx-cap{display:block;font:600 13px var(--f-body);margin-bottom:8px;color:var(--cocoa)}
.cx-sg{display:block;padding:7px 0;border-top:1px dashed var(--line)}.cx-sg:first-child{border-top:0;padding-top:0}
.cx-sl{display:block;font:500 13px var(--f-body);margin-bottom:2px;color:var(--cocoa)}
.cx-sv{display:block;font:500 21px/1.2 var(--f-display);color:var(--cocoa)}
.cx-chips{display:flex;flex-wrap:wrap;gap:6px}.cx-chips b{font:500 17px/1.2 var(--f-display);color:var(--cocoa);border:1px solid var(--cocoa);border-radius:3px;padding:3px 9px;background:#fff}
@media(max-width:899px){.cx-m .cx-sv{font-size:17px}.cx-m .cx-cap,.cx-m .cx-sl{font-size:12px}.cx-m .cx-chips b{font-size:14px;padding:2px 7px}.cx-m .cx-st.diff{margin:-6px -6px;padding:6px}}
@media(prefers-reduced-motion:reduce){.cx-tg:after{transition:none}}
