.campbell-header { padding: .8rem 1rem; border-bottom: 1px solid #cbd6e1; background: #edf4fc; }
.campbell-page { width: min(72rem, calc(100% - 2rem)); margin: 1rem auto 2rem; }
.campbell-page h1 { margin: .2rem 0 .5rem; font-size: clamp(1.65rem, 4.8vw, 2.7rem); }
.campbell-page h2 { font-size: 1.3rem; }
.campbell-links { display: flex; flex-wrap: wrap; gap: .45rem 1rem; }
.campbell-layout { display: grid; grid-template-columns: minmax(12rem, 1fr) minmax(0, 2fr); gap: 1rem; align-items: start; margin-block: 1.25rem; }
#contents, .campbell-reader { min-width: 0; padding: .8rem; border: 1px solid #b6c7d8; border-radius: .4rem; }
#contents { position: sticky; top: .5rem; }
#contents h2, .campbell-reader h2 { margin-top: 0; }
.campbell-local { margin-top: 1rem; padding-top: .75rem; border-top: 1px solid #d7e0ea; }
.campbell-local summary { cursor: pointer; font-weight: 600; }
.campbell-local .campbell-file { margin-top: .75rem; }
.campbell-file, .campbell-search { display: grid; gap: .3rem; font-weight: 600; }
.campbell-file input, .campbell-search input { max-width: 100%; font-size: 1rem; }
.campbell-search input { width: min(100%, 32rem); }
.campbell-controls { display: flex; flex-wrap: wrap; gap: .5rem; align-items: end; margin-bottom: .6rem; }
.campbell-controls label { display: grid; gap: .15rem; }
.campbell-controls input { max-width: 6rem; margin: 0; font-size: 1rem; }
.campbell-controls button { min-height: 44px; }
#pdf-status:empty { display: none; }
#pdf-page { display: block; width: 100%; max-width: 47rem; height: auto; border: 1px solid #d7e0ea; }
#campbell-chapters { max-height: min(26rem, 48vh); overflow: auto; }
#campbell-chapters ol { list-style: none; padding-left: 0; }
#campbell-chapters li { border-bottom: 1px solid #d7e0ea; overflow-wrap: anywhere; }
#campbell-chapters li a { display: block; padding: .5rem .35rem; }
#campbell-chapters [aria-current] { background: #edf4fc; font-weight: 700; }
#pdf-page[hidden] { display: none; }
@media (max-width: 32rem) {
  .campbell-layout { grid-template-columns: minmax(0, 1fr); }
  #contents { position: static; }
  #campbell-chapters { max-height: 10rem; }
}
