:root {
  color-scheme: light;
  --primary: #203847;
  --secondary: #7d372f;
  --accent: #bea25a;
  --background: #ffffff;
  --surface: #ffffff;
  --ink: #17211f;
  --muted: #5f6b67;
  --line: rgba(23, 33, 31, 0.14);
  --line-strong: rgba(32, 56, 71, 0.26);
  --shadow: 0 22px 70px rgba(32, 56, 71, 0.09);
  --heading-font: "Poppins", Arial, sans-serif;
  --body-font: "Inter", Arial, sans-serif;
}

* { box-sizing: border-box; }
html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
body {
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--background);
  color: var(--ink);
  font-family: var(--body-font);
  line-height: 1.58;
  font-size: 16px;
}

body.street-map-page {
  min-height: 100vh;
  background: #ffffff;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 20;
  transform: translateY(-140%);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 10px 12px;
}
.skip-link:focus { transform: translateY(0); }
.site-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}
.header-inner {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}
.brand-link img { width: 258px; }
.main-nav {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
}
.main-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 9px 18px;
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
  border: 0;
  background: rgba(255, 255, 255, 0.78);
}
.main-nav a:hover,
.main-nav a:focus-visible {
  background: var(--surface);
}
.section-kicker {
  margin: 0 0 10px;
  color: var(--secondary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
.hero-section {
  padding: 38px 0 32px;
}
.hero-layout {
  display: block;
}
.hero-inner {
  max-width: 1040px;
}
.hero-inner h1,
.article-hero h1 {
  margin: 0;
  color: var(--primary);
  font-family: var(--heading-font);
  font-weight: 400;
  font-size: 4.15rem;
  line-height: 1.08;
  letter-spacing: 0;
}
.hero-inner h1 strong,
.article-hero h1 strong {
  font-weight: 800;
}
.article-hero h1 {
  font-weight: 800;
}
.hero-deck,
.article-dek {
  max-width: 790px;
  margin: 18px 0 0;
  color: #36363c;
  font-size: 1.2rem;
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 26px;
}
.hero-action-primary {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 30px;
  color: #fffdf8;
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
  background: var(--primary);
}
.hero-actions p {
  max-width: 430px;
  margin: 0;
  color: #36363c;
  font-weight: 700;
  line-height: 1.24;
}

.temporary-prototype-link {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.temporary-prototype-link a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 20px;
  color: #fff;
  background: var(--primary);
  font-weight: 900;
  text-decoration: none;
}

.temporary-prototype-link a:hover,
.temporary-prototype-link a:focus-visible {
  background: var(--secondary);
}

.map-prototype-hero {
  padding: 34px 0 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(190, 162, 90, 0.12), rgba(32, 56, 71, 0.03)),
    #fff;
}

.map-prototype-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.map-prototype-hero h1 {
  max-width: 980px;
  margin: 0;
  color: var(--primary);
  font-family: var(--heading-font);
  font-size: clamp(2.6rem, 7vw, 6.7rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.map-prototype-hero p:not(.section-kicker) {
  max-width: 820px;
  margin: 0;
  color: #36363c;
  font-size: 1.08rem;
  line-height: 1.5;
}

.map-prototype-shell {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  min-height: 760px;
  border-bottom: 1px solid var(--line);
}

.map-prototype-panel {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 24px 0 70px rgba(32, 56, 71, 0.08);
}

.prototype-panel-block,
.street-detail {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}

.panel-label {
  display: block;
  margin: 0 0 10px;
  color: var(--secondary);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.segmented-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.segmented-controls button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 13px;
  color: var(--primary);
  background: #fff;
  font: 800 0.88rem var(--body-font);
  cursor: pointer;
}

.segmented-controls button:hover,
.segmented-controls button:focus-visible,
.segmented-controls button.is-active {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
}

.style-controls button[data-theme="dark"].is-active {
  border-color: #111827;
  background: #111827;
}

.street-search {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--primary);
  background: #fff;
  font: 700 0.96rem var(--body-font);
  outline: none;
}

.street-search:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(190, 162, 90, 0.16);
}

.street-detail {
  border-color: rgba(32, 56, 71, 0.28);
  background:
    linear-gradient(145deg, rgba(32, 56, 71, 0.05), rgba(190, 162, 90, 0.08)),
    #fff;
}

.street-detail h2 {
  margin: 0 0 8px;
  color: var(--primary);
  font-family: var(--heading-font);
  font-size: 1.95rem;
  line-height: 1.06;
}

.street-detail p {
  margin: 0;
  color: var(--muted);
}

.detail-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.detail-stat-grid span {
  min-width: 0;
  display: block;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.detail-stat-grid strong {
  display: block;
  color: var(--primary);
  font-size: 1.1rem;
  line-height: 1.05;
}

.detail-stat-grid small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.2;
}

.detail-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.detail-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(23, 33, 31, 0.08);
  padding-bottom: 7px;
}

.detail-list dt,
.detail-list dd {
  margin: 0;
}

.detail-list dt {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.detail-list dd {
  color: var(--primary);
  font-weight: 900;
  text-align: right;
}

.street-zoning,
.method-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.map-prototype-map-wrap {
  position: relative;
  min-height: 760px;
  background: #edf1f0;
}

.map-prototype-map {
  position: absolute;
  inset: 0;
}

.map-prototype-legend {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  display: grid;
  grid-template-columns: auto minmax(120px, 180px) auto;
  align-items: center;
  gap: 8px 10px;
  max-width: min(460px, calc(100% - 44px));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 13px 14px;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 60px rgba(32, 56, 71, 0.16);
  backdrop-filter: blur(14px);
}

.map-prototype-legend strong {
  grid-column: 1 / -1;
  font-size: 0.92rem;
  line-height: 1.1;
}

.map-prototype-legend span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.legend-ramp {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ebe2ce, #d8c78f, #b78b46, #7d372f, #203847);
}

.map-prototype-legend[data-metric="ownership"] .legend-ramp {
  background: linear-gradient(90deg, #f2ece1, #d8d9b3, #9db58c, #497d6b, #203847);
}

.map-prototype-legend[data-metric="rental"] .legend-ramp {
  background: linear-gradient(90deg, #f4eadf, #e7c98d, #d59664, #9c4a3d, #4b2637);
}

.map-prototype-legend[data-metric="age"] .legend-ramp {
  background: linear-gradient(90deg, #f7eee1, #cfd7c7, #8aa89d, #526f7b, #203847);
}

.maplibregl-popup-content {
  border-radius: 16px;
  padding: 12px 14px;
  color: var(--primary);
  font: 700 0.9rem var(--body-font);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
}
.map-popup-list {
  max-height: 260px;
  margin: 8px 0 0;
  padding-left: 18px;
  overflow: auto;
}
.map-popup-list li {
  margin: 0 0 8px;
}
.map-popup-list span {
  color: var(--muted);
  font-weight: 650;
}

body[data-map-theme="dark"] .map-prototype-panel {
  background: rgba(12, 18, 25, 0.94);
  border-color: rgba(255, 255, 255, 0.12);
}

body[data-map-theme="dark"] .prototype-panel-block,
body[data-map-theme="dark"] .street-detail {
  color: #e5edf0;
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(15, 23, 42, 0.9);
}

body[data-map-theme="dark"] .street-detail h2,
body[data-map-theme="dark"] .detail-stat-grid strong,
body[data-map-theme="dark"] .detail-list dd,
body[data-map-theme="dark"] .segmented-controls button,
body[data-map-theme="dark"] .map-prototype-legend {
  color: #e5edf0;
}

body[data-map-theme="dark"] .street-detail p,
body[data-map-theme="dark"] .detail-list dt,
body[data-map-theme="dark"] .detail-stat-grid small,
body[data-map-theme="dark"] .method-note,
body[data-map-theme="dark"] .street-zoning {
  color: rgba(229, 237, 240, 0.72);
}

body[data-map-theme="dark"] .segmented-controls button,
body[data-map-theme="dark"] .street-search,
body[data-map-theme="dark"] .detail-stat-grid span {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.06);
}

body[data-map-theme="dark"] .segmented-controls button.is-active {
  color: #111827;
  border-color: var(--accent);
  background: var(--accent);
}

body[data-map-theme="dark"] .street-search {
  color: #fff;
}

body[data-map-theme="dark"] .map-prototype-legend {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(15, 23, 42, 0.88);
}

.map-prototype-notes {
  padding: 64px 0 86px;
}

.map-prototype-notes h2 {
  margin: 0 0 24px;
  color: var(--primary);
  font-family: var(--heading-font);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.03;
}

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

.prototype-note-grid article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  background: #fff;
}

.prototype-note-grid h3 {
  margin: 0 0 8px;
  color: var(--primary);
  font-family: var(--heading-font);
  font-size: 1.24rem;
}

.prototype-note-grid p {
  margin: 0;
  color: var(--muted);
}
.article-section {
  padding: 30px 0 92px;
  border-top: 1px solid var(--line);
}
.article-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 18px;
}
.article-preview {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.article-card-main {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-decoration: none;
  transition: transform 180ms ease;
}
.article-card-main:hover,
.article-card-main:focus-visible {
  transform: translateY(-2px);
}
.topic-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.preview-topics {
  justify-content: flex-start;
}
.topic-chip {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 11px;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.84);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}
.topic-chip:hover,
.topic-chip:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(32, 56, 71, 0.08);
}
.article-media {
  position: relative;
  min-height: 245px;
  overflow: hidden;
  border-radius: 26px;
  background: #050505;
}
.article-media::before,
.article-media::after,
.article-media-shape {
  content: "";
  position: absolute;
  pointer-events: none;
}
.article-media::before {
  inset: 0;
  opacity: 0.78;
}
.article-media::after {
  inset: auto 22px 22px auto;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.55);
}
.article-media-label {
  position: absolute;
  z-index: 2;
  left: 22px;
  top: 18px;
  color: #fff;
  font-weight: 800;
}
.article-media-shape {
  z-index: 1;
  left: 28px;
  right: 28px;
  bottom: 30px;
  height: 72px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}
.article-media-safety {
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.7)), url("/assets/oldnorth-crime-heatmap.png?v=20260530");
  background-position: center;
  background-size: cover;
}
.article-media-safety::before {
  background: rgba(32, 56, 71, 0.34);
}
.article-media-premium,
.article-media-streets {
  background:
    linear-gradient(135deg, rgba(32, 56, 71, 0.92), rgba(190, 162, 90, 0.76)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.2) 0 2px, transparent 2px 38px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.16) 0 2px, transparent 2px 34px);
}
.article-media-streets {
  background:
    linear-gradient(135deg, rgba(16, 37, 30, 0.96), rgba(32, 56, 71, 0.88)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.18) 0 2px, transparent 2px 30px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.12) 0 2px, transparent 2px 26px);
}
.article-media-western {
  background:
    radial-gradient(circle at 72% 28%, rgba(255,255,255,0.88) 0 18%, transparent 19%),
    linear-gradient(135deg, #203847, #7d372f 72%);
}
.article-media-renovation {
  background:
    linear-gradient(90deg, rgba(255,255,255,0.18) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,0.18) 1px, transparent 1px),
    linear-gradient(135deg, #7d372f, #151518);
  background-size: 34px 34px;
}
.article-media-tree {
  background:
    radial-gradient(circle at 24% 36%, rgba(255,255,255,0.5) 0 13%, transparent 14%),
    radial-gradient(circle at 68% 60%, rgba(190, 162, 90, 0.7) 0 18%, transparent 19%),
    linear-gradient(135deg, #10251e, #2f6f58);
}
.article-media-selling {
  background:
    linear-gradient(135deg, #111, #7d372f 82%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.18) 0 2px, transparent 2px 22px);
}
.article-card-copy {
  display: grid;
  gap: 12px;
  flex: 1 1 auto;
}
.article-preview h2 {
  max-width: 620px;
  margin: 0;
  color: var(--primary);
  font-family: var(--heading-font);
  font-size: 1.72rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: 0;
}
.article-preview p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.52;
}
.preview-meta {
  color: var(--primary);
  font-weight: 800;
}
.preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
}
.preview-arrow {
  color: var(--secondary);
  font-weight: 800;
}
.back-link {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  margin-bottom: 34px;
  border-radius: 999px;
  padding: 0 13px;
  color: var(--primary);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.82);
}
.article-hero {
  max-width: 980px;
  padding: 78px 0 54px;
  text-align: center;
}
.guide-hero {
  max-width: 980px;
  padding-top: 64px;
  padding-bottom: 42px;
}
.guide-hero h1 {
  margin-right: auto;
  margin-left: auto;
}
.guide-hero h1 span {
  display: block;
}
.guide-hero .article-dek {
  max-width: 790px;
  color: #293a46;
  font-size: 1.12rem;
  line-height: 1.5;
}
.article-hero .section-kicker {
  width: fit-content;
  margin-right: auto;
  margin-left: auto;
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.86);
}
.article-byline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}
.author-avatar {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: var(--primary);
  font-weight: 900;
}
.article-meta {
  display: grid;
  gap: 2px;
  text-align: left;
  color: var(--secondary);
  font-weight: 800;
}
.article-meta span:last-child {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}
.article-topic-list {
  margin-top: 18px;
}
.article-content {
  max-width: 840px;
  padding: 4px 0 82px;
}
.guide-layout {
  display: block;
  max-width: 1200px;
}
.guide-main {
  max-width: 880px;
  margin-right: auto;
  margin-left: auto;
}
.hero-takeaway {
  max-width: 760px;
  margin: 0 auto 50px;
  color: var(--primary);
  font-size: 1.34rem;
  font-weight: 700;
  line-height: 1.38;
  text-align: center;
}
.guide-section-nav {
  max-width: 980px;
  margin-bottom: 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0 20px;
}
.guide-section-nav p {
  margin: 0 0 12px;
  color: var(--secondary);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}
