
      /* ── CSS variables (standalone fallback when styles.css isn't loaded) ── */
      :root {
        --bg: #f8fafc;
        --surface: #ffffff;
        --ink: #0f172a;
        --muted: #64748b;
        --line: #e2e8f0;
        --accent: #4f46e5;
        --accent-dark: #4338ca;
        --green: #059669;
        --amber: #f59e0b;
        --red: #dc2626;
        --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
        --font-data: "Geist Mono", "SF Mono", ui-monospace, monospace;
      }

      /* ── Base (for standalone pages that only load neighborhood.css) ── */
      body {
        margin: 0;
        font-family: var(--font-sans);
        background: var(--bg);
        color: var(--ink);
        -webkit-font-smoothing: antialiased;
      }

      /* ── Header ── */
      .nb-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 24px;
        border-bottom: 1px solid var(--line);
        background: var(--surface);
        position: sticky;
        top: 0;
        z-index: 10;
      }
      .nb-logo img { height: 38px; }
      .nb-search-link {
        font-size: 13px;
        font-weight: 500;
        color: var(--accent);
        text-decoration: none;
      }
      .nb-search-link:hover { text-decoration: underline; }

      /* ── Footer ── */
      .footer {
        background: #0f172a;
        color: rgba(255,255,255,0.5);
        margin-top: 40px;
      }
      .footer-inner {
        max-width: 1080px;
        margin: 0 auto;
        padding: 32px 20px;
        text-align: center;
      }

      /* ── Neighborhood page layout ── */
      .nb-page {
        max-width: 1120px;
        margin: 0 auto;
        padding: 0 20px 80px;
      }

      /* ── Back nav ── */
      .nb-back {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 13px;
        color: var(--muted);
        text-decoration: none;
        padding: 16px 0;
        transition: color 0.15s;
      }
      .nb-back:hover { color: var(--accent); }
      .nb-back svg { flex-shrink: 0; }

      /* ── Hero ── */
      .nb-hero {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #312e81 100%);
        border-radius: 16px;
        padding: 48px 40px 40px;
        color: #fff;
        margin-bottom: 32px;
        position: relative;
        overflow: hidden;
      }
      .nb-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(ellipse at 80% 20%, rgba(79,70,229,0.25) 0%, transparent 60%);
        pointer-events: none;
      }
      .nb-hero > * { position: relative; }
      .nb-hero-label {
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: rgba(255,255,255,0.55);
        margin-bottom: 8px;
      }
      .nb-hero h1 {
        font-size: clamp(36px, 5vw, 56px);
        font-weight: 800;
        letter-spacing: -0.035em;
        line-height: 1.05;
        margin-bottom: 12px;
      }
      .nb-hero-tagline {
        font-size: clamp(15px, 1.6vw, 18px);
        color: rgba(255,255,255,0.7);
        max-width: 640px;
        line-height: 1.5;
        margin-bottom: 28px;
      }
      .nb-hero-pills {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
      }
      .nb-hero-pill {
        display: flex;
        flex-direction: column;
        background: rgba(255,255,255,0.08);
        border: 1px solid rgba(255,255,255,0.12);
        border-radius: 10px;
        padding: 14px 20px;
        min-width: 140px;
        backdrop-filter: blur(8px);
      }
      .nb-hero-pill-value {
        font-family: var(--font-data);
        font-size: 22px;
        font-weight: 700;
        letter-spacing: -0.02em;
        color: #fff;
      }
      .nb-hero-pill-label {
        font-size: 11px;
        font-weight: 500;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: rgba(255,255,255,0.5);
        margin-top: 2px;
      }

      /* ── Section chrome ── */
      .nb-section {
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 12px;
        padding: 28px 28px 24px;
        margin-bottom: 20px;
      }
      .nb-section-header {
        display: flex;
        align-items: baseline;
        gap: 10px;
        margin-bottom: 20px;
      }
      .nb-section-header h2 {
        font-size: 16px;
        font-weight: 700;
        letter-spacing: -0.01em;
        color: var(--ink);
      }
      .nb-section-header .nb-badge {
        font-family: var(--font-data);
        font-size: 11px;
        font-weight: 600;
        background: var(--accent);
        color: #fff;
        border-radius: 6px;
        padding: 2px 8px;
        white-space: nowrap;
      }
      .nb-section-sub {
        font-size: 13px;
        color: var(--muted);
        margin-top: -12px;
        margin-bottom: 18px;
      }

      /* ── Big KPI strip ── */
      .nb-kpi-strip {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 16px;
        margin-bottom: 32px;
      }
      .nb-kpi {
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 10px;
        padding: 18px 16px 14px;
        text-align: center;
      }
      .nb-kpi-value {
        font-family: var(--font-data);
        font-size: 24px;
        font-weight: 700;
        letter-spacing: -0.02em;
        color: var(--ink);
      }
      .nb-kpi-value.accent { color: var(--accent); }
      .nb-kpi-value.green { color: var(--green); }
      .nb-kpi-label {
        font-size: 11px;
        font-weight: 500;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: var(--muted);
        margin-top: 4px;
      }
      .nb-kpi-note {
        font-size: 11px;
        color: var(--muted);
        margin-top: 2px;
      }

      /* ── Horizontal bar chart ── */
      .nb-bar-chart { display: grid; gap: 8px; }
      .nb-bar-row {
        display: grid;
        grid-template-columns: 180px 1fr 70px;
        align-items: center;
        gap: 10px;
        font-size: 13px;
      }
      .nb-bar-label {
        font-weight: 500;
        color: var(--ink);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      .nb-bar-track {
        height: 22px;
        background: var(--bg);
        border-radius: 4px;
        overflow: hidden;
        position: relative;
      }
      .nb-bar-fill {
        height: 100%;
        border-radius: 4px;
        background: var(--accent);
        transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
        min-width: 2px;
      }
      .nb-bar-fill.dominant {
        background: linear-gradient(90deg, var(--accent), #7c3aed);
      }
      .nb-bar-stat {
        font-family: var(--font-data);
        font-size: 12px;
        color: var(--muted);
        text-align: right;
        white-space: nowrap;
      }

      /* ── Data table ── */
      .nb-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
      }
      .nb-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 13px;
      }
      .nb-table th {
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: var(--muted);
        text-align: left;
        padding: 8px 12px;
        border-bottom: 2px solid var(--line);
        white-space: nowrap;
      }
      .nb-table th.right,
      .nb-table td.right { text-align: right; }
      .nb-table td {
        padding: 10px 12px;
        border-bottom: 1px solid var(--line);
        color: var(--ink);
      }
      .nb-table td.mono {
        font-family: var(--font-data);
        font-size: 12px;
        font-weight: 500;
      }
      .nb-table tbody tr:hover { background: rgba(79,70,229,0.03); }
      .nb-table .highlight-row { background: rgba(79,70,229,0.06); font-weight: 600; }

      /* ── Price trend chart (pure CSS) ── */
      .nb-trend-chart {
        display: flex;
        align-items: flex-end;
        gap: 6px;
        height: 180px;
        padding: 0 0 28px;
        position: relative;
        border-bottom: 1px solid var(--line);
        margin-bottom: 8px;
      }
      /* ── Indexed growth comparison chart ── */
      .nb-indexed-chart {
        position: relative;
        height: 200px;
        margin-top: 24px;
        padding: 0 0 28px;
        border-bottom: 1px solid var(--line);
      }
      .nb-indexed-chart svg {
        width: 100%;
        height: 100%;
        overflow: visible;
      }
      .nb-indexed-gridline {
        stroke: var(--line);
        stroke-width: 1;
      }
      .nb-indexed-gridlabel {
        font-family: var(--font-data);
        font-size: 10px;
        fill: var(--muted);
      }
      .nb-indexed-area-price {
        fill: rgba(79, 70, 229, 0.10);
      }
      .nb-indexed-line-price {
        fill: none;
        stroke: var(--accent);
        stroke-width: 2.5;
        stroke-linecap: round;
        stroke-linejoin: round;
      }
      .nb-indexed-area-cpi {
        fill: rgba(245, 158, 11, 0.10);
      }
      .nb-indexed-line-cpi {
        fill: none;
        stroke: #f59e0b;
        stroke-width: 2.5;
        stroke-linecap: round;
        stroke-linejoin: round;
      }
      .nb-indexed-dot-price {
        fill: var(--accent);
        stroke: #fff;
        stroke-width: 1.5;
      }
      .nb-indexed-dot-cpi {
        fill: #f59e0b;
        stroke: #fff;
        stroke-width: 1.5;
      }
      .nb-indexed-end-label {
        font-family: var(--font-data);
        font-size: 11px;
        font-weight: 700;
      }
      .nb-indexed-year-label {
        font-family: var(--font-data);
        font-size: 10px;
        fill: var(--muted);
        text-anchor: middle;
      }
      .nb-indexed-subtitle {
        font-size: 13px;
        color: var(--muted);
        margin-bottom: 14px;
      }
      .nb-trend-bar-group {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        position: relative;
        height: 100%;
        justify-content: flex-end;
      }
      .nb-trend-bar {
        width: 100%;
        max-width: 48px;
        border-radius: 4px 4px 0 0;
        background: var(--accent);
        position: relative;
        transition: height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
      }
      .nb-trend-bar:hover {
        background: var(--accent-dark);
      }
      .nb-trend-bar-tip {
        position: absolute;
        top: -20px;
        left: 50%;
        transform: translateX(-50%);
        font-family: var(--font-data);
        font-size: 10px;
        font-weight: 600;
        color: var(--ink);
        white-space: nowrap;
        opacity: 0;
        transition: opacity 0.15s;
      }
      .nb-trend-bar:hover .nb-trend-bar-tip { opacity: 1; }
      .nb-trend-year {
        position: absolute;
        bottom: -24px;
        font-size: 11px;
        font-weight: 500;
        color: var(--muted);
      }
      .nb-trend-legend {
        display: flex;
        gap: 16px;
        justify-content: center;
        margin-top: 12px;
        font-size: 12px;
        color: var(--muted);
      }

      /* ── Two column grid ── */
      .nb-two-col {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
      }
      /* ── Jump nav ── */
      html { scroll-behavior: smooth; }
      .nb-jump-nav a:hover {
        color: var(--accent);
        border-color: var(--accent);
      }
      .nb-divider[id] { scroll-margin-top: 72px; }

      /* ── Stats bar ── */
      .nb-stats-bar {
        display: flex;
        flex-wrap: wrap;
        gap: 0;
        margin-bottom: 28px;
        border: 1px solid var(--line);
        border-radius: 12px;
        overflow: hidden;
        background: var(--bg-card, #f8fafc);
      }
      .nb-stat {
        flex: 1;
        min-width: 120px;
        padding: 16px 20px;
        text-align: center;
        border-right: 1px solid var(--line);
      }
      .nb-stat--last { border-right: none; }
      .nb-stat-value {
        font-size: 22px;
        font-weight: 800;
        font-family: var(--font-data);
        color: var(--accent);
      }
      .nb-stat-label {
        font-size: 11px;
        color: var(--muted);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-top: 2px;
      }

      @media (max-width: 700px) {
        .nb-two-col { grid-template-columns: 1fr; }
        .nb-bar-row { grid-template-columns: 140px 1fr 60px; }
        .nb-hero { padding: 32px 20px; }
        .nb-hero-pill { min-width: 110px; padding: 10px 14px; }
        .nb-hero-pill-value { font-size: 18px; }
        .nb-section { padding: 20px 16px; }
        .nb-cta { padding: 32px 20px; }
        .nb-stats-bar {
          display: grid;
          grid-template-columns: 1fr 1fr;
          border-radius: 10px;
          margin-bottom: 20px;
        }
        .nb-stat {
          min-width: 0;
          padding: 12px 10px;
          border-right: none;
          border-bottom: 1px solid var(--line);
        }
        .nb-stat:nth-child(odd) { border-right: 1px solid var(--line); }
        .nb-stat:last-child,
        .nb-stat:nth-last-child(1),
        .nb-stat:nth-last-child(2) { border-bottom: none; }
        /* 5th item spans full width */
        .nb-stat:nth-child(5) { grid-column: 1 / -1; border-right: none; }
        .nb-stat-value { font-size: 18px; }
        .nb-context-cta { padding: 16px 18px; }
      }

      /* ── Condo vs non-condo comparison ── */
      .nb-compare-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        margin-top: 16px;
      }
      .nb-compare-card {
        background: var(--bg);
        border-radius: 8px;
        padding: 16px;
        text-align: center;
      }
      .nb-compare-card h4 {
        font-size: 13px;
        font-weight: 600;
        margin: 0 0 4px;
        color: var(--ink);
      }
      .nb-compare-stat {
        font-family: var(--font-data);
        font-size: 11px;
        color: var(--muted);
        margin-top: 4px;
      }
      .nb-compare-pct {
        font-family: var(--font-data);
        font-size: 28px;
        font-weight: 700;
        color: var(--accent);
      }

      /* ── Notable sales ── */
      .nb-sale-row {
        display: grid;
        grid-template-columns: 1fr auto auto;
        gap: 12px;
        align-items: center;
        padding: 10px 0;
        border-bottom: 1px solid var(--line);
        font-size: 13px;
      }
      .nb-sale-row:last-child { border-bottom: none; }
      .nb-sale-addr { font-weight: 600; color: var(--ink); }
      .nb-sale-detail { color: var(--muted); font-size: 12px; }
      .nb-sale-price {
        font-family: var(--font-data);
        font-weight: 700;
        color: var(--ink);
        font-size: 14px;
        white-space: nowrap;
      }

      /* ── Scrollable sale cards ── */
      .nb-sales-scroll-wrap {
        position: relative;
      }
      .nb-sales-scroll {
        display: flex;
        gap: 14px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 4px 2px 16px;
        scrollbar-width: thin;
        scrollbar-color: #cbd5e1 transparent;
      }
      .nb-sales-scroll::-webkit-scrollbar { height: 6px; }
      .nb-sales-scroll::-webkit-scrollbar-track { background: transparent; }
      .nb-sales-scroll::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
      .nb-sale-card {
        flex: 0 0 220px;
        scroll-snap-align: start;
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 12px;
        padding: 18px 18px 14px;
        text-decoration: none;
        color: inherit;
        transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
        display: flex;
        flex-direction: column;
        gap: 8px;
      }
      .nb-sale-card:hover {
        border-color: var(--accent);
        box-shadow: 0 4px 16px rgba(79,70,229,0.10);
        transform: translateY(-2px);
      }
      .nb-sale-card-price {
        font-family: var(--font-data);
        font-size: 20px;
        font-weight: 800;
        color: var(--ink);
        letter-spacing: -0.02em;
      }
      .nb-sale-card-addr {
        font-size: 14px;
        font-weight: 600;
        color: var(--ink);
        line-height: 1.3;
      }
      .nb-sale-card-detail {
        font-size: 12px;
        color: var(--muted);
        line-height: 1.4;
      }
      .nb-sale-card-tag {
        display: inline-block;
        font-size: 10px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        padding: 3px 8px;
        border-radius: 4px;
        margin-top: auto;
        width: fit-content;
      }
      .nb-sale-card-tag.sale {
        background: #ede9fe;
        color: #5b21b6;
      }
      .nb-sale-card-tag.new-dev {
        background: #dbeafe;
        color: #1e40af;
      }
      .nb-sale-card-link {
        font-size: 11px;
        font-weight: 600;
        color: var(--accent);
        margin-top: 4px;
      }
      .nb-scroll-hint {
        font-size: 11px;
        color: var(--muted);
        text-align: right;
        margin-bottom: 6px;
      }

      /* Auto-scroll: duplicate cards inside a marquee-style track */
      .nb-sales-scroll {
        overflow: hidden !important;
      }
      .nb-sales-track {
        display: flex;
        gap: 14px;
        width: max-content;
        animation: nb-sales-scroll 60s linear infinite;
      }
      .nb-sales-scroll:hover .nb-sales-track {
        animation-play-state: paused;
      }
      @keyframes nb-sales-scroll {
        0%   { transform: translateX(0); }
        100% { transform: translateX(-50%); }
      }

      /* ── Transit badges ── */
      .nb-transit-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 12px;
      }
      .nb-transit-badge {
        display: flex;
        align-items: center;
        gap: 10px;
        background: var(--bg);
        border-radius: 8px;
        padding: 12px 14px;
      }
      .nb-transit-icon {
        width: 36px;
        height: 36px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 800;
        font-size: 11px;
        color: #fff;
        flex-shrink: 0;
      }
      .nb-transit-icon.path { background: #0039a6; }
      .nb-transit-icon.rail { background: #00a651; }
      .nb-transit-icon.bus { background: #f7931e; }
      .nb-transit-name { font-weight: 600; font-size: 13px; color: var(--ink); }
      .nb-transit-detail { font-size: 11px; color: var(--muted); }

      /* ── Permit stats grid ── */
      .nb-permit-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
        margin-bottom: 20px;
      }
      .nb-permit-stat {
        background: var(--bg);
        border-radius: 8px;
        padding: 12px;
        text-align: center;
      }
      .nb-permit-stat-value {
        font-family: var(--font-data);
        font-size: 20px;
        font-weight: 700;
        color: var(--ink);
      }
      .nb-permit-stat-value.warn { color: var(--amber); }
      .nb-permit-stat-value.danger { color: var(--red); }
      .nb-permit-stat-label {
        font-size: 11px;
        color: var(--muted);
        text-transform: uppercase;
        letter-spacing: 0.03em;
        margin-top: 2px;
      }

      /* ── Inline Search CTA ── */
      .nb-search-cta {
        max-width: 680px;
        margin: 48px auto 40px;
      }
      .nb-search-cta-inner {
        background: linear-gradient(135deg, #f0f4ff 0%, #f8fafc 100%);
        border: 1.5px solid #e2e8f0;
        border-radius: 12px;
        padding: 32px 28px;
        text-align: center;
      }
      .nb-search-cta h3 {
        font-size: 20px;
        font-weight: 700;
        color: var(--ink);
        margin: 0 0 6px;
      }
      .nb-search-cta p {
        font-size: 14px;
        color: var(--muted);
        margin: 0 0 20px;
        line-height: 1.5;
      }
      .nb-search-cta-form {
        display: flex;
        gap: 8px;
        max-width: 460px;
        margin: 0 auto 12px;
      }
      .nb-search-cta-input {
        flex: 1;
        padding: 12px 16px;
        border: 1.5px solid var(--line);
        border-radius: 8px;
        font-size: 15px;
        font-family: var(--font-body);
        background: #fff;
        outline: none;
        transition: border-color 0.15s;
      }
      .nb-search-cta-input:focus {
        border-color: var(--accent);
        box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
      }
      .nb-search-cta-btn {
        background: var(--accent);
        color: #fff;
        border: none;
        border-radius: 8px;
        padding: 12px 24px;
        font-size: 15px;
        font-weight: 600;
        font-family: var(--font-body);
        cursor: pointer;
        transition: background 0.15s;
      }
      .nb-search-cta-btn:hover {
        background: #4338ca;
      }
      .nb-search-cta-sub {
        font-size: 12px;
        color: var(--muted);
        font-family: var(--font-data);
      }
      @media (max-width: 480px) {
        .nb-search-cta-form {
          flex-direction: column;
        }
        .nb-search-cta-btn {
          width: 100%;
        }
      }

      /* ── CTA ── */
      .nb-cta {
        background: linear-gradient(135deg, #0f172a 0%, #312e81 100%);
        border-radius: 16px;
        padding: 48px 40px;
        text-align: center;
        color: #fff;
        margin-top: 12px;
        margin-bottom: 40px;
      }
      .nb-cta h2 {
        font-size: clamp(22px, 3vw, 32px);
        font-weight: 700;
        color: #fff;
        margin-bottom: 8px;
      }
      .nb-cta p {
        color: rgba(255,255,255,0.65);
        margin-bottom: 24px;
        font-size: 15px;
      }
      .nb-cta-button {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: #fff;
        color: var(--accent);
        font-weight: 700;
        font-size: 15px;
        padding: 14px 32px;
        border-radius: 10px;
        text-decoration: none;
        border: none;
        transition: transform 0.15s, box-shadow 0.15s;
      }
      .nb-cta-button:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 24px rgba(0,0,0,0.25);
      }

      /* ── Inline highlight ── */
      .nb-highlight {
        background: rgba(79,70,229,0.08);
        color: var(--accent);
        font-weight: 600;
        border-radius: 4px;
        padding: 1px 6px;
        font-family: var(--font-data);
        font-size: 12px;
      }

      /* ── Top bar for this page ── */
      .nb-topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 20px;
        border-bottom: 1px solid var(--line);
        background: rgba(248, 250, 252, 0.94);
        backdrop-filter: blur(10px);
        position: sticky;
        top: 0;
        z-index: 10;
      }
      .nb-topbar-logo img {
        height: 38px;
        width: auto;
        object-fit: contain;
      }
      .nb-topbar-links {
        display: flex;
        align-items: center;
        gap: 20px;
      }
      .nb-topbar-link {
        font-size: 13px;
        font-weight: 500;
        color: var(--muted);
        text-decoration: none;
      }
      .nb-topbar-link:hover { color: var(--accent); }
      .nb-topbar-link-primary {
        color: var(--accent);
      }
      .nb-topbar-link-primary:hover { text-decoration: underline; }
      @media (max-width: 480px) {
        .nb-topbar-links { gap: 12px; }
        .nb-topbar-link { font-size: 12px; }
      }

      /* ── Neighborhood map banner ── */
      .nb-map-banner {
        border-radius: 12px;
        overflow: hidden;
        margin-bottom: 20px;
        position: relative;
      }
      .nb-map-banner img {
        width: 100%;
        height: auto;
        display: block;
      }
      .nb-map-banner-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 16px 24px 14px;
        background: linear-gradient(transparent, rgba(15,23,42,0.75));
        display: flex;
        align-items: center;
        justify-content: space-between;
      }
      .nb-map-banner-overlay span {
        font-size: 12px;
        color: rgba(255,255,255,0.7);
        font-weight: 500;
      }

      /* ── Narrative / History section ── */
      .nb-narrative {
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 12px;
        padding: 32px 32px 28px;
        margin-bottom: 20px;
      }
      .nb-narrative-header {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 16px;
      }
      .nb-narrative-header h2 {
        font-size: 18px;
        font-weight: 700;
        color: var(--ink);
        letter-spacing: -0.01em;
      }
      .nb-narrative-icon {
        width: 28px;
        height: 28px;
        border-radius: 8px;
        background: #f1f5f9;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
      }
      .nb-narrative p {
        font-size: 15px;
        line-height: 1.7;
        color: var(--ink);
        margin-bottom: 14px;
        max-width: 680px;
      }
      .nb-narrative p:last-child { margin-bottom: 0; }
      .nb-narrative .nb-highlight {
        font-weight: 600;
        color: var(--accent);
      }
      .nb-narrative-timeline {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 12px;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid var(--line);
      }
      .nb-timeline-item {
        text-align: center;
        padding: 14px 8px;
        border-radius: 8px;
        background: #f8fafc;
      }
      .nb-timeline-year {
        font-family: var(--font-data);
        font-size: 20px;
        font-weight: 700;
        color: var(--accent);
        display: block;
        margin-bottom: 4px;
      }
      .nb-timeline-event {
        font-size: 12px;
        color: var(--muted);
        line-height: 1.4;
      }

      /* ── Sub-neighborhoods grid ── */
      .nb-subhoods {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 12px;
      }
      .nb-subhood-card {
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 10px;
        padding: 18px 20px;
        transition: border-color 0.15s, box-shadow 0.15s;
      }
      .nb-subhood-card:hover {
        border-color: var(--accent);
        box-shadow: 0 2px 12px rgba(79,70,229,0.08);
      }
      .nb-subhood-name {
        font-size: 15px;
        font-weight: 700;
        color: var(--ink);
        margin-bottom: 6px;
      }
      .nb-subhood-stat {
        font-family: var(--font-data);
        font-size: 12px;
        color: var(--muted);
        line-height: 1.6;
      }
      .nb-subhood-stat strong {
        font-weight: 600;
        color: var(--ink);
      }
      .nb-subhood-bar {
        height: 4px;
        background: #e2e8f0;
        border-radius: 2px;
        margin-top: 10px;
        overflow: hidden;
      }
      .nb-subhood-bar-fill {
        height: 100%;
        background: var(--accent);
        border-radius: 2px;
      }

      /* ── Divider text ── */
      .nb-divider {
        display: flex;
        align-items: center;
        gap: 12px;
        margin: 32px 0 20px;
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--muted);
      }
      .nb-divider::after {
        content: "";
        flex: 1;
        height: 1px;
        background: var(--line);
      }

.footer-nb-grid{text-align:left}@media(max-width:768px){.footer-nb-grid{grid-template-columns:repeat(2,1fr)!important}}
