/* ECoPI content typography. Reference: Wet Lab > Background = 15px/400/1.85;
   Wet Lab hero introduction = 18px/400/1.8. All new rules target inner pages.
   Standalone lessons use education/typography.css. */
body[data-wiki-shell].inner-page {
  --wiki-body-size: 15px;
  --wiki-lead-size: 18px;
  --wiki-note-size: 13px;
  --wiki-body-leading: 1.85;
}
body[data-wiki-shell].inner-page #main-content {
  font-family: var(--font-sans);
  font-size: var(--wiki-body-size);
  font-weight: 400;
  line-height: var(--wiki-body-leading);
}
body[data-wiki-shell].inner-page #main-content .prose {
  width: 100%;
  max-width: none;
  min-width: 0;
  font-size: var(--wiki-body-size);
  font-weight: 400;
  line-height: var(--wiki-body-leading);
}

/* Fill the available column, including nested cards and details. Paragraphs
   retain width:auto so text can still wrap beside floated interview photos. */
body[data-wiki-shell].inner-page #main-content p:not(:where(
  .section-kicker, [class$="-kicker"], [class$="-label"],
  .tn-date, .tn-tag, .tn-filter-status, .wetlab-status,
  .hp-map-axis-note, .sw-branch-caption,
  svg *, nav *, .side-nav *, .ep-toc *
)),
body[data-wiki-shell].inner-page #main-content :is(li, dt, dd, blockquote):not(:where(
  nav *, .side-nav *, .ep-toc *, svg *, .tn-inline-chain *
)),
body[data-wiki-shell].inner-page #main-content :is(
  .hp-card-intro, .hp-person-role, .hp-event-intro,
  .hp-summary-context, .hp-summary-line, .hp-stakeholder-body,
  .hp-pathway-question, .member-position, .member-affiliation,
  .eng-overview-intro, .eng-scientific-question,
  .model-method-comparison__body, .model-knowledge-slot__body,
  .ep-stakeholder-body, .ep-judge-question-text,
  .edu4-agenda span, .edu4-process small, .edu4-dbtl small,
  .metric span, .sw-card-body
) {
  max-width: none;
  font-family: var(--font-sans);
  font-size: var(--wiki-body-size);
  font-weight: 400;
  line-height: var(--wiki-body-leading);
  text-align: justify;
  text-align-last: left;
}

/* Education's original stylesheet uses !important on these declarations. */
body[data-wiki-shell].inner-page #main-content :is(
  .edu4-lede, .edu4-task, .edu4-question, .edu4-stat-shell > p
) {
  max-width: none;
  font-size: var(--wiki-body-size) !important;
  font-weight: 400;
  line-height: var(--wiki-body-leading) !important;
}

/* Remove narrative wrapper limits; preserve images, navigation and canvases. */
body[data-wiki-shell].inner-page #main-content :is(
  .section-intro, .hp-section-intro, .hp-overview-copy,
  .hp-research-intro, .model-research-intro,
  .eng-overview-intro, .tn-intro, .ctb-intro,
  .ep-judges-intro, .edu4-lede, .edu7-photo-intro,
  .edu8-comparison, .edu8-comparison-footnote, .edu8-comparison-cta
) {
  max-width: none;
  min-width: 0;
}
body[data-wiki-shell].inner-page .page-hero .hero-lead {
  max-width: none;
  font-family: var(--font-sans);
  font-size: var(--wiki-lead-size);
  font-weight: 400;
  line-height: 1.8;
  text-align: justify;
  text-align-last: left;
}

/* Cover every table family and nested text, retaining numeric alignment,
   column widths, scrolling, header emphasis and highlighted result rows. */