.guide-section-nav ol {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.guide-section-nav a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--primary);
  padding: 0 12px;
  font-size: 0.9rem;
  font-weight: 850;
  text-decoration: none;
}
.guide-section-nav a:hover,
.guide-section-nav a:focus-visible {
  border-color: var(--accent);
  color: var(--secondary);
}
.guide-section-nav a[aria-current="true"] {
  border-color: var(--accent);
  background: rgba(190, 162, 90, 0.12);
  color: var(--primary);
  font-weight: 950;
}
.guide-layout .article-visual-panel,
.guide-layout .article-chart,
.guide-layout .article-place-cards {
  width: min(1080px, calc(100vw - 40px));
  margin-left: 50%;
  transform: translateX(-50%);
}
.article-content [id],
.article-visual-panel[id],
.article-note[id] {
  scroll-margin-top: 92px;
}
.guide-quick-read {
  border-top: 0;
  padding-top: 46px;
}
.guide-quick-read .section-kicker {
  margin-bottom: 12px;
}
.guide-quick-read .hero-takeaway {
  margin: 0 0 24px;
  text-align: left;
}
.guide-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.guide-summary-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
}
.guide-summary-grid strong {
  display: block;
  color: var(--primary);
  font-family: var(--heading-font);
  font-size: 1.5rem;
  line-height: 1;
}
.guide-summary-grid span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.28;
}
.guide-link-row {
  margin-top: 18px;
}
.guide-link-row a {
  color: var(--secondary);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.guide-faq {
  display: grid;
  gap: 12px;
}
.guide-faq h2 {
  margin-bottom: 4px;
}
.guide-faq details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 0;
}
.guide-faq summary {
  cursor: pointer;
  color: var(--primary);
  padding: 16px 18px;
  font-weight: 900;
}
.guide-faq details p {
  margin: 0;
  border-top: 1px solid var(--line);
  padding: 0 18px 18px;
}
.hood-guide-section {
  display: grid;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 34px;
}
.hood-guide-map-panel {
  display: grid;
  gap: 22px;
  border: 1px solid rgba(32, 56, 71, 0.18);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(32, 56, 71, 0.08);
  padding: 28px;
}
.hood-guide-map-preview {
  width: min(100%, 760px);
  margin: 0 auto;
}
.hood-guide-map-preview img,
.hood-guide-map {
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(32, 56, 71, 0.18);
  border-radius: 4px;
  background: #f5f6f2;
}
.hood-guide-map {
  aspect-ratio: 1.56;
  min-height: 520px;
}
.hood-guide-map.can-drag-pan .maplibregl-canvas {
  cursor: grab;
}
.hood-guide-map.can-drag-pan .maplibregl-canvas:active {
  cursor: grabbing;
}
.hood-guide-map .maplibregl-ctrl-attrib {
  display: none;
}
.hood-guide-map .maplibregl-ctrl-top-right {
  top: 12px;
  right: 12px;
}
.hood-guide-map .maplibregl-ctrl-group {
  border: 1px solid rgba(32, 56, 71, 0.18);
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(32, 56, 71, 0.12);
  overflow: hidden;
}
.hood-guide-map .maplibregl-ctrl-group button {
  width: 34px;
  height: 34px;
}
.hood-guide-map-footer {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hood-guide-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 850;
}
.hood-guide-map-legend i {
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 999px;
  margin-right: 7px;
  vertical-align: -1px;
}
.hood-guide-map-legend .owner-dot {
  background: #0067ff;
}
.hood-guide-map-legend .renter-dot {
  background: #ff1f1f;
}
.hood-guide-category-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 820;
  line-height: 1.2;
}
.hood-guide-category-legend i {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  background: var(--legend-color, #65737e);
  box-shadow: 0 0 0 1px rgba(32, 56, 71, 0.12);
  margin-right: 6px;
  vertical-align: -1px;
}
.hood-guide-value-legend {
  display: grid;
  grid-template-columns: minmax(76px, auto) minmax(110px, 220px) minmax(76px, auto);
  gap: 12px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.2;
  width: 100%;
}
.value-legend-end {
  display: grid;
  gap: 2px;
}
.value-legend-end strong,
.value-legend-end em {
  display: block;
  font-style: normal;
}
.value-legend-end strong {
  color: var(--primary);
  font-family: var(--heading-font);
  font-size: 1rem;
  line-height: 1;
}
.value-legend-end em {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}
.value-legend-low {
  justify-items: end;
  text-align: right;
}
.value-legend-high {
  justify-items: start;
  text-align: left;
}
.hood-guide-value-legend i {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1d4ed8 0%, #2563eb 18%, #14b8a6 38%, #f59e0b 58%, #f97316 75%, #dc2626 90%, #7f1d1d 100%);
  box-shadow: inset 0 0 0 1px rgba(32, 56, 71, 0.12);
}
.hood-guide-age-legend i {
  background: linear-gradient(90deg, #22c55e 0%, #14b8a6 38%, #f59e0b 70%, #203847 100%);
}
.hood-guide-english-legend i {
  background: linear-gradient(90deg, #7c3aed 0%, #2563eb 36%, #14b8a6 70%, #065f46 100%);
}
.hood-guide-income-legend i {
  background: linear-gradient(90deg, #1d4ed8 0%, #14b8a6 34%, #f59e0b 58%, #f97316 78%, #7f1d1d 100%);
}
.hood-guide-education-legend i {
  background: linear-gradient(90deg, #f97316 0%, #f59e0b 30%, #14b8a6 56%, #2563eb 80%, #1e3a8a 100%);
}
.hood-guide-stat-panel {
  gap: 24px;
}
.hood-guide-section-copy h3 {
  margin: 0;
  color: var(--primary);
  font-family: var(--heading-font);
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  line-height: 1.08;
}
.hood-guide-section-copy h3 + p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.4;
}
.hood-guide-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.hood-guide-stat-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
}
.hood-guide-stat-card strong {
  display: block;
  color: var(--primary);
  font-family: var(--heading-font);
  font-size: 2rem;
  line-height: 1;
}
.hood-guide-stat-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.22;
}
.hood-guide-map-preview figcaption {
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.36;
}
.hood-guide-section-copy {
  display: grid;
  gap: 14px;
}
.hood-guide-section-copy h2 {
  margin-bottom: 0;
}
.hood-guide-bullets {
  display: block;
  margin: 2px 0 0;
  padding-left: 1.2rem;
  list-style: disc;
}
.hood-guide-bullets li {
  color: #263532;
  font-size: 1rem;
  font-weight: 720;
  line-height: 1.34;
}
.hood-guide-bullets li + li {
  margin-top: 8px;
}
.hood-guide-bullets li::marker {
  color: var(--accent);
  font-size: 0.82em;
}
@media (min-width: 1180px) {
  .guide-hero {
    width: min(880px, calc(100% - 48px));
    max-width: 880px;
    box-sizing: border-box;
  }
  .guide-hero h1,
  .guide-hero .article-dek {
    max-width: 880px;
  }
  .guide-layout {
    display: block;
    width: min(880px, calc(100% - 48px));
    max-width: 880px;
    position: relative;
  }
  .guide-main {
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
  }
  .guide-layout .article-visual-panel,
  .guide-layout .article-chart,
  .guide-layout .article-place-cards {
    width: 100%;
    margin-left: 0;
    transform: none;
  }
}
@media (min-width: 641px) and (max-width: 1179px) {
  .guide-hero {
    width: min(100% - 48px, 880px);
    padding-top: 58px;
    padding-bottom: 36px;
  }
  .guide-hero h1 {
    max-width: 760px;
    font-size: 3.55rem;
    line-height: 1.05;
  }
  .guide-hero .article-dek {
    max-width: 680px;
    font-size: 1.06rem;
  }
  .guide-layout {
    width: min(100% - 48px, 880px);
  }
  .guide-main {
    max-width: 880px;
  }
  .guide-section-nav {
    position: sticky;
    top: 0;
    z-index: 8;
    max-width: none;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.96);
    padding: 13px 0 14px;
    backdrop-filter: blur(16px);
  }
  .guide-section-nav p {
    margin-bottom: 9px;
  }
  .guide-section-nav ol {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .guide-section-nav ol::-webkit-scrollbar {
    display: none;
  }
  .guide-section-nav a {
    white-space: nowrap;
  }
  .hood-guide-bullets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.article-hero .article-dek {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}
.article-block {
  border-top: 1px solid var(--line);
  padding: 34px 0;
}
.article-block h2,
.article-note h2,
.compare-block h2 {
  margin: 0 0 16px;
  color: var(--primary);
  font-family: var(--heading-font);
  font-size: 2.3rem;
  line-height: 1.04;
}
.article-block p,
.article-note p,
.compare-block p {
  color: #263532;
  font-size: 1.08rem;
}
.article-block p:last-child,
.article-note p:last-child {
  margin-bottom: 0;
}
.article-pullquote {
  margin: 18px 0;
  border-top: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  padding: 26px 0;
}
.article-pullquote p {
  margin: 0;
  color: var(--primary);
  font-family: var(--heading-font);
  font-size: 2.15rem;
  line-height: 1.08;
}
.guide-page .article-pullquote {
  border-top: 0;
  border-bottom: 0;
  padding: 10px 0 24px;
}
.guide-page .guide-main {
  display: grid;
  gap: clamp(30px, 4vw, 46px);
}
.guide-page .hood-guide-section,
.guide-page .hood-guide-section.article-block,
.guide-page #demographics.article-block {
  border-top: 0;
  padding: 0;
}
.guide-page .hood-guide-section {
  gap: clamp(28px, 4vw, 42px);
}
.guide-page .hood-guide-map-panel {
  box-shadow:
    0 30px 80px rgba(19, 37, 48, 0.2),
    0 8px 24px rgba(19, 37, 48, 0.12);
}
.guide-page .hood-guide-section-one.article-block {
  border-top: 2px solid var(--accent);
  padding-top: clamp(22px, 3vw, 30px);
}
.back-to-top {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 30;
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(190, 162, 90, 0.55);
  border-radius: 999px;
  background: rgba(32, 56, 71, 0.94);
  color: #ffffff;
  box-shadow: 0 14px 38px rgba(32, 56, 71, 0.22);
  font-family: var(--heading-font);
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease, background-color 160ms ease;
}
.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--primary);
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.article-bullets ul,
.compare-column ul {
  margin: 0;
  padding-left: 20px;
}
.article-bullets li,
.compare-column li {
  margin: 9px 0;
}
.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.compare-column,
.article-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 20px;
}
.compare-column h3 {
  margin: 0 0 10px;
  color: var(--secondary);
  font-size: 1.05rem;
}
.article-note {
  margin: 16px 0 34px;
}
.topic-hero {
  max-width: 820px;
  padding: 96px 0 74px;
  text-align: center;
}
.topic-hero h1 {
  margin: 0;
  color: var(--primary);
  font-family: var(--heading-font);
  font-size: 4.3rem;
  line-height: 0.96;
}
.topic-hero p {
  max-width: 680px;
  margin: 26px auto 0;
  color: #36363c;
  font-size: 1.18rem;
  line-height: 1.5;
}
.topic-hero .topic-coverage {
  max-width: 760px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.02rem;
}
.topic-latest {
  margin: 0 0 8px;
  color: var(--primary);
  font-weight: 900;
}
.topic-list-summary {
  max-width: 840px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}
