:root {
  /* ── PNI Brand Palette ───────────────────────────────────────── */
  --pni-navy:       #0C1F3D;
  --pni-navy-light: #1a3560;
  --pni-gold:       #E8A020;
  --pni-gold-dark:  #C4861A;
  --pni-off-white:  #F8F7F4;
  --pni-text:       #1A1917;
  --pni-text-muted: #6B6967;
  --pni-border:     #E2E0DE;

  /* ── Structural tokens (semantic aliases) ───────────────────── */
  --slate-950: #0C1F3D;
  --slate-900: #1A1917;
  --slate-800: #2d2b29;
  --slate-700: #4a4845;
  --slate-600: #6B6967;
  --slate-500: #8a8784;
  --slate-300: #C8C4C0;
  --slate-200: #E2E0DE;
  --slate-100: #F4F2F0;
  --white:     #ffffff;

  /* ── Accent tokens → PNI gold/navy palette ──────────────────── */
  --emerald-700: #C4861A;
  --teal-700:    #0C1F3D;
  --amber-400:   #E8A020;

  /* ── Status ─────────────────────────────────────────────────── */
  --rose-100: #fff1f2;

  /* ── UI ──────────────────────────────────────────────────────── */
  --shadow-lg:   0 2px 12px rgba(12, 31, 61, 0.06), 0 8px 32px rgba(12, 31, 61, 0.05);
  --radius:      6px;
  --radius-lg:   10px;
  --container:   1200px;

  /* ── Typography ──────────────────────────────────────────────── */
  --font-sans:   'Noto Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-serif:  Georgia, 'Times New Roman', serif;
  --font-hindi:  'Noto Sans Devanagari', var(--font-sans);
  --font-arabic: 'Noto Sans Arabic', var(--font-sans);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--slate-900);
  background: #ffffff;
  font-family: var(--font-sans);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 80;
  background: var(--slate-950);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 10px;
}

.topbar {
  padding: 18px 0;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.brand-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-mark img {
  width: auto;
  max-width: 320px;
  height: 74px;
  object-fit: contain;
}

.brand-tagline,
.eyebrow,
.ad-label,
.card-meta,
.hero-meta,
.article-meta,
.breadcrumbs,
.sidebar-title {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--slate-600); /* #6B6967 — 5.5:1 on white, passes WCAG AA */
}

.brand-name,
.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--slate-950);
}

.site-brand,
.footer-grid h3,
.footer-logo {
  min-width: 0;
}

.brand-name,
.footer-logo {
  overflow-wrap: anywhere;
}

.brand-tagline {
  font-weight: 700;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* ── Custom Language Switcher ─────────────────────────────────────────────── */
.pni-lang-selector {
  position: relative;
}

.pni-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.9);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.pni-lang-btn:hover { background: rgba(255,255,255,0.18); border-color: var(--pni-gold); color: var(--pni-gold); }

/* Dropdown: hidden by default, shown only when .is-open class is added by JS */
.pni-lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 500;
  background: #0c1f3d;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-lg);
  padding: 6px;
  min-width: 170px;
  max-width: calc(100vw - 24px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  gap: 2px;
}

.pni-lang-dropdown.is-open {
  display: grid;
}

.pni-lang-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: rgba(255,255,255,0.82);
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  white-space: nowrap;
}
.pni-lang-option:hover { background: rgba(255,255,255,0.12); color: var(--pni-gold); }
.pni-lang-option[data-lang="en"] {
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 4px;
  padding-bottom: 11px;
  color: var(--pni-gold);
  font-weight: 700;
}
.pni-lang-option.is-active { color: var(--pni-gold); font-weight: 700; }

/* Mobile body overlay — pointer-events:none so it never blocks taps on the bottom sheet */
body.pni-lang-open::after {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  pointer-events: none;
}

/* =============================================================================
   Mobile spacing — reduce all excessive gaps and paddings
   ============================================================================= */
@media (max-width: 720px) {
  /* Section block outer padding */
  .section-block { padding: 14px 0 20px; }
  .section-block--compact { padding: 6px 0 12px; }

  /* Homepage sections and gaps */
  .homepage-body { padding-top: 0; }
  .homepage-main { gap: 14px; }
  .homepage-section { padding-bottom: 14px; }
  .homepage-section:last-child { padding-bottom: 0; }

  /* Headline grid: cancel row-span so first card doesn't create empty space */
  .headline-grid { grid-template-columns: 1fr; gap: 14px; }
  .headline-grid .article-card:first-child { grid-row: auto; }
  .headline-grid .article-card:first-child .card-title { font-size: 1.15rem; line-height: 1.25; }
  .headline-grid .article-card:not(:first-child) .article-card-link { grid-template-columns: 100px minmax(0,1fr); }

  /* Department grid: 1 column on mobile */
  .department-grid { grid-template-columns: 1fr; gap: 14px; }

  /* Homepage rail (sidebar-style trending) */
  .homepage-rail { gap: 14px; }
}

@media (max-width: 720px) {
  .pni-lang-btn { font-size: 0.75rem; padding: 5px 8px; gap: 3px; }

  /* Mobile: bottom sheet — always fully visible, never off-screen */
  .pni-lang-dropdown.is-open {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    min-width: 100%;
    max-width: 100%;
    max-height: 70vh;
    overflow-y: auto;
    z-index: 1000;
    padding: 16px 12px 24px;
  }

  .pni-lang-dropdown.is-open::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    margin: 0 auto 14px;
  }

  .pni-lang-option { padding: 13px 16px; font-size: 1rem; }
}

/* ── Suppress Google's own UI completely ──────────────────────────────────── */
.goog-te-banner-frame,
.goog-te-balloon-frame,
#goog-gt-tt,
.goog-tooltip,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
.goog-te-gadget a,
.goog-logo-link { display: none !important; }
body { top: 0 !important; }

/* Row 2: full-width search bar */
.site-search-bar {
  background: rgba(0, 0, 0, 0.18);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 0;
}

.search-full {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
}

.search-full input[type="search"] {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 11px 16px;
  font: inherit;
  font-size: 0.95rem;
  color: #ffffff;
}

.search-full input[type="search"]::placeholder { color: rgba(255, 255, 255, 0.45); }

.search-full input[type="search"]:focus {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--pni-gold);
  outline: none;
}

.search-full button {
  padding: 11px 24px;
  background: var(--pni-gold);
  color: var(--pni-navy);
  border: 0;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.search-full button:hover { background: var(--pni-gold-dark); }

/* Keep old .search-inline for any other uses */
.search-inline {
  display: flex;
  gap: 10px;
  align-items: center;
}

.search-inline input,
.lead-form-grid input,
.lead-form-grid textarea {
  width: 100%;
  border: 1px solid var(--slate-200);
  background: var(--white);
  border-radius: 12px;
  padding: 13px 14px;
  font: inherit;
}

.search-inline button,
.lead-form-grid button,
.menu-toggle {
  border: 0;
  border-radius: 12px;
  padding: 13px 18px;
  background: linear-gradient(135deg, var(--teal-700), var(--emerald-700));
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
}

.main-nav {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.breaking-ticker {
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(90deg, rgba(15, 118, 110, 0.06), rgba(251, 191, 36, 0.08));
}

.breaking-ticker__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 46px;
}

.breaking-ticker__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  padding: 5px 12px 5px 8px;
  border-radius: 999px;
  background: var(--slate-950);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* Pulsing live dot */
.breaking-ticker__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  flex-shrink: 0;
  animation: pni-pulse 1.4s ease-in-out infinite;
}

@keyframes pni-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.75); }
}

.breaking-ticker__track {
  display: flex;
  gap: 24px;
  white-space: nowrap;
  color: var(--slate-700);
  font-weight: 600;
  width: max-content;
  animation: pni-ticker-scroll 68s linear infinite;
}

.breaking-ticker__viewport {
  overflow: hidden;
  min-width: 0;
}

.breaking-ticker:hover .breaking-ticker__track {
  animation-play-state: paused;
}

.breaking-ticker__item {
  display: inline-flex;
  align-items: center;
  color: inherit;
}

.breaking-ticker__item::after {
  content: "•";
  margin-left: 24px;
  color: var(--amber-400);
}

a.breaking-ticker__item:hover {
  color: var(--teal-700);
}

.nav-inner {
  display: flex;
  align-items: center;
  min-height: 64px;
}

.menu-toggle {
  display: none;
}

.nav-menu {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 28px;
  width: 100%;
  overflow: visible;
}

.menu-close {
  display: none;
}

