/* Final containment pass: preserve the composition without sacrificing copy. */
.page,
.hero,
.hero-brand-row,
.hero-copy,
.hero-media,
.hero-image-card,
.home-search,
.market-card,
.update-card,
.about-card,
.journey-card {
  min-width: 0;
  max-width: 100%;
}

.hero-caption {
  flex-wrap: wrap;
}

.hero-caption > * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.location-price-card span,
.location-price-card small,
.insight-item b {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}

.location-price-card small {
  line-height: 1.35;
}

.insight-item a {
  align-items: flex-start;
}

.insight-item span {
  min-width: 0;
  text-align: right;
  white-space: normal;
}

.primary-btn,
.secondary-btn,
.tertiary-btn,
.showcase-button,
.card-link,
.intent-action {
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

.version-box strong,
.update-card,
.update-card a,
.market-card p,
.note {
  overflow-wrap: anywhere;
}

/* Give search more space and keep the map preview in its original proportions. */
.hero-search-first {
  column-gap: clamp(24px, 4vw, 48px);
  padding-bottom: clamp(28px, 4vw, 48px);
}

.hero-search-first h1 {
  max-width: 18ch;
  font-size: clamp(40px, 4.5vw, 58px);
  line-height: 1.06;
}

.hero-search-first .hero-image-card img {
  height: auto;
  max-height: none;
  aspect-ratio: 1672 / 941;
  object-fit: contain;
}

.hero-search .search-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.hero-search .search-row button {
  min-width: 104px;
}

/* The first three updates set the viewport; every older post stays reachable. */
.updates-head {
  align-items: center;
  margin-bottom: 16px;
}

.updates-head h2 {
  font-size: clamp(26px, 3vw, 34px);
}

.updates-head p {
  max-width: 38ch;
  font-size: 14px;
}

.updates-grid {
  align-items: stretch;
  padding-bottom: 4px;
}

.updates-grid[data-scrollable="true"] {
  max-height: 26rem;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--panel-alt);
}

.updates-grid:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
  border-radius: 10px;
}

.update-card {
  min-height: 170px;
  padding: 16px;
  box-shadow: none;
}

.update-meta {
  flex-wrap: wrap;
  gap: 5px 12px;
  font-size: 11px;
  letter-spacing: .04em;
}

.update-meta time {
  text-transform: none;
  letter-spacing: normal;
}

.update-card h3 {
  margin-top: 12px;
  font-size: 19px;
  line-height: 1.3;
}

.update-card p {
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-line;
}

.update-card a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-top: 10px;
}

.updates-scroll-hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.coverage-details {
  margin-top: 12px;
  border-top: 1px solid var(--panel-border);
}

.coverage-details summary {
  min-height: 44px;
  padding-top: 13px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.coverage-details[open] {
  padding-bottom: 6px;
}

@media (max-width: 820px) {
  .update-card {
    min-height: 0;
  }
}

@media (max-width: 680px) {
  .hero-search-first,
  .hero-search-first .hero-copy,
  .hero-search,
  .search-row,
  .updates-panel,
  .market-snapshot,
  .insights-panel,
  .release-status {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .location-price-card {
    align-content: start;
    min-height: 0;
  }

  .insight-item a {
    flex-wrap: wrap;
  }

  .insight-item span {
    flex: 1 1 100%;
    text-align: left;
  }

  .hero-search-first h1 {
    max-width: 15ch;
    font-size: clamp(36px, 10vw, 44px);
  }

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

  .intent-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .updates-panel {
    padding: 18px;
  }

  .update-card {
    padding: 14px;
  }
}

/* Discovery comes before statistics and site news in the reading order. */
.home-discovery {
  margin: 8px 0 36px;
  padding: 24px 0;
}
.home-discovery h2 { margin: 5px 0 0; font-size: clamp(26px, 3vw, 34px); }
.home-discovery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.home-discovery-grid .location-price-panel { grid-column: 1 / -1; }
.home-discovery-grid .insight-panel { padding: 22px; border: 1px solid var(--panel-border); border-radius: 16px; background: var(--panel); }
.home-discovery-grid .insight-panel > span { display: block; color: var(--muted); font-size: 13px; }
.home-discovery-grid .insight-panel > strong { display: block; margin-top: 8px; font-size: 24px; }
.home-discovery-grid .insight-panel > p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.home-discovery-grid .insight-item span { font-size: 13px; }
@media (max-width: 680px) {
  .home-discovery { padding: 12px 0; }
  .home-discovery-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .home-discovery-grid .insight-panel { padding: 18px; }
}