.topic-search-section {
  border-top: 1px solid var(--line);
  padding: 26px 0 30px;
}
.topic-search-inner {
  display: grid;
  grid-template-columns: minmax(190px, 260px) minmax(0, 1fr);
  gap: 12px 28px;
  align-items: center;
}
.topic-search-copy p:last-child {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.45;
}
.topic-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.topic-search-form input,
.topic-search-form button {
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
}
.topic-search-form input {
  width: 100%;
  padding: 0 18px;
  color: var(--primary);
  background: #fff;
  font-weight: 800;
}
.topic-search-form input:focus {
  outline: 3px solid rgba(190, 162, 90, 0.28);
  border-color: var(--accent);
}
.topic-search-form button {
  padding: 0 18px;
  color: var(--primary);
  background: #fff;
  font-weight: 900;
  cursor: pointer;
}
.topic-search-form button:hover,
.topic-search-form button:focus-visible {
  border-color: var(--accent);
}
.topic-search-status {
  grid-column: 2;
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}
.topic-search-empty {
  grid-column: 2;
  margin: 0;
  border-left: 4px solid var(--accent);
  padding-left: 12px;
  color: var(--secondary);
  font-weight: 800;
  line-height: 1.4;
}
[data-search-item][hidden] {
  display: none !important;
}
[data-search-group][hidden] {
  display: none !important;
}
.street-spotlight-section {
  border-top: 1px solid var(--line);
  padding: 34px 0 64px;
}
.section-heading-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 24px;
}
.section-heading-row p:last-child {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.48;
}
.street-spotlight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.street-spotlight-card a {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(32, 56, 71, 0.03), rgba(190, 162, 90, 0.06)),
    #fff;
}
.street-spotlight-card a:hover,
.street-spotlight-card a:focus-visible {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.street-spotlight-card h2 {
  margin: 0;
  color: var(--primary);
  font-family: var(--heading-font);
  font-size: 2rem;
  line-height: 1.06;
}
.street-spotlight-card p {
  margin: 0;
  color: var(--muted);
}
.street-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}
.street-card-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--primary);
  background: #fff;
  font-size: 0.82rem;
  font-weight: 900;
}
.school-section,
.school-comparison-section {
  border-top: 1px solid var(--line);
  padding: 34px 0 64px;
}
.school-profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.school-profile-card a {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  color: var(--primary);
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(190, 162, 90, 0.08), rgba(32, 56, 71, 0.03)),
    #fff;
  transition: transform 180ms ease, border-color 180ms ease;
}
.school-profile-card a:hover,
.school-profile-card a:focus-visible {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.school-profile-card h2 {
  margin: 0;
  font-family: var(--heading-font);
  font-size: 1.75rem;
  line-height: 1.08;
}
.school-profile-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.school-card-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
}
.school-card-metrics span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}
.school-card-metrics strong,
.school-card-metrics em {
  display: block;
}
.school-card-metrics strong {
  color: var(--primary);
  font-family: var(--heading-font);
  font-size: 1.35rem;
  line-height: 1;
}
.school-card-metrics em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.15;
}
.school-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.school-comparison-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}
.school-comparison-table th,
.school-comparison-table td {
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
}
.school-comparison-table th {
  color: var(--primary);
  font-weight: 900;
}
.school-comparison-table thead th {
  color: var(--secondary);
  font-size: 0.82rem;
  text-transform: uppercase;
}
.school-comparison-table tbody tr:last-child th,
.school-comparison-table tbody tr:last-child td {
  border-bottom: 0;
}
.school-comparison-table td {
  color: var(--muted);
}
.school-stat-section {
  padding-bottom: 34px;
}
.school-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.school-stat,
.school-read-card,
.school-context-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.school-stat {
  padding: 18px;
}
.school-stat strong {
  display: block;
  color: var(--primary);
  font-family: var(--heading-font);
  font-size: 2rem;
  line-height: 1;
}
.school-stat span {
  display: block;
  margin-top: 8px;
  color: var(--secondary);
  font-weight: 900;
}
.school-stat p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}
.school-read-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 34px;
  padding: 22px;
}
.school-read-card p:last-child {
  margin: 0;
  color: #263532;
  font-size: 1.05rem;
  font-weight: 700;
}
.school-chart {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}
.school-chart-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}
.school-chart-row.is-active {
  border-color: rgba(190, 162, 90, 0.82);
  box-shadow: 0 14px 38px rgba(32, 56, 71, 0.08);
}
.school-chart-row.is-benchmark {
  background: rgba(32, 56, 71, 0.04);
}
.school-chart-label {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--primary);
  font-weight: 900;
}
.school-context-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.school-context-item {
  padding: 16px;
}
.school-context-item strong,
.school-context-item span {
  display: block;
}
.school-context-item strong {
  color: var(--primary);
  font-family: var(--heading-font);
  font-size: 1.8rem;
  line-height: 1;
}
.school-context-item span {
  margin-top: 8px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.25;
}
.street-hero {
  max-width: 1080px;
}
.street-map-section {
  padding-bottom: 54px;
}
.street-map-figure {
  margin: 0;
}
.street-map-figure img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f5ef;
}
.street-map-figure figcaption {
  max-width: 820px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}
.street-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.street-stat {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}
.street-stat strong {
  display: block;
  color: var(--primary);
  font-family: var(--heading-font);
  font-size: 1.8rem;
  line-height: 1;
}
.street-stat span {
  display: block;
  margin-top: 7px;
  color: var(--secondary);
  font-weight: 900;
}
.street-stat p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}
.street-content {
  max-width: 920px;
}
.street-quick-read {
  border-top: 1px solid var(--line);
  padding: 30px 0 34px;
}
.street-quick-read ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.street-quick-read li {
  border-left: 4px solid var(--accent);
  padding: 4px 0 4px 14px;
  color: #263532;
  font-weight: 700;
}
.street-blocks {
  border-top: 1px solid var(--line);
  padding: 34px 0;
}
.street-section-heading {
  max-width: 760px;
  margin-bottom: 18px;
}
.street-section-heading h2 {
  margin: 0 0 12px;
  color: var(--primary);
  font-family: var(--heading-font);
  font-size: 2.4rem;
  line-height: 1.03;
}
.street-section-heading p:last-child {
  margin: 0;
  color: var(--muted);
}
.street-block-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.street-block-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
}
.block-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.block-card-top span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: var(--primary);
  font-weight: 900;
}
.block-card-top p {
  margin: 0;
  color: var(--secondary);
  font-size: 0.9rem;
  font-weight: 900;
}
.street-block-card h3 {
  margin: 0 0 10px;
  color: var(--primary);
  font-family: var(--heading-font);
  font-size: 1.24rem;
  line-height: 1.16;
}
.street-block-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.46;
}
.street-block-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0 0;
}
.street-block-card dl div {
  border-top: 1px solid var(--line);
  padding-top: 9px;
}
.street-block-card dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}
.street-block-card dd {
  margin: 3px 0 0;
  color: var(--primary);
  font-weight: 900;
}
.newsletter-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 32px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 54px 0 76px;
}
.newsletter-copy h2 {
  max-width: 680px;
  margin: 0;
  color: var(--primary);
  font-family: var(--heading-font);
  font-size: 2.7rem;
  line-height: 1;
}
.newsletter-copy p:last-child {
  max-width: 620px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}
.newsletter-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}
.newsletter-form input {
  min-width: 0;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}
.newsletter-form button {
  height: 54px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  color: #fff;
  background: var(--primary);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.newsletter-status {
  grid-column: 1 / -1;
  min-height: 20px;
  margin: 0 0 0 4px;
  color: var(--secondary);
  font-size: 0.9rem;
  font-weight: 800;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.article-market-section {
  width: min(1080px, calc(100vw - 40px));
  margin: 30px 0 42px 50%;
  transform: translateX(-50%);
  border-top: 1px solid var(--line);
  padding-top: 34px;
}
.market-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 18px;
}
.market-section-head h2 {
  margin: 0;
  color: var(--primary);
  font-family: var(--heading-font);
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1;
}
.market-section-head p:not(.section-kicker) {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.48;
}
.market-pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 240px;
}
.market-pill-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 13px;
  color: var(--primary);
  background: #fff;
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1;
}
.market-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.market-metric-card {
  min-height: 235px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(32, 56, 71, 0.07);
  padding: 18px;
}
.market-metric-card > span,
.market-value-label {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}
.market-metric-card strong {
  display: block;
  margin-top: 8px;
  color: var(--primary);
  font-family: var(--heading-font);
  font-size: clamp(2.4rem, 4vw, 3.3rem);
  line-height: 0.98;
}
.market-metric-card small {
  display: block;
  min-height: 42px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.35;
}
.market-spark {
  --spark: var(--secondary);
  margin-top: 13px;
  padding-top: 10px;
  border-top: 1px solid rgba(32, 56, 71, 0.10);
}
.market-spark svg {
  display: block;
  width: 100%;
  height: 58px;
  overflow: visible;
}
.market-spark-large {
  margin-top: 20px;
  padding-top: 0;
  border-top: 0;
}
.market-spark-large svg {
  height: 230px;
}
.market-spark-guide {
  stroke: rgba(32, 56, 71, 0.14);
  stroke-width: 1;
}
.market-spark-line {
  fill: none;
  stroke: var(--spark);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.market-spark-area {
  fill: rgba(125, 55, 47, 0.13);
}
.market-spark-dot {
  fill: #fff;
  stroke: var(--spark);
  stroke-width: 3;
}
.market-spark-labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1;
}
.market-spark-empty {
  min-height: 74px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}
