/* Lab layout within the site's paper-and-ink visual system. Color denotes phase or sign only. */
:root { color-scheme: light; color: #242420; background: #f1efe7; --ink: #242420; --muted: #67675f; --border: #cfcdc4; --green: #242420; }
body { max-width: 1920px; margin: auto; padding: 0 24px 12px; }
.site-header { height: 58px; }
.breadcrumb { margin-bottom: 8px; }
main { max-width: none; padding: 0; }
.intro { display: block; margin-bottom: 12px; }
h1 { max-width: 46ch; font-size: clamp(18px, 1.7vw, 27px); font-weight: 400; letter-spacing: -.03em; }
.intro>p { max-width: 72ch; margin-top: 10px; font-size: 16px; line-height: 1.6; color: var(--ink); }
.controller-note { color: var(--muted); font-size: 10px; margin: 0 0 12px; }
.bento { gap: 12px; }
.tile { padding: 16px; border-radius: 0; box-shadow: none; background: #f8f7f2; }
.command-tile,.field-tile,.drive-tile { min-height: 0; }
.field-tile { background: #f1efe7; }
.field-wrap { height: clamp(180px, 25svh, 300px); flex-shrink: 0; }
.field-wrap, #inverter { flex-shrink: 0; }
.field-legend { margin-bottom: 10px; }
.nudge-heading { margin-top: 12px; }
.lesson { margin-top: 10px; padding-top: 10px; }
.analysis-scroll { min-width: 0; grid-column: 1 / -1; }
.analysis-scroll>.tile + .tile { margin-top: 12px; }
.bento:focus-visible,.analysis-scroll:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.closing-note { padding: 8px 0 0; font-size: 10px; }
.positive-key { color: #24755b; }
.positive-key::before { background: #b6d9bf; }
.coil-roles { margin-top: 0; padding: 12px 0; border-top: 0; border-bottom: 1px solid var(--border); }
.static-explanation { padding: 24px; border: 1px solid var(--border); line-height: 1.7; margin-bottom: 20px; }
.static-explanation p { margin-top: 16px; }
.lab-page:has(noscript .static-explanation) { height: auto; }
.lab-page:has(noscript .static-explanation) .bento { display: none; }
@media(min-width:901px) {
  body { height: 100svh; display: flex; flex-direction: column; }
  .site-header,.breadcrumb { flex-shrink: 0; }
  main { min-height: 0; flex: 1; display: flex; flex-direction: column; }
  .intro,.controller-note,.closing-note { flex-shrink: 0; }
  .bento { min-height: 0; flex: 1; overflow: auto; scrollbar-width: thin; grid-template-columns: minmax(0,.85fr) minmax(0,1.4fr) minmax(0,1fr); grid-template-rows: max-content max-content; align-items: stretch; align-content: start; }
  .bento .drive-tile { display: block; grid-column: 3; grid-row: 1; }
  .field-wrap { height: 260px; }
  .command-tile,.field-tile,.drive-tile { overflow: visible; }
  .analysis-scroll { overflow: visible; }
}
@media(max-width:900px) { body { padding: 0 18px 18px; } .field-wrap { height: 300px; } .closing-note { margin-top: 12px; } }
@media(max-width:650px) {
  body { padding: 0 12px 16px; }
  .site-header { height: 64px; }
  .intro { margin-top: 14px; }
  h1 { max-width: none; font-size: 24px; }
  .intro>p { margin-top: 12px; max-width: none; }
  .controller-note { margin: 10px 0 18px; line-height: 1.6; }
  .analysis-scroll { width: 100%; order: 3; }
  .tile { padding: 16px; }
  .field-wrap { height: 280px; }
  .transport { flex-wrap: wrap; }
}
@media(prefers-reduced-motion:reduce) { *, *::before, *::after { transition: none !important; } }
