:root {
  /* V1236 canonical tokens */
  --paper:        #F4EFE6;
  --paper-2:      #EBE3D5;
  --ink:          #15140F;
  --ink-2:        #4A463B;
  --amber:        #E8551B;
  --amber-2:      #F08A3C;
  --amber-tint:   #fff5ec;
  --amber-line:   #f0cbab;
  --panel:        #15140F;
  --panel-line:   #2C2A22;
  --lime:         #C8E96A;
  --ok:           #7BD389;
  --line:         #D8CFBE;
  --pg-shadow:    0 2px 12px rgba(21,20,15,.10);
  --pg-shadow-lg: 0 18px 50px rgba(21,20,15,.14);

  /* Back-compat: legacy --pg-* tokens remapped to the new palette so
     existing templates render in the new identity automatically. */
  --pg-primary:      var(--amber);
  --pg-primary-dark: var(--ink);
  --pg-dark-bg:      var(--panel);
  --pg-light-bg:     var(--paper-2);
  --pg-white:        var(--paper);
  --pg-text:         var(--ink);
  --pg-text-gray:    var(--ink-2);
  --pg-border:       var(--line);
  --pg-success:      var(--ok);
  --pg-warning:      var(--amber-2);

  /* Fonts */
  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
}

/* Site-wide body sets paper background + ink text + Inter body font.
   Per-page styles can still override; this is the floor. */
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

/* Layout helpers */
.pg-container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.pg-section        { padding: 64px 0; }
.pg-section-light  { background: var(--paper-2); padding: 64px 0; }
.pg-section-dark   { background: var(--panel); color: var(--paper); padding: 64px 0; }

/* Mockup-spec eyebrow: mono uppercase amber pill */
.pg-eyebrow,
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--amber);
  background: var(--amber-tint);
  border: 1px solid var(--amber-line);
  border-radius: 999px;
  padding: 6px 12px;
}
.pg-section-dark .pg-eyebrow { color: var(--amber-2); background: rgba(232,85,27,.10); border-color: rgba(232,85,27,.30); }

/* Headings — Space Grotesk, tight tracking */
.pg-h1, h1.pg-h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 58px;
  line-height: 1.02;
  letter-spacing: -.03em;
  color: var(--ink);
  margin: 20px 0 16px;
}
.pg-h1 .mark, h1 .mark {
  background: linear-gradient(180deg, transparent 62%, var(--amber-2) 62%);
}
.pg-h2, h2.pg-h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 36px;
  letter-spacing: -.02em;
  color: var(--ink);
  margin: 8px 0 30px;
}
.pg-section-dark .pg-h1,
.pg-section-dark .pg-h2 { color: var(--paper); }

.pg-subtitle {
  font-family: var(--font-body);
  font-size: 17.5px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 600px;
}
.pg-section-dark .pg-subtitle { color: #b8b4a6; }

.pg-cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.pg-micro,
.micro {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-2);
}
.pg-micro b, .micro b { color: var(--ink); }

/* Buttons — mockup spec: 2px ink border, 9px radius */
.pg-btn,
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  padding: 11px 18px;
  border-radius: 9px;
  cursor: pointer;
  border: 2px solid var(--ink);
  text-decoration: none;
  transition: transform .08s, background .15s;
  line-height: 1.2;
}
.pg-btn:active, .btn:active { transform: translateY(1px); }

.pg-btn-primary,
.btn-primary { background: var(--amber); color: var(--ink); }
.pg-btn-primary:hover, .btn-primary:hover { background: var(--amber-2); }

.pg-btn-secondary,
.pg-btn-ghost,
.btn-ghost,
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.pg-btn-secondary:hover, .pg-btn-ghost:hover, .btn-ghost:hover, .btn-secondary:hover { background: var(--paper-2); }

.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #000; }

/* Dark-section button overrides — invert so amber-on-ink reads cleanly */
.pg-section-dark .pg-btn-primary,
.pg-section-dark .btn-primary { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.pg-section-dark .pg-btn-secondary,
.pg-section-dark .btn-ghost { color: var(--paper); border-color: var(--paper); }
.pg-section-dark .pg-btn-secondary:hover,
.pg-section-dark .btn-ghost:hover { background: rgba(244,239,230,.08); }

/* Cards */
.pg-card {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--pg-shadow);
  position: relative;
}
.pg-card-lg { padding: 36px; }
.pg-card.dark {
  background: var(--ink);
  color: var(--paper);
}
.pg-card.dark p, .pg-card.dark .pg-subtitle { color: #b8b4a6; }

.pg-card .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--amber);
  font-weight: 700;
}
.pg-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 10px 0 8px;
  letter-spacing: -.01em;
}

/* "ONLY HERE" ribbon for the differentiator card */
.pg-ribbon,
.ribbon {
  position: absolute;
  top: -12px;
  right: 18px;
  background: var(--amber);
  border: 2px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  letter-spacing: .06em;
}

