/* Problem-specific content styles; the worksheet shell lives in /site-src/worksheet.css. */
[data-problem-id="49"] .problem-content {
  --ink: #17324d;
  --muted: #526b80;
  --paper: #fffdf7;
  --screen: #e8f1f5;
  --line: #b8ccd5;
  --navy: #153b5b;
  --gold: #f5bd32;
  --berry: #2871a5;
  --berry-dark: #174e78;
  --berry-pale: #eaf5fb;
  --pikachu: #ffe078;
  --eevee: #d8a36f;
  --bulbasaur: #8bd0ad;
}

[data-problem-id="49"] .problem-content {
  font-size: 0.19in;
  line-height: 1.45;
}

[data-problem-id="49"] .problem-setup {
  padding: 0.16in 0.18in;
  background: #fff8df;
  border: 1px solid #ead492;
  border-left: 0.07in solid var(--gold);
  border-radius: 0.085in;
}

[data-problem-id="49"] .problem-setup p {
  margin: 0;
}

[data-problem-id="49"] .move-loop {
  display: grid;
  grid-template-columns: 1fr 0.22in 1fr 0.22in 1fr;
  align-items: stretch;
  gap: 0.055in;
  margin: 0.16in 0;
}

[data-problem-id="49"] .move-card {
  display: grid;
  grid-template-columns: 0.32in 0.54in 1fr;
  align-items: center;
  gap: 0.035in;
  min-height: 0.78in;
  padding: 0.085in 0.09in;
  background: #ffffff;
  border: 1.5px solid var(--line);
  border-radius: 0.09in;
}

[data-problem-id="49"] .move-card img {
  display: block;
  width: 0.54in;
  height: 0.54in;
  object-fit: contain;
  filter: drop-shadow(0 0.025in 0.025in rgb(23 50 77 / 18%));
}

[data-problem-id="49"] .move-number {
  display: grid;
  width: 0.34in;
  height: 0.34in;
  place-items: center;
  color: #ffffff;
  background: var(--berry);
  border-radius: 50%;
  font-size: 0.15in;
  font-weight: 950;
}

[data-problem-id="49"] .move-card strong {
  display: block;
  font-size: 0.125in;
  line-height: 1.14;
}

[data-problem-id="49"] .move-card span:last-child {
  display: block;
  margin-top: 0.025in;
  color: var(--muted);
  font-size: 0.125in;
  line-height: 1.22;
  font-weight: 700;
}

[data-problem-id="49"] .move-arrow {
  display: grid;
  place-items: center;
  color: var(--berry-dark);
  font-size: 0.26in;
  font-weight: 950;
}

[data-problem-id="49"] .challenge-panel {
  padding: 0.15in 0.16in 0.16in;
  background: #ffffff;
  border: 2px solid var(--navy);
  border-radius: 0.1in;
}

[data-problem-id="49"] .berry-state-table {
  margin: 0.1in 0;
  padding: 0.08in 0.1in;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 0.08in;
}

[data-problem-id="49"] .berry-state-table table { margin-top: 0.05in; font-size: 0.125in; }
[data-problem-id="49"] .berry-state-table :is(th, td) { height: 0.25in; padding: 0.02in 0.045in; }

[data-problem-id="49"] .challenge-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.18in;
  margin-bottom: 0.1in;
}

[data-problem-id="49"] .section-label {
  margin: 0;
  color: var(--berry-dark);
  font-size: 0.125in;
  font-weight: 900;
  letter-spacing: 0.085em;
  text-transform: uppercase;
}

[data-problem-id="49"] .paper-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.125in;
  line-height: 1.25;
  font-weight: 750;
  text-align: right;
}

[data-problem-id="49"] .challenge-panel ol {
  display: grid;
  gap: 0.09in;
  counter-reset: challenge;
  list-style: none;
  margin: 0;
  padding: 0;
}

[data-problem-id="49"] .challenge-panel li {
  position: relative;
  min-height: 0.58in;
  padding: 0.12in 0.14in 0.12in 0.55in;
  background: var(--berry-pale);
  border: 1px solid #b5d2df;
  border-radius: 0.08in;
  counter-increment: challenge;
  break-inside: avoid;
}

[data-problem-id="49"] .challenge-panel li::before {
  position: absolute;
  top: 0.115in;
  left: 0.14in;
  display: grid;
  width: 0.29in;
  height: 0.29in;
  place-items: center;
  color: #ffffff;
  background: var(--berry);
  border-radius: 50%;
  content: counter(challenge);
  font-size: 0.14in;
  line-height: 1;
  font-weight: 950;
}

[data-problem-id="49"] .challenge-panel p {
  margin: 0;
  font-size: 0.175in;
  line-height: 1.38;
  font-weight: 770;
}

@media print {
  [data-problem-id="49"] .berry-state-table { break-before: page; }
}
