/* Shared reading and navigation styles. Keep form widgets and data unchanged. */
.page-nav-links { flex-wrap: wrap; justify-content: center; }
.page-nav-link { white-space: normal; }
.discussion-strip {
  padding: 8px 20px;
  border-bottom: 1px solid var(--border-light);
  text-align: center;
  font-size: 13px;
  color: #555;
}
.discussion-strip a { color: #405e40; }
.project-overview { max-width: 820px; }
.project-overview p, .project-overview li { font-size: 16px; line-height: 1.75; }
.project-overview h2 { margin-top: 36px; }
.project-status { color: #526452; }
.project-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 30px; }
.project-overview .project-actions .btn-primary { color: white; text-decoration: none; }
.project-overview .project-actions .btn-secondary { color: var(--dark); text-decoration: none; }
.project-overview .scope-note, .scope-note {
  padding: 12px 16px;
  border-left: 3px solid var(--sage);
  background: #f2f4ee;
  font-size: 14px;
  color: #4b554b;
  line-height: 1.65;
}
.resource-list { padding-left: 22px; }
.resource-list li { margin: 12px 0; }
.table-scroll { max-width: 100%; overflow-x: auto; margin: 12px 0; }
.table-scroll:focus-visible { outline: 3px solid var(--brown); }
.table-scroll table { margin: 0; }
/* Keep the bulk reading controls available without covering the page. */
#fold-controls { position: static; width: fit-content; margin: 24px auto; opacity: 1; box-shadow: none; }
.research-detail {
  border: 0;
  border-top: 1px solid #cdd2c8;
  border-radius: 0;
  padding: 0;
  margin: 12px 0;
  background: transparent;
}
.research-detail > summary {
  display: list-item;
  list-style: disclosure-closed inside;
  padding: 13px 0;
  cursor: pointer;
  color: #405e40;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
}
.research-detail[open] > summary { list-style-type: disclosure-open; }
.research-detail > summary::-webkit-details-marker { display: inline; }
.research-detail > p, .research-detail > ul { margin: 6px 0 16px; }
.research-detail .question-card-text { font-size: 15px; line-height: 1.7; }
.definitions-section.research-detail { margin-top: 18px; }
.beliefs-intro .anchor-note, .beliefs-intro .incentive {
  background: transparent;
  border: 0;
  border-left: 3px solid var(--sage);
  border-radius: 0;
  padding: 8px 14px;
}
a:focus-visible, summary:focus-visible, button:focus-visible {
  outline: 3px solid var(--brown);
  outline-offset: 4px;
}
[id] { scroll-margin-top: 100px; }
@media (max-width: 600px) {
  .header { padding: 28px 18px; }
  .header-title { font-size: 27px; }
  .page-nav .page-nav-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; padding: 0 8px; }
  .page-nav li { min-width: 0; text-align: center; }
  .page-nav-link { padding: 10px 9px; font-size: 13px; }
  .prose-container, .beliefs-intro, .beliefs-form-container { padding-left: 18px; padding-right: 18px; }
  .project-actions { flex-direction: column; align-items: stretch; }
  .project-actions a { text-align: center; }
  .break-row { flex-wrap: wrap; }
  .break-row > span { min-width: 0; }
  .break-row span[style*="white-space"] { white-space: normal !important; }
  /* Invisible absolute tooltips must not widen the document on touch screens. */
  .tip:not(:hover):not(:focus-within) .tip-text { display: none; }
  .tip:not(:hover):not(:focus-within)::after { display: none; }
  .tip .tip-text { min-width: 0 !important; max-width: min(300px, 80vw); }
}
@media (min-width: 480px) and (max-width: 600px) {
  .page-nav .page-nav-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media print {
  .page-nav, .discussion-strip, .project-actions { display: none; }
  .research-detail { break-inside: avoid; }
}