/* Stat strip — 2px ink border, 2nd cell inverted */
.pg-stat-strip,
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 2px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
  margin: 30px 0 70px;
}
.pg-stat-strip .stat,
.stat-strip .stat {
  padding: 22px 20px;
  border-right: 2px solid var(--ink);
}
.pg-stat-strip .stat:last-child,
.stat-strip .stat:last-child { border-right: 0; }
.pg-stat-strip .stat:nth-child(2),
.stat-strip .stat:nth-child(2) { background: var(--ink); color: var(--paper); }
.pg-stat-strip .stat:nth-child(2) .l,
.stat-strip .stat:nth-child(2) .l { color: #b8b4a6; }
.pg-stat-strip .stat .n,
.stat-strip .stat .n {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -.02em;
}
.pg-stat-strip .stat .l,
.stat-strip .stat .l {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-top: 4px;
}

/* Brand stamp — rotated amber permit-stamp logo */
.brand-stamp {
  width: 30px;
  height: 30px;
  border: 2.5px solid var(--ink);
  border-radius: 7px;
  display: grid;
  place-items: center;
  transform: rotate(-6deg);
  background: var(--amber);
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}
.brand-wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -.02em;
  color: var(--ink);
  text-decoration: none;
}

/* Live permit feed panel — dark, monospace */
.panel-feed {
  background: var(--panel);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--pg-shadow-lg);
  color: var(--paper);
  font-family: var(--font-mono);
}
.panel-feed-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--panel-line);
  padding-bottom: 12px;
  margin-bottom: 6px;
}
.panel-feed-top .live {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.panel-feed-top .tag { font-size: 11px; color: #8b887d; }
.panel-feed .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(123,211,137,.15);
  display: inline-block;
  margin-right: 8px;
}
.feed-row {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 10px;
  padding: 11px 4px;
  border-bottom: 1px solid var(--panel-line);
  font-size: 12.5px;
  align-items: center;
}
.feed-row:last-child { border-bottom: 0; }
.feed-row .ago { color: var(--lime); font-weight: 500; }
.feed-row .who { color: var(--paper); }
.feed-row .who span {
  color: #8b887d;
  display: block;
  font-size: 11px;
  margin-top: 2px;
}
.feed-row .val { color: var(--amber-2); font-weight: 700; }
.feed-row .pill {
  display: inline-block;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 5px;
  border: 1px solid var(--panel-line);
  color: #b8b4a6;
  margin-left: 6px;
}

/* Section labels (mono amber uppercase) */
.pg-section-label,
.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--amber);
}

/* 3-product card grid */
.pg-cards-3,
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

/* Stats bar pattern — legacy class, remapped to ink/paper */
.pg-stats-bar {
  background: var(--panel);
  color: var(--paper);
  padding: 60px 0;
}
.pg-stats-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.pg-stat-value {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}
.pg-stat-label {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 500;
  color: #b8b4a6;
}

/* Step number (How It Works) — re-skinned to amber-fill ink-border */
.pg-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--ink);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 16px;
  border: 2px solid var(--ink);
  font-family: var(--font-display);
}

/* State pill grid — re-skinned amber/ink */
.pg-state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
  max-width: 960px;
  margin: 0 auto;
}
.pg-state-pill {
  background: var(--ink);
  color: var(--paper);
  padding: 14px 12px;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
  display: block;
  border: 2px solid var(--ink);
}
.pg-state-pill:hover {
  background: var(--amber);
  color: var(--ink);
  transform: translateY(-2px);
}
.pg-state-pill .abbr {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .02em;
}
.pg-state-pill .count {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  opacity: .85;
  margin-top: 2px;
}

/* Trust strip — paper bg */
.pg-trust-strip {
  background: var(--paper-2);
  padding: 32px 24px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-2);
}
.pg-trust-strip span { margin: 0 14px; }
.pg-trust-strip span + span:before { content: '·'; margin-right: 14px; opacity: .5; }

/* Dark-mono data table — opt-in utility for city/permit pages.
   Add class="pg-data-table-mono" to a <table> to reinforce the
   data-tool identity (per REDESIGN spec §3). Plays well inside
   .pg-section-dark or on a .panel-feed-backed card. */