.market-type-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}
.market-type-tab {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--primary);
  background: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.market-type-tab.is-active {
  border-color: var(--secondary);
  color: #fff;
  background: var(--secondary);
}
.market-type-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(32, 56, 71, 0.07);
  padding: 28px;
}
.market-type-card[hidden] {
  display: none;
}
.market-type-card-head {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: start;
}
.market-type-card h3 {
  margin: 0;
  color: var(--primary);
  font-family: var(--heading-font);
  font-size: 2.15rem;
  line-height: 1;
}
.market-value-label {
  margin-top: 18px;
}
.market-type-value {
  display: block;
  margin-top: 8px;
  color: var(--primary);
  font-family: var(--heading-font);
  font-size: clamp(3.1rem, 7vw, 4.8rem);
  line-height: 0.95;
}
.market-type-card-head > p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.48;
}
.market-type-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 26px;
}
.market-type-stat-grid span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(32, 56, 71, 0.025);
  padding: 13px;
}
.market-type-stat-grid strong,
.market-type-stat-grid em {
  display: block;
}
.market-type-stat-grid strong {
  color: var(--primary);
  font-family: var(--heading-font);
  font-size: 1.6rem;
  line-height: 1;
}
.market-type-stat-grid em {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1.18;
  text-transform: uppercase;
}
.market-type-chart {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(190, 162, 90, 0.06), rgba(255, 255, 255, 0));
  padding: 18px 18px 12px;
}
.article-visual-panel,
.article-chart,
.article-place-cards {
  width: min(1080px, calc(100vw - 40px));
  margin-left: 50%;
  transform: translateX(-50%);
}
.article-visual-panel {
  margin-top: 24px;
  margin-bottom: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(190, 162, 90, 0.14), rgba(255, 255, 255, 0) 42%),
    var(--surface);
  box-shadow: var(--shadow);
  padding: 26px;
}
.visual-panel-copy {
  max-width: 760px;
}
.visual-panel-copy h2 {
  margin: 0 0 12px;
  color: var(--primary);
  font-family: var(--heading-font);
  font-size: 2.35rem;
  line-height: 1.02;
}
.visual-panel-copy p:last-child {
  margin-bottom: 0;
}
.article-place-cards {
  margin-top: 28px;
  margin-bottom: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 26px;
}
.place-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}
.place-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(190, 162, 90, 0.06), rgba(255, 255, 255, 0));
}
.place-card-media {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: #f1eee5;
}
.place-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.place-card-media-empty {
  display: grid;
  place-items: center;
  color: var(--primary);
  font-family: var(--heading-font);
  font-size: 3rem;
  font-weight: 800;
  background:
    radial-gradient(circle at 30% 30%, rgba(190, 162, 90, 0.28), transparent 34%),
    linear-gradient(135deg, rgba(32, 56, 71, 0.1), rgba(125, 55, 47, 0.08));
}
.place-logo {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(23, 33, 31, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 30px rgba(32, 56, 71, 0.18);
}
.place-logo img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}
.place-logo-centered {
  right: 50%;
  bottom: 50%;
  width: 86px;
  height: 86px;
  transform: translate(50%, 50%);
}
.place-logo-centered img {
  width: 62px;
  height: 62px;
}
.place-card-body {
  display: grid;
  gap: 12px;
  padding: 20px;
}
.place-category,
.place-address,
.place-card-note {
  margin: 0;
  color: var(--muted);
}
.place-category {
  color: var(--secondary);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}
.place-card h3 {
  margin: 0;
  color: var(--primary);
  font-family: var(--heading-font);
  font-size: 1.62rem;
  line-height: 1.08;
}
.place-address {
  font-weight: 700;
}
.place-rating {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.place-stars {
  display: inline-flex;
  gap: 1px;
  font-size: 1.08rem;
  line-height: 1;
}
.star-filled {
  color: var(--accent);
}
.star-empty,
.place-stars-empty {
  color: rgba(95, 107, 103, 0.35);
}
.place-rating strong {
  color: var(--primary);
  font-size: 0.92rem;
}
.place-card-notes {
  display: grid;
  gap: 10px;
  margin: 0;
}
.place-card-notes div {
  display: grid;
  gap: 2px;
}
.place-card-notes dt {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}
.place-card-notes dd {
  margin: 0;
  color: #36363c;
}
.place-links {
  min-height: 25px;
}
.place-links a {
  color: var(--secondary);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.place-card-note {
  margin-top: 16px;
  font-size: 0.95rem;
}
.visual-panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(250px, 0.75fr);
  gap: 18px;
  margin-top: 22px;
}
.heatmap-panel {
  display: grid;
  gap: 20px;
}
.heatmap-map {
  min-height: 620px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef0eb;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.86) inset;
}
.heatmap-map .leaflet-control-attribution {
  color: var(--muted);
  font-size: 0.72rem;
}
.heatmap-map .leaflet-control-zoom a {
  color: var(--primary);
}
.heatmap-map noscript img {
  width: 100%;
  min-height: inherit;
  object-fit: cover;
}
.heatmap-figure {
  margin: 0;
}
.heatmap-figure img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.heatmap-legend {
  display: grid;
  grid-template-columns: max-content minmax(110px, 220px) max-content;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}
