.lesson-core { font-size: 19px; font-weight: 650; line-height: 1.8; margin: 20px 0; }
.lesson-thinking { padding: 16px 20px; margin: 24px 0; border: 1px solid var(--line); border-radius: 10px; }
.lesson-thinking>summary,.theory-directory>summary { min-height: 44px; padding: 8px 0; font-weight: 650; cursor: pointer; }
.thinking-grid,
.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.decision-steps {
  padding-left: 24px;
  margin: 14px 0 0;
}
.decision-steps li {
  margin-bottom: 15px;
  padding-left: 5px;
}
.decision-steps li::marker {
  color: var(--accent);
  font-weight: 700;
}
.decision-steps p {
  margin: 4px 0 0;
}
.plain-terms {
  margin: 12px 0 0;
}
.plain-terms div {
  display: grid;
  grid-template-columns: minmax(80px, 0.7fr) minmax(0, 1.7fr);
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.plain-terms dt {
  font-weight: 700;
}
.plain-terms dd {
  margin: 0;
}
.knowledge-menu {
  margin: 20px 0;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}
.knowledge-menu summary {
  min-height: 44px;
}
.knowledge-nav {
  margin: 12px 0 0;
}
.knowledge-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.knowledge-group {
  scroll-margin-top: 100px;
}
.knowledge-group h2 {
  font-size: 23px;
}
.rule-statement {
  font-size: 18px;
  font-weight: 650;
  line-height: 1.75;
}
.knowledge-points {
  padding-left: 23px;
}
.knowledge-points li {
  margin: 9px 0;
}
.worked-example {
  padding: 16px 18px;
  background: var(--soft);
  border-radius: 8px;
  margin: 18px 0;
}
.worked-example summary { min-height: 44px; padding: 8px 0; cursor: pointer; font-weight: 650; }
.worked-example p {
  margin: 8px 0;
}
.rule-boundary {
  border-left: 3px solid #b47616;
  padding-left: 14px;
}
.group-sources {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 14px;
}
.group-sources summary,
.understanding-answer summary,
.lesson-references summary {
  min-height: 44px;
  padding: 5px 0;
  cursor: pointer;
}
.reference-ids {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
}
.reference-ids a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.understanding-check,
.lesson-references {
  margin-top: 24px;
}
.understanding-check article {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.understanding-check h3 {
  font-size: 18px;
  margin: 0;
}
.understanding-answer p {
  max-width: var(--measure);
}
.theory-directory {
  margin: 28px 0;
}
.theory-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.theory-links a {
  display: grid;
  gap: 5px;
  text-decoration: none;
  color: var(--text);
  padding: 18px;
}
.theory-links a:hover {
  border-color: var(--accent);
}
.theory-links a > span:last-child {
  font-size: 14px;
  color: var(--muted);
}
@media (max-width: 1100px) {
  .thinking-grid,
  .knowledge-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .theory-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .theory-links {
    grid-template-columns: minmax(0, 1fr);
  }
  .knowledge-group,
  .understanding-check {
    scroll-margin-top: 135px;
  }
  .knowledge-group {
    font-size: 17px;
    line-height: 1.8;
  }
  .knowledge-group h2 {
    font-size: 22px;
  }
  .worked-example {
    padding: 14px;
  }
  .plain-terms div {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }
}
@media print {
  .knowledge-grid,
  .thinking-grid,
  .theory-links {
    display: block;
  }
  .knowledge-group,
  .thinking-grid .panel {
    margin: 14px 0;
  }
  .knowledge-group {
    break-inside: auto;
  }
}