.pg-data-table-mono {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  color: var(--paper);
  font-family: var(--font-mono);
  border-radius: 12px;
  overflow: hidden;
}
.pg-data-table-mono thead th {
  background: var(--panel);
  color: #b8b4a6;
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  padding: 12px 14px;
  border-bottom: 1px solid var(--panel-line);
}
.pg-data-table-mono tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--panel-line);
  font-size: 13px;
}
.pg-data-table-mono tbody tr:last-child td { border-bottom: 0; }
.pg-data-table-mono tbody tr:hover td { background: #1d1c17; }
.pg-data-table-mono .val { color: var(--amber-2); font-weight: 700; }
.pg-data-table-mono .ago { color: var(--lime); }

@media (max-width: 900px) {
  .pg-h1, h1.pg-h1 { font-size: 44px; }
  .pg-h2, h2.pg-h2 { font-size: 28px; }
  .pg-subtitle { font-size: 16px; }
  .pg-stat-strip,
  .stat-strip,
  .pg-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .pg-stat-value { font-size: 32px; }
  .pg-cards-3, .cards { grid-template-columns: 1fr; }
  .pg-cta-row .pg-btn,
  .pg-cta-row .btn { width: 100%; text-align: center; }
}
@media (max-width: 768px) {
  .pg-section, .pg-section-light, .pg-section-dark { padding: 56px 0; }
}
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary: #E8551B;
  --primary-dark: #15140F;
  --primary-light: #fff5ec;
  --accent: #E8551B;
  --accent-dark: #15140F;
  --green: #16a34a;
  --green-light: #dcfce7;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow: 0 1px 3px rgba(0,0,0,.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07);
  --radius: 8px;
  --radius-lg: 12px;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--gray-50);
  color: var(--gray-700);
  line-height: 1.6;
}

/* BREADCRUMBS */
.breadcrumbs {
  background: var(--gray-100);
  padding: 12px 32px;
  font-size: 13px;
}
.breadcrumbs-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.breadcrumbs a {
  color: var(--gray-500);
  text-decoration: none;
}
.breadcrumbs a:hover {
  color: var(--primary);
}
.breadcrumbs span {
  color: var(--gray-400);
  margin: 0 8px;
}
.breadcrumbs .current {
  color: var(--gray-700);
}

/* HERO */
.hero {
  background: #f8fafc;
  color: var(--gray-900, #111827);
  padding: 32px 32px 24px;
  border-bottom: 1px solid #e5e7eb;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.hero h1 {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  color: #111827;
}
.hero .subtitle {
  font-size: 16px;
  color: #4b5563;
  max-width: 720px;
  margin-bottom: 24px;
}

/* PERMIT ACTIVITY SUMMARY */
.summary-cards {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.summary-card {
  background: rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 20px 28px;
  min-width: 140px;
}
.summary-card-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
}
.summary-card-label {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.freshness-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(22,163,74,.2);
  color: #4ade80;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 20px;
}
.freshness-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* SECTIONS */
.section {
  padding: 28px 32px; /* V212-4: tighter — was 48px */
  max-width: 1200px;
  margin: 0 auto;
}
.section-header {
  margin-bottom: 24px;
}
.section-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}
.section-header p {
  font-size: 16px;
  color: var(--gray-500);
}

/* PERMITS TABLE */
/* V247: removed `overflow: hidden` on the outer container — it was clipping
 * the table on some viewports and combined with the box-shadow it rendered
 * as empty white space. Keep the shadow/border on the wrap instead so the
 * table always shows 25 rows of real permit data. */
.permits-table-container {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}
.permits-table-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.permits-table-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-900);
}
.permits-table-header a {
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.permits-table-header a:hover {
  text-decoration: underline;
}
.permits-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  /* V247: ensure the wrap never collapses — anchors height to the table
   * rows so the container is always visible even if something weird
   * happens to the parent layout. */
  display: block;
  min-height: 100px;
  position: relative;
}
/* Keyboard/screen-reader affordance: the wrap carries tabindex="0" so a
 * user tabbing through the page can focus the scroll region and reach
 * Address/Contractor with arrow keys without a mouse or touch. Only draw
 * the ring when it's actually keyboard focus, not a stray click. */
