/* Noble project pages (15 Nov 2026): /noble-callista-mohali, /noble-aurellia-mohali,
   /noble-willasa-mohali, /noble-magnollia-mohali (article.nb-page) and the hub
   /noble-ventures-mohali (article.nb-hub, headings only). Linked only from those five pages.
   Everything else comes from style.css and the Joy Grand page styles copied into each page. */

/* ── sub-nav (same look as the Highland Mayfields cluster nav) ── */
.nb-page .hnav{
  background:var(--night);border-bottom:1px solid var(--rule-dk);
  position:sticky;top:var(--nav-real-h, var(--nav-h));z-index:40;
  overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;
  overscroll-behavior-x:contain;scrollbar-width:none;max-width:100%;
}
.nb-page .hnav::-webkit-scrollbar{display:none}
.nb-page .hnav-in{display:flex;align-items:center;gap:0;width:max-content;min-width:100%}
.nb-page .hnav a{
  flex:none;padding:1rem 1.1rem;font-size:.66rem;font-weight:600;
  letter-spacing:.16em;text-transform:uppercase;white-space:nowrap;
  color:rgba(248,244,236,.6);border-bottom:2px solid transparent;
  transition:color .3s var(--e),border-color .3s var(--e);
}
.nb-page .hnav a:first-child{padding-left:0}
.nb-page .hnav a:hover{color:var(--ivory)}
.nb-page .hnav a.on{color:var(--brass);border-bottom-color:var(--brass)}
@media(max-width:900px){.nb-page .hnav{position:static}}
@media(max-width:640px){.nb-page .hnav a{padding:.85rem .8rem;font-size:.6rem}}
/* anchors land below the sticky header + sub-nav */
.nb-page [id]{scroll-margin-top:calc(var(--nav-real-h, var(--nav-h)) + 3.5rem)}

/* ── hero: render as the background, Joy Grand overlay keeps the text readable ── */
.nb-page .h-hero .h-poster{filter:brightness(.78) saturate(.95)}
.nb-page .h-hero .h-render-tag{color:rgba(248,244,236,.55)}

/* ── buttons on dark .section blocks (style.css turns .section outlines dark) ── */
.nb-page .bg-warm-dark .btn-outline{color:var(--ivory);border-color:rgba(248,244,236,.35)}
.nb-page .bg-warm-dark .btn-outline:hover{background:var(--ivory);color:var(--void);border-color:var(--ivory)}

