/* ==========================================================================
   NivaasMart typography layer — readable, professional text sizes.
   Most body text on the site was 11–13 px; this brings it to the usual
   professional scale (body 14–15 px, secondary 13–14 px, labels ≥ 12 px)
   without changing any layout. Loaded on every public page + dashboard
   (nm_polish_tags). "html body" makes these win over page styles.
   ========================================================================== */

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }

/* ---------- header / footer ---------- */
html body .hv2-footer-col a { font-size: 14px; line-height: 1.9; }
html body .hv2-footer-col h4 { font-size: 14px; letter-spacing: .4px; }
html body .hv2-footer-col p, html body .hv2-footer-brand p { font-size: 14px; line-height: 1.7; }

/* ---------- homepage cards ---------- */
html body .hv2-nmc-role, html body .hv2-bkrc-loc { font-size: 12.5px; }
html body .hv2-bkrc-stat { font-size: 13px; }
html body .hv2-cta-checks li { font-size: 14px; line-height: 1.6; }
html body .hv2-typecard b { font-size: 13px; }
html body .hv2-devshow2-meta span { font-size: 13.5px; }
html body .hv2-devshow2-proj b { font-size: 12.5px; }
html body .hv2-devshow2-proj span { font-size: 12px; }
html body .hv2-rp-card-loc, html body .hv2-nl-card-loc { font-size: 12.5px; }
html body .hv2-rp-card-bhk { font-size: 12.5px; }
html body .hv2-rp-fact span, html body .hv2-nl-fact span { font-size: 11.5px; }
html body .hv2-handpick-badge, html body .hv2-nl-card-badge, html body .hv2-nl-card-tag, html body .hv2-fp-badge, html body .hv2-tp-tag { font-size: 11.5px; }
html body .hv2-loc { font-size: 13.5px; }
html body .hv2-section-head p, html body .hv2-spot-head p { font-size: 15px; line-height: 1.6; }

/* ---------- property search (listings.php) ---------- */
html body .lst-card h3 { font-size: 17px; line-height: 1.35; }
html body .lst-card-loc, html body .lst-card-meta span { font-size: 14px; }
html body .lst-card-desc { font-size: 14px; line-height: 1.6; }
html body .lst-card-poster, html body .lst-card-poster b { font-size: 13px; }
html body .lst-card-cta { font-size: 14px; }
html body .lst-badge { font-size: 11.5px; letter-spacing: .3px; }
html body .lst-tag { font-size: 12px; }
html body .lst-check, html body .lst-check span { font-size: 14px; }
html body .lst-check-count { font-size: 12px; }
html body .lst-filter-group b { font-size: 14px; }
html body .lst-fbar-item summary, html body .lst-fbar-apply { font-size: 13.5px; }
html body .lst-promo-card-body b { font-size: 14px; }
html body .lst-promo-card-body span { font-size: 12.5px; }
html body .lst-promo-price { font-size: 14px; }

/* ---------- projects.php ---------- */
html body .prj-badge { font-size: 11.5px; }
html body .prj-card h3 { font-size: 17px; }
html body .prj-card-loc, html body .prj-card-meta, html body .prj-card-cta { font-size: 13.5px; }
html body .prj-card-by { font-size: 12.5px; }

/* ---------- directories (brokers / developers / professionals) ---------- */
html body .dvr-card-loc { font-size: 13.5px; }
html body .dvr-card-meta span { font-size: 13px; }
html body .dvr-tag { font-size: 12px; }
html body .dvr-stars, html body .dvr-rating-count { font-size: 13px; }
html body .bkr-viewprofile-btn { font-size: 14px; }
html body .bkr-breadcrumb a, html body .bkr-breadcrumb { font-size: 13px; }

