/* Problem-specific content styles; the worksheet shell lives in /site-src/worksheet.css. */
[data-problem-id="6"] .problem-setup {
  margin: 0 0 0.16in;
}

[data-problem-id="6"] .problem-question {
  margin: 0.17in 0 0.13in;
  padding: 0.13in 0.16in;
  background: #eef9fb;
  border-left: 0.055in solid var(--gold);
  border-radius: 0.08in;
  break-inside: avoid;
}

[data-problem-id="6"] .problem-content .problem-question .problem-parts {
  margin: 0.02in 0 0;
  padding-left: 0.28in;
  font-size: inherit;
  line-height: inherit;
  font-weight: 400;
}

[data-problem-id="6"] .problem-part {
  padding: 0.1in 0 0.11in 0.02in;
  break-inside: avoid;
}

[data-problem-id="6"] .problem-part + .problem-part {
  margin-top: 0.04in;
  border-top: 1px solid var(--line);
}

[data-problem-id="6"] .problem-part-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

[data-problem-id="6"] .pane-grid {
  display: grid;
  width: min(100%, 2.72in);
  margin: 0 auto;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.055in;
  padding: 0.09in;
  background: #493853;
  border: 0.045in solid #241b2c;
  box-shadow:
    inset 0 0 0 0.018in rgb(255 255 255 / 18%),
    0 0.035in 0.1in rgb(47 41 56 / 16%);
}

[data-problem-id="6"] .pane {
  aspect-ratio: 1 / 0.76;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 52%) 0 13%, transparent 13% 72%, rgb(100 146 158 / 20%) 72%),
    #d9f0f2;
  border: 0.018in solid #6e98a4;
  box-shadow: inset 0 0 0 0.015in rgb(255 255 255 / 42%);
}

[data-problem-id="6"] .pane--purple {
  background:
    repeating-linear-gradient(135deg, rgb(255 255 255 / 16%) 0 0.035in, transparent 0.035in 0.11in),
    #8152aa;
  border-color: #4f3069;
  box-shadow: inset 0 0 0 0.015in rgb(255 255 255 / 20%);
}

[data-problem-id="6"] .problem-figure {
  margin: 0.1in auto;
}

[data-problem-id="6"] .stained-glass-visuals {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(2.72in, 1fr);
  align-items: stretch;
  gap: 0.18in;
  padding: 0.1in;
  background: #f4f0f8;
  border: 1px solid #cbbfd5;
  border-radius: 0.09in;
}

[data-problem-id="6"] .minecraft-glass-scene {
  min-width: 0;
  overflow: hidden;
  background: #7aa1d5;
  border: 0.025in solid #493853;
  border-radius: 0.065in;
  box-shadow: 0 0.035in 0.1in rgb(47 41 56 / 17%);
}

[data-problem-id="6"] .window-plan {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

[data-problem-id="6"] .finished-fraction {
  margin: 0.05in 0 0;
  font-size: 0.125in;
  font-weight: 850;
  text-align: center;
}

[data-problem-id="6"] .finished-fraction span { display: inline-block; min-width: 0.55in; }

[data-problem-id="6"] .minecraft-glass-illustration {
  display: block;
  width: 100%;
  height: 1.72in;
  object-fit: cover;
  object-position: center;
}

@media screen and (max-width: 36rem) {
  [data-problem-id="6"] .stained-glass-visuals {
    grid-template-columns: 1fr;
  }

  [data-problem-id="6"] .minecraft-glass-illustration {
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

@media print {
  [data-problem-id="6"] .problem-setup {
    padding-block: 0.12in 0.1in;
  }

  [data-problem-id="6"] .minecraft-glass-illustration {
    height: 1.3in;
  }

  [data-problem-id="6"] .pane-grid {
    width: min(100%, 2.45in);
  }

  [data-problem-id="6"] .pane--purple {
    background:
      repeating-linear-gradient(135deg, #777 0 0.035in, #a8a8a8 0.035in 0.11in);
    border-color: #333;
  }

  [data-problem-id="6"] .pane:not(.pane--purple) {
    background: #fff;
    border-color: #666;
  }
}