/* ── gallery + floor plans ── */
.nb-page .h-gal.nb-gal,
.nb-page .h-gal.nb-plangal{grid-template-columns:repeat(3,1fr);gap:clamp(.75rem,1.4vw,1.1rem)}
.nb-page .nb-gal figure,
.nb-page .nb-plangal figure{position:static;margin:0;overflow:visible;background:none;aspect-ratio:auto;cursor:zoom-in}
.nb-page .nb-gal img,
.nb-page .nb-plangal img{display:block;width:100%;aspect-ratio:4/3;border-radius:6px;transition:transform 1.2s var(--e)}
.nb-page .nb-gal img{object-fit:cover;background:var(--char)}
.nb-page .nb-plangal img{object-fit:contain;background:#f8f4ec;padding:.5rem;border:1px solid var(--rule)}
.nb-page .nb-gal figure:hover img{transform:scale(1.02)}
.nb-page .nb-plangal figure:hover img{transform:none}
.nb-page .nb-gal figcaption,
.nb-page .nb-plangal figcaption{
  position:static;opacity:1;background:none;padding:.55rem .1rem 0;
  font-size:.74rem;font-weight:400;letter-spacing:.01em;text-transform:none;line-height:1.45;
  color:var(--ink4);
}
.nb-page .bg-warm-dark .nb-gal figcaption,
.nb-page .bg-warm-dark .nb-plangal figcaption{color:rgba(248,244,236,.5)}
.nb-page .bg-warm-dark .nb-plangal img{border-color:var(--rule-dk)}

/* area table (Aurellia): the h-compare table, all columns readable */
.nb-page .nb-sizes-wrap{margin-top:clamp(1.75rem,3vw,2.5rem)}
.nb-page .h-sizes td:first-child{width:auto}
.nb-page .h-sizes td{font-variant-numeric:tabular-nums}
.nb-page .bg-warm-dark .h-compare th,.nb-page .bg-warm-dark .h-compare td{border-bottom-color:var(--rule-dk)}
.nb-page .bg-warm-dark .h-compare thead th{color:rgba(248,244,236,.5);border-bottom-color:rgba(248,244,236,.5)}
.nb-page .bg-warm-dark .h-compare td:first-child,.nb-page .bg-warm-dark .h-compare td:nth-child(3){color:rgba(248,244,236,.6)}
.nb-page .bg-warm-dark .h-compare td:nth-child(2),.nb-page .bg-warm-dark .h-compare td{color:var(--ivory)}

/* ── videos ── */
.nb-page .h-vid{display:grid;grid-template-columns:repeat(2,1fr);gap:clamp(1rem,2vw,1.5rem)}
.nb-page .h-vid figure{margin:0}
.nb-page .h-vid video{display:block;width:100%;aspect-ratio:16/9;background:#000;border-radius:6px}
.nb-page .h-vid figcaption{padding:.55rem .1rem 0;font-size:.74rem;line-height:1.45;color:var(--ink4)}
.nb-page .bg-warm-dark .h-vid figcaption{color:rgba(248,244,236,.5)}

/* ── amenities / location ── */
.nb-page .h-pillars.nb-pillars-4{grid-template-columns:repeat(4,1fr)}
.nb-page .nb-subhead{font-family:Manrope,sans-serif;font-size:.6rem;font-weight:600;letter-spacing:.2em;text-transform:uppercase;color:var(--ink4);margin:2.5rem 0 1rem;padding-top:1.5rem;border-top:1px solid var(--rule)}
.nb-page .nb-ticks{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,1fr);gap:.65rem 2.25rem}
.nb-page .nb-ticks li{position:relative;padding-left:1.6rem;font-size:.9rem;line-height:1.6;color:var(--ink3)}
.nb-page .nb-ticks li::before{content:"";position:absolute;left:0;top:.5em;width:.7rem;height:.38rem;border-left:2px solid var(--brass);border-bottom:2px solid var(--brass);transform:rotate(-45deg)}

/* ── developer: links on the dark band ── */
.nb-page .bg-warm-dark .nb-links a{color:var(--brass-lt);text-decoration:underline;text-underline-offset:3px}
.nb-page .nb-also{font-size:.95rem;line-height:1.7;font-weight:300;color:rgba(248,244,236,.6)}

@media(max-width:900px){
  .nb-page .h-gal.nb-gal,.nb-page .h-gal.nb-plangal{grid-template-columns:repeat(2,1fr)}
  .nb-page .h-pillars.nb-pillars-4{grid-template-columns:1fr 1fr}
}
@media(max-width:560px){
  .nb-page .h-gal.nb-gal,.nb-page .h-gal.nb-plangal{grid-template-columns:1fr}
  .nb-page .h-vid{grid-template-columns:1fr}
  .nb-page .h-pillars.nb-pillars-4{grid-template-columns:1fr}
  .nb-page .nb-ticks{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){.nb-page .nb-gal img{transition:none}}

/* ════ layout pass, 15 Nov 2026: no unplanned empty space ════ */

/* headings: no one-word last line */
.nb-page h1,.nb-page h2,.nb-page h3,
.nb-hub h1,.nb-hub h2,.nb-hub h3{text-wrap:balance}

/* #overview: the right column runs to the bottom of the facts panel; the render fills what is left */
.nb-page .h-glance-grid{align-items:stretch}
.nb-page .h-glance-card{align-self:start}
.nb-page .h-glance-copy{display:flex;flex-direction:column}
.nb-page .nb-glance-fig{flex:1 1 0;min-height:180px;margin:1.6rem 0 0;position:relative;overflow:hidden;border-radius:6px;background:var(--char)}
.nb-page .nb-glance-fig img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.nb-page .nb-glance-fig figcaption{
  position:absolute;right:.85rem;bottom:.75rem;
  font-size:.58rem;font-weight:600;letter-spacing:.16em;text-transform:uppercase;
  color:rgba(248,244,236,.75);text-shadow:0 1px 10px rgba(10,9,8,.7);
}
@media(max-width:900px){.nb-page .nb-glance-fig{display:none}}

/* grids: a lone item in the last row moves to the front and spans.
   --g is the gallery gap; spanned items use the grid's width (cqw) so they match their row. */
.nb-page .h-gal.nb-gal,
.nb-page .h-gal.nb-plangal{--g:clamp(.75rem,1.4vw,1.1rem);gap:var(--g);container-type:inline-size}
.nb-page .nb-plangal img{aspect-ratio:4/5}                       /* plan tiles: taller, plan contained on light ground */
@media(min-width:901px){                                         /* 3 columns; off where the grids drop to 2 and 1 */
  .nb-page .h-gal.nb-gal > figure:first-child:nth-last-child(3n+1),
  .nb-page .h-gal.nb-plangal > figure:first-child:nth-last-child(3n+1){grid-column:1 / -1}   /* 4, 7, 13 items */
  .nb-page .h-gal.nb-gal > figure:first-child:nth-last-child(3n+2),
  .nb-page .h-gal.nb-plangal > figure:first-child:nth-last-child(3n+2){grid-column:span 2}   /* 5, 8 items */
  .nb-page .nb-gal > figure:first-child:nth-last-child(3n+1) img{aspect-ratio:21/9;object-fit:cover}
  .nb-page .nb-gal > figure:first-child:nth-last-child(3n+2) img{aspect-ratio:auto;height:calc((100cqw - 2 * var(--g)) / 3 * .75);object-fit:cover}
  .nb-page .nb-plangal > figure:first-child:nth-last-child(3n+1) img{aspect-ratio:21/9;max-height:560px;object-fit:contain}
  .nb-page .nb-plangal > figure:first-child:nth-last-child(3n+2) img{aspect-ratio:auto;height:calc((100cqw - 2 * var(--g)) / 3 * 1.25);max-height:560px;object-fit:contain}
}
@media(min-width:561px){                                         /* video grid is 2 columns down to 561px */
  .nb-page .h-vid > figure:first-child:nth-last-child(2n+1){grid-column:1 / -1;justify-self:center;width:100%;max-width:960px}
}

/* stacked sections on the same background: short top padding and a hairline instead of a second full band */
.nb-page section.section:not([class*="bg-"]) + section.section:not([class*="bg-"]),
.nb-page section.bg-warm-dark + section.bg-warm-dark,
.nb-page section.bg-ivory + section.bg-ivory{padding-top:0}
.nb-page section.section:not([class*="bg-"]) + section.section:not([class*="bg-"]) > .container::before,
.nb-page section.bg-warm-dark + section.bg-warm-dark > .container::before,
.nb-page section.bg-ivory + section.bg-ivory > .container::before{content:"";display:block;height:1px;background:var(--rule);margin-bottom:32px}
.nb-page section.bg-warm-dark + section.bg-warm-dark > .container::before{background:var(--rule-dk)}

/* #site-record: slim band, text left, button right */
.nb-page #site-record{padding:40px 0}
.nb-page #site-record .sec-head{margin-bottom:.6rem}
.nb-page #site-record h2{font-size:clamp(1.7rem,2.6vw,2.3rem)}
.nb-page #site-record .h-lead{margin:0}
@media(min-width:901px){
  .nb-page #site-record > .container{display:grid;grid-template-columns:1fr auto;column-gap:clamp(2rem,4vw,3.5rem);align-items:center}
  .nb-page #site-record > .container > *{grid-column:1}
  .nb-page #site-record > .container > .flex{grid-column:2;grid-row:1 / span 2;margin-top:0 !important}
}

/* #developer: paragraph left, the other Noble pages as cards right */
.nb-page .nb-dev{display:grid;grid-template-columns:1fr 1fr;gap:clamp(2rem,4vw,3.5rem);align-items:center}
.nb-page .nb-dev .h-lead{margin:0}
.nb-page .nb-devcards{display:grid;gap:.75rem}
.nb-page .nb-devcards-lbl{font-size:.6rem;font-weight:600;letter-spacing:.2em;text-transform:uppercase;color:rgba(248,244,236,.45)}
.nb-page .nb-devcard{display:grid;grid-template-columns:8rem 1fr;gap:1rem;align-items:center;padding-top:.75rem;border-top:1px solid var(--rule-dk);color:inherit;text-decoration:none}
.nb-page .nb-devcard figure{margin:0;aspect-ratio:16/9;overflow:hidden;background:var(--char);border:1px solid var(--rule-dk)}
.nb-page .nb-devcard img{width:100%;height:100%;object-fit:cover;transition:transform 1.3s var(--e)}
.nb-page .nb-devcard:hover img{transform:scale(1.05)}
.nb-page .nb-devcard h4{font-family:Manrope,sans-serif;font-size:.95rem;font-weight:600;color:var(--ivory);margin-bottom:.2rem;transition:color .3s var(--e)}
.nb-page .nb-devcard:hover h4{color:var(--brass-lt)}
.nb-page .nb-devcard p{font-size:.86rem;line-height:1.5;color:rgba(248,244,236,.55);margin:0}
@media(max-width:900px){.nb-page .nb-dev{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.nb-page .nb-devcard img{transition:none}}
