/* A single reading column keeps source numbers easy to follow. */
html body :is(#app main, #chapters) :is(.loophole-source-list, [data-numbered-references] ol) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}
html body :is(#app main, #chapters) :is(.loophole-source-list, [data-numbered-references] ol) > li {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  padding: 22px 8px;
  margin: 0;
  border-bottom: 1px solid #8884;
  border-top: 0;
  scroll-margin-top: 100px;
  min-width: 0;
}
html body [data-numbered-references] ol > li::before { content: attr(value); grid-column: 1; grid-row: 1 / span 3; font-variant-numeric: tabular-nums; }
html body [data-numbered-references] ol > li > * { grid-column: 2; }
html body :is(#app main, #chapters) .loophole-library-number {
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: left;
  line-height: 1.7;
}
html body :is(#app main, #chapters) .loophole-source-list h3 { font-size: 16px; line-height: 1.65; margin: 0 0 8px; }
html body :is(#app main, #chapters) .loophole-source-list .loophole-library-meta { font-size: 12px; line-height: 1.6; margin-bottom: 6px; }
html body :is(#app main, #chapters) .loophole-source-list :is(.loophole-library-note,.loophole-library-locations) { font-size: 14px; line-height: 1.75; }
html body :is(#app main, #chapters) :is(.loophole-source-list, [data-numbered-references]) a { overflow-wrap: anywhere; text-underline-offset: 4px; }
html body :is(#app main, #chapters) .loophole-source-list > li:target { background: #a878ff12; outline: 2px solid #a878ff80; outline-offset: 3px; }
@media (max-width: 600px) {
  html body :is(#app main, #chapters) :is(.loophole-source-list, [data-numbered-references] ol) > li { grid-template-columns: 2rem minmax(0, 1fr); gap: 10px; padding: 18px 0; }
}
