/* /newnawacolony/ — New Nawa Colony brochure page.
   L68 (30 Sep 2026): page, form, gated PDF.
   L69 (1 Oct 2026): the brochure viewer on top, the facts below, the form in
   a sheet that opens with #get (CSS :target, so it works without a script).
   Brand tokens: forest #1A3C2A / deep #0F2419, gold #C8A951, cream #F5F0E6,
   earth #6B4F3A, alert red #C6543F. */
.nnc{max-width:1160px;margin:0 auto;padding:12px 16px 30px}
.nnc-crumb{font-size:.8rem;color:var(--th-6b6353-tx,#6B6353);margin:0 0 8px}
.nnc-crumb a{color:var(--th-1a3c2a-tx,#1A3C2A)}
.nnc h1,.nnc h2,.nnc-sheet h2{font-family:'Playfair Display','Noto Sans Devanagari',Georgia,serif;color:var(--th-1a3c2a-tx,#1A3C2A)}

/* Heading row */
.nnc-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 10px}
.nnc-head h1{font-size:1.6rem;line-height:1.15;margin:0}
.nnc-head h1 small{display:block;font:600 .75rem 'DM Sans','Noto Sans Devanagari',system-ui,sans-serif;letter-spacing:.08em;
  text-transform:uppercase;color:var(--th-6b4f3a-tx,#6B4F3A);margin:0 0 4px}

/* Buttons */
.nnc-btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;box-sizing:border-box;margin-top:12px;
  padding:12px 14px;border:0;border-radius:10px;background:var(--th-1a3c2a-bg-btn,#1A3C2A);color:#fff;font:700 .95rem 'DM Sans','Noto Sans Devanagari',system-ui,sans-serif;
  line-height:1.3;text-decoration:none;text-align:center;cursor:pointer;min-height:48px}
.nnc-btn.gold{background:var(--th-c8a951-bg-btn,#C8A951);color:var(--th-0f2419-tx-btn,#0F2419)}
.nnc-btn.wa{background:var(--th-1f7a4a-bg-btn,#1F7A4A);color:#fff}
.nnc-btn.ghost{background:var(--th-ffffff-bg-btn,#fff);color:var(--th-1a3c2a-tx-btn,#1A3C2A);border:1px solid var(--th-e3dccb-bd-btn,#E3DCCB)}
.nnc-btn:focus-visible,.nnc-nav:focus-visible,.nnc-thumbs a:focus-visible,.nnc-track:focus-visible,.nnc-x:focus-visible{
  outline:3px solid var(--th-c8a951-bd-btn,#C8A951);outline-offset:2px}

/* Layout: viewer column + (desktop) side box */
.nnc-grid{display:grid;gap:18px;grid-template-columns:minmax(0,1fr)}
.nnc-grid>*{min-width:0}

/* The viewer: one page per screen, sideways scroll with snap points. The
   page box is sized from the viewport height so a portrait page is whole on
   screen, and from the width attributes before the image has loaded. */
.nnc-viewer{--nnc-ph:max(300px,min(74vh,calc(100vh - 250px)));position:relative;overflow:hidden;background:var(--th-e9e2d0-bg,#E9E2D0);border:1px solid var(--th-e3dccb-bd,#E3DCCB);border-radius:16px;padding:12px}
.nnc-track{position:relative;display:flex;gap:12px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;
  scrollbar-width:none;-webkit-overflow-scrolling:touch;border-radius:8px}
.nnc-track::-webkit-scrollbar{display:none}
.nnc-pg{flex:0 0 100%;margin:0;scroll-snap-align:center;scroll-snap-stop:always;display:flex;justify-content:center;align-items:center;
  min-width:0}
.nnc-pg>a{display:block;max-width:100%}
.nnc-pg img{display:block;width:min(100%,calc(var(--nnc-ph) * .7071));max-width:100%;height:auto;aspect-ratio:700/990;
  border-radius:6px;box-shadow:0 6px 22px var(--th-0f2419a18-sh,rgba(15,36,25,.18));background:var(--th-ffffff-bg,#fff)}
.nnc-pg>a{width:min(100%,calc(var(--nnc-ph) * .7071))}
.nnc-pg>a img{width:100%}

/* A page kept in the PDF */
.nnc-lock{box-sizing:border-box;width:min(100%,calc(var(--nnc-ph) * .7071));aspect-ratio:700/990;display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:8px;padding:22px 18px;text-align:center;background:#FFFDF8;
  border:1.5px dashed var(--th-c8a951-bd,#C8A951);border-radius:8px;color:var(--th-3b463e-tx,#3B463E)}
.nnc-pg.is-land .nnc-lock{width:100%;max-height:var(--nnc-ph);aspect-ratio:990/700}
.nnc-lock-n{font:600 .75rem 'DM Sans',system-ui,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:var(--th-6b4f3a-tx,#6B4F3A)}
.nnc-lock-ic{font-size:2rem;line-height:1}
.nnc-lock b{font-family:'Playfair Display','Noto Sans Devanagari',Georgia,serif;color:var(--th-1a3c2a-tx,#1A3C2A);font-size:1.05rem;line-height:1.35}
.nnc-lock p{margin:0;font-size:.82rem;line-height:1.5;color:var(--th-5d6b61-tx,#5D6B61);max-width:30em}
.nnc-lock .nnc-btn{width:auto;max-width:100%;margin-top:6px;padding:11px 16px}

/* Arrows — shown by the script only */
.nnc-nav{position:absolute;top:50%;transform:translateY(-50%);z-index:2;width:42px;height:42px;padding:0;border-radius:50%;
  background:rgba(255,253,248,.95);border:1px solid var(--th-e3dccb-bd,#E3DCCB);display:grid;place-items:center;font:400 1.5rem/1 'DM Sans',system-ui,sans-serif;
  color:var(--th-1a3c2a-tx,#1A3C2A);box-shadow:0 2px 8px rgba(0,0,0,.14);cursor:pointer}
.nnc-nav[hidden]{display:none}
.nnc-nav:disabled{opacity:.35;cursor:default}
.nnc-nav.l{left:6px}
.nnc-nav.r{right:6px}

.nnc-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 12px;margin-top:10px;font-size:.8rem;color:var(--th-5d6b61-tx,#5D6B61)}
.nnc-bar b{color:var(--th-1a3c2a-tx,#1A3C2A)}
.nnc-bar a{color:var(--th-1a3c2a-tx,#1A3C2A);font-weight:600}
.nnc-bar a[hidden]{display:none}

.nnc-thumbs{position:relative;display:flex;gap:8px;overflow-x:auto;margin-top:10px;padding:2px 2px 6px;scrollbar-width:thin}
.nnc-thumbs a{position:relative;flex:0 0 auto;display:grid;place-items:center;width:46px;height:65px;border-radius:5px;
  border:2px solid transparent;background:var(--th-ffffff-bg,#fff);text-decoration:none;opacity:.72;overflow:hidden}
.nnc-thumbs a[aria-current="true"]{border-color:var(--th-c8a951-bd,#C8A951);opacity:1}
.nnc-thumbs a.is-locked{background:#FFFDF8;border:2px dashed var(--th-d9cba0-bd,#D9CBA0)}
.nnc-thumbs a.is-locked[aria-current="true"]{border:2px solid var(--th-c8a951-bd,#C8A951)}
.nnc-thumbs img{display:block;width:100%;height:100%;object-fit:cover}
.nnc-thumbs span{font-size:1rem}
.nnc-thumbs i{position:absolute;right:2px;bottom:2px;font:700 .75rem/1 'DM Sans',system-ui,sans-serif;font-style:normal;
  background:var(--th-0f2419a78-bg,rgba(15,36,25,.78));color:#fff;border-radius:3px;padding:2px 3px}

/* Side box (desktop) */
.nnc-side{display:none;background:var(--th-ffffff-bg,#fff);border:1px solid var(--th-e3dccb-bd,#E3DCCB);border-radius:14px;padding:16px;box-shadow:0 4px 18px var(--th-0f2419a7-sh,rgba(15,36,25,.07))}
.nnc-side h2{font-size:1.2rem;line-height:1.25;margin:0 0 6px}
.nnc-side h2 span{display:block;font-size:.8em;color:var(--th-6b4f3a-tx,#6B4F3A)}
.nnc-side p{font-size:.82rem;color:var(--th-5d6b61-tx,#5D6B61);margin:0;line-height:1.5}
.nnc-side .nnc-btn.wa{margin-top:8px}
.nnc-side ul{margin:12px 0 0;padding-left:18px;font-size:.8rem;color:var(--th-5d6b61-tx,#5D6B61);line-height:1.5}

/* Information below the brochure */
.nnc-info{margin-top:26px}
.nnc-info h2{font-size:1.35rem;margin:0 0 6px}
.nnc-lead{color:var(--th-3f4a42-tx,#3F4A42);margin:0 0 10px;line-height:1.6}
.nnc-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0}
.nnc-facts div{background:var(--th-ffffff-bg,#fff);border:1px solid var(--th-e3dccb-bd,#E3DCCB);border-radius:10px;padding:9px 11px}
.nnc-facts b{display:block;font:700 1.12rem 'Playfair Display',Georgia,serif;color:var(--th-1a3c2a-tx,#1A3C2A)}
.nnc-facts span{display:block;font-size:.76rem;color:var(--th-5d6b61-tx,#5D6B61);line-height:1.4}
.nnc-src{font-size:.76rem;color:var(--th-6b6353-tx,#6B6353);margin:6px 0 0}
.nnc-note{background:var(--th-fbf6e7-bg-card,#FBF6E7);border-left:3px solid var(--th-c8a951-bd-card,#C8A951);padding:11px 13px;border-radius:6px;font-size:.84rem;color:var(--th-4d4230-tx-card,#4D4230);
  margin:18px 0 0;line-height:1.55}
.nnc-note a{color:var(--th-1a3c2a-tx,#1A3C2A);font-weight:600}
.nnc-actions{display:grid;gap:10px;margin-top:16px}
.nnc-actions .nnc-btn{margin:0}
.nnc-disc{font-size:.76rem;color:var(--th-6b6353-tx,#6B6353);border-top:1px solid var(--th-e3dccb-bd,#E3DCCB);margin:18px 0 0;padding-top:12px;line-height:1.55}

/* Download bar fixed to the bottom on phones and tablets. The page keeps
   room for it, and the call / WhatsApp floats stand above it. */
.nnc-sticky{position:fixed;left:0;right:0;bottom:0;z-index:940;display:flex;gap:10px;align-items:center;
  background:#FFFDF8;border-top:1px solid var(--th-e3dccb-bd,#E3DCCB);padding:10px 16px calc(10px + env(safe-area-inset-bottom,0px));
  box-shadow:0 -6px 18px var(--th-0f2419a8-sh,rgba(15,36,25,.08))}
.nnc-sticky .nnc-btn{flex:1;margin:0;min-width:0}
.nnc-sticky small{font-size:.75rem;color:var(--th-5d6b61-tx,#5D6B61);max-width:110px;line-height:1.3}
/* Anchors (#p4, #get) and focus moves keep clear of the sticky site header
   and of this bar. */
html:has(.nnc-sticky){scroll-padding-top:110px}
@media (max-width:999px){
  html:has(.nnc-sticky){scroll-padding-top:76px;scroll-padding-bottom:calc(96px + env(safe-area-inset-bottom,0px))}
  body:has(.nnc-sticky){padding-bottom:calc(92px + env(safe-area-inset-bottom,0px))}
  body:has(.nnc-sticky) .azs-wa{bottom:calc(96px + env(safe-area-inset-bottom,0px))}
  body:has(.nnc-sticky) .az-transnote{bottom:calc(86px + env(safe-area-inset-bottom,0px))}
}

/* The download sheet: bottom sheet on phones, centred card from 700px.
   Above the site header (1500) and the floats; below the language prompt. */
.nnc-shade{display:none;position:fixed;inset:0;z-index:3000;align-items:flex-end;justify-content:center}
.nnc-shade:target,.nnc-shade.is-on{display:flex}
.nnc-shade.is-off{display:none}
.nnc-shade-bg{position:absolute;inset:0;background:var(--th-0f2419a58-bg,rgba(15,36,25,.58))}
.nnc-sheet{position:relative;box-sizing:border-box;width:100%;max-width:450px;max-height:92vh;overflow-y:auto;
  background:var(--th-ffffff-bg-card,#fff);border-radius:18px 18px 0 0;padding:18px 18px calc(20px + env(safe-area-inset-bottom,0px));
  box-shadow:0 -10px 30px rgba(0,0,0,.22);font-family:'DM Sans','Noto Sans Devanagari',system-ui,sans-serif;color:var(--th-1f2a22-tx-card,#1F2A22)}
.nnc-sheet h2{font-size:1.25rem;line-height:1.3;margin:0 34px 4px 0}
.nnc-x{position:absolute;top:8px;right:8px;width:40px;height:40px;display:grid;place-items:center;border-radius:50%;
  font-size:1.6rem;line-height:1;color:var(--th-5d6b61-tx,#5D6B61);text-decoration:none}
.nnc-x:hover{background:var(--th-f1ead8-bg,#F1EAD8)}
.nnc-form .f{display:block;font-weight:600;font-size:.85rem;margin:12px 0 4px;color:var(--th-1f2a22-tx,#1F2A22)}
.nnc-form input[type=text],.nnc-form input[type=tel]{width:100%;box-sizing:border-box;padding:11px 12px;border:1px solid var(--th-cfc6b0-bd,#CFC6B0);
  border-radius:9px;font:inherit;font-size:1rem;background:#FFFDF8;min-height:46px}
.nnc-form input:focus{outline:2px solid var(--th-c8a951-bd,#C8A951);outline-offset:1px}
.nnc-form .hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.nnc-tel{display:flex}
.nnc-tel span{display:flex;align-items:center;padding:0 10px;border:1px solid var(--th-cfc6b0-bd,#CFC6B0);border-right:0;border-radius:9px 0 0 9px;
  background:var(--th-f1ead8-bg,#F1EAD8);font-weight:600}
.nnc-form .nnc-tel input{border-radius:0 9px 9px 0;min-width:0}
.nnc-chk{display:flex;gap:9px;align-items:flex-start;font-size:.82rem;margin-top:11px;color:var(--th-3b463e-tx,#3B463E);line-height:1.45}
.nnc-chk input{margin-top:3px;accent-color:var(--th-1a3c2a-bg,#1A3C2A);width:18px;height:18px;flex:0 0 18px}
.nnc-chk a{color:var(--th-1a3c2a-tx,#1A3C2A)}
.nnc-req{color:var(--th-c6543f-tx,#C6543F)}
.nnc-fine{font-size:.78rem;color:var(--th-5d6b61-tx,#5D6B61);margin:6px 0 0;line-height:1.5}
.nnc-c{text-align:center}
.nnc-c a{color:var(--th-1a3c2a-tx,#1A3C2A);font-weight:600}
.nnc-err{background:var(--th-fbf1ee-bg,#FBF1EE);border:1px solid var(--th-e7b9ae-bd,#E7B9AE);color:var(--th-8c2f1e-tx,#8C2F1E);border-radius:8px;padding:9px 11px;font-size:.85rem;margin:10px 0 0}
.nnc-ok{text-align:center}
.nnc-ok h2{margin:0 0 4px}
.nnc-ok .nnc-btn+.nnc-btn{margin-top:8px}
.nnc-tick{width:54px;height:54px;border-radius:50%;background:var(--th-e4efe7-bg,#E4EFE7);color:var(--th-1a3c2a-tx,#1A3C2A);display:grid;place-items:center;
  font-size:1.7rem;margin:4px auto 8px}
html.nnc-lock-scroll,html.nnc-lock-scroll body{overflow:hidden}

@media (min-width:700px){
  .nnc-shade{align-items:center;padding:16px}
  .nnc-sheet{border-radius:16px;padding-bottom:20px}
  .nnc-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (min-width:760px){
  .nnc-facts{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (min-width:1000px){
  .nnc-head h1{font-size:2rem}
  .nnc-grid{grid-template-columns:minmax(0,1fr) 300px;align-items:start}
  .nnc-side{display:block;position:sticky;top:112px}
  .nnc-viewer{--nnc-ph:max(300px,min(80vh,calc(100vh - 250px)))}
  .nnc-sticky{display:none}
}
@media (prefers-reduced-motion:no-preference){
  .nnc-track{scroll-behavior:smooth}
}

/* L81 (9 Oct 2026): the location view and the colleges near Nawa */
.nnc-h1hi{display:block;font:600 .55em/1.4 'Noto Sans Devanagari','DM Sans',system-ui,sans-serif;color:var(--th-6b4f3a-tx,#6B4F3A);margin-top:4px}
.nnc-info h2[id]{margin-top:24px}
.nnc-loc{margin:10px 0 0;max-width:100%;background:var(--th-ffffff-bg,#fff);border:1px solid var(--th-e3dccb-bd,#E3DCCB);border-radius:12px;overflow:hidden}
.nnc-loc a{display:block}
.nnc-loc img{display:block;width:100%;height:auto;aspect-ratio:640/427}
/* L82 (10 Oct 2026): the view in landscape, the colleges beside it on a wide screen */
.nnc-locgrid{display:grid;gap:0 24px;grid-template-columns:minmax(0,1fr)}
.nnc-locgrid>*{min-width:0}
@media (min-width:900px){.nnc-locgrid{grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);align-items:start}.nnc-locside h2[id]{margin-top:10px}}
.nnc-loc figcaption{font-size:.76rem;color:var(--th-5d6b61-tx,#5D6B61);padding:8px 11px;line-height:1.5}
.nnc-colleges{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:8px}
.nnc-colleges li{background:var(--th-ffffff-bg,#fff);border:1px solid var(--th-e3dccb-bd,#E3DCCB);border-left:4px solid var(--th-1a3c2a-bd,#1A3C2A);border-radius:10px;padding:10px 12px;line-height:1.5;font-size:.9rem}
.nnc-colleges b{color:var(--th-1a3c2a-tx,#1A3C2A)}
.nnc-colleges span{display:block;font-size:.8rem;color:var(--th-5d6b61-tx,#5D6B61);margin-top:3px}
