.neighbourhood-overview { container: neighbourhood / inline-size; margin-bottom: 24px; scroll-margin-top: 24px; }
.neighbourhood-location { margin: 0 0 16px; color: var(--field); font-size: .875rem; line-height: 1.5; overflow-wrap: anywhere; }
.neighbourhood-jumps { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 28px; }
.neighbourhood-jumps a { display: flex; align-items: center; min-height: 44px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 6px; color: var(--field); background: #fffefb; font-size: .875rem; line-height: 1.5; text-decoration: none; }
.neighbourhood-jumps a:hover { background: var(--soft); text-decoration: underline; text-underline-offset: 3px; }
.neighbourhood-jumps a:focus-visible, .neighbourhood-group-title:focus-visible, #neighbourhood-property-title:focus-visible { outline: 3px solid #b78535; outline-offset: 4px; border-radius: 2px; }
.neighbourhood-group + .neighbourhood-group { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.neighbourhood-group-title { font: 500 1.75rem/1.2 "Cormorant Garamond", Georgia, serif; color: var(--field); margin: 0 0 16px; overflow-wrap: anywhere; }
:is(.neighbourhood-more, .neighbourhood-community) { margin: 24px 0; border: 1px solid var(--line); border-radius: 8px; background: #fffefb; }
:is(.neighbourhood-more, .neighbourhood-community) > summary { cursor: pointer; padding: 16px 20px; color: var(--field); font-size: 1rem; font-weight: 600; line-height: 1.5; min-height: 56px; scroll-margin-top: var(--report-nav-offset, 144px); }
:is(.neighbourhood-more, .neighbourhood-community) > summary:hover { background: var(--soft); }
:is(.neighbourhood-more, .neighbourhood-community) > summary:focus-visible { outline: 3px solid #b78535; outline-offset: 4px; border-radius: 2px; }
:is(.neighbourhood-more, .neighbourhood-community)[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: 20px; }
:is(.neighbourhood-more, .neighbourhood-community) > .neighbourhood-group { margin-right: 16px; margin-left: 16px; }
:is(.neighbourhood-more, .neighbourhood-community) > .neighbourhood-group:last-child { margin-bottom: 20px; }
.neighbourhood-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.neighbourhood-card { min-width: 0; display: flex; flex-direction: column; padding: 12px 16px 0; border: 1px solid var(--line); border-radius: 8px; background: #fffefb; }
.neighbourhood-card-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 2px 12px; margin-bottom: 8px; }
.neighbourhood-card-title { font: 600 1rem/1.35 system-ui, sans-serif; margin: 0; color: var(--field); }
.neighbourhood-period { font: 400 .875rem/1.4 system-ui, sans-serif; color: var(--muted); }
.neighbourhood-card-body { flex: 1; min-width: 0; }
.neighbourhood-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; margin: 0; }
.neighbourhood-facts:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }
.neighbourhood-fact { min-width: 0; }
.neighbourhood-fact dt { font: 400 .875rem/1.35 system-ui, sans-serif; color: var(--muted); margin-bottom: 2px; }
.neighbourhood-fact dd { font: 600 1.5rem/1.15 system-ui, sans-serif; font-variant-numeric: tabular-nums; letter-spacing: -.02em; color: var(--field); margin: 0; overflow-wrap: anywhere; }
.neighbourhood-card[data-section="residentsWork"] .neighbourhood-fact dd,
.neighbourhood-card[data-section="qualifications"] .neighbourhood-fact dd { font-size: 1rem; line-height: 1.4; letter-spacing: normal; }
.neighbourhood-fact-detail { display: block; font: 400 .875rem/1.4 system-ui, sans-serif; letter-spacing: normal; color: var(--ink); margin-top: 2px; }
.neighbourhood-place dd { font: 500 1rem/1.4 system-ui, sans-serif; letter-spacing: normal; }
.neighbourhood-answer { color: var(--ink); font: 400 1rem/1.45 system-ui, sans-serif; margin: 0; }
.neighbourhood-answer strong { font-weight: 650; font-variant-numeric: tabular-nums; color: var(--field); }
.neighbourhood-answer-detail { font-size: .875rem; line-height: 1.4; margin: 5px 0 0; color: var(--muted); }
.neighbourhood-note { color: var(--muted); font-size: .875rem; line-height: 1.4; overflow-wrap: anywhere; margin: 8px 0 0; }
.neighbourhood-card-footer { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; column-gap: 16px; margin-top: 5px; }
.neighbourhood-detail-link, .neighbourhood-source > summary { display: flex; align-items: center; width: max-content; max-width: 100%; min-height: 44px; padding: 8px 0; color: var(--field); font-size: .875rem; line-height: 1.4; text-underline-offset: 3px; overflow-wrap: anywhere; }
.neighbourhood-source { margin: 0; min-width: 0; font-size: .875rem; }
.neighbourhood-source > summary { display: list-item; align-content: center; cursor: pointer; }
.neighbourhood-source > summary:focus-visible { outline: 3px solid #b78535; outline-offset: 3px; border-radius: 2px; }
.neighbourhood-source[open] { flex-basis: 100%; }
.neighbourhood-source-body { border-top: 1px solid var(--line); padding: 9px 0 13px; }
.neighbourhood-meta, .neighbourhood-scope-note { color: var(--muted); font-size: .875rem; line-height: 1.5; overflow-wrap: anywhere; margin: 0; }
.neighbourhood-meta span { display: block; }
.neighbourhood-scope-note { margin-top: 7px; }
.neighbourhood-message { font-size: 1rem; line-height: 1.4; color: var(--muted); margin: 0 0 6px; }
.neighbourhood-card[data-state="loading"] { background: var(--paper); }
.neighbourhood-card[data-state="error"], .neighbourhood-card[data-state="pending"] { border-style: dashed; }
.neighbourhood-card[data-state="error"] .neighbourhood-message { color: var(--error); }
@container neighbourhood (min-width: 560px) {
  .neighbourhood-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .neighbourhood-card { padding: 16px 18px 2px; }
  .neighbourhood-card-heading { margin-bottom: 12px; }
  .neighbourhood-facts { gap: 12px; }
  .neighbourhood-fact dd { font-size: 1.75rem; }
  .neighbourhood-place dd { font-size: 1rem; }
  .neighbourhood-note { margin-top: 12px; }
  .neighbourhood-card-footer { margin-top: 8px; }
}
@container neighbourhood (min-width: 760px) {
  .neighbourhood-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* People-first introduction: readable distributions, with values in text. */
.neighbourhood-people-intro { max-width: 72ch; margin: 0 0 10px; color: var(--ink); font-size: 1.0625rem; line-height: 1.65; }
.neighbourhood-people-scope { color: var(--muted); font-size: .875rem; line-height: 1.5; margin: 0 0 20px; overflow-wrap: anywhere; }
.neighbourhood-distribution { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
.neighbourhood-distribution-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; margin: 0; min-width: 0; font-size: .875rem; line-height: 1.4; }
.neighbourhood-distribution-label { color: var(--ink); overflow-wrap: anywhere; }
.neighbourhood-distribution-value { color: var(--field); font-weight: 600; font-variant-numeric: tabular-nums; }
.neighbourhood-distribution-track { grid-column: 1 / -1; height: 7px; background: var(--soft); border-radius: 4px; overflow: hidden; }
.neighbourhood-distribution-bar { display: block; height: 100%; background: var(--field); border-radius: inherit; }
.neighbourhood-group-people .neighbourhood-card[data-section="age"] { background: #f3f7f4; }
.neighbourhood-group-people .neighbourhood-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.neighbourhood-group-people .neighbourhood-fact:last-child:nth-child(3) { grid-column: 1 / -1; }
@container neighbourhood (min-width: 560px) {
  .neighbourhood-group-people .neighbourhood-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .neighbourhood-group-people .neighbourhood-card[data-section="age"] { grid-column: 1 / -1; }
  .neighbourhood-group-people .neighbourhood-card[data-section="age"] .neighbourhood-distribution { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
}
@container neighbourhood (min-width: 900px) {
  .neighbourhood-group-people .neighbourhood-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
  .neighbourhood-group-people .neighbourhood-card[data-section="age"] { grid-column: 1; grid-row: span 2; align-self: stretch; }
  .neighbourhood-group-people .neighbourhood-card[data-section="age"] .neighbourhood-distribution { grid-template-columns: minmax(0, 1fr); }
  .neighbourhood-group-people .neighbourhood-card[data-section="age"] .neighbourhood-distribution-row { margin-bottom: 12px; }
}