/* ---------- "around this location" cards ---------- */
html body .nld-b b { font-size: 15px; }
html body .nld-b small { font-size: 13.5px; }
html body .nld-meta span { font-size: 12.5px; }
html body .nld-btn { font-size: 13.5px; }
html body .nld-h p { font-size: 14px; }
html body .nld-prem { font-size: 11.5px; }

/* ---------- property / project detail ---------- */
html body .pd2-tabs a { font-size: 14.5px; }
html body .pd2-sub { font-size: 13.5px; }
html body .pd2-card p, html body .pd2-card li { font-size: 15px; line-height: 1.7; }
html body .pd2-enquiry-field label { font-size: 13px; }
html body .pd2-emi-field label { font-size: 12.5px; }
html body .pd2-card .lbl, html body .pd2-fact .lbl, html body .lbl { font-size: 12.5px; }

/* ---------- profile pages ---------- */
html body .abp-tabs a { font-size: 14px; }
html body .abp-pill { font-size: 13px; }
html body .dvn-tab { font-size: 14px; }
html body .dvn-proj-loc, html body .dvn-proj-bhk { font-size: 13px; }
html body .dvn-proj-badge { font-size: 11.5px; }
html body .bkp-facts-grid small { font-size: 12.5px; }
html body .bkp-facts-grid b { font-size: 15px; }

/* ---------- app detail cards ---------- */
html body .nmpd-pcard-body small { font-size: 13.5px; }

/* ---------- dashboards (professional / broker / developer / buyer) ---------- */
html body .pd-body { font-size: 14.5px; }
html body .pd-head h1 { font-size: 26px; }
html body .pd-head p { font-size: 15px; }
html body .pd-side a { font-size: 14.5px; }
html body .bdash-sidebar a, html body .ddash-sidebar a { font-size: 14.5px; }
html body .card-h h3 { font-size: 17px; }
html body .ta-m small, html body .sv-b small, html body .rv-h { font-size: 13px; }
html body .kp-l { font-size: 13.5px; }
html body .kp em { font-size: 12px; }

/* tiny helper text anywhere: never smaller than 11.5 px */
html body .nmad-label { font-size: 11px; }

/* ---------- Android app (phone screens: compact but readable) ---------- */
html body.capacitor-app .lst-card-meta span, html body.capacitor-app .lst-card-loc, html body.capacitor-app .lst-card-desc { font-size: 13.5px !important; }
html body.capacitor-app .lst-card-poster { font-size: 12.5px !important; }
html body.capacitor-app .lst-badge, html body.capacitor-app .prj-badge { font-size: 11px !important; }
html body.capacitor-app .dvr-card-meta span { font-size: 13px !important; }
html body.capacitor-app .dvr-tag { font-size: 12px !important; }
html body.capacitor-app .hv2-typecard b { font-size: 12.5px !important; }
html body.capacitor-app .hv2-rp-card-loc, html body.capacitor-app .hv2-rp-card-bhk, html body.capacitor-app .hv2-loc { font-size: 12.5px !important; }
html body.capacitor-app .hv2-tp-tag, html body.capacitor-app .hv2-handpick-badge { font-size: 11px !important; }
html body.capacitor-app .hv2-tp-fact b { font-size: 12.5px !important; }
html body.capacitor-app .hv2-tp-btn-primary, html body.capacitor-app .hv2-tp-btn-outline { font-size: 13px !important; }
html body.capacitor-app .hv2-devshow2-proj span { font-size: 12px !important; }
html body.capacitor-app .abp-fact small, html body.capacitor-app .abp-rev-h small { font-size: 12.5px !important; }
html body.capacitor-app .lst-promo-card-body span, html body.capacitor-app .lst-promo-price { font-size: 13px !important; }
html body .hv2-footer-logo-img { height: 56px; }


