/* Problem-specific content styles; the worksheet shell lives in /site-src/worksheet.css. */
[data-problem-id="41"] .problem-content {
  --frames-ink: #18334b;
  --frames-blue: #176e8a;
  --frames-cyan: #42a9b8;
  --frames-orange: #dc7a3f;
  --frames-mist: #edf7f8;
  --frames-line: #9fc4cb;
}

[data-problem-id="41"] .frames-setup {
  display: block;
  gap: 0.14in;
  padding: 0.11in 0.14in;
  color: var(--frames-ink);
  background: linear-gradient(135deg, #f8fcfd, #eaf6f7);
  border: 1.5px solid var(--frames-line);
  border-left: 0.07in solid var(--frames-blue);
  border-radius: 0.085in;
}

[data-problem-id="41"] .frames-copy p {
  margin: 0 0 0.05in;
  font-size: 0.145in;
  line-height: 1.32;
}

[data-problem-id="41"] .frames-copy p:last-child { margin-bottom: 0; }
[data-problem-id="41"] .frames-question { color: #275b6b; font-weight: 700; }

[data-problem-id="41"] .frames-rule {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.07in 0.085in;
  background: #fff;
  border: 1px solid #b8d4d8;
  border-radius: 0.065in;
  text-align: center;
}

[data-problem-id="41"] .frames-rule__label {
  color: var(--frames-blue);
  font-size: 0.125in;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

[data-problem-id="41"] .frames-rule > mj-math {
  margin: 0.025in 0;
  font-size: 0.175in;
}

[data-problem-id="41"] .frames-rule p {
  margin: 0;
  font-size: 0.125in;
  line-height: 1.25;
}

[data-problem-id="41"] .frames-figure { margin: 0.065in 0 0; }
[data-problem-id="41"] .frames-figure img { display: block; width: 100%; max-height: 2.1in; }
[data-problem-id="41"] .frames-figure figcaption {
  margin-top: 0.012in;
  color: #4e6c75;
  font-size: 0.125in;
  text-align: center;
}

[data-problem-id="41"] .frames-task { margin-top: 0.05in; }
[data-problem-id="41"] .problem-parts { gap: 0.04in; }
[data-problem-id="41"] .problem-part { padding: 0.055in 0.09in; break-inside: avoid; }
[data-problem-id="41"] .problem-part > p { margin: 0; font-size: 0.13in; line-height: 1.26; }
[data-problem-id="41"] .frames-naive { background: #fcfaf7; border-color: #ddb893; }
[data-problem-id="41"] .frames-corrected { background: #f7fbfc; border-color: #9abec6; }
[data-problem-id="41"] .frames-limit { background: var(--frames-mist); border-color: #83b9c1; }
[data-problem-id="41"] .frames-limit mj-math[display] { margin: 0.035in 0; font-size: 0.165in; }

[data-problem-id="41"] .frames-table {
  width: 100%;
  margin-top: 0.04in;
  color: var(--frames-ink);
  border-collapse: collapse;
  font-size: 0.125in;
  text-align: center;
}

[data-problem-id="41"] .frames-table th,
[data-problem-id="41"] .frames-table td {
  padding: 0.02in 0.045in;
  border: 1px solid #b9ced2;
}

[data-problem-id="41"] .frames-table thead th { color: #fff; background: var(--frames-ink); font-weight: 750; }
[data-problem-id="41"] .frames-table tbody th { background: #deeff1; }
[data-problem-id="41"] .frames-table tbody td { background: #fff; }
[data-problem-id="41"] .frames-table--naive th:nth-child(1) { width: 0.55in; }
[data-problem-id="41"] .frames-table--action th:nth-child(3) { width: 2.65in; }

[data-problem-id="41"] .write-blank {
  display: inline-block;
  width: 0.55in;
  height: 0.13in;
  border-bottom: 1.5px solid #4c6b73;
}

[data-problem-id="41"] .problem-content .problem-question .physics-note {
  margin: 0.04in 0 0;
  padding: 0.04in 0.07in;
  color: #49616a;
  background: #f6f7f7;
  border-left: 0.035in solid var(--frames-orange);
  font-size: 0.125in;
  line-height: 1.25;
}

[data-problem-id="41"] .measurement-lesson { margin-top: 0.1in; padding: 0.11in 0.13in; color: var(--frames-ink); background: #fff9ef; border: 1px solid #dec18a; border-radius: 0.075in; }
[data-problem-id="41"] .measurement-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.08in; margin-top: 0.07in; }
[data-problem-id="41"] .measurement-flow > div { padding: 0.08in; background: #fff; border: 1px solid #dfd0b2; border-radius: 0.05in; }
[data-problem-id="41"] .measurement-flow strong { color: var(--frames-blue); font-size: 0.137in; }
[data-problem-id="41"] .measurement-flow p,
[data-problem-id="41"] .measurement-lesson > p { margin: 0.035in 0 0; font-size: 0.14in; line-height: 1.34; }
[data-problem-id="41"] .measurement-lesson > p { margin-top: 0.07in; padding-top: 0.06in; border-top: 1px dashed #d7ba82; font-weight: 700; }
[data-problem-id="41"] .frames-page-two { margin-top: 0.08in; }
[data-problem-id="41"] .frames-page-two .frames-rule { margin: 0.07in 0; }

@media (max-width: 640px) {
  [data-problem-id="41"] .frames-setup { grid-template-columns: 1fr; }
  [data-problem-id="41"] .measurement-flow { grid-template-columns: 1fr; }
  [data-problem-id="41"] .frames-table { table-layout: fixed; font-size: 0.125in; }
  [data-problem-id="41"] .frames-table th,
  [data-problem-id="41"] .frames-table td { padding: 0.018in 0.012in; }
  [data-problem-id="41"] .frames-table--action th:nth-child(3) { width: 48%; }
}

@media print {
  [data-problem-id="41"] .frames-setup { gap: 0.08in; padding: 0.065in 0.09in; }
  [data-problem-id="41"] .frames-copy p { margin-bottom: 0.025in; font-size: 0.125in; line-height: 1.18; }
  [data-problem-id="41"] .frames-rule { padding: 0.035in 0.055in; }
  [data-problem-id="41"] .frames-rule > mj-math { margin: 0.015in 0; font-size: 0.148in; }
  [data-problem-id="41"] .frames-rule p { font-size: 0.125in; line-height: 1.14; }
  [data-problem-id="41"] .frames-setup { padding: 0.035in 0.07in; }
  [data-problem-id="41"] .frames-figure { margin-top: 0.01in; }
  [data-problem-id="41"] .frames-figure img { max-height: 2.2in; }
  [data-problem-id="41"] .frames-task { margin-top: 0.025in; }
  [data-problem-id="41"] .frames-page-two { margin-top: 0; break-before: page; }
  [data-problem-id="41"] .problem-parts { gap: 0.022in; }
  [data-problem-id="41"] .problem-part { padding: 0.03in 0.07in; }
  [data-problem-id="41"] .problem-part > p { font-size: 0.14in; line-height: 1.27; }
  [data-problem-id="41"] .frames-table { margin-top: 0.04in; font-size: 0.13in; }
  [data-problem-id="41"] .frames-table th,
  [data-problem-id="41"] .frames-table td { padding: 0.012in 0.03in; }
  [data-problem-id="41"] .frames-limit mj-math[display] { margin: 0.005in 0; font-size: 0.132in; }
  [data-problem-id="41"] .problem-content .problem-question .physics-note { display: block; }
}
