/* Problem-specific content styles; the worksheet shell lives in /site-src/worksheet.css. */
[data-problem-id="14"] .problem-content {
  --ink: #241c3d;
  --muted: #665c73;
  --paper: #fffdf7;
  --screen: #17142e;
  --night: #26214b;
  --night-deep: #17142e;
  --gold: #d7aa3c;
  --gold-light: #fff1a8;
  --fire: #e85a2b;
  --fire-dark: #a7371d;
  --fire-pale: #fff0e7;
  --frost: #398fd1;
  --frost-dark: #23699d;
  --frost-pale: #eaf7ff;
  --line: #c7bfd1;
}

[data-problem-id="14"] .problem-content {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  gap: 0.055in;
  font-size: 0.155in;
  line-height: 1.27;
}

[data-problem-id="14"] .problem-content > * {
  flex: 0 0 auto;
}

[data-problem-id="14"] .problem-setup {
  padding: 0.055in 0.1in;
  background: linear-gradient(90deg, var(--fire-pale), #fffaf0 48%, var(--frost-pale));
  border: 1.5px solid #d2c4b2;
  border-left: 0.055in solid var(--fire);
  border-right: 0.055in solid var(--frost);
  border-radius: 0.085in;
}

[data-problem-id="14"] .problem-setup p {
  margin: 0;
  font-size: 0.14in;
  line-height: 1.2;
}

[data-problem-id="14"] .problem-setup p + p {
  margin-top: 0.04in;
}

[data-problem-id="14"] .bridge-figure {
  margin: 0;
  padding: 0.04in;
  background: var(--night);
  border: 2px solid var(--gold);
  border-radius: 0.09in;
  box-shadow: 0 0.05in 0.12in rgb(23 20 46 / 18%);
}

[data-problem-id="14"] .bridge-figure img {
  display: block;
  width: 100%;
  height: 0.86in;
  object-fit: fill;
  border-radius: 0.055in;
}

[data-problem-id="14"] .rules {
  display: grid;
  grid-template-columns: 1fr 1fr 0.86fr;
  gap: 0.08in;
}

[data-problem-id="14"] .rule-card {
  min-height: 0.54in;
  padding: 0.04in 0.065in;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 0.075in;
}

[data-problem-id="14"] .rule-card--slide {
  border-top: 0.04in solid var(--fire);
}

[data-problem-id="14"] .rule-card--jump {
  border-top: 0.04in solid var(--frost);
}

[data-problem-id="14"] .rule-card--forward {
  display: grid;
  align-content: center;
  text-align: center;
  border-top: 0.04in solid var(--gold);
}

[data-problem-id="14"] .rule-card h2 {
  margin: 0 0 0.025in;
  color: var(--night);
  font-size: 0.125in;
  font-weight: 950;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

[data-problem-id="14"] .rule-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.125in;
  line-height: 1.14;
  font-weight: 740;
}

[data-problem-id="14"] .move-model {
  display: flex;
  align-items: center;
  gap: 0.045in;
  margin-top: 0.025in;
  color: var(--night);
  font-size: 0.135in;
  font-weight: 950;
}

[data-problem-id="14"] .move-token,
[data-problem-id="14"] .move-stone {
  display: grid;
  width: 0.19in;
  height: 0.19in;
  place-items: center;
  border-radius: 50%;
}

[data-problem-id="14"] .move-token {
  color: #fff;
  background: var(--fire);
}

[data-problem-id="14"] .move-stone {
  color: var(--muted);
  background: var(--frost-pale);
  border: 1.5px dashed var(--frost-dark);
}

[data-problem-id="14"] .problem-question {
  padding: 0.08in 0.1in 0.09in;
  background: #fff;
  border: 2px solid var(--night);
  border-radius: 0.09in;
}

[data-problem-id="14"] .problem-question-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.16in;
  margin-bottom: 0.04in;
}

[data-problem-id="14"] .problem-section-label {
  margin: 0;
  color: var(--fire-dark);
  font-size: 0.125in;
  font-weight: 950;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

[data-problem-id="14"] .problem-paper-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.125in;
  line-height: 1.2;
  font-weight: 750;
  text-align: right;
}

[data-problem-id="14"] .problem-question ol {
  display: grid;
  gap: 0.035in;
  margin: 0;
  padding: 0;
  counter-reset: question;
  list-style: none;
}

[data-problem-id="14"] .problem-question li {
  position: relative;
  min-height: 0.34in;
  padding: 0.055in 0.08in 0.055in 0.39in;
  background: linear-gradient(90deg, var(--fire-pale), #fff 18%, #fff 82%, var(--frost-pale));
  border: 1px solid #d8cfdd;
  border-radius: 0.065in;
  counter-increment: question;
  break-inside: avoid;
}

[data-problem-id="14"] .problem-question li::before {
  position: absolute;
  top: 0.055in;
  left: 0.08in;
  display: grid;
  width: 0.245in;
  height: 0.245in;
  place-items: center;
  color: #fff;
  background: var(--night);
  border-radius: 50%;
  content: counter(question);
  font-size: 0.125in;
  line-height: 1;
  font-weight: 950;
}

[data-problem-id="14"] .problem-question li p {
  margin: 0;
  font-size: 0.128in;
  line-height: 1.16;
  font-weight: 760;
}

[data-problem-id="14"] .access-note {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.075in;
  padding: 0.04in 0.09in;
  color: #4f4660;
  background: #f4f0fa;
  border: 1px solid #d4c9e1;
  border-radius: 0.065in;
  font-size: 0.125in;
  line-height: 1.12;
  font-weight: 720;
}

[data-problem-id="14"] .access-note strong {
  color: var(--night);
  white-space: nowrap;
}

[data-problem-id="14"] .dragon-investigation {
  padding: 0.14in;
  background: #fff;
  border: 2px solid var(--night);
  border-radius: 0.09in;
}

[data-problem-id="14"] .dragon-record-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.12in; margin-top: 0.08in; }
[data-problem-id="14"] .dragon-investigation table { font-size: 0.125in; }
[data-problem-id="14"] .dragon-investigation :is(th, td) { height: 0.28in; padding: 0.025in 0.04in; }
[data-problem-id="14"] .dragon-investigation p { margin: 0.08in 0 0; font-size: 0.125in; }

@media print {
  [data-problem-id="14"] .dragon-investigation { break-before: page; }
}