.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cookie-banner__body {
  width: min(100%, 980px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.96);
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.cookie-banner__body p {
  margin: 0;
  flex: 1 1 auto;
  font-size: 0.95rem;
}

.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.cookie-banner__link {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

.cookie-banner__button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--white);
  color: var(--slate-950);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.page-hero {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
  font-family: var(--font-serif);
}

.page-hero p {
  margin: 0;
  max-width: 760px;
  color: var(--slate-600);
}

/* Contact form styles moved to style-contact.css (loaded on contact page only) */

.nav-utilities {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.menu-list,
.footer-menu,
.mega-panel ul,
.sidebar-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-list {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 600;
  flex-wrap: wrap;
  overflow: visible;
}

.menu-list li {
  position: relative;
}

.menu-list > li > a,
.mega-trigger,
.footer-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.menu-list > li > a {
  padding: 10px 0;
  color: var(--slate-800);
}

.menu-list > li.menu-item-has-children > a::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: 10px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.menu-list > li > a:hover,
.menu-list > li.current-menu-item > a,
.menu-list > li.current_page_item > a {
  color: var(--teal-700);
}

.menu-list .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 55;
  display: none;
  min-width: 240px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-lg);
  list-style: none;
  margin: 10px 0 0;
}

.menu-list > li > .sub-menu::before,
.menu-list .sub-menu .sub-menu::before {
  content: "";
  position: absolute;
  background: transparent;
}

.menu-list > li > .sub-menu::before {
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}

.menu-list .sub-menu li {
  width: 100%;
}

.menu-list .sub-menu .menu-item-has-children {
  position: relative;
}

.menu-list .sub-menu a {
  display: block;
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  color: var(--slate-700);
  line-height: 1.35;
}

.menu-list .sub-menu > li.menu-item-has-children > a {
  padding-right: 34px;
}

.menu-list .sub-menu > li.menu-item-has-children > a::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-top: 1.8px solid currentColor;
  border-right: 1.8px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

.menu-list .sub-menu a:hover,
.menu-list .sub-menu .current-menu-item > a,
.menu-list .sub-menu .current_page_item > a {
  background: var(--slate-100);
  color: var(--teal-700);
}

.menu-list > li:hover > .sub-menu,
.menu-list > li:focus-within > .sub-menu {
  display: grid;
  gap: 4px;
}

.menu-list .sub-menu .sub-menu {
  top: 0;
  left: calc(100% + 8px);
}

.menu-list .sub-menu .sub-menu::before {
  top: 0;
  left: -10px;
  width: 10px;
  height: 100%;
}

.menu-list .sub-menu li:hover > .sub-menu,
.menu-list .sub-menu li:focus-within > .sub-menu {
  display: grid;
  gap: 4px;
}

.mega-menu-shell {
  position: relative;
}

.mega-trigger {
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 999px;
  padding: 10px 16px;
  background: var(--white);
  color: var(--slate-800);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.mega-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: var(--shadow-lg);
  min-width: 560px;
}

.mega-panel--property {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 28px;
  min-width: min(1120px, calc(100vw - 48px));
  padding: 24px 28px 28px;
  border-radius: 0;
}

.mega-column h3 {
  display: inline-block;
  border-bottom: 2px solid var(--slate-950);
  padding-bottom: 8px;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.mega-column li + li {
  margin-top: 10px;
}

.mega-column a {
  color: var(--slate-800);
  font-size: 0.94rem;
}

.mega-column a:hover {
  color: var(--teal-700);
}

.mega-column--accent {
  background: var(--slate-100);
  padding: 16px;
}

.mega-column--accent p {
  margin: 14px 0 0;
  color: var(--slate-600);
  font-size: 0.88rem;
}

.mega-panel.is-open {
  display: grid !important;
}

.mega-trigger:focus {
  outline: none;
}

.mega-trigger:focus-visible {
  outline: 2px solid var(--teal-700);
  outline-offset: 3px;
}

.mega-panel h3,
.section-head h2,
.tool-card h3,
.lead-form-card h2,
.faq-card h2,
.article-title,
.hero-copy h1,
.card-title {
  margin: 0;
}

.hero-section,
.section-block {
  padding: 32px 0 48px;
}

.section-block--compact {
  padding: 8px 0 20px;
}

.hero-grid,
.archive-grid,
.article-layout {
  display: grid;
  gap: 24px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.9fr) minmax(300px, 0.9fr);
  align-items: start;
}

.homepage-hero {
  padding-bottom: 20px;
}

.homepage-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 16px;
  align-items: start;
}

/* ── Hero mosaic — image on top, text below (clean, no absolute positioning) ── */
.hero-mosaic__lead,
.hero-mosaic__card {
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-card-bg, #fff);
  border: 1px solid var(--color-card-border, #E2E0DE);
}

.hero-mosaic__lead a,
.hero-mosaic__card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
}

/* ── Lead card image — aspect-ratio container, any landscape image fits cleanly
   3/2 ratio works for photos and infographics; cover fills with top anchoring ─ */
.hero-mosaic__lead .hero-mosaic__media {
  width: 100%;
  flex-shrink: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.hero-mosaic__media img,
.hero-mosaic__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.3s ease;
}

.hero-mosaic__card a:hover .hero-mosaic__thumb img { transform: scale(1.03); }

/* No gradient overlay */
.hero-mosaic__lead::after,
.hero-mosaic__card::after { display: none; }

/* Lead text section */
.hero-mosaic__overlay {
  padding: 12px 14px;
  background: var(--color-card-bg, #fff);
  color: var(--pni-text, #1A1917);
  flex: 1;
}

.hero-mosaic__overlay .eyebrow { color: var(--pni-gold-dark); margin-bottom: 4px; }

.hero-mosaic__overlay h1 {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.3;
  margin: 4px 0 0;
  color: var(--pni-navy);
}

.hero-mosaic__overlay .hero-meta {
  margin-top: 6px;
  color: var(--pni-text-muted);
  font-size: 0.76rem;
}

/* ── Stack: 2×2 grid, each card vertical (image top, title below) ───────────
   Consistent with lead card style, no horizontal thumbnail awkwardness ───── */
.hero-mosaic__stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.hero-mosaic__card {
  border: 1px solid var(--color-card-border, #E2E0DE);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-mosaic__card a {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  height: 100%;
}

.hero-mosaic__card a:hover { opacity: 0.88; }

.hero-mosaic__card .hero-mosaic__thumb {
  width: 100%;
  height: 110px;
  flex-shrink: 0;
  overflow: hidden;
}

.hero-mosaic__copy {
  padding: 8px 10px 10px;
  background: var(--color-card-bg, #fff);
  flex: 1;
}

.hero-mosaic__copy .eyebrow {
  color: var(--pni-gold-dark);
  margin-bottom: 3px;
  display: block;
  font-size: 0.65rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-mosaic__copy h3 {
  font-size: 0.82rem;
  line-height: 1.35;
  margin: 0;
  color: var(--pni-navy);
}

/* Mobile: single column cards */
@media (max-width: 720px) {
  .hero-mosaic__lead .hero-mosaic__media { height: 200px; }
  .hero-mosaic__stack { grid-template-columns: 1fr; gap: 10px; }
  .hero-mosaic__card .hero-mosaic__thumb { height: 160px; }
}


.homepage-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.72fr);
  gap: 28px;
  align-items: start;
}

.homepage-main,
.homepage-rail {
  min-width: 0;
}

.homepage-main {
  display: grid;
  gap: 32px;
}

.homepage-rail {
  display: grid;
  gap: 22px;
}

.homepage-section {
  min-width: 0;
}

.headline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.rail-module {
  padding: 18px 20px;
}

.trending-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.trending-list li {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  padding-top: 14px;
}

.trending-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.trending-list a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.trending-rank {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--slate-300);
  font-weight: 700;
}

.trending-copy {
  display: grid;
  gap: 6px;
}

.trending-copy strong {
  font-size: 0.98rem;
  line-height: 1.3;
}

.department-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.department-card {
  min-width: 0;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow-lg);
}

.department-card__head {
  margin-bottom: 14px;
}

.department-card__head h3,
.department-card__lead h4,
.department-list__item h4 {
  margin: 0;
}

.department-card__head h3 {
  font-size: 1.05rem;
  font-weight: 800;
}

.department-card__lead {
  margin-bottom: 14px;
}

.department-card__lead a {
  display: grid;
  gap: 12px;
}

.department-card__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 6px;
}

.department-card__lead h4 {
  font-size: 1.1rem;
  line-height: 1.25;
}

.department-card__lead p {
  margin: 0;
  color: var(--slate-600);
  font-size: 0.94rem;
}

.department-card__list {
  display: grid;
  gap: 12px;
}

.department-list__item {
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.department-list__item h4 {
  font-size: 0.98rem;
  line-height: 1.3;
}

.hero-card,
.article-card,
.tool-card,
.lead-form-card,
.sidebar-card,
.ad-slot,
.faq-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.hero-card {
  overflow: hidden;
}

.hero-image img,
.card-thumb img,
.article-media img {
  width: 100%;
  object-fit: cover;
}

.hero-copy,
.card-content,
.tool-card,
.lead-form-card,
.sidebar-card,
.faq-card,
.article-full,
.ad-slot {
  padding: 22px;
}

.hero-copy h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.06;
  margin-top: 8px;
}