.heatmap-legend span {
  white-space: nowrap;
}
.heatmap-legend-bar {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(250, 214, 110, 0.52), rgba(226, 132, 68, 0.72), rgba(70, 30, 71, 0.9));
}
.about-map-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: -4px;
}
.about-map-toolbar button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--primary);
  padding: 0 14px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
}
.about-map-toolbar button.is-active {
  border-color: var(--accent);
  background: var(--primary);
  color: #fffdf8;
}
.about-census-map {
  min-height: 540px;
  background: #f8fafc;
}
.about-value-map {
  min-height: 520px;
}
.about-address-map {
  min-height: 520px;
}
.about-schools-map {
  min-height: 500px;
}
.about-census-map .maplibregl-control-container {
  color: var(--primary);
}
.about-map-legend[data-metric="value"] .heatmap-legend-bar {
  background: linear-gradient(90deg, #2563eb, #f8fafc, #dc2626);
}
.about-map-legend[data-metric="ownerRenter"] .heatmap-legend-bar {
  background: linear-gradient(90deg, #2563eb, #f8fafc, #dc2626);
}
.about-map-legend[data-metric="renter"] .heatmap-legend-bar {
  background: linear-gradient(90deg, #dbeafe, #fecaca, #dc2626);
}
.about-map-legend[data-metric="owner"] .heatmap-legend-bar,
.about-map-legend[data-metric="noMortgage"] .heatmap-legend-bar {
  background: linear-gradient(90deg, #dbeafe, #60a5fa, #1d4ed8);
}
.about-map-legend[data-metric="income"] .heatmap-legend-bar {
  background: linear-gradient(90deg, #dbeafe, #60a5fa, #1d4ed8);
}
.about-map-legend[data-metric="age"] .heatmap-legend-bar {
  background: linear-gradient(90deg, #e0f2fe, #38bdf8, #4f46e5);
}
.heatmap-figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}
.heatmap-map-footer {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}
.heatmap-map-footer p {
  max-width: 650px;
  margin: 0;
}
.heatmap-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.about-map-panel {
  display: grid;
  gap: 18px;
}
.about-map-panel .visual-panel-copy h2 {
  max-width: 780px;
  font-size: 2.15rem;
}
.about-map-panel .visual-panel-copy p {
  max-width: 760px;
}
.about-map-panel .heatmap-stat-grid {
  gap: 8px;
}
.about-map-panel .visual-stat {
  padding: 12px;
}
.about-map-panel .visual-stat strong {
  font-size: 2.05rem;
}
.about-map-panel .visual-stat span {
  margin-top: 5px;
  font-size: 0.86rem;
  line-height: 1.18;
}
.schools-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}
.schools-map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.legend-dot,
.legend-soft-dot,
.legend-ring,
.legend-overlap {
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 50%;
}
.legend-dot-public {
  background: #2563eb;
}
.legend-dot-catholic {
  background: #dc2626;
}
.legend-ring {
  border: 3px solid #0f172a;
  background: #fff;
}
.legend-soft-dot {
  background: #64748b;
  opacity: 0.55;
}
.legend-overlap {
  border: 2px solid #7c3aed;
  background: rgba(124, 58, 237, 0.18);
}
.school-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.school-summary-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
}
.school-summary-grid h3 {
  margin: 6px 0 8px;
  font-size: 1.08rem;
  line-height: 1.25;
}
.school-summary-grid h3 a {
  color: var(--primary);
  text-decoration: none;
}
.school-summary-grid h3 a:hover,
.school-summary-grid h3 a:focus-visible {
  color: var(--secondary);
}
.school-summary-grid p:last-child {
  margin-bottom: 0;
  font-size: 0.95rem;
  line-height: 1.42;
}
.about-map-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.about-map-snapshot-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.about-map-snapshot-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  background: #f8fafc;
}
.about-map-snapshot-grid figcaption {
  padding: 10px 12px 12px;
  color: var(--primary);
  font-weight: 850;
  line-height: 1.25;
}
.crime-map-stage {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(32, 56, 71, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(32, 56, 71, 0.06) 1px, transparent 1px),
    #ffffff;
  background-size: 34px 34px;
}
.crime-map-stage img {
  width: min(62%, 370px);
  margin: 44px auto 0;
  filter: drop-shadow(0 16px 24px rgba(32, 56, 71, 0.18));
}
.map-chip {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  display: grid;
  min-width: 104px;
  gap: 2px;
  border: 1px solid rgba(32, 56, 71, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 10px 24px rgba(32, 56, 71, 0.14);
  padding: 8px 10px;
}
.map-chip span {
  color: var(--secondary);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
.map-chip strong {
  color: var(--primary);
  font-family: var(--heading-font);
  font-size: 1.75rem;
  line-height: 1;
}
.visual-stat-grid {
  display: grid;
  gap: 12px;
}
.stat-panel-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.visual-stat {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: 18px;
}
.visual-stat strong {
  display: block;
  color: var(--primary);
  font-family: var(--heading-font);
  font-size: 2.8rem;
  line-height: 0.95;
}
.visual-stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.25;
}
.visual-caption {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.article-chart {
  border-top: 1px solid var(--line);
}
.chart-rows {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}
.chart-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
}
.chart-row-label {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--primary);
  font-weight: 900;
}
.chart-row-label strong {
  font-family: var(--heading-font);
  font-size: 1.6rem;
  line-height: 1;
}
.chart-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(32, 56, 71, 0.12);
  margin: 10px 0;
}
.chart-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
}
.chart-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 28px 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(210px, 270px) minmax(0, 1fr);
  align-items: center;
  gap: 28px;
}
.footer-brand img { width: 232px; }
.footer-copy {
  display: grid;
  gap: 10px;
  justify-items: end;
  text-align: right;
}
.footer-copy p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 16px;
}
.footer-nav a {
  color: var(--primary);
  font-weight: 900;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.footer-nav a:hover,
.footer-nav a:focus-visible {
  border-color: var(--accent);
}
@media (max-width: 840px) {
  .header-inner {
    align-items: center;
    flex-direction: row;
    gap: 14px;
  }
  .main-nav { justify-content: flex-end; }
  .article-preview-grid,
  .compare-grid,
  .place-card-grid,
  .visual-panel-grid,
  .section-heading-row,
  .market-type-card-head,
  .topic-search-inner,
  .street-spotlight-grid,
  .school-profile-grid,
  .school-card-metrics,
  .school-stat-grid,
  .school-read-card,
  .school-context-grid,
  .school-summary-grid,
  .street-stat-grid,
  .street-quick-read ul,
  .street-block-grid,
  .newsletter-block,
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .market-section-head {
    display: block;
  }
  .market-pill-row {
    justify-content: flex-start;
    margin-top: 14px;
  }
  .market-metric-grid,
  .market-type-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .crime-map-stage {
    min-height: 330px;
  }
  .heatmap-map {
    min-height: 520px;
  }
  .heatmap-map-footer {
    display: grid;
    justify-content: start;
  }
  .heatmap-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .about-census-map,
  .about-value-map,
  .about-address-map {
    min-height: 460px;
  }
  .about-schools-map {
    min-height: 440px;
  }
  .about-map-panel .visual-panel-copy h2 {
    font-size: 1.9rem;
  }
  .about-map-panel .visual-stat strong {
    font-size: 1.85rem;
  }
  .hero-layout {
    grid-template-columns: 1fr;
  }
  .hero-inner h1,
  .article-hero h1 {
    font-size: 3.75rem;
  }
  .topic-hero h1 {
    font-size: 3.7rem;
  }
  .article-media {
    min-height: 280px;
  }
  .footer-copy {
    justify-items: start;
    text-align: left;
  }
  .footer-nav {
    justify-content: flex-start;
  }
  .street-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .school-stat-grid,
  .school-context-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .about-map-snapshot-grid {
    grid-template-columns: 1fr;
  }
  .topic-search-status,
  .topic-search-empty {
    grid-column: auto;
  }
}
@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 24px, 1180px);
  }
  .site-header {
    position: static;
  }
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    min-height: 68px;
    gap: 8px;
    padding: 10px 0;
  }
  .brand-link img,
  .footer-brand img {
    width: 190px;
  }
  .main-nav {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
    gap: 6px;
  }
  .main-nav a {
    min-height: 38px;
    padding: 7px 11px;
    font-size: 0.95rem;
  }
  .guide-page .header-inner {
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }
  .guide-page .main-nav {
    width: auto;
    justify-content: flex-end;
    margin-left: auto;
  }
  .article-market-section,
  .article-visual-panel,
  .article-chart,
  .article-place-cards {
    width: min(100vw - 24px, 1080px);
  }
  .article-place-cards {
    padding: 18px;
  }
  .place-card-media {
    height: 185px;
  }
  .market-metric-grid,
  .market-type-stat-grid {
    grid-template-columns: 1fr;
  }
  .market-type-card {
    padding: 18px;
  }
  .market-spark-large svg {
    height: 190px;
  }
  .market-type-tab {
    width: 100%;
  }
  .hero-section {
    padding: 34px 0 22px;
  }
  .article-hero {
    padding: 52px 0 36px;
    text-align: left;
  }
  .article-hero .section-kicker,
  .article-hero .article-dek {
    margin-left: 0;
    margin-right: 0;
    text-align: left;
  }
  .article-byline {
    justify-content: flex-start;
  }
  .article-topic-list {
    justify-content: flex-start;
  }
  .hero-inner {
    padding-left: 0;
  }
  .hero-inner h1,
  .article-hero h1 {
    max-width: 17ch;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    white-space: normal;
    font-size: 1.64rem;
    line-height: 1.14;
  }
  .hero-actions {
    margin-top: 20px;
  }
  .hero-actions p {
    display: none;
  }
  .hero-action-primary {
    min-height: 50px;
    padding: 0 24px;
  }
  .hero-deck,
  .article-dek {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: 0.98rem;
  }
  .article-hero .article-dek {
    max-width: 34ch;
  }
  .guide-hero {
    padding: 34px 0 24px;
    text-align: center;
  }
  .guide-hero .section-kicker {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
  }
  .guide-hero h1 {
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    font-size: 2.42rem;
    line-height: 1.05;
    text-align: center;
  }
  .guide-hero .article-dek {
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
    font-size: 0.98rem;
    line-height: 1.46;
    text-align: center;
  }
  .hero-takeaway {
    max-width: 28ch;
    margin-left: 0;
    margin-right: 0;
    overflow-wrap: anywhere;
    font-size: 1.06rem;
    text-align: left;
  }
  .guide-section-nav {
    position: sticky;
    top: 0;
    z-index: 8;
    width: calc(100% + 24px);
    margin-right: -12px;
    margin-bottom: 4px;
    margin-left: -12px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    padding: 10px 12px 11px;
    backdrop-filter: blur(16px);
  }
  .guide-section-nav p {
    margin-bottom: 8px;
    font-size: 0.72rem;
  }
  .guide-section-nav ol {
    flex-wrap: nowrap;
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .guide-section-nav ol::-webkit-scrollbar {
    display: none;
  }
  .guide-section-nav a {
    white-space: nowrap;
    min-height: 31px;
    padding: 0 10px;
    font-size: 0.8rem;
  }
  .guide-quick-read {
    padding-top: 30px;
  }
  .guide-quick-read .hero-takeaway {
    max-width: 100%;
    margin-bottom: 18px;
  }
  .guide-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hood-guide-section {
    gap: 18px;
    padding-top: 24px;
  }
  .guide-page .guide-main,
  .guide-page .hood-guide-section,
  .guide-page .hood-guide-section-copy,
  .guide-page .hood-guide-map-panel {
    min-width: 0;
    max-width: 100%;
  }
  .hood-guide-map-panel {
    gap: 16px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    padding: 18px 12px;
    box-shadow: none;
  }
  .hood-guide-map-preview {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    margin-left: 0;
  }
  .hood-guide-map-preview img,
  .hood-guide-map {
    border-right: 1px solid rgba(32, 56, 71, 0.18);
    border-left: 1px solid rgba(32, 56, 71, 0.18);
    border-radius: 4px;
  }
  .hood-guide-map {
    width: 100%;
    height: 292px;
    min-height: 0;
    aspect-ratio: auto;
  }
  .hood-guide-map-footer {
    display: flex;
  }
  .hood-guide-map-legend {
    gap: 8px 14px;
    font-size: 0.82rem;
  }
  .hood-guide-category-legend {
    gap: 8px 12px;
    font-size: 0.78rem;
  }
  .hood-guide-category-legend i {
    width: 10px;
    height: 10px;
    margin-right: 5px;
  }
  .hood-guide-value-legend {
    grid-template-columns: minmax(68px, 1fr) minmax(90px, 1.2fr) minmax(68px, 1fr);
    gap: 7px;
    align-items: center;
  }
  .hood-guide-value-legend i {
    width: 100%;
    height: 10px;
  }
  .value-legend-end strong {
    font-size: 0.82rem;
  }
  .value-legend-end em {
    font-size: 0.68rem;
  }
  .hood-guide-section-copy h3 {
    font-size: 1.5rem;
  }
  .hood-guide-section-copy h3 + p {
    font-size: 0.9rem;
  }
  .hood-guide-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .hood-guide-stat-card {
    padding: 14px;
  }
  .hood-guide-stat-card strong {
    font-size: 1.55rem;
  }
  .hood-guide-stat-card span {
    font-size: 0.78rem;
  }
  .hood-guide-map-preview figcaption {
    font-size: 0.82rem;
    line-height: 1.35;
  }
  .hood-guide-section-copy {
    gap: 11px;
  }
  .hood-guide-bullets li {
    font-size: 0.9rem;
  }
  .guide-summary-grid article {
    padding: 12px;
  }
  .guide-summary-grid strong {
    font-size: 1.16rem;
  }
  .guide-summary-grid span {
    font-size: 0.8rem;
  }
  .article-section {
    padding-bottom: 48px;
  }
  .article-block h2,
  .article-note h2,
  .street-section-heading h2 {
    max-width: 20ch;
    overflow-wrap: break-word;
    font-size: 1.86rem;
  }
  .article-card-main {
    min-height: auto;
    padding: 0;
  }
  .topic-hero {
    padding: 54px 0 44px;
  }
  .topic-hero h1 {
    font-size: 2.8rem;
  }
  .topic-search-section {
    padding: 22px 0 26px;
  }
  .topic-search-form {
    grid-template-columns: 1fr;
  }
  .topic-search-form button {
    width: 100%;
  }
  .newsletter-block {
    padding: 38px 0 52px;
  }
  .newsletter-copy h2 {
    font-size: 2rem;
  }
  .newsletter-form {
    grid-template-columns: 1fr;
  }
  .newsletter-form button {
    width: 100%;
  }
  .article-media {
    min-height: 220px;
    border-radius: 22px;
  }
  .article-preview h2 {
    font-size: 1.52rem;
  }
  .article-content {
    padding-bottom: 56px;
  }
  .hero-takeaway {
    margin-bottom: 34px;
    font-size: 1.16rem;
  }
  .about-map-panel {
    gap: 14px;
    padding: 16px;
  }
  .about-map-panel .visual-panel-copy h2 {
    font-size: 1.55rem;
    line-height: 1.08;
  }
  .about-map-panel .visual-panel-copy p {
    font-size: 0.98rem;
  }
  .about-map-toolbar {
    gap: 6px;
  }
  .about-map-toolbar button {
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.82rem;
  }
  .about-census-map,
  .about-value-map,
  .about-address-map {
    min-height: 340px;
  }
  .street-spotlight-section {
    padding: 28px 0 42px;
  }
  .street-spotlight-card a {
    min-height: 0;
    padding: 18px;
  }
  .school-section,
  .school-comparison-section {
    padding: 28px 0 42px;
  }
  .school-profile-card a,
  .school-stat,
  .school-read-card,
  .school-context-item {
    padding: 18px;
  }
  .school-stat-grid,
  .school-context-grid {
    grid-template-columns: 1fr;
  }
  .about-schools-map {
    min-height: 360px;
  }
  .about-map-panel .heatmap-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .about-map-panel .visual-stat {
    padding: 10px;
  }
  .about-map-panel .visual-stat strong {
    font-size: 1.55rem;
  }
  .about-map-panel .visual-stat span {
    font-size: 0.78rem;
  }
  .street-map-section {
    padding-bottom: 34px;
  }
  .street-stat-grid,
  .street-block-card dl {
    grid-template-columns: 1fr;
  }
  .street-stat strong {
    font-size: 1.55rem;
  }
  .street-quick-read li {
    font-size: 0.96rem;
  }
  .street-block-card {
    padding: 16px;
  }
  .article-visual-panel,
  .article-chart {
    width: min(100vw - 24px, 1180px);
  }
  .article-visual-panel {
    padding: 18px;
  }
  .visual-panel-copy h2 {
    font-size: 2rem;
  }
  .crime-map-stage {
    min-height: 300px;
  }
  .heatmap-map {
    min-height: 430px;
  }
  .about-map-panel .about-census-map,
  .about-map-panel .about-value-map {
    min-height: 340px;
  }
  .about-map-panel .about-schools-map {
    min-height: 360px;
  }
  .heatmap-stat-grid {
    grid-template-columns: 1fr;
  }
  .map-prototype-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .map-prototype-panel {
    position: relative;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 18px;
  }
  .map-prototype-map-wrap,
  .map-prototype-map {
    min-height: 68vh;
  }
  .map-prototype-map {
    position: relative;
  }
  .map-prototype-legend {
    left: 14px;
    right: 14px;
    bottom: 14px;
    max-width: none;
  }
  .prototype-note-grid {
    grid-template-columns: 1fr;
  }
  .stat-panel-grid {
    grid-template-columns: 1fr;
  }
  .crime-map-stage img {
    width: min(74%, 280px);
    margin-top: 38px;
  }
  .map-chip {
    min-width: 88px;
    padding: 7px 8px;
  }
  .map-chip span {
    font-size: 0.68rem;
  }
  .map-chip strong {
    font-size: 1.45rem;
  }
  .hero-takeaway {
    font-size: 1.16rem;
  }
  .article-pullquote p {
    font-size: 1.35rem;
  }
  .site-footer {
    padding: 22px 0;
  }
  .footer-copy {
    gap: 8px;
  }
  .footer-copy p,
  .footer-nav a {
    font-size: 0.96rem;
  }
  .footer-nav {
    gap: 5px 14px;
  }
}
@media (max-width: 360px) {
  .brand-link img {
    width: 180px;
  }
}

@media (min-width: 641px) and (max-width: 1179px) {
  .guide-page .guide-hero h1 {
    max-width: 760px;
    font-size: 3.55rem;
    line-height: 1.05;
  }
  .guide-page .guide-hero .article-dek {
    max-width: 680px;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .guide-page .guide-hero h1 {
    max-width: 100%;
    font-size: 2.42rem;
    line-height: 1.05;
  }
  .guide-page .hood-guide-section-copy h2 {
    max-width: none;
    font-size: 1.68rem;
    line-height: 1.08;
  }
}

@media (max-width: 360px) {
  .guide-page .guide-hero h1 {
    font-size: 2.26rem;
  }
  .guide-page .hood-guide-section-copy h2 {
    font-size: 1.56rem;
  }
}

body.home-screen-page {
  min-height: 100svh;
  overflow: hidden;
  background: #f6f9fb;
}

.home-screen-page .site-header {
  position: relative;
  z-index: 5;
  height: 72px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(236, 246, 252, 0.96) 0%, rgba(255, 255, 255, 0.96) 45%, rgba(24, 49, 64, 0.96) 45%, rgba(33, 82, 110, 0.92) 100%),
    linear-gradient(90deg, rgba(234, 85, 75, 0.18), rgba(54, 139, 184, 0.2));
  border-bottom: 1px solid rgba(28, 53, 69, 0.1);
  box-shadow: none;
}

