/**
 * BPI Guide Master Portal — shared layout
 * Base: Concept 01 (USA Today grid) + Concept 02 (magazine masthead)
 * Fonts: Newsreader (headlines) · Source Serif 4 (body) · Source Sans 3 (UI)
 */
:root {
  --guide-ink: #0a0a0a;
  --guide-paper: #f5f2ec;
  --guide-card: #ffffff;
  --guide-border: #e0dbd2;
  --guide-muted: #7a7570;
  --guide-gold: #c9a84c;
  --guide-red: #c1121f;
  --guide-scout: #1a4fa0;
  --guide-green: #2d6a4f;
  --guide-live: #1a9850;
  --guide-bot: #6b4fa0;
  --guide-head: "Newsreader", Georgia, "Times New Roman", serif;
  --guide-body: "Source Serif 4", Georgia, serif;
  --guide-ui: "Source Sans 3", system-ui, sans-serif;
}

/* ── Portal chrome ── */
.bpi-guide-portal {
  font-family: var(--guide-body);
  color: var(--guide-ink);
  background: var(--guide-paper);
  line-height: 1.6;
}
.bpi-guide-devbar {
  background: var(--guide-ink);
  color: #f5f2ec;
  padding: 10px 20px;
  font-family: var(--guide-ui);
  font-size: 11px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 200;
}
.bpi-guide-devbar a {
  color: var(--guide-gold);
  text-decoration: none;
  font-weight: 600;
}
.bpi-guide-devbar__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bpi-guide-promo {
  background: var(--guide-scout);
  color: #fff;
  text-align: center;
  padding: 8px 16px;
  font-family: var(--guide-ui);
  font-size: 12px;
  font-weight: 600;
}
.bpi-guide-promo a {
  color: var(--guide-gold);
  text-decoration: none;
  margin-left: 6px;
}

.bpi-guide-site-hdr {
  background: #fff;
  border-bottom: 1px solid var(--guide-border);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.bpi-guide-logo {
  font-family: var(--guide-head);
  font-weight: 700;
  font-size: 20px;
  color: var(--guide-scout);
  text-decoration: none;
  line-height: 1.1;
}
.bpi-guide-logo span {
  color: var(--guide-gold);
}
.bpi-guide-logo-sub {
  font-family: var(--guide-ui);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--guide-muted);
  font-weight: 600;
  margin-top: 2px;
}
.bpi-guide-hdr-nav {
  margin-left: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.bpi-guide-hdr-nav a {
  font-family: var(--guide-ui);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--guide-ink);
}
.bpi-guide-hdr-nav a.scout {
  background: var(--guide-scout);
  color: #fff;
}
.bpi-guide-hdr-nav a.msv {
  background: var(--guide-ink);
  color: var(--guide-gold);
}
.bpi-guide-hdr-nav a.signin {
  background: transparent;
  border: 1px solid var(--guide-border);
  color: var(--guide-muted);
  font-size: 11px;
}

.bpi-guide-sec-nav {
  background: #222;
  color: #fff;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  font-family: var(--guide-ui);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.bpi-guide-sec-nav a {
  color: #fff;
  text-decoration: none;
  padding: 12px 14px;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.bpi-guide-sec-nav a.on,
.bpi-guide-sec-nav a:hover {
  border-bottom-color: var(--guide-gold);
}

.bpi-guide-crumb {
  padding: 8px 24px;
  font-family: var(--guide-ui);
  font-size: 11px;
  color: var(--guide-muted);
  background: var(--guide-paper);
  border-bottom: 1px solid var(--guide-border);
}
.bpi-guide-crumb a {
  color: var(--guide-scout);
  text-decoration: none;
}

/* ── Masthead ── */
.bpi-guide-mast {
  padding: 16px 24px;
  background: #fff;
  border-bottom: 2px solid var(--guide-ink);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}
.bpi-guide-mast .pub {
  font-family: var(--guide-ui);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--guide-muted);
}
.bpi-guide-mast h1 {
  font-family: var(--guide-head);
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 700;
  line-height: 1.05;
  margin-top: 4px;
}
.bpi-guide-mast .meta {
  font-family: var(--guide-ui);
  font-size: 10px;
  color: var(--guide-muted);
  text-align: right;
  line-height: 1.6;
}
.bpi-guide-mast .live {
  color: var(--guide-live);
  font-weight: 700;
}