.permits-table-wrap:focus-visible {
  outline: 2px solid var(--primary, #E8551B);
  outline-offset: -2px;
}
/* Text-only mobile scroll cue. Desktop tables fit without scrolling, so
 * this stays hidden until the 768px breakpoint below reveals it. */
.permits-scroll-hint {
  display: none;
}
/* V1155 owner-record table: same treatment as .permits-table-wrap above.
 * The table is injected by the investor-leads fetch and its min-content width is
 * ~411px, wider than a 390px phone.  Without a scroller here that width leaks all
 * the way to <html>: Chrome widens the LAYOUT viewport to 431px, so the whole page
 * scrolls sideways and every position:fixed bar (.v772-mobile-cta) is drawn 431px
 * wide.  Confining the scroll to this container keeps the table fully reachable by
 * swipe and leaves the document at 390px. */
#investor-leads-body {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.permits-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  /* V247: belt-and-suspenders visibility so nothing upstream can collapse it */
  display: table !important;
  visibility: visible !important;
  opacity: 1 !important;
  background: white;
}
.permits-table tbody tr {
  display: table-row;
}
.permits-table tbody td {
  color: var(--gray-700);
  background: white;
}
.permits-table th {
  background: #ffffff;
  text-align: left;
  padding: 14px 16px 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6b7280;
  border-bottom: 2px solid #e5e7eb;
  white-space: nowrap;
}
.permits-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: #374151;
  font-size: 14px;
  min-height: 52px;
}
.permits-table tbody tr {
  display: table-row;
}
.permits-table tr:hover {
  background: #f8fafc;
}
.permits-table .address,
.permits-table .business-name,
.permits-table .contractor-name {
  font-weight: 500;
  color: #111827;
}
.permits-table .description {
  max-width: 300px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.permits-table .permit-type {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  /* V332 (CODE_V321 Bug D): Chicago repeats "PERMIT - EXPRESS PERMIT
     PROGRAM" on nearly every row; the 200px pill dwarfed every other
     column. Cap width and ellipsize. The full string still surfaces in
     the address-detail card on row click. */
  max-width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

/* V182 PR2: Top Contractors section */
.contractors-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 32px;
}
.contractors-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  overflow: hidden;
}
.contractors-table th {
  background: var(--gray-50);
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  color: var(--gray-600);
  border-bottom: 1px solid var(--gray-200);
}
.contractors-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
}
.contractors-table tr:last-child td { border-bottom: none; }
.contractors-table tr:hover { background: var(--gray-50); }
.contractors-table .contractor-name { font-weight: 600; color: var(--gray-900); }
.contractors-table .contractor-license {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  color: var(--gray-600);
}
.contractor-freq {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  letter-spacing: 0.3px;
  margin-left: 6px;
}
.contractor-freq.high   { background: #dcfce7; color: #166534; }
.contractor-freq.medium { background: #fef3c7; color: #92400e; }
.contractor-freq.low    { background: var(--gray-100); color: var(--gray-600); }
.contractor-contact a {
  color: var(--primary);
  text-decoration: none;
  font-size: 13px;
}
.contractor-contact a:hover { text-decoration: underline; }
@media (max-width: 768px) {
  .contractors-section { padding: 0 16px; }
  .contractors-table .hide-mobile { display: none; }
}

/* PERMIT TYPES */
.types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.type-card {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  border: 1px solid var(--gray-200);
}
.type-card h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 4px;
}
.type-card .count {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}

/* CONTRACTOR CONTEXT */
.contractor-context {
  background: white;
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
}
.contractor-context p {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.8;
}

/* NEARBY CITIES */
.nearby-cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.nearby-city-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 14px 18px;
  text-decoration: none;
  color: var(--gray-700);
  transition: all .2s;
}
.nearby-city-link:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
.nearby-city-link .name {
  font-weight: 600;
}
.nearby-city-link .permits {
  font-size: 13px;
  color: var(--gray-500);
}
.nearby-city-link .arrow {
  color: var(--primary);
  font-size: 18px;
}

/* STATE LINK */
.state-link-section {
  text-align: center;
  padding: 24px 32px; /* V212-4: was 40px */
  background: var(--gray-100);
}
.state-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}
.state-link:hover {
  text-decoration: underline;
}

/* CTA */
.cta-section {
  background: var(--primary);
  padding: 36px 32px; /* V212-4: was 60px */
  text-align: center;
  color: white;
}
.cta-section h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
}
.cta-section p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 24px;
}
.cta-btn {
  display: inline-block;
  background: white;
  color: var(--primary);
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: all .2s;
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

/* NO DATA STATE */
.no-data-message {
  background: white;
  border-radius: var(--radius-lg);
  padding: 60px 32px;
  text-align: center;
  border: 1px solid var(--gray-200);
}
.no-data-message h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 12px;
}
.no-data-message p {
  font-size: 16px;
  color: var(--gray-500);
  margin-bottom: 20px;
}
.no-data-message .btn {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 768px) {
  .hero h1 { font-size: 28px; }
  .summary-cards { flex-direction: column; gap: 12px; }
  .summary-card { min-width: auto; }
  .section { padding: 32px 20px; }
  .permits-table th, .permits-table td { padding: 10px 12px; }
  .types-grid { grid-template-columns: repeat(2, 1fr); }
  .nearby-cities-grid { grid-template-columns: 1fr; }
  /* Horizontal-scroll affordance: a plain scrollbar-less mobile table gives
   * no signal that Address/Contractor are off-screen to the right. Pair a
   * persistent text hint with a right-edge fade so the cue survives even
   * after the user has scrolled partway (the fade only shows while there
   * is more content to reveal, via the scroll-shadow gradient below). */
  .permits-scroll-hint {
    display: block;
    font-size: 12px;
    color: var(--gray-500, #6b7280);
    padding: 8px 16px 0;
    margin: 0;
  }
  .permits-table-wrap {
    background:
      linear-gradient(to right, white 30%, rgba(255,255,255,0)),
      linear-gradient(to right, rgba(255,255,255,0), white 70%) 100% 0,
      linear-gradient(to right, rgba(17,24,39,0.12), rgba(17,24,39,0)),
      linear-gradient(to left, rgba(17,24,39,0.12), rgba(17,24,39,0)) 100% 0;
    background-repeat: no-repeat;
    background-color: white;
    background-size: 40px 100%, 40px 100%, 12px 100%, 12px 100%;
    background-attachment: local, local, scroll, scroll;
  }
}

/* V209-3: NEW badge + trade filter tabs + leaderboard rank */
.badge-new {
    background: #22c55e;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
    display: inline-block;
    vertical-align: middle;
}
.trade-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding: 8px 0;
    margin: 0;
}
.trade-tabs button {
    padding: 6px 14px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    font-size: 13px;
    cursor: pointer;
    color: #374151;
    font-weight: 500;
}
.trade-tabs button.active {
    background: #E8551B;
    border-color: #E8551B;
    color: white;
}
.trade-tabs button:hover:not(.active) {
    background: #e5e7eb;
}