/* ==========================================================================
   ONE TEXT COLOUR SYSTEM — the same colours on every page (website + app),
   built on the brand palette in nm-brand.css (title / price / location).
   Before: titles came in 6 different near-blacks (some still from the old
   purple theme), grey text in 8 shades and prices in 2 blues. Now:
     title  #0F1B3D  titles, names, values          (= nm-brand title)
     body   #3F4A63  paragraphs / descriptions
     loc    #5B6478  locations, secondary lines     (= nm-brand location)
     muted  #64748B  labels, small meta, captions
     price  #1747C9  every price                    (= nm-brand price)
     by     #1E3A8A  "By <developer / broker>" names
   Dark sections (white text) and the admin dark theme are untouched.
   ========================================================================== */
:root { --nmc-title:#0F1B3D; --nmc-body:#3F4A63; --nmc-loc:#5B6478; --nmc-muted:#64748B; --nmc-price:#1747C9; --nmc-by:#1E3A8A; }
/* older design tokens → the same colours */
html body, html body .hv2 { --hv2-ink:#0F1B3D; --hv2-text:#0F1B3D; --hv2-muted:#64748B; --hv2-muted-2:#64748B; --text:#0F1B3D; --grey:#64748B; }
html body .hv2-nl-section { --nl-blue-ink:#0F1B3D; --nl-blue-muted:#64748B; }
html body .lst-pro { --lp-ink:#0F1B3D; --lp-body:#3F4A63; --lp-muted:#64748B; }
html body .nmpd { --ink:#0F1B3D; --tx:#3F4A63; --mu:#64748B; }
html body, html body .pd2-wrap, html body .pd2 { --pd-text:#0F1B3D; --pd-grey:#64748B; }
html body.capacitor-app.nm-home { --nm-ink:#0F1B3D; --nm-text:#3F4A63; --nm-muted:#64748B; }

/* titles & names */
html body .hv2-tp-title, html body .lst-poster-name, html body .pd2-side-title, html body .lc-title,
html body .prj-card h3, html body .lst-card h3, html body .listing-card h3,
html body .hv2-nl-card h3, html body .hv2-rp-card h3, html body .hv2-fp-card h3, html body .dvr-card h3,
html body .pd2-card h2, html body .pd2-card h3, html body .nmpd-h2, html body .nmpd-h3 { color: var(--nmc-title); }
/* paragraphs */
html body .lst-card-desc, html body .hv2-devshow2-desc, html body .pd2-about-text, html body .nmpd-desc { color: var(--nmc-body); }
/* locations & secondary lines */
html body .hv2-tp-loc, html body .hv2-nl-card-loc, html body .hv2-fp-loc, html body .hv2-rp-card-loc, html body .hv2-loc,
html body .lst-card-loc, html body .prj-card-loc, html body .listing-loc, html body .pd2-hero-loc, html body .dvr-card-loc, html body .nld-b small { color: var(--nmc-loc) !important; }
/* labels & small meta */
html body .lst-poster-sub, html body .lst-card-perunit, html body .prj-card-meta, html body .listing-meta,
html body .hv2-nl-card-bhk, html body .hv2-rp-card-bhk, html body .dvr-showing-count, html body .pd2-sub,
html body .pd2-card .lbl, html body .pd2-fact .lbl, html body .nm-apphead-hello, html body .nmpd-muted { color: var(--nmc-muted) !important; }
/* prices */
html body .hv2-tp-price, html body .hv2-nl-card-price, html body .hv2-rp-card-price, html body .hv2-price, html body .hv2-fp-price,
html body .lst-card-price, html body .lst-promo-price, html body .prj-card-price, html body .lc-price, html body .nmpd-cmp-price, html body .of-pr { color: var(--nmc-price) !important; }

/* "By <developer>" line — one professional style everywhere */
html body .nm-by, html body .prj-card-by, html body .listing-poster, html body .hv2-listing-poster, html body .pd2-side-by {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 5px; font-size: 13px; font-weight: 500; color: var(--nmc-muted); line-height: 1.35; }
html body .nm-by:before {
  content: ""; flex: none; width: 22px; height: 22px; margin-right: 2px; border-radius: 7px; background-color: #EEF3FF; box-shadow: inset 0 0 0 1px #DCE6FF;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231747C9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 21h18M5 21V7l7-4 7 4v14M9 9h1M14 9h1M9 13h1M14 13h1M10 21v-4h4v4'/></svg>");
  background-repeat: no-repeat; background-position: center; background-size: 14px; }
html body .nm-by b, html body .nm-by strong, html body .prj-card-by b, html body .listing-poster strong, html body .hv2-listing-poster strong, html body .pd2-side-by b {
  color: var(--nmc-by); font-weight: 700; letter-spacing: .005em; }
html body .prj-card-bottom .nm-by { min-width: 0; }
html body .prj-card-bottom .nm-by b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
html body .nm-by a { color: var(--nmc-by); font-weight: 700; text-decoration: none; }
html body .nm-by a:hover { text-decoration: underline; }
html body .nm-by-sm { font-size: 12.5px; }
html body .nm-by-sm:before { width: 20px; height: 20px; border-radius: 6px; background-size: 12px; }

/* Location pill ON a project photo (Recommended Projects, website + app): light glass pill,
   dark readable text and a blue pin — the dark pill with grey text was hard to read. */
html body .hv2-rp-card-loc, html body.capacitor-app .hv2-rp-card-loc {
    background: rgba(255,255,255,.94) !important; color: #0F172A !important; font-weight: 600 !important;
    text-shadow: none !important; border-radius: 999px !important; box-shadow: 0 4px 12px rgba(15,23,42,.18) !important;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); max-width: calc(100% - 20px);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
html body .hv2-rp-card-loc svg { color: #2563EB !important; flex-shrink: 0; }

/* ==========================================================================
   Headings vs. text — one clear system for the whole website
   (public pages + all dashboards; the app keeps its own look).
   Headings  → Poppins, tight letter-spacing, compact line-height
   Text      → Inter, relaxed line-height
   Site header, sidebars, top bars, menus and footers keep their own styles.
   ========================================================================== */
html body:not(.capacitor-app) :is(h1, h2, h3, h4, h5, h6,
    .section-title, .page-title, .card-title, .panel-title, .modal-title,
    :is(strong, b, span)[class*="title"]:not([class*="subtitle"]),
    [class*="panel"] > strong:first-child,
    [class*="panel"] > div:first-child > strong:first-child,
    :is([class*="-head"], [class*="-header"]) > :is(strong, b)
):not(.site-header *, aside *, nav *, footer *, [class*="sidebar"] *, [class*="topbar"] *, .pd-top *, [class*="menu"] *, [class*="dropdown"] *, table *, button *, label *, .btn, button, a, label) {
    font-family: 'Poppins', 'Inter', system-ui, sans-serif;
    line-height: 1.28;
    letter-spacing: -.01em;
}
html body:not(.capacitor-app) :is(h1, h2):not(.site-header *, aside *, nav *, footer *, [class*="sidebar"] *, [class*="topbar"] *, [class*="menu"] *) {
    letter-spacing: -.02em;
    line-height: 1.2;
}

/* normal text — Inter, comfortable to read */
html body:not(.capacitor-app) :is(p, li, dd, dt, td, th, label, small, input, select, textarea, blockquote, figcaption):not(.site-header *, aside *, nav *, footer *, [class*="sidebar"] *, [class*="topbar"] *, .pd-top *):not([class*="title"]):not([class*="price"]) {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
html body:not(.capacitor-app) :is(p, blockquote):not(.site-header *, aside *, nav *, footer *, [class*="sidebar"] *, [class*="topbar"] *, [class*="card"] *, [class*="badge"], [class*="chip"], [class*="pill"]) {
    line-height: 1.65;
}

/* My Plan & Billing used Poppins for all its text — text is Inter there too */
html body:not(.capacitor-app) .mp { font-family: 'Inter', system-ui, sans-serif; }