.home-screen-page .header-inner {
  height: 72px;
  min-height: 0;
  padding: 6px 0;
}

.home-screen-page .brand-link img {
  width: 200px;
}

.home-screen-page .main-nav {
  gap: 6px;
}

.home-screen-page .main-nav a {
  min-height: 38px;
  padding: 9px 12px;
  color: #ffffff;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.home-screen-page .main-nav a:hover,
.home-screen-page .main-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

.home-screen {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(500px, 1.1fr);
  height: calc(100svh - 72px);
  min-height: 0;
}

.home-form-panel {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: clamp(16px, 2.2vh, 24px);
  min-height: 0;
  padding: clamp(22px, 4vw, 58px);
  text-align: center;
  background:
    linear-gradient(135deg, rgba(236, 246, 252, 0.9), rgba(255, 255, 255, 0.95)),
    radial-gradient(circle at 14% 8%, rgba(64, 132, 166, 0.14), transparent 34%);
}

.home-form-copy {
  display: grid;
  justify-items: center;
  width: min(100%, 620px);
  max-width: 620px;
  margin-inline: auto;
}

.home-kicker {
  margin: 0 0 10px;
  color: #2d6d8e;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-form-copy h1 {
  margin: 0 auto;
  color: var(--primary);
  font-family: Poppins, Inter, sans-serif;
  font-size: clamp(2.25rem, 4vw, 4.2rem);
  line-height: 0.96;
  letter-spacing: 0;
  max-width: 12ch;
}

.home-form-copy p:last-child {
  max-width: 540px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.5;
}

.home-intake-form {
  display: grid;
  gap: 12px;
  width: min(100%, 620px);
  max-width: 620px;
  margin-inline: auto;
  padding: clamp(16px, 2vw, 22px);
  text-align: left;
  border: 1px solid rgba(32, 56, 71, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 22px 55px rgba(32, 56, 71, 0.12);
}

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

.home-intake-form label,
.home-interest-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.home-intake-form label > span,
.home-interest-field legend {
  color: #365566;
  font-size: 0.78rem;
  font-weight: 800;
}

.home-intake-form input[type="text"],
.home-intake-form input[type="email"] {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 1px solid rgba(32, 56, 71, 0.16);
  border-radius: 8px;
  padding: 0 13px;
  background: #fff;
  color: var(--primary);
  font: 600 0.98rem/1 Inter, sans-serif;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.home-intake-form input:focus-visible {
  outline: 3px solid rgba(43, 123, 168, 0.23);
  outline-offset: 2px;
  border-color: #2d6d8e;
}

.home-interest-field {
  margin: 0;
  padding: 0;
  border: 0;
}

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

.interest-option {
  cursor: pointer;
}

.interest-option input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}

.interest-option > span {
  display: grid;
  gap: 4px;
  min-height: 74px;
  padding: 13px;
  border: 1px solid rgba(32, 56, 71, 0.15);
  border-radius: 8px;
  background: #f7fafc;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.interest-option strong {
  color: var(--primary);
  font-size: 0.98rem;
}

.interest-option small {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.interest-option input:checked + span {
  border-color: #2d6d8e;
  background: #eef8fc;
  box-shadow: 0 0 0 3px rgba(45, 109, 142, 0.13);
}

.home-submit {
  min-height: 50px;
  border: 0;
  border-radius: 8px;
  background: #1f5f84;
  color: #fff;
  font: 900 1rem/1 Inter, sans-serif;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(31, 95, 132, 0.24);
}

.home-submit:hover {
  background: #164d6e;
}

.home-form-note,
.home-form-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
  text-align: center;
}

.home-form-status {
  min-height: 1.1em;
  color: #1f5f84;
  font-weight: 800;
}

.home-preview-panel {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  overflow: hidden;
  padding: clamp(20px, 4vw, 58px);
  background:
    linear-gradient(135deg, rgba(24, 49, 64, 0.96), rgba(33, 82, 110, 0.92)),
    linear-gradient(90deg, rgba(234, 85, 75, 0.18), rgba(54, 139, 184, 0.2));
}

.home-preview-panel::before {
  content: "";
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  pointer-events: none;
}

.newsletter-stage {
  position: relative;
  width: min(100%, 660px);
  height: min(78vh, 740px);
  min-height: 520px;
}

.newsletter-page {
  position: absolute;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 253, 255, 0.98)),
    repeating-linear-gradient(0deg, transparent 0, transparent 30px, rgba(45, 109, 142, 0.035) 31px);
  box-shadow: 0 36px 88px rgba(0, 0, 0, 0.32);
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.estate-page {
  inset: 0 44px 34px 0;
  display: grid;
  grid-template-rows: auto auto auto auto auto;
  gap: clamp(10px, 1.55vh, 16px);
  padding: clamp(18px, 2.6vw, 30px);
  color: var(--primary);
  z-index: 2;
}

.coupon-page {
  right: 0;
  bottom: 0;
  width: min(75%, 410px);
  padding: 20px;
  color: var(--primary);
  opacity: 0.78;
  transform: translate(20px, 24px) rotate(2deg) scale(0.92);
  z-index: 1;
}

.home-screen[data-preview="coupons"] .estate-page {
  opacity: 0.62;
  transform: translate(-18px, 10px) scale(0.95);
  z-index: 1;
}

.home-screen[data-preview="coupons"] .coupon-page {
  opacity: 1;
  transform: translate(-18px, -16px) rotate(0deg) scale(1.04);
  z-index: 3;
}

.home-screen[data-preview="real-estate"] .coupon-page {
  opacity: 0.78;
}

.home-screen[data-preview="real-estate"] .estate-page {
  z-index: 3;
}

.newsletter-page-head,
.coupon-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(32, 56, 71, 0.14);
}

.newsletter-page-head p,
.coupon-head p,
.newsletter-label {
  margin: 0;
  color: #2d6d8e;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.newsletter-page-head h2,
.coupon-head h2 {
  margin: 4px 0 0;
  font-family: Poppins, Inter, sans-serif;
  font-size: clamp(1.3rem, 1.9vw, 1.9rem);
  line-height: 1;
  letter-spacing: 0;
}

.newsletter-page-head > span {
  flex: 0 0 auto;
  border-radius: 6px;
  background: #eaf4f8;
  padding: 8px 10px;
  color: #315b72;
  font-size: 0.78rem;
  font-weight: 900;
}

.newsletter-lead-story {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-left: 4px solid #e85f55;
  background: #f7fbfd;
}

.newsletter-lead-story h3 {
  margin: 0;
  color: var(--primary);
  font-family: Poppins, Inter, sans-serif;
  font-size: clamp(1.08rem, 1.5vw, 1.38rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.newsletter-lead-story p {
  margin: 0;
  color: #365566;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.42;
}

.newsletter-hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 0.82fr);
  gap: 14px;
  align-items: stretch;
}

.newsletter-price-card {
  min-width: 0;
  border: 1px solid rgba(32, 56, 71, 0.1);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.newsletter-hero-row strong {
  display: block;
  margin-top: 7px;
  color: var(--primary);
  font-family: Poppins, Inter, sans-serif;
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.newsletter-hero-row small {
  color: var(--muted);
  font-weight: 800;
}

.newsletter-price-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 0;
}

.newsletter-price-notes div {
  min-width: 0;
  border-top: 1px solid rgba(32, 56, 71, 0.11);
  padding-top: 8px;
}

.newsletter-price-notes dt,
.newsletter-price-notes dd {
  margin: 0;
}

.newsletter-price-notes dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.newsletter-price-notes dd {
  margin-top: 4px;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.2;
}

.mini-market-map {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  gap: 8px;
  min-height: 150px;
  padding: 32px 10px 10px;
  border-radius: 8px;
  background: #eff5f7;
}

.mini-market-map::before {
  content: "Street demand";
  position: absolute;
  top: 10px;
  left: 10px;
  color: #315b72;
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mini-market-map span {
  border-radius: 7px;
  background: #d8e7ee;
}

.mini-market-map span:nth-child(2),
.mini-market-map span:nth-child(5) {
  background: #2d6d8e;
}

.mini-market-map span:nth-child(3) {
  background: #e85f55;
}

.mini-market-map span:nth-child(4) {
  background: #b9d8e5;
}

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

.newsletter-stat-grid div {
  min-width: 0;
  border-radius: 8px;
  background: #f3f7f9;
  padding: 11px;
}

.newsletter-stat-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.newsletter-stat-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--primary);
  font-family: Poppins, Inter, sans-serif;
  font-size: clamp(1.15rem, 1.7vw, 1.55rem);
  line-height: 1.05;
}

.newsletter-market-table {
  display: grid;
  border: 1px solid rgba(32, 56, 71, 0.12);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.newsletter-market-table div {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 10px 12px;
}

.newsletter-market-table div + div {
  border-top: 1px solid rgba(32, 56, 71, 0.1);
}

.newsletter-market-table span {
  color: #315b72;
  font-size: 0.76rem;
  font-weight: 900;
}

.newsletter-market-table strong {
  color: var(--primary);
  font-size: 0.82rem;
  line-height: 1.25;
}

.newsletter-bars {
  display: grid;
  align-content: end;
  gap: 10px;
  padding: 10px 0 2px;
}

.newsletter-bars span {
  display: block;
  width: var(--bar);
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e85f55, #2d6d8e);
}

.newsletter-summary {
  margin: 0;
  border-top: 1px solid rgba(32, 56, 71, 0.12);
  padding-top: 13px;
  color: #365566;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.45;
}

.coupon-head {
  display: block;
  padding-bottom: 11px;
}

.coupon-head h2 {
  font-size: 1.3rem;
}

.coupon-intro {
  margin: 12px 0 0;
  color: #365566;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.4;
}

.coupon-list {
  display: grid;
  gap: 11px;
  margin-top: 14px;
}

.coupon-ticket {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border: 1px dashed rgba(45, 109, 142, 0.45);
  border-radius: 8px;
  background: #fbfdfe;
}

.coupon-ticket::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -7px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #eef4f6;
  transform: translateY(-50%);
}

.coupon-ticket span {
  color: #2d6d8e;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.coupon-ticket strong {
  display: block;
  margin-top: 3px;
  font-size: 1rem;
}

.coupon-ticket small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
}

.coupon-ticket em {
  display: grid;
  place-items: center;
  min-width: 70px;
  min-height: 54px;
  border-radius: 7px;
  background: #e85f55;
  color: #fff;
  font-style: normal;
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
}