body[data-wiki-shell].inner-page #main-content table,
body[data-wiki-shell].inner-page #main-content :is(th, td) {
  font-family: var(--font-sans);
  font-size: var(--wiki-body-size);
  line-height: var(--wiki-body-leading);
}
body[data-wiki-shell].inner-page #main-content td { font-weight: 400; }
body[data-wiki-shell].inner-page #main-content th { font-weight: 600; }
body[data-wiki-shell].inner-page #main-content :is(th, td) :is(p, li, dd, div, span, small) {
  max-width: none;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-align: inherit;
  text-align-last: auto;
}
body[data-wiki-shell].inner-page #main-content :is(
  table > caption, .wetlab-table-title, .ep-table-caption
) {
  font-size: var(--wiki-body-size);
  font-weight: 400;
  line-height: var(--wiki-body-leading);
}
body[data-wiki-shell].inner-page #main-content .model-result-highlight > * { font-weight: 600; }
body[data-wiki-shell].inner-page #main-content p > :is(strong, b),
body[data-wiki-shell].inner-page #main-content .hp-summary-line strong { font-size: inherit; }

/* One smaller tier for figure captions and supporting notes. */
body[data-wiki-shell].inner-page #main-content :is(
  figcaption, figcaption p, .wetlab-table-note, .wetlab-pdf-help,
  .eng-overview-note, .eng-scroll-hint, .tn-artifact-label,
  .sw-body-note, .model-media-slot__caption
) {
  max-width: none;
  font-size: var(--wiki-note-size);
  font-weight: 400;
  line-height: 1.65;
  text-align: justify;
  text-align-last: left;
}
body[data-wiki-shell].inner-page #main-content figcaption :is(div, span, small) {
  font-size: inherit;
  line-height: inherit;
}
body[data-wiki-shell].inner-page .btn-project,
body[data-wiki-shell].inner-page #main-content :is(
  .hp-view-control, .hp-event-toggle, .team-contribution-toggle,
  .edu4-link, .wetlab-pdf-actions a
) { font-size: var(--wiki-body-size); }
body[data-wiki-shell].inner-page .page-hero .eyebrow { font-size: 14px; font-weight: 300; }
/* Unchanged footer declaration, including its existing Home behavior. */
body[data-wiki-shell] .site-footer :is(.footer-team, .footer-description, .footer-links a) {
  font-size: 14px;
  font-weight: 300;
}

/* Preserve the previously reviewed left-aligned compact layouts. */
body[data-wiki-shell].inner-page #main-content :is(
  .feature-card, .process-step, .edu4-activity-grid article,
  .edu4-methods article, .edu4-cases article,
  .edu-v3-goal, .edu-v3-method, .edu-v3-quote, .edu4-process > div,
  .team-member-card, .eng-summary-card
) p,
body[data-wiki-shell].timeline-notebook-page #main-content .tn-phases :is(li, strong, p),
body[data-wiki-shell].inner-page #main-content #hp-conversations :is(.hp-person, .hp-person *),
body[data-wiki-shell].inner-page #main-content .edu4-lesson-card > p {
  text-align: left;
  text-align-last: left;
}
body[data-wiki-shell].entrepreneurship-page #main-content :is(
  [aria-labelledby="ep-table-3-caption"], [aria-labelledby="ep-table-4-caption"]
) :is(table, th, td, p, li),
body[data-wiki-shell].entrepreneurship-page #main-content :is(
  #ep-table-3-caption, #ep-table-4-caption
) { text-align: left; text-align-last: left; }

/* Avoid exaggerated word spacing in phone columns. */
@media (max-width: 575.98px) {
  body[data-wiki-shell].inner-page #main-content :is(p, li, dd, blockquote),
  body[data-wiki-shell].inner-page #main-content :is(
    .hp-card-intro, .hp-event-intro, .hp-summary-context, .hp-summary-line,
    .hp-stakeholder-body, .ep-stakeholder-body, .ep-judge-question-text,
    .eng-overview-intro, .eng-scientific-question,
    .model-method-comparison__body, .model-knowledge-slot__body
  ),
  body[data-wiki-shell].inner-page .page-hero .hero-lead {
    text-align: left;
    text-align-last: left;
  }
}
