.comparison-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}
.comparison-table th,
.comparison-table td {
  width: 50%;
  vertical-align: top;
  padding: 16px;
  border: 1px solid var(--line);
}
.comparison-table th {
  background: #f4f5f6;
  text-align: left;
}
.comparison-table ul {
  margin: 0;
  padding-left: 22px;
}
.comparison-table li {
  margin-bottom: 9px;
}
@media (max-width: 720px) {
  .comparison-table {
    min-width: 560px;
  }
}
.source-figure {
  margin: 1.4rem 0;
  max-width: 760px;
}
.source-figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  background: #f3f5f9;
  border: 1px solid #e5e9ef;
}
.source-figure figcaption,
.current-flow figcaption {
  font-size: 0.82em;
  color: #586273;
  margin-top: 0.4rem;
}
.figure-pair {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.figure-pair .source-figure {
  margin: 0.8rem 0;
  width: auto;
}
.current-flow {
  margin: 1.6rem 0;
  padding: 1.25rem;
  border-radius: 16px;
  background: #eef4ff;
  border: 1px solid #c9d8fb;
}
.current-flow figcaption {
  color: #122b63;
  font-weight: 700;
  font-size: 1em;
  margin: 0 0 0.9rem;
}
.flow-steps {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.flow-steps span {
  display: inline-block;
  padding: 0.55rem 0.7rem;
  border-radius: 9px;
  background: #fff;
  border: 1px solid #bed0f1;
  font-weight: 650;
  font-size: 0.85em;
}
.flow-steps b {
  color: #3b61a4;
}
.current-flow p {
  margin: 0.8rem 0 0;
  font-size: 0.88em;
}
.reading-section p,
.reading-section li {
  max-width: none;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
.reading-section .table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}
.reading-section table {
  width: 100%;
  border-collapse: collapse;
}
.reading-section table th,
.reading-section table td {
  vertical-align: top;
}
.reading-section .comparison-table td {
  text-align: justify;
  hyphens: auto;
}
.reading-section .case-table-toggle table {
  min-width: 760px;
}
.dialogue {
  margin: 1.4rem 0;
  padding: 1.2rem 1.25rem;
  background: #f7f8fa;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.dialogue-title {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}
.reading-section .dialogue-turn {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0.55rem;
  margin: 0.7rem 0;
  text-align: left;
}
.dialogue-role {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.78rem;
}
/* Semantic formatting restored after PDF extraction. */
.semantic-intro {
  font-weight: 700;
  margin-bottom: 0.75rem !important;
}
.semantic-list {
  margin: 1rem 0 1.6rem;
  padding-left: 1.7rem;
}
.semantic-list > li {
  padding-left: 0.25rem;
  margin-bottom: 0.9rem;
}
.factor-list > li strong {
  font-weight: 750;
}
.semantic-step {
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--yellow);
  background: #fafafa;
}
.dialogue {
  margin: 1.4rem 0;
  padding: 1.2rem 1.25rem;
  background: #f7f8fa;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.dialogue-title {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}
.reading-section .dialogue-turn {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0.55rem;
  margin: 0.7rem 0;
  text-align: left;
}
.dialogue-role {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.78rem;
}
.method-stack,
.script-stack {
  display: grid;
  gap: 14px;
  margin: 1.25rem 0 1.8rem;
}
.method-card,
.script-example,
.principle-card,
.question-type {
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.method-card h3,
.script-example h3,
.principle-card h3,
.question-type h4 {
  margin: 0 0 0.7rem;
}
.method-card p:last-child,
.script-example p:last-child,
.principle-card p:last-child,
.question-type p:last-child {
  margin-bottom: 0;
}
.formula-line {
  background: #f3f5f7;
  padding: 0.8rem 1rem;
  border-radius: 7px;
}
.example-line {
  border-left: 3px solid var(--yellow);
  padding-left: 1rem;
}
.orientation-divider {
  list-style: none;
  margin: 1.8rem 0 0.8rem !important;
  padding: 1rem 0 0 !important;
  border-top: 1px solid var(--line);
}
.orientation-divider h3 {
  margin: 0.2rem 0 0.65rem;
}
.orientation-divider p {
  margin-bottom: 0.4rem;
}
.step-title {
  font-size: 1.05rem;
  margin: 1.4rem 0 0.65rem;
}
.question-bank {
  padding: 1rem 1.15rem;
  background: #f7f8fa;
  border-radius: 8px;
  white-space: pre-line;
}
.source-errors > li {
  margin-bottom: 1.2rem;
}
@media (max-width: 720px) {
  .reading-section .dialogue-turn {
    grid-template-columns: 2.2rem minmax(0, 1fr);
  }
  .dialogue {
    padding: 1rem;
  }
  .method-card,
  .script-example,
  .principle-card,
  .question-type {
    padding: 1rem;
  }
}