.hero-copy p,
.section-head p,
.lead-form-card p,
.tool-card p,
.card-excerpt,
.article-body,
.sidebar-card p {
  color: var(--slate-600);
}

.sidebar-card ul,
.sidebar-card ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar-card li + li {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.sidebar-card a {
  color: var(--slate-900);
}

.sidebar-card a:hover {
  color: var(--emerald-700);
}

.sidebar-links--compact {
  display: grid;
  gap: 14px;
}

.sidebar-links--compact li {
  display: grid;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.sidebar-card .sidebar-links--compact li + li {
  margin-top: 0;
  padding-top: 0;
}

.sidebar-links--compact li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.sidebar-links--compact span {
  color: var(--slate-500);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.widget_recent_entries a,
.widget_recent_comments a {
  display: block;
  font-weight: 700;
  line-height: 1.45;
}

.widget_recent_entries .post-date,
.widget_recent_comments,
.sidebar-card .rss-date {
  display: block;
  margin-top: 6px;
  color: var(--slate-500);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sidebar-card .search-form,
.sidebar-card .wp-block-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.sidebar-card .search-field,
.sidebar-card input[type="search"],
.sidebar-card input[type="text"],
.sidebar-card input[type="email"],
.sidebar-card input[type="url"] {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
}

.sidebar-card .search-submit,
.sidebar-card .wp-block-search__button,
.sidebar-card button[type="submit"] {
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  background: var(--slate-950);
  color: var(--white);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.sidebar-card .search-form label {
  display: none;
}

.page-article {
  margin-bottom: 22px;
}

/* Comment styles moved to style-single.css (loaded on is_single() only) */

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-link {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--slate-300);
  color: var(--slate-800);
  font-size: 0.82rem;
  font-weight: 800;
}

.section-link:hover {
  border-color: var(--slate-950);
  background: var(--slate-950);
  color: var(--white);
}

.section-head h2,
.lead-form-card h2,
.faq-card h2,
.article-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2vw, 2.5rem);
  line-height: 1.15;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.project-grid,
.city-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.stack-list {
  display: grid;
  gap: 18px;
}

.article-card-link {
  display: grid;
  gap: 14px;
}

.card-title {
  font-size: 1.25rem;
  line-height: 1.25;
}

.tools-band {
  background: linear-gradient(180deg, rgba(12,31,61,0.04), rgba(232,160,32,0.06));
}

.newsroom-band {
  background: var(--color-card-bg, rgba(255,255,255,0.88));
}

.stream-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.stream-section {
  min-width: 0;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow-lg);
}

.stream-head {
  margin-bottom: 14px;
}

.stream-head h3,
.stream-lead h4,
.stream-list-item h4 {
  margin: 0;
}

.stream-head h3 {
  font-size: 1.1rem;
  font-weight: 800;
}

.stream-lead {
  margin-bottom: 14px;
}

.stream-lead a {
  display: grid;
  gap: 12px;
}

.stream-lead-thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
}

.stream-lead h4 {
  font-size: 1.1rem;
  line-height: 1.25;
}

.stream-lead p {
  margin: 0;
  color: var(--slate-600);
  font-size: 0.94rem;
}

.stream-list {
  display: grid;
  gap: 12px;
}

.stream-list-item {
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.stream-list-item h4 {
  font-size: 0.98rem;
  line-height: 1.3;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.tool-card ul,
.article-body ul,
.article-body ol {
  padding-left: 20px;
}

.lead-form-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: 24px;
}

.lead-form-grid {
  display: grid;
  gap: 12px;
}

.lead-form-grid select {
  width: 100%;
  border: 1px solid var(--slate-200);
  background: var(--white);
  border-radius: 12px;
  padding: 13px 14px;
  font: inherit;
}

.lead-form-grid textarea {
  min-height: 120px;
}

.lead-form-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--slate-600);
  line-height: 1.5;
  cursor: pointer;
}
.lead-form-consent-label input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--pni-navy);
}
.lead-form-consent-label a { color: var(--pni-navy); text-decoration: underline; }

/* ---- Project disclaimer ---- */
.project-disclaimer {
  margin-top: 2rem;
  padding: 16px 20px;
  background: var(--slate-100);
  border-radius: var(--radius);
  font-size: 0.8rem;
  color: var(--slate-600);
  line-height: 1.6;
}
.project-disclaimer p { margin: 0 0 8px; }
.project-disclaimer p:last-child { margin: 0; }
.project-disclaimer__rera {
  color: #996800;
  background: #fffbeb;
  border-left: 3px solid #996800;
  padding: 10px 14px;
  border-radius: 0 4px 4px 0;
  margin-bottom: 12px !important;
}
[data-theme="dark"] .project-disclaimer { background: var(--color-card-bg); color: var(--color-text-muted); }

.lead-consent-warning {
  font-size: 0.82rem;
  color: #d63638;
  font-weight: 600;
  padding: 8px 12px;
  background: #fef2f2;
  border-left: 3px solid #d63638;
  border-radius: 0 4px 4px 0;
}

.archive-grid,
.article-layout {
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.9fr);
  align-items: start;
}

.article-main {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.article-full {
  padding: 28px;
}

.article-body {
  font-size: 1.08rem;
}

.article-body p {
  margin: 0 0 18px;
}

.article-body .ad-slot {
  margin: 28px 0;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 24px;
}

.fact-card {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--slate-100);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.fact-card strong {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-500);
}

.fact-card span,
.project-facts span {
  color: var(--slate-700);
  font-weight: 600;
}

.project-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.92rem;
}

.resource-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--slate-950);
  color: var(--white);
  font-weight: 700;
}

.insight-panel {
  margin: 0 0 26px;
  padding: 22px;
  border: 1px solid var(--slate-200);
  background: var(--white);
}

.detail-table,
.trend-table {
  display: grid;
  border: 1px solid var(--slate-200);
}

.detail-table {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-table div,
.trend-table div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--slate-200);
}

.detail-table div:nth-child(odd) {
  border-right: 1px solid var(--slate-200);
}

.detail-table div:nth-last-child(-n+2),
.trend-table div:last-child {
  border-bottom: 0;
}

.detail-table strong,
.trend-table span {
  color: var(--slate-500);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag-cloud span,
.tag-cloud a {
  display: inline-flex;
  padding: 7px 10px;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  color: var(--slate-700);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color .15s, color .15s;
}
.tag-cloud a:hover { border-color: var(--pni-navy); color: var(--pni-navy); }
.tag-cloud a.is-active {
  background: var(--pni-navy);
  border-color: var(--pni-navy);
  color: #fff;
}

/* ---- Infrastructure grid (locality hubs) ---- */
.infra-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 16px;
}
.infra-col h3 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--pni-navy);
  margin: 0 0 8px;
}
.infra-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.infra-col ul li {
  font-size: 0.88rem;
  padding: 4px 0;
  border-bottom: 1px solid var(--slate-100);
  color: var(--slate-700);
}

/* ---- Map / Video embed ---- */
.map-embed-wrap,
.video-embed-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1.5rem 0;
}
.map-embed-wrap iframe,
.video-embed-wrap iframe {
  display: block;
  width: 100%;
}

/* ---- WhatsApp CTA ---- */
.whatsapp-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: #25D366;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius);
  text-decoration: none;
  margin: 1rem 0;
  transition: background .15s;
}
.whatsapp-cta:hover { background: #1ebe5d; color: #fff; }
[data-theme="dark"] .whatsapp-cta { background: #1ebe5d; }

/* ---- Project rating ---- */
.project-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.88rem;
}
.rating-stars { color: var(--pni-gold); font-size: 1.1rem; letter-spacing: 2px; }
.rating-value { font-weight: 700; color: var(--slate-800); }
.rating-label { color: var(--slate-600); }
[data-theme="dark"] .rating-value { color: var(--color-text); }
[data-theme="dark"] .rating-label { color: var(--color-text-muted); }

/* ---- Highlights list ---- */
.highlights-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}
.highlights-list li {
  padding: 10px 14px 10px 36px;
  background: var(--slate-100);
  border-left: 3px solid var(--pni-gold);
  font-size: 0.92rem;
  position: relative;
  color: var(--slate-700);
}
.highlights-list li::before {
  content: '✓';
  position: absolute;
  left: 12px;
  color: var(--pni-gold);
  font-weight: 700;
}
.highlights-list--location li::before { content: '↗'; }

/* ---- Amenities grid ---- */
.amenities-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.amenity-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--slate-700);
  font-weight: 600;
}
.amenity-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pni-gold);
  flex-shrink: 0;
}