.coupon-footer {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.coupon-footer span {
  display: block;
  height: 42px;
  border-radius: 7px;
  background:
    linear-gradient(90deg, #203847 0 52%, transparent 52% 57%, #203847 57% 70%, transparent 70% 76%, #203847 76% 100%);
}

.coupon-footer small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 980px) {
  .home-screen-page .site-header {
    height: 62px;
    background:
      linear-gradient(135deg, rgba(236, 246, 252, 0.96), rgba(255, 255, 255, 0.96)),
      radial-gradient(circle at 14% 8%, rgba(64, 132, 166, 0.14), transparent 34%);
  }

  .home-screen-page .header-inner {
    height: 62px;
    min-height: 0;
    padding: 5px 0;
  }

  .home-screen-page .brand-link img {
    width: 178px;
  }

  .home-screen-page .main-nav a {
    min-height: 34px;
    padding: 8px 9px;
    color: var(--primary);
    font-size: 0.82rem;
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(32, 56, 71, 0.08);
  }

  .home-screen {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1.08fr) minmax(180px, 0.92fr);
    height: calc(100svh - 62px);
  }

  .home-form-panel {
    gap: 12px;
    padding: 18px clamp(16px, 5vw, 32px);
  }

  .home-form-copy h1 {
    max-width: none;
    font-size: clamp(1.9rem, 6vw, 3rem);
  }

  .home-form-copy p:last-child {
    margin-top: 9px;
    font-size: 0.98rem;
  }

  .home-intake-form {
    gap: 9px;
    padding: 13px;
  }

  .home-intake-form input[type="text"],
  .home-intake-form input[type="email"] {
    min-height: 42px;
  }

  .interest-option > span {
    min-height: 62px;
    padding: 10px;
  }

  .interest-option small {
    font-size: 0.76rem;
  }

  .home-submit {
    min-height: 44px;
  }

  .home-preview-panel {
    padding: 18px;
  }

  .newsletter-stage {
    width: min(100%, 560px);
    height: 100%;
    min-height: 0;
  }

  .estate-page {
    inset: 0 72px 12px 0;
    gap: 9px;
    padding: 16px;
  }

  .coupon-page {
    width: min(62%, 300px);
    max-height: calc(100% - 20px);
    overflow: hidden;
    padding: 13px;
  }

  .newsletter-page-head {
    padding-bottom: 9px;
  }

  .newsletter-page-head h2 {
    font-size: 1.2rem;
  }

  .newsletter-page-head > span {
    padding: 7px 8px;
    font-size: 0.72rem;
  }

  .newsletter-lead-story {
    gap: 4px;
    padding: 10px;
  }

  .newsletter-lead-story h3 {
    font-size: 1rem;
  }

  .newsletter-lead-story p {
    display: none;
  }

  .newsletter-hero-row {
    grid-template-columns: 1fr 0.9fr;
    gap: 11px;
  }

  .newsletter-price-card {
    padding: 10px;
  }

  .newsletter-hero-row strong {
    font-size: clamp(1.6rem, 5vw, 2.4rem);
  }

  .newsletter-price-notes {
    display: none;
  }

  .mini-market-map {
    min-height: 86px;
    padding-top: 26px;
  }

  .newsletter-stat-grid {
    gap: 7px;
  }

  .newsletter-stat-grid div {
    padding: 8px;
  }

  .newsletter-bars {
    gap: 7px;
  }

  .newsletter-bars span {
    height: 9px;
  }

  .newsletter-market-table div {
    padding: 7px 9px;
  }

  .newsletter-market-table span {
    font-size: 0.66rem;
  }

  .newsletter-market-table strong {
    font-size: 0.72rem;
  }

  .newsletter-summary {
    font-size: 0.82rem;
    padding-top: 8px;
  }

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

  .coupon-intro {
    margin-top: 8px;
    font-size: 0.74rem;
  }

  .coupon-list {
    gap: 7px;
    margin-top: 8px;
  }

  .coupon-ticket {
    padding: 9px 10px;
  }

  .coupon-ticket em {
    min-width: 54px;
    min-height: 42px;
    font-size: 0.68rem;
  }

  .coupon-footer {
    margin-top: 9px;
  }

  .coupon-footer span {
    height: 30px;
  }
}

@media (max-width: 640px) {
  .home-screen-page .site-header {
    height: 54px;
    background:
      linear-gradient(135deg, rgba(236, 246, 252, 0.96), rgba(255, 255, 255, 0.96)),
      radial-gradient(circle at 14% 8%, rgba(64, 132, 166, 0.14), transparent 34%);
    box-shadow: none;
  }

  .home-screen-page .header-inner {
    height: 54px;
    min-height: 0;
    padding: 5px 0;
  }

  .home-screen-page .brand-link img {
    width: 156px;
  }

  .home-screen-page .main-nav {
    display: none;
  }

  .home-screen {
    grid-template-rows: minmax(0, 1fr) clamp(170px, 37svh, 320px);
    height: calc(100svh - 54px);
  }

  .home-form-panel {
    align-content: start;
    gap: 7px;
    padding: 10px 12px;
    overflow: hidden;
  }

  .home-kicker {
    margin-bottom: 5px;
    font-size: 0.69rem;
  }

  .home-form-copy h1 {
    font-size: clamp(1.45rem, 7.4vw, 1.95rem);
    line-height: 1.02;
  }

  .home-form-copy p:last-child {
    margin-top: 5px;
    font-size: 0.78rem;
    line-height: 1.28;
  }

  .home-intake-form {
    gap: 6px;
    padding: 9px;
  }

  .home-field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .interest-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .home-intake-form label,
  .home-interest-field {
    gap: 4px;
  }

  .home-intake-form label > span,
  .home-interest-field legend {
    font-size: 0.7rem;
  }

  .home-intake-form input[type="text"],
  .home-intake-form input[type="email"] {
    min-height: 34px;
    padding: 0 9px;
    font-size: 0.82rem;
  }

  .interest-option > span {
    gap: 3px;
    min-height: 57px;
    padding: 7px 8px;
  }

  .interest-option strong {
    font-size: 0.84rem;
  }

  .interest-option small {
    font-size: 0.62rem;
    line-height: 1.2;
  }

  .home-submit {
    min-height: 36px;
    font-size: 0.9rem;
  }

  .home-form-note {
    display: none;
  }

  .home-form-status {
    font-size: 0.75rem;
  }

  .home-preview-panel {
    place-items: start center;
    padding: 10px 12px 12px;
  }

  .home-preview-panel::before {
    display: none;
  }

  .estate-page {
    inset: 0 54px 8px 0;
    gap: 6px;
    padding: 10px;
  }

  .coupon-page {
    width: 54%;
    padding: 9px;
    transform: translate(12px, 12px) rotate(2deg) scale(0.88);
  }

  .newsletter-page-head {
    padding-bottom: 6px;
  }

  .newsletter-page-head p,
  .coupon-head p,
  .newsletter-label {
    font-size: 0.56rem;
  }

  .newsletter-page-head h2 {
    margin-top: 2px;
    font-size: 0.95rem;
  }

  .newsletter-page-head > span {
    padding: 5px 6px;
    font-size: 0.58rem;
  }

  .newsletter-lead-story,
  .newsletter-price-notes,
  .newsletter-market-table {
    display: none;
  }

  .newsletter-hero-row {
    grid-template-columns: 1fr 0.7fr;
    gap: 7px;
  }

  .newsletter-price-card {
    padding: 7px;
  }

  .newsletter-hero-row strong {
    margin-top: 4px;
    font-size: 1.45rem;
  }

  .newsletter-hero-row small {
    font-size: 0.68rem;
  }

  .mini-market-map {
    min-height: 58px;
    gap: 5px;
    padding: 20px 6px 6px;
  }

  .mini-market-map::before {
    top: 6px;
    left: 6px;
    font-size: 0.5rem;
  }

  .newsletter-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .newsletter-stat-grid div {
    padding: 6px;
  }

  .newsletter-stat-grid span {
    font-size: 0.55rem;
  }

  .newsletter-stat-grid strong {
    margin-top: 3px;
    font-size: 0.78rem;
  }

  .newsletter-bars {
    display: none;
  }

  .newsletter-summary {
    font-size: 0.68rem;
    line-height: 1.25;
    padding-top: 6px;
  }

  .coupon-head {
    padding-bottom: 6px;
  }

  .coupon-head h2 {
    font-size: 0.76rem;
  }

  .coupon-intro,
  .coupon-footer {
    display: none;
  }

  .coupon-list {
    gap: 5px;
    margin-top: 6px;
  }

  .coupon-ticket {
    gap: 2px;
    padding: 6px 7px;
  }

  .coupon-ticket span {
    font-size: 0.52rem;
  }

  .coupon-ticket strong {
    font-size: 0.68rem;
  }

  .coupon-ticket small {
    display: none;
  }

  .coupon-ticket em {
    min-width: 38px;
    min-height: 28px;
    font-size: 0.5rem;
  }
}

@media (max-width: 640px) {
  .newsletter-stage {
    width: calc(100% / 0.86);
    height: calc(100% / 0.86);
    transform: scale(0.86);
    transform-origin: top center;
  }
}

@media (max-width: 640px) and (max-height: 700px) {
  .home-screen {
    grid-template-rows: minmax(0, 1fr) 158px;
  }

  .home-form-panel {
    gap: 6px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .home-form-copy p:last-child {
    display: none;
  }

  .home-intake-form {
    padding: 8px;
  }

  .newsletter-stage {
    width: calc(100% / 0.72);
    height: calc(100% / 0.72);
    transform: scale(0.72);
  }

  .newsletter-summary,
  .coupon-ticket:nth-child(3) {
    display: none;
  }
}

@media (max-width: 820px) {
  body.home-screen-page {
    overflow: hidden;
    background: #1b4054;
  }

  .home-screen-page .site-header {
    height: 66px;
    background:
      linear-gradient(135deg, rgba(236, 246, 252, 0.98), rgba(248, 253, 255, 0.96)),
      radial-gradient(circle at 16% 12%, rgba(64, 132, 166, 0.16), transparent 36%);
    border-bottom-color: transparent;
  }

  .home-screen-page .header-inner {
    height: 66px;
    padding: 7px 0;
  }

  .home-screen-page .brand-link img {
    width: clamp(156px, 28vw, 188px);
  }

  .home-screen {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) clamp(284px, 30svh, 360px);
    height: calc(100svh - 66px);
    min-height: 0;
    overflow: hidden;
  }

  .home-form-panel {
    min-height: 0;
    gap: clamp(6px, 1.2svh, 11px);
    align-content: center;
    padding: clamp(8px, 2svh, 16px) clamp(14px, 4vw, 28px);
    overflow: hidden;
  }

  .home-kicker {
    margin-bottom: 7px;
    font-size: 0.76rem;
  }

  .home-form-copy h1 {
    max-width: 15ch;
    font-size: clamp(1.98rem, 5.45vw, 2.58rem);
    line-height: 1.02;
  }

  .home-form-copy p:last-child {
    max-width: 34rem;
    margin-top: clamp(5px, 1svh, 8px);
    font-size: clamp(0.78rem, 2.25vw, 0.96rem);
    line-height: 1.22;
  }

  .home-intake-form {
    gap: clamp(6px, 1svh, 9px);
    padding: clamp(8px, 1.5svh, 12px);
    border-color: rgba(32, 56, 71, 0.1);
    box-shadow: 0 18px 38px rgba(32, 56, 71, 0.1);
  }

  .home-field-grid,
  .interest-options {
    gap: 9px;
  }

  .home-intake-form input[type="text"],
  .home-intake-form input[type="email"] {
    min-height: clamp(32px, 5svh, 40px);
    font-size: clamp(0.78rem, 2.4vw, 0.9rem);
  }

  .interest-option > span {
    min-height: clamp(48px, 8.2svh, 62px);
    padding: clamp(7px, 1.1svh, 9px) 10px;
  }

  .interest-option strong {
    font-size: 0.94rem;
  }

  .interest-option small {
    font-size: 0.69rem;
  }

  .home-submit {
    min-height: clamp(34px, 5.6svh, 42px);
    font-size: clamp(0.84rem, 2.4vw, 0.96rem);
  }

  .home-preview-panel {
    display: grid;
    place-items: center;
    min-height: 0;
    padding: clamp(8px, 2svh, 14px) clamp(14px, 4vw, 28px);
    overflow: hidden;
  }

  .newsletter-stage {
    width: min(100%, 640px);
    height: 100%;
    min-height: 0;
    margin: 0 auto;
    transform: none;
  }

  .newsletter-page {
    position: relative;
    border-radius: 8px;
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.24);
  }

  .estate-page {
    inset: auto;
    gap: 10px;
    padding: 14px;
  }

  .coupon-page {
    display: none;
  }

  .newsletter-page-head {
    align-items: center;
    padding-bottom: 9px;
  }

  .newsletter-page-head h2 {
    font-size: clamp(1.1rem, 3.6vw, 1.35rem);
  }

  .newsletter-page-head > span {
    padding: 7px 8px;
    font-size: 0.68rem;
  }

  .newsletter-lead-story,
  .newsletter-price-notes,
  .newsletter-market-table {
    display: none;
  }

  .newsletter-hero-row {
    grid-template-columns: minmax(0, 1fr) minmax(150px, 0.75fr);
    gap: 10px;
  }

  .newsletter-price-card {
    padding: 12px;
  }

  .newsletter-hero-row strong {
    font-size: clamp(2.1rem, 7vw, 3rem);
  }

  .mini-market-map {
    min-height: 108px;
  }

  .newsletter-stat-grid {
    gap: 7px;
  }

  .newsletter-stat-grid div {
    padding: 9px;
  }

  .newsletter-stat-grid strong {
    font-size: 1rem;
  }

  .newsletter-summary {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.35;
  }
}

