:root { --bs-link-color: #0a6276; --bs-link-hover-color: #084b5a; }
body { color: #1d2a33; line-height: 1.65; }
h1, h2, h3 { color: #173f5f; font-weight: 700; }
h1.title { max-width: 850px; font-size: clamp(2.1rem, 4vw, 3.5rem); }
.subtitle { color: #527076; font-size: 1.2rem; }
.hero { border-left: 3px solid #567278; padding: .25rem 1rem; margin: 1rem 0 2rem; }
.hero p:last-child { margin-bottom: 0; }
.question { color: #7a4218; font-size: 1.18rem; font-weight: 650; }
.code-guidance { border-left: 4px solid #d88c32; background: #fff9ed; padding: .85rem 1rem; margin: 1rem 0; }
.evidence-boundary { border-left: 4px solid #965c8c; background: #f9f2f8; padding: .85rem 1rem; margin: 1rem 0; }
pre.sourceCode { font-size: .86rem; border-radius: 0; }
.nav-footer { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid #dbe5e6; }
.quarto-title-banner { background: #f6faf9; }
table { font-size: .94rem; }
@media (max-width: 991px) { .sidebar { display: none; } .hero { padding: 1.1rem; } }
/* Keep wide equations scrollable inside the reading column on small screens. */
mjx-container[display="true"] { min-width: 0 !important; max-width: 100%; overflow-x: auto; overflow-y: hidden; padding: .25rem 0; }
mjx-container[display="true"]:focus-visible { outline: 3px solid #1769aa; outline-offset: 2px; }

@media (max-width: 767px) {
  main table { display: block; max-width: 100%; overflow-x: auto; }
  main.content p, main.content li { overflow-wrap: anywhere; }
}

.mobile-results-table {
  width: 100%;
  table-layout: fixed;
}
.mobile-results-table th,
.mobile-results-table td {
  white-space: normal !important;
  overflow-wrap: anywhere;
}
.mobile-results-table th:first-child,
.mobile-results-table td:first-child { width: 36%; }
.output-purpose-table { max-width: 100%; }
.output-purpose-table table { width: 100%; table-layout: fixed; }

.notation-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #aab5c0;
  border-radius: 0;
  padding: .25rem;
}
.notation-table-scroll:focus-visible {
  outline: 3px solid #1769aa;
  outline-offset: 2px;
}
.notation-table-scroll table { min-width: 42rem; }
.table-scroll-instruction { font-size: .9rem; margin: .45rem 0; }
.equation-scroll {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding: .25rem 0;
}
.equation-scroll:focus-visible {
  outline: 3px solid #1769aa;
  outline-offset: 2px;
}
.data-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #aab5c0;
  border-radius: 0;
  padding: .25rem;
}
.data-table-scroll:focus-visible {
  outline: 3px solid #1769aa;
  outline-offset: 2px;
}
.data-table-scroll table {
  display: table;
  width: max-content;
  max-width: none;
  overflow: visible;
}
.data-table-scroll th,
.data-table-scroll td { white-space: nowrap; }
.common-failure-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
  margin: 1rem 0;
}
.failure-card {
  min-width: 0;
  border: 1px solid #aab5c0;
  border-left: .3rem solid #1769aa;
  border-radius: 0;
  padding: .9rem;
}
.failure-card h3 { font-size: 1rem; margin-top: 0; }
.failure-card p { overflow-wrap: anywhere; }
.failure-card p:last-child { margin-bottom: 0; }
@media (max-width: 767px) {
  .common-failure-cards { grid-template-columns: minmax(0, 1fr); }
}
.output-purpose-table th,
.output-purpose-table td { white-space: normal; overflow-wrap: anywhere; vertical-align: top; }
.output-purpose-table th:first-child,
.output-purpose-table td:first-child { width: 40%; }
.output-purpose-table code { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 767px) {
  .output-purpose-table table { display: table; overflow: visible; font-size: .86rem; }
  .output-purpose-table th,
  .output-purpose-table td { padding: .45rem .35rem; }
  .output-purpose-table th:first-child,
  .output-purpose-table td:first-child { width: 44%; }
}

/* Let readers pan the wide fourteen-score loading plots instead of shrinking
   their labels until they are too small to read on phones and tablets. */
@media (max-width: 991px) {
  div[id^="fig-dogs14-ordination-"] > figure > div { overflow-x: auto; }
  div[id^="fig-dogs14-ordination-"] img {
    width: 680px;
    min-width: 680px;
    max-width: none;
  }
}

.figure-tools { font-size: .88rem; margin-top: -.45rem; margin-bottom: 1.5rem; }

/* Keep the two six-panel worked-example figures readable at high zoom.
   The scroll is confined to the figure so the page itself can still reflow. */
.main-figure-scroll {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  margin: .75rem 0;
}
.main-figure-scroll:focus-visible {
  outline: 3px solid #1769aa;
  outline-offset: 2px;
}
.main-figure-scroll > .quarto-figure {
  width: 100%;
  max-width: none;
}
.main-figure-scroll img {
  display: block;
  width: 100%;
  max-width: none;
}
@media (max-width: 991px) {
  .main-figure-scroll > .quarto-figure,
  .main-figure-scroll img {
    min-width: 1100px;
  }
}

.equation-scroll mjx-container[display="true"] {
  width: max-content;
  max-width: none;
  overflow: visible;
}
