/* The data pages: the new developments by area (src/datapages.js fills /new-developments-page/, the shell in
   site/pages/new-developments.html). Made of the site's own pieces: the page head (.ph), the section heads (.sec-head),
   the listings' cards (.card in a .feed-grid), the closing box of Properties (.notlisted), the site's pills and chips. Only the
   index's rows are new, drawn as a development page's rows of homes (.dv-homes in development.css). */

/* the summary under the title (a long one, as on Properties), and the date of its data under it */
.nd-sum{display:grid;gap:18px;margin-top:clamp(26px,3vw,44px)}
.nd-sum .ph-intro{max-width:52ch}
.nd-at{margin:0}
.nd-at:empty{display:none}

/* an area's page: its developments as cards, then its guide and its properties for sale */
.nd-cards{padding-bottom:clamp(20px,3vw,40px)}
.nd-more{padding-bottom:clamp(70px,8vw,120px)}

/* the index: the price report's link, on a phone a link to each area's part (the site's chips), then each area's head
   and a row per development */
.nd-index{padding-bottom:clamp(70px,8vw,120px)}
.nd-report{display:flex;flex-wrap:wrap;gap:12px 20px;align-items:center;margin:0 0 clamp(44px,5vw,72px)}
.nd-report p{margin:0;color:var(--brown)}
.nd-jump{display:none}
.nd-area{scroll-margin-top:100px}
.nd-area+.nd-area{margin-top:clamp(64px,7vw,110px)}
.nd-area .sec-head{margin-bottom:clamp(18px,2vw,28px)}
.nd-rows{margin:0;padding:0;list-style:none;border-top:1px solid var(--greige)}
.nd-rows a{display:grid;grid-template-columns:1.25fr .9fr 1fr .85fr;gap:6px 14px;align-items:baseline;padding:18px 4px;border-bottom:1px solid var(--greige);font-size:16px;color:var(--brown);transition:background .3s}
.nd-rows a:hover{background:var(--mist)}
.nd-n{font:500 21px/1.2 var(--f-sans);letter-spacing:-.02em;color:var(--ink)}
.nd-pr{text-align:right;font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums}

@media (max-width:760px){
  .nd-jump{display:flex;gap:8px;margin:0 0 48px}
  .nd-jump .chip{min-height:40px;padding:0 15px;font-size:14px;color:var(--ink)}
  .nd-rows a{grid-template-columns:minmax(0,1fr) auto;gap:2px 14px;padding:14px 2px}
  .nd-n{font-size:19px}
  .nd-p,.nd-w{grid-column:1;font-size:14px;line-height:1.4}
  .nd-p{grid-row:2}
  .nd-w:empty{display:none}
  .nd-pr{grid-column:2;grid-row:1}
  .nd-more .notlisted-go .pill{width:100%;justify-content:space-between}
}

/* the price report (src/prices.js), in the same shell: a table by area, one bar chart, the completions by year, how we
   count, every month, the areas. Numbers in ink and in tabular figures; the bars in wine, the one accent (no green) */
.pr{padding-bottom:clamp(52px,6vw,96px)}
.pr-end{padding-bottom:clamp(70px,8vw,120px)}
.pr .sec-head{margin-bottom:clamp(18px,2vw,28px)}
.pr-tbl{overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
.pr-tbl:focus-visible{outline:2px solid var(--wine);outline-offset:4px}
.pr-tbl table{width:100%;min-width:760px;border-collapse:separate;border-spacing:0;border-top:1px solid var(--greige);font-size:15.5px;line-height:1.4;color:var(--brown);font-variant-numeric:tabular-nums}
.pr-due table{min-width:0}
.pr-tbl th,.pr-tbl td{padding:12px 10px;border-bottom:1px solid var(--greige);text-align:right;white-space:nowrap}
.pr-tbl thead th{font:600 11px/1.35 var(--f-sans);letter-spacing:.14em;text-transform:uppercase;color:var(--brown);white-space:normal;vertical-align:bottom}
.pr-tbl th[scope=row],.pr-tbl thead th:first-child{position:sticky;left:0;z-index:1;text-align:left;padding-left:0;background:var(--cream)}
.pr-tbl th[scope=row]{font-weight:500;color:var(--ink)}
.pr-tbl th[scope=row] a,.pr-note a,.pr-months a,.pr-areas a{color:var(--ink);text-decoration:underline;text-underline-offset:3px}
.pr-tbl .pr-all th,.pr-tbl .pr-all td{font-weight:600;color:var(--ink)}
.pr-chart{margin:0;max-width:880px}
.pr-chart svg{display:block;overflow:visible}
.pr-chart text{font:500 15px/1 var(--f-sans);fill:var(--ink)}
.pr-chart .pr-val{font-weight:600;font-variant-numeric:tabular-nums}
.pr-chart .pr-n{font-weight:400;fill:var(--brown)}
.pr-chart rect{fill:var(--wine);transition:fill .2s}
.pr-bar:hover rect{fill:var(--ink)}
.pr-chart figcaption{margin-top:16px}
.pr-how{margin:0;padding:0 0 0 1.1em;max-width:72ch;display:grid;gap:12px;font-size:clamp(16px,1.2vw,18px);line-height:1.6;color:var(--brown)}
.pr-quote{margin:32px 0 0;max-width:30ch;font:400 clamp(26px,2.6vw,38px)/1.2 var(--f-serif);font-style:italic;color:var(--wine)}
.pr-note{margin:16px 0 0;max-width:72ch;color:var(--brown)}
.pr-months,.pr-areas{margin:0;padding:0;list-style:none;display:grid;gap:0 32px;grid-template-columns:repeat(auto-fill,minmax(280px,1fr))}
.pr-months li,.pr-areas li{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:baseline;padding:13px 0;border-bottom:1px solid var(--greige);color:var(--brown)}
@media (max-width:760px){
  .pr-tbl th,.pr-tbl td{padding:11px 8px;font-size:14.5px}
  .pr-chart text{font-size:14px}
}
