/* Project reading surfaces, implemented for the current study-guide markup.
   Wide data and detailed maps scroll in their own focusable regions. */
.study-guide { overflow-wrap: anywhere; }
.study-guide :is(h2, h3) { scroll-margin-top: 1rem; }
.study-guide h3 { text-align: start; margin-block: 1.25rem .5rem; }
.study-guide :is(ul, ol) { margin-block: .75rem 1.25rem; padding-inline-start: 1.5rem; }
.study-guide li + li { margin-top: .45rem; }

.study-guide .study-contents {
  margin-block: 1.25rem 1.75rem;
  padding: 1rem;
  border: 1px solid var(--site-rule, #c8b69d);
  border-radius: .25rem;
}
.study-guide .study-contents :is(ul, ol) { margin-bottom: 0; }

.study-guide :is(.study-table, .study-map-scroll) {
  max-width: 100%;
  overflow-x: auto;
  margin-block: 1rem 1.5rem;
}
.study-guide :is(.study-table, .study-map-scroll):focus-visible {
  outline: 3px solid #294d64;
  outline-offset: 3px;
}
.study-guide table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92em;
  text-align: start;
}
.study-guide .study-table table { min-width: 30rem; }
.study-guide .study-table-wide table { min-width: 48rem; }
.study-guide caption { margin-bottom: .6rem; text-align: start; font-weight: 700; }
.study-guide :is(th, td) {
  border: 1px solid var(--site-rule, #c8b69d);
  padding: .7rem;
  vertical-align: top;
  overflow-wrap: normal;
}
.study-guide thead { background: var(--site-nav, #eadeca); }
.study-guide th { font-weight: 700; }

.study-guide :is(.study-map, .study-figure) { margin-block: 1.5rem; }
.study-guide .study-figure { max-width: 40rem; margin-inline: auto; }
.study-guide .study-figure img { display: block; width: 100%; height: auto; }
.study-guide .study-map-scroll img {
  display: block;
  width: 100%;
  min-width: 960px;
  max-width: none;
  height: auto;
}
.study-guide figcaption { margin-block: .6rem 1rem; font-size: .9em; line-height: 1.5; }
.study-guide .study-note { padding-block: .75rem; font-size: .9em; }
.study-guide :is(.study-sources, .study-source) a { overflow-wrap: anywhere; }

@media print {
  .study-guide :is(.study-table, .study-map-scroll) { overflow: visible; }
  .study-guide .study-table table { min-width: 0; table-layout: fixed; }
  .study-guide :is(th, td) { overflow-wrap: anywhere; }
  .study-guide .study-map-scroll img { min-width: 0; max-width: 100%; }
}
