
#new-taipei-burglary-change { scroll-margin-block-start: 6rem; }
.new-taipei-property figure { margin-inline: 0; }
.new-taipei-property-plot { max-width: 40rem; list-style: none; padding: 0; }
.new-taipei-property-plot li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .15em .5em;
  margin-block: .55em;
}
.new-taipei-property-plot progress {
  grid-column: 1 / -1;
  width: 100%;
  height: .7em;
  accent-color: #146c65;
}
.district-change-plot { list-style: none; max-width: 42rem; padding: 0; }
.district-change-plot li {
  display: grid;
  grid-template-columns: minmax(4.5em, auto) minmax(0, 1fr) minmax(0, 1fr) 4.25ch;
  align-items: center;
  gap: .2em;
  margin-block: .45em;
}
.district-change-plot strong { text-align: end; font-variant-numeric: tabular-nums; }
.district-change-plot progress { display: block; width: 100%; height: .65em; accent-color: #146c65; }
.district-change-plot .decrease { direction: rtl; }
.district-change-plot .increase { accent-color: #98482a; }
.district-change-plot progress[value="0"] { visibility: hidden; }
.district-change-plot li > span:nth-child(2) { border-inline-end: 1px solid #758c8b; padding-inline-end: .15em; }
.new-taipei-property th:first-child { position: static; }
.new-taipei-property td { white-space: nowrap; }
.new-taipei-property summary { cursor: pointer; }
@media (max-width: 860px) {
  html:has(.new-taipei-property) .site-header { position: static; }
  #new-taipei-burglary-change { scroll-margin-block-start: 1rem; }
}
@media (max-width: 640px) {
  html:has(.new-taipei-property) :is(.statline, .statline > div) { padding-inline: min(.8rem, 2.5vw); }
  html:has(.new-taipei-property) .statline strong { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  html:has(.new-taipei-property) { scroll-behavior: auto; }
}