/* ── Hero photo strip ── */
.bpi-guide-hero-photo {
  position: relative;
  height: 220px;
  background: center/cover no-repeat;
  display: flex;
  align-items: flex-end;
}
.bpi-guide-hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(10, 10, 10, 0.75) 100%);
}
.bpi-guide-hero-photo__cap {
  position: relative;
  z-index: 1;
  padding: 16px 24px;
  color: #fff;
  font-family: var(--guide-ui);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── SEO speakable (mirrors visible facts) ── */
.bpi-guide-speakable {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Bot / live slots ── */
.bpi-guide-section {
  padding: 20px 24px;
  border-bottom: 1px solid var(--guide-border);
}
.bpi-guide-section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.bpi-guide-section__head h2 {
  font-family: var(--guide-head);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}
.bpi-guide-section__sub {
  font-family: var(--guide-ui);
  font-size: 11px;
  color: var(--guide-muted);
  margin-top: 4px;
}

.bpi-guide-tag {
  display: inline-flex;
  font-family: var(--guide-ui);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}
.bpi-guide-tag--live {
  background: rgba(26, 152, 80, 0.12);
  color: var(--guide-live);
}
.bpi-guide-tag--bot {
  background: rgba(107, 79, 160, 0.12);
  color: var(--guide-bot);
}
.bpi-guide-tag--auth {
  background: rgba(193, 18, 31, 0.08);
  color: var(--guide-red);
}
.bpi-guide-tag--geo {
  background: rgba(26, 79, 160, 0.1);
  color: var(--guide-scout);
}

.bpi-guide-slot {
  border: 1px dashed var(--guide-border);
  border-radius: 10px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.7);
  min-height: 56px;
}
.bpi-guide-slot__label {
  font-family: var(--guide-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--guide-bot);
  display: block;
  margin-bottom: 6px;
}
.bpi-guide-slot__hint {
  font-family: var(--guide-ui);
  font-size: 11px;
  color: var(--guide-muted);
  line-height: 1.5;
}
.bpi-guide-slot--live {
  border-color: rgba(26, 152, 80, 0.35);
  background: rgba(26, 152, 80, 0.04);
}
.bpi-guide-slot--live .bpi-guide-slot__label {
  color: var(--guide-live);
}

/* ── Why Buy scorecard ── */
.bpi-guide-scorecard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 640px) {
  .bpi-guide-scorecard {
    grid-template-columns: repeat(2, 1fr);
  }
}
.bpi-guide-scorecard .cell {
  background: #fff;
  border: 1px solid var(--guide-border);
  border-radius: 10px;
  padding: 14px 12px;
  text-align: center;
}
.bpi-guide-scorecard .cell .k {
  font-family: var(--guide-ui);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--guide-muted);
}
.bpi-guide-scorecard .cell .v {
  font-family: var(--guide-head);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
  margin-top: 4px;
}
.bpi-guide-scorecard .cell .token {
  font-family: var(--guide-ui);
  font-size: 11px;
  color: var(--guide-scout);
  font-weight: 600;
}

