/* The first two notes share an edge-to-edge expanded experiment view. */
@media screen {
  .thermal-lab.thermal-expanded {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: auto;
    overscroll-behavior: contain;
    box-sizing: border-box;
    padding-bottom: env(safe-area-inset-bottom);
    scroll-padding-top: 90px;
  }
  .thermal-expanded .thermal-toolbar {
    position: sticky;
    top: 0;
    z-index: 5;
    padding: max(14px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) 14px max(18px, env(safe-area-inset-left));
  }
  .thermal-expanded .thermal-toolbar b { font-size: 16px; }
  .thermal-expanded .thermal-toolbar button { min-height: 42px; font-size: 14px; }
  .thermal-expanded .thermal-toolbar [aria-expanded="true"] { background: #dfE8cc; border-color: #839c68; }

  .thermal-expanded .warming-chart svg {
    min-height: 320px;
    height: 64vh;
    height: 64dvh;
    max-height: 820px;
  }
  #motion-lab.thermal-expanded .lab-pair svg {
    height: clamp(250px, 48dvh, 620px);
    max-height: none;
  }
  #emission-lab.thermal-expanded > :is(.micro-figure, .emitter-figure) svg {
    height: clamp(300px, 52dvh, 700px);
    max-height: none;
  }
  .thermal-expanded #spectrum-plot {
    height: clamp(320px, 58dvh, 760px);
    max-height: none;
  }
  .thermal-expanded .power-comparison {
    min-height: clamp(220px, 32dvh, 380px);
    align-content: center;
    gap: 32px;
  }
  .thermal-expanded .power-comparison i { height: 40px; }
  .thermal-expanded .camera-target svg {
    height: clamp(190px, 38dvh, 430px);
    max-width: 420px;
  }
  .thermal-expanded .heat-particle-box {
    max-width: 460px;
    max-height: 40dvh;
  }
  .thermal-expanded .exchange-scene {
    min-height: clamp(250px, 42dvh, 530px);
  }
  .thermal-expanded :is(.exchange-object, .exchange-surroundings) { min-height: 180px; }
}
@media screen and (max-width: 600px) {
  .thermal-expanded .thermal-toolbar { gap: 8px; }
  .thermal-expanded .thermal-toolbar b { font-size: 14px; }
  .thermal-expanded .thermal-toolbar button { font-size: 12px; }
  .thermal-expanded .warming-chart svg { height: 42dvh; min-height: 230px; }
  #motion-lab.thermal-expanded .lab-pair svg { height: auto; min-height: 220px; }
  #emission-lab.thermal-expanded > :is(.micro-figure, .emitter-figure) svg { height: 36dvh; min-height: 230px; }
  .thermal-expanded .camera-target svg { height: 170px; }
  .thermal-expanded :is(.exchange-object, .exchange-surroundings) { min-height: 135px; }
}
