/* The standalone investigation and its optional method activities share the course palette. */
[hidden] { display: none !important; }
.wrap { max-width: 68rem; }
.skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
main h1 { font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.1; max-width: 23ch; margin: .3rem 0 1.25rem; border: 0; }
main .crumb { margin-bottom: .65rem; }
main > .spec { margin: 0; font-weight: 650; }
.lab { display: block; }
.col-app { position: static; max-height: none; overflow: visible; padding: 0; }
.workbench, .readings { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(1rem, 4vw, 3rem); }
.workbench, #outcome { background: var(--card); border: 1px solid var(--line); border-radius: 1rem; padding: clamp(1rem, 3vw, 2rem); }
.workbench:has(#bench[hidden]) { grid-template-columns: 1fr; }
.experiment-controls { min-width: 0; }
#cctrls fieldset { min-inline-size: 0; padding: 0; margin: 0; border: 0; }
#cctrls legend, #interpret label, #prediction label { font-weight: 700; display: block; margin: 0 0 .55rem; color: var(--ink); }
#cctrls legend { font-size: 1.15rem; }
#cctrls .seg { display: inline-flex; border: 1px solid var(--acc); border-radius: .65rem; max-inline-size: 100%; flex-wrap: wrap; }
#cctrls .seg label { flex: 1 0 auto; }
#cctrls .seg span { min-height: 44px; justify-content: center; }
#cctrls input:checked+span { text-decoration: underline; text-underline-offset: .28em; }
.conditions, .resource-links { font-size: .92rem; color: var(--muted); }
.actions, .extra-links { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin: .7rem 0 0; }
.extra-links { gap: .35rem 1rem; }
.extra-links a, .resource-links a { display: inline-flex; align-items: center; min-height: 44px; }
#prediction select, #history select, #interpret textarea { font: inherit; max-width: 100%; padding: .5rem; color: var(--ink); background: var(--card); border: 1px solid var(--muted); border-radius: .5rem; }
#interpret textarea { width: 100%; }
#bench { margin: 0; padding: .7rem; background: var(--bg); box-shadow: none; }
#bench figcaption { font-weight: 650; }
#bench svg { display: block; width: 100%; max-height: 19rem; }
#cnote:empty { display: none; }
#outcome { margin-top: .8rem; }
#outcome h2 { margin-top: 0; }
#result-plot svg, #gsvg { display: block; width: 100%; max-height: 18rem; }
#tubes { display: grid; grid-template-columns: repeat(6,1fr); gap: .2rem; text-align: center; }
#tubes i { margin: 0 auto .3rem; display: block; width: 1.8rem; height: 4rem; border: 1.5px solid var(--muted); border-top-width: 3px; border-radius: .15rem .15rem 1rem 1rem; background: linear-gradient(to bottom,transparent 24%,var(--sample) 25%); }
#tubes small, #tubes strong { display: block; white-space: nowrap; font-size: .85rem; }
#interpret { max-width: 45rem; padding: .7rem 0; }
#history, #extras, #assume { margin-top: .8rem; }
details > summary { cursor: pointer; padding: .65rem 0; min-height: 44px; color: var(--acc); font-weight: 650; }
.dfig table { width: 100%; max-width: 26rem; border-collapse: collapse; }
.dfig caption, .dfig th, .dfig td { text-align: left; padding: .3rem .5rem; }
.dfig tbody tr { border-top: 1px solid var(--line); }
#standards, #results { overflow-x: auto; }
#closeup-host svg:not(.legend svg) { max-height: 23rem; }
#ptabs { margin: .7rem 0; }
#back-lab { margin-bottom: .75rem; display: inline-block; }
@media (max-width: 46rem) {
  .workbench, .readings { grid-template-columns: minmax(0,1fr); gap: .75rem; }
  #tubes i { height: 2.6rem; }
  #result-plot svg { max-height: 13rem; }
  #cctrls .seg span { padding-inline: .6rem; }
  #bench svg { max-height: 15rem; }
}
#result-plot .f-sm { font-size: 13px !important; }
@media (max-width: 46rem) {
  #result-plot svg { max-height: 15rem; }
  #result-plot .f-sm { font-size: 15px !important; }
}