/* ── Sold teaser (public stats — no addresses) ── */
.bpi-guide-sold-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}
@media (max-width: 640px) {
  .bpi-guide-sold-teaser {
    grid-template-columns: 1fr;
  }
}
.bpi-guide-sold-card {
  border-radius: 12px;
  padding: 16px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.bpi-guide-sold-card--high {
  background: linear-gradient(135deg, #2a1505, var(--guide-ink));
}
.bpi-guide-sold-card--low {
  background: linear-gradient(135deg, var(--guide-scout), #0d2d5c);
}
.bpi-guide-sold-card--count {
  background: #fff;
  border: 1px solid var(--guide-border);
  color: var(--guide-ink);
}
.bpi-guide-sold-card .ey {
  font-family: var(--guide-ui);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}
.bpi-guide-sold-card .price {
  font-family: var(--guide-head);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  margin: 6px 0;
}
.bpi-guide-sold-card .note {
  font-family: var(--guide-ui);
  font-size: 10px;
  opacity: 0.8;
  line-height: 1.4;
}
.bpi-guide-sold-card .token {
  font-family: var(--guide-ui);
  font-size: 11px;
  color: var(--guide-gold);
  font-weight: 600;
}

/* ── Auth gate (sold map / pin locations) ── */
.bpi-guide-auth-gate {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--guide-border);
  min-height: 260px;
}
.bpi-guide-auth-gate__map {
  height: 260px;
  background: center/cover;
  filter: blur(6px) grayscale(0.3);
  transform: scale(1.04);
}
.bpi-guide-auth-gate__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  background: rgba(10, 10, 10, 0.55);
  color: #fff;
}
.bpi-guide-auth-gate__overlay h3 {
  font-family: var(--guide-head);
  font-size: 22px;
  font-weight: 700;
}
.bpi-guide-auth-gate__overlay p {
  font-family: var(--guide-ui);
  font-size: 13px;
  max-width: 360px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}
.bpi-guide-auth-gate__btn {
  font-family: var(--guide-ui);
  font-size: 13px;
  font-weight: 700;
  background: var(--guide-gold);
  color: var(--guide-ink);
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
}
.bpi-guide-auth-gate__legal {
  font-family: var(--guide-ui);
  font-size: 9px;
  color: rgba(255, 255, 255, 0.5);
  max-width: 400px;
  line-height: 1.4;
}

/* ── Insider filter CTA grid ── */
.bpi-guide-insider-band {
  background: linear-gradient(135deg, rgba(26, 79, 160, 0.08), rgba(201, 168, 76, 0.12));
  border: 2px solid var(--guide-gold);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 0 24px 20px;
}
.bpi-guide-insider-band h3 {
  font-family: var(--guide-head);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}
.bpi-guide-insider-band .sub {
  font-family: var(--guide-ui);
  font-size: 12px;
  color: var(--guide-muted);
  margin-bottom: 14px;
}
.bpi-guide-insider-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.bpi-guide-insider-chip {
  font-family: var(--guide-ui);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  color: var(--guide-ink);
  background: #fff;
  border: 1px solid var(--guide-border);
  border-radius: 100px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.bpi-guide-insider-chip:hover {
  border-color: var(--guide-scout);
  box-shadow: 0 4px 12px rgba(26, 79, 160, 0.15);
}
.bpi-guide-insider-chip .count {
  font-family: var(--guide-head);
  font-weight: 800;
  color: var(--guide-scout);
}
.bpi-guide-insider-chip .tag {
  font-size: 8px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(45, 106, 79, 0.12);
  color: var(--guide-green);
}
.bpi-guide-insider-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--guide-ui);
  font-size: 14px;
  font-weight: 700;
  background: var(--guide-scout);
  color: #fff;
  padding: 12px 22px;
  border-radius: 10px;
  text-decoration: none;
}

/* ── City neighbourhood map + table ── */
.bpi-guide-city-map-wrap {
  margin: 0 24px 20px;
  border: 1px solid var(--guide-border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.bpi-guide-city-map-wrap__head {
  padding: 12px 16px;
  background: var(--guide-paper);
  border-bottom: 1px solid var(--guide-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--guide-ui);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--guide-muted);
}
.bpi-guide-city-map-wrap__head a {
  color: var(--guide-scout);
  text-decoration: none;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
.bpi-guide-city-map {
  position: relative;
  height: 360px;
  background: center/cover;
}
.bpi-guide-city-map__pin {
  position: absolute;
  transform: translate(-50%, -100%);
  font-family: var(--guide-ui);
  font-size: 9px;
  font-weight: 700;
  background: var(--guide-scout);
  color: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.bpi-guide-city-map__pin:hover {
  background: var(--guide-gold);
  color: var(--guide-ink);
}

.bpi-guide-nb-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--guide-ui);
  font-size: 12px;
}
.bpi-guide-nb-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--guide-muted);
  background: var(--guide-paper);
  border-bottom: 1px solid var(--guide-border);
}
.bpi-guide-nb-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--guide-border);
}
.bpi-guide-nb-table tr:hover td {
  background: rgba(26, 79, 160, 0.04);
}
.bpi-guide-nb-table a.nb {
  font-weight: 700;
  color: var(--guide-ink);
  text-decoration: none;
}
.bpi-guide-nb-table a.nb:hover {
  color: var(--guide-scout);
}

/* ── 3-column desktop layout ── */
.bpi-guide-layout3 {
  display: grid;
  grid-template-columns: 240px 1fr 260px;
  gap: 0;
  align-items: start;
}
@media (max-width: 900px) {
  .bpi-guide-layout3 {
    grid-template-columns: 1fr;
  }
  .bpi-guide-rail {
    display: none;
  }
}
.bpi-guide-rail {
  border-right: 1px solid var(--guide-border);
  padding: 16px;
  background: var(--guide-paper);
}
.bpi-guide-main {
  padding: 0;
  min-width: 0;
}
.bpi-guide-rail-right {
  border-left: 1px solid var(--guide-border);
  padding: 16px;
  background: #fafafa;
}

