
#motorcycle-rider-deaths { scroll-margin-block-start: 6rem; }
[data-motorcycle-rider-deaths] figure { margin-inline: 0; max-width: 38rem; }
.motorcycle-death-changes { list-style: none; padding: 0; }
.motorcycle-death-changes li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) 4ch;
  align-items: center;
  gap: .25em;
  margin-block: .45em;
}
.motorcycle-death-changes li > span:nth-child(2) {
  border-inline-end: 1px solid #7891a2;
  padding-inline-end: .15em;
}
.motorcycle-death-changes progress { display: block; width: 100%; height: .65em; accent-color: #a14026; }
.motorcycle-death-changes progress[value="0"] { visibility: hidden; }
.motorcycle-death-changes .down { direction: rtl; accent-color: #235879; }
.motorcycle-death-changes strong { text-align: end; font-variant-numeric: tabular-nums; }
[data-motorcycle-rider-deaths] th { white-space: normal; min-width: 5ch; }
@media (max-width: 860px) {
  html:has([data-motorcycle-rider-deaths]) .site-header { position: static; }
  #motorcycle-rider-deaths { scroll-margin-block-start: 1rem; }
}

#motorcycle-mortality-age-share { scroll-margin-block-start: 6rem; }
[data-motorcycle-age-share] figure { margin-inline: 0; max-width: 38rem; }
[data-motorcycle-age-share] .bar-row { grid-template-columns: 9em minmax(0, 1fr) 5ch; }
[data-motorcycle-age-share] .bar-row > span { white-space: normal; }
[data-motorcycle-age-share] progress { display: block; width: 100%; height: .65em; accent-color: #235879; }
@media (max-width: 860px) {
 #motorcycle-mortality-age-share { scroll-margin-block-start: 1rem; }
}
@media (max-width: 540px) {
 [data-motorcycle-age-share] .bar-row { grid-template-columns: minmax(0, 1fr) auto; }
 [data-motorcycle-age-share] .bar-row > span:last-child { grid-row: 1; grid-column: 2; }
 [data-motorcycle-age-share] progress { grid-row: 2; grid-column: 1 / -1; margin-block-end: .5em; }
}
@media (prefers-reduced-motion: reduce) {
 html:has(#motorcycle-mortality-age-share:target) { scroll-behavior: auto; }
}

.topic-contents { margin-block: 1.25rem; }
.topic-contents > ul { display: flex; flex-wrap: wrap; gap: .35rem 1rem; }
.topic-contents > ul, .topic-contents details > ul { list-style: none; padding-inline-start: 0; }
.topic-contents details { border: 1px solid var(--line); border-radius: .6rem; padding: .6rem .75rem; background: var(--card); }
.topic-contents summary { cursor: pointer; font-weight: 700; }
.topic-contents :is(a, summary) { overflow-wrap: anywhere; }
.topic-contents details > ul > li { margin-block: .45rem; min-width: 0; }
.topic-contents details li ul { padding-inline-start: 1.15rem; }
@media (min-width: 760px) {
  .topic-contents details > ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: .45rem 1rem; }
}
#motorcycle-incidents-trend, #motorcycle-city-comparison, #motorcycle-data-method,
#how-motorcycle-cases-are-counted { scroll-margin-block-start: 1rem; }
@media (min-width: 861px) {
  #motorcycle-incidents-trend, #motorcycle-city-comparison, #motorcycle-data-method,
  #how-motorcycle-cases-are-counted { scroll-margin-block-start: 6rem; }
}
