/* Cheltenham and Elkins Park page */
.hoods__grid { display: grid; gap: var(--s6); align-items: center; }
.hoods__lead { margin-top: var(--s4); font-size: var(--fs-lg); max-width: 40ch; }
.hoods .source { margin-top: var(--s4); }
@media (min-width: 1100px) { .hoods__grid { grid-template-columns: 5fr 7fr; gap: var(--s8); } }

/* Phones: tighter neighborhood board so the whole list fits one screen */
@media (max-width: 767px) {
  .hoods__grid { gap: var(--gap-head); }
}


/* ---------- 1. housing stock: a street of homes by the era they were built, with the 1978 ban marked ---------- */
.era { margin: var(--s6) 0 0; }
.era__street { position: relative; display: flex; gap: 4px; padding-top: 56px; }
.era__seg { flex: var(--w) 1 0; min-width: 0; position: relative; height: 150px; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 14px 14px; color: #fff;
  -webkit-mask: linear-gradient(#000 0 0) bottom / 100% 92px no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='60'%3E%3Cpath d='M0 60V22L16 6l16 16v-8h10v8l6-6 16 16v32z'/%3E%3C/svg%3E") left top / 64px 60px repeat-x;
          mask: linear-gradient(#000 0 0) bottom / 100% 92px no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='60'%3E%3Cpath d='M0 60V22L16 6l16 16v-8h10v8l6-6 16 16v32z'/%3E%3C/svg%3E") left top / 64px 60px repeat-x; }
.era__seg--old { background: var(--em-900); }
.era__seg--mid { background: #2f6b47; }
.era__seg--new { background: #c9d8cc; color: var(--em-900); }
.era__pct { font: 800 clamp(1.6rem, 1rem + 2vw, 2.4rem)/1 var(--font-display); }
.era__lbl { margin-top: 4px; font-size: .9rem; font-weight: 600; opacity: .9; }
.era__ban { position: absolute; top: 0; bottom: 0; left: calc((29 + 54) / 100 * 100% - 6px); width: 0; border-left: 2px dashed var(--gold-500); }
.era__ban { padding-left: 0; }
.era__ban::after { content: ""; position: absolute; left: -6px; top: 34px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold-500); }
.era__ban b, .era__ban { font-size: .85rem; }
.era__ban { color: var(--gold-ink); white-space: nowrap; }
.era__ban b { position: absolute; right: 8px; top: 0; font: 800 1.1rem/1 var(--font-display); color: var(--gold-ink); }
.era__ban { text-indent: -9999px; }
.era__ban b { text-indent: 0; }
.era__ban::before { content: "lead paint banned from housing"; position: absolute; right: 8px; top: 22px; text-indent: 0; font-size: .82rem; font-weight: 600; color: var(--gold-ink); }
.era__cap { position: relative; margin-top: 14px; padding-top: 16px; font-size: 1.05rem; color: #3b463f; }
.era__brace { position: absolute; left: 0; width: calc(83% - 4px); top: 0; height: 8px; border: 2px solid var(--em-700); border-top: 0; border-radius: 0 0 8px 8px; }
.era__cap b { font: 800 1.25rem/1 var(--font-display); color: var(--em-900); }
.era__facts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); margin: var(--s6) 0 0; }
.era__facts > div { position: relative; padding: 20px 22px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--sh-1); }
.era__facts dt { font-size: .9rem; font-weight: 600; color: var(--gold-ink); }
.era__facts dd { margin: 4px 0 0; font: 800 clamp(2rem, 1.4rem + 2vw, 3rem)/1 var(--font-display); color: var(--em-900); }
.era__rent { display: block; margin-top: 12px; height: 10px; border-radius: 5px; background: var(--em-tint); overflow: hidden; }
.era__rent i { display: block; height: 100%; width: var(--v); background: var(--gold-400); }
@media (max-width: 767px) {
  .era__street { padding-top: 48px; }
  .era__seg { height: 120px; padding: 0 8px 10px; -webkit-mask-size: 100% 70px, 44px 50px; mask-size: 100% 70px, 44px 50px; }
  .era__lbl { font-size: .78rem; line-height: 1.25; }
  .era__seg--new .era__lbl { font-size: .72rem; }
  .era__ban b { font-size: 1rem; }
  .era__ban::before { content: "lead paint banned"; font-size: .78rem; top: 20px; }
  .era__cap { font-size: var(--fs-body-sm); }
  .era__facts { gap: var(--gap-stack); }
  .era__facts > div { padding: var(--card-pad-sm); }
}
@media (max-width: 359px) { .era__seg--new .era__lbl { display: none; } }

/* ---------- 2. township rules: a paper checklist with a stamp ---------- */
.tsr__grid { display: grid; gap: var(--s6); align-items: center; }
.tsr__lead { font-size: var(--fs-lg); margin-top: var(--s4); }
.tsr__copy > p + p { margin-top: var(--s4); }
.tsr__copy .btnrow { margin-top: var(--s5); }
.tsr__copy .source { margin-top: var(--s5); }
.slip { position: relative; padding: 28px 28px 22px; background: #fffdf7; border-radius: 6px; box-shadow: var(--sh-paper); transform: rotate(-1deg);
  background-image: repeating-linear-gradient(180deg, transparent 0 33px, rgba(0, 60, 24, .06) 33px 34px); }
.slip::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; border-radius: 6px 6px 0 0; background: repeating-linear-gradient(90deg, var(--em-700) 0 18px, var(--gold-400) 18px 24px); }
.slip__hd { margin: 6px 0 14px; padding-bottom: 12px; border-bottom: 2px solid var(--em-900); font: 800 1.25rem/1.2 var(--font-display); color: var(--em-900); display: grid; gap: 4px; }
.slip__hd small { font: 600 .9rem/1.2 var(--font-body); color: #4d5a51; }
.slip__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: slip; }
.slip__list li { position: relative; padding-left: 40px; line-height: 1.5; color: #3b463f; counter-increment: slip; }
.slip__list li::before { content: counter(slip); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border: 2px solid var(--em-900); border-radius: 4px; display: grid; place-items: center; font: 700 .85rem/1 var(--font-body); color: var(--em-900); background: #fff; }
.slip__list strong { color: var(--ink); }
.slip__stamp { position: absolute; right: 18px; bottom: 34px; margin: 0; padding: 8px 14px 9px; border: 3px double #b3261e; border-radius: 6px; color: #b3261e; font: 800 1.05rem/1.05 var(--font-display); text-align: center; transform: rotate(-9deg); background: rgba(255, 253, 247, .82); text-transform: none; }
.slip__stamp span { display: block; }
.slip__ft { margin: 18px 0 0; font-size: .85rem; color: #6b746e; }
@media (min-width: 1100px) { .tsr__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s8); } .slip { padding: 36px 40px 28px; } .slip__list { padding-right: 120px; } }

/* ---------- 3. neighborhoods as street signs ---------- */
.hoods__signs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 26px 18px; align-items: flex-end; justify-content: center; }
.sign { position: relative; display: grid; justify-items: center; padding-bottom: 34px; }
.sign::after { content: ""; position: absolute; bottom: 0; left: 50%; width: 6px; height: 34px; transform: translateX(-50%); background: linear-gradient(90deg, #8d9690, #cfd5d1 45%, #7c857f); border-radius: 2px; }
.sign__blade { display: block; padding: 8px 16px; border-radius: 6px; background: #0e7a3c; color: #fff; font: 700 1rem/1.1 var(--font-body); letter-spacing: .01em; white-space: nowrap; box-shadow: inset 0 0 0 2px #fff, 0 8px 18px rgba(0, 10, 3, .35); }
.sign:nth-child(3n+1) .sign__blade { transform: rotate(-2deg); } .sign:nth-child(3n+2) .sign__blade { transform: rotate(1.5deg); } .sign:nth-child(4n) .sign__blade { transform: rotate(-1deg); }
.sign:nth-child(odd)::after { height: 44px; } .sign:nth-child(odd) { padding-bottom: 44px; }
.sign--home .sign__blade { background: var(--gold-400); color: var(--em-950); font-size: 1.25rem; padding: 10px 20px; box-shadow: inset 0 0 0 2px var(--em-950), 0 10px 22px rgba(0, 10, 3, .4); transform: rotate(-3deg) !important; }
.sign__plate { margin-top: 6px; padding: 3px 10px; border-radius: 4px; background: #fff; color: var(--em-900); font: 700 .8rem/1.2 var(--font-body); }
@media (max-width: 767px) {
  .slip { padding: 22px var(--card-pad-sm) 18px; transform: none; }
  .slip__stamp { position: static; display: inline-block; margin-top: 14px; }
  .hoods__signs { gap: 18px 10px; }
  .sign__blade { font-size: .9rem; padding: 7px 12px; }
  .sign, .sign:nth-child(odd) { padding-bottom: 22px; } .sign::after, .sign:nth-child(odd)::after { height: 22px; }
}
@media (prefers-reduced-motion: reduce) { .slip { transform: none; } }
