/* Explorer and footer rules scoped below. The max-width1050px header/nav wrapping rule intentionally adapts the existing page shell. Existing source CSS remains untouched. */
#neighbourhoods{--directory-line:#d4d9d0;--directory-muted:#526052;padding:56px 0;border-top:1px solid var(--directory-line)}
#neighbourhoods h2{max-width:860px;font-size:clamp(32px,4vw,54px);line-height:1.15}#neighbourhoods .intro{font-size:19px;max-width:760px}#neighbourhoods .draft{font-size:13px;color:var(--directory-muted);max-width:850px}
#neighbourhoods button{font:inherit;cursor:pointer;color:inherit;border:1px solid #8c999f;background:#fff;padding:12px 18px;border-radius:6px;min-height:48px}
#neighbourhoods .search{display:flex;gap:12px;flex-wrap:wrap;max-width:760px;margin:32px 0 16px}#neighbourhoods .search label{width:100%;margin:0}#neighbourhoods .search input{flex:1;min-width:180px;margin:0;width:auto}#neighbourhoods #status{min-height:24px;color:var(--directory-muted);font-size:14px}
#neighbourhoods .regions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}
#neighbourhoods .region{position:relative;isolation:isolate;display:flex;flex-direction:column;justify-content:flex-end;text-align:left;aspect-ratio:1/1.15;overflow:hidden;border-radius:24px;padding:24px 18px;background:#354a40;color:#fff;border:1px solid transparent;transition:transform .2s,box-shadow .2s}
#neighbourhoods .region img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-3}#neighbourhoods .region:before{content:'';position:absolute;inset:0;background:linear-gradient(transparent 20%,#0a140fe8);z-index:-2}
#neighbourhoods .region strong{font:24px/1.15 Georgia,serif;text-transform:uppercase;overflow-wrap:anywhere}#neighbourhoods .region span{font-size:12px;margin-top:12px}#neighbourhoods .art-note{position:absolute;top:16px;left:18px;background:#182a20bb;border-radius:14px;padding:4px 8px;font-size:10px;text-transform:uppercase}
#neighbourhoods .region:hover,#neighbourhoods .region:focus-visible{transform:translateY(-4px);border-color:#e1ca92;box-shadow:0 12px 28px #27352b30,inset 0 -5px #957138}
#neighbourhoods .places{list-style:none;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 24px}#neighbourhoods .places li{padding:12px 0;border-bottom:1px solid var(--directory-line);overflow-wrap:anywhere}#neighbourhoods .places small{display:block;color:var(--directory-muted)}
#neighbourhoods .place-button{display:block;width:100%;text-align:left;border:0;background:transparent;padding:12px 8px}#neighbourhoods .place-button:hover{background:#e5eadf}
#neighbourhoods .statistics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 40px}#neighbourhoods .statistics>div{padding:24px 0;border-top:1px solid var(--directory-line)}#neighbourhoods .statistics dd{font:36px Georgia,serif;margin:12px 0;overflow-wrap:anywhere}#neighbourhoods .statistics p{font-size:13px;color:var(--directory-muted)}#neighbourhoods .closing{border-top:1px solid var(--directory-line);margin-top:48px;padding-top:20px}#neighbourhoods .closing h2{font-size:28px}
.resource-footer{display:grid;grid-template-columns:1fr 1fr 1.4fr;gap:32px;padding-top:40px;padding-bottom:40px}.resource-footer h2{font:600 13px system-ui;letter-spacing:.07em;text-transform:uppercase;line-height:1.5}.resource-footer a{display:block;margin:12px 0}.resource-footer summary{cursor:pointer;padding:12px 0;min-height:44px}.resource-footer details{border-top:1px solid #d4d9d0}.resource-footer section{min-width:0;overflow-wrap:anywhere}
@media(max-width:1050px){header{flex-wrap:wrap;gap:20px}header nav{flex-wrap:wrap;gap:16px}#neighbourhoods .regions{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){#neighbourhoods .places{grid-template-columns:repeat(2,minmax(0,1fr))}.resource-footer{grid-template-columns:1fr;gap:24px}}
@media(max-width:480px){#neighbourhoods .regions,#neighbourhoods .places,#neighbourhoods .statistics{grid-template-columns:1fr}#neighbourhoods .region{aspect-ratio:1.15}#neighbourhoods .region strong{font-size:30px}}
@media(prefers-reduced-motion:reduce){#neighbourhoods .region{transition:none}#neighbourhoods .region:hover,#neighbourhoods .region:focus-visible{transform:none}}
/* Joyce-style area tiles (Claude design patch, PR 15). Appended last so it overrides the tile rules above; markup, JS, data and notices unchanged. */
#neighbourhoods .regions{gap:clamp(16px,2.4vw,34px)}
#neighbourhoods .region{aspect-ratio:1/1;border-radius:clamp(20px,2.4vw,30px);padding:22px 14px clamp(16px,2vw,24px);align-items:center;text-align:center;border:0;box-shadow:0 1px 2px #1a221d1f;transition:transform .35s cubic-bezier(.2,.7,.2,1),box-shadow .35s}
#neighbourhoods .region img{transition:filter .45s}
#neighbourhoods .region:before{background:linear-gradient(#0e121a00 45%,#0e121aa8)}
#neighbourhoods .region:after{content:'';position:absolute;inset:0;z-index:-1;border-radius:inherit;opacity:0;pointer-events:none;transition:opacity .35s;background:linear-gradient(135deg,#c9a45ac7 0%,#c9a45a40 45%,#c9a45a00 70%);box-shadow:inset 0 0 0 3px #ffffffeb}
#neighbourhoods .region strong{font:400 clamp(17px,1.9vw,24px)/1.1 Georgia,serif;letter-spacing:.06em;text-shadow:0 1px 10px #00000073}
#neighbourhoods .region span{margin-top:0;max-height:0;opacity:0;overflow:hidden;letter-spacing:.03em;text-shadow:0 1px 6px #00000080;transition:max-height .35s,opacity .35s,margin .35s}
#neighbourhoods .region .art-note{left:50%;transform:translateX(-50%);background:#0e121a80;letter-spacing:.12em}
#neighbourhoods .region:hover,#neighbourhoods .region:focus-visible{transform:translateY(-8px) scale(1.02);box-shadow:0 22px 44px #141a2452;border-color:transparent}
#neighbourhoods .region:hover:after,#neighbourhoods .region:focus-visible:after{opacity:1}
#neighbourhoods .region:hover img,#neighbourhoods .region:focus-visible img{filter:sepia(.55) saturate(.85) brightness(1.04)}
#neighbourhoods .region:hover span,#neighbourhoods .region:focus-visible span{max-height:3em;opacity:1;margin-top:8px}
#neighbourhoods .region:focus-visible{outline:3px solid #785c25;outline-offset:5px}
@media(hover:none){#neighbourhoods .region span{max-height:none;opacity:1;margin-top:8px}}
@media(max-width:480px){#neighbourhoods .region{aspect-ratio:1.15}#neighbourhoods .region strong{font-size:26px}}
@media(prefers-reduced-motion:reduce){#neighbourhoods .region,#neighbourhoods .region:after,#neighbourhoods .region img,#neighbourhoods .region span{transition:none}#neighbourhoods .region:hover,#neighbourhoods .region:focus-visible{transform:none}}
