/* All projects page: new card, filters, groups. Class names start with pc- / pj- so no other page is touched. */

.pc-sub{margin-top:10px;font-size:18px;color:var(--soft)}

/* filters */
.pc-lab{font:600 14px var(--f-body);color:var(--soft);margin-right:10px}
.pc-beds{display:flex;align-items:center;flex-wrap:wrap}
.pc-beds[hidden]{display:none}
.pc-seg{display:inline-flex;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#fff}
.pc-seg button{padding:9px 16px;border:0;border-left:1px solid var(--line);background:#fff;font:500 15px var(--f-body);color:var(--cocoa);cursor:pointer}
.pc-seg button:first-child{border-left:0}
.pc-seg button[aria-pressed="true"]{background:var(--cocoa);color:var(--cream)}
.pc-seg button:focus-visible{outline-offset:-3px}

/* groups */
.pc-groups{display:flex;flex-direction:column;gap:60px}
.pc-group[hidden]{display:none}
.pc-head{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 14px;padding-bottom:10px;border-bottom:1px solid var(--line);margin-bottom:30px}
.pc-head h2{font-size:clamp(26px,3vw,32px)}
.pc-count{font:500 15px var(--f-body);color:var(--soft)}
.pc-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:48px 30px}

/* card: no box, no border, no shadow; only the image has a radius.
   The parts of every card in a row (image, name, types, facts) sit on shared grid rows (subgrid), so names, types and the facts line up across the row with no fixed heights. */
.pc{display:grid;grid-row:span 4;grid-template-rows:subgrid;row-gap:0;padding-bottom:48px;color:inherit;text-decoration:none;background:none;border:0;box-shadow:none}
.pc[hidden]{display:none}
.pc-grid{row-gap:0;margin-bottom:-48px}
.pc-ph{aspect-ratio:4/3;border-radius:10px;overflow:hidden;background:var(--pistachio)}
.pc-ph img{width:100%;height:100%;object-fit:cover}
.pc-name{font:600 25px/1.2 var(--f-display);color:var(--cocoa);margin-top:16px;text-wrap:balance}
.pc-types{font:400 16px/1.45 var(--f-body);color:var(--ink);margin:8px 0 18px}
.pc-facts{border-top:1px solid var(--line);padding-top:16px;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr);gap:16px;align-self:start}
.pc-facts dt{font:500 14px/1.3 var(--f-body);color:var(--soft)}
.pc-facts dd{margin:4px 0 0;min-height:30px;font:600 26px/1.15 var(--f-display);color:var(--cocoa);font-variant-numeric:tabular-nums lining-nums}
/* text values (Handed over, TBA, 70/30 or 50/50) are set a little smaller so they stay on one line */
.pc-facts dd.is-text{font-size:20px;line-height:1.3;display:flex;align-items:center}
a.pc:hover .pc-name{text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px}
a.pc:focus-visible{outline-offset:8px;border-radius:12px}
/* browsers without subgrid: the card stacks and the facts sit at the bottom */
@supports not (grid-template-rows:subgrid){
  .pc{display:flex;flex-direction:column;grid-row:auto}
  .pc-grid{margin-bottom:0;row-gap:48px}.pc{padding-bottom:0}
  .pc-facts{margin-top:auto}
}

/* the split bar, shared with the table and the compare page */
.pj-barrow{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;min-height:16px;margin-top:6px}
.pj-bar{display:flex;width:96px;height:6px;border-radius:2px;overflow:hidden;flex:none}
.pj-bar span{display:block;min-width:2px}
.pj-bar span:nth-child(3n+1){background:var(--cocoa)}
.pj-bar span:nth-child(3n+2){background:var(--accent)}
.pj-bar span:nth-child(3n+3){background:var(--pistachio)}
.pj-post{font:500 13px/1 var(--f-body);color:var(--soft);white-space:nowrap}

@media(max-width:960px){.pc-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.pc-sub{font-size:15.5px}}
@media(max-width:620px){
  .pc-grid{grid-template-columns:1fr;gap:40px}
  .pc-groups{gap:48px}
  .pc-name{font-size:23px}
  .pc-facts dd{font-size:24px}
  .pc-seg button{min-height:44px}
}

/* fallback list for visitors without JavaScript */
.pc-ns{list-style:none;padding:0;columns:2;gap:30px}
.pc-ns li{padding:4px 0}