/* ---- Why Invest callout ---- */
.why-invest-callout {
  background: linear-gradient(135deg, rgba(14,100,180,.06) 0%, rgba(232,160,32,.06) 100%);
  border-left: 4px solid var(--pni-gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin-top: 16px;
}
.why-invest-callout p {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.65;
  color: var(--slate-800);
}

/* ---- FAQ section (project pages) ---- */
.faq-section { margin-top: 2rem; }
.faq-list { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-question {
  list-style: none;
  padding: 14px 18px;
  font-weight: 700;
  font-size: 0.97rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--slate-100);
  color: var(--slate-900);
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after { content: '+'; font-size: 1.2rem; color: var(--pni-navy); flex-shrink: 0; margin-left: 12px; }
.faq-item[open] .faq-question::after { content: '−'; }
.faq-answer { padding: 14px 18px; font-size: 0.93rem; line-height: 1.65; }
.faq-answer p { margin: 0; color: var(--slate-700); }

.insight-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.insight-card {
  display: grid;
  gap: 10px;
  min-height: 116px;
  padding: 16px;
  border: 1px solid var(--slate-200);
}

.insight-card strong {
  font-size: 0.8rem;
  color: var(--slate-600);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.insight-card span {
  font-size: 1.35rem;
  font-weight: 900;
}

.insight-card--blue {
  background: #e0f2fe;
}

.insight-card--green {
  background: #dcfce7;
}

.insight-card--orange {
  background: #ffedd5;
}

.insight-card--pink {
  background: #fce7f3;
}

.trend-table {
  margin-top: 16px;
}

/* Old calculator CSS removed — replaced by style-calculators.css */
.trend-table { margin-top: 16px; }


.article-body h2,
.article-body h3,
.article-body h4 {
  font-family: var(--font-serif);
  margin: 32px 0 12px;
  line-height: 1.15;
}

.ad-slot {
  min-height: 180px;
}

.ad-placeholder {
  display: grid;
  place-items: center;
  min-height: 120px;
  border: 1px dashed var(--slate-300);
  border-radius: 14px;
  color: var(--slate-500);
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  padding: 16px 18px;
  background: var(--white);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.sidebar-card + .sidebar-card,
.site-sidebar .ad-slot + .sidebar-card {
  margin-top: 18px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 20px;
  padding: 34px 0 48px;
}

.footer-grid > div {
  min-width: 0;
}

.footer-menu {
  display: grid;
  gap: 10px;
}

.footer-menu li {
  list-style: none;
}

.footer-menu .sub-menu,
.menu-list .sub-menu {
  display: none;
}

.footer-menu a {
  color: var(--slate-700);
}

.footer-menu a:hover {
  color: var(--teal-700);
}

.footer-contact {
  margin-top: 14px;
  color: var(--slate-600);
}

.site-footer {
  margin-top: 36px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.78);
}

.footer-menu {
  display: grid;
  gap: 8px;
}

.is-open {
  display: block !important;
}

.screen-reader-text {
  position: absolute;
  left: -9999px;
}

/* Homepage editorial polish */
.homepage-hero {
  background: #ffffff;
  padding: 22px 0 30px;
}


.hero-mosaic__copy {
  padding: 16px 18px;
}

.hero-mosaic__overlay .eyebrow,
.hero-mosaic__copy .eyebrow {
  color: var(--pni-gold-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: none;
  padding: 0;
}

.hero-mosaic__overlay h1 { max-width: 760px; }

.hero-mosaic__copy h3 {
  letter-spacing: 0;
}

.homepage-body {
  padding-top: 10px;
  background: #ffffff;
}

.homepage-shell {
  grid-template-columns: minmax(0, 820px) minmax(280px, 340px);
  gap: 34px;
  align-items: start;
}

.homepage-section {
  padding: 0 0 34px;
  border-bottom: 1px solid var(--slate-200);
}

.homepage-section:last-child {
  border-bottom: 0;
}

.section-head {
  align-items: center;
  border-bottom: 2px solid var(--slate-950);
  margin-bottom: 18px;
  min-height: 34px;
}

.section-head .eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  background: var(--slate-950);
  color: var(--white);
  font-size: 0.68rem;
  letter-spacing: 0;
}

.section-head h2 {
  font-family: var(--font-sans);
  font-size: 1.12rem;
  line-height: 1.25;
  margin-top: 10px;
}

.headline-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 24px;
}

.headline-grid .article-card,
.department-card,
.rail-module,
.homepage-rail .ad-slot {
  background: #ffffff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.headline-grid .article-card {
  border-bottom: 1px solid var(--slate-200);
  padding-bottom: 18px;
}

.headline-grid .article-card-link {
  gap: 10px;
}

.headline-grid .card-thumb img,
.department-card__media img {
  border-radius: 0;
}

.headline-grid .card-content {
  padding: 0;
}

.headline-grid .card-title {
  font-size: 1.05rem;
  line-height: 1.28;
}

.headline-grid .card-excerpt {
  margin-bottom: 0;
  font-size: 0.92rem;
}

.homepage-rail {
  position: sticky;
  top: 160px;
}

.homepage-rail .ad-slot {
  padding: 0;
}

.homepage-rail .ad-label,
.rail-module .sidebar-title {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  background: var(--slate-950);
  color: var(--white);
  font-size: 0.66rem;
  letter-spacing: 0;
}

.homepage-rail .ad-placeholder {
  margin-top: 12px;
  border-radius: 0;
  min-height: 250px;
}

.rail-module {
  padding: 0;
}

.trending-list {
  margin-top: 14px;
}

.trending-rank {
  color: var(--teal-700);
  font-size: 1.35rem;
}

.trending-copy strong {
  font-size: 0.94rem;
}

.rail-module .sidebar-links {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.rail-module .sidebar-links a {
  color: var(--slate-800);
  font-weight: 700;
}

.department-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 24px;
}

.department-card {
  padding: 0;
}

.department-card__head {
  border-bottom: 1px solid var(--slate-200);
  padding-bottom: 9px;
  margin-bottom: 14px;
}

.department-card__head h3 {
  font-size: 0.98rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

.department-card__lead h4 {
  font-size: 1.08rem;
}

.department-card__lead p {
  font-size: 0.9rem;
}

.tools-band {
  margin: 0;
  padding: 24px;
  background: var(--slate-100);
}

.tools-grid {
  gap: 16px;
}

.tool-card {
  border-radius: 0;
  box-shadow: none;
}

.project-grid,
.city-grid {
  gap: 24px;
}

/* Publication homepage refinement */
.homepage-hero .container,
.homepage-body .container {
  width: min(calc(100% - 34px), 1160px);
}

.homepage-hero {
  border-bottom: 1px solid var(--slate-200);
}

.homepage-hero__grid {
  grid-template-columns: minmax(0, 1.42fr) minmax(300px, 0.78fr);
}

.homepage-hero__grid--single { grid-template-columns: 1fr; }
.homepage-hero__grid--single .hero-mosaic__overlay h1 { max-width: 860px; }


.homepage-shell {
  grid-template-columns: minmax(0, 760px) minmax(310px, 330px);
  gap: 42px;
}

.homepage-main {
  gap: 38px;
}

.homepage-section {
  padding-bottom: 38px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.section-head h2 {
  max-width: 720px;
}

.headline-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 0 26px;
}

.headline-grid .article-card:first-child {
  grid-row: span 3;
}

.headline-grid .article-card:first-child .card-title {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  line-height: 1.08;
}

.headline-grid .article-card:first-child .card-thumb img {
  aspect-ratio: 16 / 10;
}

.headline-grid .article-card:not(:first-child) .article-card-link {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: start;
}

.headline-grid .article-card:not(:first-child) .card-thumb img {
  aspect-ratio: 1 / 0.78;
}

.headline-grid .article-card:not(:first-child) .card-title {
  font-size: 0.95rem;
}

.headline-grid .article-card:not(:first-child) .card-excerpt {
  display: none;
}

.card-thumb img,
.department-card__media img,
.project-card .card-thumb img,
.city-card .card-thumb img {
  width: 100%;
  object-fit: cover;
}

.department-grid {
  gap: 34px 28px;
}

.department-card__head {
  border-bottom: 2px solid var(--pni-gold);
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.department-card__head h3 a {
  color: var(--pni-navy);
  font-weight: 800;
  text-decoration: none;
}

.department-card__head h3 a:hover { color: var(--pni-gold-dark); }

[data-theme="dark"] .department-card__head { border-bottom-color: var(--pni-gold); }
[data-theme="dark"] .department-card__head h3 a { color: var(--pni-gold); }

.department-card__lead {
  border-bottom: 1px solid var(--slate-200);
  padding-bottom: 12px;
}

.department-list__item {
  padding: 10px 0 0;
}

.project-grid,
.city-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-card,
.city-card {
  border-radius: 0;
}

.project-card .card-title,
.city-card .card-title {
  font-size: 1rem;
}

.project-facts {
  gap: 7px;
}

.project-facts span {
  border-radius: 0;
}

.homepage-rail {
  border-left: 1px solid var(--slate-200);
  padding-left: 22px;
}

.trending-list li {
  border-color: var(--slate-200);
}

.trending-list a {
  gap: 10px;
}

.tools-band {
  margin: 0;
  padding: 28px;
  background: #edf3f7;
}

.tools-band .section-inner {
  max-width: none;
}

.tools-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tool-card {
  padding: 16px;
  border: 1px solid var(--slate-200);
}

.site-footer {
  margin-top: 0;
  background: var(--slate-950);
  border-top: 0;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer .footer-logo,
.site-footer h3 {
  color: var(--white);
}

.site-footer p,
.site-footer .footer-contact {
  color: rgba(255, 255, 255, 0.68);
}

.site-footer .footer-menu a {
  color: rgba(255, 255, 255, 0.76);
}

.site-footer .footer-menu a:hover {
  color: var(--white);
}

/* Sharper magazine density */
.topbar {
  padding: 12px 0;
}

.topbar .container {
  align-items: center;
}

.brand-mark img {
  max-width: 260px;
  height: 58px;
}

.brand-name {
  font-size: 1.22rem;
  line-height: 1.18;
}

.brand-tagline {
  font-size: 0.68rem;
}

.search-inline {
  width: min(100%, 520px);
}

.search-inline input {
  min-height: 44px;
  padding: 10px 13px;
}

.search-inline button {
  min-height: 44px;
  padding: 10px 16px;
}

.nav-inner {
  min-height: 54px;
}

.menu-list {
  gap: 20px;
  font-size: 0.92rem;
}

.menu-list > li > a,
.mega-trigger {
  min-height: 38px;
}

.mega-trigger {
  padding: 8px 14px;
}

.breaking-ticker {
  background: #ef8a34;
  border: 0;
}

.breaking-ticker__inner {
  min-height: 34px;
}

.breaking-ticker__label {
  padding: 4px 9px;
  font-size: 0.66rem;
}

.breaking-ticker__track {
  color: var(--slate-950);
  font-size: 0.86rem;
}

.homepage-hero {
  padding: 22px 0;
}

.hero-mosaic__overlay {
  padding: 24px;
}


.hero-mosaic__overlay .hero-meta {
  font-size: 0.66rem;
}

.homepage-body {
  padding-top: 16px;
}

.section-head {
  min-height: 28px;
  margin-bottom: 14px;
}

.section-head .eyebrow,
.homepage-rail .ad-label,
.rail-module .sidebar-title {
  min-height: 20px;
  padding: 0 7px;
  font-size: 0.58rem;
  font-weight: 800;
}

.section-head h2 {
  font-size: 1rem;
  margin-top: 8px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.headline-grid .article-card:first-child .card-excerpt {
  display: block;
}

.headline-grid .article-card:first-child .card-meta {
  margin-top: 8px;
}

.headline-grid .article-card:not(:first-child) {
  padding: 10px 0;
}

.headline-grid .article-card:not(:first-child) .card-meta {
  font-size: 0.58rem;
}

.department-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.department-card__lead h4 {
  margin-top: 8px;
}

.department-list__item h4 {
  font-size: 0.88rem;
  line-height: 1.25;
}

.archive-news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 26px;
}

.archive-news-grid .article-card {
  border-bottom: 1px solid var(--slate-200);
  padding-bottom: 16px;
}

.archive-news-grid .article-card-link {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.archive-news-grid .card-thumb img {
  aspect-ratio: 4 / 3;
}

.archive-news-grid .card-content {
  padding: 0;
}

.archive-news-grid .card-title {
  font-size: 1rem;
  line-height: 1.24;
}

.archive-news-grid .card-excerpt {
  font-size: 0.84rem;
  margin-bottom: 0;
}

.archive-news-grid .card-meta {
  font-size: 0.58rem;
}

.homepage-rail {
  gap: 28px;
}

.homepage-rail .ad-placeholder {
  min-height: 220px;
}

.trending-list {
  gap: 0;
}

.trending-list li {
  padding: 13px 0;
}

.trending-list li:first-child {
  padding-top: 0;
}

.trending-rank {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 900;
}

.trending-copy strong {
  display: block;
  line-height: 1.22;
}

.tools-band {
  border-top: 1px solid #d8e1ea;
  border-bottom: 1px solid #d8e1ea;
}

.tools-band .section-head h2 {
  text-decoration: none;
}

/* Old min-height:520px desktop block removed — hero uses fixed height:240px now */

@keyframes pni-ticker-scroll {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}

@media (max-width: 1024px) {
  .hero-grid,
  .post-grid,
  .project-grid,
  .city-grid,
  .tools-grid,
  .pni-calc-shell,
  .pni-calc-grid,
  .calculator-grid,
  .archive-news-grid,
  .digest-grid,
  .newswire-grid,
  .stream-grid,
  .homepage-hero__grid,
  .homepage-shell,
  .headline-grid,
  .department-grid,
  .archive-grid,
  .article-layout,
  .lead-form-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .home-lead-grid {
    grid-template-columns: 1fr;
  }

  .homepage-rail {
    position: static;
    border-left: 0;
    padding-left: 0;
  }

  .hero-mosaic__stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-brand {
    gap: 14px;
  }

  .brand-mark img {
    max-width: 260px;
    height: 60px;
  }

  .brand-name {
    font-size: 1.3rem;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    padding: 16px 0 20px;
  }

  .menu-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .menu-list > li {
    width: 100%;
  }

  .menu-list > li > a {
    width: 100%;
    justify-content: space-between;
  }

  .menu-list .sub-menu {
    position: static;
    display: grid;
    min-width: 0;
    padding: 8px 0 0 14px;
    border: 0;
    box-shadow: none;
    background: transparent;
    margin-top: 0;
  }

  .menu-list > li > .sub-menu::before,
  .menu-list .sub-menu .sub-menu::before {
    display: none;
  }

  .menu-list .sub-menu a {
    padding: 8px 0;
  }

  .menu-list .sub-menu > li.menu-item-has-children > a::after {
    position: static;
    display: inline-block;
    margin-left: 10px;
    transform: rotate(135deg) translateY(1px);
  }

  .menu-list .sub-menu .sub-menu {
    left: auto;
    padding-left: 14px;
  }

  .nav-utilities {
    margin-left: 0;
  }

  .mega-menu-shell {
    width: 100%;
  }

  .mega-trigger {
    width: 100%;
    justify-content: center;
  }

  .mega-panel {
    position: static;
    min-width: 0;
    grid-template-columns: 1fr;
    margin-top: 12px;
  }

  .mega-panel--property,
  .insight-card-grid,
  .detail-table,
  .pni-calc-copy-grid,
  .pni-calculator-form--inline {
    grid-template-columns: 1fr;
  }

  .pni-calc-nav {
    position: static;
  }

  .detail-table div:nth-child(odd) {
    border-right: 0;
  }
}

@media (max-width: 1024px) {
  body.nav-open {
    overflow: hidden;
  }

  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(15, 23, 42, 0.46);
  }

  body.nav-open .site-header {
    z-index: 130;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    display: flex;
    flex-direction: column;
    width: min(88vw, 380px);
    height: 100dvh;
    padding: 22px;
    overflow-y: auto;
    background: var(--white);
    box-shadow: -22px 0 60px rgba(15, 23, 42, 0.2);
    transform: translateX(105%);
    transition: transform 0.22s ease;
    visibility: hidden;
    pointer-events: none;
  }

  .nav-menu.is-open {
    display: flex !important;
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .menu-close {
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--slate-200);
    border-radius: 50%;
    background: var(--white);
    color: var(--slate-950);
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
  }

  .menu-list {
    margin-top: 10px;
  }

  .nav-utilities {
    width: 100%;
  }

  .mega-panel {
    box-shadow: none;
  }
}

@media (max-width: 720px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .cookie-banner__body,
  .contact-form__row,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .cookie-banner__body,
  .cookie-banner__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner__button,
  .cookie-banner__link {
    text-align: center;
  }

  .homepage-hero {
    padding-top: 14px;
  }

  .hero-mosaic__stack {
    grid-template-columns: 1fr;
  }

  /* aspect-ratio removed — hero uses fixed heights (240px lead, 110px thumb) */

  .hero-mosaic__overlay,
  .hero-mosaic__copy {
    padding: 16px;
  }


  .homepage-body {
    padding-top: 0;
  }

  .homepage-section {
    padding-bottom: 28px;
  }

  .section-head {
    align-items: flex-start;
  }

  .section-head h2 {
    font-size: 1rem;
  }

  .headline-grid .article-card:first-child {
    grid-row: auto;
  }

  .headline-grid .article-card:not(:first-child) .article-card-link,
  .archive-news-grid .article-card-link {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .headline-grid .article-card:first-child .card-title {
    font-size: 1.35rem;
  }

  .archive-news-grid .card-excerpt {
    display: none;
  }

  .tools-band {
    padding: 20px;
  }

  .search-inline {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar .container {
    flex-direction: column;
    align-items: stretch;
  }

  .site-brand {
    gap: 12px;
    align-items: flex-start;
  }

  .brand-mark img {
    max-width: min(100%, 320px);
    height: auto;
  }

  .brand-copy {
    gap: 4px;
  }

  .brand-name {
    font-size: 1.2rem;
  }

  .lead-story-card a {
    grid-template-columns: 1fr;
  }

  .lead-story-thumb img {
    aspect-ratio: 16 / 10;
  }

  .newswire-lead__copy h3 {
    font-size: 1.6rem;
  }

  .hero-copy h1 {
    font-size: 2.4rem;
  }

  .fact-grid {
    grid-template-columns: 1fr;
  }

  .article-full,
  .hero-copy,
  .card-content,
  .tool-card,
  .lead-form-card,
  .faq-card,
  .ad-slot,
  .sidebar-card {
    padding: 18px;
  }
}

@media (max-width: 720px) {
  .topbar {
    padding: 12px 0;
  }

  .site-brand {
    align-items: center;
    flex-direction: row;
  }

  .brand-mark img {
    width: auto;
    max-width: 235px;
    height: 52px;
    object-fit: contain;
  }

  .search-inline {
    width: 100%;
    margin-left: 0;
  }

  .main-nav .container {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .nav-inner {
    min-height: auto;
  }

  /* Hero grid: single column on mobile */
  .homepage-hero__grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* Smaller text on mobile */
  .hero-mosaic__overlay h1 {
    font-size: clamp(1.2rem, 6vw, 1.6rem);
    line-height: 1.15;
  }

  .hero-mosaic__copy h3 { font-size: 0.92rem; }

  .article-layout {
    gap: 18px;
  }

  .site-sidebar .ad-slot {
    margin-top: 0;
  }
}

/* Old homepage-hero overrides removed — new flexbox hero handles all sizes cleanly */

/* =============================================================================
   PNI Brand Overrides
   These run after the design system to apply the brand palette.
   ============================================================================= */

/* Page background */
body {
  background: var(--pni-off-white);
  color: var(--pni-text);
  font-family: var(--font-sans);
}

/* ── Site header — LIGHT MODE (default) ──────────────────────────────────── */
.site-header {
  background: #ffffff;
  border-bottom: 2px solid var(--pni-gold);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Logo: light mode shows light logo, hides dark logo */
.brand-logo--light { display: inline-flex; }
.brand-logo--dark  { display: none; }
/* No invert filter — upload a dark-colored logo via Theme Settings > Light Mode Logo URL */

/* Brand text — dark on white header */
.brand-name    { color: var(--pni-navy); }
.brand-tagline { color: var(--pni-gold-dark); }

/* Search bar — light mode */
.site-search-bar {
  background: #f0ede8;
  border-top: 1px solid var(--pni-border);
  border-bottom: 1px solid var(--pni-border);
}
.search-full input[type="search"] {
  background: #ffffff;
  border: 1px solid var(--pni-border);
  color: var(--pni-text);
}
.search-full input[type="search"]::placeholder { color: var(--pni-text-muted); }
.search-full input[type="search"]:focus {
  border-color: var(--pni-navy);
  background: #ffffff;
}

/* Nav links — dark on light header */
.menu-list > li > a { color: var(--pni-navy); }
.menu-list > li > a:hover,
.menu-list > li.current-menu-item > a,
.menu-list > li.current_page_item > a { color: var(--pni-gold-dark); }
.menu-list > li.menu-item-has-children > a::after {
  border-right-color: var(--pni-navy);
  border-bottom-color: var(--pni-navy);
}

/* Hamburger — navy on light header */
.menu-toggle { background: var(--pni-navy); color: #ffffff; border-radius: var(--radius); }
.menu-toggle:hover { background: var(--pni-navy-light); }

/* Lang selector — dark style in light header */
.pni-lang-btn {
  border-color: rgba(12,31,61,0.25);
  background: rgba(12,31,61,0.06);
  color: var(--pni-navy);
}
.pni-lang-btn:hover { border-color: var(--pni-gold-dark); color: var(--pni-gold-dark); background: rgba(12,31,61,0.1); }

/* Breaking ticker always dark */
.breaking-ticker { background: var(--pni-navy); }

/* Mega trigger — dark on light header */
.mega-trigger {
  border-color: rgba(12,31,61,0.3);
  color: var(--pni-navy);
  background: transparent;
}
.mega-trigger:hover { background: rgba(12,31,61,0.06); color: var(--pni-gold-dark); border-color: var(--pni-gold-dark); }

@media (max-width: 720px) {
  .site-search-bar { padding: 8px 0; }
  .search-full button { padding: 10px 14px; font-size: 0.88rem; }
}

/* ── DARK MODE header overrides ──────────────────────────────────────────── */
[data-theme="dark"] .site-header { background: #070e1c; border-bottom-color: var(--pni-gold); }
[data-theme="dark"] .brand-logo--light { display: none; }
[data-theme="dark"] .brand-logo--dark  { display: inline-flex; }
[data-theme="dark"] .brand-name    { color: #ffffff; }
[data-theme="dark"] .brand-tagline { color: var(--pni-gold); }
[data-theme="dark"] .site-search-bar { background: rgba(0,0,0,0.28); border-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .search-full input[type="search"] { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.18); color: #fff; }
[data-theme="dark"] .search-full input[type="search"]::placeholder { color: rgba(255,255,255,0.45); }
[data-theme="dark"] .menu-list > li > a { color: rgba(255,255,255,0.88); }
[data-theme="dark"] .menu-list > li > a:hover,
[data-theme="dark"] .menu-list > li.current-menu-item > a { color: var(--pni-gold); }
[data-theme="dark"] .menu-list > li.menu-item-has-children > a::after { border-right-color: rgba(255,255,255,0.6); border-bottom-color: rgba(255,255,255,0.6); }
[data-theme="dark"] .menu-toggle { background: var(--pni-gold); color: var(--pni-navy); }
[data-theme="dark"] .pni-lang-btn { border-color: rgba(255,255,255,0.28); background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.9); }
[data-theme="dark"] .theme-toggle { border-color: rgba(255,255,255,0.28); background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.9); }
[data-theme="dark"] .mega-trigger { border-color: rgba(255,255,255,0.28); color: rgba(255,255,255,0.88); background: transparent; }
[data-theme="dark"] .mega-trigger:hover { background: rgba(255,255,255,0.1); color: var(--pni-gold); }

/* ── Primary nav sub-menus (both modes stay light) ───────────────────────── */

/* Sub-menus remain light */
.menu-list .sub-menu {
  background: rgba(255, 255, 255, 0.99);
  border-color: var(--pni-border);
  border-radius: var(--radius-lg);
}
.menu-list .sub-menu a { color: var(--pni-text); }
.menu-list .sub-menu a:hover,
.menu-list .sub-menu .current-menu-item > a {
  color: var(--pni-gold-dark);
  background: var(--slate-100);
}

/* ── Search bar inside topbar ─────────────────────────────────────────────── */
.search-inline input {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  border-radius: var(--radius);
}
.search-inline input::placeholder { color: rgba(255, 255, 255, 0.44); }
.search-inline input:focus {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--pni-gold);
  outline: none;
}
.search-inline button {
  background: var(--pni-gold);
  color: var(--pni-navy);
  border-radius: var(--radius);
}
.search-inline button:hover { background: var(--pni-gold-dark); }

/* ── Mega menu trigger — light mode (dark text on white nav) ──────────────── */
.mega-trigger {
  border-color: var(--pni-navy);
  color: var(--pni-navy);
  background: transparent;
  font-weight: 700;
}
.mega-trigger:hover,
.mega-trigger[aria-expanded="true"] {
  background: var(--pni-navy);
  color: #ffffff;
  border-color: var(--pni-navy);
}
.mega-trigger:focus-visible { outline-color: var(--pni-gold-dark); }

/* ── Breaking ticker ──────────────────────────────────────────────────────── */
.breaking-ticker {
  background: var(--pni-navy);
  border-bottom: 1px solid rgba(232, 160, 32, 0.35);
}
.breaking-ticker__label {
  background: var(--pni-gold);
  color: var(--pni-navy);
  font-weight: 800;
}
.breaking-ticker__track { color: rgba(255, 255, 255, 0.88); }
a.breaking-ticker__item:hover { color: var(--pni-gold); }
.breaking-ticker__item::after { color: var(--pni-gold); }

/* ── Section heads ─────────────────────────────────────────────────────────── */
.section-head {
  border-left: 3px solid var(--pni-gold);
  padding-left: 14px;
}

/* Eyebrow labels — dark amber on light BGs (6:1 contrast), gold on dark BGs */
.eyebrow { color: #8B5E13; } /* #8B5E13 on white = 5.7:1, passes WCAG AA */
[data-theme="dark"] .eyebrow { color: var(--pni-gold); }
/* Overlays and dark-background eyebrows keep the gold colour — already high-contrast there */
.hero-mosaic__overlay .eyebrow,
.hero-mosaic__copy .eyebrow { color: var(--pni-gold-dark); }

/* Department card head link */
.department-card__head h3 a:hover { color: var(--pni-gold-dark); }

/* ── CTAs ─────────────────────────────────────────────────────────────────── */
.lead-form-grid button[type="submit"],
.contact-form button[type="submit"] {
  background: var(--pni-navy);
  color: #ffffff;
}
.lead-form-grid button[type="submit"]:hover,
.contact-form button[type="submit"]:hover { background: var(--pni-navy-light); }

/* Sidebar links */
.sidebar-card a:hover { color: var(--pni-gold-dark); }

/* Pagination active */
.page-numbers.current {
  background: var(--pni-navy);
  color: #ffffff;
  border-radius: var(--radius);
}
.page-numbers:not(.current):hover { color: var(--pni-gold-dark); }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--pni-navy);
  color: rgba(255, 255, 255, 0.72);
  border-top: 2px solid rgba(232, 160, 32, 0.3);
}
.footer-logo { color: #ffffff; }
.footer-grid h3 {
  color: var(--pni-gold);
  border-bottom: 1px solid rgba(232, 160, 32, 0.25);
  padding-bottom: 10px;
  margin-bottom: 14px;
}
.footer-menu a { color: rgba(255, 255, 255, 0.68); }
.footer-menu a:hover { color: var(--pni-gold); }
.footer-contact a { color: rgba(255, 255, 255, 0.68); }
.footer-contact a:hover { color: var(--pni-gold); }

/* keyboard-focused sub-menu */
.menu-list > li.is-kb-open > .sub-menu { display: grid; gap: 4px; }

/* ── Mobile nav drawer ────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .nav-menu {
    background: var(--pni-navy);
    box-shadow: -22px 0 60px rgba(12, 31, 61, 0.4);
  }
  .menu-close {
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.08);
  }
  .menu-list > li > a { color: rgba(255, 255, 255, 0.88); }
  .menu-list .sub-menu {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
  }
  .menu-list .sub-menu a { color: rgba(255, 255, 255, 0.78); }
  .menu-list .sub-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--pni-gold);
  }

  /* Explore Property — full width trigger, mega panel as accordion */
  .mega-menu-shell { width: 100%; margin-top: 8px; }
  .mega-trigger {
    width: 100%;
    border-color: rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.88);
    background: rgba(255,255,255,0.06);
    border-radius: var(--radius);
    padding: 12px 18px;
    font-weight: 700;
    font-size: 0.9rem;
  }
  /* On mobile: mega panel is a simple full-width list, not a multi-column grid */
  .mega-panel {
    position: static !important;
    top: auto !important;
    right: auto !important;
    min-width: 0 !important;
    width: 100%;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    margin-top: 6px;
    padding: 10px;
    box-shadow: none !important;
    display: none;
  }
  .mega-panel.is-open { display: grid !important; }
  .mega-column { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .mega-column:last-child { border-bottom: 0; }
  .mega-column h3 { color: var(--pni-gold); font-size: 0.72rem; letter-spacing: 0.08em; margin-bottom: 6px; }
  .mega-column ul { display: flex; flex-wrap: wrap; gap: 4px 12px; }
  .mega-column a { color: rgba(255,255,255,0.78); font-size: 0.88rem; padding: 4px 0; }
  .mega-column a:hover { color: var(--pni-gold); }
}


/* Google Translate: hide all injected UI since we use custom selector */
.goog-text-highlight { background: none !important; box-shadow: none !important; }

/* =============================================================================
   Mobile sub-menu expand buttons (injected by JS)
   Uses max-height for show/hide — zero CSS display property conflicts
   ============================================================================= */

.mobile-sub-btn { display: none; } /* hidden on desktop */

@media (max-width: 1024px) {
  /* Each parent li: flex row → [link] [button] then sub-menu wraps below */
  .nav-menu .menu-list .menu-item-has-children {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }
  .nav-menu .menu-list .menu-item-has-children > a {
    flex: 1;
    min-width: 0;
  }

  /* Toggle button */
  .nav-menu .mobile-sub-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border: 0;
    background: transparent;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    touch-action: manipulation;
  }
  .nav-menu .mobile-sub-btn span { display: block; transition: transform 0.22s ease; }
  .nav-menu .mobile-sub-btn[aria-expanded="true"] span { transform: rotate(90deg); }
  .nav-menu .mobile-sub-btn[aria-expanded="true"],
  .nav-menu .mobile-sub-btn:hover { color: var(--pni-gold); }

  /* Sub-menus: always display:block, hidden via max-height — no display war */
  .nav-menu .menu-list .sub-menu {
    display: block !important;  /* critical: JS uses max-height, not display */
    flex-basis: 100%;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease;
    position: static !important;
    box-shadow: none !important;
    border-radius: 0 0 var(--radius) var(--radius);
    margin: 0 0 0 16px;
    padding: 0;
    background: rgba(255,255,255,0.04);
    border-left: 2px solid rgba(232,160,32,0.35);
    min-width: 0;
  }

  /* Desktop hover/focus-within uses display — does not affect max-height, no kill needed */
  /* max-height is controlled only by JS inline styles, zero CSS conflict possible */

  /* Hide the desktop ::after chevron — button has its own indicator */
  .nav-menu .menu-list .menu-item-has-children > a::after { display: none !important; }
}

/* =============================================================================
   Dark / Light mode
   ============================================================================= */

/* Light mode tokens (default) */
:root {
  --color-body-bg:   #ffffff;
  --color-card-bg:   #ffffff;
  --color-card-border: #E2E0DE;
  --color-text:      #1A1917;
  --color-text-muted:#6B6967;
  --color-input-bg:  #ffffff;
  --color-sidebar-bg:#ffffff;
  --color-section-bg:#ffffff;
}

/* Dark mode tokens */
[data-theme="dark"] {
  --color-body-bg:    #0B1422;
  --color-card-bg:    #131f33;
  --color-card-border:rgba(255,255,255,0.07);
  --color-text:       #ddd8d2;
  --color-text-muted: #8a8580;
  --color-input-bg:   #1b2c45;
  --color-sidebar-bg: #131f33;
  --color-section-bg: #131f33;
  /* Header tokens for dark mode */
  --pni-navy: #070e1c;
  --pni-navy-light: #0f1e35;
}

/* Dark mode: header becomes even darker */
[data-theme="dark"] .site-header {
  background: #070e1c;
  border-bottom-color: rgba(232,160,32,0.5);
}
[data-theme="dark"] .site-search-bar {
  background: rgba(0,0,0,0.3);
  border-top-color: rgba(255,255,255,0.05);
  border-bottom-color: rgba(255,255,255,0.05);
}
[data-theme="dark"] .breaking-ticker {
  background: #070e1c;
}

/* Dark mode: homepage sections */
[data-theme="dark"] .homepage-hero,
[data-theme="dark"] .homepage-body,
[data-theme="dark"] .homepage-section,
[data-theme="dark"] .homepage-shell,
[data-theme="dark"] .homepage-main,
[data-theme="dark"] .homepage-rail { background: var(--color-body-bg); }

[data-theme="dark"] .newsroom-band,
[data-theme="dark"] .stream-section { background: var(--color-card-bg); }

[data-theme="dark"] .tools-band {
  background: rgba(7,14,28,0.8);
}

[data-theme="dark"] .hero-mosaic__lead,
[data-theme="dark"] .hero-mosaic__card { background: #131f33; }

/* Dark mode: article cards */
[data-theme="dark"] .article-card,
[data-theme="dark"] .department-card,
[data-theme="dark"] .related-card { background: var(--color-card-bg); border-color: var(--color-card-border); }

/* Dark mode: section headings */
[data-theme="dark"] .section-block { background: var(--color-body-bg); }
[data-theme="dark"] .section-head h2 { color: var(--color-text); }

/* Dark mode: nav drawer background already handled by brand overrides */

/* Dark mode: sub-menu in desktop stays dark */
[data-theme="dark"] .menu-list .sub-menu {
  background: #131f33;
  border-color: rgba(255,255,255,0.08);
}

/* Cookie banner: always dark, never affected by theme tokens */
.cookie-banner__body {
  background: rgba(7, 14, 28, 0.97) !important;
  color: #ffffff !important;
}
.cookie-banner__body p { color: rgba(255,255,255,0.88) !important; }
.cookie-banner__link { color: rgba(255,255,255,0.75) !important; }
.cookie-banner__button {
  background: #ffffff !important;
  color: #0c1f3d !important;
}

/* All white-background card/block elements */
.article-card, .hero-card, .tool-card, .lead-form-card,
.sidebar-card, .ad-slot, .faq-card, .department-card,
.comments-card, .related-card, .error-card,
.stream-section, .insight-panel, .fact-card,
.comment-body,
.calc-section, .calc-outputs--light,
.pni-calc-copy, .pni-calc-faq {
  background: var(--color-card-bg);
  border-color: var(--color-card-border);
}

/* Section backgrounds */
.section-block, .homepage-body, .homepage-section,
.archive-grid, .article-layout, .calc-page-body { background: var(--color-body-bg); }

.newsroom-band { background: var(--color-card-bg); }

/* Text colors */
.article-body, .article-body p, .card-excerpt,
.lead-form-card p, .sidebar-card p,
.hero-copy p, .section-head p,
.stream-lead p, .department-card__lead p,
.related-card__copy .card-meta { color: var(--color-text-muted); }

.card-title, .article-title, .department-card__head h3 a,
.trending-copy strong, h1, h2, h3, h4,
.related-card__copy h3, .stream-lead h4,
.stream-list-item h4, .article-card-link h3 { color: var(--color-text); }

a { color: inherit; }

/* ── Dark mode specific overrides ────────────────────────────────────────── */
[data-theme="dark"] .tools-band {
  background: rgba(12, 31, 61, 0.6);
}

[data-theme="dark"] .hero-mosaic__lead,
[data-theme="dark"] .hero-mosaic__card { background: var(--color-card-bg); }

/* Sub-menu stays light-ish in dark mode */
[data-theme="dark"] .menu-list .sub-menu {
  background: rgba(22, 34, 54, 0.99);
  border-color: rgba(255,255,255,0.1);
}
[data-theme="dark"] .menu-list .sub-menu a { color: rgba(255,255,255,0.82); }

/* Forms */
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="search"],
[data-theme="dark"] input[type="tel"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  background: var(--color-input-bg) !important;
  border-color: rgba(255,255,255,0.12) !important;
  color: var(--color-text) !important;
}
[data-theme="dark"] .search-full input[type="search"] {
  background: rgba(255,255,255,0.08) !important;
}

/* Sidebar */
[data-theme="dark"] .site-sidebar,
[data-theme="dark"] .rail-module,
[data-theme="dark"] .sidebar-card {
  background: var(--color-sidebar-bg);
  border-color: var(--color-card-border);
}
[data-theme="dark"] .sidebar-card a { color: var(--color-text); }
[data-theme="dark"] .trending-list li { border-color: var(--color-card-border); }

/* Fact cards, insight cards in dark */
[data-theme="dark"] .fact-card { background: rgba(255,255,255,0.06); }
[data-theme="dark"] .insight-card--blue  { background: rgba(14,100,180,0.2); }
[data-theme="dark"] .insight-card--green { background: rgba(10,114,39,0.2);  }
[data-theme="dark"] .insight-card--orange{ background: rgba(180,100,14,0.2); }
[data-theme="dark"] .insight-card--pink  { background: rgba(180,14,100,0.2); }

[data-theme="dark"] .infra-col h3 { color: var(--color-text); }
[data-theme="dark"] .infra-col ul li { color: var(--color-text-muted); border-color: var(--color-card-border); }
[data-theme="dark"] .highlights-list li { background: var(--color-card-bg); color: var(--color-text-muted); }
[data-theme="dark"] .amenity-chip { background: var(--color-card-bg); border-color: var(--color-card-border); color: var(--color-text-muted); }
[data-theme="dark"] .why-invest-callout { background: rgba(255,255,255,.04); }
[data-theme="dark"] .why-invest-callout p { color: var(--color-text); }
[data-theme="dark"] .faq-question { background: var(--color-card-bg); color: var(--color-text); }
[data-theme="dark"] .faq-item { border-color: var(--color-card-border); }
[data-theme="dark"] .faq-answer p { color: var(--color-text-muted); }

/* Breadcrumbs */
[data-theme="dark"] .breadcrumbs { color: var(--color-text-muted); }

/* Pagination */
[data-theme="dark"] .page-numbers:not(.current) {
  color: var(--color-text);
  border-color: var(--color-card-border);
}

/* Article detail table */
[data-theme="dark"] .detail-table,
[data-theme="dark"] .trend-table { border-color: var(--color-card-border); }
[data-theme="dark"] .detail-table div,
[data-theme="dark"] .trend-table div { border-color: var(--color-card-border); }

/* Calculator outputs in dark */
[data-theme="dark"] .calc-outputs--light {
  background: rgba(255,255,255,0.04);
  border-color: var(--color-card-border);
  color: var(--color-text);
}

/* ── Dark mode: gaps we missed ────────────────────────────────────────────── */

/* Archive / category / search / home pages */
[data-theme="dark"] .archive-news-grid .article-card { border-color: var(--color-card-border); }
[data-theme="dark"] .archive-news-grid .card-title { color: var(--color-text); }
[data-theme="dark"] .archive-news-grid .card-excerpt { color: var(--color-text-muted); }
[data-theme="dark"] .tag-cloud a,
[data-theme="dark"] .tag-cloud span {
  background: var(--color-card-bg);
  border-color: var(--color-card-border);
  color: var(--color-text-muted);
}
[data-theme="dark"] .tag-cloud a:hover { border-color: var(--pni-gold); color: var(--pni-gold); }

/* Section heads */
[data-theme="dark"] .section-head h2 { color: var(--color-text); }
[data-theme="dark"] .section-link { border-color: var(--color-card-border); color: var(--color-text-muted); }

/* Tools band */
[data-theme="dark"] .tools-band { background: rgba(7,14,28,0.7); }
[data-theme="dark"] .newsroom-band { background: var(--color-card-bg); }

/* Post grid / project grid cards */
[data-theme="dark"] .post-grid .article-card,
[data-theme="dark"] .stack-list .article-card { background: var(--color-card-bg); border-color: var(--color-card-border); }

/* Author page */
[data-theme="dark"] .author-name { color: var(--color-text); }
[data-theme="dark"] .author-bio { color: var(--color-text-muted); }
[data-theme="dark"] .author-link { color: var(--pni-gold); }

/* Hero card text */
[data-theme="dark"] .hero-mosaic__overlay h1,
[data-theme="dark"] .hero-mosaic__copy h3 { color: var(--color-text); }
[data-theme="dark"] .hero-mosaic__overlay .hero-meta { color: var(--color-text-muted); }

/* Pagination */
[data-theme="dark"] .page-numbers { color: var(--color-text); border-color: var(--color-card-border); }
[data-theme="dark"] .page-numbers.current { background: var(--pni-gold); color: var(--pni-navy); border-color: var(--pni-gold); }

/* Read more / section links */
[data-theme="dark"] .resource-link { background: var(--pni-gold-dark); }
[data-theme="dark"] .insight-panel { background: var(--color-card-bg); border-color: var(--color-card-border); }

/* Search form in dark */
[data-theme="dark"] .archive-hero h1 { color: var(--color-text); }

/* Department grid */
[data-theme="dark"] .department-card { background: var(--color-card-bg); border-color: var(--color-card-border); }
[data-theme="dark"] .department-card__lead p { color: var(--color-text-muted); }
[data-theme="dark"] .department-list__item { border-color: var(--color-card-border); }
[data-theme="dark"] .department-list__item h4,
[data-theme="dark"] .department-card__lead h4 { color: var(--color-text); }

/* ── Theme toggle button (base — light mode) ─────────────────────────────── */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--pni-gold-dark);
  background: transparent;
  color: var(--pni-navy);
  cursor: pointer;
  font-size: 1rem;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.theme-toggle:hover {
  background: var(--pni-gold);
  border-color: var(--pni-gold);
  color: var(--pni-navy);
}
@media (max-width: 720px) {
  .theme-toggle { width: 30px; height: 30px; font-size: 0.88rem; }
}


/* =============================================================================
   Option A - Indian Green as secondary accent
   ============================================================================= */
:root {
  --pni-green:      #138808;
  --pni-green-light:#e8f5e2;
}

/* RERA verified badge */
.rera-badge,
.badge--verified  { background: var(--pni-green-light); color: var(--pni-green); }

/* Positive price trend */
.trend--up   { color: var(--pni-green); font-weight: 700; }
.trend--down { color: #d32f2f; font-weight: 700; }

/* New launch tag */
.tag--new {
  background: var(--pni-green);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Active nav item gets gold underline */
.menu-list > li.current-menu-item > a,
.menu-list > li.current_page_item > a {
  color: var(--pni-gold) !important;
  border-bottom: 2px solid var(--pni-gold);
  padding-bottom: 8px;
}