/* V251 F1: Gated preview — first 5 rows are real, rest are obscured. */
.gate-blur {
    filter: blur(5px);
    user-select: none;
    pointer-events: none;
    color: var(--gray-700);
}
.gate-reveal-btn {
    display: inline-block;
    padding: 4px 10px;
    background: var(--primary);
    color: white !important;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.3px;
}
.gate-reveal-btn:hover { background: var(--primary-dark); }
.gate-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 28px 32px;
    margin: 16px 0;
    background: #ffffff;
    color: var(--gray-900, #111827);
    border-radius: var(--radius-lg);
    text-align: center;
}
.gate-cta h3 {
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin: 0;
}
.gate-cta p { color: rgba(255,255,255,.8); margin: 0; font-size: 14px; }
.gate-cta .cta-btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--accent);
    color: white !important;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.2px;
}
.gate-cta .cta-btn:hover { background: var(--accent-dark); }

/* V251 F5: Velocity badges + recency dots on contractor rows */
.velocity-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 6px;
    letter-spacing: 0.2px;
    vertical-align: middle;
}
.velocity-badge.red    { background: #fee2e2; color: #991b1b; }
.velocity-badge.orange { background: #ffedd5; color: #9a3412; }
.velocity-badge.blue   { background: #fff5ec; color: #1e40af; }
.velocity-badge.new    { background: #fef9c3; color: #854d0e; }
.recency-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
    flex-shrink: 0;
}
.recency-dot.green  { background: #22c55e; box-shadow: 0 0 0 2px rgba(34,197,94,.15); }
.recency-dot.yellow { background: #eab308; }
.recency-dot.gray   { background: #d1d5db; }

/* V251 F12: new-this-week toggle */
.new-week-toggle {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: white;
    border: 1.5px solid var(--primary);
    border-radius: 999px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s;
    white-space: nowrap;
}
.new-week-toggle:hover { background: var(--primary); color: white !important; }
.new-week-toggle.active { background: var(--primary); color: white; }

/* V251 F21: lead-score pill */
.lead-score {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 6px;
    letter-spacing: 0.2px;
    vertical-align: middle;
}
.lead-score-hot  { background: #fff1f2; color: #991b1b; border: 1px solid #fecaca; }
.lead-score-warm { background: #fef3c7; color: #854d0e; border: 1px solid #fde68a; }
.lead-score-cold { background: var(--gray-100); color: var(--gray-500); border: 1px solid var(--gray-200); }

/* V251 F14: permit-type bar chart */
.permit-type-chart {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.permit-type-row {
    display: grid;
    grid-template-columns: minmax(140px, 200px) 1fr;
    gap: 16px;
    align-items: center;
    padding: 10px 14px;
    background: var(--gray-50);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background 0.12s;
}
.permit-type-row:hover { background: #fff5ec; }
.permit-type-label { font-size: 14px; font-weight: 600; color: var(--gray-900); }
.permit-type-bar-wrap {
    position: relative;
    height: 26px;
    background: var(--gray-200);
    border-radius: 6px;
    overflow: hidden;
}
.permit-type-bar {
    position: absolute; top: 0; left: 0; bottom: 0;
    background: linear-gradient(90deg, #3b82f6 0%, #E8551B 100%);
    border-radius: 6px;
}
.permit-type-meta {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    padding: 4px 10px;
    font-size: 12px;
    color: var(--gray-900);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
@media (max-width: 640px) {
    .permit-type-row { grid-template-columns: 1fr; gap: 6px; }
}

/* V251 F13: zip heatmap grid */
.zip-heatmap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
}
.zip-cell {
    display: block;
    padding: 16px 14px;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.12s;
}
.zip-cell:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.zip-cell .zip-label { font-size: 15px; font-weight: 700; letter-spacing: 0.3px; }
.zip-cell .zip-total { font-size: 22px; font-weight: 800; line-height: 1.1; margin-top: 2px; }
.zip-cell .zip-sub { font-size: 11px; opacity: 0.85; margin-top: 2px; }
@media (max-width: 768px) {
    .zip-heatmap { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 6px; }
    .zip-cell { padding: 12px 10px; }
}

/* V251 F11: violation flag pill */
.violation-flag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 6px;
    letter-spacing: 0.2px;
    vertical-align: middle;
    background: #fff1f2;
    color: #9f1239;
    border: 1px solid #fecdd3;
}
.leader-rank {
    display: inline-block;
    width: 20px;
    color: #6b7280;
    font-weight: 600;
    font-size: 12px;
    margin-right: 8px;
}
.contractor-enriched-icon {
    color: #16a34a;
    font-size: 13px;
    margin-left: 4px;
}
.violation-leads-section {
    background: #fff7ed;
    padding: 32px;
    margin-top: 24px;
    border-radius: 8px;
    border: 1px solid #fed7aa;
}
.violation-leads-section h2 {
    color: #9a3412;
    margin-top: 0;
}
.violation-pitch {
    color: #7c2d12;
    font-size: 14px;
    margin: 8px 0 16px;
}

/* V211-1: inline email capture */
.email-capture {
    background: linear-gradient(135deg, #fff5ec, #fff5ec);
    border: 2px solid #E8551B;
    border-radius: 12px;
    padding: 16px 20px; /* V230 U1: tighter above-fold */
    margin: 12px auto 16px;
    max-width: 1140px;
    text-align: center;
    color: #15140F;
}
.email-capture h3 {
    color: #15140F;
    font-size: 20px;
}

/* V360 (CODE_V360 Bug 4): collapsible accordion for below-fold sections.
   Trade Breakdown, Construction Activity, and Nearby Cities are wrapped
   in these — collapsed by default to keep the page short, expandable
   when the user wants to see them. */
.pg-accordion { border: 1px solid var(--gray-200); border-radius: 8px; margin: 16px 32px; max-width: 1200px; }
.pg-accordion-header {
  padding: 16px 20px; cursor: pointer; display: flex;
  justify-content: space-between; align-items: center;
  font-weight: 600; font-size: 16px; background: var(--gray-50);
  border-radius: 8px;
}
.pg-accordion-header:hover { background: var(--gray-100); }
.pg-accordion-header::after { content: '+'; font-size: 20px; color: var(--gray-500); }
.pg-accordion-header.open::after { content: '-'; }
.pg-accordion-body { display: none; padding: 16px 20px; }
.pg-accordion-body.open { display: block; }
@media (min-width: 1264px) { .pg-accordion { margin-left: auto; margin-right: auto; } }
/* V1485d (CODE_UAT_FIXES 1a): hide anonymous-only sales chrome for logged-in
   users. Toggled client-side (below) so the shared, edge-cacheable HTML stays
   single-version — cache-safe per the CODE_CACHE_AUTH_SAFETY design. */
.pg-authed .pg-hide-authed { display: none !important; }
/* D21 (2026-09-03): the counterpart. Hiding an acquisition CTA on the shared
   cached copy is only half a fix — it leaves a paying customer with no CTA at
   all, because the server-rendered "Manage subscription" branch cannot fire on
   a copy that was rendered anonymously. This shows their version instead.
   Default-hidden, so an anonymous viewer never sees it even with JS disabled. */
.pg-show-authed { display: none !important; }
.pg-authed .pg-show-authed { display: inline-block !important; }
.site-nav {
  background: var(--paper, #F4EFE6);
  border-bottom: 1px solid var(--line, #D8CFBE);
  padding: 0 32px;
  position: relative;
  font-family: var(--font-body, 'Inter', system-ui, sans-serif);
}
.site-nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}
.site-nav .logo {
  font-family: var(--font-display, 'Space Grotesk', system-ui, sans-serif);
  font-size: 21px;
  font-weight: 700;
  color: var(--ink, #15140F);
  text-decoration: none;
  letter-spacing: -.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-nav .logo .stamp {
  width: 30px;
  height: 30px;
  border: 2.5px solid var(--ink, #15140F);
  border-radius: 7px;
  display: grid;
  place-items: center;
  transform: rotate(-6deg);
  background: var(--amber, #E8551B);
  color: var(--ink, #15140F);
  font-family: var(--font-mono, 'JetBrains Mono', ui-monospace, monospace);
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}
.site-nav .logo span { color: var(--ink, #15140F); }
.site-nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}
.site-nav-links > a,
.site-nav-links > .nav-dropdown > .dropdown-toggle {
  color: var(--ink-2, #4A463B);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  font-family: var(--font-body, 'Inter', sans-serif);
  transition: color .15s;
}
.site-nav-links > a:hover { color: var(--ink, #15140F); }
.site-nav .nav-dropdown {
  position: relative;
}
.site-nav .dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--ink-2, #4A463B);
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-body, 'Inter', sans-serif);
}
.site-nav .dropdown-toggle:hover { color: var(--ink, #15140F); }
.site-nav .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--paper, #F4EFE6);
  border: 2px solid var(--ink, #15140F);
  border-radius: 9px;
  box-shadow: 0 10px 25px rgba(21,20,15,.14);
  min-width: 200px;
  z-index: 1000;
  margin-top: 12px;
  padding: 8px 0;
}
.site-nav .nav-dropdown.dropdown-open .dropdown-menu { display: block; }
.site-nav .dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: var(--ink, #15140F);
  font-size: 14px;
  text-decoration: none;
  transition: all .15s;
}
.site-nav .dropdown-menu a:hover {
  background: var(--paper-2, #EBE3D5);
  color: var(--amber, #E8551B);
}
.site-nav .nav-btn {
  background: var(--amber, #E8551B);
  color: var(--ink, #15140F) !important;
  padding: 11px 18px;
  border-radius: 9px;
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  border: 2px solid var(--ink, #15140F);
  transition: transform .08s, background .15s;
  margin-left: 24px;
}
.site-nav .nav-btn:hover { background: var(--amber-2, #F08A3C); }
.site-nav .nav-btn:active { transform: translateY(1px); }

/* Mobile hamburger toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink, #15140F);
  font-size: 28px;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
}

/* Mobile nav styles */
@media (max-width: 768px) {
  .site-nav { padding: 0 16px; }
  .mobile-toggle { display: block; }
  .site-nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--paper, #F4EFE6);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 0;
    z-index: 999;
    border-top: 1px solid var(--line, #D8CFBE);
    box-shadow: 0 10px 30px rgba(21,20,15,.10);
  }
  .site-nav.mobile-open .site-nav-links { display: flex; }
  .site-nav-links > a,
  .site-nav-links > .nav-dropdown {
    padding: 14px 0;
    border-bottom: 1px solid var(--paper-2, #EBE3D5);
    width: 100%;
  }
  .site-nav-links > a { color: var(--ink, #15140F); font-size: 16px; }
  .site-nav-links > a:last-child { border-bottom: none; }
  .site-nav .nav-btn {
    margin-top: 16px;
    text-align: center;
    display: block;
    padding: 14px 24px;
  }
  /* Mobile dropdowns expand inline */
  .site-nav .nav-dropdown .dropdown-toggle {
    color: #111827;
    font-size: 16px;
    width: 100%;
    justify-content: space-between;
  }
  .site-nav .dropdown-menu {
    position: static;
    background: #f9fafb;
    box-shadow: none;
    border-radius: 0;
    margin: 8px 0 0 0;
    padding: 0;
  }
  .site-nav .dropdown-menu a {
    color: #374151;
    padding: 12px 16px;
  }
  .site-nav .dropdown-menu a:hover {
    background: #f1f5f9;
    color: #111827;
  }
  .site-nav .nav-dropdown.dropdown-open .dropdown-menu { display: block; }
}
  .v478-city-hero { background: var(--pg-white); padding: 60px 0 40px; }
  .v478-city-hero h1 { font-size: 44px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; color: var(--pg-text); margin: 0 0 16px; }
  .v478-city-hero .stats-line { font-size: 18px; color: var(--pg-text-gray); line-height: 1.5; margin: 0 0 24px; max-width: 720px; }
  /* Hide legacy in-template hero so the V478 hero is the only one shown. */
  section.hero, .hero { display: none !important; }
  @media (max-width: 768px) {
    .v478-city-hero h1 { font-size: 30px; }
    .v478-city-hero .stats-line { font-size: 16px; }
  }
.v772-mobile-cta {
  display: none;
}
@media (max-width: 767px) {
  .v772-mobile-cta {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 10px 14px env(safe-area-inset-bottom, 10px);
    background: white;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
    gap: 10px;
    align-items: center;
  }
  .v772-mobile-cta a {
    flex: 1;
    background: var(--amber, #E8551B);
    color: var(--ink, #15140F) !important;
    padding: 14px 18px;
    border-radius: 9px;
    border: 2px solid var(--ink, #15140F);
    font-family: var(--font-display, 'Space Grotesk', sans-serif);
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    font-size: 15px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .v772-mobile-cta .subline {
    flex: 0 0 auto;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 11px;
    color: var(--ink-2, #4A463B);
    line-height: 1.2;
    max-width: 110px;
  }
  body {
    /* V1806 (2026-09-10): reserve the bar's real height, not a 2026-05
       constant. The bar is `position: fixed`, so this padding is the only
       thing holding the page's last line out from under it. A flat 70px was
       already short: measured [live] headless at 360x780 and 390x844 with
       the shipped default label, the bar renders 91-92.5px and the
       copyright line came back 100% covered at max scroll on /methodology
       and /data-sources -- unreachable, because the page was already
       scrolled as far as it goes. The fallback below is the measured
       default (ceil 92.5 + 8px gap); the script under the bar replaces it
       with the height the bar actually has, which is what covers a label
       that wraps to a third line, an iOS safe-area inset, or a late font
       swap. Mobile only -- above 767px the bar is `display: none` and this
       media query does not apply. */
    padding-bottom: var(--v772-cta-reserve, 101px) !important;
  }
}
/* V1236 (2026-06-14): redesign — paper-2 bg, ink text, ink hairline. */
footer.site-footer {
  background: var(--paper-2, #EBE3D5) !important;
  color: var(--ink-2, #4A463B) !important;
  border-top: 1px solid var(--line, #D8CFBE) !important;
  font-family: var(--font-body, 'Inter', sans-serif);
}
footer.site-footer .footer-logo {
  color: var(--ink, #15140F) !important;
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -.02em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
footer.site-footer .footer-logo .stamp {
  width: 26px;
  height: 26px;
  border: 2px solid var(--ink, #15140F);
  border-radius: 6px;
  display: grid;
  place-items: center;
  transform: rotate(-6deg);
  background: var(--amber, #E8551B);
  color: var(--ink, #15140F);
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-weight: 700;
  font-size: 11px;
}
footer.site-footer .footer-logo span { color: var(--ink, #15140F) !important; }
footer.site-footer .footer-brand p { color: var(--ink-2, #4A463B) !important; }
footer.site-footer .footer-links h4 {
  color: var(--ink, #15140F) !important;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
footer.site-footer .footer-links a { color: var(--ink-2, #4A463B) !important; }
footer.site-footer .footer-links a:hover { color: var(--amber, #E8551B) !important; }
footer.site-footer .footer-bottom {
  color: var(--ink-2, #4A463B) !important;
  border-top: 1px solid var(--line, #D8CFBE) !important;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 12px;
}
  tr.v310-detail-row td { background: #f8fafc; padding: 0; border-bottom: 2px solid var(--gray-200); }
  .v310-detail-card { padding: 18px 24px; font-size: 14px; line-height: 1.5; color: var(--gray-700); }
  .v310-detail-card h4 { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray-500); font-weight: 700; }
  .v310-detail-card .addr { font-size: 17px; font-weight: 700; color: var(--gray-900); margin: 0 0 16px; }
  .v310-detail-card .section { margin-bottom: 18px; }
  .v310-detail-card .perm-row { padding: 10px 12px; margin-bottom: 8px; background: white; border: 1px solid var(--gray-200); border-radius: 6px; }
  .v310-detail-card .perm-row .meta { color: var(--gray-500); font-size: 12px; margin-bottom: 4px; }
  .v310-detail-card .perm-row .contractor { font-weight: 600; color: var(--gray-800); }
  .v310-detail-card .perm-row .desc { color: var(--gray-600); margin-top: 4px; font-size: 13px; }
  .v310-detail-card .viol-row { padding: 10px 12px; margin-bottom: 6px; background: #fef2f2; border-left: 3px solid #dc2626; border-radius: 4px; }
  .v310-detail-card .owner-section { padding: 12px 16px; margin-top: 16px; background: #f0f7ff; border-left: 3px solid #3b82f6; border-radius: 4px; }
  .v310-detail-card .owner-section h4 { color: #1e40af; }
  .v310-detail-card .owner-row { padding: 4px 0; }
  .v310-detail-card .phone-masked { color: var(--gray-400); font-family: monospace; }
  .v310-detail-card .phone-visible { color: var(--accent-dark, #15140F); font-weight: 600; }
  .v310-detail-card .unlock-link { color: var(--accent, #E8551B); font-size: 12px; margin-left: 8px; text-decoration: none; }
  .v310-detail-card .loading { color: var(--gray-500); font-style: italic; }
  .v310-detail-card .owner-card { background: #f0f9ff; border-left: 3px solid #0284c7; padding: 10px 12px; border-radius: 4px; }
  .v310-detail-card .property-watch-btn { margin: -5px 0 16px; padding: 7px 10px; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; color: #334155; font-size: 12px; font-weight: 600; cursor: pointer; }
  .v310-detail-card .property-watch-btn:hover { border-color: var(--accent, #E8551B); color: var(--accent, #E8551B); }
  .v310-detail-card .property-watch-btn:disabled { cursor: default; opacity: .72; }
  .pg-save-btn{font:600 12px/1 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
    color:var(--pg-primary,#E8551B);background:#fff;border:1px solid #bfdbfe;border-radius:8px;
    padding:6px 10px;cursor:pointer;white-space:nowrap;transition:background .12s,color .12s}
  .pg-save-btn:hover{background:#fff5ec}
  .pg-save-btn.saved{background:#16a34a;border-color:#16a34a;color:#fff;cursor:default}
  .pg-save-btn[disabled]{opacity:.6;cursor:wait}