@media (max-width: 520px) {
  .home-field-grid,
  .newsletter-hero-row,
  .newsletter-stat-grid {
    grid-template-columns: 1fr;
  }

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

  .home-form-copy h1 {
    max-width: 13ch;
    font-size: clamp(1.88rem, 8.1vw, 2.2rem);
  }

  .home-form-copy p:last-child {
    display: none;
  }

  .interest-option small {
    display: none;
  }

  .interest-option > span {
    min-height: 48px;
    align-content: center;
  }

  .home-preview-panel {
    padding-top: 20px;
  }

  .mini-market-map {
    min-height: 96px;
  }
}

@media (max-height: 720px) and (min-width: 981px) {
  .home-form-panel {
    gap: 14px;
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .home-form-copy h1 {
    font-size: clamp(2rem, 3vw, 3.2rem);
  }

  .home-form-copy p:last-child {
    margin-top: 10px;
    font-size: 0.98rem;
  }

  .home-intake-form {
    gap: 9px;
    padding: 14px;
  }

  .home-intake-form input[type="text"],
  .home-intake-form input[type="email"] {
    min-height: 40px;
  }

  .interest-option > span {
    min-height: 60px;
    padding: 10px;
  }

  .home-submit {
    min-height: 42px;
  }

  .newsletter-stage {
    height: min(78vh, 560px);
    min-height: 440px;
  }
}

@media (max-width: 820px) {
  .home-preview-panel {
    padding: clamp(8px, 1.8svh, 12px) clamp(14px, 4vw, 22px);
  }

  .newsletter-stage {
    position: relative;
    width: min(100%, 520px);
    height: 100%;
    min-height: 0;
  }

  .newsletter-page {
    position: absolute;
    inset: 0;
    width: auto;
    max-height: none;
    padding: clamp(9px, 2.2vw, 13px);
    overflow: hidden;
    transform: none;
    pointer-events: none;
  }

  .estate-page,
  .coupon-page {
    display: grid;
    inset: 0;
    gap: clamp(6px, 1.1svh, 9px);
    opacity: 0;
    transform: none;
  }

  .home-screen[data-preview="real-estate"] .estate-page,
  .home-screen[data-preview="coupons"] .coupon-page {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    z-index: 3;
  }

  .home-screen[data-preview="real-estate"] .coupon-page,
  .home-screen[data-preview="coupons"] .estate-page {
    opacity: 0;
    transform: none;
    z-index: 1;
  }

  .coupon-page {
    inset: 0;
    width: auto;
    height: auto;
  }

  .newsletter-page-head,
  .coupon-head {
    align-items: center;
    padding-bottom: 6px;
    border-bottom-width: 1px;
  }

  .newsletter-page-head p,
  .coupon-head p,
  .newsletter-label {
    font-size: 0.58rem;
  }

  .newsletter-page-head h2,
  .coupon-head h2 {
    margin-top: 2px;
    font-size: clamp(0.95rem, 3vw, 1.14rem);
  }

  .newsletter-page-head > span {
    padding: 5px 7px;
    font-size: 0.58rem;
  }

  .newsletter-lead-story,
  .newsletter-price-notes,
  .newsletter-market-table,
  .newsletter-summary,
  .mini-market-map,
  .coupon-intro,
  .coupon-footer {
    display: none;
  }

  .newsletter-hero-row {
    display: block;
  }

  .newsletter-price-card {
    margin-top: 2px;
    padding: 8px;
    border-color: rgba(32, 56, 71, 0.08);
    background: #f7fbfd;
  }

  .newsletter-hero-row strong {
    margin-top: 3px;
    font-size: clamp(1.75rem, 7vw, 2.35rem);
  }

  .newsletter-hero-row small {
    font-size: 0.68rem;
  }

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

  .newsletter-stat-grid div {
    padding: 6px;
  }

  .newsletter-stat-grid span {
    font-size: 0.54rem;
  }

  .newsletter-stat-grid strong {
    font-size: 0.84rem;
  }

  .coupon-list {
    display: grid;
    gap: 5px;
    margin-top: 0;
  }

  .coupon-ticket {
    min-height: 0;
    gap: 8px;
    padding: 6px 7px;
  }

  .coupon-ticket::after {
    display: none;
  }

  .coupon-ticket:nth-child(3) {
    display: none;
  }

  .coupon-ticket span {
    font-size: 0.58rem;
  }

  .coupon-ticket strong {
    font-size: 0.9rem;
  }

  .coupon-ticket small {
    display: none;
  }

  .coupon-ticket em {
    min-width: 48px;
    min-height: 34px;
    font-size: 0.72rem;
  }
}

@media (max-width: 820px) and (max-height: 700px) {
  .home-screen {
    grid-template-rows: minmax(0, 1fr) 220px;
  }

  .newsletter-stat-grid {
    display: none;
  }

  .coupon-ticket:nth-child(n+2) {
    display: none;
  }
}

@media (max-width: 520px) {
  .home-screen-page .site-header {
    height: 52px;
  }

  .home-screen-page .header-inner {
    height: 52px;
    padding: 5px 0;
  }

  .home-screen-page .brand-link img {
    width: clamp(132px, 42vw, 168px);
  }

  .home-screen {
    grid-template-rows: minmax(0, 1fr) clamp(184px, 28svh, 210px);
    height: calc(100svh - 52px);
  }

  .home-form-panel {
    place-content: start center;
    gap: 6px;
    padding: 6px clamp(12px, 4vw, 18px);
  }

  .home-kicker {
    margin-bottom: 4px;
    font-size: 0.66rem;
  }

  .home-form-copy h1 {
    max-width: 18ch;
    font-size: clamp(1.34rem, 6.7vw, 1.86rem);
    line-height: 1;
  }

  .home-intake-form {
    width: min(100%, 340px);
    gap: 5px;
    padding: 8px 10px;
  }

  .home-intake-form label,
  .home-interest-field {
    gap: 4px;
  }

  .home-intake-form label > span,
  .home-interest-field legend {
    font-size: 0.68rem;
  }

  .home-intake-form input[type="text"],
  .home-intake-form input[type="email"] {
    min-height: 32px;
    padding: 0 10px;
    font-size: 0.78rem;
  }

  .interest-options {
    gap: 6px;
  }

  .interest-option > span {
    min-height: 38px;
    padding: 6px 8px;
  }

  .interest-option strong {
    font-size: 0.86rem;
  }

  .home-submit {
    min-height: 34px;
    font-size: 0.86rem;
  }

  .home-form-note,
  .home-form-status {
    display: none;
  }

  .home-preview-panel {
    padding: 8px 12px;
  }

  .newsletter-stage {
    width: min(100%, 340px);
  }

  .newsletter-page {
    padding: 8px;
  }

  .newsletter-page-head,
  .coupon-head {
    padding-bottom: 4px;
  }

  .newsletter-page-head p,
  .coupon-head p,
  .newsletter-label {
    font-size: 0.52rem;
  }

  .newsletter-page-head h2,
  .coupon-head h2 {
    font-size: 0.88rem;
  }

  .newsletter-page-head > span {
    padding: 4px 6px;
    font-size: 0.52rem;
  }

  .newsletter-price-card {
    padding: 7px;
  }

  .newsletter-hero-row strong {
    font-size: 1.55rem;
  }

  .newsletter-stat-grid {
    display: none;
  }

  .coupon-ticket {
    padding: 6px;
  }

  .coupon-ticket:nth-child(n+2) {
    display: none;
  }
}

@media (max-width: 430px) and (max-height: 760px) {
  .home-screen {
    grid-template-rows: minmax(0, 1fr) 190px;
  }

  .home-kicker {
    display: none;
  }

  .home-form-copy h1 {
    max-width: 20ch;
    font-size: clamp(1.24rem, 6.3vw, 1.62rem);
  }

  .home-intake-form {
    gap: 4px;
    padding: 7px 9px;
  }

  .home-preview-panel {
    padding: 7px 10px;
  }
}

@media (max-width: 430px) and (max-height: 620px) {
  .home-form-copy h1 {
    font-size: clamp(1.16rem, 5.9vw, 1.48rem);
  }

  .home-intake-form {
    gap: 3px;
    padding: 6px 9px;
  }

  .home-intake-form input[type="text"],
  .home-intake-form input[type="email"] {
    min-height: 30px;
  }

  .interest-option > span {
    min-height: 36px;
  }

  .home-submit {
    min-height: 32px;
  }
}

@media (min-width: 981px) and (max-height: 820px) {
  .home-form-panel {
    gap: 10px;
    padding: 16px clamp(18px, 2.2vw, 34px);
  }

  .home-form-copy h1 {
    font-size: clamp(2rem, 3.25vw, 3.1rem);
    line-height: 0.98;
  }

  .home-form-copy p:last-child,
  .home-form-note,
  .home-form-status {
    display: none;
  }

  .home-intake-form {
    max-width: 560px;
    gap: 8px;
    padding: 12px;
  }

  .home-intake-form label,
  .home-interest-field {
    gap: 5px;
  }

  .home-intake-form input[type="text"],
  .home-intake-form input[type="email"] {
    min-height: 38px;
  }

  .interest-option > span {
    min-height: 50px;
    padding: 9px 11px;
  }

  .interest-option small {
    display: none;
  }

  .home-submit {
    min-height: 40px;
  }

  .home-preview-panel {
    padding: 16px;
  }

  .newsletter-stage {
    width: min(100%, 620px);
    height: min(100%, 560px);
    min-height: 0;
  }

  .estate-page {
    inset: 0 38px 20px 0;
    gap: 8px;
    padding: 16px;
  }

  .newsletter-lead-story p,
  .newsletter-price-notes,
  .newsletter-market-table,
  .newsletter-summary {
    display: none;
  }

  .mini-market-map {
    min-height: 100px;
  }

  .newsletter-stat-grid {
    gap: 7px;
  }

  .newsletter-stat-grid div {
    padding: 8px;
  }

  .coupon-page {
    max-height: calc(100% - 28px);
    overflow: hidden;
  }

  .coupon-intro,
  .coupon-footer,
  .coupon-ticket:nth-child(3) {
    display: none;
  }

  .coupon-list {
    gap: 8px;
    margin-top: 8px;
  }

  .coupon-ticket {
    padding: 9px 10px;
  }

  .coupon-ticket small {
    display: none;
  }

  .coupon-ticket em {
    min-width: 56px;
    min-height: 42px;
    font-size: 0.72rem;
  }
}

@media (min-width: 641px) and (max-width: 980px) and (max-height: 760px) {
  .home-screen {
    grid-template-rows: minmax(0, 1fr) 240px;
  }

  .home-form-panel {
    place-content: start center;
    gap: 8px;
    padding: 8px 18px;
  }

  .home-kicker,
  .home-form-copy p:last-child,
  .home-form-note,
  .home-form-status {
    display: none;
  }

  .home-form-copy h1 {
    max-width: 18ch;
    font-size: clamp(1.6rem, 4.2vw, 2.05rem);
    line-height: 1;
  }

  .home-intake-form {
    max-width: 560px;
    gap: 6px;
    padding: 10px;
  }

  .home-intake-form label,
  .home-interest-field {
    gap: 5px;
  }

  .home-intake-form input[type="text"],
  .home-intake-form input[type="email"] {
    min-height: 36px;
  }

  .interest-option > span {
    min-height: 44px;
    padding: 8px 10px;
  }

  .interest-option small {
    display: none;
  }

  .home-submit {
    min-height: 38px;
  }

  .newsletter-page {
    padding: 10px;
  }
}
