/* The new page types (scripts/site/new-pages.mjs): only what the place pages don't already have. Served as
   /site/site-new.css after site.css and site-area.css. Tokens only, from site.css. */
/* No tools column (Kamil, 9 Nov 2026): the sections run the page's full width, --pf-sec-gap apart */
.pf-body.np-full{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:none;row-gap:var(--pf-sec-gap)}
.pf-body.np-full > .pf-sec{grid-column:1;grid-row:auto}
.pf-body.np-full .pf-sec__head{max-width:760px}
/* A hero without a map card: the tiles take the width */
.np-nomap{grid-template-columns:minmax(0,1fr)!important}
.np-nomap .pf-tiles{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.pf-hero__aka .np-line + .np-line{margin-left:var(--s-2)}
.pf-links h3 .np-line{font:var(--t-badge)}
.pf-links h3 .np-count{margin-left:auto;font-weight:var(--fw-regular)}
.np-none{color:var(--ink-3);font-weight:var(--fw-regular)}
.ar-vh{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
/* Pick any two (the tool pages' fields, tools.css) */
.np-pick{display:grid;gap:var(--s-3);margin-bottom:var(--w-8)}
.np-pick__row{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto;gap:var(--s-3);align-items:end}
.np-swap{height:var(--field-h);width:var(--field-h);padding:0;justify-content:center}
.np-swap .ic{transform:rotate(90deg)}
@media (max-width:760px){.np-pick__row{grid-template-columns:minmax(0,1fr)}.np-swap{justify-self:center}.np-swap .ic{transform:none}}
.np-cmp-out{display:grid;gap:var(--w-4);margin-bottom:var(--w-8)}

/* Show all N, under a long table (the place pages' pp-btn) */
.np-more{margin-top:var(--s-3)}

/* Compare: why Compare can't go yet (site audit A-65) */
.np-pick__msg{margin:0;font:var(--t-body);color:var(--c-rent-text)}
/* Link cards that are no category (compare pairs, earlier reports): the figure in ink, not a category's colour (A-73) */
.pg .pf-links[data-kind="plain"]{--c:var(--line-2);--ct:var(--strong)}
.pg .pf-links[data-kind="plain"] .pf-link__f:empty{display:none}
/* Hero chips may wrap on a phone (site audit A-63: the compare page scrolled sideways) */
[data-new-page] .pf-chips li{white-space:normal}
/* Every link in a table looks the same: project, building and area names alike (site audit P-40) */
#pg-area[data-new-page] .pp-table td a{color:inherit;text-decoration:underline;text-decoration-color:var(--line-2);text-underline-offset:3px}
#pg-area[data-new-page] .pp-table td a:hover{text-decoration-color:currentColor}
/* Phones: a table keeps its first columns; the rest are on the wider screen (site audit I-46), and each row's cells
   share the width between the columns left (--pcols, from new-pages.mjs) */
@container pg (max-width:700px){
  #pg-area[data-new-page] .pp-table .np-wide{display:none}
  #pg-area[data-new-page] .d-cards tr{grid-template-columns:repeat(var(--pcols,var(--cols)),minmax(0,1fr))}
}
/* No box round a table (Kamil, 11 Nov 2026): a block that holds a table is open, the table's own lines only */
#pg-area[data-new-page] .pf-blk:has(.pp-tbl__scroll){padding:0;border:0;border-radius:0;background:none}
/* A long project name wraps on a phone rather than pushing the table sideways */
#pg-area[data-new-page] .pp-table .d-name{white-space:normal;overflow-wrap:anywhere}
.pp-bar__l a{color:inherit;text-decoration:none}
.pp-bar__l a:hover{text-decoration:underline}
/* Rent in Dubai's ranking bars: every row on the same tracks, so the bars compare; on phones the area above its bar */
[data-rent-group] .pp-bar{grid-template-columns:minmax(0,2fr) minmax(0,3fr) 11ch}
[data-rent-group] .pp-bar__v{text-align:right}
@media (max-width:640px){[data-rent-group] .pp-bar{grid-template-columns:minmax(0,1fr) 11ch;row-gap:var(--s-1)}[data-rent-group] .pp-bar__l{grid-column:1 / -1;white-space:normal}}
/* Neutral tiles, light grey (Kamil, 18 Nov 2026: Rent in Dubai's cards neutral, the bars in the brand blue) */
.pf-tile[data-hue="none"]{background:var(--sunken)}
/* Links to tools and pages on the answer pages (relCards): the tool cards' look, an icon tile in the brand blue, the row
   filling its width (Kamil, 18 Nov 2026) */
/* Every card row on these pages shares out the full width: 3 cards were leaving a fourth column empty (Kamil, 18 Nov 2026) */
[data-new-page] .pf-links ul{grid-template-columns:repeat(auto-fit,minmax(max(200px,calc((100% - 3 * var(--s-3)) / 4)),1fr))}
[data-new-page] .np-rel ul{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
.np-rel__a{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:var(--s-3);height:100%;padding:var(--s-4);border:1px solid var(--line);border-radius:var(--r-card);background:var(--surface);color:var(--ink-3);text-decoration:none;transition:border-color var(--dur-quick) var(--ease-std)}
.np-rel__a:hover{border-color:var(--line-2)}
.np-rel__ic{display:grid;place-items:center;width:var(--s-8);height:var(--s-8);border-radius:var(--r-sm);background:color-mix(in srgb,var(--hl-price) 12%,var(--surface));color:var(--hl-price)}
.np-rel__t{display:grid;gap:var(--s-1);min-width:0}
.np-rel__t b{font:var(--t-sub);color:var(--strong)}
.np-rel__t small{font:var(--t-help);color:var(--ink-3)}
/* Developer and Metro pages (SEO check fixes, 18 Nov 2026): links inside a section's lead (a station's area, where a
   developer builds), and a long Arabic name that wraps on phones */
[data-new-page] .pf-sec__lead a{color:var(--strong);text-decoration:underline;text-decoration-color:var(--line-2)}
[data-new-page] .pf-sec__lead a:hover{text-decoration-color:currentColor}
#pg-area[data-new-page] .pf-hero__aka [lang="ar"]{white-space:normal}
/* A developer's price per sq ft bars: the value column fits "AED 2,618/sq ft" */
[data-rent-group="dev"] .pp-bar{grid-template-columns:minmax(0,2fr) minmax(0,3fr) 16ch}
@media (max-width:640px){[data-rent-group="dev"] .pp-bar{grid-template-columns:minmax(0,1fr) 16ch}}
