/* Research page only */

.wtem-stats{list-style:none;margin:1.4rem 0 0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--rule);border:1px solid var(--rule)}
.wtem-stats li{background:#f5f6ee;padding:1rem 1.1rem}
.wtem-stats strong{display:block;font-family:var(--serif);font-size:clamp(1.9rem,4vw,2.8rem);line-height:1.1;color:var(--green)}
.wtem-stats span{font-size:.92rem;color:var(--muted)}
main>.wtem-figure{display:block}
.wtem-figure-heading{max-width:68ch;margin-bottom:1.2rem}
.wtem-chart{width:100%;height:auto;display:block;margin:.5rem 0 1rem;font-family:var(--sans)}
.wtem-chart .nm{font-size:15px;font-weight:650;fill:var(--ink)}
.wtem-chart .sub,.wtem-chart .ax{font-size:12.5px;fill:var(--muted)}
.wtem-chart .val{font-size:14px;font-weight:650;fill:var(--ink)}
.wtem-chart .pct{font-size:15px;font-weight:700;fill:var(--green)}
.wtem-chart .pct.bad{fill:#a2543a}
.wtem-chart .pos{fill:#7f9a83}.wtem-chart .hi{fill:var(--green)}.wtem-chart .neg{fill:#c07a5c}.wtem-chart .low{fill:#b9c4b4}
.wtem-chart .cell{fill:#eef0e7}
.wtem-chart .bean{fill:#8a6a4f}.wtem-chart .fruit{fill:#d2a86e}
.wtem-chart .bigw{font-size:18px;font-weight:700;fill:#fff}.wtem-chart .bigd{font-family:var(--serif);font-size:28px;font-weight:600;fill:var(--ink)}
.wtem-chart .zero{stroke:var(--ink);stroke-width:1}
.wtem-chart .thr{stroke:#a2543a;stroke-width:2;stroke-dasharray:6 5}.wtem-chart .thrt{font-size:13px;font-weight:650;fill:#a2543a}
.wtem-caption{max-width:68ch;border-left:2px solid #819480;padding-left:.85rem;color:var(--muted);font-size:1rem;line-height:1.6}
.wtem-findings,.wtem-path{padding-left:1.1rem}.wtem-findings li,.wtem-path li{margin-bottom:.7em}
.wtem-limits{color:var(--muted)}

.wtem-swipe{display:none;font-size:.85rem;color:var(--muted);margin:.4rem 0 0}
.wtem-scroll{margin:0;overflow-x:auto;-webkit-overflow-scrolling:touch}

.wtem-study-note { color: var(--muted); max-width: 65ch; margin-top: 1rem; }
.wtem-source { margin: .8rem 0 0; font-size: .88rem; color: var(--muted); }
.wtem-source a { font-weight: 400; }
main > .wtem-figure > .wtem-viability { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: none; }
.wtem-viability article { background: #f0f2ec; border-top: 2px solid var(--green); padding: 1.2rem; }
.wtem-viability h3 { margin: .3rem 0 .65rem; line-height: 1.3; }
.wtem-data, .wtem-methods { margin-top: 1rem; }
.wtem-data summary, .wtem-methods summary { cursor: pointer; color: var(--green); font-weight: 650; padding-block: .65rem; }
.wtem-table-wrap { overflow-x: auto; }
.wtem-data table { width: 100%; border-collapse: collapse; margin-top: .75rem; font-size: .98rem; }
.wtem-data caption { text-align: left; font-weight: 650; margin-bottom: .6rem; }
.wtem-data th, .wtem-data td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); padding: .6rem; }
.wtem-data td { font-variant-numeric: tabular-nums; }
.wtem-methods ul { padding-left: 1.15rem; margin-top: .6rem; }
.wtem-methods li { margin-bottom: .8rem; }
.wtem-scroll:focus-visible, .wtem-table-wrap:focus-visible, .wtem-data summary:focus-visible, .wtem-methods summary:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
@media(max-width:650px) {
  .wtem-stats { grid-template-columns: 1fr 1fr; }
  .wtem-scroll .wtem-chart { min-width: 760px; }
  .wtem-swipe { display: block; }
  main > .wtem-figure > .wtem-viability { grid-template-columns: 1fr; }
  .wtem-data table { font-size: 1rem; }
  .wtem-data th, .wtem-data td { padding: .55rem .3rem; }
}

/* Research hierarchy: body copy, one central question, and quieter chart notes. */
.research-page > section > div { font-size: 1.11rem; }
.research-page .research-question {
  margin: 1.15rem 0 0;
  max-width: 43ch;
  color: var(--green);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.25vw, 1.5rem);
  font-style: normal;
  font-weight: 500;
  line-height: 1.4;
}
.research-page .wtem-figure-heading > .label { margin-bottom: .55rem; }
.research-page .wtem-figure-heading > h2 { margin-bottom: .65rem; }
.research-page .wtem-chart-note,
.research-page .wtem-study-note {
  font-family: var(--sans);
  font-size: 1rem;
  font-style: normal;
  line-height: 1.6;
  color: var(--muted);
}
.research-page .wtem-chart-note { margin: 0; }
.research-page .wtem-introduction { margin: 0; }
.research-page .wtem-viability h3 { font-size: 1.35rem; font-weight: 620; }
.research-page .wtem-data summary,
.research-page .wtem-methods summary { font-size: 1rem; }
.research-page .wtem-data table { font-size: 1rem; }
.research-page #thesis-source .research-citation { margin-top: 0; }
@media (max-width:650px) {
  .research-page > section > div { font-size: 1.05rem; }
  .research-page > .wtem-figure > .wtem-viability { gap: .85rem; }
}
