body {
  font: 16px/1.5 system-ui, sans-serif;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem;
  color: #17202a;
}

a { color: #064ca1; }
a:focus-visible { outline: 3px solid #bd4b00; outline-offset: 3px; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: .6rem; border-bottom: 1px solid #c9d1d9; }
th { background: #eef2f6; }
.sales td[data-label="Price"] { font-weight: 700; white-space: nowrap; }

@media (max-width: 600px) {
  .sales thead { display: none; }
  .sales tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .1rem .7rem;
    border-bottom: 1px solid #aab7c3;
    padding: .8rem 0;
  }
  .sales td { border: 0; padding: 0; min-width: 0; }
  .sales td::before { content: attr(data-label) ": "; font-size: .82rem; color: #46576b; }
  .sales td[data-label="Month"] { grid-column: 1; grid-row: 1; }
  .sales td[data-label="Price"] { grid-column: 2; grid-row: 1; }
  .sales td[data-label="Price"]::before { display: block; }
  .sales td[data-label="Block"] { grid-column: 1 / -1; }
  .sales td[data-label="Flat type"] { grid-column: 1 / -1; }
  .sales td[data-label="Floor band"] { grid-column: 1; }
  .sales td[data-label="Area"] { grid-column: 2; }
}

/* Browse structures: the homepage directory, a town's street-grouped blocks, and the
   private-properties district path. Compact wrapping link lists — usable on a phone,
   not a wall of text. */
.browse-links, .block-links, .district-links, .project-links { margin: .4rem 0 1rem; }
.browse-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .3rem 1rem;
}
.browse-links li { white-space: nowrap; }
.block-links { padding-left: 1rem; line-height: 2; word-spacing: .35rem; }
.block-links a { margin-right: .45rem; white-space: nowrap; }
.district-links, .project-links { padding-left: 1.2rem; }
.district-links li, .project-links li { margin: .25rem 0; }
.street-group { margin: .4rem 0; border: 1px solid #c9d1d9; border-radius: 6px; padding: .4rem .7rem; }
.street-group > summary { cursor: pointer; font-weight: 600; }
.street-group > summary .count { font-weight: 400; color: #46576b; }
.street-group[open] { padding-bottom: .6rem; }
.home-browse { margin-top: 1.5rem; padding-top: .5rem; border-top: 2px solid #c9d1d9; }
.home-browse .browse-sub { margin: .8rem 0 .2rem; font-size: 1.05rem; }
.home-browse .browse-note, .browse-private { color: #46576b; margin: .2rem 0 .4rem; }