.bpi-guide-rail h4 {
  font-family: var(--guide-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--guide-muted);
  border-bottom: 2px solid var(--guide-ink);
  padding-bottom: 8px;
  margin-bottom: 10px;
}
.bpi-guide-rail-link {
  display: block;
  font-family: var(--guide-ui);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 0;
  border-bottom: 1px solid var(--guide-border);
  color: var(--guide-ink);
  text-decoration: none;
}
.bpi-guide-rail-link:hover {
  color: var(--guide-scout);
}

.bpi-guide-footer {
  background: var(--guide-ink);
  color: #d3d1c7;
  padding: 24px;
  font-family: var(--guide-ui);
  font-size: 11px;
  line-height: 1.6;
}
.bpi-guide-footer .brand {
  font-family: var(--guide-head);
  color: var(--guide-gold);
  font-size: 18px;
  margin-bottom: 6px;
}

/* ── Mobile shell ── */
.bpi-guide-mobile-frame {
  max-width: 390px;
  margin: 24px auto;
  background: var(--guide-paper);
  border-radius: 36px;
  border: 8px solid #222;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  min-height: 780px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.bpi-guide-mobile-feed {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 72px;
}
.bpi-guide-mobile-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--guide-border);
  display: flex;
  padding: 8px 0 12px;
  z-index: 50;
}
.bpi-guide-mobile-nav a {
  flex: 1;
  text-align: center;
  font-family: var(--guide-ui);
  font-size: 9px;
  font-weight: 600;
  color: var(--guide-muted);
  text-decoration: none;
  padding: 4px;
}
.bpi-guide-mobile-nav a.on {
  color: var(--guide-scout);
}
.bpi-guide-mobile-nav a.cta {
  color: var(--guide-red);
  font-weight: 700;
}
.bpi-guide-mobile-nav .ico {
  font-size: 18px;
  display: block;
  margin-bottom: 2px;
}

.bpi-guide-mobile-hdr {
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid var(--guide-border);
}
.bpi-guide-mobile-hdr .logo {
  font-family: var(--guide-head);
  font-weight: 700;
  font-size: 16px;
  color: var(--guide-scout);
}
.bpi-guide-mobile-tabs {
  display: flex;
  background: var(--guide-ink);
}
.bpi-guide-mobile-tabs a {
  flex: 1;
  text-align: center;
  padding: 10px 4px;
  font-family: var(--guide-ui);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #d3d1c7;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
.bpi-guide-mobile-tabs a.on {
  color: #fff;
  border-bottom-color: var(--guide-gold);
}

.bpi-guide-mobile-condensed {
  margin: 12px 16px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--guide-border);
  border-radius: 12px;
}
.bpi-guide-mobile-condensed h3 {
  font-family: var(--guide-head);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.bpi-guide-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  padding: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.bpi-guide-index-card {
  background: var(--guide-paper);
  border: 1px solid var(--guide-border);
  border-radius: 14px;
  padding: 20px;
  text-decoration: none;
  color: var(--guide-ink);
  transition: box-shadow 0.15s, transform 0.15s;
}
.bpi-guide-index-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}
.bpi-guide-index-card h2 {
  font-family: var(--guide-head);
  font-size: 18px;
  margin-bottom: 6px;
}
.bpi-guide-index-card p {
  font-family: var(--guide-ui);
  font-size: 12px;
  color: var(--guide-muted);
  line-height: 1.5;
}

/* ── Mobile phone shell (BEM) ── */
.bpi-guide-mobile {
  position: relative;
  background: var(--guide-paper);
  font-family: var(--guide-body);
  color: var(--guide-ink);
}
.bpi-guide-mobile__hdr {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid var(--guide-border);
}
.bpi-guide-mobile__hdr-title {
  font-family: var(--guide-head);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
}
.bpi-guide-mobile__hdr-sub {
  font-family: var(--guide-ui);
  font-size: 10px;
  color: var(--guide-muted);
}
.bpi-guide-mobile__hero {
  height: 160px;
  background: center/cover no-repeat;
  position: relative;
}
.bpi-guide-mobile__hero-cap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 16px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
  font-family: var(--guide-head);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}
.bpi-guide-mobile__body {
  padding: 14px 16px 20px;
}
.bpi-guide-scorecard--compact {
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.bpi-guide-scorecard--compact .cell {
  padding: 10px;
}
.bpi-guide-scorecard--compact .v {
  font-size: 18px;
}
.bpi-guide-city-map__canvas {
  position: relative;
  height: 100%;
  min-height: 280px;
  background: #e8e4dc center/cover;
}
.bpi-guide-city-map__pins {
  position: absolute;
  inset: 0;
}
