/* ECoPI reading refinement. Load AFTER style.css. Remove this link to roll back.
   Scientific copy, stage colors, imagery and standalone lessons are preserved. */
body[data-wiki-shell] {
  --color-body: #dce1e0;
  --color-muted: #b3bcba;
  --color-line: #394340;
  font-weight: 400;
}
[data-wiki-shell] :is(h1, h2, h3) { text-wrap: balance; }
[data-wiki-shell] p { text-wrap: pretty; }
[data-wiki-shell] .navbar { border-bottom-color: #29322f; }
[data-wiki-shell] .navbar .nav-link { font-size: 1rem; font-weight: 600; padding-inline: .7rem; }
[data-wiki-shell] .dropdown-item { font-size: 1rem; line-height: 1.5; }
[data-wiki-shell] .dropdown-label { font-size: .75rem; letter-spacing: .065em; }
[data-wiki-shell] .dropdown-menu { border-width: 1px; }
[data-wiki-shell] .eyebrow, [data-wiki-shell] .section-kicker { font-size: .78rem; letter-spacing: .11em; }
[data-wiki-shell].inner-page .page-hero { padding: clamp(2.8rem, 5vw, 4.8rem) 0; }
[data-wiki-shell].inner-page .page-hero h1 { max-width: 24ch; font-size: clamp(2.2rem, 4vw, 3.7rem); line-height: 1.12; letter-spacing: -.035em; }
[data-wiki-shell] .hero-lead { max-width: 66ch; font-weight: 400; line-height: 1.8; }
[data-wiki-shell].home-page .hero-full-name { text-transform: none; letter-spacing: .015em; font-size: .875rem; font-weight: 400; max-width: 64ch; }
[data-wiki-shell] .section-intro { font-weight: 400; line-height: 1.8; }
[data-wiki-shell] .prose { font-size: 1.125rem; line-height: 1.85; }
[data-wiki-shell] .prose :is(p, li) { font-weight: 400; }
[data-wiki-shell] .prose > p { max-width: 72ch; margin-bottom: 1.25rem; }
[data-wiki-shell] .prose > :is(ul, ol):not([class]) { padding-left: 1.4rem; margin-block: 1.25rem 1.7rem; }
[data-wiki-shell] .prose > :is(ul, ol):not([class]) > li { padding-left: .35rem; }
[data-wiki-shell] .prose > :is(ul, ol):not([class]) > li::marker { color: var(--brand-green); }
[data-wiki-shell] .prose > h2 { margin-top: 3.5rem; padding-top: 1.6rem; border-top: 1px solid var(--color-line); font-size: clamp(1.7rem, 2.4vw, 2.3rem); line-height: 1.25; }
[data-wiki-shell] .prose > h2:first-child { padding-top: 0; margin-top: 0; border-top: 0; }
[data-wiki-shell] .prose h3 { line-height: 1.4; letter-spacing: -.015em; }
/* Restore readable body sizes where individual page styles shrink card copy. */
[data-wiki-shell] .prose :is(article, .feature-card, .process-step, .project-solution-flow li, .cycle-overview-grid li) p {
  font-size: 1rem; line-height: 1.75; font-weight: 400;
}
[data-wiki-shell] .prose :is(article, .project-solution-flow li, .cycle-overview-grid li) h3 { font-size: 1.125rem; margin-top: .65rem; }
[data-wiki-shell] .prose .feature-card h3 { margin-top: 0; }
[data-wiki-shell] :is(.feature-card, .process-step, .side-nav, .table-responsive, .code-block, .page-next) { border-width: 1px; }
[data-wiki-shell] :is(.problem-fact-grid, .method-comparison-grid, .project-solution-flow) > :is(article, li) { padding: 1.4rem; border-left-width: 1px; border-right-width: 1px; border-bottom-width: 1px; }
[data-wiki-shell] .callout { padding: 1.3rem 1.5rem; background: #141b19; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; }
[data-wiki-shell] .callout > strong { display: block; margin-bottom: .5rem; }
[data-wiki-shell] .placeholder-note { font-size: .9375rem; line-height: 1.75; font-weight: 400; border-width: 1px; }
[data-wiki-shell] .side-nav { padding: 1.15rem; background: #101513; border-color: #394340; }
[data-wiki-shell] .side-nav a { font-size: .875rem; line-height: 1.55; font-weight: 400; padding-block: .6rem; }
[data-wiki-shell] .side-nav a[aria-current='location'] { background: #192b23; border-radius: 0 5px 5px 0; font-weight: 600; }
[data-wiki-shell] .decision-table th { font-size: .875rem; line-height: 1.5; color: var(--brand-green); letter-spacing: .01em; }
[data-wiki-shell] .decision-table td { font-size: 1rem; line-height: 1.7; font-weight: 400; }
[data-wiki-shell] .decision-table tbody tr:nth-child(even) { background: #151b19; }
[data-wiki-shell] .decision-table tbody tr:hover { background: #1b2521; }
[data-wiki-shell] .table-responsive { scrollbar-color: #62776d #101513; }
[data-wiki-shell] .code-block { line-height: 1.75; padding: 1.3rem; }
[data-wiki-shell] .btn-project { font-size: .9375rem; min-height: 46px; }
[data-wiki-shell] .page-next { gap: 1.5rem; }
[data-wiki-shell] .page-next .btn-project { flex-shrink: 0; }
@media (min-width: 992px) {
  [data-wiki-shell] .content-grid { grid-template-columns: minmax(0, 1fr) 218px; gap: clamp(2rem, 4vw, 3.5rem); }
  /* Dense comparisons read better as rows than narrow newspaper columns. */
  [data-wiki-shell] .method-comparison-grid { grid-template-columns: 1fr; }
  [data-wiki-shell] .method-comparison-grid article { display: grid; grid-template-columns: minmax(150px, .85fr) minmax(0, 1.15fr); column-gap: 1.8rem; border-top-width: 1px; border-left-width: 4px; border-left-color: var(--brand-green); }
  [data-wiki-shell] .method-comparison-grid article:nth-child(2) { border-left-color: var(--brand-purple); }
  [data-wiki-shell] .method-comparison-grid article:nth-child(3) { border-left-color: var(--brand-blue); }
  [data-wiki-shell] .method-comparison-grid article > span { grid-column: 1; align-self: end; }
  [data-wiki-shell] .method-comparison-grid article > h3 { grid-column: 1; grid-row: 2; }
  [data-wiki-shell] .method-comparison-grid article > p { grid-column: 2; margin-top: 0; }
  [data-wiki-shell] .method-comparison-grid article > p:first-of-type { grid-row: 1; }
  [data-wiki-shell] .method-comparison-grid article > p:last-of-type { grid-row: 2; }
}
@media (max-width: 991.98px) {
  [data-wiki-shell] .navbar .nav-link { font-size: 1rem; min-height: 44px; }
  [data-wiki-shell] .content-grid { gap: 1.5rem; }
  [data-wiki-shell] .side-nav { padding: .85rem 1rem; }
}
@media (max-width: 767.98px) {
  [data-wiki-shell] .section { padding-block: 3rem; }
  [data-wiki-shell] .prose { font-size: 1.0625rem; line-height: 1.8; }
  [data-wiki-shell] .prose > h2 { margin-top: 2.6rem; padding-top: 1.2rem; }
  [data-wiki-shell] .page-hero .hero-lead { font-size: 1.0625rem; }
  [data-wiki-shell] .home-page .hero-full-name { font-size: .8125rem; }
  [data-wiki-shell] .page-next { align-items: stretch; }
  [data-wiki-shell] .page-next .btn-project { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-wiki-shell] *, [data-wiki-shell] *::before, [data-wiki-shell] *::after { animation: none !important; transition: none !important; }
}
